NEWS.stable: log cherry-pick [79aac72]->[cc1a9b7] canonicalize-lgpl: use common idiom
[gnulib.git] / ChangeLog
1 2011-06-06  Eric Blake  <eblake@redhat.com>
2
3         canonicalize-lgpl: use common idiom
4         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5         over newer POSIX -Rf.
6         Reported by Bruno Haible.
7
8         canonicalize-lgpl: work around AIX realpath bug
9         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10         * doc/posix-functions/realpath.texi (realpath): Document it.
11         Reported by Bruno Haible.
12
13 2011-06-06  Bruno Haible  <bruno@clisp.org>
14
15         careadlinkat: Avoid mismatch between ssize_t and int.
16         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18
19 2011-06-05  Bruno Haible  <bruno@clisp.org>
20
21         ansi-c++-opt: Interoperability with libtool.
22         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
23         set the variable to "no", not to ":".
24         * NEWS: Mention the change.
25
26 2011-06-05  Bruno Haible  <bruno@clisp.org>
27
28         acl: Fix test failure on AIX 7.
29         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
30         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
31
32 2011-06-05  Bruno Haible  <bruno@clisp.org>
33
34         pipe-filter-ii: Fix test failure on AIX and IRIX.
35         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
36         with EAGAIN, retry with a smaller buffer size.
37
38 2011-06-05  Bruno Haible  <bruno@clisp.org>
39
40         localename: Fix link dependencies.
41         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
42         * modules/localename-tests (Makefile.am): Link test-localename with
43         $(LIBTHREAD).
44
45 2011-06-05  Bruno Haible  <bruno@clisp.org>
46
47         unsetenv: Avoid gcc warning.
48         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
49
50 2011-06-05  Bruno Haible  <bruno@clisp.org>
51
52         setenv: Avoid gcc warning.
53         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54
55 2011-06-05  Bruno Haible  <bruno@clisp.org>
56
57         sys_select: Ensure memset is declared also on AIX 7.
58         * lib/sys_select.in.h: Include <string.h> also on AIX.
59         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
60         self-contained also on AIX 7.1.
61
62 2011-06-04  Bruno Haible  <bruno@clisp.org>
63
64         setlocale: Enable replacement on Cygwin 1.5.
65         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
66         Cygwin 1.5.x.
67         * doc/posix-functions/setlocale.texi: Mention that the problem with the
68         LC_CTYPE category also exists on Cygwin 1.5.x.
69
70 2011-06-03  Bruno Haible  <bruno@clisp.org>
71
72         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
73         * lib/localename.h: Update copyright header.
74         * lib/localename.c: Likewise.
75         * lib/relocatable.h: Likewise.
76         * lib/relocatable.c: Likewise.
77
78 2011-06-02  Bruno Haible  <bruno@clisp.org>
79
80         doc: Fix a module name.
81         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
82
83 2011-06-02  Bruno Haible  <bruno@clisp.org>
84
85         pipe2: Remove dependency on 'nonblocking' module.
86         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
87         O_NONBLOCK is defined by gnulib.
88         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
89         is zero.
90         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
91         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
92         defined by gnulib.
93         (get_nonblocking_flag): New function.
94         (main): Test O_NONBLOCK flag only if it is nonzero.
95         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
96
97 2011-05-31  Bruno Haible  <bruno@clisp.org>
98
99         Fix link errors in tests: openat-die uses gettext-h.
100         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
101         against $(LIBINTL).
102         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
103         against $(LIBINTL).
104         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
105         $(LIBINTL).
106         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
107         against $(LIBINTL).
108         * modules/linkat-tests (Makefile.am): Link test-linkat against
109         $(LIBINTL).
110         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
111         $(LIBINTL).
112         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
113         against $(LIBINTL).
114         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
115         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
116         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
117         $(LIBINTL).
118         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
119         $(LIBINTL).
120         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
121         $(LIBINTL).
122         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
123
124 2011-05-31  Bruno Haible  <bruno@clisp.org>
125
126         Fix link errors in tests: wait-process uses gettext-h.
127         * modules/nonblocking-pipe-tests (Makefile.am): Set
128         test_nonblocking_pipe_main_LDADD.
129         * modules/nonblocking-socket-tests (Makefile.am): Link
130         test-nonblocking-socket-main against $(LIBINTL).
131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
132
133 2011-05-29  Bruno Haible  <bruno@clisp.org>
134
135         wctype-h: Avoid namespace pollution on Solaris 2.6.
136         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
137         identifiers.
138         * doc/posix-headers/wctype.texi: Mention the problem.
139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
140
141 2011-05-28  Jim Meyering  <meyering@redhat.com>
142
143         parse-datetime.y: accommodate -Wstrict-overflow
144         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
145         placate -Wstrict-overflow.
146
147         trim: avoid a warning from -O2 -Wstrict-overflow
148         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
149
150 2011-05-28  Bruno Haible  <bruno@clisp.org>
151
152         getloadavg: Remove an unreliable safety check.
153         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
154         getloadavg.c is in place.
155         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
156         Reported by Sam Steingold <sds@gnu.org>.
157
158 2011-05-26  Simon Josefsson  <simon@josefsson.org>
159
160         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
161
162 2011-05-26  Bruno Haible  <bruno@clisp.org>
163
164         mbsrchr: Avoid collision with system function on Interix.
165         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
166         Reported by Markus Duft <mduft@gentoo.org>.
167
168 2011-05-25  Eric Blake  <eblake@redhat.com>
169
170         getcwd: work around mingw bug
171         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
172         * doc/posix-functions/getcwd.texi (getcwd): Document it.
173         Reported by Matthias Bolte.
174
175 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
176
177         test-intprops: disable -Wtype-limits diagnostics
178         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
179         diagnostics.  Otherwise, the integer overflow macros generate many
180         diagnostics.  Reported by Jim Meyering in
181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
182
183 2011-05-24  Eric Blake  <eblake@redhat.com>
184
185         docs: document recently fixed glibc printf bug
186         * doc/posix-functions/fprintf.texi (fprintf): Document it.
187         * doc/posix-functions/printf.texi (printf): Likewise.
188         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
189         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
190
191 2011-05-24  Eric Blake  <eblake@redhat.com>
192
193         tests: fix logic bug in init.sh
194         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
195         shell.
196
197 2011-05-24  Jim Meyering  <meyering@redhat.com>
198
199         utimensat: do not reference an out-of-scope buffer
200         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
201         declared in an inner scope, yet "times" would be dereferenced outside
202         the scope in which "ts" was valid.
203         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
204         of ts[2] "out/up", so that the use of aliased "times" (via
205         "times = ts;") does not end up referencing an out-of-scope "ts"
206
207         opendir-safer.c: don't clobber errno; don't close negative FD
208         * lib/opendir-safer.c (opendir_safer):
209         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
210         file descriptor, and more importantly, don't clobber the
211         offending errno value with EINVAL.  Before, upon failure
212         of dup_safer, we would pass the negative file descriptor to
213         fdopendir, which would clobber errno.
214
215 2011-05-23  Bruno Haible  <bruno@clisp.org>
216
217         idcache: Fix module description.
218         * modules/idcache (Include): Set to "idcache.h".
219
220 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
221
222         gnulib-tool: fix portability problem with MacOS sed
223         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
224         before the "}".  Problem reported by Leo in
225         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
226         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
227         sed_extract_condition1, sed_extract_condition2.
228
229 2011-05-23  Bruno Haible  <bruno@clisp.org>
230
231         getugroups: Fix module description.
232         * modules/getugroups (Include): Set to "getugroups.h".
233
234 2011-05-23  Bruno Haible  <bruno@clisp.org>
235             Eric Blake  <eblake@redhat.com>
236
237         linkat, renameat: Update dependencies.
238         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
239         * modules/linkat (Depends-on): Likewise. Remove also readlink,
240         symlinkat.
241
242 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
243
244         verify: fix bug when gnulib <assert.h> is also included
245         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
246         is defined, not if _GL_STATIC_ASSERT_H is not defined.
247         Perhaps there's a better way, but this fixes the immediate problem.
248         Problem reported by Bruno Haible in
249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
250
251 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
252
253         clock-time: change to LGPLv2+.
254         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
255         BSD-like but we have no mark for that; this is good enough for now.
256
257 2011-05-21  Bruno Haible  <bruno@clisp.org>
258
259         relocatable-prog-wrapper: Fix possible link error.
260         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
261         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
262         (gl_FUNC_SETENV): ... to here.
263         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
265
266 2011-05-20  Jim Meyering  <meyering@redhat.com>
267
268         maint: replace misused "a" with "an"
269         * doc/intprops.texi: "a integer"
270         * doc/regex.texi: "a explanation"
271         * lib/alignof.h: "a object"
272         * lib/argmatch.h: "a explanation"
273         * lib/argp-help.c: "a option" and "a OPTION_DOC"
274         * lib/stdint.in.h: "a integer"
275         * lib/userspec.c: "a owner"
276         * doc/gnulib.texi: Fix "a idea", and reword.
277
278 2011-05-19  Jim Meyering  <meyering@redhat.com>
279
280         maint: correct misuse of "a" and "an"
281         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
282         * lib/argp-help.c: "an docum...": s/an/a/
283         * lib/argp-parse.c: "An vector": s/An/A/
284         * lib/execute.c: "an native": s/an/a/
285         * lib/spawn-pipe.c: Likewise.
286         * lib/gc.h: "an Gc_rc": s/an/a/
287         * lib/unigbrk.in.h: "an grapheme": s/an/a/
288         * lib/fts.c: "an stat.st_dev": s/an/a/
289
290 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
291
292         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
293         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
294         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
295         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
296         (_GL_REMAINDER_OVERFLOW): Use it.
297
298         intprops: work around C compiler bugs
299         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
300         bug in Sun C 5.11 2010/08/13 and other compilers; see
301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
302
303         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
304         * doc/intprops.texi (Integer Type Determination): Fix
305         documentation for TYPE_IS_INTEGER: it returns an constant
306         expression, not an integer constant expression.  Fix doc for
307         TYPE_SIGNED: it returns an integer constant expression only if its
308         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
309         hardly worth documented that way....)
310
311 2011-05-18  Eric Blake  <eblake@redhat.com>
312
313         fnmatch: avoid compiler warning
314         * lib/fnmatch_loop.c (FCT): Use correct type.
315         Reported by Matthias Bolte.
316
317 2011-05-13  Jim Meyering  <meyering@redhat.com>
318
319         maint.mk: three new prohibit_<HDR>_without_use rules
320         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
321         (sc_prohibit_stdio-safer_without_use): Likewise.
322         (sc_prohibit_xfreopen_without_use): Likewise.
323
324 2011-05-17  Jim Meyering  <meyering@redhat.com>
325
326         announce-gen: fail if the NEWS delta is empty
327         If there's nothing noteworthy in NEWS, then either you forgot
328         or you shouldn't be releasing.
329         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
330
331 2011-05-17  Pádraig Brady <P@draigBrady.com>
332
333         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
334         reserved symbols starting with double underscore from the check.
335
336 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
337
338         intprops: add doc
339         * doc/intprops.texi: New file, documenting intprops.
340         * doc/gnulib.texi (Particular Modules): Include it.
341
342         verify: add doc to gnulib manual and fix example
343         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
344         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
345         (Compile-time Assertions): Fix example so it can't overflow.
346
347 2011-05-17  Jim Meyering  <meyering@redhat.com>
348
349         warnings.m4: don't usurp save_CPPFLAGS variable name
350         * m4/warnings.m4: Prefix local temporary variable name with gl_.
351
352         doc: fix typo
353         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
354
355 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
356             Bruno Haible  <bruno@clisp.org>
357
358         doc: Tweak recent change.
359         * README (Portability guidelines): Tweak new text.
360         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
361         Interix 6.1.
362
363 2011-05-16  Eric Blake  <eblake@redhat.com>
364
365         inttypes: avoid autoconf warning
366         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
367         * m4/stdint.m4 (gl_STDINT_H): Likewise.
368
369 2011-05-16  Sam Steingold <sds@gnu.org>
370         and Eric Blake  <eblake@redhat.com>
371
372         vc-list-files: accept multiple directory operands
373         * build-aux/vc-list-files: Iterate over all remaining operands.
374
375 2011-05-16  Bruno Haible  <bruno@clisp.org>
376
377         Fix confusion regarding deprecated modules.
378         * modules/calloc (Status, Notice): Mark module as deprecated, not
379         obsolete.
380         * modules/fnmatch-posix (Status, Notice): Likewise.
381         * modules/getdate (Status, Notice): Likewise.
382         * modules/getopt (Status, Notice): Likewise.
383         * modules/malloc (Status, Notice): Likewise.
384         * modules/pipe (Status, Notice): Likewise.
385         * modules/realloc (Status, Notice): Likewise.
386         * modules/rename-dest-slash (Status, Notice): Likewise.
387         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
388         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
389         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
390         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
391         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
392
393 2011-05-16  Bruno Haible  <bruno@clisp.org>
394
395         doc: List the target platforms.
396         * doc/gnulib-intro.texi (Target Platforms): New section.
397         * doc/gnulib.texi (Introduction): Update menu.
398         * README (Portability guidelines): Refer to the new section. Update
399         statement about oldest supported environment. Remove rationale why
400         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
401         unportable C89 function.
402         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
403         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
404
405 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
406
407         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
408
409 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
410
411         intprops-tests: new module
412         * modules/intprops-tests, tests/test-intprops.c: New files.
413
414         intprops: add safe, portable integer overflow checking
415         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
416         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
417         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
418         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
419         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
420         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
421         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
422         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
423         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
424         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
425         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
426
427 2011-05-12  James Youngman  <jay@gnu.org>
428
429         Add a test for glibc's Bugzilla bug #12378.
430         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
431         doesn't allow the literal matching of a lone "[" (which is
432         required by POSIX).
433         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
434
435 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
436
437         Sync glibc change fixing Bugzilla bug #12378.
438         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
439         beginning and fall back to matching as normal character if the
440         string ends before the matching ']' is found.  This is what POSIX
441         requires.
442
443 2011-05-13  Eric Blake  <eblake@redhat.com>
444
445         getcwd-lgpl: relax test for FreeBSD
446         * doc/posix-functions/getcwd.texi (getcwd): Document portability
447         issue.
448         * tests/test-getcwd-lgpl.c (main): Relax test.
449         Reported by Matthias Bolte.
450
451 2011-05-11  Eric Blake  <eblake@redhat.com>
452
453         test-fflush: silence compiler warning
454         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
455
456 2011-05-11  Bruno Haible  <bruno@clisp.org>
457
458         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
459         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
460         * modules/canonicalize (Depends-on): Add 'nocrash'.
461         * modules/canonicalize-lgpl (Depends-on): Likewise.
462         * doc/posix-functions/realpath.texi: Update platforms list.
463         Reported by Ryan Schmidt <ryandesign@macports.org>.
464
465 2011-05-11  Bruno Haible  <bruno@clisp.org>
466
467         group-member: Declare function in <unistd.h>.
468         * lib/unistd.in.h (group_member): New declaration.
469         * lib/group-member.h: Remove file.
470         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
471         * tests/test-unistd-c++.cc: Check signature of group_member.
472         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
473         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
474         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
475         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
476         HAVE_GROUP_MEMBER.
477         * modules/group-member (Files): Remove lib/group-member.h.
478         (Depends-on): Add unistd. Specify conditions.
479         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
480         (Include): Change to <unistd.h>.
481         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
482         HAVE_GROUP_MEMBER.
483         * NEWS: Mention the change.
484         * lib/euidaccess.c: Don't include group-member.h.
485
486 2011-05-11  Bruno Haible  <bruno@clisp.org>
487
488         group-member: Document module.
489         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
490         module.
491
492 2011-05-11  Bruno Haible  <bruno@clisp.org>
493
494         fclose: Fix mistake earlier today.
495         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
496
497 2011-05-11  Eric Blake  <eblake@redhat.com>
498
499         fclose: preserve fflush errors
500         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
501         Reported by Jim Meyering.
502
503         bootstrap: support a prereq of 'rpcgen -' on RHEL5
504         * build-aux/bootstrap (check_versions): When no specific version
505         is required, merely check that the app produces an exit status
506         that indicates its existence.
507
508         maint.mk: drop redundant check
509         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
510         the same but better.
511
512 2011-05-11  Bruno Haible  <bruno@clisp.org>
513
514         fclose: Fix possible link error.
515         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
516         unregister_shadow_fd. Improve comments.
517         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
518         Eric Blake.
519
520 2011-05-11  Jim Meyering  <meyering@redhat.com>
521
522         maint.mk: improve "can not" detection and generalize rule name
523         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
524         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
525         Use the same technique as in sc_prohibit_doubled_word, so that
526         we recognize "can not" also when the words are separated by a newline.
527         Suggested by Eric Blake.
528         (perl_filename_lineno_text_): Define.  Factored out of...
529         (prohibit_doubled_word_): ...here.  Use the new definition.
530         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
531         (prohibit_undesirable_word_seq_RE_): New overridable variable.
532         (ignore_undesirable_word_sequence_RE_): New overridable variable.
533
534 2011-05-10  Eric Blake  <eblake@redhat.com>
535
536         fclose: avoid double close race when possible
537         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
538         all but WINDOWS_SOCKETS.
539
540 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
541
542         openat: correct new comment
543         * lib/openat-proc.c (openat_proc_name): Correct the comment.
544
545 2011-05-10  Jim Meyering  <meyering@redhat.com>
546
547         openat: add comments
548         * lib/openat-proc.c (openat_proc_name): Add comments,
549         mostly from Eric Blake.
550
551 2011-05-09  Eric Blake  <eblake@redhat.com>
552
553         openat: reduce syscalls in first probe of /proc
554         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
555         be a directory.  Simplify the probe for .. bugs.
556         * modules/openat (Depends-on): Drop same-inode.
557         Reported by Bastien ROUCARIES.
558
559 2011-05-09  Jim Meyering  <meyering@redhat.com>
560
561         maint.mk: change semantics/name of tight_scope variables
562         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
563         Rename variables to align with semantics that make them more useful.
564
565         maint.mk: tweak new rule's name not to impinge
566         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
567         (sc_tight_scope): Use new rule name rather than $@-0.
568
569         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
570         * top/maint.mk (sc_tight_scope): New rule.
571         (sc_tight_scope-0): New rule, ifdef'd out.
572         (_gl_TS_dir): Default.
573         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
574         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
575
576 2011-05-09  Simon Josefsson  <simon@josefsson.org>
577
578         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
579         Haible <bruno@clisp.org>.
580
581 2011-05-08  Bruno Haible  <bruno@clisp.org>
582
583         Comments.
584         * m4/isnanf.m4: Add comment.
585         * m4/isnanl.m4: Likewise.
586
587 2011-05-08  Bruno Haible  <bruno@clisp.org>
588
589         glob: Remove obsolete macro.
590         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
591
592 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
593
594         intprops: Sun C 5.11 supports __typeof__
595         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
596         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
597         which is new.
598         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
599
600         intprops: switch to usual gnulib indenting and naming
601         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
602         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
603
604         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
605
606 2011-05-08  Jim Meyering  <meyering@redhat.com>
607
608         maint.mk: suppress "Entering/Leaving directory" diag in announcement
609         * top/maint.mk (release-prep): Use make's --no-print-directory
610         option when generating the announcement.  This eliminates the
611         pesky "make[2]: Entering/Leaving directory" diagnostics in the
612         generated announcement template.
613
614 2011-05-08  Bruno Haible  <bruno@clisp.org>
615
616         tzset: Fix gettimeofday wrapper on Solaris 2.6.
617         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
618         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
619
620 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
621
622         ignore-value, verify: Omit include files from lib_SOURCES.
623         * modules/ignore-value, modules/verify (Makefile.am):
624         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
625         that leads Automake to duplicate use of am__objects_... variables
626         in Makefile.in.  See
627         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
628
629 2011-05-07  Bruno Haible  <bruno@clisp.org>
630
631         fclose: Simplify autoconf macro.
632         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
633         defined.
634
635 2011-05-07  Bruno Haible  <bruno@clisp.org>
636
637         canonicalize-lgpl: Fix autoconf macro ordering bug.
638         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
639         gl_STDLIB_H_DEFAULTS.
640
641 2011-05-06  Eric Blake  <eblake@redhat.com>
642
643         maintainer-makefile: make sc_po_check easier to tune
644         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
645         to probe for strings, such as an alternate location for gnulib.
646
647         fclose: guarantee behavior on seekable stdin
648         * modules/fclose (Depends-on): Add fflush.
649         * doc/posix-functions/fclose.texi (fclose): Document this.
650         * tests/test-fclose.c (main): Make test for this unconditional.
651
652 2011-05-06  Bruno Haible  <bruno@clisp.org>
653
654         fflush, fpurge: Relicense under LGPLv2+.
655         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
656         * modules/fpurge (License): Likewise.
657         With permission from Eric Blake and Jim Meyering.
658         Suggested by Eric Blake.
659
660 2011-05-06  Karl Berry  <karl@gnu.org>
661
662         * MODULES.html.sh (func_all_modules): remove exit.
663
664 2011-05-06  Jim Meyering  <meyering@redhat.com>
665
666         maint.mk: use info-gnu@ as the default only for a stable release
667         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
668         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
669         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
670         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
671
672 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
673
674         assert-h: new module, which supports C1X-style static_assert
675         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
676         * lib/verify.h: Revamp so that this can be copied into assert.h,
677         while retaining the ability to use it standalone as before.
678         Rename private identifiers so as not to encroach on the
679         standard C namespace, since this is now used by assert.h.
680         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
681         the old verify_true.
682         (_GL_VERIFY_TRUE): New macro, with much of the contents of
683         the old verify_true.  Use _GL_VERIFY_TYPE.
684         (_GL_VERIFY): New macro, with much of the contents of the old verify.
685         (static_assert): New macro, if _GL_STATIC_ASSERT_H
686         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
687         defined when this file is copied into the replacement assert.h.
688         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
689         and _Static_assert is not built in.
690         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
691         defined, and use the new macros mentioned above.
692         * doc/posix-headers/assert.texi: Document this.
693
694 2011-05-05  Bruno Haible  <bruno@clisp.org>
695
696         fclose, fflush: Respect rules for use of AC_LIBOBJ.
697         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
698         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
699         gl_REPLACE_FCLOSE here.
700         * modules/fflush (Depends-on): Remove fclose.
701         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
702         combination with module 'fclose'.
703
704 2011-05-05  Bruno Haible  <bruno@clisp.org>
705
706         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
707         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
708         gl_FUNC_FFLUSH.
709         (gl_FUNC_FFLUSH): Use it.
710         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
711         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
712         gl_REPLACE_FSEEKO here.
713
714 2011-05-05  Bruno Haible  <bruno@clisp.org>
715
716         tzset: Relicense under LGPL.
717         * modules/tzset (License): Change to LGPL.
718         No agreement needed; it's a no-op.
719
720         strtoimax, strtoumax: Relicense under LGPL.
721         * modules/strtoimax (License): Change to LGPL.
722         * modules/strtoumax (License): Likewise.
723         With permission from Jim Meyering, Paul Eggert:
724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
726
727         getgroups: Relicense under LGPL.
728         * modules/getgroups (License): Change to LGPL.
729         With permission from Jim Meyering, Paul Eggert, Eric Blake:
730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
732         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
733
734         nanosleep: Relicense under LGPL.
735         * modules/nanosleep (License): Change to LGPL.
736         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
737         Haible:
738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
740         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
742
743         futimens: Relicense under LGPL.
744         * modules/futimens (License): Change to LGPL.
745         With permission from Eric Blake:
746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
747
748         fflush: Relicense under LGPL.
749         * modules/fflush (License): Change to LGPL.
750         With permission from Eric Blake, Bruno Haible, Jim Meyering:
751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
752         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
753         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
754
755         tmpfile: Relicense under LGPL.
756         * modules/tmpfile (License): Change to LGPL.
757         With permission from Ben Pfaff:
758         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
759
760         isfinite: Relicense under LGPL.
761         * modules/isfinite (License): Change to LGPL.
762         With permission from Ben Pfaff, Bruno Haible:
763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
764         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
765
766         acosl..tanl: Relicense under LGPL.
767         * modules/acosl (License): Change to LGPL.
768         * modules/asinl (License): Likewise.
769         * modules/atanl (License): Likewise.
770         * modules/cosl (License): Likewise.
771         * modules/expl (License): Likewise.
772         * modules/logl (License): Likewise.
773         * modules/sinl (License): Likewise.
774         * modules/sqrtl (License): Likewise.
775         * modules/tanl (License): Likewise.
776         Source code originally from glibc and Paolo Bonzini. Agreements:
777         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
779
780 2011-05-05  Bruno Haible  <bruno@clisp.org>
781
782         signal: Define sighandler_t.
783         * lib/signal.in.h (sighandler_t): New type.
784         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
785         whether sighandler_t is defined.
786         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
787         * modules/signal (Depends-on): Add extensions.
788         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
789         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
790         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
791
792 2011-05-05  Eric Blake  <eblake@redhat.com>
793
794         maint: remove useless REPLACE_*_H macros
795         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
796         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
797         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
798         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
799         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
800         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
801         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
802         * m4/btowc.m4: Update callers.
803         * m4/dirfd.m4: Likewise.
804         * m4/duplocale.m4: Likewise.
805         * m4/fchdir.m4: Likewise.
806         * m4/fdopendir.m4: Likewise.
807         * m4/inet_ntop.m4: Likewise.
808         * m4/inet_pton.m4: Likewise.
809         * m4/ioctl.m4: Likewise.
810         * m4/mbrlen.m4: Likewise.
811         * m4/mbrtowc.m4: Likewise.
812         * m4/mbsinit.m4: Likewise.
813         * m4/mbsnrtowcs.m4: Likewise.
814         * m4/mbsrtowcs.m4: Likewise.
815         * m4/poll.m4: Likewise.
816         * m4/setlocale.m4: Likewise.
817         * m4/wcrtomb.m4: Likewise.
818         * m4/wcsnrtombs.m4: Likewise.
819         * m4/wcsrtombs.m4: Likewise.
820         * m4/wctob.m4: Likewise.
821         * m4/wcwidth.m4: Likewise.
822         * modules/posix_spawn: Likewise.
823         * modules/posix_spawn_file_actions_addclose: Likewise.
824         * modules/posix_spawn_file_actions_adddup2: Likewise.
825         * modules/posix_spawn_file_actions_addopen: Likewise.
826         * modules/posix_spawn_file_actions_destroy: Likewise.
827         * modules/posix_spawn_file_actions_init: Likewise.
828         * modules/posix_spawnattr_destroy: Likewise.
829         * modules/posix_spawnattr_getflags: Likewise.
830         * modules/posix_spawnattr_getpgroup: Likewise.
831         * modules/posix_spawnattr_getschedparam: Likewise.
832         * modules/posix_spawnattr_getschedpolicy: Likewise.
833         * modules/posix_spawnattr_getsigdefault: Likewise.
834         * modules/posix_spawnattr_getsigmask: Likewise.
835         * modules/posix_spawnattr_init: Likewise.
836         * modules/posix_spawnattr_setflags: Likewise.
837         * modules/posix_spawnattr_setpgroup: Likewise.
838         * modules/posix_spawnattr_setschedparam: Likewise.
839         * modules/posix_spawnattr_setschedpolicy: Likewise.
840         * modules/posix_spawnattr_setsigdefault: Likewise.
841         * modules/posix_spawnattr_setsigmask: Likewise.
842         * modules/posix_spawnp: Likewise.
843
844 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
845
846         Add option to do-release-commit-and-tag to specify branch.
847         * build-aux/do-release-commit-and-tag: Add --branch.
848
849 2011-05-03  Bruno Haible  <bruno@clisp.org>
850
851         Avoid unnecessary compilation units, through conditional dependencies.
852         * modules/accept (Depends-on): Add conditions to the dependencies.
853         * modules/acosl (Depends-on): Likewise.
854         * modules/argz (Depends-on): Likewise.
855         * modules/asinl (Depends-on): Likewise.
856         * modules/atanl (Depends-on): Likewise.
857         * modules/atoll (Depends-on): Likewise.
858         * modules/bind (Depends-on): Likewise.
859         * modules/btowc (Depends-on): Likewise.
860         * modules/canonicalize-lgpl (Depends-on): Likewise.
861         * modules/ceil (Depends-on): Likewise.
862         * modules/ceilf (Depends-on): Likewise.
863         * modules/ceill (Depends-on): Likewise.
864         * modules/chdir-long (Depends-on): Likewise.
865         * modules/chown (Depends-on): Likewise.
866         * modules/close (Depends-on): Likewise.
867         * modules/connect (Depends-on): Likewise.
868         * modules/cosl (Depends-on): Likewise.
869         * modules/dirfd (Depends-on): Likewise.
870         * modules/dprintf (Depends-on): Likewise.
871         * modules/dprintf-posix (Depends-on): Likewise.
872         * modules/error (Depends-on): Likewise.
873         * modules/euidaccess (Depends-on): Likewise.
874         * modules/expl (Depends-on): Likewise.
875         * modules/faccessat (Depends-on): Likewise.
876         * modules/fchdir (Depends-on): Likewise.
877         * modules/fclose (Depends-on): Likewise.
878         * modules/fcntl (Depends-on): Likewise.
879         * modules/fdopendir (Depends-on): Likewise.
880         * modules/fflush (Depends-on): Likewise.
881         * modules/floor (Depends-on): Likewise.
882         * modules/floorf (Depends-on): Likewise.
883         * modules/floorl (Depends-on): Likewise.
884         * modules/fnmatch (Depends-on): Likewise.
885         * modules/fopen (Depends-on): Likewise.
886         * modules/fprintf-posix (Depends-on): Likewise.
887         * modules/frexp (Depends-on): Likewise.
888         * modules/frexp-nolibm (Depends-on): Likewise.
889         * modules/frexpl (Depends-on): Likewise.
890         * modules/frexpl-nolibm (Depends-on): Likewise.
891         * modules/fseek (Depends-on): Likewise.
892         * modules/fsusage (Depends-on): Likewise.
893         * modules/ftell (Depends-on): Likewise.
894         * modules/ftello (Depends-on): Likewise.
895         * modules/futimens (Depends-on): Likewise.
896         * modules/getcwd (Depends-on): Likewise.
897         * modules/getcwd-lgpl (Depends-on): Likewise.
898         * modules/getdelim (Depends-on): Likewise.
899         * modules/getdomainname (Depends-on): Likewise.
900         * modules/getgroups (Depends-on): Likewise.
901         * modules/gethostname (Depends-on): Likewise.
902         * modules/getline (Depends-on): Likewise.
903         * modules/getlogin_r (Depends-on): Likewise.
904         * modules/getopt-posix (Depends-on): Likewise.
905         * modules/getpeername (Depends-on): Likewise.
906         * modules/getsockname (Depends-on): Likewise.
907         * modules/getsockopt (Depends-on): Likewise.
908         * modules/getsubopt (Depends-on): Likewise.
909         * modules/getusershell (Depends-on): Likewise.
910         * modules/glob (Depends-on): Likewise.
911         * modules/grantpt (Depends-on): Likewise.
912         * modules/iconv_open (Depends-on): Likewise.
913         * modules/iconv_open-utf (Depends-on): Likewise.
914         * modules/inet_ntop (Depends-on): Likewise.
915         * modules/inet_pton (Depends-on): Likewise.
916         * modules/ioctl (Depends-on): Likewise.
917         * modules/isapipe (Depends-on): Likewise.
918         * modules/isfinite (Depends-on): Likewise.
919         * modules/isinf (Depends-on): Likewise.
920         * modules/lchown (Depends-on): Likewise.
921         * modules/ldexpl (Depends-on): Likewise.
922         * modules/link (Depends-on): Likewise.
923         * modules/linkat (Depends-on): Likewise.
924         * modules/listen (Depends-on): Likewise.
925         * modules/logl (Depends-on): Likewise.
926         * modules/lstat (Depends-on): Likewise.
927         * modules/mbrlen (Depends-on): Likewise.
928         * modules/mbrtowc (Depends-on): Likewise.
929         * modules/mbsinit (Depends-on): Likewise.
930         * modules/mbsnrtowcs (Depends-on): Likewise.
931         * modules/mbsrtowcs (Depends-on): Likewise.
932         * modules/mbtowc (Depends-on): Likewise.
933         * modules/memcmp (Depends-on): Likewise.
934         * modules/mkdir (Depends-on): Likewise.
935         * modules/mkdtemp (Depends-on): Likewise.
936         * modules/mkfifo (Depends-on): Likewise.
937         * modules/mkfifoat (Depends-on): Likewise.
938         * modules/mknod (Depends-on): Likewise.
939         * modules/mkostemp (Depends-on): Likewise.
940         * modules/mkostemps (Depends-on): Likewise.
941         * modules/mkstemp (Depends-on): Likewise.
942         * modules/mkstemps (Depends-on): Likewise.
943         * modules/mktime (Depends-on): Likewise.
944         * modules/nanosleep (Depends-on): Likewise.
945         * modules/open (Depends-on): Likewise.
946         * modules/openat (Depends-on): Likewise.
947         * modules/perror (Depends-on): Likewise.
948         * modules/poll (Depends-on): Likewise.
949         * modules/popen (Depends-on): Likewise.
950         * modules/posix_spawn (Depends-on): Likewise.
951         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
952         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
953         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
954         * modules/posix_spawnp (Depends-on): Likewise.
955         * modules/pread (Depends-on): Likewise.
956         * modules/printf-posix (Depends-on): Likewise.
957         * modules/ptsname (Depends-on): Likewise.
958         * modules/putenv (Depends-on): Likewise.
959         * modules/pwrite (Depends-on): Likewise.
960         * modules/readline (Depends-on): Likewise.
961         * modules/readlink (Depends-on): Likewise.
962         * modules/readlinkat (Depends-on): Likewise.
963         * modules/recv (Depends-on): Likewise.
964         * modules/recvfrom (Depends-on): Likewise.
965         * modules/regex (Depends-on): Likewise.
966         * modules/remove (Depends-on): Likewise.
967         * modules/rename (Depends-on): Likewise.
968         * modules/renameat (Depends-on): Likewise.
969         * modules/rmdir (Depends-on): Likewise.
970         * modules/round (Depends-on): Likewise.
971         * modules/roundf (Depends-on): Likewise.
972         * modules/roundl (Depends-on): Likewise.
973         * modules/rpmatch (Depends-on): Likewise.
974         * modules/select (Depends-on): Likewise.
975         * modules/send (Depends-on): Likewise.
976         * modules/sendto (Depends-on): Likewise.
977         * modules/setenv (Depends-on): Likewise.
978         * modules/setlocale (Depends-on): Likewise.
979         * modules/setsockopt (Depends-on): Likewise.
980         * modules/shutdown (Depends-on): Likewise.
981         * modules/sigaction (Depends-on): Likewise.
982         * modules/signbit (Depends-on): Likewise.
983         * modules/sigprocmask (Depends-on): Likewise.
984         * modules/sinl (Depends-on): Likewise.
985         * modules/sleep (Depends-on): Likewise.
986         * modules/snprintf (Depends-on): Likewise.
987         * modules/snprintf-posix (Depends-on): Likewise.
988         * modules/socket (Depends-on): Likewise.
989         * modules/sprintf-posix (Depends-on): Likewise.
990         * modules/sqrtl (Depends-on): Likewise.
991         * modules/stat (Depends-on): Likewise.
992         * modules/strchrnul (Depends-on): Likewise.
993         * modules/strdup-posix (Depends-on): Likewise.
994         * modules/strerror (Depends-on): Likewise.
995         * modules/strerror_r-posix (Depends-on): Likewise.
996         * modules/strndup (Depends-on): Likewise.
997         * modules/strnlen (Depends-on): Likewise.
998         * modules/strptime (Depends-on): Likewise.
999         * modules/strsep (Depends-on): Likewise.
1000         * modules/strsignal (Depends-on): Likewise.
1001         * modules/strstr-simple (Depends-on): Likewise.
1002         * modules/strtod (Depends-on): Likewise.
1003         * modules/strtoimax (Depends-on): Likewise.
1004         * modules/strtok_r (Depends-on): Likewise.
1005         * modules/strtoumax (Depends-on): Likewise.
1006         * modules/symlink (Depends-on): Likewise.
1007         * modules/symlinkat (Depends-on): Likewise.
1008         * modules/tanl (Depends-on): Likewise.
1009         * modules/tcgetsid (Depends-on): Likewise.
1010         * modules/tmpfile (Depends-on): Likewise.
1011         * modules/trunc (Depends-on): Likewise.
1012         * modules/truncf (Depends-on): Likewise.
1013         * modules/truncl (Depends-on): Likewise.
1014         * modules/uname (Depends-on): Likewise.
1015         * modules/unlink (Depends-on): Likewise.
1016         * modules/unlockpt (Depends-on): Likewise.
1017         * modules/unsetenv (Depends-on): Likewise.
1018         * modules/usleep (Depends-on): Likewise.
1019         * modules/utimensat (Depends-on): Likewise.
1020         * modules/vasprintf (Depends-on): Likewise.
1021         * modules/vdprintf (Depends-on): Likewise.
1022         * modules/vdprintf-posix (Depends-on): Likewise.
1023         * modules/vfprintf-posix (Depends-on): Likewise.
1024         * modules/vprintf-posix (Depends-on): Likewise.
1025         * modules/vsnprintf (Depends-on): Likewise.
1026         * modules/vsnprintf-posix (Depends-on): Likewise.
1027         * modules/vsprintf-posix (Depends-on): Likewise.
1028         * modules/wcrtomb (Depends-on): Likewise.
1029         * modules/wcscasecmp (Depends-on): Likewise.
1030         * modules/wcscspn (Depends-on): Likewise.
1031         * modules/wcsdup (Depends-on): Likewise.
1032         * modules/wcsncasecmp (Depends-on): Likewise.
1033         * modules/wcsnrtombs (Depends-on): Likewise.
1034         * modules/wcspbrk (Depends-on): Likewise.
1035         * modules/wcsrtombs (Depends-on): Likewise.
1036         * modules/wcsspn (Depends-on): Likewise.
1037         * modules/wcsstr (Depends-on): Likewise.
1038         * modules/wcstok (Depends-on): Likewise.
1039         * modules/wcswidth (Depends-on): Likewise.
1040         * modules/wctob (Depends-on): Likewise.
1041         * modules/wctomb (Depends-on): Likewise.
1042         * modules/wctype (Depends-on): Likewise.
1043         * modules/wcwidth (Depends-on): Likewise.
1044         * modules/write (Depends-on): Likewise.
1045
1046 2011-05-03  Bruno Haible  <bruno@clisp.org>
1047
1048         Support for conditional dependencies.
1049         * doc/gnulib.texi (Module description): Document the syntax of
1050         conditional dependencies.
1051         * gnulib-tool: New option --conditional-dependencies.
1052         (func_usage): Document it.
1053         (cond_dependencies): New variable.
1054         (func_get_automake_snippet_conditional,
1055         func_get_automake_snippet_unconditional): New functions, extracted from
1056         func_get_automake_snippet.
1057         (func_get_automake_snippet): Use them.
1058         (sed_first_32_chars): New variable.
1059         (func_module_shellfunc_name): New function.
1060         (func_module_shellvar_name): New function.
1061         (func_module_conditional_name): New function.
1062         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1063         func_cond_module_condition): New functions.
1064         (func_modules_transitive_closure): Add support for conditional
1065         dependencies.
1066         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1067         conditional automake snippet in an automake conditional.
1068         (func_emit_autoconf_snippets): Emit shell functions that contain the
1069         code for conditional modules.
1070         (func_import, func_create_testdir): Update specification.
1071
1072 2011-05-03  Eric Blake  <eblake@redhat.com>
1073
1074         test-getaddrinfo: report error information
1075         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1076
1077 2011-05-03  Jim Meyering  <meyering@redhat.com>
1078
1079         bootstrap: avoid build failure when $GZIP is set
1080         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1081         program name.  If defined at all, it is supposed to list gzip options.
1082         Reported by Alan Curry in http://debbugs.gnu.org/8609
1083
1084 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1085
1086         readme-release: new module with release instructions
1087         * modules/readme-release: New module.
1088         * top/README-release: New file, from coreutils, grep, diffutils.
1089         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1090
1091 2011-05-02  Eric Blake  <eblake@redhat.com>
1092
1093         fflush: also replace fclose when fixing fflush
1094         * modules/fflush (Depends-on): Add fclose.
1095         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1096         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1097         memstreams with no backing fd.
1098         * doc/posix-functions/fclose.texi (fclose): Document the use of
1099         fflush module to fix the bug.
1100         * tests/test-fclose.c (main): Relax test when fclose is used in
1101         isolation.
1102
1103         fclose: add some tests
1104         * modules/fclose-tests: New test module.
1105         * tests/test-fclose.c: New file.
1106         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1107
1108         fclose: reduced dependencies
1109         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1110         simpler lseek.
1111         * lib/fclose.c (rpl_fclose): Likewise.
1112         Reported by Simon Josefsson.
1113
1114         exit: drop remaining clients
1115         * modules/argmatch (Depends-on): Replace exit with stdlib.
1116         * modules/copy-file (Depends-on): Likewise.
1117         * modules/execute (Depends-on): Likewise.
1118         * modules/exitfail (Depends-on): Likewise.
1119         * modules/obstack (Depends-on): Likewise.
1120         * modules/pagealign_alloc (Depends-on): Likewise.
1121         * modules/pipe-filter-gi (Depends-on): Likewise.
1122         * modules/pipe-filter-ii (Depends-on): Likewise.
1123         * modules/savewd (Depends-on): Likewise.
1124         * modules/spawn-pipe (Depends-on): Likewise.
1125         * modules/wait-process (Depends-on): Likewise.
1126         * modules/xsetenv (Depends-on): Likewise.
1127         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1128         * modules/git-merge-changelog (Depends-on): Likewise.
1129         * modules/long-options (Depends-on): Likewise.
1130         * modules/pt_chown (Depends-on): Likewise.
1131         * modules/sysexits (Depends-on): Likewise.
1132
1133         freading: relax license from LGPLv3+ to LGPLv2+
1134         * modules/freading (License): Relax LGPL version.
1135
1136 2011-05-02  Bruno Haible  <bruno@clisp.org>
1137
1138         fchdir: Remove unused dependencies.
1139         * modules/fchdir (Depends-on): Remove include_next.
1140
1141 2011-05-02  Bruno Haible  <bruno@clisp.org>
1142
1143         gnulib-tool: Refactor.
1144         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1145         from func_emit_autoconf_snippets.
1146         (func_emit_autoconf_snippets): Use it.
1147
1148 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1149
1150         * NEWS: Document removal of 'exit'.
1151         * modules/exit: Remove file.
1152
1153 2011-05-01  Bruno Haible  <bruno@clisp.org>
1154
1155         Update DEPENDENCIES.
1156         * DEPENDENCIES (gettext): Recommend the newest release.
1157         Reported by Simon Josefsson.
1158
1159 2011-05-01  Bruno Haible  <bruno@clisp.org>
1160
1161         gnulib-tool: Reduce code duplication.
1162         * gnulib-tool (func_emit_autoconf_snippets): New function.
1163         (func_import, func_create_testdir): Use it.
1164
1165 2011-04-30  Eric Blake  <eblake@redhat.com>
1166
1167         fclose: don't fail on non-seekable input stream
1168         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1169         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1170         since fflush is allowed to fail in that case.
1171
1172 2011-04-30  Bruno Haible  <bruno@clisp.org>
1173
1174         dup3: cleanup
1175         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1176
1177 2011-04-30  Bruno Haible  <bruno@clisp.org>
1178
1179         netdb: Make it work in C++ mode.
1180         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1181         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1182         module.
1183         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1184         gl_MODULE_INDICATOR_FOR_TESTS.
1185         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1186         * modules/netdb-c++-tests: New file.
1187         * tests/test-netdb-c++.cc: New file.
1188
1189 2011-04-30  Bruno Haible  <bruno@clisp.org>
1190
1191         New modules 'vfscanf', 'vscanf'.
1192         * modules/vfscanf: New file.
1193         * modules/vscanf: New file.
1194         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1195         here.
1196         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1197         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1198
1199 2011-04-30  Bruno Haible  <bruno@clisp.org>
1200
1201         passfd: Add comments.
1202         * lib/passfd.c: Add comments about platforms.
1203
1204 2011-04-30  Bruno Haible  <bruno@clisp.org>
1205
1206         sys_uio: Make <sys/uio.h> self-contained.
1207         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1208         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1209
1210 2011-04-30  Bruno Haible  <bruno@clisp.org>
1211
1212         sys_socket: Ensure 'struct iovec' definition.
1213         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1214         <sys/socket.h>.
1215         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1216
1217 2011-04-30  Bruno Haible  <bruno@clisp.org>
1218
1219         sys_uio: Protect definition of 'struct iovec'.
1220         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1221         it as a C struct.
1222
1223 2011-04-30  Bruno Haible  <bruno@clisp.org>
1224
1225         manywarnings: fix indentation
1226         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1227
1228 2011-04-30  Pádraig Brady <P@draigBrady.com>
1229
1230         manywarnings: add -Wno-missing-field-initializers if needed.
1231         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1232         option if it's needed to allow initialization with { 0, }
1233
1234 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1235
1236         announce-gen: cosmetic improvement
1237         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1238
1239 2011-04-29  Jim Meyering  <meyering@redhat.com>
1240
1241         vc-list-files: indent with spaces, not TABs
1242         * build-aux/vc-list-files: Convert leading TABs to spaces,
1243         to match the style of most other files in gnulib.
1244
1245         announce-gen: indent with spaces, not TABs
1246         * build-aux/announce-gen: Convert all TABs to spaces, to match
1247         the style of most other files in gnulib.
1248
1249 2011-04-29  Eric Blake  <eblake@redhat.com>
1250
1251         quotearg: avoid uninitialized variable use
1252         * lib/quotearg.c (quoting_options_from_style): Initialize
1253         remaining fields, and ensure that custom styles are only used via
1254         quoting_options rather than quoting_style.
1255
1256 2011-04-29  Jim Meyering  <meyering@redhat.com>
1257
1258         maint.mk: remove unused VC-tag variable
1259         * top/maint.mk (VC-tag): Remove unused variable.
1260
1261 2011-04-29  Bruno Haible  <bruno@clisp.org>
1262
1263         netdb: fix gai_strerror replacements
1264         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1265         * modules/netdb: Substitute it.
1266
1267 2011-04-29  Jim Meyering  <meyering@redhat.com>
1268
1269         test-getcwd.c: avoid new set-but-not-used warning
1270         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1271         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1272         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1273         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1274
1275         test-hash.c: avoid a new shadowing warning
1276         * tests/test-hash.c (main): Don't shadow "dup".
1277
1278 2011-04-28  Eric Blake  <eblake@redhat.com>
1279
1280         getaddrinfo: fix gai_strerror signature
1281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1282         and work around mingw with UNICODE defined.
1283         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1284         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1285         * modules/netdb (Makefile.am): Substitute it.
1286         * lib/netdb.in.h (gai_strerror): Declare replacement.
1287         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1288         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1289         the fix.
1290
1291         getsockopt: avoid compiler warning
1292         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1293         Reported by Matthias Bolte.
1294
1295         tests: drop unused link dependency
1296         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1297         * modules/dirent-safer-tests (Makefile.am): Likewise.
1298         * modules/fdopendir-tests (Makefile.am): Likewise.
1299         * modules/mkfifoat-tests (Makefile.am): Likewise.
1300         * modules/openat-safer-tests (Makefile.am): Likewise.
1301         * modules/openat-tests (Makefile.am): Likewise.
1302         * modules/readlinkat-tests (Makefile.am): Likewise.
1303         * modules/symlinkat-tests (Makefile.am): Likewise.
1304         * modules/linkat-tests (Makefile.am): Likewise.
1305         (Depends-on): Switch to filenamecat-lgpl.
1306         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1307         LIBINTL.
1308         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1309         * tests/test-linkat.c (main): Don't require xalloc.
1310
1311         hash, mgetgroups: drop xalloc dependency
1312         * lib/hash.c (includes): Adjust includes.
1313         * lib/mgetgroups.c (includes): Likewise.
1314         (xgetgroups): Move...
1315         * lib/xgetgroups.c: ...to new file.
1316         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1317         * modules/xgetgroups: New file, split from...
1318         * modules/mgetgroups: ...here.
1319         (Depends-on): Add xalloc-oversized.
1320         * modules/hash (Depends-on): Likewise.
1321         * modules/hash-tests (Depends-on): Drop xalloc.
1322         (test_hash_LDADD): Drop unused library.
1323         * tests/test-hash.c (main): Break xalloc dependency.
1324         (includes): Drop unused include.
1325
1326         xalloc-oversized: new module
1327         * modules/xalloc-oversized: New module.
1328         * modules/xalloc (Depends-on): Add it.
1329         * lib/xalloc.h (xalloc_oversized): Move...
1330         * lib/xalloc-oversized.h: ...into new file.
1331
1332         utimecmp: drop dependency on xmalloc
1333         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1334         due to memory pressure.
1335         * modules/utimecmp (Depends-on): Drop xalloc.
1336
1337 2011-04-27  Eric Blake  <eblake@redhat.com>
1338
1339         getcwd: fix mingw bugs
1340         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1341         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1342         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1343
1344 2011-04-27  Bruno Haible  <bruno@clisp.org>
1345
1346         mkstemps: Ensure declaration on MacOS X 10.5.
1347         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1348         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1349         MacOS X.
1350
1351 2011-04-27  Bruno Haible  <bruno@clisp.org>
1352
1353         mkstemp: More documentation.
1354         * doc/posix-functions/mkstemp.texi: Document header file problem on
1355         MacOS X.
1356
1357 2011-04-27  Bruno Haible  <bruno@clisp.org>
1358
1359         mkstemp: Tweak configure message when cross-compiling.
1360         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1361         result as a guess.
1362
1363 2011-04-27  Bruno Haible  <bruno@clisp.org>
1364
1365         clean-temp: Clarify what it does.
1366         * lib/clean-temp.h: Add more comments.
1367         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1368         module.
1369         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1370         * doc/glibc-functions/mkstemps.texi: Likewise.
1371         * doc/glibc-functions/mkostemps.texi: Likewise.
1372
1373 2011-04-27  Eric Blake  <eblake@redhat.com>
1374
1375         fchdir: avoid extra chdir and fix test
1376         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1377         getcwd-lgpl.
1378         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1379         have to be canonical.
1380         (canonicalize_file_name): Drop unused macro.
1381         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1382
1383         filenamecat-lgpl: fix licence
1384         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1385         when it was first created.
1386
1387         linkat, renameat: add missing dependency
1388         * modules/linkat (Depends-on): Require getcwd-lgpl.
1389         * modules/renameat (Depends-on): Likewise.
1390
1391         tests: reduce dependencies
1392         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1393         * tests/test-renameat.c (main): Likewise.
1394         * modules/linkat-tests (Depends-on): Relax dependency.
1395         * modules/renameat-tests (Depends-on): Likewise.
1396         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1397         dependency explicit.
1398
1399         save-cwd: reduce default dependency
1400         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1401         * lib/save-cwd.c: Update comments.
1402         * NEWS: Document the semantic change.
1403
1404         getcwd: enhance tests
1405         * tests/test-getcwd-lgpl.c: New file, taken from...
1406         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1407         repeat long path stress tests from m4 probe.
1408         * modules/getcwd-lgpl-tests: New module.
1409         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1410         * m4/getcwd-abort-bug.m4: Update comment.
1411         * m4/getcwd-path-max.m4: Likewise.
1412
1413         getcwd-lgpl: new module
1414         * modules/getcwd-lgpl: New module.
1415         * lib/getcwd-lgpl.c: New file.
1416         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1417         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1418         * modules/getcwd (configure.ac): Set C witness.
1419         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1420
1421         getcwd: tweak comments
1422         * m4/getcwd-abort-bug.m4: Fix comments.
1423         * m4/getcwd-path-max.m4: Likewise.
1424         * m4/getcwd.m4: Likewise.
1425
1426 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1427         and Eric Blake  <eblake@redhat.com>
1428
1429         mkstemp: replace if system version uses wrong permissions
1430         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1431         read/write mode bits set in file created by mkstemp.
1432         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1433
1434 2011-04-27  Eric Blake  <eblake@redhat.com>
1435
1436         passfd: avoid compiler warning
1437         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1438         Reported by Laine Stump.
1439
1440 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1441
1442         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1443         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1444
1445 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1446         and Eric Blake  <eblake@redhat.com>
1447
1448         mkstemp: mention clean-temp module
1449         * lib/mkstemp.c: Add comment.
1450         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1451
1452 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1453
1454         inttypes: also provide default values for 32-bit tests
1455         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1456         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1457
1458 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1459
1460         strtoumax: remove dependency on strtoimax
1461         This is like the strtoull change of yesterday.
1462         * modules/strtoumax (Files): Add lib/strtoimax.c.
1463         (Depends-on): Remove strtoimax and add verify.
1464
1465         inttypes-incomplete: new module
1466         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1467         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1468         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1469         of gl_INTTYPES_H.
1470         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1471         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1472         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1473         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1474         * modules/strtoumax, modules/xstrtol (Depends-on):
1475         Depend on inttypes-incomplete, not inttypes.
1476         * modules/inttypes-incomplete: New module, containing the contents
1477         of the old modules/inttypes module, except that the Files: section
1478         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1479         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1480         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1481         (Depends-on): Depend only on inttypes-incomplete.
1482         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1483
1484         inttypes: omit now-redundant strtoimax and strtoumax work
1485         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1486         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1487
1488         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1489         This supports apps that need pointers to strtoimax and strtoumax,
1490         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1491         nonexistent functions.  See
1492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1493         et seq.
1494         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1495         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1496         a macro.
1497         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1498
1499 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1500
1501         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1502
1503 2011-04-25  Bruno Haible  <bruno@clisp.org>
1504
1505         strtol, strtoul: Mark modules as obsolete.
1506         * modules/strtol (Status, Notice): New sections.
1507         * modules/strtoul (Status, Notice): New sections.
1508
1509 2011-04-25  Bruno Haible  <bruno@clisp.org>
1510
1511         strtod: Remove check for strtod, unless supporting old platforms.
1512         * modules/strtod-obsolete: New file.
1513         * m4/strtod-obsolete.m4: New file.
1514         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1515         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1516         * modules/strtod (Depends-on): Add strtod-obsolete.
1517         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1518
1519 2011-04-25  Bruno Haible  <bruno@clisp.org>
1520
1521         strcase: Make module obsolete.
1522         * modules/strcase (Status, Notice): New sections.
1523
1524 2011-04-25  Bruno Haible  <bruno@clisp.org>
1525
1526         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1527         * modules/dup2-obsolete: New file.
1528         * m4/dup2-obsolete.m4: New file.
1529         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1530         gl_FUNC_DUP2_OBSOLETE is not also defined.
1531         * modules/dup2 (Depends-on): Add dup2-obsolete.
1532         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1533
1534 2011-04-25  Bruno Haible  <bruno@clisp.org>
1535
1536         strnlen: Avoid memchr related link error on old obsolete platforms.
1537         * modules/memchr-obsolete: New file.
1538         * m4/memchr-obsolete.m4: New file.
1539         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1540         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1541         * modules/memchr (Depends-on): Add memchr-obsolete.
1542         * modules/strnlen (Depends-on): Likewise.
1543         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1544
1545 2011-04-25  Jim Meyering  <meyering@redhat.com>
1546
1547         maint.mk: makefile_at_at_check extend and clean up
1548         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1549         in addition to */Makefile.am.
1550         Exempt legitimate uses of @VAR@ notation, e.g.,
1551         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1552         Remove obsolete coreutils-specific comment.
1553         Prompted by discussion here:
1554         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1555
1556 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1557
1558         strtoul: remove dependency on strtol
1559         This is so that 'configure' need not check for strtol merely because
1560         the application needs strtoul.
1561         * modules/strtoul (Files): Add lib/strtol.c.
1562         (Depends-on): Remove strtol.
1563
1564         strtoull: remove dependency on strtoul
1565         This is like the strtoll change.
1566         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1567         (Depends-on): Remove strtoul.
1568
1569         strtoll: remove dependency on strtol
1570         This is so that 'configure' need not check for strtol merely because
1571         the application needs strtoll.
1572         * modules/strtoll (Files): Add lib/strtol.c.
1573         (Depends-on): Remove strtol.
1574
1575 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1576
1577         inttypes: Move some configure check to module 'imaxdiv'.
1578         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1579         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1580         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1581
1582 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1583
1584         inttypes: Move some configure check to module 'imaxabs'.
1585         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1586         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1587         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1588
1589 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1590
1591         inttypes: Remove configure tests that are not needed since 2009-12-31.
1592         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1593         gl_cv_header_working_inttypes_h.
1594
1595 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1596
1597         * modules/strnlen (Depends-on): Remove memchr.
1598         The strnlen implementation doesn't need the memchr module's fixes; see
1599         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1600
1601         strtol: remove dependency on wchar
1602         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1603         * modules/strtol (Depends-on): Remove wchar.
1604
1605 2011-04-21  Eric Blake  <eblake@redhat.com>
1606
1607         passfd: fix test regression on Linux
1608         * modules/passfd-tests (configure.ac): Correct socketpair check.
1609
1610         passfd: speed up configure and drop unused code
1611         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1612         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1613         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1614         Instead of probing at configure for unix_scm_rights_bsd44_way,
1615         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1616         check to a struct member probe.
1617         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1618         (sendfd, recvfd): Update preprocessor checks.
1619         * modules/passfd (Files): Reflect rename, and drop unused file.
1620         (Depends-on): Drop unused dependency.
1621
1622         passfd: allow compilation on mingw
1623         * modules/sys_socket (Depends-on): Add sys_uio.
1624         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1625         iovec and a minimal struct msghdr.
1626         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1627         * tests/test-sys_socket.c (main): Enhance test.
1628         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1629         guaranteed to provide what we need.
1630         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1631         * modules/passfd-tests (Depends-on): Add sys_wait.
1632         * tests/test-passfd.c (main): Skip test on mingw, for now.
1633         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1634         partial 'struct msghdr' implementation.
1635
1636         sys_uio: new module
1637         * modules/sys_uio: New module.
1638         * modules/sys_uio-tests: Likewise.
1639         * lib/sys_uio.in.h: New file.
1640         * m4/sys_uio_h.m4: Likewise.
1641         * tests/test-sys_uio.c: Likewise.
1642         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1643         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1644
1645 2011-04-20  Jim Meyering  <meyering@redhat.com>
1646
1647         useless-if-before-free: avoid false-positive
1648         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1649         disjunct so that it too requires a terminating ";".  Without that,
1650         this script would identify as useless one statement from gcc that
1651         was not:
1652           if (aligned_ptr)
1653             free (((void **) aligned_ptr) [-1]);
1654
1655 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1656
1657         doc: update users.txt.
1658         * users.txt: Add barcode.
1659
1660 2011-04-19  Bruno Haible  <bruno@clisp.org>
1661
1662         ioctl: Remove link dependency on native Windows.
1663         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1664         (gl_close_fn, gl_ioctl_fn): New types.
1665         (struct fd_hook): Renamed from struct close_hook. Change type of
1666         private_close_fn field. Add private_ioctl_fn field.
1667         (close_hook_fn): Add parameter for primary close method.
1668         (execute_close_hooks, execute_all_close_hooks): Likewise.
1669         (ioctl_hook_fn): New type.
1670         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1671         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1672         argument.
1673         (unregister_fd_hook): Renamed from unregister_close_hook.
1674         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1675         Don't include <unistd.h>.
1676         (close): Remove undef.
1677         (anchor): Update.
1678         (execute_close_hooks): Add argument for primary close method.
1679         (execute_all_close_hooks): Likewise.
1680         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1681         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1682         argument. Allow each argument to be NULL.
1683         (unregister_fd_hook): Renamed from unregister_close_hook.
1684         * lib/close.c (rpl_close): Pass 'close' function pointer to
1685         execute_all_close_hooks.
1686         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1687         (primary_ioctl): New function.
1688         (ioctl): Don't call ioctlsocket here. Instead, call
1689         execute_all_ioctl_hooks.
1690         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1691         close method.
1692         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1693         (fd_sockets_hook): Renamed from close_sockets_hook.
1694         (gl_sockets_startup, gl_sockets_cleanup): Update.
1695         * modules/fd-hook: Renamed from modules/close-hook. Update.
1696         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1697         * modules/sockets (Depends-on): Likewise.
1698         * modules/ioctl (Depends-on): Add fd-hook.
1699         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1700         GNULIB_SOCKET.
1701
1702 2011-04-19  Bruno Haible  <bruno@clisp.org>
1703
1704         Move the support of O_NONBLOCK in open() to the 'open' module.
1705         * modules/nonblocking (Depends-on): Remove 'open'.
1706         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1707         gl_cv_have_open_O_NONBLOCK.
1708         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1709         O_NONBLOCK support.
1710         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1711
1712 2011-04-17  Bruno Haible  <bruno@clisp.org>
1713
1714         pipe2: Simplify code.
1715         * lib/pipe2.c (pipe2): Reduce code duplication.
1716
1717 2011-04-17  Bruno Haible  <bruno@clisp.org>
1718
1719         nonblocking: Add comment.
1720         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1721
1722 2011-04-17  Bruno Haible  <bruno@clisp.org>
1723
1724         nonblocking: Add tests for sockets.
1725         * tests/test-nonblocking-socket.sh: New file.
1726         * tests/test-nonblocking-socket-main.c: New file.
1727         * tests/test-nonblocking-socket-child.c: New file.
1728         * tests/test-nonblocking-socket.h: New file.
1729         * tests/socket-server.h: New file.
1730         * tests/socket-client.h: New file.
1731         * modules/nonblocking-socket-tests: New file.
1732         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1733
1734 2011-04-17  Bruno Haible  <bruno@clisp.org>
1735
1736         nonblocking: Add tests for pipes.
1737         * tests/test-nonblocking-pipe.sh: New file.
1738         * tests/test-nonblocking-pipe-main.c: New file.
1739         * tests/test-nonblocking-pipe-child.c: New file.
1740         * tests/test-nonblocking-pipe.h: New file.
1741         * tests/test-nonblocking-writer.h: New file.
1742         * tests/test-nonblocking-reader.h: New file.
1743         * tests/test-nonblocking-misc.h: New file.
1744         * modules/nonblocking-pipe-tests: New file.
1745         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1746
1747 2011-04-16  Bruno Haible  <bruno@clisp.org>
1748
1749         gettext: Clarify the needed programmer actions.
1750         * modules/gettext (Notice): New field.
1751         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1752
1753 2011-04-16  Bruno Haible  <bruno@clisp.org>
1754
1755         strchrnul: Tweak last commit.
1756         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1757         bug.
1758         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1759         as in _GL_FUNCDECL_SYS.
1760         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1761         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1762
1763 2011-04-15  Eric Blake  <eblake@redhat.com>
1764
1765         strchrnul: work around cygwin bug
1766         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1767         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1769         * modules/string (Makefile.am): Substitute it.
1770         * lib/string.in.h (strchrnul): Use it.
1771
1772 2011-04-15  Bruno Haible  <bruno@clisp.org>
1773
1774         Don't require lib/stdio-write.c when only module 'stdio' is used.
1775         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1776         invocation.
1777         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1778
1779 2011-04-14  Bruno Haible  <bruno@clisp.org>
1780
1781         Support non-blocking pipe I/O in read() on native Windows.
1782         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1783         (read): New declaration.
1784         * lib/read.c: New file.
1785         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1786         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1787         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1788         vscanf): New declarations.
1789         * lib/stdio-read.c: New file.
1790         * m4/read.m4: New file.
1791         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1792         REPLACE_READ.
1793         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1794         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1795         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1796         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1797         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1798         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1799         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1800         * modules/read: New file.
1801         * modules/nonblocking (Files): Add lib/stdio-read.c.
1802         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1803         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1804         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1805         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1806         * modules/pread (Depends-on): Add read.
1807         * modules/safe-read (Depends-on): Likewise.
1808         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1809         gets, scanf, vfscanf, vscanf): Verify signatures.
1810         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1811         problem with non-blocking pipes.
1812         * doc/posix-functions/fgetc.texi: Likewise.
1813         * doc/posix-functions/fgets.texi: Likewise.
1814         * doc/posix-functions/fread.texi: Likewise.
1815         * doc/posix-functions/fscanf.texi: Likewise.
1816         * doc/posix-functions/getc.texi: Likewise.
1817         * doc/posix-functions/getchar.texi: Likewise.
1818         * doc/posix-functions/gets.texi: Likewise.
1819         * doc/posix-functions/scanf.texi: Likewise.
1820         * doc/posix-functions/vfscanf.texi: Likewise.
1821         * doc/posix-functions/vscanf.texi: Likewise.
1822
1823 2011-04-14  Bruno Haible  <bruno@clisp.org>
1824
1825         Support non-blocking pipe I/O in write() on native Windows.
1826         * lib/write.c (rpl_write): Split a write request that failed merely
1827         because the byte count was larger than the pipe buffer's size.
1828         * doc/posix-functions/write.texi: Mention the problem with large byte
1829         counts.
1830
1831 2011-04-14  Bruno Haible  <bruno@clisp.org>
1832
1833         wchar: Ensure that wchar_t gets defined on uClibc.
1834         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1835         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1836
1837 2011-04-13  Bruno Haible  <bruno@clisp.org>
1838
1839         safe-write, full-read: Avoid unnecessary compilation units.
1840         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1841         (Depends-on): Remove safe-read. Add ssize_t.
1842         * modules/full-read (Files): Add lib/full-write.c.
1843         (Depends-on): Add full-write.
1844
1845 2011-04-13  Bruno Haible  <bruno@clisp.org>
1846
1847         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1848         * modules/pwrite (Depends-on): Add 'write'.
1849
1850 2011-04-13  Bruno Haible  <bruno@clisp.org>
1851
1852         Support non-blocking pipe I/O in write() on native Windows.
1853         * lib/unistd.in.h (write): Enable replacement also if
1854         GNULIB_UNISTD_H_NONBLOCKING is 1.
1855         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1856         (rpl_write): When failing to write on a non-blocking pipe, change
1857         errno from ENOSPC to EAGAIN.
1858         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1859         putchar, puts, vfprintf, vprintf): Enable replacement also if
1860         GNULIB_STDIO_H_NONBLOCKING is 1.
1861         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1862         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1863         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1864         CALL_WITH_SIGPIPE_EMULATION.
1865         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1866         * m4/nonblocking.m4: New file.
1867         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1868         for non-blocking I/O support.
1869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1870         GNULIB_UNISTD_H_NONBLOCKING.
1871         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1872         required for non-blocking I/O support.
1873         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1874         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1875         lib/stdio-write.c, m4/asm-underscore.m4.
1876         (Depends-on): Add stdio, unistd.
1877         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1878         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1879         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1880         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1881         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1882         problem with non-blocking pipes.
1883         * doc/posix-functions/fputc.texi: Likewise.
1884         * doc/posix-functions/fputs.texi: Likewise.
1885         * doc/posix-functions/fwrite.texi: Likewise.
1886         * doc/posix-functions/printf.texi: Likewise.
1887         * doc/posix-functions/putc.texi: Likewise.
1888         * doc/posix-functions/putchar.texi: Likewise.
1889         * doc/posix-functions/puts.texi: Likewise.
1890         * doc/posix-functions/vfprintf.texi: Likewise.
1891         * doc/posix-functions/vprintf.texi: Likewise.
1892         * doc/posix-functions/write.texi: Likewise.
1893
1894 2011-04-10  Jim Meyering  <meyering@redhat.com>
1895
1896         maint.mk: prohibit doubled words
1897         Detect them also when they're separated by a newline.
1898         There are 3 ways to customize it:
1899           - disable the test on a per file basis, as usual with rules using
1900             $(VC_LIST_EXCEPT)
1901           - replace the default doubled-word-selecting regexp (affects all files)
1902           - ignore a particular file-vs-doubled-word match
1903         I nearly used that last one to ignore the "is is" match in
1904         coreutils' NEWS file, since the text was "ls -is is ..."
1905         To do that, I would have added this line to cfg.mk:
1906           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1907         but it would have ignored any "is is" match in NEWS.
1908         Low probability, but still...
1909         Instead, I changed the text, slightly:
1910           -  ls -is is now consistent with ls -lis in ignoring values returned
1911           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1912         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1913         (prohibit_doubled_word_): Define.
1914         (sc_prohibit_doubled_word): New rule.
1915         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1916
1917 2011-04-10  Jim Meyering  <meyering@redhat.com>
1918
1919         maint: fix doubled-word typo in comment
1920         * m4/gethostname.m4: s/is is/it is/
1921         * m4/getdomainname.m4: Likewise.
1922
1923 2011-04-10  Jim Meyering  <meyering@redhat.com>
1924
1925         maint: remove doubled word: s/it it/it/
1926         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1927
1928 2011-04-10  Jim Meyering  <meyering@redhat.com>
1929
1930         maint.mk: remove useless semicolon and backslash
1931         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1932         semicolon and backslash.
1933
1934 2011-04-10  Bruno Haible  <bruno@clisp.org>
1935
1936         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1937         * modules/stdint-tests (Depends-on): Add wchar.
1938
1939 2011-04-10  Jim Meyering  <meyering@redhat.com>
1940
1941         maint: remove doubled words in comments, e.g., s/a a/a/
1942         * lib/strptime.c (day_of_the_week): s/the the/the/
1943         * tests/test-chown.h (test_chown): s/a a/a/
1944
1945         test-chown.h: correct a cast
1946         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1947         when the destination is a stat.st_gid.
1948
1949 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1950
1951         getaddrinfo: Fix test for sa_len member.
1952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1953         include <sys/types.h> before <sys/socket.h>.
1954
1955 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1956
1957         maint: change "can not" to "cannot"
1958         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1959         boundaries.
1960
1961 2011-04-09  Jim Meyering  <meyering@redhat.com>
1962
1963         maint: change "a a" to "a"
1964         * tests/test-lchown.h (test_lchown): s/a a/a/
1965
1966         maint.mk: prohibit \<the the\>
1967         * top/maint.mk (sc_prohibit_the_the): New rule.
1968
1969         maint: fix "the the" in comment
1970         * lib/count-one-bits.h: s/the the/the/
1971
1972         maint: change "can not" to "cannot"
1973         But do not change the occurrences in maintain.texi or in
1974         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1975         * doc/gnulib-tool.texi: s/can not/cannot/
1976         * doc/posix-functions/accept.texi (accept): Likewise.
1977         * doc/posix-functions/socket.texi (socket): Likewise.
1978         * lib/mbrtowc.c: Likewise.
1979
1980         maint.mk: prohibit use of "can not"
1981         * top/maint.mk (sc_prohibit_can_not): New rule.
1982         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1983
1984 2011-04-09  Bruno Haible  <bruno@clisp.org>
1985
1986         careadlinkat: Guard against misuse of careadlinkatcwd.
1987         * lib/careadlinkat.c: Include <stdlib.h>.
1988         (careadlinkatcwd): Check that the fd argument is as expected.
1989
1990 2011-04-09  Bruno Haible  <bruno@clisp.org>
1991
1992         careadlinkat: Use common coding style.
1993         * lib/careadlinkat.c: Move gnulib includes after system includes.
1994
1995 2011-04-09  Bruno Haible  <bruno@clisp.org>
1996
1997         careadlinkat: Clarify specification.
1998         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1999         (careadlinkatcwd): Add comment.
2000         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
2001
2002 2011-04-09  Bruno Haible  <bruno@clisp.org>
2003
2004         areadlinkat: Avoid link error on many platforms.
2005         * modules/areadlinkat (Depends-on): Add areadlink.
2006
2007 2011-04-09  Bruno Haible  <bruno@clisp.org>
2008
2009         allocator, careadlinkat: Fix double-inclusion guard.
2010         * lib/allocator.h: Fix double-inclusion guard.
2011         * lib/careadlinkat.h: Likewise.
2012
2013 2011-04-09  Bruno Haible  <bruno@clisp.org>
2014
2015         relocatable-prog-wrapper: Update after module 'areadlink' changed.
2016         * lib/relocwrapper.c: Update dependencies hierarchy.
2017         * build-aux/install-reloc: Update list of files to be compiled.
2018         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
2019         lib/allocator.[hc].
2020
2021 2011-04-08  Eric Blake  <eblake@redhat.com>
2022
2023         strftime: silence gnulib-tool warning
2024         * modules/strftime-tests (Depends-on): Drop automatic dependency.
2025
2026 2011-04-08  Bruno Haible  <bruno@clisp.org>
2027
2028         verify: Fix syntax error with GCC 4.6 in C++ mode.
2029         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
2030         (HAVE_STATIC_ASSERT): New macro.
2031         (verify_true, verify): Use 'static_assert' if it is supported and
2032         '_Static_assert' is not supported.
2033
2034 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
2035
2036         allocator: New module.
2037         * modules/allocator, lib/allocator.c: New files.
2038         * lib/allocator.h (stdlib_allocator): New decl.
2039         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
2040         Remove.  Do not include <stdlib.h>.
2041         (careadlinkat): Use stdlib_allocator instead of rolling our own.
2042         * modules/careadlinkat (Files): Remove lib/allocator.h.
2043         (Depends-on): Add allocator.
2044
2045         stdlib: let modules use system malloc, realloc
2046         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
2047         if !_GL_USE_STDLIB_ALLOC.
2048         (malloc, realloc): Limit this change to a smaller scope.
2049
2050         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
2051         (malloc, realloc): Don't #undef; no longer needed.
2052         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2053         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2054         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2055         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2056         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2057         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2058         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2059         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2060
2061         careadlinkat: rename members to avoid problem
2062         * lib/allocator.h (struct allocator): Rename members from
2063         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2064         and realloc are #define'd.  Reported by Eric Blake in
2065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2066         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2067
2068 2011-04-08  Eric Blake  <eblake@redhat.com>
2069
2070         nonblocking: reduce dependency
2071         * tests/test-nonblocking.c: Only test sockets when in use.
2072         * modules/nonblocking-tests (Depends-on): Drop socket.
2073         (Makefile.am): Link even if sockets are not present.
2074         * modules/pipe2-tests (Makefile.am): Likewise.
2075         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2076
2077         pipe2: fix O_NONBLOCK support on mingw
2078         * modules/pipe2 (Depends-on): Add nonblocking.
2079         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2080         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2081         * tests/test-nonblocking.c (main): Likewise.
2082         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2083
2084         fcntl-h: fix O_ACCMODE on cygwin
2085         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2086         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2087
2088         pipe-filter: drop O_NONBLOCK workarounds
2089         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2090         * modules/pipe-filter-ii (Depends-on): Likewise.
2091         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2092
2093         nonblocking: provide O_NONBLOCK for mingw
2094         * modules/nonblocking (Depends-on): Add open.
2095         (configure.ac): Set new witness macro.
2096         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2097         * modules/fcntl-h (Makefile.am): Substitute it.
2098         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2099         nonblocking module is in use.
2100         * lib/nonblocking.c: Adjust portability test.
2101         * lib/open.c (open): Don't let native open see gnulib flag.
2102         * tests/test-fcntl-h.c (main): Enhance test.
2103         * tests/test-open.h (test_open): Likewise.
2104         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2105
2106         careadlinkat: fix compilation error on mingw
2107         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2108         within struct allocator.
2109
2110 2011-04-06  Eric Blake  <eblake@redhat.com>
2111
2112         binary-io: relicense under LGPLv2+
2113         * modules/binary-io (License): Relax to LGPLv2+.
2114         Requested for libvirt, and required by pipe2.
2115
2116 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2117
2118         verify: use _Static_assert if available
2119         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2120         (verify_true, verify): Use it if available.  This generates better
2121         diagnostics with GCC 4.6.0 and later.
2122
2123 2011-04-05  Bruno Haible  <bruno@clisp.org>
2124
2125         Remove leftover generated .h files after config.status changed.
2126
2127         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2128         GL_GENERATE_ALLOCA_H.
2129         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2130         GL_GENERATE_ALLOCA_H evaluates to false.
2131
2132         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2133         GL_GENERATE_ARGZ_H.
2134         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2135         evaluates to false.
2136
2137         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2138         GL_GENERATE_BYTESWAP_H.
2139         * modules/byteswap (Makefile.am): Remove byteswap.h if
2140         GL_GENERATE_BYTESWAP_H evaluates to false.
2141
2142         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2143         GL_GENERATE_ERRNO_H.
2144         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2145         evaluates to false.
2146
2147         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2148         GL_GENERATE_FLOAT_H.
2149         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2150         evaluates to false.
2151
2152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2153         GL_GENERATE_FNMATCH_H.
2154         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2155         GL_GENERATE_FNMATCH_H evaluates to false.
2156
2157         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2158         GL_GENERATE_GLOB_H.
2159         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2160         evaluates to false.
2161
2162         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2163         automake conditional GL_GENERATE_ICONV_H.
2164         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2165         evaluates to false.
2166
2167         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2168         GL_GENERATE_NETINET_IN_H.
2169         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2170         GL_GENERATE_NETINET_IN_H evaluates to false.
2171
2172         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2173         conditional GL_GENERATE_PTHREAD_H.
2174         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2175         * modules/pthread (Makefile.am): Remove pthread.h if
2176         GL_GENERATE_PTHREAD_H evaluates to false.
2177
2178         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2179         GL_GENERATE_SCHED_H.
2180         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2181         evaluates to false.
2182
2183         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2184         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2185         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2186         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2187
2188         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2189         GL_GENERATE_STDARG_H.
2190         * modules/stdarg (Makefile.am): Remove stdarg.h if
2191         GL_GENERATE_STDARG_H evaluates to false.
2192
2193         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2194         GL_GENERATE_STDBOOL_H.
2195         * modules/stdbool (Makefile.am): Remove stdbool.h if
2196         GL_GENERATE_STDBOOL_H evaluates to false.
2197
2198         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2199         conditional GL_GENERATE_STDDEF_H.
2200         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2201         * modules/stddef (Makefile.am): Remove stddef.h if
2202         GL_GENERATE_STDDEF_H evaluates to false.
2203
2204         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2205         GL_GENERATE_STDINT_H.
2206         * modules/stdint (Makefile.am): Remove stdint.h if
2207         GL_GENERATE_STDINT_H evaluates to false.
2208
2209         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2210         GL_GENERATE_SYSEXITS_H.
2211         * modules/sysexits (Makefile.am): Remove sysexits.h if
2212         GL_GENERATE_SYSEXITS_H evaluates to false.
2213
2214         Reported by Karl Berry and Ralf Wildenhues.
2215
2216 2011-04-05  Bruno Haible  <bruno@clisp.org>
2217
2218         Ensure to rebuild generated .h files when config.status has changed.
2219         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2220         config.status.
2221         * modules/ctype (Makefile.am): Likewise.
2222         * modules/dirent (Makefile.am): Likewise.
2223         * modules/errno (Makefile.am): Likewise.
2224         * modules/fcntl-h (Makefile.am): Likewise.
2225         * modules/float (Makefile.am): Likewise.
2226         * modules/getopt-posix (Makefile.am): Likewise.
2227         * modules/glob (Makefile.am): Likewise.
2228         * modules/iconv-h (Makefile.am): Likewise.
2229         * modules/inttypes (Makefile.am): Likewise.
2230         * modules/langinfo (Makefile.am): Likewise.
2231         * modules/locale (Makefile.am): Likewise.
2232         * modules/math (Makefile.am): Likewise.
2233         * modules/netdb (Makefile.am): Likewise.
2234         * modules/netinet_in (Makefile.am): Likewise.
2235         * modules/poll-h (Makefile.am): Likewise.
2236         * modules/pthread (Makefile.am): Likewise.
2237         * modules/pty (Makefile.am): Likewise.
2238         * modules/sched (Makefile.am): Likewise.
2239         * modules/search (Makefile.am): Likewise.
2240         * modules/selinux-h (Makefile.am): Likewise.
2241         * modules/signal (Makefile.am): Likewise.
2242         * modules/spawn (Makefile.am): Likewise.
2243         * modules/stdarg (Makefile.am): Likewise.
2244         * modules/stdbool (Makefile.am): Likewise.
2245         * modules/stddef (Makefile.am): Likewise.
2246         * modules/stdint (Makefile.am): Likewise.
2247         * modules/stdio (Makefile.am): Likewise.
2248         * modules/stdlib (Makefile.am): Likewise.
2249         * modules/string (Makefile.am): Likewise.
2250         * modules/strings (Makefile.am): Likewise.
2251         * modules/sys_file (Makefile.am): Likewise.
2252         * modules/sys_ioctl (Makefile.am): Likewise.
2253         * modules/sys_select (Makefile.am): Likewise.
2254         * modules/sys_socket (Makefile.am): Likewise.
2255         * modules/sys_stat (Makefile.am): Likewise.
2256         * modules/sys_time (Makefile.am): Likewise.
2257         * modules/sys_times (Makefile.am): Likewise.
2258         * modules/sys_utsname (Makefile.am): Likewise.
2259         * modules/sys_wait (Makefile.am): Likewise.
2260         * modules/sysexits (Makefile.am): Likewise.
2261         * modules/termios (Makefile.am): Likewise.
2262         * modules/time (Makefile.am): Likewise.
2263         * modules/unistd (Makefile.am): Likewise.
2264         * modules/wchar (Makefile.am): Likewise.
2265         * modules/wctype-h (Makefile.am): Likewise.
2266         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2267
2268 2011-04-05  Bruno Haible  <bruno@clisp.org>
2269
2270         pipe2: Relicense under LGPLv2+.
2271         * modules/pipe2 (License): Change to LGPLv2+.
2272         Requested by Eric Blake, for libvirt.
2273
2274 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2275
2276         bootstrap: compute gnulib_extra_files after updating build_aux
2277         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2278         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2279
2280 2011-04-05  Eric Blake  <eblake@redhat.com>
2281
2282         bootstrap: preserve git whitelist item sorting
2283         * build-aux/bootstrap (sort_patterns): New function.
2284         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2285
2286 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2287
2288         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2289         sc_space_tab check.
2290
2291 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2292
2293         areadlink, areadlinkat: rewrite in terms of careadlinkat
2294         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2295         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2296         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2297         (malloc, realloc): Remove #undefs.
2298         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2299         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2300         readlink, ssize_t, stdint, unistd.
2301         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2302         areadlink, stdint.
2303
2304         careadlinkat: new module
2305         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2306         * modules/careadlinkat: New files, written by me with
2307         a review and feedback from Ben Pfaff in
2308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2309
2310 2011-04-01  Bruno Haible  <bruno@clisp.org>
2311
2312         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2313         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2314         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2315         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2316         Reported by Bruce Korb <bruce.korb@gmail.com>.
2317
2318 2011-04-01  Bruno Haible  <bruno@clisp.org>
2319
2320         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2321         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2322         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2323         * modules/wcpcpy (Depends-on): Add extensions.
2324         * modules/wcpncpy (Depends-on): Likewise.
2325         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2326         systems.
2327         * doc/posix-functions/wcpncpy.texi: Likewise.
2328         * doc/posix-functions/wcwidth.texi: Likewise.
2329
2330 2011-03-31  Eric Blake  <eblake@redhat.com>
2331
2332         nonblocking: fix mingw test failures
2333         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2334         non-blocking flag on regular file.
2335         (get_nonblocking_flag): Set errno on invalid fd.
2336         * tests/test-nonblocking.c (main): Avoid test failure on
2337         directories if fchdir is not active.
2338         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2339
2340 2011-03-31  Bruno Haible  <bruno@clisp.org>
2341
2342         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2343         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2344         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2345         Reported by Simon Josefsson <simon@josefsson.org>.
2346
2347 2011-03-31  Bruno Haible  <bruno@clisp.org>
2348         and Eric Blake  <eblake@redhat.com>
2349
2350         nonblocking: new module
2351         * modules/nonblocking: New module.
2352         * modules/nonblocking-tests: Likewise.
2353         * lib/nonblocking.h: New file.
2354         * lib/nonblocking.c: Likewise.
2355         * tests/test-nonblocking.c: New test.
2356         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2357
2358 2011-03-30  Bruno Haible  <bruno@clisp.org>
2359
2360         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2361         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2362         instead of 'printf' format for GCC >= 4.4.
2363         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2364         (fprintf, printf, vfprintf, vprintf): Declare with
2365         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2366         the system's vfprintf() function.
2367         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2368
2369 2011-03-30  Eric Blake  <eblake@redhat.com>
2370
2371         passfd: fix scoping bug
2372         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2373         before sendmsg/recvmsg.
2374
2375         passfd: standardize coding conventions
2376         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2377         can be learned at compile time.
2378         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2379         ifdefs.
2380         (sendfd, recvfd): Follow gnulib code conventions.
2381
2382         passfd: fix incorrect sendmsg arguments
2383         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2384         incorrect msg_controllen value.
2385         * modules/passfd-tests (Depends-on): Check for alarm.
2386         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2387         Reported by Bastien ROUCARIES.
2388
2389 2011-03-30  Bruno Haible  <bruno@clisp.org>
2390
2391         c-strcasestr: Relicense under LGPLv2+.
2392         * modules/c-strcasestr (License): Change to LGPLv2+.
2393         Requested by Eric Blake, for libvirt.
2394
2395 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2396
2397         * users.txt: Add libidn2.  Fix libtasn1 link.
2398
2399 2011-03-30  Jim Meyering  <meyering@redhat.com>
2400
2401         tests: readlink* ("",... fails with EINVAL on newer kernels
2402         readlink and readlinkat have typically failed with ENOENT for
2403         the invalid, empty file name,  "".  However, with the advent
2404         of linux-2.6.39, they fail with EINVAL.
2405         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2406         when operating on the empty file name.
2407         * tests/test-readlink.h (test_readlink): Likewise.
2408
2409 2011-03-29  Bruno Haible  <bruno@clisp.org>
2410
2411         Relicense some modules under LGPLv2+, for libidn2.
2412         * modules/array-mergesort (License): Change to LGPLv2+.
2413         * modules/c-strcaseeq (License): Likewise.
2414         * modules/striconveh (License): Likewise.
2415         * modules/striconveha (License): Likewise.
2416         * modules/uniconv/base (License): Likewise.
2417         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2418         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2419         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2420         * modules/unictype/base (License): Likewise.
2421         * modules/unictype/bidiclass-of (License): Likewise.
2422         * modules/unictype/category-M (License): Likewise.
2423         * modules/unictype/category-none (License): Likewise.
2424         * modules/unictype/category-of (License): Likewise.
2425         * modules/unictype/category-test (License): Likewise.
2426         * modules/unictype/category-test-withtable (License): Likewise.
2427         * modules/unictype/combining-class (License): Likewise.
2428         * modules/unictype/joiningtype-of (License): Likewise.
2429         * modules/unictype/scripts (License): Likewise.
2430         * modules/uninorm/base (License): Likewise.
2431         * modules/uninorm/canonical-decomposition (License): Likewise.
2432         * modules/uninorm/composition (License): Likewise.
2433         * modules/uninorm/decompose-internal (License): Likewise.
2434         * modules/uninorm/decomposition-table (License): Likewise.
2435         * modules/uninorm/nfc (License): Likewise.
2436         * modules/uninorm/nfd (License): Likewise.
2437         * modules/uninorm/u32-normalize (License): Likewise.
2438         * modules/unistr/base (License): Likewise.
2439         * modules/unistr/u32-cpy (License): Likewise.
2440         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2441         * modules/unistr/u32-to-u8 (License): Likewise.
2442         * modules/unistr/u32-uctomb (License): Likewise.
2443         * modules/unistr/u8-check (License): Likewise.
2444         * modules/unistr/u8-mblen (License): Likewise.
2445         * modules/unistr/u8-mbtouc (License): Likewise.
2446         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2447         * modules/unistr/u8-mbtoucr (License): Likewise.
2448         * modules/unistr/u8-prev (License): Likewise.
2449         * modules/unistr/u8-strlen (License): Likewise.
2450         * modules/unistr/u8-to-u32 (License): Likewise.
2451         * modules/unistr/u8-uctomb (License): Likewise.
2452         * modules/unitypes (License): Likewise.
2453         Requested by Simon Josefsson.
2454
2455 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2456
2457         lib-symbol-visibility: Add a notice.
2458         * modules/lib-symbol-visibility (Notice): New field.
2459
2460 2011-03-29  Bruno Haible  <bruno@clisp.org>
2461
2462         getaddrinfo: Doc fix.
2463         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2464         section "fixed in Gnulib".
2465
2466 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2467
2468         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2469         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2470
2471 2011-03-26  Bruno Haible  <bruno@clisp.org>
2472
2473         unictype/property-byname: Reduce the number of load-time relocations.
2474         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2475         (UC_PROPERTY_INDEX_*): New enumeration values.
2476         (uc_property_byname): Convert an index from the lookup table to an
2477         uc_property_t.
2478         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2479         values.
2480
2481 2011-03-26  Bruno Haible  <bruno@clisp.org>
2482
2483         unictype/property-byname: Allow omitted word separators and aliases.
2484         * lib/unictype/pr_byname.gperf: Add property names without word
2485         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2486         for 'space'.
2487
2488 2011-03-26  Bruno Haible  <bruno@clisp.org>
2489
2490         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2491         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2492         also hyphens to space.
2493         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2494         without spaces.
2495         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2496
2497 2011-03-26  Bruno Haible  <bruno@clisp.org>
2498
2499         unictype/joiningtype-byname: Recognize long names as well.
2500         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2501         a long name.
2502         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2503         unictype/joiningtype_byname.h.
2504         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2505         * lib/unictype/joiningtype_byname.gperf: New file.
2506         * modules/unictype/joiningtype-byname (Files): Add
2507         lib/unictype/joiningtype_byname.gperf.
2508         (Depends-on): Add gperf.
2509         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2510         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2511         long names.
2512
2513         Tests for module 'unictype/joiningtype-longname'.
2514         * modules/unictype/joiningtype-longname-tests: New file.
2515         * tests/unictype/test-joiningtype_longname.c: New file.
2516
2517         New module 'unictype/joiningtype-longname'.
2518         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2519         * lib/unictype/joiningtype_longname.c: New file.
2520         * modules/unictype/joiningtype-longname: New file.
2521         * modules/unictype/joiningtype-all (Depends-on): Add
2522         unictype/joiningtype-longname.
2523
2524 2011-03-26  Bruno Haible  <bruno@clisp.org>
2525
2526         unictype/bidiclass-byname: Recognize long names as well.
2527         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2528         name.
2529         * lib/unictype/bidi_byname.c: Include <string.h>,
2530         unictype/bidi_byname.h.
2531         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2532         * lib/unictype/bidi_byname.gperf: New file.
2533         * modules/unictype/bidiclass-byname (Files): Add
2534         lib/unictype/bidi_byname.gperf.
2535         (Depends-on): Add gperf.
2536         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2537         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2538         long names.
2539
2540         Tests for module 'unictype/bidiclass-longname'.
2541         * modules/unictype/bidiclass-longname-tests: New file.
2542         * tests/unictype/test-bidi_longname.c: New file.
2543
2544         New module 'unictype/bidiclass-longname'.
2545         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2546         * lib/unictype/bidi_longname.c: New file.
2547         * modules/unictype/bidiclass-longname: New file.
2548         * modules/unictype/bidiclass-all (Depends-on): Add
2549         unictype/bidiclass-longname.
2550
2551 2011-03-26  Bruno Haible  <bruno@clisp.org>
2552
2553         unictype/bidi*: Rename modules.
2554         * modules/unictype/bidiclass-all: Renamed from
2555         modules/unictype/bidicategory-all.
2556         * modules/unictype/bidiclass-name: Renamed from
2557         modules/unictype/bidiclass-name.
2558         (Description): Update.
2559         * modules/unictype/bidiclass-name-tests: Renamed from
2560         modules/unictype/bidicategory-name-tests.
2561         * modules/unictype/bidiclass-byname: Renamed from
2562         modules/unictype/bidicategory-byname.
2563         (Description): Update.
2564         * modules/unictype/bidiclass-byname-tests: Renamed from
2565         modules/unictype/bidicategory-byname-tests.
2566         * modules/unictype/bidiclass-of: Renamed from
2567         modules/unictype/bidicategory-of.
2568         (Description): Update.
2569         * modules/unictype/bidiclass-of-tests: Renamed from
2570         modules/unictype/bidicategory-of-tests.
2571         * modules/unictype/bidiclass-test: Renamed from
2572         modules/unictype/bidicategory-test.
2573         (Description): Update.
2574         * modules/unictype/bidiclass-test-tests: Renamed from
2575         modules/unictype/bidicategory-test-tests.
2576         * modules/unictype/bidicategory-all: New file, a simple redirection.
2577         * modules/unictype/bidicategory-name: Likewise.
2578         * modules/unictype/bidicategory-byname: Likewise.
2579         * modules/unictype/bidicategory-of: Likewise.
2580         * modules/unictype/bidicategory-test: Likewise.
2581         * modules/unictype/property-bidi-* (Dependencies): Update.
2582         * lib/unictype/bidi_*.c: Update comment.
2583
2584 2011-03-26  Bruno Haible  <bruno@clisp.org>
2585
2586         unictype/bidi*: Rename functions, part 2.
2587         * modules/unictype/bidicategory-name (configure.ac): Update required
2588         libunistring version.
2589         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2590
2591 2011-03-25  Bruno Haible  <bruno@clisp.org>
2592
2593         New module 'unictype/combining-class-all'.
2594         * modules/unictype/combining-class-all: New file.
2595
2596         Tests for module 'unictype/combining-class-byname'.
2597         * modules/unictype/combining-class-byname-tests: New file.
2598         * tests/unictype/test-combiningclass_byname.c: New file.
2599
2600         New module 'unictype/combining-class-byname'.
2601         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2602         * lib/unictype/combiningclass_byname.c: New file.
2603         * lib/unictype/combiningclass_byname.gperf: New file.
2604         * modules/unictype/combining-class-byname: New file.
2605
2606         Tests for module 'unictype/combining-class-longname'.
2607         * modules/unictype/combining-class-longname-tests: New file.
2608         * tests/unictype/test-combiningclass_longname.c: New file.
2609
2610         New module 'unictype/combining-class-longname'.
2611         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2612         * lib/unictype/combiningclass_longname.c: New file.
2613         * modules/unictype/combining-class-longname: New file.
2614
2615         Tests for module 'unictype/combining-class-name'.
2616         * modules/unictype/combining-class-name-tests: New file.
2617         * tests/unictype/test-combiningclass_name.c: New file.
2618
2619         New module 'unictype/combining-class-name'.
2620         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2621         * lib/unictype/combiningclass_name.c: New file.
2622         * modules/unictype/combining-class-name: New file.
2623
2624 2011-03-25  Bruno Haible  <bruno@clisp.org>
2625
2626         unictype/combining-class: Rename source files.
2627         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2628         of unictype/combining.h.
2629         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2630         Update.
2631         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2632         * modules/unictype/combining-class (Description): Fix.
2633         (Files, Makefile.am): Update.
2634         * tests/unictype/test-combiningclass.c: Renamed from
2635         tests/unictype/test-combining.c.
2636         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2637
2638 2011-03-25  Bruno Haible  <bruno@clisp.org>
2639
2640         unictype: Update list of canonical combining classes.
2641         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2642
2643 2011-03-25  Bruno Haible  <bruno@clisp.org>
2644
2645         unictype/category-byname: Recognize long names as well.
2646         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2647         a long name.
2648         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2649         unictype/categ_byname.h.
2650         (UC_CATEGORY_INDEX_*): New enumeration values.
2651         (uc_general_category_byname): Use uc_general_category_lookup and
2652         convert from index to value.
2653         * lib/unictype/categ_byname.gperf: New file.
2654         * modules/unictype/category-byname (Files): Add
2655         lib/unictype/categ_byname.gperf.
2656         (Depends-on): Add gperf.
2657         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2658         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2659         long names.
2660
2661         Tests for module 'unictype/category-longname'.
2662         * modules/unictype/category-longname-tests: New file.
2663         * tests/unictype/test-categ_longname.c: New file.
2664
2665         New module 'unictype/category-longname'.
2666         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2667         * lib/unictype/categ_longname.c: New file.
2668         * modules/unictype/category-longname: New file.
2669         * modules/unictype/category-all (Depends-on): Add it.
2670
2671 2011-03-25  Bruno Haible  <bruno@clisp.org>
2672
2673         Tests for module 'unictype/category-LC'.
2674         * modules/unictype/category-LC-tests: New file.
2675         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2676
2677         New module 'unictype/category-LC'.
2678         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2679         (UC_CATEGORY_LC): New declaration.
2680         (UC_CASED_LETTER): New macro.
2681         * lib/gen-uni-tables.c (is_category_LC): New function.
2682         (output_categories): Also handle category LC.
2683         (UC_CATEGORY_MASK_LC): New enumeration value.
2684         (general_category_byname): Also handle category LC.
2685         * lib/unictype/categ_LC.c: New file.
2686         * lib/unictype/categ_LC.h: New file, automatically generated.
2687         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2688         category LC.
2689         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2690         * modules/unictype/category-LC: New file.
2691         * modules/unictype/category-byname (Depends-on): Add
2692         unictype/category-LC.
2693         * modules/unictype/category-all (Depends-on): Likewise.
2694
2695 2011-03-25  Eric Blake  <eblake@redhat.com>
2696
2697         xmalloc: revert yesterday's regression
2698         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2699         realloc's underlying behavior (allowing allocation of zero-size
2700         objects, especially if malloc-gnu is also in use).
2701
2702 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2703
2704         maint.mk: add missing version to VC-tag
2705         * top/maint.mk: git tag was missing actual tag name; add it.
2706
2707         valgrind: do leak checking, and exit with code 1 on error (not 0)
2708         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2709         to VALGRIND.
2710
2711 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2712
2713         posix-modules: say what it does.
2714         * posix-modules: Add a line to the --help output saying what it does.
2715
2716 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2717
2718         xmalloc: Do not leak if underlying realloc is C99 compatible.
2719         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2720         This avoids a leak on C99-based systems.  See
2721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2722
2723 2011-03-24  Eric Blake  <eblake@redhat.com>
2724
2725         realloc: document portability problem
2726         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2727         passing 0 size to realloc.
2728
2729 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2730
2731         doc: update users.txt
2732         * users.txt: Add cvsps, tmpwatch
2733
2734 2011-03-23  Matt Rice  <ratmice@gmail.com>
2735
2736         doc: update users.txt
2737         * users.txt: Add gdb.
2738
2739 2011-03-23  Jim Meyering  <meyering@redhat.com>
2740
2741         doc: update users.txt
2742         Looking through matches up to the following URL (there are still
2743         several more pages), I found several projects that use gnulib:
2744         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2745         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2746         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2747
2748 2011-03-22  Bruno Haible  <bruno@clisp.org>
2749
2750         unictype/bidi*: Rename functions.
2751         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2752         uc_bidi_class, uc_is_bidi_class): New declarations.
2753         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2754         uc_bidi_category_byname.
2755         (uc_bidi_category_byname): New function.
2756         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2757         u_bidi_category_name.
2758         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2759         (uc_bidi_category_name): New function.
2760         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2761         uc_bidi_category.
2762         (uc_bidi_category): New function.
2763         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2764         uc_is_bidi_category. Invoke uc_bidi_class.
2765         (uc_is_bidi_category): New function.
2766         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2767         instead of uc_bidi_category_byname.
2768         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2769         instead of uc_bidi_category_name.
2770         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2771         uc_bidi_category.
2772         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2773         instead of uc_is_bidi_category.
2774
2775 2011-03-21  Bruno Haible  <bruno@clisp.org>
2776
2777         New module 'unictype/joininggroup-all'.
2778         * modules/unictype/joininggroup-all: New file.
2779
2780         Tests for module 'unictype/joininggroup-of'.
2781         * modules/unictype/joininggroup-of-tests: New file.
2782         * tests/unictype/test-joininggroup_of.c: New file.
2783         * tests/unictype/test-joininggroup_of.h: New file, automatically
2784         generated by gen-uni-tables.
2785
2786         New module 'unictype/joininggroup-of'.
2787         * modules/unictype/joininggroup-of: New file.
2788         * lib/unictype/joininggroup_of.c: New file.
2789         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2790         gen-uni-tables.
2791
2792         Tests for module 'unictype/joininggroup-byname'.
2793         * modules/unictype/joininggroup-byname-tests: New file.
2794         * tests/unictype/test-joininggroup_byname.c: New file.
2795
2796         New module 'unictype/joininggroup-byname'.
2797         * modules/unictype/joininggroup-byname: New file.
2798         * lib/unictype/joininggroup_byname.c: New file.
2799         * lib/unictype/joininggroup_byname.gperf: New file.
2800
2801         Tests for module 'unictype/joininggroup-name'.
2802         * modules/unictype/joininggroup-name-tests: New file.
2803         * tests/unictype/test-joininggroup_name.c: New file.
2804
2805         New module 'unictype/joininggroup-name'.
2806         * modules/unictype/joininggroup-name: New file.
2807         * lib/unictype/joininggroup_name.c: New file.
2808         * lib/unictype/joininggroup_name.h: New file.
2809
2810         New module 'unictype/joiningtype-all'.
2811         * modules/unictype/joiningtype-all: New file.
2812
2813         Tests for module 'unictype/joiningtype-of'.
2814         * modules/unictype/joiningtype-of-tests: New file.
2815         * tests/unictype/test-joiningtype_of.c: New file.
2816         * tests/unictype/test-joiningtype_of.h: New file, automatically
2817         generated by gen-uni-tables.
2818
2819         New module 'unictype/joiningtype-of'.
2820         * modules/unictype/joiningtype-of: New file.
2821         * lib/unictype/joiningtype_of.c: New file.
2822         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2823         gen-uni-tables.
2824
2825         Tests for module 'unictype/joiningtype-byname'.
2826         * modules/unictype/joiningtype-byname-tests: New file.
2827         * tests/unictype/test-joiningtype_byname.c: New file.
2828
2829         New module 'unictype/joiningtype-byname'.
2830         * modules/unictype/joiningtype-byname: New file.
2831         * lib/unictype/joiningtype_byname.c: New file.
2832
2833         Tests for module 'unictype/joiningtype-name'.
2834         * modules/unictype/joiningtype-name-tests: New file.
2835         * tests/unictype/test-joiningtype_name.c: New file.
2836
2837         New module 'unictype/joiningtype-name'.
2838         * modules/unictype/joiningtype-name: New file.
2839         * lib/unictype/joiningtype_name.c: New file.
2840
2841         unictype: Add support for Arabic shaping properties.
2842         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2843         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2844         declarations.
2845         (UC_JOINING_GROUP_*): New enumeration values.
2846         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2847         declarations.
2848         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2849         (unicode_joining_type): New variable.
2850         (UC_JOINING_GROUP_*): New enumeration values.
2851         (unicode_joining_group): New variable.
2852         (fill_arabicshaping, joining_type_as_c_identifier,
2853         output_joining_type_test, output_joining_type,
2854         joining_group_as_c_identifier, output_joining_group_test,
2855         output_joining_group): New functions.
2856         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2857         fill_arabicshaping and output_joining_type_test, output_joining_type,
2858         output_joining_group_test, output_joining_group.
2859         Reported by Simon Josefsson.
2860
2861 2011-03-21  Jim Meyering  <meyering@redhat.com>
2862
2863         strftime: fix a bug in yesterday's change
2864         * lib/strftime.c (add): Accommodate width's initial value of -1.
2865         Otherwise, nstrftime would copy uninitialized data into
2866         the result buffer.
2867
2868 2011-03-21  Jim Meyering  <meyering@redhat.com>
2869
2870         tests: add strftime-tests module
2871         * tests/test-strftime.c: New file.
2872         * modules/strftime-tests: New module.
2873
2874 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2875
2876         strftime: don't assume a byte count fits in 'int'
2877         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2878         found this problem by static analysis, using gcc -Wstrict-overflow
2879         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2880         on an integer overflow having undefined behavior, but it turns out
2881         that the argument is a size, which might not fit in 'int' anyway,
2882
2883 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2884
2885         stdio: don't require ignore_value around fwrite
2886
2887         This patch works around libc bug 11959
2888         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2889         Without this patch, applications must often write
2890         ignore_value (fwrite (...)) even though the ignore_value is
2891         not helpful here.  It's common to write many objects, using
2892         fwrite/printf/etc., and then use ferror to detect output error.
2893
2894         I considered making this patch optional, but decided against it,
2895         because libc is obviously being inconsistent here: there is no
2896         reason libc should insist that user code must inspect fwrite
2897         return's value without also insisting that it inspect printf's,
2898         putchar's, etc.  If user code wants to have a strict style where
2899         all these functions' values are checked (so that ferror need not
2900         be checked), we could add support for that style in a new gnulib
2901         module, but in the meantime it's better to be consistent and to
2902         support common usage.
2903
2904         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2905         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2906         that we are compiling in checking mode, and if not C++, and
2907         if not already wrapping fwrite for some other reason.
2908         (fwrite): #define to rpl_fwrite if the latter is defined.
2909
2910 2011-03-20  Bruno Haible  <bruno@clisp.org>
2911
2912         verror: Fix compilation error introduced on 2011-02-13.
2913         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2914         instead of __attribute__.
2915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2916
2917 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2918             Bruno Haible  <bruno@clisp.org>
2919
2920         socklen: do not depend on sys_socket
2921         While trying to modify Emacs to use gnulib's socklen module,
2922         I discovered a circular dependency: socklen depends on sys_socket
2923         and vice versa.  Emacs can use socklen, but it does not need
2924         sys_socket because it has its own substitute for sys/socket.h.
2925         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2926         gl_TYPE_SOCKLEN_T.
2927         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2928         gl_PREREQ_SYS_H_SOCKET.
2929         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2930         gl_PREREQ_SYS_H_SOCKET.
2931         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2932         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2933         * modules/socklen (Depends-on): Do not depend on sys_socket.
2934         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2935
2936 2011-03-20  Jim Meyering  <meyering@redhat.com>
2937
2938         maint.mk: sort file names *after* new transformation
2939         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2940         prefix would have led to an unwarranted failure in GNU parted.
2941         Sort after that transformation.
2942
2943 2011-03-19  Jim Meyering  <meyering@redhat.com>
2944
2945         maint.mk: fix po-file syntax-check rule
2946         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2947         Patch by Bruno Haible.
2948
2949 2011-03-19  Bruno Haible  <bruno@clisp.org>
2950
2951         socklen: Update comment.
2952         * m4/socklen.m4: Update comment about platforms.
2953
2954 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2955             Bruno Haible  <bruno@clisp.org>
2956
2957         inet_ntop, inet_pton: Simplify.
2958         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2959         documented to provide socklen_t and we already depend on sys_socket.
2960         * modules/inet_pton (Depends-on): Likewise.
2961         * lib/arpa_inet.in.h: Adjust comment.
2962
2963 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2964             Bruno Haible  <bruno@clisp.org>
2965
2966         netdb: Simplify.
2967         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2968         documented to provide socklen_t and we already depend on sys_socket.
2969         * lib/netdb.in.h: Adjust comment.
2970
2971 2011-03-19  Bruno Haible  <bruno@clisp.org>
2972
2973         sys_socket, netdb: Document problem with socklen_t.
2974         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2975         platforms.
2976         * doc/posix-headers/netdb.texi: Likewise.
2977
2978 2011-03-18  Eric Blake  <eblake@redhat.com>
2979
2980         maint.mk: let po check work in VPATH build
2981         * top/maint.mk (po_file): Allow cfg.mk override.
2982         (sc_po_check): Allow VPATH use.
2983         Reported by Jiri Denemark.
2984
2985 2011-03-16  Jim Meyering  <meyering@redhat.com>
2986
2987         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2988         Before, you would have had to create one .x-sc_ file per rule in order
2989         to exempt offending files.  Now, you may instead use a Make variable --
2990         usually defined in cfg.mk -- whose name identifies the affected rule.
2991         * top/maint.mk (_sc_excl): Define.
2992         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2993         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2994
2995 2011-03-13  Bruno Haible  <bruno@clisp.org>
2996
2997         ignore-value tests: Avoid warnings.
2998         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2999         empty for gcc < 3.4.
3000
3001 2011-03-13  Bruno Haible  <bruno@clisp.org>
3002
3003         passfd: Fix link error on Solaris.
3004         * modules/passfd (Description): Correct.
3005         (Depends-on): Add socketlib.
3006         (Link): New section.
3007         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
3008
3009 2011-03-13  Bruno Haible  <bruno@clisp.org>
3010
3011         passfd: Fix link error on AIX 5.2.
3012         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
3013
3014 2011-03-13  Bruno Haible  <bruno@clisp.org>
3015
3016         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
3017         * lib/sys_socket.in.h: Include <stddef.h>.
3018         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
3019         CMSG_FIRSTHDR. Remove unused variable.
3020
3021 2011-03-13  Bruno Haible  <bruno@clisp.org>
3022
3023         passfd: Fix compilation error on OpenBSD.
3024         * lib/passfd.c: Include <sys/uio.h>.
3025
3026 2011-03-13  Bruno Haible  <bruno@clisp.org>
3027
3028         passfd test: Fix warnings.
3029         * tests/test-passfd.c: Include <sys/wait.h>.
3030         (main): Fix typo.
3031
3032 2011-03-13  Bruno Haible  <bruno@clisp.org>
3033
3034         passfd module, part 4, tweaks.
3035         * tests/test-passfd.c: Reorder includes.
3036         (main): Fix perror and printf calls.
3037
3038 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3039
3040         passfd module, part 4.
3041         * modules/passfd-tests: New file.
3042         * tests/test-passfd.c: New file.
3043
3044 2011-03-13  Jim Meyering  <meyering@redhat.com>
3045
3046         Makefile: rely on GNU make; derive syntax-check rule names
3047         Rather than requiring that each sc_ rule be listed as a dependent
3048         of "check", use features of GNU make to derive the list.
3049         * Makefile (syntax-check-rules): Define.
3050         (check): Depend on the new variable, not the hard-coded list.
3051
3052 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
3053             Bruno Haible  <bruno@clisp.org>
3054
3055         passfd module, part 3.
3056         * lib/passfd.h (recvfd): Add a flags argument.
3057         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3058         (recvfd): Add a flags argument.
3059         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3060         exists.
3061         * modules/passfd (Depends-on): Add cloexec.
3062         Suggested by Eric Blake.
3063
3064 2011-03-13  Bruno Haible  <bruno@clisp.org>
3065
3066         passfd module, part 2, tweaks.
3067         * modules/passfd (Files): Reorder.
3068         (Depends-on): Remove errno.
3069         (Include): Remove <sys/socket.h>, <sys/un.h>.
3070         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3071         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3072         specification header. Include <sys/socket.h> always. Don't include
3073         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3074         (sendfd): Clarify that it sets errno when it fails.
3075         (recvfd): Fix specification.
3076
3077 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3078
3079         passfd module, part 2.
3080         * modules/passfd: New file.
3081         * lib/passfd.h: New file.
3082         * lib/passfd.c: New file.
3083
3084 2011-03-12  Bruno Haible  <bruno@clisp.org>
3085
3086         wcswidth, mbswidth: Avoid integer overflow.
3087         * lib/wcswidth.c: Include <limits.h>.
3088         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3089         * lib/mbswidth.c: Include <limits.h>.
3090         (mbsnwidth): Avoid 'int' overflow.
3091         Reported by Jim Meyering.
3092
3093 2011-03-12  Bruno Haible  <bruno@clisp.org>
3094
3095         futimens, utimensat: Avoid endless recursion on Solaris 10.
3096         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3097         Solaris.
3098         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3099         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3100
3101 2011-03-11  Jim Meyering  <meyering@redhat.com>
3102
3103         maint.mk: relax a regexp to accommodate other formatting styles
3104         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3105         between "ngettext" and the following "(".
3106
3107 2011-03-11  Pádraig Brady <P@draigBrady.com>
3108
3109         maint.mk: suppress a false positive warning
3110         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3111         diagnostics are marked with ngettext.
3112
3113 2011-03-10  Eric Blake  <eblake@redhat.com>
3114
3115         wchar: add explicit dependencies, for Tru64
3116         * modules/mbmemcasecoll (Depends-on): Add wchar.
3117         * modules/mbtowc (Depends-on): Likewise.
3118         * modules/vasnprintf (Depends-on): Likewise.
3119         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3120         * modules/wctomb (Depends-on): Likewise.
3121         Reported by Peter O'Gorman.
3122
3123 2011-03-08  Bruno Haible  <bruno@clisp.org>
3124
3125         passfd module, part 1, tweaks.
3126         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3127         Improve indentation. Improve AC_MSG_CHECKING messages.
3128         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3129         gl_SOCKET_FAMILIES.
3130
3131 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3132
3133         passfd module, part 1.
3134         * m4/afunix.m4: New file.
3135         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3136         sockets.
3137
3138 2011-03-08  Bruno Haible  <bruno@clisp.org>
3139
3140         regex-quote: New API.
3141         * lib/regex-quote.h: Include <stdbool.h>.
3142         (struct regex_quote_spec): New type.
3143         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3144         New declarations.
3145         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3146         'const struct regex_quote_spec *' argument.
3147         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3148         (pcre_special): New constant.
3149         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3150         New functions.
3151         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3152         'const struct regex_quote_spec *' argument.
3153         * modules/regex-quote (Depends-on): Add stdbool.
3154         * tests/test-regex-quote.c (check): Update for new API. Add test for
3155         anchored results.
3156         * NEWS: Mention the API change.
3157         Reported by Reuben Thomas and Eric Blake.
3158
3159 2011-03-06  Bruno Haible  <bruno@clisp.org>
3160
3161         regex-quote: Fix creation of POSIX extended regular expressions.
3162         * lib/regex-quote.c (ere_special): Add grouping and alternation
3163         operators.
3164
3165 2011-03-05  Bruno Haible  <bruno@clisp.org>
3166
3167         doc: Improve doc regarding autopoint vs. gnulib.
3168         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3169         disable autopoint while running autoreconf.
3170         Suggested by Ralf Wildenhues.
3171
3172 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3173
3174         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3175         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3176
3177 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3178
3179         parse-duration: remove xalloc.h dependency
3180         * lib/parse-duration.c (parse_period): handle NULL return from
3181         strdup instead of calling xstrdup().
3182         * modules/parse-duration: remove "xalloc" dependency
3183
3184 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3185
3186         bootstrap: honor m4_base when running aclocal
3187         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3188
3189 2011-03-02  Jim Meyering  <meyering@redhat.com>
3190
3191         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3192         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3193         on request from Matt Booth.
3194
3195 2011-03-01  Eric Blake  <eblake@redhat.com>
3196
3197         test-link: work on Hurd
3198         * tests/test-link.h (test_link): Hurd rejects linking directories
3199         with EISDIR instead of the POSIX-mandated EPERM.
3200
3201 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3202
3203         stdio: simplify by moving files to printf-posix, sigpipe
3204         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3205         since this symbol is needed only if printf is replaced.
3206         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3207         Require gl_ASM_SYMBOL_PREFIX.
3208         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3209         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3210         (Depends-on): Add 'raise'.
3211         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3212         * modules/stdio (Files): Remove lib/stdio-write.c,
3213         m4/asm-underscore.m4.
3214         (Depends-on): Remove 'raise'.
3215
3216         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3217         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3218         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3219         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3220
3221 2011-02-28  Bruno Haible  <bruno@clisp.org>
3222
3223         localcharset: Assume ANSI C behaviour of free().
3224         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3225         calling free().
3226         Suggested by Simon Josefsson <simon@josefsson.org>.
3227
3228 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3229             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3230             Bruno Haible  <bruno@clisp.org>  (tiny change)
3231
3232         On Cygwin, use /proc file system instead of win32 API.
3233         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3234         Win32 file names.
3235         (DllMain): Simplify by removing Cygwin specific code.
3236         (find_shared_library_fullname): Use Linux specific implementation also
3237         for Cygwin.
3238         (get_shared_library_fullname): Update accordingly.
3239         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3240         Win32 file names.
3241         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3242         Cygwin specific code.
3243
3244 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3245             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3246
3247         Fix OpenMP flag detection for various Fortran compilers.
3248         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3249         OpenMP-conditional compilation construct, to force compile
3250         failure with missing OpenMP flag.
3251         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3252
3253 2011-02-25  Eric Blake  <eblake@redhat.com>
3254
3255         strstr: expand test coverage
3256         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3257         compilation.
3258         * tests/test-memmem.c (main): Duplicate tests.
3259         * tests/test-strcasestr.c (main): Likewise.
3260         * tests/test-c-strcasestr.c (main): Likewise.
3261
3262 2011-02-25  Jim Meyering  <meyering@redhat.com>
3263
3264         maint.mk: detect missing-NL-at-EOF, too
3265         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3266         it also detects when a file lacks a newline at EOF.
3267         (require_exactly_one_NL_at_EOF_): Renamed from
3268         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3269         since people may well have .x-sc_... file names tied to the
3270         existing name.  Suggested by Eric Blake.
3271
3272 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3273
3274         dirname: move m4/dos.m4 functionality into lib/dosname.h
3275
3276         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3277         extracts symbols from it, puts them into config.h; but it's much
3278         easier to use the symbols directly.  filename.h already does this,
3279         but it disagrees with dos.m4 in some respects.  This patch
3280         introduces a different include file dosname.h that packages up
3281         dos.m4, and then later we can work on merging filename.h and
3282         dosname.h.  Applications that need only the easy-to-configure
3283         symbols should consider including dosname.h rather than dirname.h.
3284         * NEWS: Mention incompatible changes.
3285         * m4/dos.m4: Remove.
3286         * lib/dosname.h, modules/dosname: New files.
3287         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3288         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3289         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3290         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3291         Include dosname.h, not dirname.h.
3292         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3293         Include dosname.h, for definitions of symbols like ISSLASH
3294         that used to be in config.h.
3295         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3296         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3297         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3298         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3299         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3300         * modules/rmdir (Files): Likewise.
3301         * modules/stat (Files): Likewise.
3302         * modules/unlink (Files): Likewise.
3303         * modules/dirname-lgpl (Depends-on): Add dosname.
3304         * modules/lstat (Depends-on): Likewise.
3305         * modules/openat (Depends-on): Likewise.
3306         * modules/rmdir (Depends-on): Likewise.
3307         * modules/savewd (Depends-on): Likewise.
3308         * modules/stat (Depends-on): Likewise.
3309         * modules/unlink (Depends-on): Likewise.
3310         * modules/openat (Depends-on): Remove dirname-lgpl.
3311         * modules/savewd (Depends-on): Likewise.
3312         * tests/test-dirname.c: Do not use removed symbols like
3313         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3314         the remaining symbols, e.g., ISSLASH ('\\').
3315
3316 2011-02-25  Eric Blake  <eblake@redhat.com>
3317
3318         strstr: revert patches that introduced bug and pessimization
3319         * lib/str-two-way.h: Add another reference.
3320         (two_way_short_needle, two_way_long_needle): Revert changes from
3321         2011-02-24; they pessimize search speed.
3322         (critical_factorization): Partially revert changes from
3323         2010-06-22; they violate the requirement that the left half of the
3324         needle be smaller than the period of the needle.
3325
3326 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3327
3328         filenamecat: remove unnecessary dependency on dirname-lgpl
3329         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3330         is no direct dependency, just an indirect one via filenamecat-lgpl.
3331
3332         remove: remove unnecessary use of m4/dos.m4
3333         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3334         * modules/remove (FILES): Remove m4/dos.m4.
3335
3336         * lib/openat-proc.c: Don't include dirname.h; not needed.
3337
3338         backupfile: remove unnecessary use of m4/dos.m4
3339         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3340         of its symbols are used by the backupfile code.  backupfile.c does
3341         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3342         for the rare case of programs that want all their backup file
3343         names to live within 8+3 limits, and dos.m4 doesn't address that.
3344         * modules/backupfile (Files): Remove m4/dos.m4.
3345
3346 2011-02-24  Jim Meyering  <meyering@redhat.com>
3347
3348         strstr: fix a bug whereby strstr would mistakenly return NULL
3349         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3350         in period calculation.
3351         (two_way_long_needle): Likewise.
3352         The original problem was reported by Mike Stump in
3353         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3354         Ralf Wildenhues provided the short needle and haystack.
3355         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3356         Add a more involved test to trigger the bug in two_way_long_needle.
3357
3358 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3359
3360         gnulib-tool: remove use of bold display in help screen
3361         * gnulib-tool (func_usage): Do not use bold display anymore in the
3362         help screen.  That was just meant to be a temporary emphasis for a
3363         backward-incompatible change.
3364
3365 2011-02-23  Bruno Haible  <bruno@clisp.org>
3366
3367         Fix misindentation of preprocessor directives.
3368         * lib/argp-namefrob.h: Reindent preprocessor directives.
3369         * lib/getopt_int.h (struct _getopt_data): Likewise.
3370         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3371         * lib/vasnprintf.c (decode_long_double): Likewise.
3372         * tests/test-argmatch.c: Insert blank lines, for clarity.
3373         * tests/test-exclude.c: Likewise.
3374
3375 2011-02-22  Bruno Haible  <bruno@clisp.org>
3376
3377         ioctl: Fix for MacOS X in 64-bit mode.
3378         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3379         value.
3380         Suggested by Eric Blake.
3381         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3382
3383 2011-02-22  Jim Meyering  <meyering@redhat.com>
3384
3385         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3386         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3387         in lib/.
3388
3389 2011-02-22  Eric Blake  <eblake@redhat.com>
3390
3391         maint: avoid any CDPATH issue
3392         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3393
3394         maint: adjust cpp indentation for my modules, as well
3395         * Makefile (sc_cpp_indent_check): Add my name.
3396         * lib/fbufmode.c: Filter through cppi.
3397         * lib/fpurge.c: Likewise.
3398         * lib/freadable.c: Likewise.
3399         * lib/freading.c: Likewise.
3400         * lib/fwritable.c: Likewise.
3401         * lib/fwriting.c: Likewise.
3402         * lib/sigaction.c: Likewise.
3403
3404 2011-02-22  Jim Meyering  <meyering@redhat.com>
3405
3406         maint: adjust cpp indentation to reflect nesting depth
3407         I.e., in a block of code that begins with an unnested "#if",
3408         put one space between the "#" in column 1 and following token.
3409         For example,
3410         -#include <sys/vfs.h>
3411         +# include <sys/vfs.h>
3412         Do this only in .c files that are part of a module I maintain.
3413         * lib/linkat.c: Filter through cppi.
3414         * lib/nanosleep.c: Likewise.
3415         * lib/openat.c: Likewise.
3416         * lib/openat-die.c: Likewise.
3417         * lib/dup3.c: Likewise.
3418         * lib/fchownat.c: Likewise.
3419         * lib/flock.c: Likewise.
3420         * lib/fsync.c: Likewise.
3421         * lib/fts.c: Likewise.
3422         * lib/getpass.c: Likewise.
3423         * lib/gettimeofday.c: Likewise.
3424         * lib/userspec.c: Likewise.
3425         * Makefile (sc_cpp_indent_check): New rule, to check this.
3426
3427 2011-02-22  Bruno Haible  <bruno@clisp.org>
3428
3429         New module 'wctomb'.
3430         * lib/stdlib.in.h (wctomb): New declaration.
3431         * lib/wctomb.c: New file.
3432         * lib/wctomb-impl.h: New file.
3433         * m4/wctomb.m4: New file.
3434         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3435         REPLACE_WCTOMB.
3436         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3437         REPLACE_WCTOMB.
3438         * modules/wctomb: New file.
3439         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3440         * doc/posix-functions/wctomb.texi: Mention the new module.
3441         * modules/wctob (Depends-on): Add wctomb.
3442
3443 2011-02-22  Bruno Haible  <bruno@clisp.org>
3444
3445         New module 'mbtowc'.
3446         * lib/stdlib.in.h (mbtowc): New declaration.
3447         * lib/mbtowc.c: New file.
3448         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3449         * m4/mbtowc.m4: New file.
3450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3451         REPLACE_MBTOWC.
3452         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3453         REPLACE_MBTOWC.
3454         * modules/mbtowc: New file.
3455         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3456         * doc/posix-functions/mbtowc.texi: Mention the new module.
3457         * modules/btowc (Depends-on): Add mbtowc.
3458
3459 2011-02-22  Bruno Haible  <bruno@clisp.org>
3460
3461         wcrtomb: Add more tests for native Windows platforms.
3462         * tests/test-wcrtomb-w32-1.sh: New file.
3463         * tests/test-wcrtomb-w32-2.sh: New file.
3464         * tests/test-wcrtomb-w32-3.sh: New file.
3465         * tests/test-wcrtomb-w32-4.sh: New file.
3466         * tests/test-wcrtomb-w32-5.sh: New file.
3467         * tests/test-wcrtomb-w32.c: New file.
3468         * modules/wcrtomb-tests (Files): Add them.
3469         (Makefile.am): Arrange to run these tests.
3470         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3471         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3472
3473 2011-02-20  Bruno Haible  <bruno@clisp.org>
3474
3475         wcrtomb: Enhance test.
3476         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3477
3478 2011-02-20  Bruno Haible  <bruno@clisp.org>
3479
3480         mbrtowc: Tiny optimization.
3481         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3482
3483 2011-02-20  Jim Meyering  <meyering@redhat.com>
3484
3485         test-exclude.c: remove unmatched #endif
3486         * tests/test-exclude.c: Remove stray #endif, left over from
3487         the change of a week ago.
3488
3489 2011-02-19  Jim Meyering  <meyering@redhat.com>
3490
3491         git-version-gen: skip "-dirty" check when appropriate
3492         * build-aux/git-version-gen: Don't run any git commands when the
3493         version string comes from .tarball-version.  Prior to this, we
3494         would run git update-index --refresh even from a just-unpacked
3495         tarball directory, and that could affect a .git/ directory in a
3496         parent of the build directory.  Reported by Mike Frysinger.
3497
3498 2011-02-19  Bruno Haible  <bruno@clisp.org>
3499
3500         unictype/property-byname: Reduce the size of the 'data' segment.
3501         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3502
3503 2011-02-19  Bruno Haible  <bruno@clisp.org>
3504
3505         unictype/scripts: Reduce the size of the 'data' segment.
3506         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3507         '%pic'.
3508         * lib/unictype/scripts_byname.gperf: Regenerated.
3509
3510 2011-02-19  Bruno Haible  <bruno@clisp.org>
3511
3512         stdint: Update documentation.
3513         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3514
3515 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3516
3517         stdint: omit redundant check for wchar.h
3518         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3519         always tests whether wchar.h exists, so remove the now-redundant test.
3520
3521 2011-02-18  Bruno Haible  <bruno@clisp.org>
3522
3523         stdint: Cut dependency to module 'wchar'.
3524         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3525         include the necessary prerequisites.
3526         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3527         * modules/stdint (Depends-on): Remove wchar.
3528         (Makefile.am): Substitute HAVE_WCHAR_H.
3529         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3530
3531 2011-02-18  Eric Blake  <eblake@redhat.com>
3532
3533         longlong: skip, rather than fail, on cross-compilation
3534         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3535         when cross-compiling; regression from 2011-02-16.
3536
3537 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3538
3539         * NEWS: Mention 2011-02-08 change to stdlib.
3540
3541 2011-02-17  Bruno Haible  <bruno@clisp.org>
3542
3543         getloadavg: Add comments about platforms.
3544         * m4/getloadavg.m4: Add comment.
3545         * lib/getloadavg.c: Likewise.
3546
3547 2011-02-17  Bruno Haible  <bruno@clisp.org>
3548
3549         getloadavg: Fix link error on Solaris 2.6.
3550         * modules/getloadavg (Link): New section.
3551         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3552         linking test-getloadavg.
3553         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3554         getloadavg.
3555
3556 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3557
3558         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3559         It was 'int', but this doesn't match the IRIX 6.5 manual.
3560         Suggested by Bruno Haible in
3561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3562
3563 2011-02-17  Bruno Haible  <bruno@clisp.org>
3564
3565         havelib: Fix comments.
3566         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3567         change.
3568
3569 2011-02-17  Bruno Haible  <bruno@clisp.org>
3570
3571         havelib: Update config.rpath.
3572         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3573
3574 2011-02-17  Bruno Haible  <bruno@clisp.org>
3575
3576         getloadavg test: Add some plausibility checks.
3577         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3578         is improbable.
3579
3580 2011-02-16  Eric Blake  <eblake@redhat.com>
3581
3582         maintainer-makefile: make syntax-check a no-op from tarballs
3583         * top/maint.mk (no-vc-detected): New rule.
3584         (local-checks-available): Use it to avoid hanging if someone tries
3585         'make syntax-check' from a tarball.  Also append to any non-syntax
3586         checks already defined in cfg.mk.
3587
3588 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3589
3590         longlong: tune, particularly for common case of c99
3591
3592         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3593         or running anything if c99, or if unsigned long long int does not
3594         work.  In either case, we know the answer without further tests.
3595         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3596         it at most once, and use its results for both long long int and
3597         unsigned long long int.  This is more likely to be efficient in
3598         the common case where the program wants to check for both long
3599         long int and unsigned long long int.
3600         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3601         since the answer is already known.
3602
3603 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3604
3605         getloadavg: set errno
3606         * lib/getloadavg.c: Set errno when returning -1.  If no other
3607         error number looks appropriate, set it to ENOSYS if the getloadavg
3608         looks like it can't possibly ever work, ENOTSUP otherwise.
3609         Suggested by Bruno Haible in
3610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3611
3612         getloadavg: trim unused parts and speed up 'configure'
3613         * NEWS: Document this.
3614         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3615         always compiled if getloadavg is absent.
3616         Move test code to ...
3617         * tests/test-getloadavg.c: New file, containing previous
3618         contents of test from lib/getloadavg.c.  It also contains
3619         suggestions by Bruno Haible in
3620         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3621         * modules/getloadavg-tests: New file.
3622         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3623         Do tests in the same order as they're needed for getloadavg.c.
3624         Omit setgid-related tests that generate symbols KMEM_GROUP,
3625         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3626         Do only the tests that are needed to see whether the system has
3627         getloadavg, moving the other tests into ...
3628         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3629         NLIST_NAME_UNION; nobody should be using it.  Do not define
3630         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3631         relevant, as the user of this module shouldn't care how getloadavg
3632         is implemented.
3633
3634         getloadavg: omit unused var
3635         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3636
3637 2011-02-15  Jim Meyering  <meyering@redhat.com>
3638
3639         doc: update users.txt
3640         * users.txt: Update iwhd's URL.
3641
3642 2011-02-13  Bruno Haible  <bruno@clisp.org>
3643
3644         Consistent macro naming for macros that use GCC __attribute__.
3645         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3646         _ATTRIBUTE_NONNULL_.
3647         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3648         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3649         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3650         ATTRIBUTE_DEPRECATED.
3651         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3652         ATTRIBUTE_NORETURN.
3653         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3654         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3655         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3656         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3657         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3658         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3659         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3660         ATTRIBUTE_SENTINEL.
3661         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3662         ATTRIBUTE_RETURN_CHECK.
3663         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3664         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3665         ATTRIBUTE_NORETURN.
3666         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3667         Reported by Paul Eggert.
3668
3669 2011-02-13  Bruno Haible  <bruno@clisp.org>
3670
3671         Don't interfere with a program's definition of __attribute__.
3672         * lib/argp.h (__attribute__): Remove definition.
3673         (_GL_ATTRIBUTE_FORMAT): New macro.
3674         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3675         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3676         (_GL_ATTRIBUTE_FORMAT): New macro.
3677         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3678         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3679         GCC 3 or newer.
3680         * lib/error.h (__attribute__): Remove definition.
3681         (_GL_ATTRIBUTE_FORMAT): New macro.
3682         (error, error_at_line): Use it.
3683         * lib/hash.h (__attribute__): Remove definition.
3684         (ATTRIBUTE_WUR): Update definition. Define always.
3685         * lib/openat.h (__attribute__): Remove definition.
3686         (ATTRIBUTE_NORETURN): Update definition. Define always.
3687         * lib/sigpipe-die.h (__attribute__): Remove definition.
3688         (ATTRIBUTE_NORETURN): Update definition. Define always.
3689         * lib/vasnprintf.h (__attribute__): Remove definition.
3690         (_GL_ATTRIBUTE_FORMAT): New macro.
3691         (asnprintf, vasnprintf): Use it.
3692         * lib/xalloc.h (__attribute__): Remove definition.
3693         (ATTRIBUTE_NORETURN): Update definition. Define always.
3694         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3695         * lib/xmemdup0.h (__attribute__): Remove definition.
3696         (ATTRIBUTE_NORETURN): Update definition. Define always.
3697         * lib/xprintf.h (__attribute__): Remove definition.
3698         (_GL_ATTRIBUTE_FORMAT): New macro.
3699         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3700         * lib/xstrtol.h (__attribute__): Remove definition.
3701         (ATTRIBUTE_NORETURN): Update definition. Define always.
3702         * lib/xvasprintf.h (__attribute__): Remove definition.
3703         (_GL_ATTRIBUTE_FORMAT): New macro.
3704         (xasprintf, xvasprintf): Use it.
3705         * tests/test-argmatch.c (__attribute__): Remove definition.
3706         (ATTRIBUTE_NORETURN): Update definition. Define always.
3707         * tests/test-exclude.c (__attribute__): Remove definition.
3708         (ATTRIBUTE_NORETURN): Update definition. Define always.
3709         Reported by Paul Eggert.
3710
3711 2011-02-13  Bruno Haible  <bruno@clisp.org>
3712
3713         mbrtowc: Add more tests for native Windows platforms.
3714         * tests/test-mbrtowc-w32-1.sh: New file.
3715         * tests/test-mbrtowc-w32-2.sh: New file.
3716         * tests/test-mbrtowc-w32-3.sh: New file.
3717         * tests/test-mbrtowc-w32-4.sh: New file.
3718         * tests/test-mbrtowc-w32-5.sh: New file.
3719         * tests/test-mbrtowc-w32.c: New file.
3720         * modules/mbrtowc-tests (Files): Add them.
3721         (Makefile.am): Arrange to run these tests.
3722         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3723         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3724
3725 2011-02-13  Bruno Haible  <bruno@clisp.org>
3726
3727         mbrtowc: Work around native Windows bug.
3728         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3729         guess when no suitable locale for testing was found.
3730         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3731
3732 2011-02-13  Bruno Haible  <bruno@clisp.org>
3733
3734         mbsinit: Work around mingw bug.
3735         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3736         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3737         Windows.
3738         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3739
3740 2011-02-13  Bruno Haible  <bruno@clisp.org>
3741
3742         mbsinit: Don't crash for a NULL argument.
3743         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3744         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3745
3746 2011-02-13  Bruno Haible  <bruno@clisp.org>
3747
3748         Don't interfere with a program's definition of __attribute__.
3749         * lib/stdio.in.h (__attribute__): Remove definition.
3750         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3751         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3752         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3753         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3754         * lib/string.in.h (__attribute__): Remove definition.
3755         Reported by Paul Eggert.
3756
3757 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3758
3759         stdlib: don't get in the way of non-GCC __attribute__
3760         See thread starting at
3761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3762         Revert previous stdlib change, installing the following instead:
3763         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3764         to get in the way of a non-GCC compiler that supports __attribute__.
3765         (_GL_ATTRIBUTE_RETURN): New macro.
3766         (_Exit): Use it instead of __attribute__.
3767
3768 2011-02-12  Bruno Haible  <bruno@clisp.org>
3769
3770         quotearg test: Avoid test failure on mingw.
3771         * tests/test-quotearg.sh: Convert the locale identifier from native
3772         Windows syntax to Unix syntax.
3773
3774 2011-02-12  Bruno Haible  <bruno@clisp.org>
3775
3776         setlocale: Prefer gnulib's override over libintl's override.
3777         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3778         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3779         GNULIB_defined_setlocale is set.
3780
3781 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3782
3783         stdlib: support non-GCC __attribute__
3784
3785         Fix a serious and tricky problem encountered when attempting to
3786         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3787         5.5, but it crashed due to memory corruption on Solaris 10 with
3788         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3789         bits that are otherwise zero.  This tagging is optional inside
3790         Emacs but is preferred and is used when __attribute__ ((__aligned
3791         (8))) works, as it does with both recent-enough GCC and with Sun C
3792         5.11.  However, Sun C 5.11 is not GCC and does not #define
3793         __GNUC__ and __GNUC_MINOR__.
3794
3795         When I added the getloadavg module to Emacs, it brought in
3796         stdlib.in.h, which contained this fragment:
3797
3798            #ifndef __attribute__
3799            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3800            #  define __attribute__(Spec)   /* empty */
3801            # endif
3802            #endif
3803
3804         When files that include <stdlib.h> were compiled with Sun C 5.11,
3805         the above code disabled __attribute__ ((__aligned (8))), which
3806         caused variables to not be properly aligned, which eventually led
3807         to the pointer corruption mentioned above.  (This was a bit hard
3808         to diagnose, unfortunately.)
3809
3810         Several "#define __attribute__(X) /* empty */" code snippets need
3811         to be eradicated from Gnulib to work with non-GCC compilers that
3812         support __attribute__.  The Autoconf way to do this is to test for
3813         each kind of attribute that we want support for, and selectively
3814         enable that in source code.
3815
3816         Fix this problem just for stdlib.h, by adding a test for the
3817         __noreturn__ attribute, and change stdlib.in.h to use that test
3818         when needed.  This technique can be easily generalized to the
3819         other *.in.h files and attributes, and a similar technique can be
3820         used for *.h and *.c files.  This patch is enough to solve the
3821         problem for Emacs + getloadavg, and I thought I'd publish it for
3822         feedback before undertaking further, similar fixes in other
3823         modules.
3824
3825         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3826         because it's not needed for stdlib.h.  It merely substitutes the
3827         value directly into stdlib.h.  We may well need to #define it, or
3828         similar symbols, for other modules, but it's nice to also have an
3829         option to not #define it for applications like Emacs that do not
3830         need it.
3831
3832         * lib/stdlib.in.h (__attribute__): Do not #define.
3833         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3834         be defined only if the _Exit module is also used.
3835         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3837         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3838         platforms.
3839         * modules/_Exit (Files): Add m4/attribute.m4.
3840         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3841         * m4/attribute.m4: New file.
3842
3843 2011-02-12  Bruno Haible  <bruno@clisp.org>
3844
3845         wcsrtombs: Work around bug on native Windows.
3846         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3847         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3848         instead of len.
3849         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3850
3851 2011-02-12  Bruno Haible  <bruno@clisp.org>
3852
3853         mbsrtowcs: Work around bug on native Windows.
3854         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3855         against mingw bug.
3856         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3857
3858 2011-02-12  Bruno Haible  <bruno@clisp.org>
3859
3860         Avoid setlocale bugs in tests.
3861         * modules/btowc (Dependencies): Add setlocale.
3862         * modules/c-strcase (Dependencies): Likewise.
3863         * modules/mbmemcasecmp (Dependencies): Likewise.
3864         * modules/mbmemcasecoll (Dependencies): Likewise.
3865         * modules/mbrtowc (Dependencies): Likewise.
3866         * modules/mbscasecmp (Dependencies): Likewise.
3867         * modules/mbscasestr (Dependencies): Likewise.
3868         * modules/mbschr (Dependencies): Likewise.
3869         * modules/mbscspn (Dependencies): Likewise.
3870         * modules/mbsinit (Dependencies): Likewise.
3871         * modules/mbsncasecmp (Dependencies): Likewise.
3872         * modules/mbsnrtowcs (Dependencies): Likewise.
3873         * modules/mbspbrk (Dependencies): Likewise.
3874         * modules/mbspcasecmp (Dependencies): Likewise.
3875         * modules/mbsrchr (Dependencies): Likewise.
3876         * modules/mbsrtowcs (Dependencies): Likewise.
3877         * modules/mbsspn (Dependencies): Likewise.
3878         * modules/mbsstr (Dependencies): Likewise.
3879         * modules/nl_langinfo (Dependencies): Likewise.
3880         * modules/quotearg (Dependencies): Likewise.
3881         * modules/unicase/locale-language (Dependencies): Likewise.
3882         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3883         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3884         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3885         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3886         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3887         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3888         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3889         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3890         * modules/vasnprintf-posix (Dependencies): Likewise.
3891         * modules/wcrtomb (Dependencies): Likewise.
3892         * modules/wcsnrtombs (Dependencies): Likewise.
3893         * modules/wcsrtombs (Dependencies): Likewise.
3894
3895 2011-02-12  Bruno Haible  <bruno@clisp.org>
3896
3897         setlocale: Workaround native Windows bug.
3898         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3899         succeeds but sets LC_CTYPE to "C", report a failure.
3900         * tests/test-setlocale2.sh: New file.
3901         * tests/test-setlocale2.c: New file.
3902         * modules/setlocale-tests (Files): Add the new files.
3903         (Makefile.am): Enable test-setlocale2.sh test.
3904         * doc/posix-functions/setlocale.texi: Mention workaround.
3905
3906 2011-02-11  Bruno Haible  <bruno@clisp.org>
3907
3908         Tests for module 'setlocale'.
3909         * modules/setlocale-tests: New file.
3910         * tests/test-setlocale1.sh: New file.
3911         * tests/test-setlocale1.c: New file.
3912
3913         New module 'setlocale'.
3914         * lib/locale.in.h (setlocale): New declaration.
3915         * lib/setlocale.c: New file, based on
3916         gettext/gettext-runtime/intl/setlocale.c.
3917         * m4/setlocale.m4: New file.
3918         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3919         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3920         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3921         REPLACE_SETLOCALE.
3922         * modules/setlocale: New file.
3923         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3924         * doc/posix-functions/setlocale.texi: Mention the new module.
3925
3926 2011-02-11  Bruno Haible  <bruno@clisp.org>
3927
3928         Prepare for locale dependent tests on mingw.
3929         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3930         because it has the wrong locale encoding.
3931         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3932         French_France.1252 instead of "fr".
3933         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3934         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3935         because it has the wrong locale encoding.
3936         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3937         native Windows, try Turkish_Turkey.65001.
3938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3939         Chinese_China.54936.
3940
3941         Prepare for locale dependent tests on mingw.
3942         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3943         differently.
3944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3945         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3946         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3947         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3948
3949 2011-02-11  Eric Blake  <eblake@redhat.com>
3950
3951         strptime: avoid compiler warnings
3952         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3953         compiler warnings about dead code.
3954         Reported by Daniel P. Berrange.
3955
3956 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3957
3958         doc: update users.txt
3959         * users.txt: Add rcs.
3960
3961 2011-02-10  John W. Eaton  <jwe@gnu.org>
3962
3963         doc: update users.txt
3964         * users.txt: Add octave.
3965
3966 2011-02-10  Jim Meyering  <meyering@redhat.com>
3967
3968         doc: update users.txt
3969         * users.txt: Add iwhd.
3970
3971 2011-02-09  Bruno Haible  <bruno@clisp.org>
3972
3973         gnulib-tool: Make copyright notice adjustment more robust.
3974         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3975         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3976         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3977         License".
3978         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3979
3980 2011-02-06  Bruno Haible  <bruno@clisp.org>
3981
3982         New module 'towctrans'.
3983         * modules/towctrans: New file.
3984         * lib/wctype.in.h (towctrans): New declaration.
3985         * lib/towctrans.c: New file.
3986         * lib/towctrans-impl.h: New file.
3987         * m4/towctrans.m4: New file.
3988         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3989         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3990         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3991         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3992         * doc/posix-functions/towctrans.texi: Mention the new module.
3993
3994 2011-02-06  Bruno Haible  <bruno@clisp.org>
3995
3996         New module 'wctrans'.
3997         * modules/wctrans: New file.
3998         * lib/wctype.in.h (wctrans): New declaration.
3999         * lib/wctrans.c: New file.
4000         * lib/wctrans-impl.h: New file.
4001         * m4/wctrans.m4: New file.
4002         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
4003         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
4004         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
4005         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
4006         * doc/posix-functions/wctrans.texi: Mention the new module.
4007
4008 2011-02-06  Bruno Haible  <bruno@clisp.org>
4009
4010         New module 'iswctype'.
4011         * modules/iswctype: New file.
4012         * lib/wctype.in.h (iswctype): New declaration.
4013         * lib/iswctype.c: New file.
4014         * lib/iswctype-impl.h: New file.
4015         * m4/iswctype.m4: New file.
4016         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
4017         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
4018         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
4019         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
4020         * doc/posix-functions/iswctype.texi: Mention the new module and the
4021         HP-UX 11.00 problem.
4022
4023 2011-02-06  Bruno Haible  <bruno@clisp.org>
4024
4025         New module 'wctype'.
4026         * modules/wctype: Change to represent the wctype() substitute.
4027         * lib/wctype.in.h (wctype): New declaration.
4028         * lib/wctype.c: New file.
4029         * lib/wctype-impl.h: New file.
4030         * m4/wctype.m4: New file.
4031         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
4032         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
4033         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
4034         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
4035         * doc/posix-functions/wctype.texi: Mention the new module and the
4036         HP-UX 11.00 problem.
4037
4038 2011-02-06  Bruno Haible  <bruno@clisp.org>
4039
4040         wctype-h: Ensure wctype_t and wctrans_t are defined.
4041         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
4042         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4043         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
4044         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
4045         HAVE_WCTRANS_T.
4046         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
4047
4048 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4049
4050         flock: fix license typo
4051
4052         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
4053         omitted.
4054
4055 2011-02-08  Bruno Haible  <bruno@clisp.org>
4056
4057         Split large sed scripts, for HP-UX sed.
4058         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4059         to avoid HP-UX limit of 99 commands, in the near future.
4060         * modules/stdlib (Makefile.am): Likewise.
4061         * modules/unistd (Makefile.am): Likewise.
4062         * modules/wchar (Makefile.am): Likewise.
4063         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4064         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4065         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4066
4067 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4068             Bruno Haible  <bruno@clisp.org>
4069
4070         stdlib: improve random_r modularization
4071         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4072         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4073         you also need the random_r module to get this material right.
4074         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4075         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4076         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4077
4078 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4079
4080         stdlib: don't depend on stdint
4081         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4082         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4083         be independent of whether stdint.h is needed.
4084         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4085         here, instead of ...
4086         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4087         struct random_data should be using the random_r module, not just
4088         the stdlib module (which wouldn't make sense: what package needs
4089         just struct random_data without also needing random_r?).
4090         * modules/stdlib (Depends-on): Remove stdint.
4091
4092         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4093         See the thread rooted at
4094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4095         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4096         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4097         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4098         __VMS)); previously it was always included (via fcntl--.h).
4099         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4100         hand; this is good enough for load averages.  Also, do not use
4101         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4102         flags directly if available and don't bother otherwise.  (Packages
4103         that need the extra reliability should use the modules that define
4104         these flags on older platforms that lack them.)
4105         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4106         fcntl-safer.
4107
4108 2011-02-08  Jim Meyering  <meyering@redhat.com>
4109
4110         di-set.h, ino-map.h: add multiple-inclusion guard
4111         Technically, the guard is required only for ino-map.h, due to its
4112         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4113         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4114         * lib/ino-map.h: Likewise.
4115
4116 2011-02-06  Bruno Haible  <bruno@clisp.org>
4117
4118         iswblank: Ensure declaration on glibc systems.
4119         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4120         * modules/iswblank (Dependencies): Add 'extensions'.
4121         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4122
4123 2011-02-06  Bruno Haible  <bruno@clisp.org>
4124
4125         New module 'iswblank'.
4126         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4127         * modules/iswblank: New file.
4128         * modules/wctype-h (Files): Remove lib/iswblank.c.
4129         (Makefile.am): Substitute GNULIB_ISWBLANK.
4130         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4131         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4132         (gl_WCTYPE_H_DEFAULTS): New macro.
4133         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4134         * modules/iswblank-tests: New file.
4135         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4136         * tests/test-wctype-h.c (main): Remove iswblank tests.
4137         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4138         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4139         of 'wctype-h'.
4140         * NEWS: Mention the change.
4141         * modules/mbchar (Depends-on): Add iswblank.
4142
4143 2011-02-08  Bruno Haible  <bruno@clisp.org>
4144
4145         di-set tests: Refactor.
4146         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4147         unnecessary includes.
4148         (ASSERT): Remove macro.
4149         (main): Make C90 compliant by avoiding variable declaration after
4150         statement.
4151         * modules/di-set-tests (Files): Add tests/macros.h.
4152
4153 2011-02-08  Bruno Haible  <bruno@clisp.org>
4154
4155         ino-map tests: Refactor.
4156         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4157         unnecessary includes.
4158         (ASSERT): Remove macro.
4159         (main): Make C90 compliant by avoiding variable declaration after
4160         statement.
4161         * modules/ino-map-tests (Files): Add tests/macros.h.
4162
4163 2011-02-08  Jim Meyering  <meyering@redhat.com>
4164
4165         di-set: add "const" to a cast
4166         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4167         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4168
4169 2011-02-06  Bruno Haible  <bruno@clisp.org>
4170
4171         Rename module 'wctype' to 'wctype-h'.
4172         * modules/wctype-h: Renamed from modules/wctype.
4173         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4174         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4175         (Files, Depends-on, Makefile.am): Update.
4176         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4177         (Files, Makefile.am): Update.
4178         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4179         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4180         * doc/posix-headers/wctype.texi: Update.
4181         * doc/posix-functions/iswalnum.texi: Update.
4182         * doc/posix-functions/iswalpha.texi: Update.
4183         * doc/posix-functions/iswblank.texi: Update.
4184         * doc/posix-functions/iswcntrl.texi: Update.
4185         * doc/posix-functions/iswdigit.texi: Update.
4186         * doc/posix-functions/iswgraph.texi: Update.
4187         * doc/posix-functions/iswlower.texi: Update.
4188         * doc/posix-functions/iswprint.texi: Update.
4189         * doc/posix-functions/iswpunct.texi: Update.
4190         * doc/posix-functions/iswspace.texi: Update.
4191         * doc/posix-functions/iswupper.texi: Update.
4192         * doc/posix-functions/iswxdigit.texi: Update.
4193         * doc/posix-functions/towlower.texi: Update.
4194         * doc/posix-functions/towupper.texi: Update.
4195         * NEWS: Mention the change.
4196         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4197         * modules/mbchar (Dependencies): Likewise.
4198         * modules/mbswidth (Dependencies): Likewise.
4199         * modules/quotearg (Dependencies): Likewise.
4200         * modules/regex (Dependencies): Likewise.
4201         * modules/wcscasecmp (Dependencies): Likewise.
4202         * modules/wcsncasecmp (Dependencies): Likewise.
4203         * modules/wcwidth (Dependencies): Likewise.
4204
4205 2011-02-06  Bruno Haible  <bruno@clisp.org>
4206
4207         New module 'wcswidth'.
4208         * modules/wcswidth: New file.
4209         * lib/wchar.in.h (wcswidth): New declaration.
4210         * lib/wcswidth.c: New file.
4211         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4212         * m4/wcswidth.m4: New file.
4213         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4214         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4215         REPLACE_WCSWIDTH.
4216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4217         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4218         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4219         * doc/posix-functions/wcswidth.texi: Mention the new module.
4220
4221 2011-02-06  Bruno Haible  <bruno@clisp.org>
4222
4223         New module 'wcstok'.
4224         * modules/wcstok: New file.
4225         * lib/wchar.in.h (wcstok): New declaration.
4226         * lib/wcstok.c: New file.
4227         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4228         * m4/wcstok.m4: New file.
4229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4231         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4232         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4233         * doc/posix-functions/wcstok.texi: Mention the new module.
4234
4235 2011-02-06  Bruno Haible  <bruno@clisp.org>
4236
4237         New module 'wcsstr'.
4238         * modules/wcsstr: New file.
4239         * lib/wchar.in.h (wcsstr): New declaration.
4240         * lib/wcsstr.c: New file.
4241         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4242         * m4/wcsstr.m4: New file.
4243         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4244         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4245         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4246         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4247         * doc/posix-functions/wcsstr.texi: Mention the new module.
4248
4249 2011-02-06  Bruno Haible  <bruno@clisp.org>
4250
4251         New module 'wcspbrk'.
4252         * modules/wcspbrk: New file.
4253         * lib/wchar.in.h (wcspbrk): New declaration.
4254         * lib/wcspbrk.c: New file.
4255         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4256         * m4/wcspbrk.m4: New file.
4257         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4258         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4259         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4260         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4261         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4262
4263 2011-02-06  Bruno Haible  <bruno@clisp.org>
4264
4265         New module 'wcsspn'.
4266         * modules/wcsspn: New file.
4267         * lib/wchar.in.h (wcsspn): New declaration.
4268         * lib/wcsspn.c: New file.
4269         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4270         * m4/wcsspn.m4: New file.
4271         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4272         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4273         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4274         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4275         * doc/posix-functions/wcsspn.texi: Mention the new module.
4276
4277 2011-02-06  Bruno Haible  <bruno@clisp.org>
4278
4279         New module 'wcscspn'.
4280         * modules/wcscspn: New file.
4281         * lib/wchar.in.h (wcscspn): New declaration.
4282         * lib/wcscspn.c: New file.
4283         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4284         * m4/wcscspn.m4: New file.
4285         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4286         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4287         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4288         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4289         * doc/posix-functions/wcscspn.texi: Mention the new module.
4290
4291 2011-02-06  Bruno Haible  <bruno@clisp.org>
4292
4293         New module 'wcsrchr'.
4294         * modules/wcsrchr: New file.
4295         * lib/wchar.in.h (wcsrchr): New declaration.
4296         * lib/wcsrchr.c: New file.
4297         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4298         * m4/wcsrchr.m4: New file.
4299         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4300         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4301         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4302         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4303         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4304
4305 2011-02-06  Bruno Haible  <bruno@clisp.org>
4306
4307         New module 'wcschr'.
4308         * modules/wcschr: New file.
4309         * lib/wchar.in.h (wcschr): New declaration.
4310         * lib/wcschr.c: New file.
4311         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4312         * m4/wcschr.m4: New file.
4313         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4314         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4315         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4316         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4317         * doc/posix-functions/wcschr.texi: Mention the new module.
4318
4319 2011-02-06  Bruno Haible  <bruno@clisp.org>
4320
4321         New module 'wcsdup'.
4322         * modules/wcsdup: New file.
4323         * lib/wchar.in.h (wcsdup): New declaration.
4324         * lib/wcsdup.c: New file.
4325         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4326         * m4/wcsdup.m4: New file.
4327         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4328         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4329         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4330         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4331         * doc/posix-functions/wcsdup.texi: Mention the new module.
4332
4333 2011-02-06  Bruno Haible  <bruno@clisp.org>
4334
4335         New module 'wcsxfrm'.
4336         * modules/wcsxfrm: New file.
4337         * lib/wchar.in.h (wcsxfrm): New declaration.
4338         * lib/wcsxfrm.c: New file.
4339         * lib/wcsxfrm-impl.h: New file.
4340         * m4/wcsxfrm.m4: New file.
4341         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4342         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4343         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4344         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4345         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4346
4347 2011-02-06  Bruno Haible  <bruno@clisp.org>
4348
4349         New module 'wcscoll'.
4350         * modules/wcscoll: New file.
4351         * lib/wchar.in.h (wcscoll): New declaration.
4352         * lib/wcscoll.c: New file.
4353         * lib/wcscoll-impl.h: New file.
4354         * m4/wcscoll.m4: New file.
4355         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4356         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4357         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4358         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4359         * doc/posix-functions/wcscoll.texi: Mention the new module.
4360
4361 2011-02-06  Bruno Haible  <bruno@clisp.org>
4362
4363         New module 'wcsncasecmp'.
4364         * modules/wcsncasecmp: New file.
4365         * lib/wchar.in.h (wcsncasecmp): New declaration.
4366         * lib/wcsncasecmp.c: New file.
4367         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4368         * m4/wcsncasecmp.m4: New file.
4369         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4370         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4372         HAVE_WCSNCASECMP.
4373         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4374         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4375
4376 2011-02-06  Bruno Haible  <bruno@clisp.org>
4377
4378         New module 'wcscasecmp'.
4379         * modules/wcscasecmp: New file.
4380         * lib/wchar.in.h (wcscasecmp): New declaration.
4381         * lib/wcscasecmp.c: New file.
4382         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4383         * m4/wcscasecmp.m4: New file.
4384         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4385         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4386         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4387         HAVE_WCSCASECMP.
4388         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4389         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4390
4391 2011-02-05  Bruno Haible  <bruno@clisp.org>
4392
4393         New module 'wcsncmp'.
4394         * modules/wcsncmp: New file.
4395         * lib/wchar.in.h (wcsncmp): New declaration.
4396         * lib/wcsncmp.c: New file.
4397         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4398         * m4/wcsncmp.m4: New file.
4399         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4400         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4401         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4402         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4403         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4404
4405 2011-02-05  Bruno Haible  <bruno@clisp.org>
4406
4407         New module 'wcscmp'.
4408         * modules/wcscmp: New file.
4409         * lib/wchar.in.h (wcscmp): New declaration.
4410         * lib/wcscmp.c: New file.
4411         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4412         * m4/wcscmp.m4: New file.
4413         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4414         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4415         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4416         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4417         * doc/posix-functions/wcscmp.texi: Mention the new module.
4418
4419 2011-02-05  Bruno Haible  <bruno@clisp.org>
4420
4421         New module 'wcsncat'.
4422         * modules/wcsncat: New file.
4423         * lib/wchar.in.h (wcsncat): New declaration.
4424         * lib/wcsncat.c: New file.
4425         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4426         * m4/wcsncat.m4: New file.
4427         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4428         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4429         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4430         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4431         * doc/posix-functions/wcsncat.texi: Mention the new module.
4432
4433 2011-02-05  Bruno Haible  <bruno@clisp.org>
4434
4435         New module 'wcscat'.
4436         * modules/wcscat: New file.
4437         * lib/wchar.in.h (wcscat): New declaration.
4438         * lib/wcscat.c: New file.
4439         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4440         * m4/wcscat.m4: New file.
4441         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4442         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4443         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4444         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4445         * doc/posix-functions/wcscat.texi: Mention the new module.
4446
4447 2011-02-05  Bruno Haible  <bruno@clisp.org>
4448
4449         New module 'wcpncpy'.
4450         * modules/wcpncpy: New file.
4451         * lib/wchar.in.h (wcpncpy): New declaration.
4452         * lib/wcpncpy.c: New file.
4453         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4454         * m4/wcpncpy.m4: New file.
4455         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4456         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4457         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4458         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4459         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4460
4461 2011-02-05  Bruno Haible  <bruno@clisp.org>
4462
4463         New module 'wcsncpy'.
4464         * modules/wcsncpy: New file.
4465         * lib/wchar.in.h (wcsncpy): New declaration.
4466         * lib/wcsncpy.c: New file.
4467         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4468         * m4/wcsncpy.m4: New file.
4469         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4470         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4471         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4472         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4473         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4474
4475 2011-02-05  Bruno Haible  <bruno@clisp.org>
4476
4477         New module 'wcpcpy'.
4478         * modules/wcpcpy: New file.
4479         * lib/wchar.in.h (wcpcpy): New declaration.
4480         * lib/wcpcpy.c: New file.
4481         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4482         * m4/wcpcpy.m4: New file.
4483         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4484         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4485         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4486         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4487         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4488
4489 2011-02-05  Bruno Haible  <bruno@clisp.org>
4490
4491         New module 'wcscpy'.
4492         * modules/wcscpy: New file.
4493         * lib/wchar.in.h (wcscpy): New declaration.
4494         * lib/wcscpy.c: New file.
4495         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4496         * m4/wcscpy.m4: New file.
4497         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4498         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4499         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4500         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4501         * doc/posix-functions/wcscpy.texi: Mention the new module.
4502
4503 2011-02-05  Bruno Haible  <bruno@clisp.org>
4504
4505         New module 'wcsnlen'.
4506         * modules/wcsnlen: New file.
4507         * lib/wchar.in.h (wcsnlen): New declaration.
4508         * lib/wcsnlen.c: New file.
4509         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4510         * m4/wcsnlen.m4: New file.
4511         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4512         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4513         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4514         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4515         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4516
4517 2011-02-05  Bruno Haible  <bruno@clisp.org>
4518
4519         New module 'wcslen'.
4520         * modules/wcslen: New file.
4521         * lib/wchar.in.h (wcslen): New declaration.
4522         * lib/wcslen.c: New file.
4523         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4524         * m4/wcslen.m4: New file.
4525         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4526         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4527         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4528         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4529         * doc/posix-functions/wcslen.texi: Mention the new module.
4530
4531 2011-02-05  Bruno Haible  <bruno@clisp.org>
4532
4533         New module 'wmemset'.
4534         * modules/wmemset: New file.
4535         * lib/wchar.in.h (wmemset): New declaration.
4536         * lib/wmemset.c: New file.
4537         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4538         * m4/wmemset.m4: New file.
4539         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4540         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4541         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4542         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4543         * doc/posix-functions/wmemset.texi: Mention the new module.
4544
4545 2011-02-05  Bruno Haible  <bruno@clisp.org>
4546
4547         New module 'wmemmove'.
4548         * modules/wmemmove: New file.
4549         * lib/wchar.in.h (wmemmove): New declaration.
4550         * lib/wmemmove.c: New file.
4551         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4552         * m4/wmemmove.m4: New file.
4553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4555         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4556         HAVE_WMEMMOVE.
4557         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4558         * doc/posix-functions/wmemmove.texi: Mention the new module.
4559
4560 2011-02-05  Bruno Haible  <bruno@clisp.org>
4561
4562         New module 'wmemcpy'.
4563         * modules/wmemcpy: New file.
4564         * lib/wchar.in.h (wmemcpy): New declaration.
4565         * lib/wmemcpy.c: New file.
4566         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4567         * m4/wmemcpy.m4: New file.
4568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4570         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4571         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4572         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4573
4574 2011-02-05  Bruno Haible  <bruno@clisp.org>
4575
4576         New module 'wmemcmp'.
4577         * modules/wmemcmp: New file.
4578         * lib/wchar.in.h (wmemcmp): New declaration.
4579         * lib/wmemcmp.c: New file.
4580         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4581         * m4/wmemcmp.m4: New file.
4582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4584         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4585         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4586         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4587
4588 2011-02-07  Jim Meyering  <meyering@redhat.com>
4589
4590         di-set, ino-map: new modules, from coreutils
4591         * lib/di-set.c: New file.
4592         * lib/di-set.h: Likewise.
4593         * lib/ino-map.c: Likewise.
4594         * lib/ino-map.h: Likewise.
4595         * modules/di-set: Likewise.
4596         * modules/di-set-tests: Likewise.
4597         * modules/ino-map: Likewise.
4598         * modules/ino-map-tests: Likewise.
4599         * tests/test-di-set.c: Likewise.
4600         * tests/test-ino-map.c: Likewise.
4601
4602 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         getloadavg: merge minor changes from Emacs
4605
4606         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4607         (getloadavg): Use memset, not bzero.
4608
4609         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4610         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4611         clash (bug#86).
4612
4613 2010-11-14  Bruno Haible  <bruno@clisp.org>
4614
4615         Allow multiple gnulib generated replacements to coexist.
4616         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4617         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4618         * lib/langinfo.in.h (nl_item): Likewise.
4619         * lib/math.in.h (_NaN, NAN): Likewise.
4620         * lib/netdb.in.h (struct addrinfo): Likewise.
4621         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4622         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4623         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4624         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4625         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4626         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4627         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4628         pthread_mutexattr_init, pthread_mutexattr_settype,
4629         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4630         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4631         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4632         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4633         * lib/sched.in.h (struct sched_param): Likewise.
4634         * lib/se-selinux.in.h (security_class_t, security_context_t,
4635         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4636         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4637         lsetfilecon, fsetfilecon, security_check_context,
4638         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4639         Likewise.
4640         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4641         Likewise.
4642         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4643         _gl_function_taking_int_returning_void_t, union sigval,
4644         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4645         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4646         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4647         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4648         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4649         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4650         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4651         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4652         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4653         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4654         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4655         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4656         socklen_t, rpl_fd_isset): Likewise.
4657         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4658         * lib/sys_time.in.h (struct timeval): Likewise.
4659         * lib/sys_times.in.h (struct tms): Likewise.
4660         * lib/sys_utsname.in.h (struct utsname):
4661         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4662         * lib/unistd.in.h (getpagesize): Likewise.
4663         * lib/wchar.in.h (mbstate_t): Likewise.
4664         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4665         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4666         towlower, towupper): Likewise.
4667         Reported by Sam Steingold <sds@gnu.org>.
4668
4669 2011-02-05  Eric Blake  <eblake@redhat.com>
4670
4671         unsetenv: work around Haiku issues
4672         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4673         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4674
4675 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4676
4677         libposix: avoid calling error() within libposix
4678         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4679         is defined.
4680
4681 2011-02-05  Eric Blake  <eblake@redhat.com>
4682
4683         strerror_r-posix: port to cygwin
4684         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4685         implementation.
4686         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4687         * tests/test-strerror_r.c (main): Fix test.
4688         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4689         issue.
4690
4691 2011-02-05  Bruno Haible  <bruno@clisp.org>
4692
4693         New module 'wmemchr'.
4694         * modules/wmemchr: New file.
4695         * lib/wchar.in.h (wmemchr): New declaration.
4696         * lib/wmemchr.c: New file.
4697         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4698         * m4/wmemchr.m4: New file.
4699         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4700         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4701         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4702         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4703         * doc/posix-functions/wmemchr.texi: Mention the new module.
4704
4705 2011-02-04  Eric Blake  <eblake@redhat.com>
4706
4707         fdopendir: detect FreeBSD bug
4708         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4709         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4710
4711 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4712
4713         stdbool: do not define HAVE_STDBOOL_H
4714         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4715         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4716         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4717         imported from the latest Autoconf git.  It was motivated by Emacs,
4718         which uses gnulib but does not need HAVE_STDBOOL_H.
4719
4720 2011-02-04  Bruno Haible  <bruno@clisp.org>
4721
4722         wcsnrtombs: Prepare for new module wwcsnrtombs.
4723         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4724         * lib/wcsnrtombs.c: Include it.
4725         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4726
4727         wcsrtombs: Prepare for new module wwcsrtombs.
4728         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4729         * lib/wcsrtombs.c: Include it.
4730         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4731
4732         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4733         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4734         * lib/mbsnrtowcs.c: Include it.
4735         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4736
4737         mbsrtowcs: Prepare for new module mbsrtowwcs.
4738         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4739         * lib/mbsrtowcs.c: Include it.
4740         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4741
4742 2011-02-04  Bruno Haible  <bruno@clisp.org>
4743
4744         vasnprintf: Reduce use of malloc for small format strings.
4745         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4746         (arguments): Add room for the first 7 arguments.
4747         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4748         (char_directives, u8_directives, u16_directives, u32_directives): Add
4749         room for the first 7 directives.
4750         * lib/printf-parse.c: Include <string.h>.
4751         (PRINTF_PARSE): Change memory handling code so that it uses the first
4752         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4753         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4754         Reported by Pádraig Brady <P@draigbrady.com>.
4755
4756 2011-01-31  Eric Blake  <eblake@redhat.com>
4757
4758         dup2: work around Haiku bug
4759         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4760         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4761         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4762         * tests/test-dup2.c (main): Enhance test.
4763
4764 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4765
4766         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4767         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4768         declared by eglibc 2.11.2.
4769         * lib/stdio.in.h: Likewise.
4770
4771 2011-01-31  Eric Blake  <eblake@redhat.com>
4772
4773         ignore-value: add missing test dependency
4774         * tests/test-ignore-value.c: Revert previous change; stdio.h
4775         provides off_t.
4776         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4777
4778 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4779
4780         mktime: clarify long_int width checking
4781         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4782         the top level, to make it clearer that the assumption about
4783         long_int width is being checked.  See
4784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4785
4786 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4787
4788         ignore-value: Fix self-test.
4789         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4790
4791 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4792
4793         TYPE_MAXIMUM: avoid theoretically undefined behavior
4794         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4795         negative number, which the C Standard says has undefined behavior.
4796         In practice this is not a problem, but might as well do it by the book.
4797         Reported by Rich Felker and Eric Blake; see
4798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4799         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4800         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4802         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4803         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4804         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4805
4806         mktime: #undef mktime before #defining it
4807         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4808
4809         mktime: systematically normalize tm_isdst comparisons
4810         * lib/mktime.c (isdst_differ): New function.
4811         (__mktime_internal): Use it systematically for all isdst comparisons.
4812         This completes the fix for libc BZ #6723, and removes the need for
4813         normalizing tm_isdst.  See
4814         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4815         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4816
4817         mktime: fix some integer overflow issues and sidestep the rest
4818
4819         This was prompted by a bug report by Benjamin Lindner for MinGW
4820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4821         His bug is due to signed integer overflow (0 - INT_MIN), and I
4822         I scanned through mktime.c looking for other integer overflow
4823         problems, fixing all the bugs I found.
4824
4825         Although the C Standard says the resulting code is still not safe
4826         in the presence of integer overflow, in practice it should be good
4827         enough for all real-world two's-complement implementations, except
4828         for debugging environments that deliberately trap on integer
4829         overflow (e.g., gcc -ftrapv).
4830
4831         * lib/mktime.c (WRAPV): New macro.
4832         (SHR): Also check that long_int and time_t shift right in the
4833         usual way, before using the fast-but-unportable method.
4834         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4835         used.  The code already assumed two's complement, so there's
4836         no need to test for alternatives.  All uses removed.
4837         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4838         the C standard.  Problem reported by Rich Felker in
4839         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4840         (twos_complement_arithmetic): Also check long_int and time_t.
4841         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4842         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4843         (__mktime_internal): Avoid integer overflow with unary subtraction
4844         in two instances where -1 - X is an adequate replacement for -X,
4845         since the calculations are approximate.
4846
4847 2011-01-29  Eric Blake  <eblake@redhat.com>
4848
4849         mktime: avoid infinite loop
4850         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4851         type; behavior is still undefined but portable to all known targets.
4852         Reported by Rich Felker.
4853
4854 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4855
4856         rename, unlink, same-inode: Relicense.
4857         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4858         * modules/unlink (License): Likewise.
4859         * modules/same-inode (License): Likewise.
4860
4861 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4862
4863         mktime: avoid problems on NetBSD 5 / i386
4864         * lib/mktime.c (long_int): New type.  This works around a problem
4865         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4866         but time_t is 64 bits, and where I expect the existing code is
4867         wrong in some cases.
4868         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4869         (ydhms_diff): Bring back the compile-time check for wide-enough
4870         year and yday.
4871
4872         mktime: fix misspelling in comment
4873         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4874         This merges all recent glibc changes of importance.
4875
4876 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4877
4878         move-if-change: cope with concurrent mv of identical file.
4879         * build-aux/move-if-change (CMPPROG): Accept environment
4880         variable as an override for `cmp'.
4881         (usage): Document CMPPROG.
4882         Adjust comparison to drop stdout.  Cope with failure of mv if
4883         the target file exists and is identical to the source, for
4884         parallel builds.
4885         Report from H.J. Lu against binutils in PR binutils/12283.
4886
4887 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4888
4889         * users.txt: Mention sharutils.
4890
4891 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4892
4893         * users.txt: Mention OATH Toolkit.
4894
4895 2011-01-27  Bruno Haible  <bruno@clisp.org>
4896
4897         Prepare for supporting FreeBSD 10.
4898         * build-aux/config.libpath: Remove handling of freebsd1*.
4899
4900 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4901
4902         Prepare for supporting FreeBSD 10.
4903         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4904         match FreeBSD 10.0.
4905
4906 2011-01-27  Bruno Haible  <bruno@clisp.org>
4907
4908         vma-iter, get-rusage-as: Add OpenBSD support.
4909         * modules/vma-iter (configure.ac): Test for mquery.
4910         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4911         * lib/vma-iter.c: Include <sys/mman.h>.
4912         (vma_iterate): Add an implementation based on mquery().
4913         * lib/resource-ext.h (get_rusage_as): Update comments.
4914         * lib/get-rusage-as.c: Likewise.
4915         * lib/get-rusage-data.c: Likewise.
4916
4917 2011-01-26  Karl Berry  <karl@gnu.org>
4918
4919         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4920         variables to make it easier to override the makeinfo program used.
4921
4922 2011-01-26  Eric Blake  <eblake@redhat.com>
4923
4924         fcntl: work around Haiku F_DUPFD bugs
4925         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4926         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4927         cloexec bit on duplication.
4928         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4929
4930 2011-01-26  Bruno Haible  <bruno@clisp.org>
4931
4932         Enable memory leak tests on AIX.
4933         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4934         * tests/test-fprintf-posix3.c (main): Likewise.
4935
4936 2011-01-26  Bruno Haible  <bruno@clisp.org>
4937
4938         Tests for module 'get-rusage-data'.
4939         * modules/get-rusage-data-tests: New file.
4940         * tests/test-get-rusage-data.c: New file.
4941
4942         New module 'get-rusage-data'.
4943         * lib/resource-ext.h (get_rusage_data): New declaration.
4944         * lib/get-rusage-data.c: New file.
4945         * modules/get-rusage-data: New file.
4946
4947 2011-01-25  Bruno Haible  <bruno@clisp.org>
4948
4949         get-rusage-as: Allow for easier testing.
4950         * lib/resource-ext.h (get_rusage_as): Add comment.
4951         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4952         (main): New function for interactive testing.
4953
4954 2011-01-25  Bruno Haible  <bruno@clisp.org>
4955
4956         vma-iter: Treat Haiku like BeOS.
4957         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4958         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4959
4960 2011-01-25  Eric Blake  <eblake@redhat.com>
4961
4962         c-stack: fix regression on cygwin when libsigsegv is present
4963         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4964
4965 2011-01-24  Bruno Haible  <bruno@clisp.org>
4966
4967         vma-iter: Avoid empty intervals.
4968         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4969         on an empty interval.
4970
4971 2011-01-24  Jim Meyering  <meyering@redhat.com>
4972
4973         u64: remove unnecessary #include
4974         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4975
4976 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4977
4978         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4979         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4980
4981 2011-01-23  Bruno Haible  <bruno@clisp.org>
4982
4983         New module 'vma-iter'.
4984         * lib/vma-iter.h: New file.
4985         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4986         * modules/vma-iter: New file.
4987         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4988         for get_rusage_as_via_iterator.
4989         (vma_iterate_callback): New function.
4990         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4991         * modules/get-rusage-as (Depends-on): Add vma-iter.
4992
4993 2011-01-23  Bruno Haible  <bruno@clisp.org>
4994
4995         uninorm: Tweak includes.
4996         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4997         Reported by Jim Meyering.
4998
4999 2011-01-23  Bruno Haible  <bruno@clisp.org>
5000
5001         get-rusage-as: Improve on NetBSD.
5002         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
5003         /proc, like on FreeBSD.
5004
5005 2011-01-23  Jim Meyering  <meyering@redhat.com>
5006
5007         xreadlink.h: remove unnecessary #include
5008         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
5009
5010         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
5011         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
5012
5013 2011-01-23  Bruno Haible  <bruno@clisp.org>
5014
5015         get-rusage-as: Fix bug.
5016         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
5017         original limit when aborting the first loop.
5018
5019 2011-01-23  Bruno Haible  <bruno@clisp.org>
5020
5021         wctype: Ensure valid C syntax.
5022         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
5023         unconditionally, instead of gl_NEXT_HEADERS conditionally.
5024
5025 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
5026
5027         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
5028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
5029         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
5030         as they are needed only for configure's test case.
5031         This removes two unnecessary symbols from config.h.
5032
5033         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
5034         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
5035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
5036         AC_CHECK_HEADERS_ONCE on a header that we also invoke
5037         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
5038         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
5039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
5040         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5041         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
5042         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5043         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
5044         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
5045         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
5046         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5047         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5048         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5049         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
5050         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
5051
5052 2011-01-21  Eric Blake  <eblake@redhat.com>
5053
5054         maintainer-makefile: work with older git for submodule check
5055         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5056         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5057         Reported by Matthias Bolte.
5058
5059         bootstrap: minor portability fixes
5060         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5061         (usage): Omit leading capital and trailing . on help phrases, per
5062         GNU Coding Standards.
5063         (check_versions, top level): Prefix messages with script name.
5064
5065 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5066
5067         bootstrap: support --no-git option
5068         * build-aux/bootstrap: Add --no-git option, to be used when
5069         --gnulib-srcdir points to the exact desired checkout.
5070
5071 2011-01-21  Eric Blake  <eblake@redhat.com>
5072
5073         strerror_r-posix: work with glibc 2.13
5074         * lib/strerror_r.c (strerror_r): Fix return type.
5075
5076 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5077             Bruno Haible  <bruno@clisp.org>
5078
5079         uN_strstr: New unit tests.
5080         * modules/unistr/u8-strstr-tests: New file.
5081         * modules/unistr/u16-strstr-tests: New file.
5082         * modules/unistr/u32-strstr-tests: New file.
5083         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5084         * tests/unistr/test-u8-strstr.c: New file.
5085         * tests/unistr/test-u16-strstr.c: New file.
5086         * tests/unistr/test-u32-strstr.c: New file.
5087
5088 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5089             Bruno Haible  <bruno@clisp.org>
5090
5091         Make uN_strstr functions O(n) worst-case.
5092         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5093         16-bit and 32-bit unit cases, use the unibyte algorithm from
5094         lib/mbsstr.c.
5095         * lib/unistr/u8-strstr.c: Include <string.h>.
5096         (UNIT_IS_UINT8_T): New macro.
5097         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5098         (U_STRLEN, U_STRNLEN): New macros.
5099         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5100         (U_STRLEN, U_STRNLEN): New macros.
5101         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5102         (configure.ac): Update required libunistring version.
5103         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5104         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5105         malloca.
5106         (configure.ac): Update required libunistring version.
5107         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5108         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5109         malloca.
5110         (configure.ac): Update required libunistring version.
5111
5112 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5113             Bruno Haible  <bruno@clisp.org>
5114
5115         Prepare for faster uN_strstr functions.
5116         * lib/str-kmp.h: Support definable UNITs.
5117         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5118         needle_len argument.
5119         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5120         * lib/mbscasestr.c (mbscasestr): Likewise.
5121
5122 2011-01-21  Pádraig Brady <P@draigBrady.com>
5123
5124         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5125         * tests/test-malloca.c (main): Unset the environment variable
5126         to greatly speed up the test.
5127         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5128         * modules/malloca-tests: Depend on unsetenv.
5129
5130 2011-01-21  Pádraig Brady <P@draigBrady.com>
5131
5132         ignore-value: remove stdint dependency
5133         * lib/ignore-value.h: Remove <stdint.h>
5134         * modules/ignore-value: Remove stdint dependency.
5135
5136 2011-01-21  Jim Meyering  <meyering@redhat.com>
5137
5138         maint.mk: adjust variable name to be consistent with other gl_ vars
5139         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5140         to be lower case.
5141
5142 2011-01-20  Jim Meyering  <meyering@redhat.com>
5143
5144         maint.mk: make "check" depend on public-submodule-commit by default
5145         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5146
5147 2011-01-20  Bruno Haible  <bruno@clisp.org>
5148
5149         mbfile, mbiter: Complete change from 2008-12-21.
5150         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5151         * m4/mbiter.m4 (gl_MBITER): Likewise.
5152
5153 2011-01-20  Jim Meyering  <meyering@redhat.com>
5154
5155         init.sh: insert space between each function name and "()"
5156         * tests/init.sh: Make it a little easier to see that a function's
5157         name is "warn_", and not "warn" when looking at the first part of
5158         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5159
5160 2011-01-20  Jim Meyering  <meyering@redhat.com>
5161
5162         mountlist: clean up code formatting
5163         * lib/mountlist.c (read_file_system_list): Split a long line,
5164         correct bracing style, use NULL in place of "(struct statfs *)0",
5165         don't parenthesize return value, add spaces around "=" and after
5166         ";-in-for-stmt".
5167
5168 2011-01-14  Markus Duft <mduft@gentoo.org>
5169
5170         mountlist: add support for Interix
5171         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5172         Apply statvfs to all entries of /dev/fs.
5173         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5174         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5175
5176 2011-01-20  Jim Meyering  <meyering@redhat.com>
5177
5178         maint.mk: improve the public-submodule-commit rule
5179         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5180         to suppress printing of its commands... unless V=1.
5181         Add git submodule's --quiet option to suppress printing of e.g.,
5182         "Entering gnulib" output.
5183         "cd" into $(srcdir) before running git submodule.
5184
5185 2011-01-20  Bruno Haible  <bruno@clisp.org>
5186
5187         include_next: Fix bug introduced on 2011-01-18.
5188         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5189         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5190         ac_cv_header_... variable if the second argument is not 'check'.
5191         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5192         gl_NEXT_HEADERS_INTERNAL.
5193
5194 2011-01-20  Bruno Haible  <bruno@clisp.org>
5195
5196         Allow the user to avoid the GNULIB_TEST_* macros.
5197         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5198         Suggested by Paul Eggert.
5199
5200 2011-01-14  Jim Meyering  <meyering@redhat.com>
5201
5202         bootstrap: avoid failure when there is no .gitmodules file
5203         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5204         has been assigned to, even when its value is the empty string.
5205         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5206         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5207         Reported by John W. Eaton <jwe@gnu.org>.
5208
5209 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5210
5211         assume <ctype.h>, ..., <time.h> exist
5212         For years gnulib has been assuming the existence of the headers
5213         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5214         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5215         them, since they don't appear to be needed.
5216         * README (Portability guidelines): Document this.
5217         * lib/flock.c: Assume <fcntl.h> exists.
5218         * lib/regex_internal.h: Assume <locale.h> exists.
5219         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5221         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5222         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5223         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5224         * m4/regex.m4 (gl_REGEX): Likewise.
5225         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5226         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5227         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5228         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5229         * tests/test-argp.c: Likewise.
5230         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5231
5232         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5233         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5234         AA_APPLE_UNIVERSAL_BUILD.  See
5235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5236         * NEWS: Document this.
5237
5238 2011-01-19  Eric Blake  <eblake@redhat.com>
5239
5240         c-stack: assume stack overflow if SA_SIGINFO unsupported
5241         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5242         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5243         sigaction will work.
5244         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5245         behavior match Linux.
5246         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5247
5248         stdbool-tests: accomodate Haiku
5249         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5250
5251         binary-io: fix O_TEXT on Haiku
5252         * modules/binary-io (Depends-on): Add fcntl-h.
5253         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5254         than blindly undefining O_TEXT.
5255         Reported by Scott McCreary.
5256
5257 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5258
5259         include_next: do not check for standard headers like stddef.h
5260
5261         I found this problem when modifying Emacs to use gnulib.
5262         I noticed that it added HAVE_STDDEF_H to config.h, even though
5263         gnulib always assumes <stddef.h> exists as per README and this
5264         symbol is unnecessary.
5265         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5266         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5267         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5268         faster for headers like stddef.h that are known to exist.
5269         (gl_CHECK_NEXT_HEADERS): Use it.
5270         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5271         rather than gl_CHECK_NEXT_HEADERS.
5272         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5273         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5274
5275 2011-01-18  Eric Blake  <eblake@redhat.com>
5276
5277         ansi-c++-opt: skip C++ dependency style if C++ is unused
5278         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5279         tests when we know C++ compilation is not desired.
5280         Reported by Scott McCreary.
5281
5282 2011-01-18  Bruno Haible  <bruno@clisp.org>
5283
5284         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5285         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5286         (main): Perform test also when getrlimit and setrlimit don't exist or
5287         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5288         limiting the address space size using setrlimit, compare the address
5289         space size before and after the the test.
5290         * tests/test-dprintf-posix2.c: Likewise.
5291         * tests/test-fprintf-posix3.sh: Update skip messages.
5292         * tests/test-dprintf-posix2.sh: Likewise.
5293         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5294         * modules/dprintf-posix-tests (Depends-on): Likewise.
5295         Reported by Bruce Korb <bkorb@gnu.org> and
5296         Gary V. Vaughan <gary@gnu.org>.
5297
5298 2011-01-18  Bruno Haible  <bruno@clisp.org>
5299
5300         get-rusage-as: Improvement for Cygwin.
5301         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5302         areas that are merely reserved.
5303
5304 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5305
5306         strftime: remove dependencies on multibyte modules
5307
5308         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5309         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5310         only if __osf__ is defined, and I suspect OSF doesn't need these
5311         other modules.  If my guess is wrong, we'll need to come up with a
5312         variant of strftime that doesn't need the multibyte modules.
5313
5314         I discovered this problem when attempting modify Emacs to use the
5315         strftime module.  With the previous gnulib, this caused Emacs to
5316         need 31 new files, ranging from lib/config.charset to
5317         m4/wint_t.m4.  This was overkill and I expect would be offputting
5318         to the Emacs maintainers.  After this change, only 6 new files are
5319         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5320         stdbool.m4, and tm_gmtoff.m4.
5321
5322         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5323         Suggested by Bruno Haible in
5324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5325         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5326         and do not check for wchar.h.
5327         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5328         (Depends-on): Remove mbrlen, mbsinit, wchar.
5329
5330 2011-01-18  Bruno Haible  <bruno@clisp.org>
5331
5332         Tests for module 'get-rusage-as'.
5333         * modules/get-rusage-as-tests: New file.
5334         * tests/test-get-rusage-as.c: New file.
5335
5336         New module 'get-rusage-as'.
5337         * modules/get-rusage-as: New file.
5338         * lib/resource-ext.h: New file.
5339         * lib/get-rusage-as.c: New file.
5340
5341 2011-01-17  Eric Blake  <eblake@redhat.com>
5342
5343         sigaction: relax license from LGPLv3+ to LGPLv2+
5344         * modules/sigaction (License): Relax to LGPLv2+.
5345
5346 2011-01-14  Bruno Haible  <bruno@clisp.org>
5347
5348         filemode: Make function declarations usable in C++ mode.
5349         * lib/filemode.h: Enclose function declarations in extern "C" block.
5350         Reported by John W. Eaton <jwe@gnu.org>.
5351
5352 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5353
5354         save-cwd: no longer include "xgetcwd.h"
5355         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5356         This avoids a compilation failure in projects that use save-cwd
5357         without also using the xgetcwd module.
5358
5359 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5360
5361         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5362         This is so that a program like Emacs, which needs only dtoastr,
5363         does not have to bother with distributing and compiling ftoastr
5364         and ldtoastr.
5365         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5366         * modules/dtoastr, modules/ldtoastr: New files.
5367         * modules/ftoastr: Now works just for 'float'.
5368         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5369         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5370         dtoastr.c, ldtoastr.c.
5371
5372 2011-01-11  Jim Meyering  <meyering@redhat.com>
5373
5374         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5375         There is no need to work around the lack of the fchdir function,
5376         since gnulib can now provide a replacement when required.
5377         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5378         * modules/save-cwd (Depends-on): Add fchdir.
5379
5380 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5381
5382         openat, save-cwd: avoid xmalloc
5383
5384         This removes a direct (but undocumented) dependency of openat on
5385         xalloc, along with an indirect dependency via save-cwd.  It also
5386         removes a dependency of save-cwd on xgetcwd, and thereby
5387         indirectly on xalloc.  This change causes the openat substitute
5388         to fall back on save_cwd when memory is tight, and for save_cwd to
5389         fail instead of dying when memory is tight, but that's good enough.
5390         Problem and initial idea for fix reported by Bastien Roucaries in
5391         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5392
5393         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5394         xalloc.h (for xmalloc).
5395         (openat_proc_name): Use malloc, not xmalloc.
5396         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5397         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5398
5399         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5400         This avoids heap allocation for file names whose lengths are in
5401         the range 512..1023, with the upper bound increasing to at most
5402         4031 depending on the platform's PATH_MAX.  (We do not want
5403         pathmax.h here as it might supply a non-constant PATH_MAX.)
5404         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5405         Perhaps they should be moved to malloca.h?
5406         (OPENAT_BUFFER_SIZE): Use them.
5407
5408 2011-01-10  Bruno Haible  <bruno@clisp.org>
5409
5410         doc: Update users.txt.
5411         * users.txt: Add recutils.
5412
5413 2011-01-09  Karl Berry  <karl@gnu.org>
5414
5415         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5416
5417         * doc/configmake.texi: New file.
5418         * doc/gnulib.texi: Include it.
5419         * modules/configmake: Move documentation from here.
5420
5421 2011-01-09  Bruno Haible  <bruno@clisp.org>
5422
5423         Update to Unicode 6.0.0.
5424         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5425         (get_lbp): Update for Unicode 6.0.0.
5426         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5427         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5428         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5429         U+11001, U+11038..U+11046. Remove U+06DE.
5430         (uc_width): Fix bounds of planes.
5431         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5432         lib/uniwidth/width.c.
5433         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5434         trailing whitespace removed.
5435         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5436         without comments, but with the original copyright notice.
5437         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5438         * lib/unicase/ignorable.h: Likewise.
5439         * lib/unicase/tocasefold.h: Likewise.
5440         * lib/unicase/tolower.h: Likewise.
5441         * lib/unicase/totitle.h: Likewise.
5442         * lib/unicase/toupper.h: Likewise.
5443         * lib/unictype/bidi_of.h: Likewise.
5444         * lib/unictype/blocks.h: Likewise.
5445         * lib/unictype/categ_C.h: Likewise.
5446         * lib/unictype/categ_Cn.h: Likewise.
5447         * lib/unictype/categ_L.h: Likewise.
5448         * lib/unictype/categ_Ll.h: Likewise.
5449         * lib/unictype/categ_Lm.h: Likewise.
5450         * lib/unictype/categ_Lo.h: Likewise.
5451         * lib/unictype/categ_Lu.h: Likewise.
5452         * lib/unictype/categ_M.h: Likewise.
5453         * lib/unictype/categ_Mc.h: Likewise.
5454         * lib/unictype/categ_Me.h: Likewise.
5455         * lib/unictype/categ_Mn.h: Likewise.
5456         * lib/unictype/categ_N.h: Likewise.
5457         * lib/unictype/categ_Nd.h: Likewise.
5458         * lib/unictype/categ_No.h: Likewise.
5459         * lib/unictype/categ_P.h: Likewise.
5460         * lib/unictype/categ_Po.h: Likewise.
5461         * lib/unictype/categ_S.h: Likewise.
5462         * lib/unictype/categ_Sc.h: Likewise.
5463         * lib/unictype/categ_Sk.h: Likewise.
5464         * lib/unictype/categ_Sm.h: Likewise.
5465         * lib/unictype/categ_So.h: Likewise.
5466         * lib/unictype/categ_of.h: Likewise.
5467         * lib/unictype/combining.h: Likewise.
5468         * lib/unictype/ctype_alnum.h: Likewise.
5469         * lib/unictype/ctype_alpha.h: Likewise.
5470         * lib/unictype/ctype_graph.h: Likewise.
5471         * lib/unictype/ctype_lower.h: Likewise.
5472         * lib/unictype/ctype_print.h: Likewise.
5473         * lib/unictype/ctype_punct.h: Likewise.
5474         * lib/unictype/ctype_upper.h: Likewise.
5475         * lib/unictype/decdigit.h: Likewise.
5476         * lib/unictype/digit.h: Likewise.
5477         * lib/unictype/numeric.h: Likewise.
5478         * lib/unictype/pr_alphabetic.h: Likewise.
5479         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5480         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5481         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5482         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5483         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5484         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5485         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5486         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5487         * lib/unictype/pr_case_ignorable.h: Likewise.
5488         * lib/unictype/pr_cased.h: Likewise.
5489         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5490         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5491         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5492         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5493         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5494         * lib/unictype/pr_combining.h: Likewise.
5495         * lib/unictype/pr_composite.h: Likewise.
5496         * lib/unictype/pr_currency_symbol.h: Likewise.
5497         * lib/unictype/pr_decimal_digit.h: Likewise.
5498         * lib/unictype/pr_deprecated.h: Likewise.
5499         * lib/unictype/pr_format_control.h: Likewise.
5500         * lib/unictype/pr_grapheme_base.h: Likewise.
5501         * lib/unictype/pr_grapheme_extend.h: Likewise.
5502         * lib/unictype/pr_grapheme_link.h: Likewise.
5503         * lib/unictype/pr_id_continue.h: Likewise.
5504         * lib/unictype/pr_id_start.h: Likewise.
5505         * lib/unictype/pr_ideographic.h: Likewise.
5506         * lib/unictype/pr_lowercase.h: Likewise.
5507         * lib/unictype/pr_math.h: Likewise.
5508         * lib/unictype/pr_numeric.h: Likewise.
5509         * lib/unictype/pr_other_alphabetic.h: Likewise.
5510         * lib/unictype/pr_other_id_continue.h: Likewise.
5511         * lib/unictype/pr_other_math.h: Likewise.
5512         * lib/unictype/pr_punctuation.h: Likewise.
5513         * lib/unictype/pr_sentence_terminal.h: Likewise.
5514         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5515         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5516         * lib/unictype/pr_unified_ideograph.h: Likewise.
5517         * lib/unictype/pr_uppercase.h: Likewise.
5518         * lib/unictype/pr_xid_continue.h: Likewise.
5519         * lib/unictype/pr_xid_start.h: Likewise.
5520         * lib/unictype/scripts.h: Likewise.
5521         * lib/unictype/scripts_byname.gperf: Likewise.
5522         * lib/unictype/sy_java_ident.h: Likewise.
5523         * lib/unigbrk/gbrkprop.h: Likewise.
5524         * lib/unilbrk/lbrkprop1.h: Likewise.
5525         * lib/unilbrk/lbrkprop2.h: Likewise.
5526         * lib/uninorm/decomposition-table2.h: Likewise.
5527         * lib/uniwbrk/wbrkprop.h: Likewise.
5528         * tests/unicase/test-cased.c: Likewise.
5529         * tests/unicase/test-ignorable.c: Likewise.
5530         * tests/unicase/test-uc_tolower.c: Likewise.
5531         * tests/unicase/test-uc_totitle.c: Likewise.
5532         * tests/unicase/test-uc_toupper.c: Likewise.
5533         * tests/unictype/test-categ_C.c: Likewise.
5534         * tests/unictype/test-categ_Cn.c: Likewise.
5535         * tests/unictype/test-categ_L.c: Likewise.
5536         * tests/unictype/test-categ_Ll.c: Likewise.
5537         * tests/unictype/test-categ_Lm.c: Likewise.
5538         * tests/unictype/test-categ_Lo.c: Likewise.
5539         * tests/unictype/test-categ_Lu.c: Likewise.
5540         * tests/unictype/test-categ_M.c: Likewise.
5541         * tests/unictype/test-categ_Mc.c: Likewise.
5542         * tests/unictype/test-categ_Me.c: Likewise.
5543         * tests/unictype/test-categ_Mn.c: Likewise.
5544         * tests/unictype/test-categ_N.c: Likewise.
5545         * tests/unictype/test-categ_Nd.c: Likewise.
5546         * tests/unictype/test-categ_No.c: Likewise.
5547         * tests/unictype/test-categ_P.c: Likewise.
5548         * tests/unictype/test-categ_Po.c: Likewise.
5549         * tests/unictype/test-categ_S.c: Likewise.
5550         * tests/unictype/test-categ_Sc.c: Likewise.
5551         * tests/unictype/test-categ_Sk.c: Likewise.
5552         * tests/unictype/test-categ_Sm.c: Likewise.
5553         * tests/unictype/test-categ_So.c: Likewise.
5554         * tests/unictype/test-ctype_alnum.c: Likewise.
5555         * tests/unictype/test-ctype_alpha.c: Likewise.
5556         * tests/unictype/test-ctype_graph.c: Likewise.
5557         * tests/unictype/test-ctype_lower.c: Likewise.
5558         * tests/unictype/test-ctype_print.c: Likewise.
5559         * tests/unictype/test-ctype_punct.c: Likewise.
5560         * tests/unictype/test-ctype_upper.c: Likewise.
5561         * tests/unictype/test-decdigit.h: Likewise.
5562         * tests/unictype/test-digit.h: Likewise.
5563         * tests/unictype/test-numeric.h: Likewise.
5564         * tests/unictype/test-pr_alphabetic.c: Likewise.
5565         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5566         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5567         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5568         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5569         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5570         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5571         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5572         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5573         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5574         * tests/unictype/test-pr_cased.c: Likewise.
5575         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5576         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5577         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5578         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5579         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5580         * tests/unictype/test-pr_combining.c: Likewise.
5581         * tests/unictype/test-pr_composite.c: Likewise.
5582         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5583         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5584         * tests/unictype/test-pr_deprecated.c: Likewise.
5585         * tests/unictype/test-pr_format_control.c: Likewise.
5586         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5587         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5588         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5589         * tests/unictype/test-pr_id_continue.c: Likewise.
5590         * tests/unictype/test-pr_id_start.c: Likewise.
5591         * tests/unictype/test-pr_ideographic.c: Likewise.
5592         * tests/unictype/test-pr_lowercase.c: Likewise.
5593         * tests/unictype/test-pr_math.c: Likewise.
5594         * tests/unictype/test-pr_numeric.c: Likewise.
5595         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5596         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5597         * tests/unictype/test-pr_other_math.c: Likewise.
5598         * tests/unictype/test-pr_punctuation.c: Likewise.
5599         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5600         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5601         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5602         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5603         * tests/unictype/test-pr_uppercase.c: Likewise.
5604         * tests/unictype/test-pr_xid_continue.c: Likewise.
5605         * tests/unictype/test-pr_xid_start.c: Likewise.
5606         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5607         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5608         changes.
5609         * lib/unictype/categ_Cc.h: Likewise.
5610         * lib/unictype/categ_Cf.h: Likewise.
5611         * lib/unictype/categ_Co.h: Likewise.
5612         * lib/unictype/categ_Cs.h: Likewise.
5613         * lib/unictype/categ_Lt.h: Likewise.
5614         * lib/unictype/categ_Nl.h: Likewise.
5615         * lib/unictype/categ_Pc.h: Likewise.
5616         * lib/unictype/categ_Pd.h: Likewise.
5617         * lib/unictype/categ_Pe.h: Likewise.
5618         * lib/unictype/categ_Pf.h: Likewise.
5619         * lib/unictype/categ_Pi.h: Likewise.
5620         * lib/unictype/categ_Ps.h: Likewise.
5621         * lib/unictype/categ_Z.h: Likewise.
5622         * lib/unictype/categ_Zl.h: Likewise.
5623         * lib/unictype/categ_Zp.h: Likewise.
5624         * lib/unictype/categ_Zs.h: Likewise.
5625         * lib/unictype/ctype_blank.h: Likewise.
5626         * lib/unictype/ctype_cntrl.h: Likewise.
5627         * lib/unictype/ctype_digit.h: Likewise.
5628         * lib/unictype/ctype_space.h: Likewise.
5629         * lib/unictype/ctype_xdigit.h: Likewise.
5630         * lib/unictype/mirror.h: Likewise.
5631         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5632         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5633         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5634         * lib/unictype/pr_bidi_control.h: Likewise.
5635         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5636         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5637         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5638         * lib/unictype/pr_bidi_pdf.h: Likewise.
5639         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5640         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5641         * lib/unictype/pr_dash.h: Likewise.
5642         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5643         * lib/unictype/pr_diacritic.h: Likewise.
5644         * lib/unictype/pr_extender.h: Likewise.
5645         * lib/unictype/pr_hex_digit.h: Likewise.
5646         * lib/unictype/pr_hyphen.h: Likewise.
5647         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5648         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5649         * lib/unictype/pr_ignorable_control.h: Likewise.
5650         * lib/unictype/pr_iso_control.h: Likewise.
5651         * lib/unictype/pr_join_control.h: Likewise.
5652         * lib/unictype/pr_left_of_pair.h: Likewise.
5653         * lib/unictype/pr_line_separator.h: Likewise.
5654         * lib/unictype/pr_logical_order_exception.h: Likewise.
5655         * lib/unictype/pr_non_break.h: Likewise.
5656         * lib/unictype/pr_not_a_character.h: Likewise.
5657         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5658         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5659         * lib/unictype/pr_other_id_start.h: Likewise.
5660         * lib/unictype/pr_other_lowercase.h: Likewise.
5661         * lib/unictype/pr_other_uppercase.h: Likewise.
5662         * lib/unictype/pr_paired_punctuation.h: Likewise.
5663         * lib/unictype/pr_paragraph_separator.h: Likewise.
5664         * lib/unictype/pr_pattern_syntax.h: Likewise.
5665         * lib/unictype/pr_pattern_white_space.h: Likewise.
5666         * lib/unictype/pr_private_use.h: Likewise.
5667         * lib/unictype/pr_quotation_mark.h: Likewise.
5668         * lib/unictype/pr_radical.h: Likewise.
5669         * lib/unictype/pr_soft_dotted.h: Likewise.
5670         * lib/unictype/pr_space.h: Likewise.
5671         * lib/unictype/pr_titlecase.h: Likewise.
5672         * lib/unictype/pr_variation_selector.h: Likewise.
5673         * lib/unictype/pr_white_space.h: Likewise.
5674         * lib/unictype/pr_zero_width.h: Likewise.
5675         * lib/unictype/sy_c_ident.h: Likewise.
5676         * lib/unictype/sy_c_whitespace.h: Likewise.
5677         * lib/unictype/sy_java_whitespace.h: Likewise.
5678         * lib/uninorm/composition-table.gperf: Likewise.
5679         * lib/uninorm/decomposition-table1.h: Likewise.
5680         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5681         LB8.
5682         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5683         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5684         * modules/unictype/*: Bump version number of expected libunistring
5685         version.
5686
5687 2011-01-09  Bruno Haible  <bruno@clisp.org>
5688
5689         Update to Unicode 5.2.0.
5690         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5691         trailing whitespace removed.
5692
5693 2011-01-09  Bruno Haible  <bruno@clisp.org>
5694
5695         New Unicode character properties, from Unicode 5.2.0.
5696         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5697         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5698         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5699         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5700         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5701         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5702         uc_is_property_cased, uc_is_property_case_ignorable,
5703         uc_is_property_changes_when_lowercased,
5704         uc_is_property_changes_when_uppercased,
5705         uc_is_property_changes_when_titlecased,
5706         uc_is_property_changes_when_casefolded,
5707         uc_is_property_changes_when_casemapped): New declarations.
5708         * lib/unictype/pr_byname.gperf: Add the new properties.
5709         * modules/unictype/property-byname (Depends-on): Depend on the new
5710         properties modules.
5711         * modules/unictype/property-all (Depends-on): Likewise.
5712         * MODULES.html.sh (Unicode string functions): Add
5713         unictype/property-case-ignorable, unictype/property-cased,
5714         unictype/property-changes-when-casefolded,
5715         unictype/property-changes-when-casemapped,
5716         unictype/property-changes-when-lowercased,
5717         unictype/property-changes-when-titlecased,
5718         unictype/property-changes-when-uppercased.
5719
5720         New module 'unictype/property-changes-when-casemapped'.
5721         * modules/unictype/property-changes-when-casemapped: New file.
5722         * lib/unictype/pr_changes_when_casemapped.c: New file.
5723         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5724         generated by gen-uni-tables.
5725         * modules/unictype/property-changes-when-casemapped-tests: New file.
5726         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5727         automatically generated by gen-uni-tables.
5728
5729         New module 'unictype/property-changes-when-casefolded'.
5730         * modules/unictype/property-changes-when-casefolded: New file.
5731         * lib/unictype/pr_changes_when_casefolded.c: New file.
5732         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5733         generated by gen-uni-tables.
5734         * modules/unictype/property-changes-when-casefolded-tests: New file.
5735         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5736         automatically generated by gen-uni-tables.
5737
5738         New module 'unictype/property-changes-when-titlecased'.
5739         * modules/unictype/property-changes-when-titlecased: New file.
5740         * lib/unictype/pr_changes_when_titlecased.c: New file.
5741         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5742         generated by gen-uni-tables.
5743         * modules/unictype/property-changes-when-titlecased-tests: New file.
5744         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5745         automatically generated by gen-uni-tables.
5746
5747         New module 'unictype/property-changes-when-uppercased'.
5748         * modules/unictype/property-changes-when-uppercased: New file.
5749         * lib/unictype/pr_changes_when_uppercased.c: New file.
5750         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5751         generated by gen-uni-tables.
5752         * modules/unictype/property-changes-when-uppercased-tests: New file.
5753         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5754         automatically generated by gen-uni-tables.
5755
5756         New module 'unictype/property-changes-when-lowercased'.
5757         * modules/unictype/property-changes-when-lowercased: New file.
5758         * lib/unictype/pr_changes_when_lowercased.c: New file.
5759         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5760         generated by gen-uni-tables.
5761         * modules/unictype/property-changes-when-lowercased-tests: New file.
5762         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5763         automatically generated by gen-uni-tables.
5764
5765         New module 'unictype/property-case-ignorable'.
5766         * modules/unictype/property-case-ignorable: New file.
5767         * lib/unictype/pr_case_ignorable.c: New file.
5768         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5769         by gen-uni-tables.
5770         * modules/unictype/property-case-ignorable-tests: New file.
5771         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5772         generated by gen-uni-tables.
5773
5774         New module 'unictype/property-cased'.
5775         * modules/unictype/property-cased: New file.
5776         * lib/unictype/pr_cased.c: New file.
5777         * lib/unictype/pr_cased.h: New file, automatically generated by
5778         gen-uni-tables.
5779         * modules/unictype/property-cased-tests: New file.
5780         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5781         gen-uni-tables.
5782
5783 2011-01-09  Bruno Haible  <bruno@clisp.org>
5784
5785         Update to Unicode 5.2.0.
5786         * lib/gen-uni-tables.c (output_predicate, output_category,
5787         output_combclass, output_bidi_category, output_decimal_digit_test,
5788         output_decimal_digit, output_digit_test, output_digit,
5789         output_numeric_test, output_numeric, output_mirror, output_scripts,
5790         output_scripts_byname, output_blocks, output_ident_category): Fix
5791         comment header.
5792         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5793         get_wbp.
5794         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5795         items.
5796         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5797         Changes_When_Lowercased, Changes_When_Uppercased,
5798         Changes_When_Titlecased, Changes_When_Casefolded,
5799         Changes_When_Casemapped.
5800         (is_property_alphabetic, is_property_default_ignorable_code_point):
5801         Update for Unicode 5.2.0.
5802         (is_property_cased, is_property_case_ignorable,
5803         is_property_changes_when_lowercased,
5804         is_property_changes_when_uppercased,
5805         is_property_changes_when_titlecased,
5806         is_property_changes_when_casefolded,
5807         is_property_changes_when_casemapped): New functions.
5808         (output_properties): Output also the properties cased, case_ignorable,
5809         changes_when_lowercased, changes_when_uppercased,
5810         changes_when_titlecased, changes_when_casefolded,
5811         changes_when_casemapped.
5812         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5813         Unicode TR#11 revision 17 -> 19.
5814         (LBP_CP): New enumeration value.
5815         (LBP_*): Adjust values accordingly.
5816         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5817         TR#14 revision 22 -> 24.
5818         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5819         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5820         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5821         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5822         is_WBP_MIDLETTER.
5823         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5824         the code1 and code2 of each composition rule.
5825         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5826         * lib/unicase/ignorable.h: Likewise.
5827         * lib/unicase/tocasefold.h: Likewise.
5828         * lib/unicase/tolower.h: Likewise.
5829         * lib/unicase/totitle.h: Likewise.
5830         * lib/unicase/toupper.h: Likewise.
5831         * lib/unictype/bidi_of.h: Likewise.
5832         * lib/unictype/blocks.h: Likewise.
5833         * lib/unictype/categ_C.h: Likewise.
5834         * lib/unictype/categ_Cf.h: Likewise.
5835         * lib/unictype/categ_Cn.h: Likewise.
5836         * lib/unictype/categ_L.h: Likewise.
5837         * lib/unictype/categ_Ll.h: Likewise.
5838         * lib/unictype/categ_Lm.h: Likewise.
5839         * lib/unictype/categ_Lo.h: Likewise.
5840         * lib/unictype/categ_Lu.h: Likewise.
5841         * lib/unictype/categ_M.h: Likewise.
5842         * lib/unictype/categ_Mc.h: Likewise.
5843         * lib/unictype/categ_Mn.h: Likewise.
5844         * lib/unictype/categ_N.h: Likewise.
5845         * lib/unictype/categ_Nd.h: Likewise.
5846         * lib/unictype/categ_Nl.h: Likewise.
5847         * lib/unictype/categ_No.h: Likewise.
5848         * lib/unictype/categ_P.h: Likewise.
5849         * lib/unictype/categ_Pd.h: Likewise.
5850         * lib/unictype/categ_Po.h: Likewise.
5851         * lib/unictype/categ_S.h: Likewise.
5852         * lib/unictype/categ_Sc.h: Likewise.
5853         * lib/unictype/categ_So.h: Likewise.
5854         * lib/unictype/categ_of.h: Likewise.
5855         * lib/unictype/combining.h: Likewise.
5856         * lib/unictype/ctype_alnum.h: Likewise.
5857         * lib/unictype/ctype_alpha.h: Likewise.
5858         * lib/unictype/ctype_graph.h: Likewise.
5859         * lib/unictype/ctype_lower.h: Likewise.
5860         * lib/unictype/ctype_print.h: Likewise.
5861         * lib/unictype/ctype_punct.h: Likewise.
5862         * lib/unictype/ctype_upper.h: Likewise.
5863         * lib/unictype/decdigit.h: Likewise.
5864         * lib/unictype/digit.h: Likewise.
5865         * lib/unictype/numeric.h: Likewise.
5866         * lib/unictype/pr_alphabetic.h: Likewise.
5867         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5868         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5869         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5870         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5871         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5872         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5873         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5874         * lib/unictype/pr_combining.h: Likewise.
5875         * lib/unictype/pr_composite.h: Likewise.
5876         * lib/unictype/pr_currency_symbol.h: Likewise.
5877         * lib/unictype/pr_dash.h: Likewise.
5878         * lib/unictype/pr_decimal_digit.h: Likewise.
5879         * lib/unictype/pr_deprecated.h: Likewise.
5880         * lib/unictype/pr_diacritic.h: Likewise.
5881         * lib/unictype/pr_extender.h: Likewise.
5882         * lib/unictype/pr_grapheme_base.h: Likewise.
5883         * lib/unictype/pr_grapheme_extend.h: Likewise.
5884         * lib/unictype/pr_grapheme_link.h: Likewise.
5885         * lib/unictype/pr_id_continue.h: Likewise.
5886         * lib/unictype/pr_id_start.h: Likewise.
5887         * lib/unictype/pr_ideographic.h: Likewise.
5888         * lib/unictype/pr_ignorable_control.h: Likewise.
5889         * lib/unictype/pr_logical_order_exception.h: Likewise.
5890         * lib/unictype/pr_lowercase.h: Likewise.
5891         * lib/unictype/pr_numeric.h: Likewise.
5892         * lib/unictype/pr_other_alphabetic.h: Likewise.
5893         * lib/unictype/pr_punctuation.h: Likewise.
5894         * lib/unictype/pr_sentence_terminal.h: Likewise.
5895         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5896         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5897         * lib/unictype/pr_unified_ideograph.h: Likewise.
5898         * lib/unictype/pr_uppercase.h: Likewise.
5899         * lib/unictype/pr_xid_continue.h: Likewise.
5900         * lib/unictype/pr_xid_start.h: Likewise.
5901         * lib/unictype/pr_zero_width.h: Likewise.
5902         * lib/unictype/scripts.h: Likewise.
5903         * lib/unictype/scripts_byname.gperf: Likewise.
5904         * lib/unictype/sy_java_ident.h: Likewise.
5905         * lib/unigbrk/gbrkprop.h: Likewise.
5906         * lib/unilbrk/lbrkprop1.h: Likewise.
5907         * lib/unilbrk/lbrkprop2.h: Likewise.
5908         * lib/unilbrk/lbrktables.h: Likewise.
5909         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5910         LBP_CP. Implement rule LB30.
5911         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5912         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5913         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5914         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5915         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5916         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5917         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5918         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5919         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5920         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5921         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5922         bits instead of 16 bits in the code1 and code2 of each composition
5923         rule.
5924         (uc_composition): Update for Unicode 5.2.0.
5925         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5926         * lib/uninorm/decomposition-table2.h: Likewise.
5927         * lib/uniwbrk/wbrkprop.h: Likewise.
5928         * tests/unicase/test-cased.c: Likewise.
5929         * tests/unicase/test-ignorable.c: Likewise.
5930         * tests/unicase/test-uc_tolower.c: Likewise.
5931         * tests/unicase/test-uc_totitle.c: Likewise.
5932         * tests/unicase/test-uc_toupper.c: Likewise.
5933         * tests/unictype/test-categ_C.c: Likewise.
5934         * tests/unictype/test-categ_Cf.c: Likewise.
5935         * tests/unictype/test-categ_Cn.c: Likewise.
5936         * tests/unictype/test-categ_L.c: Likewise.
5937         * tests/unictype/test-categ_Ll.c: Likewise.
5938         * tests/unictype/test-categ_Lm.c: Likewise.
5939         * tests/unictype/test-categ_Lo.c: Likewise.
5940         * tests/unictype/test-categ_Lu.c: Likewise.
5941         * tests/unictype/test-categ_M.c: Likewise.
5942         * tests/unictype/test-categ_Mc.c: Likewise.
5943         * tests/unictype/test-categ_Mn.c: Likewise.
5944         * tests/unictype/test-categ_N.c: Likewise.
5945         * tests/unictype/test-categ_Nd.c: Likewise.
5946         * tests/unictype/test-categ_Nl.c: Likewise.
5947         * tests/unictype/test-categ_No.c: Likewise.
5948         * tests/unictype/test-categ_P.c: Likewise.
5949         * tests/unictype/test-categ_Pd.c: Likewise.
5950         * tests/unictype/test-categ_Po.c: Likewise.
5951         * tests/unictype/test-categ_S.c: Likewise.
5952         * tests/unictype/test-categ_Sc.c: Likewise.
5953         * tests/unictype/test-categ_So.c: Likewise.
5954         * tests/unictype/test-ctype_alnum.c: Likewise.
5955         * tests/unictype/test-ctype_alpha.c: Likewise.
5956         * tests/unictype/test-ctype_graph.c: Likewise.
5957         * tests/unictype/test-ctype_lower.c: Likewise.
5958         * tests/unictype/test-ctype_print.c: Likewise.
5959         * tests/unictype/test-ctype_punct.c: Likewise.
5960         * tests/unictype/test-ctype_upper.c: Likewise.
5961         * tests/unictype/test-decdigit.h: Likewise.
5962         * tests/unictype/test-digit.h: Likewise.
5963         * tests/unictype/test-numeric.h: Likewise.
5964         * tests/unictype/test-pr_alphabetic.c: Likewise.
5965         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5966         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5967         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5968         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5969         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5970         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5971         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5972         * tests/unictype/test-pr_combining.c: Likewise.
5973         * tests/unictype/test-pr_composite.c: Likewise.
5974         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5975         * tests/unictype/test-pr_dash.c: Likewise.
5976         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5977         * tests/unictype/test-pr_deprecated.c: Likewise.
5978         * tests/unictype/test-pr_diacritic.c: Likewise.
5979         * tests/unictype/test-pr_extender.c: Likewise.
5980         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5981         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5982         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5983         * tests/unictype/test-pr_id_continue.c: Likewise.
5984         * tests/unictype/test-pr_id_start.c: Likewise.
5985         * tests/unictype/test-pr_ideographic.c: Likewise.
5986         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5987         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5988         * tests/unictype/test-pr_lowercase.c: Likewise.
5989         * tests/unictype/test-pr_numeric.c: Likewise.
5990         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5991         * tests/unictype/test-pr_punctuation.c: Likewise.
5992         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5993         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5994         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5995         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5996         * tests/unictype/test-pr_uppercase.c: Likewise.
5997         * tests/unictype/test-pr_xid_continue.c: Likewise.
5998         * tests/unictype/test-pr_xid_start.c: Likewise.
5999         * tests/unictype/test-pr_zero_width.c: Likewise.
6000         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6001         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
6002         changed behaviour: line breaking is now disallowed between a letter
6003         or '=' and '('.
6004         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6005         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6006         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
6007         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
6008         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6009         lib/uniwidth/width.c.
6010         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
6011         without comments, but with the original copyright notice.
6012         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6013         changes.
6014         * lib/unictype/categ_Cc.h: Likewise.
6015         * lib/unictype/categ_Co.h: Likewise.
6016         * lib/unictype/categ_Cs.h: Likewise.
6017         * lib/unictype/categ_Lt.h: Likewise.
6018         * lib/unictype/categ_Me.h: Likewise.
6019         * lib/unictype/categ_Pc.h: Likewise.
6020         * lib/unictype/categ_Pe.h: Likewise.
6021         * lib/unictype/categ_Pf.h: Likewise.
6022         * lib/unictype/categ_Pi.h: Likewise.
6023         * lib/unictype/categ_Ps.h: Likewise.
6024         * lib/unictype/categ_Sk.h: Likewise.
6025         * lib/unictype/categ_Sm.h: Likewise.
6026         * lib/unictype/categ_Z.h: Likewise.
6027         * lib/unictype/categ_Zl.h: Likewise.
6028         * lib/unictype/categ_Zp.h: Likewise.
6029         * lib/unictype/categ_Zs.h: Likewise.
6030         * lib/unictype/ctype_blank.h: Likewise.
6031         * lib/unictype/ctype_cntrl.h: Likewise.
6032         * lib/unictype/ctype_digit.h: Likewise.
6033         * lib/unictype/ctype_space.h: Likewise.
6034         * lib/unictype/ctype_xdigit.h: Likewise.
6035         * lib/unictype/mirror.h: Likewise.
6036         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6037         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6038         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6039         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6040         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6041         * lib/unictype/pr_bidi_control.h: Likewise.
6042         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6043         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6044         * lib/unictype/pr_bidi_pdf.h: Likewise.
6045         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6046         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6047         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6048         * lib/unictype/pr_format_control.h: Likewise.
6049         * lib/unictype/pr_hex_digit.h: Likewise.
6050         * lib/unictype/pr_hyphen.h: Likewise.
6051         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6052         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6053         * lib/unictype/pr_iso_control.h: Likewise.
6054         * lib/unictype/pr_join_control.h: Likewise.
6055         * lib/unictype/pr_left_of_pair.h: Likewise.
6056         * lib/unictype/pr_line_separator.h: Likewise.
6057         * lib/unictype/pr_math.h: Likewise.
6058         * lib/unictype/pr_non_break.h: Likewise.
6059         * lib/unictype/pr_not_a_character.h: Likewise.
6060         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6061         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6062         * lib/unictype/pr_other_id_continue.h: Likewise.
6063         * lib/unictype/pr_other_id_start.h: Likewise.
6064         * lib/unictype/pr_other_lowercase.h: Likewise.
6065         * lib/unictype/pr_other_math.h: Likewise.
6066         * lib/unictype/pr_other_uppercase.h: Likewise.
6067         * lib/unictype/pr_paired_punctuation.h: Likewise.
6068         * lib/unictype/pr_paragraph_separator.h: Likewise.
6069         * lib/unictype/pr_pattern_syntax.h: Likewise.
6070         * lib/unictype/pr_pattern_white_space.h: Likewise.
6071         * lib/unictype/pr_private_use.h: Likewise.
6072         * lib/unictype/pr_quotation_mark.h: Likewise.
6073         * lib/unictype/pr_radical.h: Likewise.
6074         * lib/unictype/pr_soft_dotted.h: Likewise.
6075         * lib/unictype/pr_space.h: Likewise.
6076         * lib/unictype/pr_titlecase.h: Likewise.
6077         * lib/unictype/pr_variation_selector.h: Likewise.
6078         * lib/unictype/pr_white_space.h: Likewise.
6079         * lib/unictype/sy_c_ident.h: Likewise.
6080         * lib/unictype/sy_c_whitespace.h: Likewise.
6081         * lib/unictype/sy_java_whitespace.h: Likewise.
6082         * modules/uni*/*: Bump version number of expected libunistring version.
6083         Reported by Simon Josefsson.
6084
6085 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6086
6087         useless-if-before-free: fix typo in --help and make the internal,
6088         automatic version date update process work once again.
6089         --help output contained a NUL character instead of the
6090         backslash-zero that was intended.  Also, the "must lie within
6091         the first 8 lines" line is on line 9, and hence not getting
6092         automatically updated.
6093         * build-aux/useless-if-before-free: Fix the former by adding a
6094         backslash, and the latter by condensing the three lines of what-it-does
6095         to a single line, leaving one line of slack for the future.
6096
6097 2011-01-09  Bruno Haible  <bruno@clisp.org>
6098
6099         uniwidth/width: Fix width of U+1D173..U+1D17A.
6100         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6101         symbolic_width, output_width_property_test): New functions.
6102         (main): Invoke output_nonspacing_property, output_width_property_test.
6103         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6104         U+1D173..U+1D17A.
6105         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6106         1.
6107         * modules/uniwidth/*: Bump version number of expected libunistring
6108         version.
6109         * modules/unilbrk/*: Likewise.
6110
6111 2011-01-08  Bruno Haible  <bruno@clisp.org>
6112
6113         uninorm tests: Preserve copyright of Unicode data file.
6114         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6115         Mention modifications.
6116
6117 2011-01-08  Bruno Haible  <bruno@clisp.org>
6118
6119         gen-uni-tables: Prepare for Unicode 5.2.0.
6120         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6121         (debug_output_lbp, output_lbp): Update.
6122
6123 2011-01-08  Bruno Haible  <bruno@clisp.org>
6124
6125         unilbrk: Clarify gen-uni-tables.c code.
6126         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6127         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6128         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6129
6130 2011-01-07  Bruno Haible  <bruno@clisp.org>
6131
6132         strtod: Restore errno when successfully parsing Infinity or NaN.
6133         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6134         restore the original errno.
6135
6136 2011-01-07  Bruno Haible  <bruno@clisp.org>
6137
6138         remove test: Avoid failure on HP-UX 11.
6139         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6140
6141 2011-01-07  Bruno Haible  <bruno@clisp.org>
6142
6143         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6144         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6145         error code.
6146
6147 2011-01-07  Pádraig Brady <P@draigBrady.com>
6148
6149         ignore-value: fixup comments, and add Eric Blake
6150         as an author since he rewrote the macros.
6151         * lib/ignore-value.h (ignore_value):  State that
6152         we now support aggregates.  Also specify exactly
6153         when the GCC warn_unused_result feature was added.
6154
6155 2011-01-06  Eric Blake  <eblake@redhat.com>
6156
6157         ignore-value: support aggregate types
6158         * lib/ignore-value.h (ignore_value): Provide separate gcc
6159         definition.
6160         * modules/ignore-value-tests: New test module.
6161         * tests/test-ignore-value.c: New test.
6162
6163         maint.mk: improve sc_prohibit_strcmp regex
6164         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6165         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6166         definition of STRNEQ.
6167
6168         signal: work around Haiku issue with SIGBUS
6169         * lib/siglist.h: Add comment.
6170         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6171         strsignal's favoring of SIGSEGV.
6172         * tests/test-signal.c (main): Avoid test failure.
6173         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6174         Reported by Scott McCreary.
6175
6176         maint.mk: add pre-release check to ensure submodule commits are public
6177         * top/maint.mk (public-submodule-commit): New rule.
6178         (submodule-checks): New variable.
6179         (alpha beta stable): Depend on the variable.
6180
6181 2011-01-05  Pádraig Brady <P@draigBrady.com>
6182         and Jim Meyering  <meyering@redhat.com>
6183
6184         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6185         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6186         (ATTRIBUTE_DEPRECATED): Define.
6187         (_ignore_case): New function.
6188         (ignore_value): New macro, to replace the old function.
6189         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6190         * modules/ignore-value (Depends-on): Add stdint.
6191
6192 2011-01-04  Eric Blake  <eblake@redhat.com>
6193
6194         doc: regenerate INSTALL
6195         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6196         @firstparagraphindent support, now that autoconf dropped it.
6197         (INSTALL_PRELUDE): Reinstate old macro.
6198         * doc/install.texi: Resync from autoconf.
6199         * doc/INSTALL: Reflect recent autoconf update.
6200         * doc/INSTALL.ISO: Likewise.
6201         * doc/INSTALL.UTF-8: Likewise.
6202         Reported by Karl Berry.
6203
6204 2011-01-04  Bruce Korb  <address@hidden>
6205
6206         git-version-gen: avoid a sub-shell
6207         * build-aux/git-version-gen: Redirect stderr in `...` via
6208         "exec 2>...", rather than via an added sub-shell.
6209
6210 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6211
6212         git-version-gen: use (...) rather than sh -c '...'
6213         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6214         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6215
6216 2011-01-03  Jim Meyering  <meyering@redhat.com>
6217
6218         git-version-gen: convert leading TABs to spaces
6219         * build-aux/git-version-gen: Expand leading TABs.
6220
6221         git-version-gen: handle failed "git rev-list"
6222         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6223         from git and proceeding as if it had succeeded but printed no SHA1
6224         checksums, suppress the diagnostic and handle the failure.
6225         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6226
6227         git-version-gen: include command name in one more diagnostic
6228         * build-aux/git-version-gen: When the required .tarball-version file
6229         was missing or unreadable, you might see the diagnostic from "cat",
6230         but no trace of the name of the invoking script.  Now, you still see
6231         the diagnostic from cat, but also get one from "git-version-gen: ".
6232         Inspired by a patch from Bruce Korb.
6233
6234         update-copyright: adjust test to match changed code
6235         * tests/test-update-copyright.sh: Change test's expected output
6236         to match new actual output.
6237
6238 2011-01-02  Bruno Haible  <bruno@clisp.org>
6239
6240         getlogin_r: Avoid test failure on HP-UX 11.
6241         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6242         ERANGE when the second argument is zero.
6243         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6244         portability problem.
6245
6246 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6247
6248         * build-aux/update-copyright: doc Simon's changes
6249
6250 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6251
6252         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6253         environment variable.
6254
6255 2011-01-02  Bruno Haible  <bruno@clisp.org>
6256
6257         unigbrk: Avoid gcc warnings.
6258         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6259         unused variable.
6260         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6261         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6262         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6263         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6264         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6265         Change type of first argument to 'const char *'.
6266         (main): Remove unused variable.
6267         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6268         type of first argument to 'const char *'.
6269         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6270         Likewise.
6271         (main): Change type of variable 's'.
6272         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6273         to 'int'.
6274
6275 2011-01-02  Bruno Haible  <bruno@clisp.org>
6276
6277         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6278         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6279         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6280         bug.
6281         * lib/pwrite.c: Undo 2010-12-31 patch.
6282         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6283
6284 2011-01-02  Bruno Haible  <bruno@clisp.org>
6285
6286         pread: Fix test whether it works.
6287         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6288
6289 2011-01-02  Bruno Haible  <bruno@clisp.org>
6290
6291         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6292         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6293         ends in "6". Don't require a specific month name. Try also the locale
6294         names found on HP-UX 11 and Solaris 7.
6295
6296 2011-01-02  Bruno Haible  <bruno@clisp.org>
6297
6298         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6299         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6300         C linkage.
6301         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6302
6303 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6304
6305         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6306         for consistency, since the "cluster" term is not used elsewhere.
6307         * lib/unigbrk.in.h: Update name.
6308         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6309         * lib/unigbrk/u16-grapheme-next.c: Update name.
6310         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6311         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6312         * lib/unigbrk/u32-grapheme-next.c: Update name.
6313         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6314         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6315         * lib/unigbrk/u8-grapheme-next.c: Update name.
6316         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6317         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6318         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6319         Suggested by Bruno Haible.
6320
6321 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6322
6323         Remove module 'u8-grapheme-len' as too redundant with
6324         'u8-grapheme-next'.
6325         * modules/unigbrk/u8-grapheme-len: Delete file.
6326         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6327         * lib/unigbrk.in.h: Remove prototype for deleted function.
6328         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6329         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6330
6331         Remove module 'u16-grapheme-len' as too redundant with
6332         'u16-grapheme-next'.
6333         * modules/unigbrk/u16-grapheme-len: Delete file.
6334         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6335         * lib/unigbrk.in.h: Remove prototype for deleted function.
6336         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6337         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6338
6339         Remove module 'u32-grapheme-len' as too redundant with
6340         'u32-grapheme-next'.
6341         * modules/unigbrk/u32-grapheme-len: Delete file.
6342         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6343         * lib/unigbrk.in.h: Remove prototype for deleted function.
6344         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6345         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6346
6347         Suggested by Bruno Haible.
6348
6349 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6350
6351         * unigbrk.in.h: Fix typo: "ben" => "been".
6352         Reported by Bruno Haible.
6353
6354 2011-01-01  Jim Meyering  <meyering@redhat.com>
6355
6356         maint: update almost all copyright ranges to include 2011
6357         Run the new "make update-copyright" rule.
6358
6359 2011-01-01  Jim Meyering  <meyering@redhat.com>
6360
6361         maint: update-copyright: exempt doc/INSTALL*
6362         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6363         since they are generated.  Suggested by Bruno Haible.
6364
6365 2011-01-01  Jim Meyering  <meyering@redhat.com>
6366
6367         maint: refine the update-copyright rule
6368         * Makefile (update-copyright): Also exclude any file that includes
6369         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6370         code that merely generates the comment.
6371
6372 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6373
6374         New module 'u8-grapheme-len'.
6375         * modules/unigbrk/u8-grapheme-len: New file.
6376         * modules/unigbrk/u8-grapheme-len-tests: New file.
6377         * lib/unigbrk.in.h: Add prototype for new function.
6378         * lib/unigbrk/u8-grapheme-len.c: New file.
6379         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6380
6381         New module 'u16-grapheme-len'.
6382         * modules/unigbrk/u16-grapheme-len: New file.
6383         * modules/unigbrk/u16-grapheme-len-tests: New file.
6384         * lib/unigbrk.in.h: Add prototype for new function.
6385         * lib/unigbrk/u16-grapheme-len.c: New file.
6386         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6387
6388         New module 'u32-grapheme-len'.
6389         * modules/unigbrk/u32-grapheme-len: New file.
6390         * modules/unigbrk/u32-grapheme-len-tests: New file.
6391         * lib/unigbrk.in.h: Add prototype for new function.
6392         * lib/unigbrk/u32-grapheme-len.c: New file.
6393         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6394
6395         New module 'u8-grapheme-next'.
6396         * modules/unigbrk/u8-grapheme-next: New file.
6397         * modules/unigbrk/u8-grapheme-next-tests: New file.
6398         * lib/unigbrk.in.h: Add prototype for new function.
6399         * lib/unigbrk/u8-grapheme-next.c: New file.
6400         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6401
6402         New module 'u16-grapheme-next'.
6403         * modules/unigbrk/u16-grapheme-next: New file.
6404         * modules/unigbrk/u16-grapheme-next-tests: New file.
6405         * lib/unigbrk.in.h: Add prototype for new function.
6406         * lib/unigbrk/u16-grapheme-next.c: New file.
6407         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6408
6409         New module 'u32-grapheme-next'.
6410         * modules/unigbrk/u32-grapheme-next: New file.
6411         * modules/unigbrk/u32-grapheme-next-tests: New file.
6412         * lib/unigbrk.in.h: Add prototype for new function.
6413         * lib/unigbrk/u32-grapheme-next.c: New file.
6414         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6415
6416         New module 'u8-grapheme-prev'.
6417         * modules/unigbrk/u8-grapheme-prev: New file.
6418         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6419         * lib/unigbrk.in.h: Add prototype for new function.
6420         * lib/unigbrk/u8-grapheme-prev.c: New file.
6421         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6422
6423         New module 'u16-grapheme-prev'.
6424         * modules/unigbrk/u16-grapheme-prev: New file.
6425         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6426         * lib/unigbrk.in.h: Add prototype for new function.
6427         * lib/unigbrk/u16-grapheme-prev.c: New file.
6428         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6429
6430         New module 'u32-grapheme-prev'.
6431         * modules/unigbrk/u32-grapheme-prev: New file.
6432         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6433         * lib/unigbrk.in.h: Add prototype for new function.
6434         * lib/unigbrk/u32-grapheme-prev.c: New file.
6435         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6436
6437         New module 'u8-grapheme-breaks'.
6438         * modules/unigbrk/u8-grapheme-breaks: New file.
6439         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6440         * lib/unigbrk.in.h: Add prototype for new function.
6441         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6442         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6443
6444         New module 'u16-grapheme-breaks'.
6445         * modules/unigbrk/u16-grapheme-breaks: New file.
6446         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6447         * lib/unigbrk.in.h: Add prototype for new function.
6448         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6449         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6450
6451         New module 'u32-grapheme-breaks'.
6452         * modules/unigbrk/u32-grapheme-breaks: New file.
6453         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6454         * lib/unigbrk.in.h: Add prototype for new function.
6455         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6456         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6457
6458         New module 'ulc-grapheme-breaks'.
6459         * modules/unigbrk/ulc-grapheme-breaks: New file.
6460         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6461         * m4/locale-ar.m4: New file.
6462         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6463         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6464         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6465
6466 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6467
6468         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6469         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6470         modified how this file was generated before I initially submitted
6471         the module, but failed to regenerate it.  This meant that several
6472         of the level2 entries were wrong.
6473         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6474         Remove the division-by-2 that is folded into the table now that
6475         gbrkprop.h has been regenerated properly.  Now -1 entries are
6476         handled correctly.
6477
6478         New module 'unigbrk/uc-gbrk-prop-tests'.
6479         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6480         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6481         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6482         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6483
6484 2011-01-01  Bruno Haible  <bruno@clisp.org>
6485
6486         Avoid use of hexadecimal escapes.
6487         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6488         instead of hexadecimal escapes.
6489
6490 2011-01-01  Jim Meyering  <meyering@redhat.com>
6491
6492         maint: new rule to update copyright year ranges
6493         * Makefile (update-copyright): New rule.
6494
6495         maint: indent with TABs in Makefile
6496         * Makefile: Expand leading sequences of spaces to TABs
6497
6498         version-etc: update the copyright year it reports
6499         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6500
6501 2010-12-31  Bruno Haible  <bruno@clisp.org>
6502
6503         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6504         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6505         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6506         zero.
6507
6508 2010-12-31  Bruno Haible  <bruno@clisp.org>
6509
6510         pwrite: Work around HP-UX 11.11 bug.
6511         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6512         works and set REPLACE_PWRITE if not.
6513         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6514         function.
6515         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6516
6517 2010-12-31  Bruno Haible  <bruno@clisp.org>
6518
6519         pread: Work around HP-UX 11 bugs.
6520         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6521         and set REPLACE_PREAD if not.
6522         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6523
6524 2010-12-31  Eric Blake  <eblake@redhat.com>
6525
6526         nl_langinfo: fix YESEXPR on Irix 6.5
6527         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6528         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6529         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6530         it.
6531
6532 2010-12-31  Bruno Haible  <bruno@clisp.org>
6533
6534         iconv: Document HP-UX 11 bug.
6535         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6536
6537 2010-12-31  Bruno Haible  <bruno@clisp.org>
6538
6539         ldexpl: Fix link error on HP-UX 11.
6540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6541         LDEXPL_LIBM, using $ISNANL_LIBM.
6542
6543 2010-12-31  Eric Blake  <eblake@redhat.com>
6544
6545         ftello: avoid compilation failure with SunStudio c89
6546         * lib/ftello.c (ftello): Use lseek, not llseek.
6547
6548         tests: avoid failing coreutils tests on cygwin
6549         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6550         (create_exe_shims_): Return 0 when skipping.
6551
6552 2010-12-31  Bruno Haible  <bruno@clisp.org>
6553
6554         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6555         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6556
6557 2010-12-31  Bruno Haible  <bruno@clisp.org>
6558
6559         waitpid: Fix link error in C++ mode.
6560         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6561
6562 2010-12-31  Bruno Haible  <bruno@clisp.org>
6563
6564         isnan: Use GCC built-ins when possible.
6565         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6566         __builtin_isnan.
6567         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6568         (isnan): Define using GCC built-ins for GCC >= 4.0.
6569
6570 2010-12-31  Bruno Haible  <bruno@clisp.org>
6571
6572         isnand: Fix mistake.
6573         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6574         __builtin_isnand.
6575
6576 2010-12-31  Bruno Haible  <bruno@clisp.org>
6577
6578         open: Avoid C++ error on HP-UX 11.
6579         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6580
6581 2010-12-31  Bruno Haible  <bruno@clisp.org>
6582
6583         time_r: Add missing declarations on HP-UX 11.
6584         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6585         instead of HAVE_LOCALTIME_R.
6586         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6587         HAVE_LOCALTIME_R always.
6588         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6589         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6590         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6591         HAVE_LOCALTIME_R.
6592         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6593         * doc/posix-functions/localtime_r.texi: Likewise.
6594
6595 2010-12-29  Eric Blake  <eblake@redhat.com>
6596
6597         mountlist: tweak previous commit
6598         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6599         Reported by Paul Eggert.
6600
6601         mountlist: fix local drive detection on cygwin
6602         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6603         that works for cygwin.
6604
6605 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6606
6607         ftoastr, snprintf: ftoastr + snprintf module
6608         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6609         since the snprintf module now should be good enough here.
6610         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6611         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6612         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6613         GNULIB_SNPRINTF only for the test directory, and the latter
6614         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6615         seems to suffice by itself.
6616
6617 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6618
6619         alloca: one step towards thread-safety
6620         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6621         need for a static variable.  All callers changed.  This does not
6622         make the alloca replacement thread-safe, but it's one step.
6623
6624         tests: minor indenting change
6625         * tests/init.sh: Sync from coreutils housekeeping patch
6626         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6627         to keep lines within 80 columns.
6628
6629 2010-12-28  Jim Meyering  <meyering@redhat.com>
6630
6631         regex: don't infloop on persistent failing calloc
6632         * lib/regexec.c (build_trtable): Return failure indication upon
6633         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6634         In glibc, this was fixed for version 2.13:
6635         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6636
6637 2010-12-28  Bruno Haible  <bruno@clisp.org>
6638             Paul Eggert <eggert@cs.ucla.edu>
6639
6640         linkat: Make implementation robust against system behaviour variations.
6641         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6642         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6643         way, and to -2 if it needs a generic runtime test.
6644         * lib/linkat.c (solaris_optimized_link_immediate,
6645         solaris_optimized_link_follow): New functions.
6646         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6647         (check_same_link): Use it.
6648
6649 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6650
6651         New module 'unigbrk/base'.
6652         * modules/unigbrk/base: New file.
6653         * lib/unigbrk.in.h: New file.
6654
6655         New module 'unigbrk/uc-gbrk-prop'.
6656         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6657         * modules/unigbrk/uc-gbrk-prop: New file.
6658         * lib/unigbrk/gbrkprop.h: New file.
6659         * lib/unigbrk/uc-gbrk-prop.c: New file.
6660
6661         New module 'unigbrk/uc-is-grapheme-break'.
6662         * modules/unigbrk/uc-is-grapheme-break: New file.
6663         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6664         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6665         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6666         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6667         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6668
6669         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6670
6671 2010-12-27  Bruno Haible  <bruno@clisp.org>
6672
6673         linkat test: Avoid failure on Solaris 11 2010-11.
6674         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6675
6676 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6677
6678         utimens: work around glibc rounding bug on more platforms
6679         * lib/utimens.c (fdutimens): Work around rounding bug even if
6680         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6681         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6682
6683 2010-12-27  Bruno Haible  <bruno@clisp.org>
6684
6685         select tests: Improve comments.
6686         * tests/test-select.c (do_select): Add comments.
6687
6688 2010-12-27  Bruno Haible  <bruno@clisp.org>
6689
6690         select tests: Safer way of handling timeout.
6691         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6692         at every invocation.
6693
6694 2010-12-27  Bruno Haible  <bruno@clisp.org>
6695
6696         select tests: Use 'bool' where appropriate.
6697         * tests/test-select.c (connect_to_socket): Change argument type to
6698         'bool'.
6699
6700 2010-12-27  Bruno Haible  <bruno@clisp.org>
6701
6702         select tests: Use existing modules.
6703         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6704         (configure.ac): Don't test for unistd.h.
6705         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6706         declared in <unistd.h>.
6707
6708 2010-12-27  Bruno Haible  <bruno@clisp.org>
6709
6710         mbrtowc: Work around a Solaris 7 bug.
6711         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6712         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6713         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6714         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6715         MBRTOWC_NULL_ARG1_BUG.
6716         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6717         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6718         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6719         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6720
6721 2010-12-27  Jim Meyering  <meyering@redhat.com>
6722
6723         read-file.c: tweak syntax
6724         * lib/read-file.c (fread_file): Remove space after "*" in function
6725         definitions.
6726
6727 2010-12-27  Bruno Haible  <bruno@clisp.org>
6728
6729         times test: Avoid gcc warnings on OSF/1.
6730         * tests/test-times.c (main): Cast printf arguments from clock_t to
6731         'long int'.
6732
6733 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6734
6735         utimens: work around glibc rounding bug on older Linux kernels
6736         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6737         on Linux with a glibc whose utimes might not work, then work
6738         around a longstanding glibc bug involving rounding rather than
6739         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6741
6742 2010-12-26  Bruno Haible  <bruno@clisp.org>
6743
6744         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6745         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6746         _GL_CXXALIAS_SYS.
6747         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6748
6749 2010-12-26  Bruno Haible  <bruno@clisp.org>
6750
6751         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6752         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6754         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6755         looking for the declaration.
6756         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6757         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6758         problem.
6759         * doc/posix-functions/inet_pton.texi: Likewise.
6760
6761 2010-12-26  Bruno Haible  <bruno@clisp.org>
6762
6763         arpa_inet: Use the common idioms with C++ support.
6764         * lib/arpa_inet.in.h: Include c++defs.h.
6765         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6766         support.
6767         * modules/arpa_inet (Depends-on): Add c++defs.
6768         (Makefile.am): Substitute the contents of c++defs.h.
6769         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6770         * modules/arpa_inet-c++-tests: New file.
6771         * tests/test-arpa_inet-c++.cc: New file.
6772
6773 2010-12-25  Bruno Haible  <bruno@clisp.org>
6774
6775         Fix more C++ link errors on Solaris 8.
6776         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6777         $(LIB_EACCESS).
6778         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6779         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6780         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6781         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6782         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6783
6784 2010-12-25  Bruno Haible  <bruno@clisp.org>
6785
6786         printf-posix: Fix link error when a non-GCC compiler is used.
6787         * lib/stdio.in.h (printf): When not using GCC, override printf
6788         correctly.
6789         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6790
6791 2010-12-25  Bruno Haible  <bruno@clisp.org>
6792
6793         strerror_r-posix: Update doc.
6794         * doc/posix-functions/strerror_r.texi: Update doc about the return
6795         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6796
6797 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6798
6799         utimens: simplify the logic of the previous change
6800         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6801         This should not affect whether the test succeeds or fails.
6802
6803         utimens: configure better on hosts with NFS clock skew
6804         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6805         uses the clock of the local host.  It might use the clock of the
6806         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6808
6809 2010-12-25  Bruno Haible  <bruno@clisp.org>
6810
6811         ptsname test: Avoid failure on Solaris.
6812         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6813         open a pseudo-terminal; don't use BSD-style ptys.
6814         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6815
6816 2010-12-25  Bruno Haible  <bruno@clisp.org>
6817
6818         ptsname: Avoid ERANGE failure on some systems.
6819         * lib/ptsname.c (buffer): Increase size.
6820
6821 2010-12-25  Bruno Haible  <bruno@clisp.org>
6822
6823         rename, renameat: Avoid test failures at NFS mounted locations.
6824         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6825         so that subsequent mkdir calls succeed.
6826
6827 2010-12-25  Bruno Haible  <bruno@clisp.org>
6828
6829         iswblank: Fix C++ link error on Solaris 8.
6830         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6831         _GL_FUNCDECL_SYS.
6832
6833 2010-12-25  Bruno Haible  <bruno@clisp.org>
6834
6835         unistd: Fix C++ link error on Solaris 8.
6836         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6837
6838 2010-12-25  Bruno Haible  <bruno@clisp.org>
6839
6840         readlink doc: Mention an old glibc bug.
6841         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6842
6843 2010-12-25  Bruno Haible  <bruno@clisp.org>
6844
6845         fcntl-h: Fix for use of C++ on glibc systems.
6846         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6847         also on glibc systems in C++ mode.
6848         Reported by Gary V. Vaughan <gary@gnu.org>.
6849
6850 2010-12-25  Bruno Haible  <bruno@clisp.org>
6851
6852         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6853         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6854
6855 2010-12-25  Bruno Haible  <bruno@clisp.org>
6856
6857         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6858         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6859         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6860         test whether truncl works according to ISO C 99 with IEC 60559.
6861         * m4/truncl-ieee.m4: New file.
6862         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6863         m4/signbit.m4.
6864         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6865
6866 2010-12-25  Bruno Haible  <bruno@clisp.org>
6867
6868         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6869         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6870         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6871         test whether ceill works according to ISO C 99 with IEC 60559.
6872         * m4/ceill-ieee.m4: New file.
6873         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6874         m4/signbit.m4.
6875         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6876
6877 2010-12-25  Bruno Haible  <bruno@clisp.org>
6878
6879         Ensure all prerequisites of <wchar.h> are included.
6880         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6881         before <wchar.h>.
6882         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6883         gl_MBRLEN_NUL_RETVAL): Likewise.
6884         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6885         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6886         AC_FUNC_MBRTOWC): Likewise.
6887         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6888         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6889         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6890         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6891         Likewise.
6892         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6893         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6894         (gl_WCHAR_H): Improve comments.
6895         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6896
6897 2010-12-25  Bruno Haible  <bruno@clisp.org>
6898
6899         strtok_r: Fix C syntax error in autoconf macro.
6900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6901         characters in test program.
6902
6903 2010-12-24  Bruno Haible  <bruno@clisp.org>
6904
6905         ceil, trunc, round: Fix gcc warnings.
6906         * lib/ceil.c (MIN): Undefine before redefining.
6907         * lib/trunc.c (MIN): Likewise.
6908         * lib/round.c (MIN): Likewise.
6909         Include <math.h> first.
6910
6911 2010-12-24  Bruno Haible  <bruno@clisp.org>
6912
6913         select tests: Avoid failures on OSF/1 5.1.
6914         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6915         failure of closing the last socket; it may fail with ECONNRESET.
6916
6917 2010-12-24  Eric Blake  <eblake@redhat.com>
6918
6919         stdint: avoid HP-UX 10.20 preprocessor bug
6920         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6921         than #if.
6922         * tests/test-floor2.c (main): Likewise.
6923         Reported by Peter O'Gorman.
6924
6925         pipe: make obsoletion transition easier
6926         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6927         * modules/pipe (Files): Include revived file.
6928         (Include): Drop reference, to mirror getdate's behavior.
6929
6930 2010-12-24  Bruno Haible  <bruno@clisp.org>
6931
6932         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6933         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6934         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6935         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6936
6937 2010-12-24  Bruno Haible  <bruno@clisp.org>
6938
6939         gethostname: Ensure declaration on NonStop Kernel.
6940         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6941         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6942
6943 2010-12-24  Bruno Haible  <bruno@clisp.org>
6944
6945         sys_select: Ensure all necessary types on NonStop Kernel.
6946         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6947         include <sys/time.h>.
6948         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6949         NonStop Kernel.
6950         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6951
6952 2010-12-24  Bruno Haible  <bruno@clisp.org>
6953
6954         sys_select: Remove unneeded include.
6955         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6956         have <sys/select.h>.
6957
6958 2010-12-24  Bruno Haible  <bruno@clisp.org>
6959
6960         gethostname: Provide a fallback for HOST_NAME_MAX.
6961         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6962         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6963         instead.
6964         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6965
6966 2010-12-24  Bruno Haible  <bruno@clisp.org>
6967
6968         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6969         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6970         (SA_RESTART): Likewise.
6971         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6972
6973 2010-12-24  Bruno Haible  <bruno@clisp.org>
6974
6975         signal: Define NSIG.
6976         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6977         * tests/test-signal.c (nsig): New variable.
6978         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6979
6980 2010-12-24  Bruno Haible  <bruno@clisp.org>
6981
6982         rename, renameat: Avoid test failures on OSF/1 5.1.
6983         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6984         alternative error codes.
6985         * tests/test-renameat.c (main): Likewise.
6986
6987 2010-12-24  Bruno Haible  <bruno@clisp.org>
6988
6989         *printf: Detect large precisions bug on Solaris 10/SPARC.
6990         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6991         by Paul Eggert.
6992         * tests/test-snprintf-posix.h (test_function): Add this test code here
6993         too.
6994         * tests/test-sprintf-posix.h (test_function): Likewise.
6995         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6996         * tests/test-vasprintf-posix.c (test_function): Likewise.
6997         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6998         around by gnulib.
6999         * doc/posix-functions/printf.texi: Likewise.
7000         * doc/posix-functions/snprintf.texi: Likewise.
7001         * doc/posix-functions/sprintf.texi: Likewise.
7002         * doc/posix-functions/vfprintf.texi: Likewise.
7003         * doc/posix-functions/vprintf.texi: Likewise.
7004         * doc/posix-functions/vsnprintf.texi: Likewise.
7005         * doc/posix-functions/vsprintf.texi: Likewise.
7006         * doc/posix-functions/dprintf.texi: Undo last commit.
7007         * doc/posix-functions/vdprintf.texi: Likewise.
7008
7009 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7010
7011         tests: port test-fdutimensat.c to Solaris 8
7012         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
7013         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
7014         On Solaris 8, it fails with errno == ENOSYS, because there is no
7015         futimens (so it can't use the fd), and there is no lutimens (so it
7016         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
7017
7018         vsnprintf: make more consistent with snprintf; doc fixes
7019
7020         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
7021         the byte count return problem was promoted from the snprintf-posix
7022         to the snprintf module.
7023         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7024         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
7025         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
7026         * tests/test-snprintf.c (main): Check the byte count returned.
7027         * tests/test-vsnprintf.c (main): Likewise.
7028
7029 2010-12-23  Eric Blake  <eblake@redhat.com>
7030
7031         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
7032         * modules/sigpipe (License): Relax license.
7033
7034 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7035
7036         doc: document Solaris printf bug with large float precisions
7037         * doc/posix-functions/dprintf.texi (dprintf):
7038         * doc/posix-functions/fprintf.texi (fprintf):
7039         * doc/posix-functions/printf.texi (printf):
7040         * doc/posix-functions/snprintf.texi (snprintf):
7041         * doc/posix-functions/sprintf.texi (sprintf):
7042         * doc/posix-functions/vdprintf.texi (vdprintf):
7043         * doc/posix-functions/vfprintf.texi (vfprintf):
7044         * doc/posix-functions/vprintf.texi (vprintf):
7045         * doc/posix-functions/vsnprintf.texi (vsnprintf):
7046         * doc/posix-functions/vsprintf.texi (vsprintf):
7047         Mention that these functions mishandle large floating point
7048         precisions on Solaris 10.  The same bug is also present in Solaris
7049         8, and I assume earlier.  This causes "cd gnulib-tests; make
7050         check" to fail on Solaris 8 (and I assume, later) when building
7051         the latest coreutils, in test-vasprintf-posix's call to
7052         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
7053         the wide flavors (e.g., wprintf) so this patch just updates the
7054         documentation for the narrow ones.
7055
7056         test-posixtm.c: add two tests
7057         * tests/test-posixtm.c: Add two tests, to highlight the
7058         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7059         around this bug; this is merely to document it.
7060
7061 2010-12-22  Bruno Haible  <bruno@clisp.org>
7062
7063         getlogin_r: Work around portability problem on OSF/1.
7064         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7065         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7066         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7067         test for a truncated result.
7068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7069         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7070         * modules/getlogin_r (Depends-on): Add memchr.
7071         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7072
7073 2010-12-22  Bruno Haible  <bruno@clisp.org>
7074
7075         ptsname: Avoid test failure on OSF/1 5.1.
7076         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7077         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7078         (same_slave): New function.
7079         (main): Use it to compare ptsname's result with the expected file name.
7080
7081 2010-12-22  Bruno Haible  <bruno@clisp.org>
7082
7083         Port extended stdio modules to HP NonStop Kernel.
7084         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7085         macros.
7086         * lib/fbufmode.c: Update comments.
7087         * lib/fflush.c: Likewise.
7088         * lib/fpurge.c: Likewise.
7089         * lib/freadable.c: Likewise.
7090         * lib/freadahead.c: Likewise.
7091         * lib/freading.c: Likewise.
7092         * lib/freadptr.c: Likewise.
7093         * lib/freadseek.c: Likewise.
7094         * lib/fseeko.c: Likewise.
7095         * lib/fseterr.c: Likewise.
7096         * lib/fwritable.c: Likewise.
7097         * lib/fwriting.c: Likewise.
7098         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7099
7100 2010-12-22  Bruno Haible  <bruno@clisp.org>
7101
7102         ttyname_r: Work around bug on OSF/1 5.1.
7103         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7104         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7105         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7106         present.
7107         * lib/ttyname_r.c (ttyname_r): Update comments.
7108
7109 2010-12-22  Bruno Haible  <bruno@clisp.org>
7110
7111         round: Implement result sign according to IEEE 754.
7112         * lib/round.c (MIN, MINUS_ZERO): New macros.
7113         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7114         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7115         * tests/test-round-ieee.c (main): Likewise.
7116         * tests/test-roundl-ieee.c (main): Likewise.
7117
7118         trunc: Implement result sign according to IEEE 754.
7119         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7120         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7121         * tests/test-trunc2.c: Include minus-zero.h.
7122         (MINUS_ZERO): New macro.
7123         (trunc_reference): Keep in sync with lib/trunc.c.
7124         * tests/test-truncf2.c: Include minus-zero.h.
7125         (MINUS_ZERO): New macro.
7126         (truncf_reference): Keep in sync with lib/trunc.c.
7127         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7128         * tests/test-trunc-ieee.c (main): Likewise.
7129         * tests/test-truncl-ieee.c (main): Likewise.
7130
7131         ceil: Implement result sign according to IEEE 754.
7132         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7133         (FUNC): Return -0.0 for -1 < x < 0.
7134         * tests/test-ceil2.c: Include minus-zero.h.
7135         (MINUS_ZERO): New macro.
7136         (ceil_reference): Keep in sync with lib/ceil.c.
7137         * tests/test-ceilf2.c: Include minus-zero.h.
7138         (MINUS_ZERO): New macro.
7139         (ceilf_reference): Keep in sync with lib/ceil.c.
7140         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7141         * tests/test-ceil-ieee.c (main): Likewise.
7142         * tests/test-ceill-ieee.c (main): Likewise.
7143
7144         floor: Implement result sign according to IEEE 754.
7145         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7146         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7147         * tests/test-floorf2.c (floorf_reference): Likewise.
7148         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7149         * tests/test-floor-ieee.c (main): Likewise.
7150         * tests/test-floorl-ieee.c (main): Likewise.
7151
7152 2010-12-22  Bruno Haible  <bruno@clisp.org>
7153
7154         getaddrinfo: Update doc.
7155         * doc/posix-functions/gai_strerror.texi: Return type is also different
7156         on AIX and HP-UX.
7157
7158 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7159
7160         getaddrinfo, inet_ntop: Update doc for Solaris.
7161         * doc/posix-functions/gai_strerror.texi: Return type is also an
7162         issue on Solaris 9 and earlier.
7163         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7164         on Solaris 10 and earlier.
7165
7166 2010-12-21  Bruno Haible  <bruno@clisp.org>
7167
7168         New module 'roundl-ieee'.
7169         * modules/roundl-ieee: New file.
7170         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7171         test whether roundl works according to ISO C 99 with IEC 60559.
7172         * m4/roundl-ieee.m4: New file.
7173         * modules/roundl-ieee-tests: New file.
7174         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7175         * tests/test-roundl.c (main): Remove signbit tests.
7176         * modules/roundl-tests (Depends-on): Remove signbit.
7177         * doc/posix-functions/roundl.texi: Mention the new module.
7178
7179 2010-12-21  Bruno Haible  <bruno@clisp.org>
7180
7181         New module 'truncl-ieee'.
7182         * modules/truncl-ieee: New file.
7183         * modules/truncl-ieee-tests: New file.
7184         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7185         * tests/test-truncl.c (main): Remove signbit tests.
7186         * modules/truncl-tests (Depends-on): Remove signbit.
7187         * doc/posix-functions/truncl.texi: Mention the new module.
7188
7189 2010-12-21  Bruno Haible  <bruno@clisp.org>
7190
7191         New module 'ceill-ieee'.
7192         * modules/ceill-ieee: New file.
7193         * modules/ceill-ieee-tests: New file.
7194         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7195         * tests/test-ceill.c (main): Remove signbit tests.
7196         * modules/ceill-tests (Depends-on): Remove signbit.
7197         * doc/posix-functions/ceill.texi: Mention the new module.
7198
7199 2010-12-21  Bruno Haible  <bruno@clisp.org>
7200
7201         New module 'floorl-ieee'.
7202         * modules/floorl-ieee: New file.
7203         * modules/floorl-ieee-tests: New file.
7204         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7205         * tests/test-floorl.c (main): Remove signbit tests.
7206         * modules/floorl-tests (Depends-on): Remove signbit.
7207         * doc/posix-functions/floorl.texi: Mention the new module.
7208
7209 2010-12-21  Bruno Haible  <bruno@clisp.org>
7210
7211         New module 'round-ieee'.
7212         * modules/round-ieee: New file.
7213         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7214         whether round works according to ISO C 99 with IEC 60559.
7215         * m4/round-ieee.m4: New file.
7216         * modules/round-ieee-tests: New file.
7217         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7218         * tests/test-round1.c (main): Remove signbit tests.
7219         * modules/round-tests (Depends-on): Remove 'signbit'.
7220         * doc/posix-functions/round.texi: Mention the new module.
7221
7222 2010-12-21  Bruno Haible  <bruno@clisp.org>
7223
7224         New module 'trunc-ieee'.
7225         * modules/trunc-ieee: New file.
7226         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7227         whether trunc works according to ISO C 99 with IEC 60559.
7228         * m4/trunc-ieee.m4: New file.
7229         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7231         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7232         * modules/trunc-ieee-tests: New file.
7233         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7234         * tests/test-trunc1.c (main): Remove signbit tests.
7235         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7236         * doc/posix-functions/trunc.texi: Mention the new module.
7237
7238 2010-12-21  Bruno Haible  <bruno@clisp.org>
7239
7240         New module 'ceil-ieee'.
7241         * modules/ceil-ieee: New file.
7242         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7243         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7244         ISO C 99 with IEC 60559.
7245         * m4/ceil-ieee.m4: New file.
7246         * modules/ceil (Files): Add lib/ceil.c.
7247         (Depends-on): Add 'float'.
7248         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7249         * lib/math.in.h (ceil): New declaration.
7250         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7251         REPLACE_CEIL.
7252         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7253         * modules/ceil-ieee-tests: New file.
7254         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7255         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7256         * doc/posix-functions/ceil.texi: Mention the new module.
7257
7258 2010-12-21  Bruno Haible  <bruno@clisp.org>
7259
7260         New module 'floor-ieee'.
7261         * modules/floor-ieee: New file.
7262         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7263         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7264         ISO C 99 with IEC 60559.
7265         * m4/floor-ieee.m4: New file.
7266         * modules/floor (Files): Add lib/floor.c.
7267         (Depends-on): Add 'float'.
7268         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7269         * lib/math.in.h (floor): New declaration.
7270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7271         REPLACE_FLOOR.
7272         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7273         * modules/floor-ieee-tests: New file.
7274         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7275         * tests/test-math-c++.cc: Check the signature of 'floor'.
7276         * doc/posix-functions/floor.texi: Mention the new module.
7277
7278 2010-12-21  Bruno Haible  <bruno@clisp.org>
7279
7280         New module 'roundf-ieee'.
7281         * modules/roundf-ieee: New file.
7282         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7283         test whether roundf works according to ISO C 99 with IEC 60559.
7284         * m4/roundf-ieee.m4: New file.
7285         * modules/roundf-ieee-tests: New file.
7286         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7287         * tests/test-roundf1.c (main): Remove signbit tests.
7288         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7289         * doc/posix-functions/roundf.texi: Mention the new module.
7290
7291 2010-12-21  Bruno Haible  <bruno@clisp.org>
7292
7293         New module 'truncf-ieee'.
7294         * modules/truncf-ieee: New file.
7295         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7296         test whether truncf works according to ISO C 99 with IEC 60559.
7297         * m4/truncf-ieee.m4: New file.
7298         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7300         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7301         * modules/truncf-ieee-tests: New file.
7302         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7303         * tests/test-truncf1.c (main): Remove signbit tests.
7304         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7305         * doc/posix-functions/truncf.texi: Mention the new module.
7306
7307 2010-12-21  Bruno Haible  <bruno@clisp.org>
7308
7309         New module 'ceilf-ieee'.
7310         * modules/ceilf-ieee: New file.
7311         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7312         test whether ceilf works according to ISO C 99 with IEC 60559.
7313         * m4/ceilf-ieee.m4: New file.
7314         * modules/ceilf-ieee-tests: New file.
7315         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7316         * tests/test-ceilf1.c (main): Remove signbit tests.
7317         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7318         * doc/posix-functions/ceilf.texi: Mention the new module.
7319
7320 2010-12-21  Bruno Haible  <bruno@clisp.org>
7321
7322         New module 'floorf-ieee'.
7323         * modules/floorf-ieee: New file.
7324         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7325         test whether floorf works according to ISO C 99 with IEC 60559.
7326         * m4/floorf-ieee.m4: New file.
7327         * modules/floorf-ieee-tests: New file.
7328         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7329         * tests/test-floorf1.c (main): Remove signbit tests.
7330         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7331         * doc/posix-functions/floorf.texi: Mention the new module.
7332
7333 2010-12-21  Bruno Haible  <bruno@clisp.org>
7334
7335         Support for minus zero in autoconf macros.
7336         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7337         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7338         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7339         * tests/minus-zero.h: Update comments.
7340
7341 2010-12-21  Bruno Haible  <bruno@clisp.org>
7342
7343         Tests for module 'ceil'.
7344         * modules/ceil-tests: New file.
7345         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7346         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7347
7348 2010-12-21  Bruno Haible  <bruno@clisp.org>
7349
7350         Tests for module 'floor'.
7351         * modules/floor-tests: New file.
7352         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7353         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7354
7355 2010-12-21  Bruno Haible  <bruno@clisp.org>
7356
7357         math: Fix indentation.
7358         * lib/math.in.h (floorf): Fix indentation.
7359
7360 2010-12-21  Bruno Haible  <bruno@clisp.org>
7361
7362         Fix cross-compilation guesses on Solaris.
7363         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7364         not match "solaris2.10".
7365         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7366         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7367         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7368
7369 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7370
7371         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7372         This fixes a problem observed with the latest coreutils snapshot
7373         that caused a test to fail on Solaris 8.  src/csplit.c's call
7374         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7375         earlier, instead of returning the number of bytes that would have
7376         been generated; this causes csplit to incorrectly report memory
7377         exhaustion.
7378         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7379         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7380         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7381         comments to match.
7382         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7383         Fix typo in matching older versions of Solaris: "solaris2.10"
7384         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7385         only for guessing while cross-compiling.
7386         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7387
7388 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7389
7390         ftoastr: fix comment again
7391         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7393         Also, simplify example a bit by using flags = 0.
7394
7395 2010-12-20  Bruno Haible  <bruno@clisp.org>
7396
7397         round*, trunc*: Update documentation regarding glibc.
7398         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7399         * doc/posix-functions/round.texi: Likewise.
7400         * doc/posix-functions/roundl.texi: Likewise.
7401         * doc/posix-functions/truncf.texi: Likewise.
7402         * doc/posix-functions/trunc.texi: Likewise.
7403         * doc/posix-functions/truncl.texi: Likewise.
7404
7405 2010-12-20  Bruno Haible  <bruno@clisp.org>
7406
7407         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7408         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7409         * doc/posix-functions/round.texi: Likewise.
7410         * doc/posix-functions/roundl.texi: Likewise.
7411
7412 2010-12-20  Bruno Haible  <bruno@clisp.org>
7413
7414         ttyname_r: Add missing declaration on HP-UX 11.
7415         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7416         HAVE_TTYNAME_R.
7417         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7418         declared. Set HAVE_TTYNAME_R always.
7419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7420         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7421         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7422         HAVE_TTYNAME_R.
7423         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7424
7425 2010-12-20  Bruno Haible  <bruno@clisp.org>
7426
7427         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7428         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7429         * doc/posix-functions/getlogin_r.texi: Likewise.
7430         * tests/test-getlogin.c: Include <errno.h>.
7431         (main): Avoid test failure on HP-UX 11.11.
7432         * tests/test-getlogin_r.c (main): Likewise.
7433
7434 2010-12-20  Bruno Haible  <bruno@clisp.org>
7435
7436         getlogin_r: Add missing declaration on HP-UX 11.
7437         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7438         declared also when it exists as a function.
7439         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7440
7441 2010-12-20  Bruno Haible  <bruno@clisp.org>
7442
7443         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7444         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7445         through wcrtomb.
7446
7447 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7448
7449         ftoastr: fix comment
7450         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7451         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7452
7453 2010-12-19  Bruno Haible  <bruno@clisp.org>
7454
7455         isnan: Ensure it is a macro.
7456         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7457         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7458         Solaris.
7459
7460 2010-12-19  Bruno Haible  <bruno@clisp.org>
7461
7462         ldexpl test: Fix link error on OSF/1 5.1.
7463         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7464
7465 2010-12-19  Bruno Haible  <bruno@clisp.org>
7466
7467         wctype: Make it work in C++ mode on OSF/1 5.1.
7468         * lib/wctype.in.h (iswblank): Declare but not define here.
7469         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7470         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7471         * modules/wctype (Files): Add lib/iswblank.c.
7472
7473 2010-12-19  Bruno Haible  <bruno@clisp.org>
7474
7475         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7476         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7477         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7478
7479 2010-12-19  Bruno Haible  <bruno@clisp.org>
7480
7481         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7483         _POSIX_PII_SOCKET.
7484         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7485         * doc/posix-functions/recvfrom.texi: Likewise.
7486         * doc/posix-functions/send.texi: Likewise.
7487         * doc/posix-functions/sendto.texi: Likewise.
7488
7489 2010-12-19  Bruno Haible  <bruno@clisp.org>
7490
7491         tcgetsid: Add missing declaration on OSF/1 5.1.
7492         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7493         HAVE_TCGETSID.
7494         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7495         Don't set HAVE_TCGETSID.
7496         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7497         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7498         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7499         HAVE_TCGETSID.
7500         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7501
7502 2010-12-19  Bruno Haible  <bruno@clisp.org>
7503
7504         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7505         * lib/stdio.in.h: During the include_next statement, let recursive
7506         includes of this file include only the system header file.
7507
7508 2010-12-19  Bruno Haible  <bruno@clisp.org>
7509
7510         iconv_open: Fix regression from 2010-12-04.
7511         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7512         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7513
7514 2010-12-19  Bruno Haible  <bruno@clisp.org>
7515
7516         stdbool test: Avoid a gcc warning.
7517         * tests/test-stdbool.c (main): Fail if e1 is false.
7518         Reported by Jim Meyering.
7519
7520 2010-12-19  Jim Meyering  <meyering@redhat.com>
7521
7522         setenv: restore to working order
7523         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7524         mistakenly removed.
7525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7526         HAVE_SETENV.
7527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7528         HAVE_SETENV.
7529
7530 2010-12-19  Bruno Haible  <bruno@clisp.org>
7531
7532         Document some different function declarations on OSF/1 5.1.
7533         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7534         * doc/posix-functions/inet_ntop.texi: Likewise.
7535         * doc/posix-functions/gethostname.texi: Likewise.
7536         * lib/unistd.in.h (gethostname): Update comment.
7537
7538 2010-12-19  Bruno Haible  <bruno@clisp.org>
7539
7540         doc: Mention vasprintf-posix module.
7541         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7542         the 'vasprintf-posix' module.
7543         * doc/glibc-functions/vasprintf.texi: Likewise.
7544
7545 2010-12-19  Bruno Haible  <bruno@clisp.org>
7546
7547         unsetenv: Add missing declaration on OSF/1 5.1.
7548         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7549         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7550         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7552         not HAVE_UNSETENV.
7553         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7554         HAVE_UNSETENV.
7555         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7556
7557 2010-12-19  Bruno Haible  <bruno@clisp.org>
7558
7559         setenv: Add missing declaration on OSF/1 5.1.
7560         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7561         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7562         declared. Don't set HAVE_SETENV.
7563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7564         not HAVE_SETENV.
7565         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7566         HAVE_SETENV.
7567         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7568
7569 2010-12-19  Bruno Haible  <bruno@clisp.org>
7570
7571         nl_langinfo tests: Avoid gcc warning.
7572         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7573
7574 2010-12-19  Bruno Haible  <bruno@clisp.org>
7575
7576         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7577         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7578         _GL_CXXALIAS_SYS.
7579
7580 2010-12-19  Bruno Haible  <bruno@clisp.org>
7581
7582         stdbool: Relax test.
7583         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7584         address to 'bool' work in static initializer, for compilers other than
7585         GCC.
7586
7587 2010-12-19  Bruno Haible  <bruno@clisp.org>
7588
7589         ftello: Add missing declaration on OSF/1 5.1.
7590         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7591         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7593         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7594         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7595
7596 2010-12-19  Bruno Haible  <bruno@clisp.org>
7597
7598         fseeko: Add missing declaration on OSF/1 5.1.
7599         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7602         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7603         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7604
7605 2010-12-19  Bruno Haible  <bruno@clisp.org>
7606
7607         fchdir: Add missing declaration on OSF/1 5.1.
7608         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7609         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7610         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7611         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7612         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7613
7614 2010-12-19  Bruno Haible  <bruno@clisp.org>
7615
7616         relocatable-prog-wrapper: Separate from relocatable-prog.
7617         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7618         uninstall-relocwrapper rule here.
7619         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7620         Reported by Ian Beckwith <ianb@erislabs.net>.
7621
7622 2010-12-19  Bruno Haible  <bruno@clisp.org>
7623
7624         unistr/u8-mbsnlen: Add missing dependency.
7625         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7626         Reported by Ian Beckwith <ianb@erislabs.net>.
7627
7628 2010-12-19  Bruno Haible  <bruno@clisp.org>
7629
7630         iconv: Make it possible again to use this module without 'iconv-h'.
7631         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7632         if it is not defined.
7633         Reported by Ian Beckwith <ianb@erislabs.net>.
7634
7635 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7636
7637         acl: port to Solaris 8 when copying from tmpfs to ufs
7638         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7639         error number.  Problem observed on Solaris 8 with latest
7640         coreutils, with "mv A B", where A is on a tmpfs file system and B
7641         is on a ufs file system.  This caused coreutils' mv/part-symlink
7642         test to fail.
7643
7644         tests: set fail=0 at start
7645         * tests/init.sh (setup_): Move fail=0 initialization here ...
7646         (mktempd_): ... from here, so that tests can rely on fail being
7647         set to 0 initially.  This fixes a problem in coreutils; see:
7648         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7649
7650 2010-12-18  Bruno Haible  <bruno@clisp.org>
7651
7652         memmem-simple: Stylistic changes.
7653         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7654         Fix preprocessor directive indentation.
7655
7656 2010-12-15  Pádraig Brady <P@draigBrady.com>
7657
7658         memmem, memmem-simple: reorganize and expand empty needle check
7659         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7660         functional checks to memmem-simple so that one has a fully functional
7661         memmem by using just this module.
7662         Restrict the performance only check to the memmem module.
7663         Also expand the empty needle check to ensure the correct
7664         pointer is returned, not just a non NULL pointer.
7665         * doc/glibc-functions/memmem.texi: Rearrange the portability
7666         documentation to correlate with the rearranged checks.
7667         Clarify exactly how the memmem and memmem-simple modules
7668         relate to each other.
7669
7670 2010-12-15  Pádraig Brady <P@draigBrady.com>
7671             Bruno Haible  <bruno@clisp.org>
7672
7673         Improve cross-compilation guesses for uClibc.
7674         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7675         that uClibc does not have the glibc bug.
7676         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7677         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7678
7679 2010-12-14  Eric Blake  <eblake@redhat.com>
7680
7681         configmake: provide fallbacks for oldest supported autotools
7682         * m4/configmake.m4: New file.
7683         * modules/configmake (Files): Ship it.
7684         (configure.ac): Use it to guarantee fallbacks.
7685
7686 2010-12-13  Pádraig Brady <P@draigBrady.com>
7687
7688         read-file: Improve handling of large files
7689         * lib/read-file.c (fread_file): Minimize realloc()s
7690         for regular files, and better manage sizes around SIZE_MAX.
7691
7692 2010-12-13  Eric Blake  <eblake@redhat.com>
7693
7694         cloexec, fcntl: relax license
7695         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7696         consent from all contributors.
7697         * modules/fcntl (License): Likewise.
7698
7699 2010-12-10  Bruno Haible  <bruno@clisp.org>
7700
7701         Tests for module 'pipe-posix'.
7702         * modules/pipe-posix-tests: New file.
7703         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7704
7705 2010-12-10  Bruno Haible  <bruno@clisp.org>
7706
7707         pipe-posix: Make it work in C++ mode.
7708         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7709         (pipe): Use common idiom, not a macro definition.
7710         * lib/pipe.c: New file.
7711         * m4/pipe.m4: New file.
7712         * modules/pipe-posix (Description): Enhance.
7713         (Files): Add lib/pipe.c, m4/pipe.m4.
7714         (configure.ac): Invoke gl_FUNC_PIPE.
7715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7716         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7717         * tests/test-unistd-c++.cc: Check the signature of pipe.
7718
7719 2010-12-10  Bruno Haible  <bruno@clisp.org>
7720
7721         Rename module 'pipe' to 'spawn-pipe'.
7722         * modules/spawn-pipe: New file, renamed from modules/pipe.
7723         (Files, configure.ac, Makefile.am): Update.
7724         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7725         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7726         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7727         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7728         "spawn-pipe.h" instead of "pipe.h".
7729         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7730         to gl_SPAWN_PIPE.
7731         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7732         (Files, Makefile.am): Update.
7733         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7734         Update.
7735         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7736         Include "spawn-pipe.h" instead of "pipe.h".
7737         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7738         * lib/javacomp.c: Likewise.
7739         * lib/javaversion.c: Likewise.
7740         * lib/pipe-filter-gi.c: Likewise.
7741         * lib/pipe-filter-ii.c: Likewise.
7742         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7743         * modules/javacomp (Depends-on): Likewise.
7744         * modules/javaversion (Depends-on): Likewise.
7745         * modules/pipe-filter-gi (Depends-on): Likewise.
7746         * modules/pipe-filter-ii (Depends-on): Likewise.
7747         * MODULES.html.sh (Executing programs): Update.
7748         * NEWS: Mention the change.
7749
7750 2010-12-10  Eric Blake  <eblake@redhat.com>
7751
7752         pipe-posix: new module
7753         * modules/pipe-posix: New file.
7754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7755         (gl_UNISTD_H): Check for declaration.
7756         * modules/unistd (Makefile.am): Substitute it.
7757         * lib/unistd.in.h (pipe): Provide it for mingw.
7758         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7759         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7760
7761 2010-12-07  Bruno Haible  <bruno@clisp.org>
7762
7763         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7764         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7765         u8_strcmp_gnu.
7766         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7767
7768 2010-12-06  Bruno Haible  <bruno@clisp.org>
7769
7770         Update internal documentation.
7771         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7772
7773 2010-12-04  Bruno Haible  <bruno@clisp.org>
7774
7775         Put more information about failed tests into the test return codes.
7776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7777         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7778         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7779         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7780         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7781         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7782         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7783         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7784         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7785         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7786         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7787         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7788         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7789         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7790         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7791         returns a bit mask.
7792         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7793         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7794         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7795         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7796         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7797         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7799         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7800         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7801         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7802         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7803         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7804         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7805         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7806         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7807         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7808         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7809         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7810         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7811         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7812         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7813         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7815         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7816         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7817         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7818         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7819         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7820         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7821         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7822         gl_PRINTF_PRECISION): Likewise.
7823         * m4/regex.m4 (gl_REGEX): Likewise.
7824         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7825         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7826         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7827         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7828         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7829         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7830         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7831         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7832         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7833         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7834         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7835         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7836         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7837         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7838         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7839         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7840         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7841         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7843         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7844         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7845         enumerated value.
7846         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7847
7848 2010-12-04  Bruno Haible  <bruno@clisp.org>
7849
7850         Update for Solaris 11 2010-11.
7851         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7852         Express, released in November 2010.
7853
7854 2010-12-04  Bruno Haible  <bruno@clisp.org>
7855
7856         nproc: Relax license.
7857         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7858         and Paul Eggert.
7859         Requested by Ludovic Courtès <ludo@gnu.org>.
7860
7861 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7862
7863         utimecmp: fine-grained src to nearby coarse-grained dest
7864
7865         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7866         and the source is on a file system with higher-resolution time
7867         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7868         not work, and the time stamps are close together, the algorithm to
7869         determine the exact resolution from the read-back mtime was buggy:
7870         it had a "!=" where it should have had an "==".  This bug has been
7871         in the code ever since it was introduced to gnulib.
7872         Problem reported by Dan Jacobson in
7873         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7874
7875 2010-11-30  Bruno Haible  <bruno@clisp.org>
7876
7877         strerror_r-posix: Fix autoconf test.
7878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7879
7880 2010-11-28  Bruno Haible  <bruno@clisp.org>
7881             Paul Eggert  <eggert@cs.ucla.edu>
7882
7883         Tests for module 'getdomainname'.
7884         * modules/getdomainname-tests: New file.
7885         * tests/test-getdomainname.c: New file, based on
7886         tests/test-gethostname.c.
7887
7888 2010-11-28  Bruno Haible  <bruno@clisp.org>
7889             Paul Eggert  <eggert@cs.ucla.edu>
7890
7891         getdomainname: Use the system function when possible.
7892         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7893         (getdomainname): Replace if needed. Provide the declaration if it is
7894         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7895         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7896         (getdomainname): When the system has getdomainname, call the system
7897         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7898         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7899         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7900         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7901         the function if its second argument is of type 'int' or if it is found
7902         in libnsl.
7903         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7904         <sys/systeminfo.h> and sysinfo().
7905         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7907         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7908         HAVE_GETDOMAINNAME.
7909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7910         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7911         * doc/glibc-functions/getdomainname.texi: Document the problems with
7912         the getdomainname declaration.
7913
7914 2010-11-28  Bruno Haible  <bruno@clisp.org>
7915
7916         sys_socket: Ensure ss_family field on AIX.
7917         * lib/sys_socket.in.h (ss_family): New macro definition.
7918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7919         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7920         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7921         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7922         * modules/sys_socket (Makefile.am): Substitute
7923         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7924         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7925
7926 2010-11-27  Bruno Haible  <bruno@clisp.org>
7927
7928         readline: Improve configure output.
7929         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7930         "checking for readline..." result understandable.
7931
7932 2010-11-27  Bruno Haible  <bruno@clisp.org>
7933
7934         *printf-posix: Detect a bug on Solaris 10/x86.
7935         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7936         for floating-point output.
7937         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7938         directive.
7939         * tests/test-snprintf-posix.h (test_function): Likewise.
7940         * tests/test-sprintf-posix.h (test_function): Likewise.
7941         * tests/test-vasprintf-posix.c (test_function): Likewise.
7942         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7943         * doc/posix-functions/printf.texi: Likewise.
7944         * doc/posix-functions/snprintf.texi: Likewise.
7945         * doc/posix-functions/sprintf.texi: Likewise.
7946         * doc/posix-functions/vfprintf.texi: Likewise.
7947         * doc/posix-functions/vprintf.texi: Likewise.
7948         * doc/posix-functions/vsnprintf.texi: Likewise.
7949         * doc/posix-functions/vsprintf.texi: Likewise.
7950         * doc/glibc-functions/obstack_printf.texi: Likewise.
7951         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7952
7953 2010-11-27  Bruno Haible  <bruno@clisp.org>
7954
7955         Fix link error when module libunistring-optional is in use.
7956         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7957         * modules/striconveha-tests (Makefile.am): Likewise.
7958
7959 2010-11-27  Bruno Haible  <bruno@clisp.org>
7960
7961         regex: Mention link dependencies.
7962         * modules/regex (Link): New section.
7963         * modules/rpmatch (Link): Likewise.
7964         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7965
7966 2010-11-27  Bruno Haible  <bruno@clisp.org>
7967
7968         ftoastr: Fix compilation error on Solaris.
7969         * lib/ftoastr.c: Include <config.h>.
7970
7971 2010-11-27  Bruno Haible  <bruno@clisp.org>
7972
7973         getloadavg: Update documentation.
7974         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7975
7976 2010-11-27  Bruno Haible  <bruno@clisp.org>
7977
7978         sys_socket: Fix test whether the functions are declared.
7979         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7980         not <sys/select.h>.
7981
7982 2010-11-27  Bruno Haible  <bruno@clisp.org>
7983
7984         getpass: Make sure to get system declaration on some platforms.
7985         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7986         gl_USE_SYSTEM_EXTENSIONS.
7987         * modules/getpass (Depends-on): Add extensions.
7988
7989 2010-11-26  Bruno Haible  <bruno@clisp.org>
7990
7991         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7992         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7993         'iconv' module is present.
7994         (ICONV_CONST): New macro.
7995         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7996         ICONV_CONST.
7997         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7998         set ICONV_CONST.
7999         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
8000         here.
8001         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
8002         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
8003         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
8004         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
8005         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
8006         present.
8007
8008 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
8009
8010         ftoastr: comment fix
8011         * lib/ftoastr.c: "little" -> "little or no" in comment
8012
8013 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
8014
8015         stdint: port to GCC 4.3 + OSX + Octave
8016         On this platform, stdint.h is buggy and defines int64_t to long
8017         long int.  The replacement defined it to long int, causing
8018         problems with C++ style name mangling.  Instead, trust the system
8019         definition if INT64_MAX is defined, and likewise for the unsigned
8020         variant.   Problem reported by Jarno Rajahalme in
8021         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
8022         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
8023         and don't mess with int64_t and INT64_MAX in this case.
8024         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
8025
8026 2010-11-24  Bruno Haible  <bruno@clisp.org>
8027
8028         doc: Corrections regarding MacOS X 10.4 and 10.5.
8029         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
8030         MacOS X.
8031         Reported by Simon Josefsson.
8032
8033 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
8034
8035         Uninstall ".bin" files installed by relocwrapper.
8036         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
8037         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
8038         unless it is already there.
8039
8040 2010-11-21  Bruno Haible  <bruno@clisp.org>
8041
8042         Update for NetBSD 5.0.
8043         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8044         NetBSD; the test fails on NetBSD 5.0.
8045         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8046         about NetBSD.
8047
8048 2010-11-21  Bruno Haible  <bruno@clisp.org>
8049
8050         Update for HP-UX 11.23 and HP-UX 11.31.
8051         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
8052         HP-UX.
8053
8054 2010-11-21  Bruno Haible  <bruno@clisp.org>
8055
8056         Update for MacOS X 10.5.
8057         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8058         MacOS X; the test fails on MacOS X 10.5.8.
8059         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8060         about MacOS X.
8061
8062 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8063
8064         bootstrap: add bootstrap_sync option.
8065         See discussion at
8066         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8067         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8068         * build-aux/bootstrap: Accept --bootstrap-sync to update
8069         bootstrap if it is not identical to the local gnulib's
8070         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8071         enable this by default.  Accept --no-bootstrap-sync to disable
8072         it.
8073
8074 2010-11-20  Bruno Haible  <bruno@clisp.org>
8075
8076         Ensure that <features.h> is included before __GLIBC__ is tested.
8077         * lib/printf-parse.h: Include <features.h>.
8078         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8079         Reported by Mike Frysinger <vapier@gentoo.org>.
8080
8081         Ensure that <features.h> is included before __GLIBC__ is tested.
8082         * lib/wchar.in.h: Include <features.h>.
8083         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8084         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8085         Reported by Mike Frysinger <vapier@gentoo.org>.
8086
8087         Ensure that <features.h> is included before __GLIBC__ is tested.
8088         * lib/arpa_inet.in.h: Include <features.h>.
8089         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8090         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8091         Reported by Mike Frysinger <vapier@gentoo.org>.
8092
8093         Ensure that <features.h> is included before __GLIBC__ is tested.
8094         * build-aux/link-warning.h: Include <features.h>.
8095         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8096         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8097         Reported by Mike Frysinger <vapier@gentoo.org>.
8098
8099         Ensure that <features.h> is included before __GLIBC__ is tested.
8100         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8101         Reported by Mike Frysinger <vapier@gentoo.org>.
8102
8103 2010-11-20  Bruno Haible  <bruno@clisp.org>
8104
8105         memmem: Fix autoconf test.
8106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8107
8108 2010-11-20  Bruno Haible  <bruno@clisp.org>
8109
8110         Port to uClibc.
8111         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8112         * lib/fcntl.in.h: Likewise.
8113         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8114         * lib/mbrtowc.c (mbrtowc): Likewise.
8115         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8116         * lib/strerror_r.c: Likewise.
8117         * lib/unistr/u8-strnlen.c: Likewise.
8118         * lib/vasnprintf.c (decimal_point_char): Likewise.
8119         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8120         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8121         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8122         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8123         * tests/test-sigaction.c (handler, main): Likewise.
8124         * lib/freading.h: Treat uClibc like a non-glibc platform.
8125         * lib/freading.c: Likewise.
8126         * lib/gettext.h: Likewise.
8127         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8128         Likewise.
8129         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8130         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8131         * lib/propername.c (proper_name_utf8): Likewise.
8132         * lib/spawn.in.h: Likewise.
8133         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8134         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8135         mem_cd_iconveh_internal): Likewise.
8136         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8137         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8138         strstr, strcasestr): Likewise.
8139         * lib/unicodeio.c (unicode_to_mb): Likewise.
8140         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8141         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8142         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8143         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8144         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8145         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8146         * lib/unistr/u8-stpncpy.c: Likewise.
8147         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8148         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8149         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8150         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8151         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8152         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8153         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8154         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8155         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8156         Likewise.
8157         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8158         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8159         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8160         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8161         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8162         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8163         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8164         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8165         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8166         * tests/test-striconveha.c (main): Likewise.
8167         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8168         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8169         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8170         * doc/posix-functions/getline.texi: Likewise.
8171         Reported by Mike Frysinger <vapier@gentoo.org>.
8172
8173 2010-11-20  Bruno Haible  <bruno@clisp.org>
8174
8175         nproc: Fix condition.
8176         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8177         HAVE_PTHREAD_AFFINITY_NP.
8178
8179 2010-11-20  Bruno Haible  <bruno@clisp.org>
8180
8181         Fix a comment.
8182         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8183
8184 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8185
8186         ftoastr: don't assume snprintf
8187         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8188         Implement a subset of snprintf here, by using sprintf safely.
8189         * modules/ftoastr (Depends-on): Remove snprintf.
8190
8191 2010-11-19  Jim Meyering  <meyering@redhat.com>
8192
8193         test-rename.h: fix compilation failure
8194         * tests/test-rename.h (test_rename): Add omitted "}".
8195
8196 2010-11-17  Jim Meyering  <meyering@redhat.com>
8197
8198         maint.mk: add a URL discussing the no-@acronym policy
8199         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8200
8201 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8202
8203         ftoastr: depend on snprintf, improve comments
8204         * lib/ftoastr.c: Also mention Loitsch's draft.
8205         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8206         needed in the current implementation, but it might simplify
8207         speeding up the code later.
8208         * modules/ftoastr: Depend on snprintf; this improves portability.
8209         Suggested by Bruno Haible in the same email.
8210
8211         ftoastr: port to hosts lacking strtof and strtold
8212         Problem reported by Bruno Haible in
8213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8214         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8215         environment and strtold (and presumably strtof) are not available.
8216         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8217         (configure.ac): Require gl_C99_STRTOLD.
8218
8219 2010-11-18  Bruno Haible  <bruno@clisp.org>
8220
8221         c-strtold: Avoid link error on AIX 7.
8222         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8223         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8224         (gl_C_STRTOLD): Test whether strtold_l exists.
8225         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8226
8227 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         intprops: new macro INT_BITS_STRLEN_BOUND
8230         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8231         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8232         not exposed.  Also, it uses a slightly tighter bound than before;
8233         though this makes no practical difference, we might as well be as
8234         tight as we easily can.
8235
8236         ftoastr: new module, for lossless conversion of floats to short strings
8237         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8238         * modules/ftoastr: New files.
8239
8240 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8241
8242         bootstrap: port to Solaris sed
8243         * build-aux/bootstrap (get_version): Port to Solaris sed.
8244         See Ralf Wildenhues's note in
8245         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8246
8247 2010-11-14  Jim Meyering  <meyering@redhat.com>
8248
8249         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8250         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8251         and move definition closer to sole use.
8252
8253 2010-11-13  Jim Meyering  <meyering@redhat.com>
8254
8255         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8256         Now we require at least autoconf-2.59, which means the work-around
8257         is no longer needed.
8258         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8259         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8260         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8261         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8262         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8263
8264 2010-11-13  Bruno Haible  <bruno@clisp.org>
8265
8266         rename, renameat: Avoid test failures at NFS mounted locations.
8267         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8268         functions.
8269         (test_rename): Use assert_nonexistent.
8270         * tests/test-rename.c: Include <dirent.h>.
8271         * tests/test-renameat.c: Likewise.
8272         Reported by Gary V. Vaughan <gary@gnu.org>.
8273
8274         rename, renameat: Document Linux bug with NFS
8275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8276         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8277         * doc/posix-functions/renameat.texi: Likewise.
8278         Suggested by Eric Blake.
8279
8280 2010-11-13  Bruno Haible  <bruno@clisp.org>
8281
8282         rename test: Add comments.
8283         * tests/test-rename.h (test_rename): Add structure and comments.
8284
8285 2010-11-13  Eric Blake  <eblake@redhat.com>
8286
8287         maintainer-makefile: cover a few more files
8288         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8289         scripts generated within C files, for libvirt.
8290
8291 2010-11-13  Bruno Haible  <bruno@clisp.org>
8292
8293         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8294         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8295         character, return the number of bytes that belong together, not always
8296         1.
8297         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8298         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8299         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8300         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8301         number of bytes of an invalid character.
8302         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8303         (main): Invoke it.
8304         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8305         results.
8306         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8307         malformed byte sequences.
8308         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8309         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8310         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8311         Reported by Ben Pfaff and Paolo Bonzini.
8312
8313 2010-11-13  Bruno Haible  <bruno@clisp.org>
8314
8315         openat: Work around glibc bug with fchownat() and empty file names.
8316         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8317         (gl_FUNC_FCHOWNAT): Invoke it.
8318         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8319         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8320         Reported by Gary V. Vaughan <gary@gnu.org>.
8321
8322 2010-11-13  Bruno Haible  <bruno@clisp.org>
8323
8324         openat: Ensure autoconf macro ordering.
8325         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8326         gl_USE_SYSTEM_EXTENSIONS.
8327         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8328
8329 2010-11-13  Bruno Haible  <bruno@clisp.org>
8330
8331         Update comments.
8332         * lib/unistr/u8-check.c: Update file name in comments.
8333         * lib/unistr/u8-mblen.c: Likewise.
8334         * lib/unistr/u8-prev.c: Likewise.
8335         * lib/unistr/u8-strmblen.c: Likewise.
8336         * lib/unistr/u8-strmbtouc.c: Likewise.
8337
8338 2010-11-13  Jim Meyering  <meyering@redhat.com>
8339
8340         tests: avoid test failure on Solaris 10 due to lack of PATH export
8341         * tests/test-update-copyright.sh: Don't forget to export PATH.
8342
8343         init.sh: ensure that IFS is defined, just in case...
8344         * tests/init.sh (setup_): Ensure that IFS is defined,
8345         so that saving and restoring it works as expected.  This
8346         appears to be useful at least for an old version of dash
8347         from a long time ago (RH 6).  See here for details:
8348         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8349
8350         maint.mk: tighten "test a == b" check
8351         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8352         test to files that contain something like #!/bin/sh.
8353         Without this, coreutils would get two false positives in
8354         the comments of C source files.
8355
8356 2010-11-12  Eric Blake  <eblake@redhat.com>
8357
8358         bootstrap: fix typo in previous attempt
8359         * build-aux/bootstrap (buildreq): Correct the grouping.
8360         Reported by Paul Eggert.
8361
8362         maintainer-makefile: prohibit test x == x
8363         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8364         Based on a report by Matthias Bolte.
8365
8366         bootstrap: allow FreeBSD gzip
8367         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8368         which has no '.' and goes to stderr.
8369         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8370         Reported by Matthias Bolte.
8371
8372         maintainer-makefile: check for i18n setup
8373         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8374         will likely work.
8375
8376 2010-11-12  Bruno Haible  <bruno@clisp.org>
8377
8378         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8379         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8380         * lib/nanosleep.c (nanosleep): Likewise.
8381
8382 2010-11-11  Bruno Haible  <bruno@clisp.org>
8383
8384         fcntl-h: Fix for use of C++ on glibc systems.
8385         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8386         also on glibc systems in C++ mode.
8387         Reported by Gary V. Vaughan <gary@gnu.org>.
8388
8389 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8390
8391         mknod: avoid false failure with dash
8392         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8393
8394 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8395
8396         unlink: Fix "is it should" typo in diagnostic.
8397         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8399
8400 2010-11-11  Bruno Haible  <bruno@clisp.org>
8401
8402         Tests for module 'strerror_r-posix'.
8403         * modules/strerror_r-posix-tests: New file.
8404         * tests/test-strerror_r.c: New file.
8405         * tests/test-string-c++.cc: Check the signature of strerror_r.
8406
8407         New module 'strerror_r-posix'.
8408         * lib/string.in.h (strerror_r): New declaration.
8409         * lib/strerror_r.c: New file.
8410         * m4/strerror_r.m4: New file.
8411         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8412         of strerror_r.
8413         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8414         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8415         * modules/strerror_r-posix: New file.
8416         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8417         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8418         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8419         portability problems.
8420
8421 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8422
8423         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8424         line is also considered for output. Quoted function name in shell
8425         command, so temporary files for functions like MyClass::operator()
8426         are removed correctly without errors.
8427
8428 2010-11-09  Bruno Haible  <bruno@clisp.org>
8429
8430         * doc/posix-functions/strerror.texi: List more failing platforms.
8431
8432         * doc/posix-functions/strerror.texi: Add a comment.
8433
8434 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8435
8436         fdopendir: fix bug on MacOS X when low on file descriptors
8437
8438         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8439         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8440         All callers changed.
8441         (fdopendir): Invoke save_cwd at the top level, not after using
8442         multiple dup() calls to use up file descriptors.  Then retry
8443         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8444         less than the maximum number of open file descriptors, because
8445         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8446         on Mac OS X 10.6.4 for tar 1.24
8447         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8448         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8449         and for tar 1.25
8450         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8451
8452 2010-11-07  Bruno Haible  <bruno@clisp.org>
8453
8454         vasnprintf: Support I flag on glibc systems.
8455         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8456         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8457         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8458         snprintf function.
8459         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8460         glibc systems.
8461         * tests/test-vasnprintf-posix3.c: New file.
8462         * modules/vasnprintf-posix-tests (Files): Add it.
8463         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8464
8465 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8466
8467         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8468         * MODULES.html.sh: For compiler warnings, use name
8469         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8470
8471 2010-11-05  Eric Blake  <eblake@redhat.com>
8472
8473         ceil, floor: avoid spurious failure with icc
8474         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8475         [denormals-as-zero] when optimizing without -mieee-fp option.
8476         * tests/test-floorf2.c (floorf_reference): Likewise.
8477         * tests/test-ceilf1.c (dummy): New function.
8478         (main): Use it to outsmart icc's optimization.
8479         * tests/test-floorf1.c (dummy, main): Likewise.
8480
8481         tests: require working signbit
8482         * modules/ceilf-tests (Depends-on): Add signbit.
8483         * modules/ceill-tests (Depends-on): Likewise.
8484         * modules/floorf-tests (Depends-on): Likewise.
8485         * modules/floorl-tests (Depends-on): Likewise.
8486         * modules/round-tests (Depends-on): Likewise.
8487         * modules/roundf-tests (Depends-on): Likewise.
8488         * modules/roundl-tests (Depends-on): Likewise.
8489         * modules/trunc-tests (Depends-on): Likewise.
8490         * modules/truncf-tests (Depends-on): Likewise.
8491         * modules/truncl-tests (Depends-on): Likewise.
8492
8493         strtod: work around icc bug
8494         * lib/strtod.c (minus_zero): Define to working value.
8495         (strtod): Use it to avoid icc bug.
8496
8497         copysign: enhance tests
8498         * modules/copysign-tests (Files): Add minus-zero.h.
8499         * tests/test-copysign.c (main): Also test zeros.
8500
8501 2010-11-04  Eric Blake  <eblake@redhat.com>
8502
8503         ceil, floor, round, trunc: enhance tests of -0
8504         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8505         * tests/test-ceill.c (main): Likewise.
8506         * tests/test-floorf1.c (main): Likewise.
8507         * tests/test-floorl.c (main): Likewise.
8508         * tests/test-round1.c (main): Likewise.
8509         * tests/test-roundf1.c (main): Likewise.
8510         * tests/test-roundl.c (main): Likewise.
8511         * tests/test-trunc1.c (main): Likewise.
8512         * tests/test-truncf1.c (main): Likewise.
8513         * tests/test-truncl.c (main): Likewise.
8514
8515 2010-11-04  Eric Blake  <eblake@redhat.com>
8516
8517         frexp, tests: work around ICC bug with -zero
8518         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8519         works with more compilers.
8520         * tests/minus-zero.h: New file.
8521         * modules/ceilf-tests (Files): Include it.
8522         * modules/ceill-tests (Files): Likewise.
8523         * modules/floorf-tests (Files): Likewise.
8524         * modules/floorl-tests (Files): Likewise.
8525         * modules/frexp-nolibm-tests (Files): Likewise.
8526         * modules/frexp-tests (Files): Likewise.
8527         * modules/frexpl-nolibm-tests (Files): Likewise.
8528         * modules/frexpl-tests (Files): Likewise.
8529         * modules/isnan-tests (Files): Likewise.
8530         * modules/isnand-nolibm-tests (Files): Likewise.
8531         * modules/isnand-tests (Files): Likewise.
8532         * modules/isnanf-nolibm-tests (Files): Likewise.
8533         * modules/isnanf-tests (Files): Likewise.
8534         * modules/isnanl-nolibm-tests (Files): Likewise.
8535         * modules/isnanl-tests (Files): Likewise.
8536         * modules/round-tests (Files): Likewise.
8537         * modules/roundf-tests (Files): Likewise.
8538         * modules/roundl-tests (Files): Likewise.
8539         * modules/ldexpl-tests (Files): Likewise.
8540         * modules/signbit-tests (Files): Likewise.
8541         * modules/snprintf-posix-tests (Files): Likewise.
8542         * modules/sprintf-posix-tests (Files): Likewise.
8543         * modules/strtod-tests (Files): Likewise.
8544         * modules/trunc-tests (Files): Likewise.
8545         * modules/truncf-tests (Files): Likewise.
8546         * modules/truncl-tests (Files): Likewise.
8547         * modules/vsnprintf-posix-tests (Files): Likewise.
8548         * modules/vsprintf-posix-tests (Files): Likewise.
8549         * modules/vasnprintf-posix-tests (Files): Likewise.
8550         * modules/vasprintf-posix-tests (Files): Likewise.
8551         * tests/test-ceilf1.c (main): Use it.
8552         * tests/test-ceill.c (main): Likewise.
8553         * tests/test-floorf1.c (main): Likewise.
8554         * tests/test-floorl.c (main): Likewise.
8555         * tests/test-frexp.c (main): Likewise.
8556         * tests/test-frexpl.c (main): Likewise.
8557         * tests/test-isnan.c (main): Likewise.
8558         * tests/test-isnand.h (main): Likewise.
8559         * tests/test-isnanf.h (main): Likewise.
8560         * tests/test-isnanl.h (main): Likewise.
8561         * tests/test-ldexpl.c (main): Likewise.
8562         * tests/test-round.c (main): Likewise.
8563         * tests/test-roundf.c (main): Likewise.
8564         * tests/test-roundl.c (main): Likewise.
8565         * tests/test-signbit.c (test_signbitf, test_signbitd)
8566         (test_signbitl): Likewise.
8567         * tests/test-snprintf-posix.h (test_function): Likewise.
8568         * tests/test-sprintf-posix.h (test_function): Likewise.
8569         * tests/test-strtod.c (main): Likewise.
8570         * tests/test-trunc1.c (main): Likewise.
8571         * tests/test-truncf1.c (main): Likewise.
8572         * tests/test-truncl.c (main): Likewise.
8573
8574         isnanl: work around icc bug
8575         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8576
8577 2010-11-03  Eric Blake  <eblake@redhat.com>
8578
8579         tests: fix compiler warnings
8580         * tests/test-getopt.h (test_getopt): Fix condition.
8581         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8582         * tests/test-pipe2.c (main): Likewise.
8583         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8584
8585         utimens: fix broken m4 test
8586         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8587
8588 2010-10-28  Bruno Haible  <bruno@clisp.org>
8589
8590         posix_spawn*, getdtablesize: Relax license.
8591         * modules/posix_spawn (License): Change to LGPLv2+.
8592         * modules/posix_spawnp (License): Likewise.
8593         * modules/posix_spawn-internal (License): Likewise.
8594         * modules/posix_spawnattr_init (License): Likewise.
8595         * modules/posix_spawnattr_getflags (License): Likewise.
8596         * modules/posix_spawnattr_setflags (License): Likewise.
8597         * modules/posix_spawnattr_getpgroup (License): Likewise.
8598         * modules/posix_spawnattr_setpgroup (License): Likewise.
8599         * modules/posix_spawnattr_getschedparam (License): Likewise.
8600         * modules/posix_spawnattr_setschedparam (License): Likewise.
8601         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8602         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8603         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8604         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8605         * modules/posix_spawnattr_getsigmask (License): Likewise.
8606         * modules/posix_spawnattr_setsigmask (License): Likewise.
8607         * modules/posix_spawnattr_destroy (License): Likewise.
8608         * modules/posix_spawn_file_actions_init (License): Likewise.
8609         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8610         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8611         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8612         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8613         * modules/getdtablesize (License): Likewise.
8614         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8615
8616 2010-10-26  Bruno Haible  <bruno@clisp.org>
8617
8618         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8619         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8620         Cygwin and mingw.
8621         Suggested by Eric Blake.
8622
8623 2010-10-26  Bruno Haible  <bruno@clisp.org>
8624
8625         stdio: Work around compilation error due to renameat() on Solaris 10.
8626         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8627         * lib/renameat.c: Don't include <unistd.h> here.
8628         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8629         Reported by Paul Eggert and Eric Blake.
8630
8631 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8632
8633         renameat: port to Solaris 10, which declares renameat in unistd.h
8634
8635         * lib/renameat.c: Include unistd.h before stdio.h, because
8636         Solaris 10 declares renameat in unistd.h.  Problem encountered
8637         when building GNU tar 1.24 on Solaris 10.
8638
8639 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8640
8641         fdopendir: fix C89 compilation
8642         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8643         compilers.
8644
8645 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8646
8647         inttostr: simplify by removing unnecessary redundancy
8648         * lib/anytostr.c: Don't include verify.h.
8649         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8650         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8651         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8652         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8653         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8654         Likewise.
8655         * modules/inttostr (Depends-on): Remove 'verify'.
8656
8657 2010-10-23  Bruno Haible  <bruno@clisp.org>
8658
8659         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8660         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8661         Reported by Eric Blake.
8662
8663 2010-10-23  Bruno Haible  <bruno@clisp.org>
8664
8665         Tests: Fix LOCALE_JA on MirBSD 10.
8666         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8667         to an UTF-8 locale.
8668         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8669         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8670         Reported by Eric Blake.
8671
8672 2010-10-21  Bruno Haible  <bruno@clisp.org>
8673
8674         nl_langinfo test: Avoid test failure on NetBSD 5.
8675         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8676         Reported by Eric Blake.
8677
8678 2010-10-21  Eric Blake  <eblake@redhat.com>
8679
8680         c-stack: work around libsigsegv 2.8 bug
8681         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8682         overflow on at least PowerPC64.
8683
8684 2010-10-17  Bruno Haible  <bruno@clisp.org>
8685
8686         userspec: Drop redundant file.
8687         * modules/userspec (Files): Remove lib/inttostr.h.
8688
8689 2010-10-17  Bruno Haible  <bruno@clisp.org>
8690
8691         nl_langinfo tests: Silence some warnings.
8692         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8693         Reported by Jim Meyering.
8694
8695 2010-10-17  Bruno Haible  <bruno@clisp.org>
8696
8697         Make use of GCC's attribute __alloc_size__.
8698         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8699         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8700         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8701         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8702         __alloc_size__.
8703         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8704         Suggested by Jim Meyering.
8705
8706 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8707
8708         bootstrap: anchor .gitignore entries.
8709         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8710         with...
8711         (insert_vc_ignore): ... this new function, which prepends `/' to
8712         all .gitignore entries before passing them to
8713         insert_sorted_if_absent.
8714
8715 2010-10-16  Bruno Haible  <bruno@clisp.org>
8716
8717         nextafter: Fix configure check.
8718         * modules/nextafter (configure.ac): Correct expected prototype.
8719
8720 2010-10-16  Bruno Haible  <bruno@clisp.org>
8721
8722         termios: Update documentation.
8723         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8724
8725 2010-10-16  Bruno Haible  <bruno@clisp.org>
8726
8727         tests: Make them compile with TinyCC.
8728         * tests/test-strstr.c (main): Remove parentheses around array
8729         initializer.
8730
8731 2010-10-15  Eric Blake  <eblake@redhat.com>
8732
8733         ignore-value: make header idempotent
8734         * lib/ignore-value.h: Add double-inclusion guards.
8735         Reported by Stefan Berger.
8736
8737 2010-10-15  Jim Meyering  <meyering@redhat.com>
8738
8739         GNUmakefile: handle "stable" target, not "major"
8740         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8741         lists in maint.mk and announce-gen.  Without this, "make stable"
8742         would fail to ensure that $(VERSION) is up to date.
8743
8744 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8745
8746         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8747         & co.
8748
8749 2010-10-14  Bruno Haible  <bruno@clisp.org>
8750
8751         vasnprintf: Don't set errno to 0.
8752         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8753         block that sets it to 0.
8754         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8755
8756 2010-10-14  Bruno Haible  <bruno@clisp.org>
8757
8758         socketlib: Fix.
8759         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8760         gl_PREREQ_SYS_H_WINSOCK2.
8761         Reported by Ian Beckwith <ianb@erislabs.net>.
8762
8763 2010-10-13  Jim Meyering  <meyering@redhat.com>
8764
8765         test-select-stdin.c: avoid warn_unused_result warnings
8766         * tests/test-select-stdin.c: Include "macros.h".
8767         ASSERT that read and fflush succeed.
8768
8769 2010-10-13  Jim Meyering  <meyering@redhat.com>
8770
8771         git-version-gen: do require git-VC'd files in cwd
8772         * build-aux/git-version-gen: Reject a git version string
8773         if there are no commits associated with the current directory.
8774         This avoids an unlikely false-positive (unrelated dir whose parent
8775         repository also contains a tag matching v*), as pointed out
8776         by Giuseppe Scrivano in
8777         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8778
8779 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8780
8781         argv-iter: omit nonconforming declaration
8782         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8783         enum arg_iter_err declaration, which doesn't conform to C99.
8784         Solaris 10 cc warns about this.
8785
8786 2010-10-13  Eric Blake  <eblake@redhat.com>
8787
8788         termios: fix compilation on mingw
8789         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8790         (gl_TERMIOS_H): Adjust it on mingw.
8791         * modules/termios (Makefile.am): Substitute new key.
8792         * lib/termios.in.h (includes): Make include_next conditional.
8793         * doc/posix-headers/termios.texi (termios.h): Update
8794         documentation.
8795         Reported by Daniel P. Berrange.
8796
8797 2010-10-13  Jim Meyering  <meyering@redhat.com>
8798
8799         git-version-gen: don't require that .git/ be in the current dir
8800         * build-aux/git-version-gen: Adjust this script so that it works
8801         when run from any working directory beneath the top-level .git/-
8802         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8803         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8804
8805         test-select: avoid warn_unused_result warnings
8806         * tests/test-select.c: Include "macros.h".
8807         ASSERT that each call to read, write, and pipe succeeds.
8808         While not technically required, also check each "close".
8809         * modules/select-tests (Files): Add tests/macros.h.
8810
8811         test-symlinkat: remove declaration of unused local
8812         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8813
8814         test-inttostr: avoid shadowing warnings
8815         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8816         and use malloc rather than the stack for the same reason as
8817         mentioned in the comment justifying the other allocation.
8818
8819 2010-10-11  Bruno Haible  <bruno@clisp.org>
8820
8821         stdlib: Allow multiple gnulib generated replacements to coexist.
8822         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8823         Reported by Sam Steingold <sds@gnu.org>.
8824
8825 2010-10-11  Jim Meyering  <meyering@redhat.com>
8826
8827         fix a documentation typo
8828         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8829
8830 2010-10-11  Eric Blake  <eblake@redhat.com>
8831
8832         futimens: work around Solaris 11 bug
8833         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8834         * tests/test-futimens.h (test_futimens): Enhance, rather than
8835         weaken test.
8836         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8837
8838 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8839
8840         Indentation.
8841         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8842         higher-level operators more to the left.
8843
8844 2010-10-11  Jim Meyering  <meyering@redhat.com>
8845
8846         test-futimens: avoid unwarranted test failure on Solaris 5.11
8847         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8848         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8849         because it tries to dereference the NULL name argument.
8850
8851 2010-10-11  Bruno Haible  <bruno@clisp.org>
8852
8853         Indentation.
8854         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8855         indentation.
8856
8857 2010-10-11  Jim Meyering  <meyering@redhat.com>
8858
8859         spawn.in.h: make indentation consistent with parentheses
8860         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8861         Make indentation consistent with parentheses.
8862
8863 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8864
8865         Fix mismatched parens in previous commit
8866         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8867         parens.
8868
8869 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8870
8871         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8872
8873         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8874         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8875         * lib/malloca.c: Include "verify.h".
8876         (verify1): Remove, replacing with a verify call.
8877         * lib/relocwrapper.c (verify1): Likewise.
8878         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8879         Likewise.
8880         * modules/malloca (Depends-on): Add 'verify'.
8881         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8882         * modules/vasnprintf (Depends-on): Add 'verify'.
8883         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8884         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8885         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8886         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8887         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8888         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8889         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8890
8891         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8892
8893         Formerly the style was sometimes 2*X - 1, because the C standard
8894         was wrongly thought to disallow ?: in integral constant expressions.
8895         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8896         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8897         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8898         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8899         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8900         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8901         verify that time_t cannot be floating.
8902
8903 2010-10-08  Eric Blake  <eblake@redhat.com>
8904
8905         time: enforce recent POSIX ruling that time_t is integral
8906         * lib/time.in.h (__time_t_must_be_integral): Detect any
8907         problematic systems, allowing the rest of gnulib to assume POSIX.
8908
8909 2010-10-08  Jim Meyering  <meyering@redhat.com>
8910
8911         fdopendir: fix a bug on systems lacking openat and /proc support
8912         OpenBSD 4.7 is one such system.  The most noticeable effect was
8913         failure of any application making nontrivial use of fts: rm, du,
8914         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8915           ./rm: traversal failed: `a': Bad file descriptor
8916         Debugging that, you see that even though FD 6 was closed just
8917         prior to the opendir call in fd_clone_opendir, its resulting
8918         dir->dd_fd was 8, rather than the expected value of 6:
8919
8920         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8921         93                close (fd);
8922         (gdb) n
8923         94                dir = fd_clone_opendir (dupfd);
8924         (gdb) n
8925         95                saved_errno = errno;
8926         (gdb) p dir->dd_fd
8927         $11 = 8
8928
8929         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8930         The problem is that on OpenBSD, fd_clone_opendir has to resort
8931         to using the old-style save/restore CWD mechanism, due to its
8932         lack of openat/proc support, and *that* would steal the FD (6)
8933         that opendir was supposed to use.
8934
8935         The fix is to squirrel away the desired FD so that save_cwd uses a
8936         different one, and then free the dest FD right before calling opendir.
8937         That guarantees opendir will use the required file descriptor.
8938
8939         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8940
8941 2010-10-08  Bruno Haible  <bruno@clisp.org>
8942
8943         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8944         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8945
8946 2010-10-08  Bruno Haible  <bruno@clisp.org>
8947
8948         nanosleep: Make replacement POSIX compliant.
8949         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8950         is out of range.
8951         Reported by Jim Meyering.
8952
8953 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8954
8955         bootstrap: add hook for altering gnulib.mk, for Bison
8956         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8957         the Bison bootstrapping process can rewrite file names and variables
8958         in this file before later parts of 'bootstrap' use the file.
8959         Bison wants to include lib/gnulib.mk from the top-level makefile,
8960         so it needs the file names in this file to be relative to the top
8961         level, not relative to lib; plus it needs variable names to be
8962         rewritten.
8963         (slurp): Use the new function.
8964
8965         bootstrap: reformat for readability
8966         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8967
8968 2010-10-08  Eric Blake  <eblake@redhat.com>
8969
8970         docs: update cygwin progress
8971         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8972         1.7.7.
8973         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8974         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8975         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8976         * doc/posix-functions/carg.texi (carg): Likewise.
8977         * doc/posix-functions/cargf.texi (cargf): Likewise.
8978         * doc/posix-functions/casin.texi (casin): Likewise.
8979         * doc/posix-functions/casinf.texi (casinf): Likewise.
8980         * doc/posix-functions/casinh.texi (casinh): Likewise.
8981         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8982         * doc/posix-functions/catan.texi (catan): Likewise.
8983         * doc/posix-functions/catanf.texi (catanf): Likewise.
8984         * doc/posix-functions/catanh.texi (catanh): Likewise.
8985         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8986         * doc/posix-functions/ccos.texi (ccos): Likewise.
8987         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8988         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8989         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8990         * doc/posix-functions/cexp.texi (cexp): Likewise.
8991         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8992         * doc/posix-functions/cimag.texi (cimag): Likewise.
8993         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8994         * doc/posix-functions/clog.texi (clog): Likewise.
8995         * doc/posix-functions/clogf.texi (clogf): Likewise.
8996         * doc/posix-functions/conj.texi (conj): Likewise.
8997         * doc/posix-functions/conjf.texi (conjf): Likewise.
8998         * doc/posix-functions/cpow.texi (cpow): Likewise.
8999         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
9000         * doc/posix-functions/cproj.texi (cproj): Likewise.
9001         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
9002         * doc/posix-functions/creal.texi (creal): Likewise.
9003         * doc/posix-functions/crealf.texi (crealf): Likewise.
9004         * doc/posix-functions/csin.texi (csin): Likewise.
9005         * doc/posix-functions/csinf.texi (csinf): Likewise.
9006         * doc/posix-functions/csinh.texi (csinh): Likewise.
9007         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
9008         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
9009         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
9010         * doc/posix-functions/ctan.texi (ctan): Likewise.
9011         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
9012         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
9013         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
9014         * doc/posix-headers/complex.texi (complex.h): Likewise.
9015
9016 2010-10-07  Jim Meyering  <meyering@redhat.com>
9017
9018         parse-datetime: avoid compilation failure on OpenBSD 4.7
9019         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
9020         This works around a compilation failure on OpenBSD 4.7:
9021         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
9022
9023 2010-10-07  Eric Blake  <eblake@redhat.com>
9024
9025         docs: update cygwin progress
9026         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
9027         1.7.6.
9028         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
9029         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
9030         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
9031         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
9032         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
9033         Likewise.
9034         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
9035         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
9036         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
9037         Likewise.
9038         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
9039         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
9040         Likewise.
9041         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
9042         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
9043         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
9044         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
9045         Likewise.
9046         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
9047         Likewise.
9048         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
9049
9050         docs: update parse-datetime history
9051         * doc/parse-datetime.texi (Authors of parse_datetime): Better
9052         documentation of this function's history and alternatives.
9053
9054         cygwin: use more robust version check
9055         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9056         exclude an eventual cygwin 1.9.1.
9057         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9059         (gl_FUNC_STRCASESTR): Likewise.
9060         Reported by Bruno Haible.
9061
9062 2010-10-06  Bruno Haible  <bruno@clisp.org>
9063
9064         string, sys_select: Avoid #including large headers unless necessary.
9065         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9066         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9067         OSF/1, BeOS, Haiku.
9068         Reported by Jim Meyering.
9069
9070 2010-10-05  Eric Blake  <eblake@redhat.com>
9071
9072         memmem, strstr, strcasestr: fix bug with long periodic needle
9073         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9074         periodic needle having false positive.
9075         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9076         and cygwin 1.7.7.
9077         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9079         (gl_FUNC_STRCASESTR): Likewise.
9080         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9081         * tests/test-memmem.c (main): Expose the bug.
9082         * tests/test-strcasestr.c (main): Likewise.
9083         * tests/test-strstr.c (main): Likewise.
9084         * tests/test-c-strcasestr.c (main): Likewise.
9085         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9086         * doc/posix-functions/strstr.texi (strstr): Likewise.
9087         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9088         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9089
9090 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9091
9092         parse-datetime: do some more renaming
9093         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9094         parse_datetime, not get_date.  Mention the renaming.
9095         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9096         in comments.
9097         * m4/bison.m4: Likewise.
9098
9099 2010-10-05  Eric Blake  <eblake@redhat.com>
9100
9101         parse-datetime: better name than get_date
9102         * NEWS: Reword the deprecation notice.
9103         * modules/get_date: Rename to modules/parse-datetime.
9104         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9105         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9106         * lib/get_date.y: Rename to lib/parse-datetime.y.
9107         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9108         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9109         * doc/getdate.texi: Provide fallback wrapper.
9110         * lib/getdate.h: Move guts, and wrap...
9111         * lib/parse-datetime.h: ...new file.
9112         * lib/parse-datetime.y (get_date): Rename...
9113         (parse_datetime): ...to this.
9114         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9115         (gl_PARSE_DATETIME): ...to this.
9116         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9117         documentation.
9118         * modules/getdate (Files): Provide fallback docs and header.
9119         (Notice, Depends-on): Update references.
9120         * tests/test-parse-datetime.c: Likewise.
9121         * DEPENDENCIES: Likewise.
9122         * MODULES.html.sh (Date and time <time.h>): Likewise.
9123         * doc/parse-datetime.texi (Date input formats)
9124         (Authors of parse_datetime): Likewise.
9125         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9126         (Include): Likewise.
9127         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9128         * gnulib-tool: Likewise.
9129         * m4/bison.m4 (gl_BISON): Likewise.
9130         Suggested by Bruno Haible.
9131
9132 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9133
9134         more ports to Solaris tr, which needs [] around ranges
9135         * gnulib-tool: Solaris tr needs [] around ranges.
9136         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9137         * tests/test-pipe-filter-gi1.c (main): Likewise.
9138         * tests/test-pipe-filter-ii1.c (main): Likewise.
9139
9140 2010-10-05  Eric Blake  <eblake@redhat.com>
9141
9142         bootstrap: fix Solaris regression
9143         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9144         around ranges.
9145         Reported by Pádraig Brady.
9146
9147         bootstrap: work with pkg-config
9148         * build-aux/bootstrap (check_versions): Also transliterate - in
9149         prerequisite name.
9150         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9151         prerequisites that were already found, to avoid confusion.
9152         Reported by Justin Clift.
9153
9154         faccessat: remove unused wrappers
9155         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9156         presence of these wrappers dragged in -lgen on Solaris.
9157         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9158
9159 2010-10-05  Jim Meyering  <meyering@redhat.com>
9160
9161         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9162         * Makefile (sc_pragma_columns): New syntax-check rule.
9163
9164 2010-10-04  Bruno Haible  <bruno@clisp.org>
9165
9166         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9167         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9168         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9169         Reported by Bruce Korb and Eric Blake.
9170
9171 2010-10-04  Bruno Haible  <bruno@clisp.org>
9172
9173         threadlib: Make option --with-libpth-prefix work.
9174         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9175         use $LIBPTH, not just -lpth.
9176
9177 2010-10-04  Bruno Haible  <bruno@clisp.org>
9178
9179         Avoid line length limitation from HP NonStop system header files.
9180         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9181         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9182         * lib/ctype.in.h: Likewise.
9183         * lib/dirent.in.h: Likewise.
9184         * lib/errno.in.h: Likewise.
9185         * lib/fcntl.in.h: Likewise.
9186         * lib/float.in.h: Likewise.
9187         * lib/getopt.in.h: Likewise.
9188         * lib/iconv.in.h: Likewise.
9189         * lib/inttypes.in.h: Likewise.
9190         * lib/langinfo.in.h: Likewise.
9191         * lib/locale.in.h: Likewise.
9192         * lib/math.in.h: Likewise.
9193         * lib/netdb.in.h: Likewise.
9194         * lib/netinet_in.in.h: Likewise.
9195         * lib/poll.in.h: Likewise.
9196         * lib/pthread.in.h: Likewise.
9197         * lib/pty.in.h: Likewise.
9198         * lib/sched.in.h: Likewise.
9199         * lib/se-selinux.in.h: Likewise.
9200         * lib/search.in.h: Likewise.
9201         * lib/signal.in.h: Likewise.
9202         * lib/spawn.in.h: Likewise.
9203         * lib/stdarg.in.h: Likewise.
9204         * lib/stddef.in.h: Likewise.
9205         * lib/stdint.in.h: Likewise.
9206         * lib/stdio.in.h: Likewise.
9207         * lib/stdlib.in.h: Likewise.
9208         * lib/string.in.h: Likewise.
9209         * lib/strings.in.h: Likewise.
9210         * lib/sys_file.in.h: Likewise.
9211         * lib/sys_ioctl.in.h: Likewise.
9212         * lib/sys_select.in.h: Likewise.
9213         * lib/sys_socket.in.h: Likewise.
9214         * lib/sys_stat.in.h: Likewise.
9215         * lib/sys_time.in.h: Likewise.
9216         * lib/sys_times.in.h: Likewise.
9217         * lib/sys_utsname.in.h: Likewise.
9218         * lib/sys_wait.in.h: Likewise.
9219         * lib/sysexits.in.h: Likewise.
9220         * lib/termios.in.h: Likewise.
9221         * lib/time.in.h: Likewise.
9222         * lib/unistd.in.h: Likewise.
9223         * lib/wchar.in.h: Likewise.
9224         * lib/wctype.in.h: Likewise.
9225         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9226         * modules/ctype (Makefile.am): Likewise.
9227         * modules/dirent (Makefile.am): Likewise.
9228         * modules/errno (Makefile.am): Likewise.
9229         * modules/fcntl-h (Makefile.am): Likewise.
9230         * modules/float (Makefile.am): Likewise.
9231         * modules/getopt-posix (Makefile.am): Likewise.
9232         * modules/iconv-h (Makefile.am): Likewise.
9233         * modules/inttypes (Makefile.am): Likewise.
9234         * modules/langinfo (Makefile.am): Likewise.
9235         * modules/locale (Makefile.am): Likewise.
9236         * modules/math (Makefile.am): Likewise.
9237         * modules/netdb (Makefile.am): Likewise.
9238         * modules/netinet_in (Makefile.am): Likewise.
9239         * modules/poll-h (Makefile.am): Likewise.
9240         * modules/pthread (Makefile.am): Likewise.
9241         * modules/pty (Makefile.am): Likewise.
9242         * modules/sched (Makefile.am): Likewise.
9243         * modules/search (Makefile.am): Likewise.
9244         * modules/selinux-h (Makefile.am): Likewise.
9245         * modules/signal (Makefile.am): Likewise.
9246         * modules/spawn (Makefile.am): Likewise.
9247         * modules/stdarg (Makefile.am): Likewise.
9248         * modules/stddef (Makefile.am): Likewise.
9249         * modules/stdint (Makefile.am): Likewise.
9250         * modules/stdio (Makefile.am): Likewise.
9251         * modules/stdlib (Makefile.am): Likewise.
9252         * modules/string (Makefile.am): Likewise.
9253         * modules/strings (Makefile.am): Likewise.
9254         * modules/sys_file (Makefile.am): Likewise.
9255         * modules/sys_ioctl (Makefile.am): Likewise.
9256         * modules/sys_select (Makefile.am): Likewise.
9257         * modules/sys_socket (Makefile.am): Likewise.
9258         * modules/sys_stat (Makefile.am): Likewise.
9259         * modules/sys_time (Makefile.am): Likewise.
9260         * modules/sys_times (Makefile.am): Likewise.
9261         * modules/sys_utsname (Makefile.am): Likewise.
9262         * modules/sys_wait (Makefile.am): Likewise.
9263         * modules/sysexits (Makefile.am): Likewise.
9264         * modules/termios (Makefile.am): Likewise.
9265         * modules/time (Makefile.am): Likewise.
9266         * modules/unistd (Makefile.am): Likewise.
9267         * modules/wchar (Makefile.am): Likewise.
9268         * modules/wctype (Makefile.am): Likewise.
9269
9270 2010-10-04  Bruno Haible  <bruno@clisp.org>
9271
9272         read-file tests: Avoid a test failure on NonStop Kernel.
9273         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9274         a regular file.
9275         Reported by Joachim Schmitz <schmitz@hp.com>.
9276
9277 2010-10-03  Bruno Haible  <bruno@clisp.org>
9278
9279         gnulib-tool: Fixes for --create-testdir with --libtool.
9280         * gnulib-tool (func_get_automake_snippet): Don't augment
9281         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9282         an executable.
9283         (func_create_testdir): Handle module 'alloca' like func_import.
9284         Reported by Bruce Korb <bruce.korb@gmail.com>.
9285
9286 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9287
9288         Avoid some lines longer than 80 characters.
9289         * lib/stdint.in.h: Break long comment lines.
9290         * lib/math.in.h: Likewise.
9291         (_GL_NUM_UINT_WORDS): New macro, for readability.
9292         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9293         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9294         * lib/stdlib.in.h: Likewise.
9295         * lib/spawn.in.h: Likewise.
9296         * lib/sys_socket.in.h: Update an URL.
9297         * lib/sys_stat.in.h: Break long line.
9298
9299 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9300
9301         Improve pmccabe2html.
9302         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9303         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9304         when the sources change. Remove the line in the HTML about "Used
9305         ranges" (which implied that there might be other unused ranges),
9306         rename "Resume" to "Summary" (easier to understand for more users).
9307         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9308         styles, and some unnecessary blank lines.
9309
9310 2010-10-03  Bruno Haible  <bruno@clisp.org>
9311             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9312
9313         acl: Add support for ACLs on NonStop Kernel.
9314         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9315         Check whether the function aclsort() exists.
9316         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9317         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9318         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9319         (acl_nontrivial [HAVE_ACLSORT]: New function.
9320         (file_has_acl): Implement for NonStop Kernel.
9321         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9322         (qset_acl): Implement for NonStop Kernel.
9323         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9324         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9325         (main): Implement for NonStop Kernel.
9326         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9327         Kernel. Handle this flavor.
9328         * tests/test-set-mode-acl.sh: Likewise.
9329         * tests/test-copy-acl.sh: Likewise.
9330         * tests/test-copy-file.sh: Likewise.
9331
9332 2010-10-03  Bruno Haible  <bruno@clisp.org>
9333
9334         Info about ACLs on NonStop Kernel.
9335         * doc/acl-resources.txt: Add info about NonStop Kernel.
9336         References by Joachim Schmitz <schmitz@hp.com>.
9337
9338 2010-10-02  Bruno Haible  <bruno@clisp.org>
9339
9340         Define missing EDQUOT on NonStop Kernel.
9341         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9342         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9344         missing.
9345         * doc/posix-headers/errno.texi: Mention the NSK bug.
9346         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9347         Reported by Joachim Schmitz <schmitz@hp.com>.
9348
9349 2010-10-02  Bruno Haible  <bruno@clisp.org>
9350
9351         Update doc for POSIX:2008.
9352         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9353         Update URL of POSIX specification.
9354
9355 2010-10-02  Bruno Haible  <bruno@clisp.org>
9356
9357         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9358         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9359         from gnulib, not from Automake.
9360
9361 2010-10-02  Bruno Haible  <bruno@clisp.org>
9362
9363         New module 'system-posix'.
9364         * modules/system-posix: New file.
9365         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9366         module is present.
9367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9368         GNULIB_SYSTEM_POSIX.
9369         * modules/stdlib (Depends-on): Remove sys_wait.
9370         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9371         * doc/posix-functions/system.texi: Mention the new module.
9372         * doc/posix-headers/stdlib.texi: Likewise.
9373         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9374         define test_sys_wait_macros to a no-op.
9375         Reported by Sam Steingold <sds@gnu.org>.
9376
9377 2010-09-30  Bruno Haible  <bruno@clisp.org>
9378
9379         More renaming from 'getdate' to 'get_date'.
9380         * doc/get_date.texi: Renamed from doc/getdate.texi.
9381         * modules/get_date (Files): Update.
9382         * MODULES.html.sh (Date and time <time.h>): Update.
9383         * DEPENDENCIES: Update.
9384         * gnulib-tool: Update comment.
9385         * m4/bison.m4 (gl_BISON): Likewise.
9386         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9387
9388 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9389
9390         bootstrap: support ACLOCAL_FLAGS during aclocal
9391         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9392         can add additional -I dir for third-party .m4 files.
9393
9394 2010-09-30  Eric Blake  <eblake@redhat.com>
9395
9396         bootstrap: use glibtoolize on MacOS
9397         * build-aux/bootstrap (check_versions): Convert libtool into
9398         libtoolize.
9399         (tool search): Move libtool check earlier, and look for
9400         glibtoolize for MacOS.
9401         (gnulib_tool_options): Auto-add --libtool when appropriate.
9402         Reported by Justin Clift.
9403
9404         poll: fix typo that broke test on MacOS
9405         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9406         Reported by Justin Clift.
9407
9408         getdate: rename to get_date
9409         Note: getdate.h is not renamed, to minimize client impact.
9410         * modules/getdate: Mark obsolete.  Move old contents...
9411         * modules/get_date: ...to new module name.
9412         * modules/getdate-tests: Move...
9413         * modules/get_date-tests: ...here.
9414         * m4/getdate.m4: Move...
9415         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9416         * lib/getdate.y: Move...
9417         * lib/get_date.y: ...here.
9418         * tests/test-getdate.c: Move...
9419         * tests/test-get_date.c: ...here.
9420         * doc/posix-functions/getdate.texi (getdate): Update name.
9421         * NEWS: Mention the change.
9422
9423 2010-09-29  Bruno Haible  <bruno@clisp.org>
9424
9425         Separate the module 'waitpid' from the module 'sys_wait'.
9426         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9427         present.
9428         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9429         gl_MODULE_INDICATOR_FOR_TESTS.
9430         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9431         * modules/sys_wait (Depends-on): Remove waitpid.
9432         (Makefile.am): Substitute GNULIB_WAITPID.
9433         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9434         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9435         signature only if the 'waitpid' module is present.
9436         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9437         * NEWS: Mention the change.
9438         * modules/grantpt (Depends-on): Add waitpid.
9439         * modules/wait-process (Depends-on): Likewise.
9440
9441 2010-09-29  Bruno Haible  <bruno@clisp.org>
9442
9443         More tests for module 'sys_wait'.
9444         * modules/sys_wait-c++-tests: New file.
9445         * tests/test-sys_wait-c++.cc: New file.
9446         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9447         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9448
9449 2010-09-29  Bruno Haible  <bruno@clisp.org>
9450
9451         New module 'waitpid'.
9452         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9453         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9454         Don't include <process.h>.
9455         (waitpid): Declare only, using modern idiom.
9456         * m4/waitpid.m4: New file.
9457         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9458         * modules/waitpid: New file.
9459         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9460         (Makefile.am): Update.
9461         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9462
9463 2010-09-28  Bruno Haible  <bruno@clisp.org>
9464
9465         poll: Assume ANSI C.
9466         * lib/poll.c (poll): Use an ANSI C declaration.
9467
9468 2010-09-28  Bruno Haible  <bruno@clisp.org>
9469
9470         poll-h: Create poll.h on all platforms.
9471         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9472         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9473         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9474         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9475         (gl_REPLACE_POLL_H): Don't set POLL_H.
9476         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9477         * modules/poll-h (Depends-on): Add include_next.
9478         (Makefile.am): Create poll.h unconditionally. Substitute also
9479         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9480
9481 2010-09-28  Bruno Haible  <bruno@clisp.org>
9482
9483         Tests for module 'poll-h'.
9484         * modules/poll-h-c++-tests: New file.
9485         * tests/test-poll-h-c++.cc: New file.
9486
9487         Tests for module 'poll-h'.
9488         * modules/poll-h-tests: New file.
9489         * tests/test-poll-h.c: New file.
9490
9491 2010-09-28  Bruno Haible  <bruno@clisp.org>
9492
9493         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9494         * modules/poll-h (Depends-on): Add 'extensions'.
9495
9496 2010-09-28  Bruno Haible  <bruno@clisp.org>
9497
9498         New module 'poll-h'.
9499         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9500         (poll): Use modern idiom.
9501         * modules/poll-h: New file.
9502         * modules/poll (Files): Remove lib/poll.in.h.
9503         (Depends-on): Add poll-h.
9504         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9505         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9506         * m4/poll_h.m4: New file.
9507         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9508         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9509         and invoke gl_REPLACE_POLL_H.
9510         * lib/poll.c: Use common idiom.
9511         * tests/test-poll.c: Likewise.
9512         * doc/posix-headers/poll.texi: Mention the poll-h module.
9513         Suggested by Eric Blake.
9514
9515 2010-09-26  Bruno Haible  <bruno@clisp.org>
9516
9517         sys_wait: Implement WSTOPSIG.
9518         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9519         Reported by Simon Josefsson.
9520
9521 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9522
9523         stdlib, sys_wait: Avoid compilation error on mingw.
9524         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9525
9526 2010-09-26  Bruno Haible  <bruno@clisp.org>
9527
9528         stdlib tests: Avoid code duplication.
9529         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9530         * modules/sys_wait-tests (Files): Likewise.
9531         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9532         * tests/test-stdlib.c: Include test-sys_wait.h.
9533         (main): Invoke test_sys_wait_macros.
9534         * tests/test-sys_wait.c: Include test-sys_wait.h.
9535         (main): Invoke test_sys_wait_macros.
9536
9537 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9538
9539         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9540         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9541         sure Windows sockets are working before calling getaddrinfo.
9542         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9543         * doc/gnulib.texi (Windows sockets): Fix typo.
9544
9545 2010-09-25  Bruno Haible  <bruno@clisp.org>
9546
9547         Tests for module 'regex-quote'.
9548         * modules/regex-quote-tests: New file.
9549         * tests/test-regex-quote.c: New file.
9550
9551         New module 'regex-quote'.
9552         * lib/regex-quote.h: New file.
9553         * lib/regex-quote.c: New file.
9554         * modules/regex-quote: New file.
9555         Suggested by Reuben Thomas <rrt@sc3d.org>.
9556
9557 2010-09-24  Bruno Haible  <bruno@clisp.org>
9558
9559         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9560         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9561
9562 2010-09-23  Bruno Haible  <bruno@clisp.org>
9563
9564         setenv: Relax license.
9565         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9566         Blake.
9567         Requested by Eric Blake.
9568
9569 2010-09-22  Bruno Haible  <bruno@clisp.org>
9570
9571         termios: Relax license.
9572         * modules/termios (License): Change to LGPLv2+.
9573         Requested by Eric Blake.
9574
9575 2010-09-22  Bruno Haible  <bruno@clisp.org>
9576
9577         threadlib: Allow the package to change the default to 'no'.
9578         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9579         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9580         Reported by Paul Eggert.
9581
9582 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9583             Bruno Haible  <bruno@clisp.org>
9584
9585         Fix endless loop in mbmemcasecoll.
9586         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9587         byte.
9588         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9589
9590 2010-09-22  Bruno Haible  <bruno@clisp.org>
9591
9592         Tests for module 'memcoll'.
9593         * modules/memcoll-tests: New file.
9594         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9595
9596         memcoll, xmemcoll: Clarify size vs. length.
9597         * modules/memcoll.c (memcoll0): Clarify specification.
9598         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9599         passed to collate_error.
9600
9601 2010-09-22  Bruno Haible  <bruno@clisp.org>
9602
9603         Tests for module 'memcasecmp'.
9604         * modules/memcasecmp-tests: New file.
9605         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9606
9607 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9608
9609         * lib/pthread.in.h: Add split double-inclusion guard, and include
9610         system <pthread.h> if there is one.  Use @@-style as in other
9611         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9612         pthread.h doesn't.
9613         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9614         (pthread_mutexattr_settype, pthread_mutex_trylock):
9615         New static inline functions, if there's no system <pthread.h>.
9616         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9617         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9618         Approximate with mutexes if the system lacks spinlocks, as in
9619         MacOS.
9620         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9621         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9622         @@-style.  Check for spinlocks separately.
9623         (gl_PTHREAD_DEFAULTS): New macro.
9624         * modules/pthread: Redo to use a more typical style for in.h files.
9625
9626 2010-09-21  Eric Blake  <eblake@redhat.com>
9627
9628         net_if: enhance tests
9629         * tests/test-net_if.c (main): Move signature checks earlier.
9630         Print failures to stderr.
9631         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9632         Document the bug that we do not yet fix.
9633
9634 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9635
9636         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9637         about gnulib, not GSS.
9638
9639 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9640
9641         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9642         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9643         for Emacs.
9644         * build-aux/pmccabe2html: Make Makefile.am example code more
9645         cut-and-paste friendly.
9646
9647 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9648
9649         * tests/test-net_if.c: New file.
9650         * modules/net_if-tests: New file.
9651
9652 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9653
9654         pthread: add pthread_spin_destroy
9655         * lib/pthread.in.h (pthread_spin_destroy): New function.
9656
9657 2010-09-19  Bruno Haible  <bruno@clisp.org>
9658
9659         gnulib-tool: Fix --help output.
9660         * gnulib-tool (func_usage): Fix help message.
9661         Reported by Reuben Thomas <rrt@sc3d.org>.
9662
9663 2010-09-18  Jim Meyering  <meyering@redhat.com>
9664
9665         maint.mk: avoid unexpanded \n in two diagnostics
9666         * top/maint.mk (sc_prohibit_always_true_header_tests):
9667         Don't use a literal \n in a halt=... assignment.  It would not be
9668         expanded, and the two \n bytes would appear in the diagnostic output
9669         rather than the desired newline.  Use halt=$$(printf ... instead.
9670         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9671
9672 2010-09-18  Bruno Haible  <bruno@clisp.org>
9673
9674         netinet_in: Doc tweak.
9675         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9676         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9677
9678 2010-09-18  Jim Meyering  <meyering@redhat.com>
9679
9680         init.sh: correct an outdated comment
9681         * tests/init.sh (create_exe_shims_):  s/function/alias/
9682
9683         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9684         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9685         a file named "*.exe" is removed between the glob expansion and the
9686         processing of that oddly named file.
9687
9688 2010-09-17  Eric Blake  <eblake@redhat.com>
9689
9690         mirbsd: add some more support
9691         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9692         in BSD family.
9693         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9694         devices as OpenBSD.
9695         * m4/host-os.m4 (mirbsd): Add MirBSD.
9696
9697         tests: fix unportable assumption on sys/wait.h
9698         * tests/test-sys_wait.c (main): Relax test.
9699         * tests/test-stdlib.c (main): Likewise.
9700
9701         init.sh: accomodate directory with no .exes
9702         * tests/init.sh: Accomodate directory containing only scripts.
9703
9704         tests: avoid compiler warning
9705         * tests/test-stdlib.c (main): Use the variable.
9706
9707         fdutimens, fdutimensat: update signature, again
9708         * lib/utimens.h (gl_futimens): Delete, and move signature...
9709         (fdutimens): ...here.
9710         (fdutimensat): Rearrange signature.
9711         (lutimensat): Rename variable for clarity.
9712         * lib/fdutimensat.c (fdutimensat): Update signature.
9713         * lib/utimens.c (fdutimens): Likewise.
9714         (gl_futimens): Delete.
9715         (utimens, lutimens): Update callers.
9716         * lib/futimens.c (futimens): Likewise.
9717         * tests/test-fdutimensat.c: Likewise.
9718         * tests/test-utimens.c: Likewise.
9719         * tests/test-futimens.h: Update comment.
9720         * NEWS: Mention this.
9721         Suggested by Paul Eggert.
9722
9723 2010-09-17  Bruno Haible  <bruno@clisp.org>
9724
9725         Take over the maintenance of some older macros from Autoconf.
9726         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9727         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9728         GNU Autoconf.
9729         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9730         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9731
9732 2010-09-17  Eric Blake  <eblake@redhat.com>
9733
9734         fdutimensat: drop atflag validation
9735         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9736         with valid fd, to close a race scenario where futimens is
9737         unsupported and FILE was replaced by a symlink.
9738         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9739         accordingly.
9740         Suggested by Paul Eggert.
9741
9742 2010-09-16  Bruno Haible  <bruno@clisp.org>
9743
9744         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9745         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9746
9747 2010-09-16  Bruno Haible  <bruno@clisp.org>
9748
9749         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9750         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9751         login_tty exists.
9752         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9753
9754 2010-09-16  Bruno Haible  <bruno@clisp.org>
9755
9756         login_tty: Make the replacement code work on BSD systems.
9757         * lib/login_tty.c: Include <sys/ioctl.h>.
9758         (login_tty): Use ioctl TIOCSCTTY when available.
9759         * modules/login_tty (Depends-on): Add sys_ioctl.
9760         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9761
9762 2010-09-16  Bruno Haible  <bruno@clisp.org>
9763
9764         login_tty: Stricter unit test.
9765         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9766         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9767         and tcgetsid() after login_tty.
9768         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9769
9770 2010-09-16  Bruno Haible  <bruno@clisp.org>
9771
9772         New module 'tcgetsid'.
9773         * lib/tcgetsid.c: New file.
9774         * m4/tcgetsid.m4: New file.
9775         * modules/tcgetsid: New file.
9776         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9777         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9778         GNULIB_TCGETSID, HAVE_TCGETSID.
9779         * lib/termios.in.h: Include <sys/types.h>.
9780         (tcgetsid): New declaration.
9781         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9782         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9783         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9784         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9785
9786 2010-09-16  Bruno Haible  <bruno@clisp.org>
9787
9788         Tests for module 'termios'.
9789         * modules/termios-c++-tests: New file.
9790         * modules/termios-tests: New file.
9791         * tests/test-termios-c++.cc: New file.
9792         * tests/test-termios.c: New file.
9793
9794         New module 'termios'.
9795         * modules/termios: New file.
9796         * lib/termios.in.h: New file.
9797         * m4/termios_h.m4: New file.
9798         * doc/posix-headers/termios.texi: Mention the new module.
9799
9800 2010-09-16  Eric Blake  <eblake@redhat.com>
9801
9802         fdutimensat: add an atflag parameter
9803         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9804         * lib/utimens.h (fdutimensat): Update prototype.
9805         * tests/test-fdutimensat.c: Adjust test to match.
9806         * NEWS: Document the change.
9807         Suggested by Paul Eggert.
9808
9809 2010-09-16  Bruno Haible  <bruno@clisp.org>
9810
9811         Fix typos in comments.
9812         * lib/striconveh.h: Fix typo in comment.
9813         * lib/login_tty.c (login_tty): Likewise.
9814
9815 2010-09-15  Bruno Haible  <bruno@clisp.org>
9816
9817         stdlib: clarify MirBSD WEXITSTATUS bug
9818         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9819         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9820
9821 2010-09-15  Eric Blake  <eblake@redhat.com>
9822
9823         stdlib: work around MirBSD WEXITSTATUS bug
9824         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9825         * modules/stdlib (Depends-on): Add sys_wait.
9826         * tests/test-sys_wait.c (main): Enhance test.
9827         * tests/test-stdlib.c (main): Likewise.
9828         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9829
9830         docs: mention MacOS issue with WEXITSTATUS(constant)
9831         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9832         issue.
9833         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9834
9835         strnlen: add tests
9836         * modules/strnlen-tests: New file.
9837         * tests/test-strnlen.c: Likewise.
9838
9839 2010-09-14  Bruno Haible  <bruno@clisp.org>
9840
9841         unistr/base: Avoid link errors when module 'libunistring' is also used.
9842         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9843         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9844         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9845         Declare also when HAVE_LIBUNISTRING is set.
9846         Reported by Pádraig Brady <P@draigbrady.com>.
9847
9848 2010-09-14  Eric Blake  <eblake@redhat.com>
9849
9850         test-rawmemchr: make more robust
9851         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9852         (Depends-on, configure.ac): Add needed prerequisites to use it.
9853         * modules/memchr-tests (Files, Depends-on, configure.ac):
9854         Likewise, to avoid implicit reliance on memchr module prereqs.
9855         * tests/test-memchr.c (main): Ensure proper masking.
9856         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9857         reads.
9858
9859         memchr: detect glibc Alpha bug
9860         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9861         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9862         Alpha.
9863         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9864         * tests/test-memchr.c (main): Enhance test.
9865         Reported by Nelson H. F. Beebe.
9866
9867 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9868
9869         fts, getcwd, glob: audit for dirfd returning -1
9870         * lib/fts.c (opendir): Remove #define; no longer used.
9871         (opendirat): New arg PDIR_FD.  All callers changed.
9872         (fts_build, _opendir2): Use new opendirat to avoid the need for
9873         dirfd, or for checking whether dirfd returns a negative value.
9874         Don't use opendir; always use openat followed by fdopendir.
9875         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9876         it.
9877         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9878         returns -1 here.
9879         * modules/fts (Depends-on): Remove dirfd.
9880         * modules/getcwd (Depends-on): Likewise.
9881
9882 2010-09-13  Eric Blake  <eblake@redhat.com>
9883
9884         float: fix broken MirBSD header
9885         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9886         * doc/posix-headers/float.texi (float.h): Document it.
9887
9888 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9889
9890         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9891         * lib/fts.c (opendirat): New arg extra_flags.
9892         (__opendir2): Use it to avoid following symlinks when opening
9893         a directory, if symlinks are not supposed to be followed.  See
9894         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9895
9896         fdopendir: preserve argument fd before returning
9897         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9898         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9899         (fdopendir): Use them, arranging for FD to be open to the same
9900         directory that it was when it started.  (It might be temporarily
9901         closed while fdopendir is running, so this not thread- or
9902         signal-safe.)  Be careful to do the right thing even when file
9903         descriptors are scarce and dup fails with errno == EMFILE.  See
9904         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9905
9906 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9907
9908         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9909         * NEWS: Document change.
9910         * m4/regex.m4: Disable test for regoff_t size.
9911
9912 2010-09-13  Jim Meyering  <meyering@redhat.com>
9913
9914         fts: don't operate on an invalid file descriptor after failed dup
9915         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9916         negative file descriptor.
9917
9918 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9919
9920         savedir: add streamsavedir, deprecate fdsavedir
9921         * NEWS: Mention deprecation of fdsavedir.
9922         * lib/savedir.c (streamsavedir): New extern function, whose name
9923         ends in "savedir" to be consistent with the others.  This differs
9924         from savedirstream in that it doesn't close its argument.  The
9925         next version of GNU tar will use this instead of fdsavedir, to
9926         avoid some race conditions and conserve file descriptors.
9927         (savedirstream): Reimplement as a wrapper around streamsavedir.
9928         (fdsavedir): Add a comment deprecating this function.  As far as
9929         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9930         * lib/savedir.h (streamsavedir): New decl.
9931         (fdsavedir): Add a comment deprecating this.
9932
9933 2010-09-10  Bruno Haible  <bruno@clisp.org>
9934
9935         langinfo: Fix last commit.
9936         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9937         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9939
9940 2010-09-10  Bruno Haible  <bruno@clisp.org>
9941
9942         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9943         * lib/progreloc.c (O_EXEC): Define fallback.
9944
9945 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9946
9947         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9948         * NEWS: Document recent changes to fcntl-h.
9949         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9950         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9951         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9952         Similarly for O_SEARCH; this last was already true, but not documented.
9953         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9954         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9955         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9956         Likewise.
9957         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9958         is zero, not whether it is defined.
9959         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9960         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9961         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9962
9963 2010-09-10  Bruno Haible  <bruno@clisp.org>
9964
9965         langinfo, nl_langinfo: Fix for IRIX 5.3.
9966         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9967         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9968         HAVE_LANGINFO_YESEXPR.
9969         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9970         HAVE_LANGINFO_YESEXPR.
9971         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9972         HAVE_LANGINFO_T_FMT_AMPM is 0.
9973         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9974         HAVE_LANGINFO_YESEXPR is 0.
9975         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9976         NOEXPR.
9977         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9978         * doc/posix-functions/nl_langinfo.texi: Likewise.
9979         Reported by Eric Blake.
9980
9981 2010-09-10  Bruno Haible  <bruno@clisp.org>
9982
9983         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9984         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9985         on FreeBSD 8.0 and OpenBSD 4.6.
9986         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9987         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9988         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9989         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9990         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9991         ac_includes_default.
9992         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9993
9994 2010-09-09  Eric Blake  <eblake@redhat.com>
9995
9996         strsignal: work around NetBSD bug
9997         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9998         * lib/string.in.h (includes): Likewise.
9999         * doc/posix-functions/strsignal.texi (strsignal): Document the
10000         bug.
10001         Reported by Nelson H. F. Beebe.
10002
10003         gnulib-tool: work with NetBSD /bin/sh
10004         * gnulib-tool (func_cache_var, func_cache_lookup_module)
10005         (func_get_description, func_get_comment, func_get_status)
10006         (func_get_notice, func_get_applicability, func_get_filelist)
10007         (func_get_dependencies, func_get_autoconf_early_snippet)
10008         (func_get_autoconf_snippet, func_get_automake_snippet)
10009         (func_get_include_directive, func_get_link_directive)
10010         (func_get_license, func_get_maintainer, func_import): Avoid
10011         shell syntax errors from parsing syntax extensions.
10012
10013 2010-09-09  Bruno Haible  <bruno@clisp.org>
10014
10015         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10016         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
10017         a reliable way to determine whether the 'alias' command works.
10018
10019 2010-09-08  Jim Meyering  <meyering@redhat.com>
10020
10021         init.sh: penalize a set-x-impaired shell; don't disqualify it
10022         * tests/init.sh: Too many shells corrupt application stderr when
10023         you set -x, so we can't afford to disqualify them, since at least
10024         on Irix-6.5, that would disqualify all bourne shells.
10025         Instead, use a two-pass approach.
10026         On the first pass, try to find a shell that meets the stricter
10027         condition that set -x does not corrupt stderr.
10028         If no shell meets the stricter condition, retest each candidate
10029         shell, but without that extra condition.  Finally, when
10030         VERBOSE=yes is requested and set -x might cause trouble, simply
10031         issue a warning and refrain from enabling debug output.
10032
10033 2010-09-08  Eric Blake  <eblake@redhat.com>
10034
10035         unsetenv: fix OpenBSD bug
10036         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
10037         * doc/posix-functions/unsetenv.texi (unsetenv): Update
10038         documentation.
10039         Reported by Jim Meyering.
10040
10041         strtod: work around IRIX 6.5 bug
10042         * lib/strtod.c (strtod): Reparse number on shorter string if
10043         exponent parse was invalid.
10044         * tests/test-strtod.c (main): Add check for "0x1p 2".
10045         Reported by Tom G. Christensen.
10046
10047         getopt: optimize previous patch
10048         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
10049         empty variable.  Speed up awk script.
10050         Reported by Paolo Bonzini.
10051
10052 2010-09-08  Jim Meyering  <meyering@redhat.com>
10053
10054         test.sh: disqualify shells for which set -x corrupts stderr
10055         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10056         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10057         appear in stderr output.  For example, this command:
10058             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10059         prints "P=1" on those two systems:
10060
10061 2010-09-08  Bruno Haible  <bruno@clisp.org>
10062
10063         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10064         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10065         commands, because some shells ignore redirections when there is an
10066         error in the command lookup.
10067         Reported by Eric Blake.
10068
10069 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10070
10071         * lib/regex.h: Fix a mention of `regex_compile' (should be
10072         `re_compile_pattern').
10073         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10074         (re_set_registers): Correct name of parameter in comment.
10075
10076         * doc/regex.texi: Add documentation for missing syntax flags.
10077         Remove commented-out documentation of defunct syntax option
10078         RE_NO_EMPTY_ALTS.
10079         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10080         Add documentation of re_set_registers.
10081         Document trick to re-use a pattern buffer by setting fastmap manually.
10082         Update documentation of struct re_pattern_buffer per public members.
10083         Uncomment documentation of equivalence class operators and
10084         collating symbol operators, since they are now implemented,
10085         Explain leftmost-longest matching in relation to alternatives.
10086         Tidy documentation of substring matching.
10087         Remove POSIX documentation, which is done better in
10088         glibc, and refer the reader there. Keep BSD API documentation, as
10089         that is not readily available elsewhere.
10090
10091 2010-09-07  Eric Blake  <eblake@redhat.com>
10092
10093         getopt: handle POSIXLY_CORRECT set but not exported
10094         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10095         export state of POSIXLY_CORRECT, due to bash set -o posix.
10096         Reported by Dustin J. Mitchell.
10097
10098 2010-09-05  Bruno Haible  <bruno@clisp.org>
10099
10100         gnulib-tool: Highlight the changed options.
10101         * gnulib-tool (func_usage): Display the --import, --add-import,
10102         --remove-import explanations in bold font.
10103
10104 2010-09-06  Karl Berry  <karl@gnu.org>
10105
10106         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10107
10108 2010-09-05  Bruno Haible  <bruno@clisp.org>
10109
10110         uniwidth/width: Update comment.
10111         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10112         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10113
10114 2010-09-05  Bruno Haible  <bruno@clisp.org>
10115
10116         isinf, isnan: Relax license.
10117         * modules/isinf (License): Change from GPL to LGPL, with consent from
10118         Ben Pfaff.
10119         * modules/isnan (License): Likewise.
10120         Requested by Ludovic Courtès.
10121
10122 2010-09-04  Bruno Haible  <bruno@clisp.org>
10123
10124         gnulib-tool: Help migration from --import to --add-import or --update.
10125         * gnulib-tool: Emit a verbose error message when --import is used
10126         without any module name.
10127
10128 2010-09-04  Bruno Haible  <bruno@clisp.org>
10129
10130         Update doc about gnulib-tool.
10131         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10132         'gnulib-tool --update' in more detail.
10133         Reported by Eric Blake.
10134
10135 2010-09-04  Bruno Haible  <bruno@clisp.org>
10136
10137         gnulib-tool: Change --import. New options --add/remove-import.
10138         * gnulib-tool: New options --add-import, --remove-import.
10139         (func_usage): Document them.
10140         (have_associative): Define always.
10141         (func_import): In import mode, don't merge the specified settings with
10142         the cached settings. Implement remove-import mode.
10143         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10144         Explain when to use them versus --import.
10145         (Simple update): Use --add-import instead of --import.
10146         * NEWS: Mention the change.
10147
10148 2010-09-04  Bruno Haible  <bruno@clisp.org>
10149
10150         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10151         separate gnulib.mk.
10152
10153 2010-09-04  Bruno Haible  <bruno@clisp.org>
10154
10155         gnulib-tool: Don't talk about CVS any more.
10156         * gnulib-tool (func_usage, func_import): Write "version control"
10157         instead of CVS.
10158
10159 2010-09-04  Jim Meyering  <meyering@redhat.com>
10160
10161         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10162         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10163         false positives (whose names may be ill-chosen) when searching
10164         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10165         would cause a false-positive.
10166
10167         avoid coreutils "make distcheck" failure
10168         Coreutils tests with an absolute build directory name that contains
10169         a space.  Not quoting this directory name caused a failure.
10170         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10171         * tests/test-vc-list-files-cvs.sh: Likewise.
10172
10173 2010-09-04  Bruno Haible  <bruno@clisp.org>
10174
10175         gnulib-tool: Avoid error when run in a package without Makefile.am.
10176         * gnulib-tool: When collecting the m4dirs in a package that does not
10177         have a Makefile.am, eliminate those directories that contain no
10178         gnulib-cache.m4. Fix expression that counts these directories.
10179
10180 2010-09-04  Bruno Haible  <bruno@clisp.org>
10181
10182         update-copyright test: Improve output when perl is missing or too old.
10183         * tests/test-update-copyright.sh: Move test of Perl version down after
10184         the test whether Perl exists. Provide an explanation relating Perl's
10185         error message to Automake's SKIP: message.
10186
10187 2010-09-04  Bruno Haible  <bruno@clisp.org>
10188
10189         Don't augment PATH in TESTS_ENVIRONMENT.
10190         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10191         set abs_aux_dir instead of augmenting PATH.
10192         * modules/vc-list-files-tests (Makefile.am): Likewise.
10193         * tests/test-update-copyright.sh: Augment PATH here.
10194         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10195         path_prepend_.
10196         * tests/test-vc-list-files-git.sh: Likewise.
10197
10198 2010-09-04  Jim Meyering  <meyering@redhat.com>
10199
10200         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10201         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10202
10203 2010-09-04  Bruno Haible  <bruno@clisp.org>
10204
10205         strdup: Fix compilation error in C++ mode.
10206         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10207         the macro.
10208
10209 2010-09-04  Bruno Haible  <bruno@clisp.org>
10210
10211         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10212         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10213         macro into a function.
10214         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10215
10216 2010-09-04  Bruno Haible  <bruno@clisp.org>
10217
10218         Set PATH_SEPARATOR the same way autoconf does.
10219         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10220         the value of PATH_SEPARATOR the same way autoconf-generated configure
10221         scripts do.
10222         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10223         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10224
10225 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10226
10227         Set PATH_SEPARATOR the same way autoconf does.
10228         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10229         the same way autoconf-generated configure scripts do.
10230         * posix-modules: Likewise.
10231
10232 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10233
10234         hash: fix safe_hasher const typo
10235         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10236         const; otherwise, there is a type error later.
10237
10238 2010-09-02  Jim Meyering  <meyering@redhat.com>
10239
10240         test-update-copyright.sh: require perl 5.8.0
10241         * tests/test-update-copyright.sh: Require 5.8.0,
10242         which Tom G. Christensen has confirmed is adequate,
10243         while 5.6.1 is not.
10244
10245 2010-09-02  Eric Blake  <eblake@redhat.com>
10246
10247         tests: init.sh improvements for re-exec'ing with zsh
10248         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10249         -vx through shell re-exec.
10250         Reported by Tom G. Christensen.
10251
10252         wctype: fix typo in previous commit
10253         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10254         Reported by Ludovic Courtès.
10255
10256 2010-09-02  Jim Meyering  <meyering@redhat.com>
10257
10258         test-update-copyright.sh: skip test if Perl is too old
10259         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10260         Reported by Tom G. Christensen.
10261
10262 2010-09-02  Bruno Haible  <bruno@clisp.org>
10263
10264         wctype: Avoid compilation error on IRIX 6.5.30.
10265         * lib/wctype.in.h (iswblank): Declare with a replacement if
10266         REPLACE_ISWBLANK is set.
10267         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10268         declared. Set REPLACE_ISWBLANK.
10269         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10270         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10271         * doc/posix-headers/wctype.texi: Likewise.
10272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10273
10274 2010-09-01  Bruno Haible  <bruno@clisp.org>
10275
10276         New module 'socketlib'.
10277         * modules/socketlib: New file.
10278         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10279         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10280         * modules/sockets (Depends-on): Add socketlib.
10281         Suggested by Sam Steingold <sds@gnu.org>.
10282
10283 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10284
10285         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10286
10287         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10288         when one needs search access to a directory but not read access.
10289         On systems where it is available, it works in some cases where
10290         O_RDONLY does not, namely on directories that are searchable but
10291         not readable, and which need only to be searchable.  If O_SEARCH
10292         is not available, fall back to the traditional method of using
10293         O_RDONLY.
10294
10295         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10296         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10297         when opening a directory that needs only to be searchable.
10298         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10299         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10300         * lib/openat-proc.c (openat_proc_name): Likewise.
10301         * lib/openat.c (openat_needs_fchdir): Likewise.
10302         * lib/save-cwd.c (save_cwd): Likewise.
10303         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10304
10305 2010-08-28  Bruno Haible  <bruno@clisp.org>
10306
10307         New module 'host-cpu-c-abi'.
10308         * modules/host-cpu-c-abi: New file.
10309         * m4/host-cpu-c-abi.m4: New file, based on part of
10310         clisp/src/m4/general.m4.
10311         Requested by Sam Steingold <sds@gnu.org>.
10312
10313 2010-08-31  Eric Blake  <eblake@redhat.com>
10314         and Jim Meyering  <meyering@redhat.com>
10315
10316         hash: factor, and guard against misbehaving hasher function
10317         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10318         of table->hasher's return value.  Also protect against a hash value
10319         so large that adding it to table->bucket results in a NULL pointer.
10320         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10321         Use it in place of open-coded check-and-abort.
10322
10323 2010-08-30  Bruno Haible  <bruno@clisp.org>
10324
10325         hash: silence spurious clang warning
10326         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10327         Reported by Eric Blake.
10328
10329 2010-08-30  Eric Blake  <eblake@redhat.com>
10330
10331         strstr, memmem, strcasestr: avoid leaked shell message
10332         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10333         FreeBSD.
10334         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10336
10337         tests: silence clang warning
10338         * tests/test-malloca.c (do_allocation): Avoid dead store.
10339
10340 2010-08-29  Bruno Haible  <bruno@clisp.org>
10341
10342         gettext: Fix recent mistake.
10343         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10344
10345 2010-08-29  Bruno Haible  <bruno@clisp.org>
10346
10347         selinux-h: Offer a --without-selinux option.
10348         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10349         --without-selinux was specified, skip all tests and define
10350         HAVE_SELINUX_SELINUX_H to 0.
10351         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10352         set LIB_SELINUX to empty.
10353         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10354         gl_LIBSELINUX. If --without-selinux was specified, replace
10355         selinux/context.h.
10356         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10357
10358 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10359             Bruno Haible  <bruno@clisp.org>
10360
10361         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10362         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10363         of HAVE_REALLOC.
10364         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10365         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10366         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10367         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10368
10369 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10370             Bruno Haible  <bruno@clisp.org>
10371
10372         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10373         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10374         HAVE_CALLOC.
10375         * lib/xmalloc.c: Update accordingly.
10376         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10377         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10378         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10379
10380 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10381             Bruno Haible  <bruno@clisp.org>
10382
10383         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10384         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10385         HAVE_MALLOC.
10386         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10387         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10388         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10389
10390 2010-08-29  Bruno Haible  <bruno@clisp.org>
10391
10392         Update modules list.
10393         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10394         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10395         (String handling <string.h>): Add astrxfrm.
10396         (File system functions): Add readlinkat.
10397
10398 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10399
10400         Tests for module 'realloc-gnu'.
10401         * modules/realloc-gnu-tests: New file.
10402         * tests/test-realloc-gnu.c: New file.
10403
10404         Tests for module 'calloc-gnu'.
10405         * modules/calloc-gnu-tests: New file.
10406         * tests/test-calloc-gnu.c: New file.
10407
10408         Tests for module 'malloc-gnu'.
10409         * modules/malloc-gnu-tests: New file.
10410         * tests/test-malloc-gnu.c: New file.
10411
10412 2010-08-28  Bruno Haible  <bruno@clisp.org>
10413
10414         Rename module 'realloc' -> 'realloc-gnu'.
10415         * modules/realloc-gnu: New file, copied from modules/realloc.
10416         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10417         obsolete.
10418         * modules/mgetgroups (Depends-on): Update.
10419         * doc/posix-functions/realloc.texi: Update.
10420         * NEWS: Mention the change.
10421
10422         Rename module 'calloc' -> 'calloc-gnu'.
10423         * modules/calloc-gnu: New file, copied from modules/calloc.
10424         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10425         obsolete.
10426         * doc/posix-functions/calloc.texi: Update.
10427         * NEWS: Mention the change.
10428
10429         Rename module 'malloc' -> 'malloc-gnu'.
10430         * modules/malloc-gnu: New file, copied from modules/malloc.
10431         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10432         obsolete.
10433         * modules/argp (Depends-on): Update.
10434         * modules/regex (Depends-on): Update.
10435         * doc/posix-functions/malloc.texi: Update.
10436         * NEWS: Mention the change.
10437
10438 2010-08-28  Eric Blake  <eblake@redhat.com>
10439
10440         pread, pwrite: add missing dependency
10441         * modules/pread (Depends-on): Add extensions.
10442         * modules/pwrite (Depends-on): Likewise.
10443
10444 2010-08-28  Bruno Haible  <bruno@clisp.org>
10445
10446         unistr/u*-strchr: Fix tests dependencies.
10447         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10448         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10449         Reported by Ian Beckwith <ianb@erislabs.net>.
10450
10451 2010-08-28  Bruno Haible  <bruno@clisp.org>
10452
10453         read-file: Don't occupy too much unused memory.
10454         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10455
10456 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10457             Eric Blake  <eblake@redhat.com>
10458             Bruno Haible  <bruno@clisp.org>
10459
10460         read-file: Avoid memory reallocations with regular files.
10461         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10462         (fread_file): With regular files, use the remaining length as the
10463         initial buffer size.  Check against overflow.
10464         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10465         sys_stat.
10466
10467 2010-08-28  Bruno Haible  <bruno@clisp.org>
10468
10469         ftello: Relax license.
10470         * modules/ftello (License): Relax to LGPLv2+.
10471         Reported by Eric Blake.
10472
10473 2010-08-28  Bruno Haible  <bruno@clisp.org>
10474
10475         Avoid relocwrapper link errors due to gnulib replacement functions.
10476         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10477         function.
10478         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10479
10480 2010-08-28  Bruno Haible  <bruno@clisp.org>
10481
10482         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10483         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10484         defined.
10485         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10486         Suggested by Eric Blake.
10487
10488 2010-08-28  Bruno Haible  <bruno@clisp.org>
10489
10490         sys_socket, netdb: Ensure socklen_t gets defined.
10491         * modules/sys_socket (Depends-on): Add socklen.
10492         * modules/netdb (Depends-on): Likewise.
10493         * modules/getaddrinfo (Depends-on): Remove socklen.
10494         * modules/getsockopt (Depends-on): Likewise.
10495         * modules/setsockopt (Depends-on): Likewise.
10496         * tests/test-sys_socket.c: Check that socklen_t is defined.
10497         * tests/test-netdb.c: Likewise.
10498         * m4/socklen.m4: Update comments.
10499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10500
10501 2010-08-27  Eric Blake  <eblake@redhat.com>
10502
10503         login_tty: add missing dependency
10504         * modules/login_tty (Depends-on): Add pty.
10505
10506 2010-08-26  Eric Blake  <eblake@redhat.com>
10507
10508         lib-symbol-versions: fix m4 quoting
10509         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10510         format for AC_LINK_IFELSE.
10511
10512         glob: fix compile test
10513         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10514
10515         btowc: fix missing file
10516         * modules/btowc (Files): Also ship locale-fr.m4.
10517
10518         lseek: fix link test
10519         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10520         AC_LINK_IFELSE.
10521
10522         include_next: silence autoconf 2.68 warning
10523         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10524         AC_COMPILE_IFELSE as special.
10525         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10526         autoconf < 2.68.
10527
10528         acl: fix compilation test
10529         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10530         AC_COMPILE_IFELSE.
10531
10532 2010-08-26  Bruno Haible  <bruno@clisp.org>
10533
10534         Modernize AC_TRY_RUN invocations.
10535         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10536         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10537         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10538         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10539         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10540         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10541         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10542         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10543         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10544         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10545         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10546         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10547         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10548         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10549         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10550         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10551         gl_MBRLEN_NUL_RETVAL): Likewise.
10552         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10553         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10554         Likewise.
10555         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10556         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10557         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10558         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10559         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10560         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10561         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10562         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10563         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10564         Likewise.
10565         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10566         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10567         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10568         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10569         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10570         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10571         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10572         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10573         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10575
10576 2010-08-26  Bruno Haible  <bruno@clisp.org>
10577
10578         Modernize AC_TRY_LINK invocations.
10579         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10580         AC_TRY_LINK.
10581         * m4/argp.m4 (gl_ARGP): Likewise.
10582         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10583         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10584         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10585         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10586         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10587         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10588         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10589         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10590         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10591         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10592         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10593         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10594         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10595         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10596         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10597         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10598         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10599         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10600         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10601         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10602         Likewise.
10603         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10604         Likewise.
10605         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10606         Likewise.
10607         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10609         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10610         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10611         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10612         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10613         * m4/servent.m4 (gl_SERVENT): Likewise.
10614         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10615         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10616         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10617         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10618         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10619         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10620         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10621         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10622         * modules/tsearch-tests (configure.ac): Likewise.
10623
10624 2010-08-26  Bruno Haible  <bruno@clisp.org>
10625
10626         Modernize AC_TRY_COMPILE invocations.
10627         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10628         AC_TRY_COMPILE.
10629         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10630         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10631         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10632         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10633         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10634         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10635         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10636         * m4/lock.m4 (gl_LOCK): Likewise.
10637         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10638         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10639         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10640         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10641         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10642         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10643         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10644         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10645         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10646         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10647         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10648         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10649         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10650         extraneous semicolon.
10651
10652 2010-08-26  Jim Meyering  <meyering@redhat.com>
10653
10654         stat-time: relax license LGPL
10655         * modules/stat-time (License): Change from GPL to LGPL,
10656         with consent from all contributors, for use in libguile.
10657         Requested by Ludovic Courtès.
10658
10659 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10660
10661         poll: return immediately on POLLHUP.
10662         * lib/poll.c (poll): Always set timeout before wait_timeout is
10663         computed.
10664
10665 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10666
10667         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10668         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10669         rmdir ("dir/.//"), unlinkat.
10670
10671 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10672
10673         stdbool: avoid spurious failure with modern xlc
10674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10675
10676 2010-08-24  Bruno Haible  <bruno@clisp.org>
10677
10678         getloadavg: simplify code
10679         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10680         gl_have_func. Update comments.
10681
10682 2010-08-24  Eric Blake  <eblake@redhat.com>
10683
10684         getloadavg: don't define SVR4 on cygwin
10685         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10686         only define SVR4 when -lkvm is required.
10687         Reported by Yaakov Selkowitz.
10688
10689 2010-08-24  Bruno Haible  <bruno@clisp.org>
10690
10691         priv-set: fix comment
10692         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10693
10694 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10695
10696         priv-set: fix comments
10697         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10698         to match code, as suggested by David Bartley in:
10699         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10700
10701 2010-08-23  Eric Blake  <eblake@redhat.com>
10702
10703         stdbool: avoid rejecting clang
10704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10705         * tests/test-stdbool.c: Enable more tests if using the system
10706         <stdbool.h> instead of the gnulib replacement.
10707         (main): Move xlc bug test to a runtime test for all compilers.
10708         Reported by Anders Kaseorg.
10709
10710         argz: fix shell quoting issue
10711         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10712         Reported by Charles Wilson.
10713
10714 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10715             Erik Faye-Lund <kusmabite@gmail.com>
10716
10717         poll, select: handle ERROR_BROKEN_PIPE.
10718         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10719         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10720         * lib/select.c (win32_compute_revents): Do not mark a pipe
10721         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10722
10723 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10724
10725         fts: allow compilation with C++
10726         * lib/fts_.h: Specify extern "C" linkage with C++.
10727
10728 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10729
10730         Fix gnulib-tool sed script de-commentation for AIX sed.
10731         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10732         sed.
10733
10734 2010-08-17  Eric Blake  <eblake@redhat.com>
10735
10736         test-stddef: test for (some) offsetof bugs
10737         * tests/test-stddef.c: Enhance test to ensure correct type of
10738         offsetof.
10739         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10740         that we are not fixing at this time.
10741
10742 2010-08-15  Bruno Haible  <bruno@clisp.org>
10743
10744         stpncpy: Allow stpncpy to be defined as a macro.
10745         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10746         if it's already correctly declared.
10747         * lib/string.in.h (stpncpy): Undefine before redefining.
10748         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10749
10750 2010-08-14  Bruno Haible  <bruno@clisp.org>
10751
10752         Rename module 'memxfrm' to 'amemxfrm'.
10753         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10754         (amemxfrm): Renamed from memxfrm.
10755         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10756         (amemxfrm): Renamed from memxfrm.
10757         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10758         * NEWS: Mention the change.
10759         * MODULES.html.sh (String handling <string.h>): Update.
10760         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10761         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10762         * lib/unicase/u16-casexfrm.c: Likewise.
10763         * lib/unicase/u32-casexfrm.c: Likewise.
10764         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10765         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10766         * lib/uninorm/u16-normxfrm.c: Likewise.
10767         * lib/uninorm/u32-normxfrm.c: Likewise.
10768         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10769         memxfrm.
10770         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10771         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10772         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10773         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10774         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10775         Suggested by Paul Eggert.
10776
10777 2010-08-14  Bruno Haible  <bruno@clisp.org>
10778
10779         Tests for module 'astrxfrm'.
10780         * modules/astrxfrm-tests: New file.
10781         * tests/test-astrxfrm.c: New file.
10782
10783         New module 'astrxfrm'.
10784         * lib/astrxfrm.h: New file.
10785         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10786         * modules/astrxfrm: New file.
10787
10788 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10789
10790         regex: Tweak doc.
10791         * doc/regex.texi (Overview): Don't mention regex.c.
10792         (GNU Regular Expression Compiling): Likewise.
10793         (Match-end-of-line Operator): Mention 'not_eol'.
10794
10795 2010-08-14  Brian Gough  <bjg@gnu.org>
10796             Bruno Haible  <bruno@clisp.org>
10797
10798         git-merge-changelog: add doc relating to use with bzr and hg.
10799         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10800
10801 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10802
10803         pthread: fix pthread.h creation for srcdir != builddir
10804         * modules/pthread (Makefile.am): Fix the rule to work also in a
10805         non-srcdir build.
10806
10807 2010-08-13  Karl Berry  <karl@gnu.org>
10808
10809         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10810         * doc/posix-*/*: force line break before @url of POSIX
10811         specifications.
10812         Suggested by Werner Lemberg.
10813
10814 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10815
10816         strtod: fix const diagnostic
10817         * lib/strtod.c (strtod): Don't assign const char * to char *,
10818         as this elicits a warning from GCC when warnings are enabled.
10819
10820 2010-08-10  Pádraig Brady <P@draigbrady.com>
10821         and Eric Blake  <eblake@redhat.com>
10822
10823         copy-acl: ignore ENOTSUP on HP-UX
10824         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10825         so that it is available for HP-UX.
10826         * lib/copy-acl.c (qcopy_acl): Use it.
10827         Reported by Patrick M. Callahan.
10828
10829 2010-08-10  Eric Blake  <eblake@redhat.com>
10830
10831         open, chown: relax license
10832         * modules/open (License): Change to LGPLv2+, with consent by all
10833         authors, for use in augeas.
10834         * modules/chown (License): Likewise.
10835         * modules/lchown (Likewise): Likewise.
10836         Requested by Adam Stokes.
10837
10838 2010-08-09  Karl Berry  <karl@gnu.org>
10839
10840         * build-aux/ar-lib: new file, import from Automake.
10841         * config/srclist.txt: autocheck for updates.
10842
10843 2010-08-09  Eric Blake  <eblake@redhat.com>
10844
10845         readlinkat: adjust client modules
10846         * modules/areadlinkat (Depends-on): Use readlinkat, not
10847         symlinkat.
10848         * modules/areadlinkat-with-size (Depends-on): Likewise.
10849
10850         mknod: be more vocal about danger of running tests as root
10851         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10852         root, since that is just asking for problems.
10853         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10854
10855         readlinkat: split into its own module
10856         * modules/symlinkat: Split readlinkat...
10857         * modules/readlinkat: ...into separate module.
10858         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10859         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10860         * lib/symlinkat.c (readlinkat): Move...
10861         * lib/readlinkat.c: ...into new file.
10862         * modules/symlinkat-tests: Split readlinkat test...
10863         * modules/readlinkat-tests: ...into separate module.
10864         * tests/test-symlinkat.c: Split...
10865         * tests/test-readlinkat.c: ...into new file.
10866         * NEWS: Document the split.
10867         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10868         * lib/unistd.in.h (readlinkat): Likewise.
10869         Suggested by Bruno Haible.
10870
10871 2010-08-08  Bruno Haible  <bruno@clisp.org>
10872
10873         memxfrm: Speed up.
10874         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10875         that usually only one call to strxfrm is necessary for each string
10876         part.
10877         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10878
10879 2010-08-07  Karl Berry  <karl@gnu.org>
10880
10881         * doc/posix-headers/limits.texi,
10882         * doc/posix-functions/malloc.texi,
10883         * doc/posix-functions/strsignal.texi: missing @item.
10884         * doc/ld-version-script.texi: spurious leading i.
10885         * doc/regex.texi (Interval Operators): no commas inside @var.
10886
10887 2010-08-01  Bruno Haible  <bruno@clisp.org>
10888
10889         Integrate the regex documentation.
10890         * doc/gnulib.texi: Define 'cn' index.
10891         (Regular expressions): New a chapter that includes regex.texi and
10892         regexprops-generic.texi.
10893         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10894         syntax.
10895
10896         Whitespace cleanup.
10897         * doc/regex.texi: Remove trailing spaces.
10898
10899         Add regex documentation.
10900         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10901         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10902         Written by Kathy A. Hargreaves and Karl Berry.
10903
10904 2010-08-01  Bruno Haible  <bruno@clisp.org>
10905
10906         link: Update documentation.
10907         * doc/posix-functions/link.texi: Update regarding Solaris.
10908
10909 2010-07-31  Bruno Haible  <bruno@clisp.org>
10910
10911         Update modules list.
10912         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10913         (String handling <string.h>): Add memcmp2, memxfrm.
10914         (Container data structures): Add xlist, xsublist, xoset.
10915         (Core language properties): Add alignof, unused-parameter.
10916         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10917         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10918         (Unibyte characters <ctype.h>): New section.
10919         (String handling <string.h>): New section.
10920         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10921         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10922         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10923         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10924         tan, tanh, tanl, y0, y1, yn.
10925         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10926         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10927         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10928         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10929         unlockpt, vdprintf, vdprintf-posix.
10930         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10931         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10932         xconcat-filename.
10933         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10934         getdtablesize, pipe2, pipe2-safer.
10935         (Security): New section.
10936         (Networking functions): Add accept4.
10937         (Signal handling): Add sigpipe.
10938         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10939         mbmemcasecoll.
10940         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10941         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10942         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10943         pipe-filter-ii.
10944         (Misc): Add argp-version-etc, login_tty, parse-duration.
10945
10946 2010-07-31  Bruno Haible  <bruno@clisp.org>
10947
10948         Improve doc in MODULES.html.
10949         * modules/linkat (Description): Add the word "function".
10950         * modules/mkfifo (Description): Likewise.
10951         * modules/mknod (Description): Likewise.
10952         * modules/remove (Description): Likewise.
10953         * modules/renameat (Description): Likewise.
10954         * modules/stat (Description): Likewise.
10955         * modules/symlink (Description): Likewise.
10956         * modules/unlink (Description): Likewise.
10957
10958 2010-07-31  Bruno Haible  <bruno@clisp.org>
10959
10960         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10961         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10962         option --enable/disable-c++ instead of --enable/disable-cxx.
10963         * NEWS: Mention the change.
10964
10965 2010-07-31  Bruno Haible  <bruno@clisp.org>
10966
10967         readlink, areadlink: Relax test a bit.
10968         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10969         alternative to ENOTDIR.
10970         * tests/test-areadlink.h (test_areadlink): Likewise.
10971         Reported by Rainer Tammer.
10972
10973 2010-07-31  Bruno Haible  <bruno@clisp.org>
10974
10975         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10976         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10977         character, perform the search using U_STRCHR.
10978         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10979         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10980         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10981         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10982         Suggested by Paolo Bonzini.
10983
10984 2010-07-31  Bruno Haible  <bruno@clisp.org>
10985
10986         unistr/u*-strstr: Fix dependencies.
10987         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10988         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10989         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10990
10991 2010-07-31  Bruno Haible  <bruno@clisp.org>
10992
10993         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10994         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10995         the beginning of the loop.
10996         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10997         cases in 'switch' statement.
10998
10999         unistr/u8-strchr: Fix several bugs.
11000         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
11001         the string. When not found, return NULL, not a pointer near the end.
11002
11003         More tests for unistr/u8-strchr.
11004         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
11005         that the function does not read past the first occurrence of the byte
11006         being searched.
11007         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
11008         * tests/unistr/test-u16-strchr.c (main): New function.
11009         * tests/unistr/test-u32-strchr.c (main): New function.
11010
11011 2010-07-31  Bruno Haible  <bruno@clisp.org>
11012
11013         posix-modules: Ignore backup files of documentation files.
11014         * posix-modules: grep only through files named *.texi.
11015
11016 2010-07-31  Bruno Haible  <bruno@clisp.org>
11017
11018         symlinkat: Fix documentation.
11019         * doc/posix-functions/readlinkat.texi: Fix module name.
11020
11021 2010-07-31  Bruno Haible  <bruno@clisp.org>
11022
11023         fchownat: Replace also when chown has the trailing slash bug.
11024         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
11025         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
11026         introduced on 2010-04-10.
11027         Reported by Rainer Tammer.
11028
11029 2010-07-31  Bruno Haible  <bruno@clisp.org>
11030
11031         linkat: Work around AIX 7.1 bug.
11032         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
11033         whether linkat handles trailing slash correctly. If not, replace linkat
11034         and define LINKAT_TRAILING_SLASH_BUG.
11035         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
11036         check whether (fd1,file1) points to a directory if file1 or file2 ends
11037         in a slash. Code taken from lib/link.c.
11038         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
11039         Reported by Rainer Tammer.
11040
11041 2010-07-31  Bruno Haible  <bruno@clisp.org>
11042
11043         Correctly determine whether pow is available in libc on AIX 7 with xlc.
11044         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
11045         This disables an xlc optimization that was causing wrong test results.
11046         Reported by Rainer Tammer.
11047
11048 2010-07-31  Bruno Haible  <bruno@clisp.org>
11049
11050         iconv: Work around AIX 6.1..7.1 bug.
11051         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
11052         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
11053         cross-compiling, guess no on all versions of AIX.
11054         Reported by Rainer Tammer.
11055
11056 2010-07-31  Bruno Haible  <bruno@clisp.org>
11057
11058         readlink: Relax test a bit.
11059         * tests/test-readlink.h (test_readlink): Allow different errno value
11060         when readlink is called with a file name that ends in / and refers to
11061         a file.
11062         Suggested by Eric Blake.
11063         Reported by Rainer Tammer.
11064
11065 2010-07-31  Bruno Haible  <bruno@clisp.org>
11066
11067         copysign: Does not require -lm on glibc systems.
11068         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11069         gl_COMMON_DOUBLE_MATHFUNC.
11070         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11071
11072 2010-07-31  Bruno Haible  <bruno@clisp.org>
11073
11074         duplocale: Work around AIX 7.1 bug.
11075         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11076         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11077         * lib/duplocale.c (rpl_duplocale): Update comment.
11078         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11079         Reported by Rainer Tammer.
11080
11081 2010-07-30  Bruno Haible  <bruno@clisp.org>
11082
11083         dirfd: Avoid link error on AIX 7.1.
11084         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11085         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11086         exist, set REPLACE_DIRFD.
11087         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11088         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11089         * doc/posix-functions/dirfd.texi: Update.
11090         Reported by Rainer Tammer.
11091
11092 2010-07-30  Eric Blake  <eblake@redhat.com>
11093
11094         strtod: next round of AIX fixes
11095         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11096         exponent.
11097         * tests/test-strtod.c (main): Enhance tests.
11098         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11099         Reported by Rainer Tammer.
11100
11101         futimens: fix configure check
11102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11103         Reported by Bruno Haible.
11104
11105 2010-07-30  Bruno Haible  <bruno@clisp.org>
11106
11107         getline: Update regarding AIX.
11108         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11109         Reported by Rainer Tammer.
11110
11111 2010-07-30  Bruno Haible  <bruno@clisp.org>
11112
11113         wcwidth: Drop replacement on AIX 7.
11114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11115         AIX 7.
11116         Reported by Rainer Tammer.
11117
11118 2010-07-30  Bruno Haible  <bruno@clisp.org>
11119
11120         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11122         a 'char *'.
11123         Reported by Rainer Tammer.
11124
11125 2010-07-30  Bruno Haible  <bruno@clisp.org>
11126
11127         unlink: Update regarding AIX.
11128         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11129         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11130         Reported by Rainer Tammer.
11131
11132 2010-07-30  Bruno Haible  <bruno@clisp.org>
11133
11134         symlink: Update regarding AIX.
11135         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11136         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11137         Reported by Rainer Tammer.
11138
11139 2010-07-30  Bruno Haible  <bruno@clisp.org>
11140
11141         strndup: Update regarding AIX.
11142         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11143         AIX 7.
11144         Reported by Rainer Tammer.
11145
11146 2010-07-30  Bruno Haible  <bruno@clisp.org>
11147
11148         stat: Update regarding AIX.
11149         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11150         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11151         Reported by Rainer Tammer.
11152
11153 2010-07-30  Bruno Haible  <bruno@clisp.org>
11154
11155         truncl: Fix autoconf test.
11156         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11157         whether truncl works.
11158         Reported by Rainer Tammer.
11159
11160 2010-07-30  Bruno Haible  <bruno@clisp.org>
11161
11162         round: Update regarding AIX.
11163         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11164         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11165         Reported by Rainer Tammer.
11166
11167 2010-07-30  Bruno Haible  <bruno@clisp.org>
11168
11169         rename: Update regarding AIX.
11170         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11171         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11172         Reported by Rainer Tammer.
11173
11174 2010-07-30  Bruno Haible  <bruno@clisp.org>
11175
11176         printf.m4: Update regarding AIX.
11177         * m4/printf.m4: Update comments regarding AIX.
11178         Reported by Rainer Tammer.
11179
11180 2010-07-30  Bruno Haible  <bruno@clisp.org>
11181
11182         iconv: Update regarding AIX.
11183         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11184         AIX 7.
11185         Reported by Rainer Tammer.
11186
11187 2010-07-30  Bruno Haible  <bruno@clisp.org>
11188
11189         getopt: Update regarding AIX.
11190         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11191         no on AIX.
11192         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11193         Reported by Rainer Tammer.
11194
11195 2010-07-30  Bruno Haible  <bruno@clisp.org>
11196
11197         ldexpl; Update regarding AIX.
11198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11199         on AIX 7.
11200         Reported by Rainer Tammer.
11201
11202 2010-07-30  Bruno Haible  <bruno@clisp.org>
11203
11204         frexpl: Update regarding AIX.
11205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11206         on AIX 7.
11207         Reported by Rainer Tammer.
11208
11209 2010-07-30  Bruno Haible  <bruno@clisp.org>
11210
11211         open, fopen: Update regarding AIX.
11212         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11213         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11214         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11215         * doc/posix-functions/fopen.texi: Likewise.
11216         Reported by Rainer Tammer.
11217
11218 2010-07-30  Bruno Haible  <bruno@clisp.org>
11219
11220         chown: Update doc regarding AIX.
11221         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11222         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11223         Reported by Rainer Tammer.
11224
11225 2010-07-30  Eric Blake  <eblake@redhat.com>
11226
11227         strtod: fix bug in replacement function on AIX
11228         * lib/strtod.c (strtod): Special case broken "0x" parse in
11229         underlying strtod.
11230         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11231         * doc/posix-functions/strtod.texi (strtod): Likewise.
11232         Reported by Rainer Tammer.
11233
11234 2010-07-30  Bruno Haible  <bruno@clisp.org>
11235
11236         mbrlen: Fix cross-compilation guess for AIX.
11237         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11238         guess. Leftover from 2008-12-22.
11239
11240 2010-07-30  Bruno Haible  <bruno@clisp.org>
11241
11242         mbrtowc: Fix cross-compilation guess for AIX.
11243         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11244         guess. Leftover from 2008-12-21.
11245
11246 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11247
11248         init.sh: work around trap limitation of some shells
11249         * tests/init.sh (setup_): Move exit trap outside of shell function.
11250
11251 2010-07-29  Eric Blake  <eblake@redhat.com>
11252
11253         strtod: aid debugging
11254         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11255         understanding why strtod is rejected.
11256
11257 2010-07-28  Bruno Haible  <bruno@clisp.org>
11258
11259         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11260         * lib/unistr/u8-chr.c: Include <string.h>.
11261         * tests/unistr/test-u8-chr.c: Likewise.
11262         * tests/unistr/test-u16-chr.c: Likewise.
11263         * tests/unistr/test-u32-chr.c: Likewise.
11264         * tests/unistr/test-u8-strchr.c: Likewise.
11265         * tests/unistr/test-u16-strchr.c: Likewise.
11266         * tests/unistr/test-u32-strchr.c: Likewise.
11267         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11268         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11269         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11270         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11271
11272 2010-07-28  Bruno Haible  <bruno@clisp.org>
11273
11274         Use spaces for indentation, not tabs.
11275         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11276
11277 2010-07-27  Bruno Haible  <bruno@clisp.org>
11278
11279         mbspcasecmp: Fix function specification.
11280         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11281         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11282         Reported by Eric Blake <eblake@redhat.com>.
11283
11284 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11285
11286         timespec: use cast and not conditional, as truncation isn't possible
11287         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11288         instead of a conditional.  Comment about the situation in more detail.
11289         This undoes most of the 2009-10-29 patch.
11290
11291 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11292
11293         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11294         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11295         * lib/unistr/u8-strchr.c: Likewise.
11296         * modules/unistr/u8-chr: Depend on memchr.
11297
11298         unistr/u*-strchr: add tests
11299         * modules/unistr/u8-strchr-tests: New file.
11300         * modules/unistr/u16-strchr-tests: New file.
11301         * modules/unistr/u32-strchr-tests: New file.
11302         * tests/unistr/test-strchr.h: New file.
11303         * tests/unistr/test-u8-strchr.c: New file.
11304         * tests/unistr/test-u16-strchr.c: New file.
11305         * tests/unistr/test-u32-strchr.c: New file.
11306
11307         unistr/u*-chr: test multibyte sequences more
11308         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11309         test vector.
11310         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11311         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11312         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11313
11314         unistr/u*-chr: test multibyte sequences
11315         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11316
11317         unistr/u*-chr: prepare for multibyte tests
11318         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11319         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11320         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11321         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11322         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11323         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11324
11325 2010-07-18  Bruno Haible  <bruno@clisp.org>
11326
11327         unistr/u8-strchr: Optimize non-ASCII argument case.
11328         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11329         because the first byte often matches anyway.
11330         Reported by Pádraig Brady <P@draigbrady.com>.
11331
11332 2010-07-15  Karl Berry  <karl@gnu.org>
11333
11334         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11335
11336 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11337
11338         getcwd: on Solaris, work better if ancestors are inaccessible
11339         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11340         buffer and size, try again with a large buffer.  This works better
11341         on Solaris, since its getcwd succeeds even if the path to the root
11342         is inaccessible, and this is helpful in common cases such as .zfs
11343         hidden directories.  Problem reported by J Chapman Flack in
11344         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11345         Use system getcwd if it's declared, not merely if it's partly
11346         working; use the partly-working test only to avoid needless effort
11347         if the system getcwd fails.
11348         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11349         comment that was already obsolete and is now even more obsolete.
11350         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11351         now might call strdup.
11352
11353 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11354
11355         pthread: Add enough so that coreutils/src/sort.c compiles.
11356         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11357         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11358         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11359         Include <sys/types.h>, in case it defines pthread_t.
11360         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11361         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11362         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11363         (pthread_rwlockattr_t, pthread_spinlock_t):
11364         New typedefs, if HAVE_PTHREAD_T is not defined.
11365         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11366         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11367         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11368         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11369         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11370         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11371         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11372         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11373         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11374         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11375         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11376         New macros.
11377         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11378         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11379         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11380         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11381         (pthread_spin_unlock): New dummy functions.
11382         (pthread_create): Return EAGAIN; don't set errno.
11383         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11384         require AC_C_INLINE.
11385         * modules/pthread (Depends-on): Add sched, time.
11386         (pthread.h): Use AM_V_GEN.
11387
11388 2010-07-13  Bruno Haible  <bruno@clisp.org>
11389
11390         striconveh: Don't malloc memory if the result buffer is sufficient.
11391         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11392         buffer if its size is sufficient.
11393         Reported by Ludovic Courtès <ludo@gnu.org>.
11394
11395 2010-07-13  Bruno Haible  <bruno@clisp.org>
11396
11397         strtod: Add safety check.
11398         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11399
11400 2010-07-12  Bruno Haible  <bruno@clisp.org>
11401
11402         Unify tests that set gl_cv_func_ldexpl_no_libm.
11403         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11404         gl_FUNC_LDEXPL.
11405         (gl_FUNC_LDEXPL): Invoke it.
11406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11407
11408 2010-07-12  Bruno Haible  <bruno@clisp.org>
11409
11410         Unify tests that set gl_cv_func_ldexp_no_libm.
11411         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11412         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11413         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11414         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11415         * modules/strtod (Files): Add m4/ldexp.m4.
11416
11417 2010-07-12  Bruno Haible  <bruno@clisp.org>
11418
11419         Unify tests that set gl_cv_func_frexpl_no_libm.
11420         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11421         gl_FUNC_FREXPL_NO_LIBM.
11422         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11423         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11424
11425 2010-07-12  Bruno Haible  <bruno@clisp.org>
11426
11427         Unify tests that set gl_cv_func_frexp_no_libm.
11428         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11429         gl_FUNC_FREXP_NO_LIBM.
11430         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11431         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11432
11433 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11434
11435         memcoll: clarify sizes versus lengths, document better, and tweak perf
11436         * lib/memcoll.c (strcoll_loop, memcoll0):
11437         Improve quality of descriptive comments.  Name variables
11438         consistently as to whether they are lengths (which do not include
11439         terminating null) versus sizes (which do).
11440         * lib/xmemcoll.c (xmemcoll0): Likewise.
11441         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11442         returned when s1size == 0; this is easier to compile and saves
11443         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11444
11445 2010-07-12  Bruno Haible  <bruno@clisp.org>
11446
11447         Tests for module '_Exit'.
11448         * modules/_Exit-tests: New file.
11449         * tests/test-_Exit.sh: New file.
11450         * tests/test-_Exit.c: New file.
11451
11452         New module '_Exit'.
11453         * lib/stdlib.in.h (__attribute__): New macro.
11454         (_Exit): New declaration.
11455         * lib/_Exit.c: New file.
11456         * m4/_Exit.m4: New file.
11457         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11458         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11459         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11460         * modules/_Exit: New file.
11461         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11462         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11463
11464 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11465
11466         strtod: make it more-accurate typically, and don't require libm
11467         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11468         Include limits.h.  Don't include string.h.
11469         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11470         (locale_isspace): New function, so that no casts are needed to
11471         check whether *s is a space.
11472         (ldexp): Provide an unused dummy if not available.
11473         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11474         (strtod): Use them.  This implementation prefers to use the
11475         underlying strtod if available, falling back on our own code
11476         only to fix known bugs.  This is more likely to produce an
11477         accurate result.  Also, it avoids the use of libm functions.
11478         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11479         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11480         was absent, but it caused a test failure with coreutils.
11481         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11482         with libm.
11483         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11484         * modules/strtod-tests (Makefile.am): Likewise.
11485
11486 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11487             Bruno Haible  <bruno@clisp.org>
11488
11489         unistr/u8-strchr: Optimize ASCII argument case.
11490         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11491
11492 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11493
11494         (x)memcoll: minor tweaks
11495         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11496         is after the type that it qualifies.
11497         (memcoll0): Likewise.
11498         * lib/memcoll.h (memcoll0): Likewise.
11499         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11500         * lib/xmemcoll.h (xmemcoll0): Likewise.
11501         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11502         differs from memcoll in that the NUL byte is part of the argument.
11503         Omit the abort-checks, as performance is a real issue here.  Plus,
11504         the checks were wrong anyway (an off-by-one error).  Omit local
11505         variable 'diff', as it's a bit clearer that way.
11506         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11507         no longer needed.
11508
11509 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11510
11511         (x)memcoll: speedup when input is known to be NUL delimited
11512         * lib/memcoll.c: Include stdlib.
11513         (memcoll0) New function.
11514         (strcoll_loop) New function, refactored for use in both memcoll
11515         and memcoll0.
11516         * lib/memcoll.h: Add prototype for memcoll0.
11517         * lib/xmemcoll.c: (xmemcoll0) New function.
11518         (collate_error) New function, refactored for use in both xmemcoll
11519         and xmemcoll0.
11520         * lib/xmemcoll.h: Add prototype for xmemcoll0.
11521         * m4/memcoll.m4: add inline invocation.
11522
11523 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11524
11525         * build-aux/bootstrap: Remove any local translations
11526         from the translation project synchronization directory,
11527         so that local only translations are not distributed.
11528
11529 2010-07-04  Bruno Haible  <bruno@clisp.org>
11530
11531         fsusage: Clarify which code applies to which platforms.
11532         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11533         platform.
11534         * lib/fsusage.c (get_fs_usage): Likewise.
11535
11536 2010-07-04  Bruno Haible  <bruno@clisp.org>
11537
11538         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11539         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11540         Reported by Martin Lambers <marlam@marlam.de>.
11541
11542 2010-07-04  Jim Meyering  <meyering@redhat.com>
11543
11544         hash: once again explicitly disallow insertion of NULL
11545         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11546         inserting a NULL pointer cannot work with these functions.
11547         Add a comment with details.
11548         This reverts part of the 2010-07-01 commit, 5bef1a35
11549         "hash: extend module to deal with non-pointer keys".
11550
11551 2010-07-01  Bruno Haible  <bruno@clisp.org>
11552
11553         stdbool: Update doc.
11554         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11555         Info from Christian Weisgerber <naddy@mips.inka.de>.
11556
11557 2010-07-01  Jim Meyering  <meyering@redhat.com>
11558
11559         hash: extend module to deal with non-pointer keys
11560         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11561         but that allows insertion of non-pointer entries.
11562         Do not disallow an ENTRY value of NULL.
11563         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11564         * lib/hash.h (hash_insert0): Declare.
11565
11566 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11567
11568         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11569         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11570         not present (i.e. with autoconf 2.59 and when using gettextize, not
11571         gnulib), require AC_GNU_SOURCE instead.
11572
11573 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11574
11575         idpriv-drop: Fix tests.
11576         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11577         not to the test-idpriv-droptemp program.
11578
11579 2010-06-29  Bruno Haible  <bruno@clisp.org>
11580
11581         string: Fix syntax error with g++ 2.96.
11582         * lib/string.in.h (__pure__): Remove definition.
11583         (_GL_ATTRIBUTE_PURE): New macro.
11584         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11585         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11586         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11587
11588 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11589
11590         unitypes: Fix bug introduced on 2010-05-18.
11591         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11592
11593 2010-06-22  Eric Blake  <eblake@redhat.com>
11594
11595         memmem: slight optimization
11596         * lib/str-two-way.h (critical_factorization): Update comments.
11597         Reduce work during factorization phase.
11598         Reported by Carlos Bueno <carlos@bueno.org>.
11599
11600 2010-06-21  Bruno Haible  <bruno@clisp.org>
11601
11602         Fix HAVE_CALLOC_POSIX misnomer.
11603         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11604         !HAVE_CALLOC_POSIX.
11605         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11606         HAVE_CALLOC_POSIX.
11607         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11608         instead of HAVE_CALLOC_POSIX.
11609         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11610         HAVE_CALLOC_POSIX.
11611
11612         Use modern idiom for calloc() replacement.
11613         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11614         AC_FUNC_CALLOC.
11615         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11616         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11617         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11618         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11619         (gl_REPLACE_CALLOC): New macro.
11620
11621 2010-06-21  Bruno Haible  <bruno@clisp.org>
11622
11623         Fix HAVE_REALLOC_POSIX misnomer.
11624         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11625         !HAVE_REALLOC_POSIX.
11626         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11627         HAVE_REALLOC_POSIX.
11628         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11629         instead of HAVE_REALLOC_POSIX.
11630         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11631         HAVE_REALLOC_POSIX.
11632
11633         Use modern idiom for realloc() replacement.
11634         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11635         AC_FUNC_REALLOC.
11636         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11637         Autoconf's AC_FUNC_REALLOC.
11638         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11639         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11640         (gl_REPLACE_REALLOC): New macro.
11641         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11642
11643 2010-06-21  Bruno Haible  <bruno@clisp.org>
11644
11645         Fix HAVE_MALLOC_POSIX misnomer.
11646         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11647         !HAVE_MALLOC_POSIX.
11648         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11649         HAVE_MALLOC_POSIX.
11650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11651         instead of HAVE_MALLOC_POSIX.
11652         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11653         HAVE_MALLOC_POSIX.
11654
11655         Use modern idiom for malloc() replacement.
11656         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11657         AC_FUNC_MALLOC.
11658         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11659         Autoconf's AC_FUNC_MALLOC.
11660         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11661         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11662         (gl_REPLACE_MALLOC): New macro.
11663         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11664
11665 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11666
11667         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11668         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11669         This macro takes 3 arguments, not 4.
11670
11671 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11672
11673         ipv6: fix detection under mingw
11674         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11675         in6_addr.
11676
11677 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11678
11679         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11680         that strtod() works when cross-compiling to a glibc version known
11681         to work.
11682
11683 2010-06-15  Bruno Haible  <bruno@clisp.org>
11684
11685         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11686
11687 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11688
11689         select: Correct timeout.
11690         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11691
11692 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11693
11694         git-version-gen: init shell var to avoid env var influence
11695         * build-aux/git-version-gen (v): Init shell var to empty.
11696
11697 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11698
11699         priv-set: Don't assume that priv.h exists merely because getppriv does.
11700         See Jan Andersen's bug report about AIX 5L in
11701         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11702         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11703         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11704         * lib/priv-set.h: Likewise.
11705         * tests/test-priv-set.c: Likewise.
11706
11707 2010-06-13  Bruno Haible  <bruno@clisp.org>
11708
11709         relocatable: Make it easier to test whether to install wrappers.
11710         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11711         RELOCATABLE_VIA_WRAPPER.
11712
11713 2010-06-13  Bruno Haible  <bruno@clisp.org>
11714
11715         gnulib-tool: Display specified modules and dependencies differently.
11716         * gnulib-tool (func_show_module_list): New function.
11717         (func_import, func_create_testdir): Invoke it.
11718         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11719
11720 2010-06-13  Bruno Haible  <bruno@clisp.org>
11721
11722         gnulib-tool: Align code of func_import and func_create_testdir.
11723         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11724         specified_modules.
11725
11726 2010-06-12  Jim Meyering  <meyering@redhat.com>
11727
11728         test-inttostr: avoid spurious failure on Solaris 9
11729         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11730         to accept "%ju".  Reported by Bruno Haible.
11731
11732 2010-06-11  Jim Meyering  <meyering@redhat.com>
11733
11734         test-sys_socket: mark variables as used more readably
11735         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11736         as "used" explicitly via (void) statement casts.  This is more
11737         readable than using them in an artificial return expression.
11738         Suggestion from Bruno Haible.
11739
11740 2010-06-11  Bruno Haible  <bruno@clisp.org>
11741
11742         Avoid some more warnings from "gcc -Wwrite-strings".
11743         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11744         to 'const char *'.
11745         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11746         * tests/test-c-strcasestr.c (main): Likewise.
11747         * tests/test-mbscasestr1.c (main): Likewise.
11748         * tests/test-mbscasestr2.c (main): Likewise.
11749         * tests/test-memmem.c (main): Likewise.
11750         * tests/test-strstr.c (main): Likewise.
11751         * tests/test-strcasestr.c (main): Likewise.
11752
11753 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11754
11755         init.sh: change framework_failure_ to fail with status 99, not 1
11756         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11757         automake's parallel-tests rule that this is an unexpected failure,
11758         even if the test is listed in XFAIL_TESTS.
11759
11760 2010-06-11  Jim Meyering  <meyering@redhat.com>
11761
11762         test-inttostr: avoid warnings about 4-6KB literal strings
11763         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11764         Include "macros.h", for its definition of ASSERT.
11765         (CK): s/assert/ASSERT/
11766         * modules/inttostr-tests (Files): Add macros.h.
11767
11768         init.sh: don't use $ME_ or skip_ before they are defined
11769         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11770         their first uses.  Also hoist their companions: warn_, fail_,
11771         framework_failure_, $stderr_fileno.  Prompted by a patch from
11772         Stefano Lattarini.
11773
11774         test-sys_socket: avoid set-but-not-used warnings from gcc
11775         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11776         avoid warning about set-but-not-used variables.
11777
11778         test-xvasprintf: avoid 'const' discard warnings
11779         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11780         "const" when assigning from literal strings.
11781         (test_xasprintf): Add "void" in function argument list to placate
11782         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11783
11784         tests: avoid compilation warnings in argmatch and exclude tests...
11785         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11786         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11787         Since it always exits, declare with the "noreturn" attribute.
11788         * tests/test-argmatch.c: Likewise.
11789
11790         tests: avoid 'const' discard warnings in mbsstr tests
11791         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11792         * tests/test-mbsstr2.c (main): Likewise.
11793
11794         test-verify: avoid warning from gcc's -Wmissing-declarations
11795         * tests/test-verify.c (function): Declare to be static.
11796
11797         test-inttostr.c: include <string.h> for use of strcmp
11798         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11799
11800         test-linkat: avoid failed assertion on "other" architectures
11801         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11802         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11803         sparc: https://bugs.launchpad.net/bugs/591968
11804
11805 2010-06-11  Jim Meyering  <meyering@redhat.com>
11806
11807         printf.m4: avoid autoconf's "Expanded Before Required" warning
11808         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11809         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11810         autoconf warning.
11811
11812 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11813
11814         Replacement header templates are now named with ".in", not "_".
11815         * doc/gnulib-intro.texi: Correct.
11816
11817 2010-06-10  Jim Meyering  <meyering@redhat.com>
11818
11819         inttostr-tests: depend on snprintf, not snprintf-posix
11820         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11821         snprintf-posix, to avoid this aclocal failure:
11822           missing file gnulib-tests/vasnprintf.c
11823           configure.ac:45: error: expected source file, required through \
11824           AC_LIBSOURCES, not found
11825
11826 2010-06-10  Jim Meyering  <meyering@redhat.com>
11827
11828         inttostr: add a new function, inttostr, and tests
11829         The namesake function was not available.  The existence of the
11830         template file, inttostr.c makes its addition nontrivial.
11831         * lib/anytostr.c: Rename from inttostr.c.
11832         (anytostr): Rename from inttostr.
11833         * lib/inttostr.c: New file.
11834         * modules/inttostr (Files): Add anytostr.c.
11835         (Makefile.am): Set lib_SOURCES instead of ...
11836         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11837         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11838         * lib/offtostr.c: Likewise.
11839         * lib/uinttostr.c: Likewise.
11840         * lib/umaxtostr.c: Likewise.
11841         * modules/inttostr-tests: New file.
11842         * tests/test-inttostr.c: New file.  Test these functions.
11843
11844 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11845             Bruno Haible  <bruno@clisp.org>
11846
11847         Add "Extending Gnulib" chapter to manual.
11848         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11849         chapter.
11850         (Extending Gnulib): New chapter.
11851         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11852         chapter.
11853
11854 2010-06-09  Bruno Haible  <bruno@clisp.org>
11855
11856         Avoid relocwrapper link errors due to gnulib replacement functions.
11857         * lib/areadlink.c: Use the system's malloc, realloc functions.
11858         (areadlink): Set errno to ENOMEM explicitly.
11859         * modules/areadlink (Depends-on): Remove malloc-posix.
11860         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11861
11862 2010-06-09  Bruno Haible  <bruno@clisp.org>
11863
11864         Avoid relocwrapper link errors due to gnulib replacement functions.
11865         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11866         * lib/malloca.c: Likewise.
11867         * lib/relocatable.c: Likewise.
11868         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11869         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11870         * lib/setenv.c: Use the system's malloc, realloc functions.
11871         * lib/strerror.c: Use the system's sprintf function.
11872         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11873
11874 2010-06-04  Bruno Haible  <bruno@clisp.org>
11875
11876         Prefer documented low-level autoconf macro names.
11877         * m4/lib-link.m4: Use m4_translit instead of translit.
11878         * m4/environ.m4: Likewise.
11879         * m4/mathfunc.m4: Likewise.
11880         * m4/onceonly.m4: Likewise.
11881         * m4/stdint.m4: Likewise.
11882         Suggested by Eric Blake.
11883
11884 2010-06-04  Martin Lambers  <marlam@marlam.de>
11885             Bruno Haible  <bruno@clisp.org>
11886
11887         havelib: Allow library names with '+' characters.
11888         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11889         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11890
11891 2010-06-09  Bruno Haible  <bruno@clisp.org>
11892
11893         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11894         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11895         realloc failed.
11896
11897 2010-06-08  Peter Simons  <simons@cryp.to>
11898
11899         maint.mk: make the news-check rule more configurable
11900         * top/maint.mk (news-check-lines-spec) New variable.
11901         (news-check): Use "sed -n 1,10p" in place of "head".
11902
11903 2010-06-07  Jim Meyering  <meyering@redhat.com>
11904
11905         do-release-commit-and-tag: fix typo in --help
11906         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11907
11908         regex: avoid new dead-code warning with gcc-4.6.0
11909         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11910         if-block containing a while-loop.  It's been unused for at least
11911         5 years.
11912
11913 2010-06-05  Bruno Haible  <bruno@clisp.org>
11914
11915         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11916         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11917
11918 2010-06-04  Bruno Haible  <bruno@clisp.org>
11919
11920         Update to GNU gettext 0.18.1.
11921         * modules/gettext (configure.ac): Require gettext infrastructure from
11922         version 0.18.1.
11923
11924 2010-06-03  Bruno Haible  <bruno@clisp.org>
11925
11926         Don't use AC_LIBOBJ with file names in subdirectories.
11927         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11928         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11929         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11930         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11931         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11932         gl_LIBUNISTRING_LIBSOURCE.
11933         (Makefile.am): Augment lib_SOURCES here, conditionally.
11934         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11935
11936 2010-06-03  Bruno Haible  <bruno@clisp.org>
11937
11938         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11939         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11940         expansion does not end with a newline.
11941         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11942         unnecessary newline.
11943
11944 2010-06-03  Bruno Haible  <bruno@clisp.org>
11945
11946         Reduce dependencies.
11947         * tests/test-quotearg.h: New file, extracted from
11948         tests/test-quotearg.c.
11949         * tests/test-quotearg-simple.c: New file, extracted from
11950         tests/test-quotearg.c.
11951         * tests/test-quotearg.c: Don't include <ctype.h>.
11952         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11953         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11954         use_quote_double_quotes, use_quotearg_colon): Moved to
11955         tests/test-quotearg.h.
11956         (results_g, flag_results, custom_quotes, custom_results): Moved
11957         to tests/test-quotearg-simple.c.
11958         (main): Moved the part that does not depend on gettext to
11959         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11960         performed.
11961         * modules/quotearg-simple: New file.
11962         * modules/quotearg-simple-tests: New file.
11963         * modules/quotearg (Depends-on): Add quotearg-simple.
11964         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11965         (Files): Add tests/test-quotearg.h.
11966         Reported by Paolo Bonzini.
11967
11968 2010-06-03  Bruno Haible  <bruno@clisp.org>
11969
11970         Reduce dependencies.
11971         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11972
11973 2010-06-03  Bruno Haible  <bruno@clisp.org>
11974
11975         time: Undefine more broken macros.
11976         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11977         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11978         Reported by Eric Blake.
11979
11980 2010-06-03  Bruno Haible  <bruno@clisp.org>
11981
11982         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11983         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11984         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11985         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11986         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11987         Reported by Ludovic Courtès <ludo@gnu.org>.
11988
11989 2010-06-02  Eric Blake  <eblake@redhat.com>
11990
11991         time: work with mingw + pthreads-win32 library
11992         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11993         if timespec is defined only in pthread.h.
11994         * modules/time (Makefile.am): Substitute it.
11995         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11996         <pthread.h>, when needed.
11997         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11998         from the library.
11999
12000 2010-05-31  Bruno Haible  <bruno@clisp.org>
12001
12002         Avoid expanding two macros in the wrong order.
12003         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
12004         gl_LIBUNISTRING if it is defined.
12005         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
12006         autoconf >= 2.64.
12007         Reported by Ludovic Courtès <ludo@gnu.org>.
12008
12009 2010-05-27  Jim Meyering  <meyering@redhat.com>
12010
12011         maint.mk: also prohibit "#undef" of always-defined symbols
12012         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
12013         Allow more than one space before the symbol name.
12014         (sc_prohibit_always-defined_macros): Use grep's -E, now that
12015         the regexp uses alternation.
12016
12017 2010-05-26  Eric Blake  <eblake@redhat.com>
12018
12019         maint.mk: avoid echo -e
12020         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
12021         Convert all uses of echo -* to printf.
12022         Reported by Matthias Bolte.
12023
12024 2010-05-25  Bruno Haible  <bruno@clisp.org>
12025
12026         Update to GNU gettext 0.18, part 2.
12027         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
12028         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
12029
12030 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12031
12032         Add missing include in test-pwrite.c.
12033         * tests/test-pwrite.c: Include string.h, for strcmp.
12034
12035 2010-05-24  Bruno Haible  <bruno@clisp.org>
12036
12037         * NEWS: Mention requirement for Automake option 'subdir-objects'.
12038
12039 2010-05-24  Bruno Haible  <bruno@clisp.org>
12040
12041         Don't use conversion with transliteration in u{8,16,32}_strcoll.
12042         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
12043         iconveh_error argument.
12044         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
12045         U_STRCONV_TO_LOCALE.
12046         * lib/unistr/u16-strcoll.c: Likewise.
12047         * lib/unistr/u32-strcoll.c: Likewise.
12048         * modules/unistr/u8-strcoll (Depends-on): Add
12049         uniconv/u8-strconv-to-enc, localcharset. Remove
12050         uniconv/u8-strconv-to-locale.
12051         (configure.ac): Bump version number.
12052         * modules/unistr/u16-strcoll (Depends-on): Add
12053         uniconv/u16-strconv-to-enc, localcharset. Remove
12054         uniconv/u16-strconv-to-locale.
12055         (configure.ac): Bump version number.
12056         * modules/unistr/u32-strcoll (Depends-on): Add
12057         uniconv/u32-strconv-to-enc, localcharset. Remove
12058         uniconv/u32-strconv-to-locale.
12059         (configure.ac): Bump version number.
12060
12061 2010-05-24  Bruno Haible  <bruno@clisp.org>
12062
12063         Avoid a test failure on NetBSD 5.0.
12064         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12065         an iconv() bug.
12066
12067 2010-05-24  Bruno Haible  <bruno@clisp.org>
12068
12069         Adjust #include directive style.
12070         * modules/regex (Includes): Recommend to write <regex.h>.
12071
12072 2010-05-24  Bruno Haible  <bruno@clisp.org>
12073
12074         regex: Don't require alloca.
12075         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12076         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12077         only inside if (0).
12078
12079 2010-05-23  Jim Meyering  <meyering@redhat.com>
12080
12081         test-renameat.c: include <sys/stat.h>
12082         * tests/test-renameat.c: Include <sys/stat.h>; required for
12083         definition of S_IS* macros.
12084
12085 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12086
12087         Update maintainer documentation for 'relocatable-prog' module.
12088         * doc/relocatable-maint.texi: Update.
12089         Comments by Bruno Haible.
12090
12091 2010-05-23  Bruno Haible  <bruno@clisp.org>
12092
12093         git-merge-changelog: Enable --split-merged-entry by default.
12094         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12095         (usage): Don't mention this option any more.
12096         Reported by Ralf Wildenhues.
12097
12098 2010-05-23  Jim Meyering  <meyering@redhat.com>
12099
12100         test-pwrite: do not leave behind a test file named "out"
12101         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12102         The trivial-looking use of init.sh is really necessary.
12103         It ensures that the temporary file, "out", is created in
12104         a temporary directory, and removed upon termination.
12105         * tests/test-pwrite.sh: Re-add file.
12106         * modules/pwrite-tests: Reference it.
12107
12108 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12109
12110         Fix output redirection buglet in init.sh.
12111         * tests/init.sh: Fix redirection of stderr.
12112
12113 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12114
12115         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12116
12117 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12118
12119         * modules/valgrind-tests: New file.
12120         * m4/valgrind-tests.m4: New file.
12121         * doc/valgrind-tests.texi: New file.
12122         * doc/gnulib.texi (Running self-tests under valgrind): New
12123         section.
12124
12125 2010-05-19  Bruno Haible  <bruno@clisp.org>
12126
12127         Clean up dead code in recent commit.
12128         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12129         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12130         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12131         Suggested by Paolo Bonzini.
12132
12133 2010-05-19  Bruno Haible  <bruno@clisp.org>
12134
12135         Avoid valgrind error reports from libunistring.
12136         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12137         * modules/libunistring (Files): Add it.
12138         * modules/libunistring-optional (Files): Likewise.
12139
12140 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12141             Bruno Haible  <bruno@clisp.org>
12142
12143         New module 'libunistring-optional'.
12144         * modules/libunistring-optional: New file.
12145         * m4/libunistring-base.m4: New file.
12146         * m4/libunistring-optional.m4: New file.
12147         * lib/unicase.in.h: Renamed from lib/unicase.h.
12148         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12149         * lib/unictype.in.h: Renamed from lib/unictype.h.
12150         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12151         * lib/uniname.in.h: Renamed from lib/uniname.h.
12152         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12153         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12154         * lib/unistr.in.h: Renamed from lib/unistr.h.
12155         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12156         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12157         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12158         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12159         gl_LIBUNISTRING. If the library was found, determine the installed
12160         version and set LIBUNISTRING_VERSION.
12161         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12162         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12163         handle a configuration option --with-included-libunistring.
12164         * modules/libunistring (Files): Add m4/absolute-header.m4.
12165         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12166         Add m4/libunistring-base.m4.
12167         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12168         (Makefile.am): Build unicase.h from unicase.in.h.
12169         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12170         Add m4/libunistring-base.m4.
12171         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12172         (Makefile.am): Build uniconv.h from uniconv.in.h.
12173         * modules/unictype/base (Files): Use unictype.in.h instead of
12174         unictype.h. Add m4/libunistring-base.m4.
12175         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12176         (Makefile.am): Build unictype.h from unictype.in.h.
12177         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12178         Add m4/libunistring-base.m4.
12179         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12180         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12181         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12182         Add m4/libunistring-base.m4.
12183         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12184         (Makefile.am): Build uniname.h from uniname.in.h.
12185         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12186         Add m4/libunistring-base.m4.
12187         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12188         (Makefile.am): Build uninorm.h from uninorm.in.h.
12189         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12190         unistdio.h. Add m4/libunistring-base.m4.
12191         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12192         (Makefile.am): Build unistdio.h from unistdio.in.h.
12193         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12194         Add m4/libunistring-base.m4.
12195         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12196         (Makefile.am): Build unistr.h from unistr.in.h.
12197         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12198         Add m4/libunistring-base.m4.
12199         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12200         (Makefile.am): Build unitypes.h from unitypes.in.h.
12201         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12202         Add m4/libunistring-base.m4.
12203         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12204         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12205         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12206         uniwidth.h. Add m4/libunistring-base.m4.
12207         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12208         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12209         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12210         instead of augmenting lib_SOURCES.
12211         * modules/unicase/empty-suffix-context: Likewise.
12212         * modules/unicase/locale-language: Likewise.
12213         * modules/unicase/tolower: Likewise.
12214         * modules/unicase/totitle: Likewise.
12215         * modules/unicase/toupper: Likewise.
12216         * modules/unicase/u8-casecmp: Likewise.
12217         * modules/unicase/u8-casecoll: Likewise.
12218         * modules/unicase/u8-casefold: Likewise.
12219         * modules/unicase/u8-casexfrm: Likewise.
12220         * modules/unicase/u8-ct-casefold: Likewise.
12221         * modules/unicase/u8-ct-tolower: Likewise.
12222         * modules/unicase/u8-ct-totitle: Likewise.
12223         * modules/unicase/u8-ct-toupper: Likewise.
12224         * modules/unicase/u8-is-cased: Likewise.
12225         * modules/unicase/u8-is-casefolded: Likewise.
12226         * modules/unicase/u8-is-lowercase: Likewise.
12227         * modules/unicase/u8-is-titlecase: Likewise.
12228         * modules/unicase/u8-is-uppercase: Likewise.
12229         * modules/unicase/u8-prefix-context: Likewise.
12230         * modules/unicase/u8-suffix-context: Likewise.
12231         * modules/unicase/u8-tolower: Likewise.
12232         * modules/unicase/u8-totitle: Likewise.
12233         * modules/unicase/u8-toupper: Likewise.
12234         * modules/unicase/u16-casecmp: Likewise.
12235         * modules/unicase/u16-casecoll: Likewise.
12236         * modules/unicase/u16-casefold: Likewise.
12237         * modules/unicase/u16-casexfrm: Likewise.
12238         * modules/unicase/u16-ct-casefold: Likewise.
12239         * modules/unicase/u16-ct-tolower: Likewise.
12240         * modules/unicase/u16-ct-totitle: Likewise.
12241         * modules/unicase/u16-ct-toupper: Likewise.
12242         * modules/unicase/u16-is-cased: Likewise.
12243         * modules/unicase/u16-is-casefolded: Likewise.
12244         * modules/unicase/u16-is-lowercase: Likewise.
12245         * modules/unicase/u16-is-titlecase: Likewise.
12246         * modules/unicase/u16-is-uppercase: Likewise.
12247         * modules/unicase/u16-prefix-context: Likewise.
12248         * modules/unicase/u16-suffix-context: Likewise.
12249         * modules/unicase/u16-tolower: Likewise.
12250         * modules/unicase/u16-totitle: Likewise.
12251         * modules/unicase/u16-toupper: Likewise.
12252         * modules/unicase/u32-casecmp: Likewise.
12253         * modules/unicase/u32-casecoll: Likewise.
12254         * modules/unicase/u32-casefold: Likewise.
12255         * modules/unicase/u32-casexfrm: Likewise.
12256         * modules/unicase/u32-ct-casefold: Likewise.
12257         * modules/unicase/u32-ct-tolower: Likewise.
12258         * modules/unicase/u32-ct-totitle: Likewise.
12259         * modules/unicase/u32-ct-toupper: Likewise.
12260         * modules/unicase/u32-is-cased: Likewise.
12261         * modules/unicase/u32-is-casefolded: Likewise.
12262         * modules/unicase/u32-is-lowercase: Likewise.
12263         * modules/unicase/u32-is-titlecase: Likewise.
12264         * modules/unicase/u32-is-uppercase: Likewise.
12265         * modules/unicase/u32-prefix-context: Likewise.
12266         * modules/unicase/u32-suffix-context: Likewise.
12267         * modules/unicase/u32-tolower: Likewise.
12268         * modules/unicase/u32-totitle: Likewise.
12269         * modules/unicase/u32-toupper: Likewise.
12270         * modules/unicase/ulc-casecmp: Likewise.
12271         * modules/unicase/ulc-casecoll: Likewise.
12272         * modules/unicase/ulc-casexfrm: Likewise.
12273         * modules/uniconv/u8-conv-from-enc: Likewise.
12274         * modules/uniconv/u8-conv-to-enc: Likewise.
12275         * modules/uniconv/u8-strconv-from-enc: Likewise.
12276         * modules/uniconv/u8-strconv-from-locale: Likewise.
12277         * modules/uniconv/u8-strconv-to-enc: Likewise.
12278         * modules/uniconv/u8-strconv-to-locale: Likewise.
12279         * modules/uniconv/u16-conv-from-enc: Likewise.
12280         * modules/uniconv/u16-conv-to-enc: Likewise.
12281         * modules/uniconv/u16-strconv-from-enc: Likewise.
12282         * modules/uniconv/u16-strconv-from-locale: Likewise.
12283         * modules/uniconv/u16-strconv-to-enc: Likewise.
12284         * modules/uniconv/u16-strconv-to-locale: Likewise.
12285         * modules/uniconv/u32-conv-from-enc: Likewise.
12286         * modules/uniconv/u32-conv-to-enc: Likewise.
12287         * modules/uniconv/u32-strconv-from-enc: Likewise.
12288         * modules/uniconv/u32-strconv-from-locale: Likewise.
12289         * modules/uniconv/u32-strconv-to-enc: Likewise.
12290         * modules/uniconv/u32-strconv-to-locale: Likewise.
12291         * modules/unictype/bidicategory-byname: Likewise.
12292         * modules/unictype/bidicategory-name: Likewise.
12293         * modules/unictype/bidicategory-of: Likewise.
12294         * modules/unictype/bidicategory-test: Likewise.
12295         * modules/unictype/block-list: Likewise.
12296         * modules/unictype/block-test: Likewise.
12297         * modules/unictype/category-C: Likewise.
12298         * modules/unictype/category-Cc: Likewise.
12299         * modules/unictype/category-Cf: Likewise.
12300         * modules/unictype/category-Cn: Likewise.
12301         * modules/unictype/category-Co: Likewise.
12302         * modules/unictype/category-Cs: Likewise.
12303         * modules/unictype/category-L: Likewise.
12304         * modules/unictype/category-Ll: Likewise.
12305         * modules/unictype/category-Lm: Likewise.
12306         * modules/unictype/category-Lo: Likewise.
12307         * modules/unictype/category-Lt: Likewise.
12308         * modules/unictype/category-Lu: Likewise.
12309         * modules/unictype/category-M: Likewise.
12310         * modules/unictype/category-Mc: Likewise.
12311         * modules/unictype/category-Me: Likewise.
12312         * modules/unictype/category-Mn: Likewise.
12313         * modules/unictype/category-N: Likewise.
12314         * modules/unictype/category-Nd: Likewise.
12315         * modules/unictype/category-Nl: Likewise.
12316         * modules/unictype/category-No: Likewise.
12317         * modules/unictype/category-P: Likewise.
12318         * modules/unictype/category-Pc: Likewise.
12319         * modules/unictype/category-Pd: Likewise.
12320         * modules/unictype/category-Pe: Likewise.
12321         * modules/unictype/category-Pf: Likewise.
12322         * modules/unictype/category-Pi: Likewise.
12323         * modules/unictype/category-Po: Likewise.
12324         * modules/unictype/category-Ps: Likewise.
12325         * modules/unictype/category-S: Likewise.
12326         * modules/unictype/category-Sc: Likewise.
12327         * modules/unictype/category-Sk: Likewise.
12328         * modules/unictype/category-Sm: Likewise.
12329         * modules/unictype/category-So: Likewise.
12330         * modules/unictype/category-Z: Likewise.
12331         * modules/unictype/category-Zl: Likewise.
12332         * modules/unictype/category-Zp: Likewise.
12333         * modules/unictype/category-Zs: Likewise.
12334         * modules/unictype/category-and: Likewise.
12335         * modules/unictype/category-and-not: Likewise.
12336         * modules/unictype/category-byname: Likewise.
12337         * modules/unictype/category-name: Likewise.
12338         * modules/unictype/category-none: Likewise.
12339         * modules/unictype/category-of: Likewise.
12340         * modules/unictype/category-or: Likewise.
12341         * modules/unictype/category-test: Likewise.
12342         * modules/unictype/combining-class: Likewise.
12343         * modules/unictype/ctype-alnum: Likewise.
12344         * modules/unictype/ctype-alpha: Likewise.
12345         * modules/unictype/ctype-blank: Likewise.
12346         * modules/unictype/ctype-cntrl: Likewise.
12347         * modules/unictype/ctype-digit: Likewise.
12348         * modules/unictype/ctype-graph: Likewise.
12349         * modules/unictype/ctype-lower: Likewise.
12350         * modules/unictype/ctype-print: Likewise.
12351         * modules/unictype/ctype-punct: Likewise.
12352         * modules/unictype/ctype-space: Likewise.
12353         * modules/unictype/ctype-upper: Likewise.
12354         * modules/unictype/ctype-xdigit: Likewise.
12355         * modules/unictype/decimal-digit: Likewise.
12356         * modules/unictype/digit: Likewise.
12357         * modules/unictype/mirror: Likewise.
12358         * modules/unictype/numeric: Likewise.
12359         * modules/unictype/property-alphabetic: Likewise.
12360         * modules/unictype/property-ascii-hex-digit: Likewise.
12361         * modules/unictype/property-bidi-arabic-digit: Likewise.
12362         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12363         * modules/unictype/property-bidi-block-separator: Likewise.
12364         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12365         * modules/unictype/property-bidi-common-separator: Likewise.
12366         * modules/unictype/property-bidi-control: Likewise.
12367         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12368         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12369         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12370         * modules/unictype/property-bidi-european-digit: Likewise.
12371         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12372         * modules/unictype/property-bidi-left-to-right: Likewise.
12373         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12374         * modules/unictype/property-bidi-other-neutral: Likewise.
12375         * modules/unictype/property-bidi-pdf: Likewise.
12376         * modules/unictype/property-bidi-segment-separator: Likewise.
12377         * modules/unictype/property-bidi-whitespace: Likewise.
12378         * modules/unictype/property-byname: Likewise.
12379         * modules/unictype/property-combining: Likewise.
12380         * modules/unictype/property-composite: Likewise.
12381         * modules/unictype/property-currency-symbol: Likewise.
12382         * modules/unictype/property-dash: Likewise.
12383         * modules/unictype/property-decimal-digit: Likewise.
12384         * modules/unictype/property-default-ignorable-code-point: Likewise.
12385         * modules/unictype/property-deprecated: Likewise.
12386         * modules/unictype/property-diacritic: Likewise.
12387         * modules/unictype/property-extender: Likewise.
12388         * modules/unictype/property-format-control: Likewise.
12389         * modules/unictype/property-grapheme-base: Likewise.
12390         * modules/unictype/property-grapheme-extend: Likewise.
12391         * modules/unictype/property-grapheme-link: Likewise.
12392         * modules/unictype/property-hex-digit: Likewise.
12393         * modules/unictype/property-hyphen: Likewise.
12394         * modules/unictype/property-id-continue: Likewise.
12395         * modules/unictype/property-id-start: Likewise.
12396         * modules/unictype/property-ideographic: Likewise.
12397         * modules/unictype/property-ids-binary-operator: Likewise.
12398         * modules/unictype/property-ids-trinary-operator: Likewise.
12399         * modules/unictype/property-ignorable-control: Likewise.
12400         * modules/unictype/property-iso-control: Likewise.
12401         * modules/unictype/property-join-control: Likewise.
12402         * modules/unictype/property-left-of-pair: Likewise.
12403         * modules/unictype/property-line-separator: Likewise.
12404         * modules/unictype/property-logical-order-exception: Likewise.
12405         * modules/unictype/property-lowercase: Likewise.
12406         * modules/unictype/property-math: Likewise.
12407         * modules/unictype/property-non-break: Likewise.
12408         * modules/unictype/property-not-a-character: Likewise.
12409         * modules/unictype/property-numeric: Likewise.
12410         * modules/unictype/property-other-alphabetic: Likewise.
12411         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12412         * modules/unictype/property-other-grapheme-extend: Likewise.
12413         * modules/unictype/property-other-id-continue: Likewise.
12414         * modules/unictype/property-other-id-start: Likewise.
12415         * modules/unictype/property-other-lowercase: Likewise.
12416         * modules/unictype/property-other-math: Likewise.
12417         * modules/unictype/property-other-uppercase: Likewise.
12418         * modules/unictype/property-paired-punctuation: Likewise.
12419         * modules/unictype/property-paragraph-separator: Likewise.
12420         * modules/unictype/property-pattern-syntax: Likewise.
12421         * modules/unictype/property-pattern-white-space: Likewise.
12422         * modules/unictype/property-private-use: Likewise.
12423         * modules/unictype/property-punctuation: Likewise.
12424         * modules/unictype/property-quotation-mark: Likewise.
12425         * modules/unictype/property-radical: Likewise.
12426         * modules/unictype/property-sentence-terminal: Likewise.
12427         * modules/unictype/property-soft-dotted: Likewise.
12428         * modules/unictype/property-space: Likewise.
12429         * modules/unictype/property-terminal-punctuation: Likewise.
12430         * modules/unictype/property-test: Likewise.
12431         * modules/unictype/property-titlecase: Likewise.
12432         * modules/unictype/property-unassigned-code-value: Likewise.
12433         * modules/unictype/property-unified-ideograph: Likewise.
12434         * modules/unictype/property-uppercase: Likewise.
12435         * modules/unictype/property-variation-selector: Likewise.
12436         * modules/unictype/property-white-space: Likewise.
12437         * modules/unictype/property-xid-continue: Likewise.
12438         * modules/unictype/property-xid-start: Likewise.
12439         * modules/unictype/property-zero-width: Likewise.
12440         * modules/unictype/scripts: Likewise.
12441         * modules/unictype/syntax-c-ident: Likewise.
12442         * modules/unictype/syntax-c-whitespace: Likewise.
12443         * modules/unictype/syntax-java-ident: Likewise.
12444         * modules/unictype/syntax-java-whitespace: Likewise.
12445         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12446         * modules/unilbrk/u8-width-linebreaks: Likewise.
12447         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12448         * modules/unilbrk/u16-width-linebreaks: Likewise.
12449         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12450         * modules/unilbrk/u32-width-linebreaks: Likewise.
12451         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12452         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12453         * modules/uniname/uniname: Likewise.
12454         * modules/uninorm/canonical-decomposition: Likewise.
12455         * modules/uninorm/composition: Likewise.
12456         * modules/uninorm/decomposing-form: Likewise.
12457         * modules/uninorm/decomposition: Likewise.
12458         * modules/uninorm/filter: Likewise.
12459         * modules/uninorm/nfc: Likewise.
12460         * modules/uninorm/nfd: Likewise.
12461         * modules/uninorm/nfkc: Likewise.
12462         * modules/uninorm/nfkd: Likewise.
12463         * modules/uninorm/u8-normalize: Likewise.
12464         * modules/uninorm/u8-normcmp: Likewise.
12465         * modules/uninorm/u8-normcoll: Likewise.
12466         * modules/uninorm/u8-normxfrm: Likewise.
12467         * modules/uninorm/u16-normalize: Likewise.
12468         * modules/uninorm/u16-normcmp: Likewise.
12469         * modules/uninorm/u16-normcoll: Likewise.
12470         * modules/uninorm/u16-normxfrm: Likewise.
12471         * modules/uninorm/u32-normalize: Likewise.
12472         * modules/uninorm/u32-normcmp: Likewise.
12473         * modules/uninorm/u32-normcoll: Likewise.
12474         * modules/uninorm/u32-normxfrm: Likewise.
12475         * modules/unistdio/u8-asnprintf: Likewise.
12476         * modules/unistdio/u8-asprintf: Likewise.
12477         * modules/unistdio/u8-snprintf: Likewise.
12478         * modules/unistdio/u8-sprintf: Likewise.
12479         * modules/unistdio/u8-u8-asnprintf: Likewise.
12480         * modules/unistdio/u8-u8-asprintf: Likewise.
12481         * modules/unistdio/u8-u8-snprintf: Likewise.
12482         * modules/unistdio/u8-u8-sprintf: Likewise.
12483         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12484         * modules/unistdio/u8-u8-vasprintf: Likewise.
12485         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12486         * modules/unistdio/u8-u8-vsprintf: Likewise.
12487         * modules/unistdio/u8-vasnprintf: Likewise.
12488         * modules/unistdio/u8-vasprintf: Likewise.
12489         * modules/unistdio/u8-vsnprintf: Likewise.
12490         * modules/unistdio/u8-vsprintf: Likewise.
12491         * modules/unistdio/u16-asnprintf: Likewise.
12492         * modules/unistdio/u16-asprintf: Likewise.
12493         * modules/unistdio/u16-snprintf: Likewise.
12494         * modules/unistdio/u16-sprintf: Likewise.
12495         * modules/unistdio/u16-u16-asnprintf: Likewise.
12496         * modules/unistdio/u16-u16-asprintf: Likewise.
12497         * modules/unistdio/u16-u16-snprintf: Likewise.
12498         * modules/unistdio/u16-u16-sprintf: Likewise.
12499         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12500         * modules/unistdio/u16-u16-vasprintf: Likewise.
12501         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12502         * modules/unistdio/u16-u16-vsprintf: Likewise.
12503         * modules/unistdio/u16-vasnprintf: Likewise.
12504         * modules/unistdio/u16-vasprintf: Likewise.
12505         * modules/unistdio/u16-vsnprintf: Likewise.
12506         * modules/unistdio/u16-vsprintf: Likewise.
12507         * modules/unistdio/u32-asnprintf: Likewise.
12508         * modules/unistdio/u32-asprintf: Likewise.
12509         * modules/unistdio/u32-snprintf: Likewise.
12510         * modules/unistdio/u32-sprintf: Likewise.
12511         * modules/unistdio/u32-u32-asnprintf: Likewise.
12512         * modules/unistdio/u32-u32-asprintf: Likewise.
12513         * modules/unistdio/u32-u32-snprintf: Likewise.
12514         * modules/unistdio/u32-u32-sprintf: Likewise.
12515         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12516         * modules/unistdio/u32-u32-vasprintf: Likewise.
12517         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12518         * modules/unistdio/u32-u32-vsprintf: Likewise.
12519         * modules/unistdio/u32-vasnprintf: Likewise.
12520         * modules/unistdio/u32-vasprintf: Likewise.
12521         * modules/unistdio/u32-vsnprintf: Likewise.
12522         * modules/unistdio/u32-vsprintf: Likewise.
12523         * modules/unistdio/ulc-asnprintf: Likewise.
12524         * modules/unistdio/ulc-asprintf: Likewise.
12525         * modules/unistdio/ulc-fprintf: Likewise.
12526         * modules/unistdio/ulc-snprintf: Likewise.
12527         * modules/unistdio/ulc-sprintf: Likewise.
12528         * modules/unistdio/ulc-vasnprintf: Likewise.
12529         * modules/unistdio/ulc-vasprintf: Likewise.
12530         * modules/unistdio/ulc-vfprintf: Likewise.
12531         * modules/unistdio/ulc-vsnprintf: Likewise.
12532         * modules/unistdio/ulc-vsprintf: Likewise.
12533         * modules/unistr/u8-check: Likewise.
12534         * modules/unistr/u8-chr: Likewise.
12535         * modules/unistr/u8-cmp: Likewise.
12536         * modules/unistr/u8-cmp2: Likewise.
12537         * modules/unistr/u8-cpy: Likewise.
12538         * modules/unistr/u8-cpy-alloc: Likewise.
12539         * modules/unistr/u8-endswith: Likewise.
12540         * modules/unistr/u8-mblen: Likewise.
12541         * modules/unistr/u8-mbsnlen: Likewise.
12542         * modules/unistr/u8-mbtouc: Likewise.
12543         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12544         * modules/unistr/u8-mbtoucr: Likewise.
12545         * modules/unistr/u8-move: Likewise.
12546         * modules/unistr/u8-next: Likewise.
12547         * modules/unistr/u8-prev: Likewise.
12548         * modules/unistr/u8-set: Likewise.
12549         * modules/unistr/u8-startswith: Likewise.
12550         * modules/unistr/u8-stpcpy: Likewise.
12551         * modules/unistr/u8-stpncpy: Likewise.
12552         * modules/unistr/u8-strcat: Likewise.
12553         * modules/unistr/u8-strchr: Likewise.
12554         * modules/unistr/u8-strcmp: Likewise.
12555         * modules/unistr/u8-strcoll: Likewise.
12556         * modules/unistr/u8-strcpy: Likewise.
12557         * modules/unistr/u8-strcspn: Likewise.
12558         * modules/unistr/u8-strdup: Likewise.
12559         * modules/unistr/u8-strlen: Likewise.
12560         * modules/unistr/u8-strmblen: Likewise.
12561         * modules/unistr/u8-strmbtouc: Likewise.
12562         * modules/unistr/u8-strncat: Likewise.
12563         * modules/unistr/u8-strncmp: Likewise.
12564         * modules/unistr/u8-strncpy: Likewise.
12565         * modules/unistr/u8-strnlen: Likewise.
12566         * modules/unistr/u8-strpbrk: Likewise.
12567         * modules/unistr/u8-strrchr: Likewise.
12568         * modules/unistr/u8-strspn: Likewise.
12569         * modules/unistr/u8-strstr: Likewise.
12570         * modules/unistr/u8-strtok: Likewise.
12571         * modules/unistr/u8-to-u16: Likewise.
12572         * modules/unistr/u8-to-u32: Likewise.
12573         * modules/unistr/u8-uctomb: Likewise.
12574         * modules/unistr/u16-check: Likewise.
12575         * modules/unistr/u16-chr: Likewise.
12576         * modules/unistr/u16-cmp: Likewise.
12577         * modules/unistr/u16-cmp2: Likewise.
12578         * modules/unistr/u16-cpy: Likewise.
12579         * modules/unistr/u16-cpy-alloc: Likewise.
12580         * modules/unistr/u16-endswith: Likewise.
12581         * modules/unistr/u16-mblen: Likewise.
12582         * modules/unistr/u16-mbsnlen: Likewise.
12583         * modules/unistr/u16-mbtouc: Likewise.
12584         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12585         * modules/unistr/u16-mbtoucr: Likewise.
12586         * modules/unistr/u16-move: Likewise.
12587         * modules/unistr/u16-next: Likewise.
12588         * modules/unistr/u16-prev: Likewise.
12589         * modules/unistr/u16-set: Likewise.
12590         * modules/unistr/u16-startswith: Likewise.
12591         * modules/unistr/u16-stpcpy: Likewise.
12592         * modules/unistr/u16-stpncpy: Likewise.
12593         * modules/unistr/u16-strcat: Likewise.
12594         * modules/unistr/u16-strchr: Likewise.
12595         * modules/unistr/u16-strcmp: Likewise.
12596         * modules/unistr/u16-strcoll: Likewise.
12597         * modules/unistr/u16-strcpy: Likewise.
12598         * modules/unistr/u16-strcspn: Likewise.
12599         * modules/unistr/u16-strdup: Likewise.
12600         * modules/unistr/u16-strlen: Likewise.
12601         * modules/unistr/u16-strmblen: Likewise.
12602         * modules/unistr/u16-strmbtouc: Likewise.
12603         * modules/unistr/u16-strncat: Likewise.
12604         * modules/unistr/u16-strncmp: Likewise.
12605         * modules/unistr/u16-strncpy: Likewise.
12606         * modules/unistr/u16-strnlen: Likewise.
12607         * modules/unistr/u16-strpbrk: Likewise.
12608         * modules/unistr/u16-strrchr: Likewise.
12609         * modules/unistr/u16-strspn: Likewise.
12610         * modules/unistr/u16-strstr: Likewise.
12611         * modules/unistr/u16-strtok: Likewise.
12612         * modules/unistr/u16-to-u32: Likewise.
12613         * modules/unistr/u16-to-u8: Likewise.
12614         * modules/unistr/u16-uctomb: Likewise.
12615         * modules/unistr/u32-check: Likewise.
12616         * modules/unistr/u32-chr: Likewise.
12617         * modules/unistr/u32-cmp: Likewise.
12618         * modules/unistr/u32-cmp2: Likewise.
12619         * modules/unistr/u32-cpy: Likewise.
12620         * modules/unistr/u32-cpy-alloc: Likewise.
12621         * modules/unistr/u32-endswith: Likewise.
12622         * modules/unistr/u32-mblen: Likewise.
12623         * modules/unistr/u32-mbsnlen: Likewise.
12624         * modules/unistr/u32-mbtouc: Likewise.
12625         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12626         * modules/unistr/u32-mbtoucr: Likewise.
12627         * modules/unistr/u32-move: Likewise.
12628         * modules/unistr/u32-next: Likewise.
12629         * modules/unistr/u32-prev: Likewise.
12630         * modules/unistr/u32-set: Likewise.
12631         * modules/unistr/u32-startswith: Likewise.
12632         * modules/unistr/u32-stpcpy: Likewise.
12633         * modules/unistr/u32-stpncpy: Likewise.
12634         * modules/unistr/u32-strcat: Likewise.
12635         * modules/unistr/u32-strchr: Likewise.
12636         * modules/unistr/u32-strcmp: Likewise.
12637         * modules/unistr/u32-strcoll: Likewise.
12638         * modules/unistr/u32-strcpy: Likewise.
12639         * modules/unistr/u32-strcspn: Likewise.
12640         * modules/unistr/u32-strdup: Likewise.
12641         * modules/unistr/u32-strlen: Likewise.
12642         * modules/unistr/u32-strmblen: Likewise.
12643         * modules/unistr/u32-strmbtouc: Likewise.
12644         * modules/unistr/u32-strncat: Likewise.
12645         * modules/unistr/u32-strncmp: Likewise.
12646         * modules/unistr/u32-strncpy: Likewise.
12647         * modules/unistr/u32-strnlen: Likewise.
12648         * modules/unistr/u32-strpbrk: Likewise.
12649         * modules/unistr/u32-strrchr: Likewise.
12650         * modules/unistr/u32-strspn: Likewise.
12651         * modules/unistr/u32-strstr: Likewise.
12652         * modules/unistr/u32-strtok: Likewise.
12653         * modules/unistr/u32-to-u16: Likewise.
12654         * modules/unistr/u32-to-u8: Likewise.
12655         * modules/unistr/u32-uctomb: Likewise.
12656         * modules/uniwbrk/u8-wordbreaks: Likewise.
12657         * modules/uniwbrk/u16-wordbreaks: Likewise.
12658         * modules/uniwbrk/u32-wordbreaks: Likewise.
12659         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12660         * modules/uniwbrk/wordbreak-property: Likewise.
12661         * modules/uniwidth/u8-strwidth: Likewise.
12662         * modules/uniwidth/u8-width: Likewise.
12663         * modules/uniwidth/u16-strwidth: Likewise.
12664         * modules/uniwidth/u16-width: Likewise.
12665         * modules/uniwidth/u32-strwidth: Likewise.
12666         * modules/uniwidth/u32-width: Likewise.
12667         * modules/uniwidth/width: Likewise.
12668         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12669         with $(LIBUNISTRING).
12670         * modules/unicase/ignorable-tests: Likewise.
12671         * modules/unicase/locale-language-tests: Likewise.
12672         * modules/unicase/tolower-tests: Likewise.
12673         * modules/unicase/totitle-tests: Likewise.
12674         * modules/unicase/toupper-tests: Likewise.
12675         * modules/unicase/u8-casecmp-tests: Likewise.
12676         * modules/unicase/u8-casecoll-tests: Likewise.
12677         * modules/unicase/u8-casefold-tests: Likewise.
12678         * modules/unicase/u8-is-cased-tests: Likewise.
12679         * modules/unicase/u8-is-casefolded-tests: Likewise.
12680         * modules/unicase/u8-is-lowercase-tests: Likewise.
12681         * modules/unicase/u8-is-titlecase-tests: Likewise.
12682         * modules/unicase/u8-is-uppercase-tests: Likewise.
12683         * modules/unicase/u8-tolower-tests: Likewise.
12684         * modules/unicase/u8-totitle-tests: Likewise.
12685         * modules/unicase/u8-toupper-tests: Likewise.
12686         * modules/unicase/u16-casecmp-tests: Likewise.
12687         * modules/unicase/u16-casecoll-tests: Likewise.
12688         * modules/unicase/u16-casefold-tests: Likewise.
12689         * modules/unicase/u16-is-cased-tests: Likewise.
12690         * modules/unicase/u16-is-casefolded-tests: Likewise.
12691         * modules/unicase/u16-is-lowercase-tests: Likewise.
12692         * modules/unicase/u16-is-titlecase-tests: Likewise.
12693         * modules/unicase/u16-is-uppercase-tests: Likewise.
12694         * modules/unicase/u16-tolower-tests: Likewise.
12695         * modules/unicase/u16-totitle-tests: Likewise.
12696         * modules/unicase/u16-toupper-tests: Likewise.
12697         * modules/unicase/u32-casecmp-tests: Likewise.
12698         * modules/unicase/u32-casecoll-tests: Likewise.
12699         * modules/unicase/u32-casefold-tests: Likewise.
12700         * modules/unicase/u32-is-cased-tests: Likewise.
12701         * modules/unicase/u32-is-casefolded-tests: Likewise.
12702         * modules/unicase/u32-is-lowercase-tests: Likewise.
12703         * modules/unicase/u32-is-titlecase-tests: Likewise.
12704         * modules/unicase/u32-is-uppercase-tests: Likewise.
12705         * modules/unicase/u32-tolower-tests: Likewise.
12706         * modules/unicase/u32-totitle-tests: Likewise.
12707         * modules/unicase/u32-toupper-tests: Likewise.
12708         * modules/unicase/ulc-casecmp-tests: Likewise.
12709         * modules/unicase/ulc-casecoll-tests: Likewise.
12710         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12711         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12712         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12713         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12714         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12715         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12716         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12717         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12718         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12719         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12720         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12721         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12722         * modules/unictype/bidicategory-byname-tests: Likewise.
12723         * modules/unictype/bidicategory-name-tests: Likewise.
12724         * modules/unictype/bidicategory-of-tests: Likewise.
12725         * modules/unictype/bidicategory-test-tests: Likewise.
12726         * modules/unictype/block-list-tests: Likewise.
12727         * modules/unictype/block-of-tests: Likewise.
12728         * modules/unictype/block-test-tests: Likewise.
12729         * modules/unictype/category-C-tests: Likewise.
12730         * modules/unictype/category-Cc-tests: Likewise.
12731         * modules/unictype/category-Cf-tests: Likewise.
12732         * modules/unictype/category-Cn-tests: Likewise.
12733         * modules/unictype/category-Co-tests: Likewise.
12734         * modules/unictype/category-Cs-tests: Likewise.
12735         * modules/unictype/category-L-tests: Likewise.
12736         * modules/unictype/category-Ll-tests: Likewise.
12737         * modules/unictype/category-Lm-tests: Likewise.
12738         * modules/unictype/category-Lo-tests: Likewise.
12739         * modules/unictype/category-Lt-tests: Likewise.
12740         * modules/unictype/category-Lu-tests: Likewise.
12741         * modules/unictype/category-M-tests: Likewise.
12742         * modules/unictype/category-Mc-tests: Likewise.
12743         * modules/unictype/category-Me-tests: Likewise.
12744         * modules/unictype/category-Mn-tests: Likewise.
12745         * modules/unictype/category-N-tests: Likewise.
12746         * modules/unictype/category-Nd-tests: Likewise.
12747         * modules/unictype/category-Nl-tests: Likewise.
12748         * modules/unictype/category-No-tests: Likewise.
12749         * modules/unictype/category-P-tests: Likewise.
12750         * modules/unictype/category-Pc-tests: Likewise.
12751         * modules/unictype/category-Pd-tests: Likewise.
12752         * modules/unictype/category-Pe-tests: Likewise.
12753         * modules/unictype/category-Pf-tests: Likewise.
12754         * modules/unictype/category-Pi-tests: Likewise.
12755         * modules/unictype/category-Po-tests: Likewise.
12756         * modules/unictype/category-Ps-tests: Likewise.
12757         * modules/unictype/category-S-tests: Likewise.
12758         * modules/unictype/category-Sc-tests: Likewise.
12759         * modules/unictype/category-Sk-tests: Likewise.
12760         * modules/unictype/category-Sm-tests: Likewise.
12761         * modules/unictype/category-So-tests: Likewise.
12762         * modules/unictype/category-Z-tests: Likewise.
12763         * modules/unictype/category-Zl-tests: Likewise.
12764         * modules/unictype/category-Zp-tests: Likewise.
12765         * modules/unictype/category-Zs-tests: Likewise.
12766         * modules/unictype/category-and-not-tests: Likewise.
12767         * modules/unictype/category-and-tests: Likewise.
12768         * modules/unictype/category-byname-tests: Likewise.
12769         * modules/unictype/category-name-tests: Likewise.
12770         * modules/unictype/category-none-tests: Likewise.
12771         * modules/unictype/category-of-tests: Likewise.
12772         * modules/unictype/category-or-tests: Likewise.
12773         * modules/unictype/category-test-withtable-tests: Likewise.
12774         * modules/unictype/combining-class-tests: Likewise.
12775         * modules/unictype/ctype-alnum-tests: Likewise.
12776         * modules/unictype/ctype-alpha-tests: Likewise.
12777         * modules/unictype/ctype-blank-tests: Likewise.
12778         * modules/unictype/ctype-cntrl-tests: Likewise.
12779         * modules/unictype/ctype-digit-tests: Likewise.
12780         * modules/unictype/ctype-graph-tests: Likewise.
12781         * modules/unictype/ctype-lower-tests: Likewise.
12782         * modules/unictype/ctype-print-tests: Likewise.
12783         * modules/unictype/ctype-punct-tests: Likewise.
12784         * modules/unictype/ctype-space-tests: Likewise.
12785         * modules/unictype/ctype-upper-tests: Likewise.
12786         * modules/unictype/ctype-xdigit-tests: Likewise.
12787         * modules/unictype/decimal-digit-tests: Likewise.
12788         * modules/unictype/digit-tests: Likewise.
12789         * modules/unictype/mirror-tests: Likewise.
12790         * modules/unictype/numeric-tests: Likewise.
12791         * modules/unictype/property-alphabetic-tests: Likewise.
12792         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12793         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12794         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12795         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12796         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12797         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12798         * modules/unictype/property-bidi-control-tests: Likewise.
12799         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12800         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12801         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12802         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12803         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12804         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12805         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12806         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12807         * modules/unictype/property-bidi-pdf-tests: Likewise.
12808         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12809         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12810         * modules/unictype/property-byname-tests: Likewise.
12811         * modules/unictype/property-combining-tests: Likewise.
12812         * modules/unictype/property-composite-tests: Likewise.
12813         * modules/unictype/property-currency-symbol-tests: Likewise.
12814         * modules/unictype/property-dash-tests: Likewise.
12815         * modules/unictype/property-decimal-digit-tests: Likewise.
12816         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12817         * modules/unictype/property-deprecated-tests: Likewise.
12818         * modules/unictype/property-diacritic-tests: Likewise.
12819         * modules/unictype/property-extender-tests: Likewise.
12820         * modules/unictype/property-format-control-tests: Likewise.
12821         * modules/unictype/property-grapheme-base-tests: Likewise.
12822         * modules/unictype/property-grapheme-extend-tests: Likewise.
12823         * modules/unictype/property-grapheme-link-tests: Likewise.
12824         * modules/unictype/property-hex-digit-tests: Likewise.
12825         * modules/unictype/property-hyphen-tests: Likewise.
12826         * modules/unictype/property-id-continue-tests: Likewise.
12827         * modules/unictype/property-id-start-tests: Likewise.
12828         * modules/unictype/property-ideographic-tests: Likewise.
12829         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12830         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12831         * modules/unictype/property-ignorable-control-tests: Likewise.
12832         * modules/unictype/property-iso-control-tests: Likewise.
12833         * modules/unictype/property-join-control-tests: Likewise.
12834         * modules/unictype/property-left-of-pair-tests: Likewise.
12835         * modules/unictype/property-line-separator-tests: Likewise.
12836         * modules/unictype/property-logical-order-exception-tests: Likewise.
12837         * modules/unictype/property-lowercase-tests: Likewise.
12838         * modules/unictype/property-math-tests: Likewise.
12839         * modules/unictype/property-non-break-tests: Likewise.
12840         * modules/unictype/property-not-a-character-tests: Likewise.
12841         * modules/unictype/property-numeric-tests: Likewise.
12842         * modules/unictype/property-other-alphabetic-tests: Likewise.
12843         * modules/unictype/property-other-default-ignorable-code-point-tests:
12844         Likewise.
12845         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12846         * modules/unictype/property-other-id-continue-tests: Likewise.
12847         * modules/unictype/property-other-id-start-tests: Likewise.
12848         * modules/unictype/property-other-lowercase-tests: Likewise.
12849         * modules/unictype/property-other-math-tests: Likewise.
12850         * modules/unictype/property-other-uppercase-tests: Likewise.
12851         * modules/unictype/property-paired-punctuation-tests: Likewise.
12852         * modules/unictype/property-paragraph-separator-tests: Likewise.
12853         * modules/unictype/property-pattern-syntax-tests: Likewise.
12854         * modules/unictype/property-pattern-white-space-tests: Likewise.
12855         * modules/unictype/property-private-use-tests: Likewise.
12856         * modules/unictype/property-punctuation-tests: Likewise.
12857         * modules/unictype/property-quotation-mark-tests: Likewise.
12858         * modules/unictype/property-radical-tests: Likewise.
12859         * modules/unictype/property-sentence-terminal-tests: Likewise.
12860         * modules/unictype/property-soft-dotted-tests: Likewise.
12861         * modules/unictype/property-space-tests: Likewise.
12862         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12863         * modules/unictype/property-test-tests: Likewise.
12864         * modules/unictype/property-titlecase-tests: Likewise.
12865         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12866         * modules/unictype/property-unified-ideograph-tests: Likewise.
12867         * modules/unictype/property-uppercase-tests: Likewise.
12868         * modules/unictype/property-variation-selector-tests: Likewise.
12869         * modules/unictype/property-white-space-tests: Likewise.
12870         * modules/unictype/property-xid-continue-tests: Likewise.
12871         * modules/unictype/property-xid-start-tests: Likewise.
12872         * modules/unictype/property-zero-width-tests: Likewise.
12873         * modules/unictype/scripts-tests: Likewise.
12874         * modules/unictype/syntax-c-ident-tests: Likewise.
12875         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12876         * modules/unictype/syntax-java-ident-tests: Likewise.
12877         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12878         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12879         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12880         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12881         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12882         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12883         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12884         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12885         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12886         * modules/uniname/uniname-tests: Likewise.
12887         * modules/uninorm/canonical-decomposition-tests: Likewise.
12888         * modules/uninorm/compat-decomposition-tests: Likewise.
12889         * modules/uninorm/composition-tests: Likewise.
12890         * modules/uninorm/decomposing-form-tests: Likewise.
12891         * modules/uninorm/decomposition-tests: Likewise.
12892         * modules/uninorm/filter-tests: Likewise.
12893         * modules/uninorm/nfc-tests: Likewise.
12894         * modules/uninorm/nfd-tests: Likewise.
12895         * modules/uninorm/nfkc-tests: Likewise.
12896         * modules/uninorm/nfkd-tests: Likewise.
12897         * modules/uninorm/u8-normcmp-tests: Likewise.
12898         * modules/uninorm/u8-normcoll-tests: Likewise.
12899         * modules/uninorm/u16-normcmp-tests: Likewise.
12900         * modules/uninorm/u16-normcoll-tests: Likewise.
12901         * modules/uninorm/u32-normcmp-tests: Likewise.
12902         * modules/uninorm/u32-normcoll-tests: Likewise.
12903         * modules/unistdio/u8-asnprintf-tests: Likewise.
12904         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12905         * modules/unistdio/u8-vasprintf-tests: Likewise.
12906         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12907         * modules/unistdio/u8-vsprintf-tests: Likewise.
12908         * modules/unistdio/u16-asnprintf-tests: Likewise.
12909         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12910         * modules/unistdio/u16-vasprintf-tests: Likewise.
12911         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12912         * modules/unistdio/u16-vsprintf-tests: Likewise.
12913         * modules/unistdio/u32-asnprintf-tests: Likewise.
12914         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12915         * modules/unistdio/u32-vasprintf-tests: Likewise.
12916         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12917         * modules/unistdio/u32-vsprintf-tests: Likewise.
12918         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12919         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12920         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12921         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12922         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12923         * modules/unistr/u8-check-tests: Likewise.
12924         * modules/unistr/u8-chr-tests: Likewise.
12925         * modules/unistr/u8-cmp-tests: Likewise.
12926         * modules/unistr/u8-cmp2-tests: Likewise.
12927         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12928         * modules/unistr/u8-cpy-tests: Likewise.
12929         * modules/unistr/u8-mblen-tests: Likewise.
12930         * modules/unistr/u8-mbsnlen-tests: Likewise.
12931         * modules/unistr/u8-mbtouc-tests: Likewise.
12932         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12933         * modules/unistr/u8-mbtoucr-tests: Likewise.
12934         * modules/unistr/u8-move-tests: Likewise.
12935         * modules/unistr/u8-next-tests: Likewise.
12936         * modules/unistr/u8-prev-tests: Likewise.
12937         * modules/unistr/u8-set-tests: Likewise.
12938         * modules/unistr/u8-stpcpy-tests: Likewise.
12939         * modules/unistr/u8-stpncpy-tests: Likewise.
12940         * modules/unistr/u8-strcat-tests: Likewise.
12941         * modules/unistr/u8-strcmp-tests: Likewise.
12942         * modules/unistr/u8-strcoll-tests: Likewise.
12943         * modules/unistr/u8-strcpy-tests: Likewise.
12944         * modules/unistr/u8-strdup-tests: Likewise.
12945         * modules/unistr/u8-strlen-tests: Likewise.
12946         * modules/unistr/u8-strmblen-tests: Likewise.
12947         * modules/unistr/u8-strmbtouc-tests: Likewise.
12948         * modules/unistr/u8-strncat-tests: Likewise.
12949         * modules/unistr/u8-strncmp-tests: Likewise.
12950         * modules/unistr/u8-strncpy-tests: Likewise.
12951         * modules/unistr/u8-strnlen-tests: Likewise.
12952         * modules/unistr/u8-to-u16-tests: Likewise.
12953         * modules/unistr/u8-to-u32-tests: Likewise.
12954         * modules/unistr/u8-uctomb-tests: Likewise.
12955         * modules/unistr/u16-check-tests: Likewise.
12956         * modules/unistr/u16-chr-tests: Likewise.
12957         * modules/unistr/u16-cmp-tests: Likewise.
12958         * modules/unistr/u16-cmp2-tests: Likewise.
12959         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12960         * modules/unistr/u16-cpy-tests: Likewise.
12961         * modules/unistr/u16-mblen-tests: Likewise.
12962         * modules/unistr/u16-mbsnlen-tests: Likewise.
12963         * modules/unistr/u16-mbtouc-tests: Likewise.
12964         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12965         * modules/unistr/u16-mbtoucr-tests: Likewise.
12966         * modules/unistr/u16-move-tests: Likewise.
12967         * modules/unistr/u16-next-tests: Likewise.
12968         * modules/unistr/u16-prev-tests: Likewise.
12969         * modules/unistr/u16-set-tests: Likewise.
12970         * modules/unistr/u16-stpcpy-tests: Likewise.
12971         * modules/unistr/u16-stpncpy-tests: Likewise.
12972         * modules/unistr/u16-strcat-tests: Likewise.
12973         * modules/unistr/u16-strcmp-tests: Likewise.
12974         * modules/unistr/u16-strcoll-tests: Likewise.
12975         * modules/unistr/u16-strcpy-tests: Likewise.
12976         * modules/unistr/u16-strdup-tests: Likewise.
12977         * modules/unistr/u16-strlen-tests: Likewise.
12978         * modules/unistr/u16-strmblen-tests: Likewise.
12979         * modules/unistr/u16-strmbtouc-tests: Likewise.
12980         * modules/unistr/u16-strncat-tests: Likewise.
12981         * modules/unistr/u16-strncmp-tests: Likewise.
12982         * modules/unistr/u16-strncpy-tests: Likewise.
12983         * modules/unistr/u16-strnlen-tests: Likewise.
12984         * modules/unistr/u16-to-u32-tests: Likewise.
12985         * modules/unistr/u16-to-u8-tests: Likewise.
12986         * modules/unistr/u16-uctomb-tests: Likewise.
12987         * modules/unistr/u32-check-tests: Likewise.
12988         * modules/unistr/u32-chr-tests: Likewise.
12989         * modules/unistr/u32-cmp-tests: Likewise.
12990         * modules/unistr/u32-cmp2-tests: Likewise.
12991         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12992         * modules/unistr/u32-cpy-tests: Likewise.
12993         * modules/unistr/u32-mblen-tests: Likewise.
12994         * modules/unistr/u32-mbsnlen-tests: Likewise.
12995         * modules/unistr/u32-mbtouc-tests: Likewise.
12996         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12997         * modules/unistr/u32-mbtoucr-tests: Likewise.
12998         * modules/unistr/u32-move-tests: Likewise.
12999         * modules/unistr/u32-next-tests: Likewise.
13000         * modules/unistr/u32-prev-tests: Likewise.
13001         * modules/unistr/u32-set-tests: Likewise.
13002         * modules/unistr/u32-stpcpy-tests: Likewise.
13003         * modules/unistr/u32-stpncpy-tests: Likewise.
13004         * modules/unistr/u32-strcat-tests: Likewise.
13005         * modules/unistr/u32-strcmp-tests: Likewise.
13006         * modules/unistr/u32-strcoll-tests: Likewise.
13007         * modules/unistr/u32-strcpy-tests: Likewise.
13008         * modules/unistr/u32-strdup-tests: Likewise.
13009         * modules/unistr/u32-strlen-tests: Likewise.
13010         * modules/unistr/u32-strmblen-tests: Likewise.
13011         * modules/unistr/u32-strmbtouc-tests: Likewise.
13012         * modules/unistr/u32-strncat-tests: Likewise.
13013         * modules/unistr/u32-strncmp-tests: Likewise.
13014         * modules/unistr/u32-strncpy-tests: Likewise.
13015         * modules/unistr/u32-strnlen-tests: Likewise.
13016         * modules/unistr/u32-to-u16-tests: Likewise.
13017         * modules/unistr/u32-to-u8-tests: Likewise.
13018         * modules/unistr/u32-uctomb-tests: Likewise.
13019         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
13020         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
13021         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
13022         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
13023         * modules/uniwidth/u8-strwidth-tests: Likewise.
13024         * modules/uniwidth/u8-width-tests: Likewise.
13025         * modules/uniwidth/u16-strwidth-tests: Likewise.
13026         * modules/uniwidth/u16-width-tests: Likewise.
13027         * modules/uniwidth/u32-strwidth-tests: Likewise.
13028         * modules/uniwidth/u32-width-tests: Likewise.
13029         * modules/uniwidth/width-tests: Likewise.
13030
13031 2010-05-18  Richard Jones  <rjones@redhat.com>
13032
13033         doc: users.txt: list hivex
13034         * users.txt: Add hivex.
13035
13036 2010-05-18  Richard Jones  <rjones@redhat.com>
13037
13038         doc: users.txt: list febootstrap
13039         * users.txt: Add febootstrap.
13040
13041 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
13042
13043         bootstrap: fix an error when gnulib is not used as a git submodule
13044         * build-aux/bootstrap (gnulib_path): If its length is zero then
13045         assign "gnulib" to it.
13046         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
13047
13048 2010-05-16  Bruno Haible  <bruno@clisp.org>
13049
13050         Avoid autoconf warnings about AM_ICONV.
13051         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
13052         2.64.
13053
13054 2010-05-16  Bruno Haible  <bruno@clisp.org>
13055
13056         absolute-header: Make the macro usable in more situations.
13057         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13058         from gl_ABSOLUTE_HEADER.
13059         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13060
13061 2010-05-16  James Youngman  <jay@gnu.org>
13062
13063         doc: update users.txt
13064         * users.txt: Add CSSC.
13065
13066 2010-05-16  Jim Meyering  <meyering@redhat.com>
13067
13068         init.sh: fix an error in the previous change; add more comments
13069         * tests/init.sh: Compare exit code in loop against 9, not 2.
13070         Patch by Bruno Haible.
13071         Make the two tests more similar by adding an empty "then" clause.
13072         Add comments.
13073
13074         init.sh: avoid unnecessary shell re-exec
13075         * tests/init.sh: Improve the re-exec-required check to first test the
13076         current shell.  If it passes the test, do not search for a shell that
13077         does pass, and do not re-exec.  This test is particularly contorted to
13078         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13079         of $(...) evokes a syntax error and causes immediate shell exit with
13080         status 2.  Bruno Haible reported that the re-exec made it impossible
13081         to single-step through any init.sh-using script.
13082
13083 2010-05-16  Bruno Haible  <bruno@clisp.org>
13084
13085         Fix collision between gnulib's and libintl's printf replacements.
13086         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13087         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13088         (printf): When using GNU C, map the __printf__ function to rpl_printf
13089         via __asm__. When not using GNU C, define rpl_printf instead of
13090         __printf__.
13091         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13092         commit.
13093         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13094         commit.
13095         * m4/asm-underscore.m4: New file.
13096         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13097         * modules/stdio (Files): Add m4/asm-underscore.m4.
13098         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13099         Reported by Ben Pfaff.
13100
13101 2010-05-16  Bruno Haible  <bruno@clisp.org>
13102
13103         verify: Avoid skipping the test on openSUSE 11.0.
13104         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13105
13106 2010-05-13  Bruno Haible  <bruno@clisp.org>
13107
13108         Avoid useless warnings from G++.
13109         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13110         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13111         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13112
13113 2010-05-11  Jim Meyering  <meyering@redhat.com>
13114
13115         maint.mk: tweak preceding change
13116         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13117         regexps tighter by anchoring at EOL, and make the new group "shy"
13118         for slightly decreased overhead.
13119
13120 2010-05-11  Eric Blake  <eblake@redhat.com>
13121
13122         maint.mk: gnulib doesn't guarantee NSIG
13123         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13124
13125 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13126
13127         test-pwrite.c: Remove unused variable declaration.
13128         * tests/test-pwrite.c (main): Remove read_buf declaration.
13129
13130         Remove useless test-pwrite.sh file.
13131         * tests/test-pwrite.sh: Delete file.
13132         * modules/pwrite-tests: Remove references.
13133         Reported by Bruno Haible.
13134
13135 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13136
13137         init.sh: fix a typo
13138         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13139
13140 2010-05-10  Jim Meyering  <meyering@redhat.com>
13141
13142         maint.mk: avoid using a temporary file in the always-defined-macros check
13143         * top/maint.mk (.re-defmac): Remove rule.
13144         (gl_trap_): Remove definition.
13145         (sc_prohibit_always-defined_macros): Rewrite not to create and
13146         depend on a temporary file.  Instead, depend on GNU grep's ability
13147         to read a list of regular expressions from stdin when given "-f -".
13148
13149 2010-05-09  Bruno Haible  <bruno@clisp.org>
13150
13151         Update to GNU gettext 0.18, part 1.
13152         * m4/gettext.m4: Update to GNU gettext 0.18.
13153         * m4/intl.m4: Likewise.
13154         * m4/po.m4: Likewise.
13155         * modules/gettext (Files): Add m4/fcntl-o.m4.
13156         (configure.ac): Require gettext infrastructure from version 0.18.
13157
13158 2010-05-09  Jim Meyering  <meyering@redhat.com>
13159
13160         init.sh: enable MALLOC_PERTURB_
13161         * tests/init.sh: Enable glibc's malloc-perturbing option.
13162
13163         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13164         With my recent change in init.sh from the two-line form:
13165             -#   : ${srcdir=.}
13166             -#   . "$srcdir/init.sh"; path_prepend_ .
13167             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13168         I noticed that using the one-line form would cause this test
13169         to fail with a false-positive, or to stop working altogether,
13170         depending on whether help-version changed or all the tests did.
13171         * top/maint.mk (_hv_regex): Remove this definition.
13172         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13173         (_hv_regex_strong): Use a stronger regex to check for conformance.
13174         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13175         Give a separate diagnostic for lack of conforming use.
13176
13177         maint.mk: prohibit definition of symbols defined by gnulib
13178         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13179         definition of symbols defined by gnulib.
13180
13181 2010-05-09  Bruno Haible  <bruno@clisp.org>
13182
13183         acl: Avoid test failure on Cygwin-hosted mingw.
13184         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13185
13186 2010-05-09  Bruno Haible  <bruno@clisp.org>
13187
13188         error: Use system's fcntl function.
13189         * lib/error.c (fcntl): Undefine.
13190
13191 2010-05-09  Jim Meyering  <meyering@redhat.com>
13192
13193         verify: adjust formatting to be more consistent
13194         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13195         argument-list '('s, and after one comma.
13196
13197 2010-05-09  Bruno Haible  <bruno@clisp.org>
13198
13199         error: More reliable output on mingw.
13200         * lib/error.c: Include <windows.h>.
13201         (is_open): New function.
13202         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13203         defined.
13204
13205 2010-05-09  Bruno Haible  <bruno@clisp.org>
13206
13207         vasnprintf: Fix syntax errors in libintl build on mingw.
13208         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13209         pad_ourselves and prec_ourselves after use.
13210
13211 2010-05-08  Bruno Haible  <bruno@clisp.org>
13212
13213         * lib/config.charset: Update comments for Cygwin 1.7.
13214         * lib/localcharset.c: Likewise.
13215
13216 2010-05-07  Jim Meyering  <meyering@redhat.com>
13217
13218         init.sh: improve comments
13219         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13220         . "${srcdir=.}/init.sh"; path_prepend_ .
13221         Add a note about path_prepend_ and the alternative of using
13222         TESTS_ENVIRONMENT.
13223
13224 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13225
13226         exclude: Unescape hashed patterns in wildcard mode.
13227         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13228         to the hash list.
13229         * tests/test-exclude8.sh: New test case.
13230         * modules/exclude-tests: Add new test.
13231
13232 2010-05-05  Eric Blake  <eblake@redhat.com>
13233
13234         verify: automate tests
13235         * modules/verify-tests: New module.
13236         * tests/test-verify.sh: New file.
13237         * tests/test-verify.c: Guard each negative test with a unique id.
13238         Also avoid warning about unused left hand of comma expressions.
13239
13240 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13241
13242         Further improvements to verify.h, suggested by Eric Blake.
13243         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13244         the GL_* versions, to avoid collision with OpenGL.
13245         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13246         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13247         than testing merely whether it's defined.
13248
13249         Modify verify.h to pacify gcc -Wredundant_decls.
13250         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13251         These use the prefix "GL_" since they're likely to be useful elsewhere.
13252         We may need to break them out into a different .h file.
13253         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13254         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13255         of verify_function__.
13256
13257 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13258
13259         Tests for module pwrite.
13260         * modules/pwrite-tests: New file.
13261         * tests/test-pwrite.sh: New file.
13262         * tests/test-pwrite.c: New file.
13263
13264         New module pwrite.
13265         * lib/unistd.in.h (pwrite): New declaration.
13266         * lib/pwrite.c: New file, from glibc with modifications.
13267         * m4/pwrite.m4: New file.
13268         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13269         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13270         REPLACE_PWRITE.
13271         * modules/pwrite: New file.
13272         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13273         REPLACE_PWRITE.
13274         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13275         * doc/posix-functions/pwrite.texi: Mention the new module.
13276
13277 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13278
13279         pread: Update documentation.
13280         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13281
13282 2010-05-04  Eric Blake  <eblake@redhat.com>
13283
13284         docs: update cygwin progress
13285         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13286         this bug.
13287         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13288         Added in cygwin 1.7.2.
13289         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13290         Likewise.
13291         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13292         Likewise.
13293         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13294         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13295         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13296         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13297         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13298         Mention nproc module.
13299         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13300         bug in cygwin 1.7.5 addition.
13301         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13302         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13303         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13304         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13305         1.7.5.
13306         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13307         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13308         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13309         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13310         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13311         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13312         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13313         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13314         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13315         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13316         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13317         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13318         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13319         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13320         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13321         Likewise.
13322         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13323         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13324         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13325         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13326         Likewise.
13327         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13328         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13329         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13330         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13331         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13332         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13333         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13334         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13335         Likewise.
13336         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13337         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13338         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13339         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13340         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13341         Likewise.
13342         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13343         Likewise.
13344         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13345         Likewise.
13346         * doc/glibc-functions/xdrrec_endofrecord.texi
13347         (xdrrec_endofrecord): Likewise.
13348         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13349         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13350         Likewise.
13351         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13352         Likewise.
13353
13354 2010-05-04  Jim Meyering  <meyering@redhat.com>
13355
13356         gendocs.sh: make its "-s FILE" option more useful
13357         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13358         $PACKAGE to reflect the probably-different basename of "FILE".
13359
13360 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13361
13362         bootstrap: don't ignore download_po_files failure
13363         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13364         failure.
13365
13366 2010-05-03  Jim Meyering  <meyering@redhat.com>
13367
13368         maint.mk: allow to pass options to gendocs.sh
13369         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13370         (gendocs_options_): New overridable variable.
13371
13372         gnu-web-doc-update: don't ignore configure or build failure
13373         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13374
13375         announce-gen: backslash-escape '@'s in --help output
13376         * build-aux/announce-gen: Fix syntax errors.
13377
13378         maint.mk, announce-gen: allow project-specific announcement mail headers
13379         * top/maint.mk (translation_project_): Define default.
13380         (announcement_Cc_, announcement_mail_headers_): Likewise.
13381         (announcement): Invoke announce-gen with new --mail-headers option.
13382         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13383
13384         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13385         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13386         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13387         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13388         line in the "err2" output file when running "make check" in verbose
13389         mode (i.e., with set -x enabled).
13390
13391 2010-05-03  Bruno Haible  <bruno@clisp.org>
13392
13393         wctob: Fix for weird platforms.
13394         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13395         argument value.
13396
13397 2010-05-03  Jim Meyering  <meyering@redhat.com>
13398
13399         maint.mk: prohibit unwarranted use of <strings.h>
13400         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13401         strings.h in a file that does not also use strcasecmp, strncasecmp,
13402         ffs or ffsll.
13403
13404         maint.mk: remove obsolete comments
13405         * top/maint.mk: Remove stale, commented-out rules.
13406
13407 2010-05-02  Bruno Haible  <bruno@clisp.org>
13408
13409         wcwidth: Declare also when it's aliased.
13410         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13411         macro.
13412
13413 2010-05-02  Bruno Haible  <bruno@clisp.org>
13414
13415         Fix regression from 2010-04-25.
13416         * gnulib-tool (func_modules_transitive_closure): Check the status of
13417         all modules, not only of the tests that are of the form foo-tests where
13418         foo is a module.
13419
13420 2010-05-02  Bruno Haible  <bruno@clisp.org>
13421
13422         wctob: Work around nasty Cygwin 1.7.2 bug.
13423         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13424         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13425
13426 2010-05-01  Bruno Haible  <bruno@clisp.org>
13427
13428         fpurge: Sharper test.
13429         * tests/test-fpurge.c (main): Add one more ftell check.
13430         * modules/fpurge-tests (Depends-on): Add ftell.
13431         Suggested by Eric Blake.
13432
13433 2010-05-01  Bruno Haible  <bruno@clisp.org>
13434
13435         ftello: Another test.
13436         * tests/test-ftello3.c: New file.
13437         * modules/ftello-tests (Files): Add it.
13438         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13439         MOSTLYCLEANFILES.
13440
13441         ftell: Another test.
13442         * tests/test-ftell3.c: New file.
13443         * modules/ftell-tests (Files): Add it.
13444         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13445         MOSTLYCLEANFILES.
13446
13447 2010-05-01  Bruno Haible  <bruno@clisp.org>
13448
13449         ftell, ftello: Work around Solaris bug.
13450         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13451         * lib/ftello.c: Include stdio-impl.h.
13452         (ftello): On Solaris, when _IOWRT is set, compute the result without
13453         looking at _IOREAD.
13454         * modules/ftello (Files): Add lib/stdio-impl.h.
13455         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13456         * doc/posix-functions/ftello.texi: Likewise.
13457         Reported by Eric Blake.
13458
13459 2010-05-01  Bruno Haible  <bruno@clisp.org>
13460
13461         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13462         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13463         the _IOWRT flag is also set.
13464
13465 2010-05-01  Bruno Haible  <bruno@clisp.org>
13466
13467         Fix doc about a HP-UX stdio bug.
13468         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13469         * doc/posix-functions/ftello.texi: Likewise.
13470
13471 2010-05-01  Bruno Haible  <bruno@clisp.org>
13472
13473         lseek test: Fix failure on Solaris.
13474         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13475         output.
13476
13477 2010-04-30  Jim Meyering  <meyering@redhat.com>
13478
13479         bootstrap: don't ignore failure to generate po*/Makevars
13480         * build-aux/bootstrap (with_gettext): Don't ignore failure
13481         to create po/Makevars or runtime-po/Makevars.
13482
13483 2010-04-29  Eric Blake  <eblake@redhat.com>
13484
13485         headers: relax license to LGPLv2+
13486         * modules/fcntl-h (License): Relax license.
13487         * modules/getopt-posix (License): Likewise.
13488         * modules/locale (License): Likewise.
13489         * modules/math (License): Likewise.
13490         * modules/pty (License): Likewise.
13491         * modules/sched (License): Likewise.
13492         * modules/search (License): Likewise.
13493         * modules/spawn (License): Likewise.
13494         * modules/stdarg (License): Likewise.
13495         * modules/sysexits (License): Likewise.
13496
13497 2010-04-29  Jim Meyering  <meyering@redhat.com>
13498
13499         inttypes: relax license to LGPLv2+
13500         * modules/inttypes (License): Relax license.
13501
13502 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13503
13504         * top/maint.mk (indent): Run twice to produce idempotent results.
13505
13506 2010-04-28  Bruno Haible  <bruno@clisp.org>
13507
13508         getdate: Generate getdate.c in the source directory.
13509         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13510         MOSTLYCLEANFILES.
13511         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13512
13513 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13514
13515         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13516         is not declared as a const *; avoid warnings in that case.
13517
13518 2010-04-28  Eric Blake  <eblake@redhat.com>
13519
13520         canonicalize-lgpl: avoid compiler warning
13521         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13522         declaration' / 'extraneous semicolon' warning with some compilers.
13523         Reported by Andreas Gruenbacher.
13524
13525 2010-04-28  Jim Meyering  <meyering@redhat.com>
13526
13527         init.sh: ensure a more reliable exit status when exiting via trap
13528         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13529         Inspired by patches from Dmitry V. Levin.
13530         Also trap on signal 3 (SIGQUIT).
13531
13532 2010-04-27  Bruno Haible  <bruno@clisp.org>
13533
13534         Update doc about utimes().
13535         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13536         'utimens' module.
13537         Reported by Andreas Gruenbacher <agruen@suse.de>.
13538
13539 2010-04-27  Eric Blake  <eblake@redhat.com>
13540
13541         full-read, full-write: relax license
13542         * modules/full-read (License): Drop to LGPLv2+.
13543         * modules/full-write (License): Likewise.
13544         * modules/safe-read (License): Likewise.
13545         * modules/safe-write (License): Likewise.
13546
13547         pthread: mention library for linking
13548         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13549
13550 2010-04-27  Jim Meyering  <meyering@redhat.com>
13551
13552         maint.mk: fix a bug introduced in last change
13553         * top/maint.mk (gl_assured_headers_): Now that all names are on
13554         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13555         is not anchored to end of word, it should be adequate.
13556
13557         maint.mk: avoid side-effect in latest syntax-check
13558         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13559         to run commands via $(shell...), and hence to incur cost only when
13560         the new rule is actually run.
13561
13562         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13563         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13564         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13565         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13566         (gl_assured_headers_, az_, AZ_): Define.
13567         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13568
13569 2010-04-26  Jim Meyering  <jim@meyering.net>
13570             Bruno Haible  <bruno@clisp.org>
13571
13572         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13573         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13574         Prompted by an exchange with Gilles Espinasse.
13575
13576 2010-04-26  Jim Meyering  <meyering@redhat.com>
13577
13578         git-version-gen: aesthetic tweak
13579         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13580         so that the command remains on a single line.
13581
13582 2010-04-26  Eric Blake  <eblake@redhat.com>
13583
13584         git-version-gen: allow use on EBCDIC hosts
13585         * build-aux/git-version-gen (dirty): Use literal rather than tying
13586         ourselves to ascii.
13587         Reported by Steve Goetze.
13588
13589 2010-04-25  Bruno Haible  <bruno@clisp.org>
13590
13591         netdb: Add support for GNULIB_POSIXCHECK.
13592         * lib/netdb.in.h: Include warn-on-use.h.
13593         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13594         functions are used when GNULIB_POSIXCHECK is defined and the
13595         getaddrinfo module is not in use.
13596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13597         freeaddrinfo, gai_strerror, getnameinfo are declared.
13598         * modules/netdb (Depends-on): Add warn-on-use.
13599         (Makefile.am): Include warn-on-use.h in netdb.h.
13600
13601 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13602
13603         build: avoid "make check" failure without .git/ directory
13604         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13605         there is no .git/ directory.
13606
13607 2010-04-25  Bruno Haible  <bruno@clisp.org>
13608
13609         ptsname: Fix misuse of ttyname_r.
13610         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13611         of errno.
13612
13613 2010-04-25  Bruno Haible  <bruno@clisp.org>
13614
13615         ttyname_r: Make it work on Solaris 10.
13616         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13617         if the system function has the POSIX declaration. Test whether the
13618         function fails if the buffer is less than 128 bytes large.
13619         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13620         system's ttyname_r function. Provide a reasonably large buffer.
13621         * modules/ttyname_r (Depends-on): Add extensions.
13622         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13623
13624 2010-04-25  Bruno Haible  <bruno@clisp.org>
13625
13626         Use the 'extensions' module for some more functions on Solaris.
13627         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13628         module.
13629         * doc/posix-functions/ctime_r.texi: Likewise.
13630         * doc/posix-functions/getgrgid_r.texi: Likewise.
13631         * doc/posix-functions/getgrnam_r.texi: Likewise.
13632         * doc/posix-functions/getpwnam_r.texi: Likewise.
13633         * doc/posix-functions/getpwuid_r.texi: Likewise.
13634         * doc/posix-functions/readdir_r.texi: Likewise.
13635         * doc/posix-functions/sigwait.texi: Likewise.
13636         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13637         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13638
13639 2010-04-25  Bruno Haible  <bruno@clisp.org>
13640
13641         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13643         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13644         * lib/ttyname_r.c: Include <limits.h>.
13645         (ttyname_r): Define using the system's ttyname_r function, if it exists
13646         and not on Solaris.
13647         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13648         set.
13649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13650         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13651         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13652         Reported by Simon Josefsson.
13653
13654 2010-04-25  Bruno Haible  <bruno@clisp.org>
13655
13656         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13657         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13658         * doc/posix-functions/ctime_r.texi: Likewise.
13659         * doc/posix-functions/getgrgid_r.texi: Likewise.
13660         * doc/posix-functions/getgrnam_r.texi: Likewise.
13661         * doc/posix-functions/getlogin_r.texi: Likewise.
13662         * doc/posix-functions/getpwnam_r.texi: Likewise.
13663         * doc/posix-functions/getpwuid_r.texi: Likewise.
13664         * doc/posix-functions/readdir_r.texi: Likewise.
13665         * doc/posix-functions/sigwait.texi: Likewise.
13666         * doc/posix-functions/ttyname_r.texi: Likewise.
13667         Reported by Simon Josefsson.
13668
13669 2010-04-25  Bruno Haible  <bruno@clisp.org>
13670
13671         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13672         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13673         also to --create-testdir.
13674         (func_acceptable): Don't consider the status of *-tests modules here.
13675         (func_modules_transitive_closure): Consider it here, before including a
13676         test module.
13677         (func_import, func_create_testdir): Set inc_all_direct_tests,
13678         inc_all_indirect_tests.
13679         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13680         --create-testdir and --create-megatestdir.
13681
13682 2010-04-25  Bruno Haible  <bruno@clisp.org>
13683
13684         gnulib-tool: Add --without-*-tests options.
13685         * gnulib-tool (func_usage): Document the --without-*-tests options.
13686         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13687         excl_unportable_tests): New variables.
13688         Fail if they are specified with --import or --update.
13689         (func_acceptable): Respect the excl_*_tests variables.
13690         (func_import): Set the excl_*_tests variables to empty.
13691
13692 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13693             Bruno Haible  <bruno@clisp.org>
13694
13695         Work around a MacOS X 10.4 bug with openpty.
13696         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13697         * tests/test-openpty.c (main): Close the master side explicitly.
13698
13699 2010-04-25  Bruno Haible  <bruno@clisp.org>
13700
13701         strnlen: Fix a C++ test error on MacOS X and Solaris.
13702         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13703         the function is not declared.
13704         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13705         Simon Josefsson.
13706
13707 2010-04-24  Bruno Haible  <bruno@clisp.org>
13708
13709         Avoid a gcc warning.
13710         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13711         of correct type for %08lx directive.
13712         Reported by Eric Blake.
13713
13714 2010-04-24  Bruno Haible  <bruno@clisp.org>
13715
13716         vasnprintf: Correct errno value in case of out-of-memory.
13717         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13718         or sprintf. Use the errno value from SNPRINTF or sprintf.
13719         Reported by Ian Beckwith <ianb@erislabs.net>.
13720
13721 2010-04-24  Bruno Haible  <bruno@clisp.org>
13722
13723         ansi-c++-opt: Find correct compiler when cross-compiling.
13724         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13725         AC_CHECK_PROGS.
13726         Reported by Simon Josefsson.
13727
13728 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13729
13730         vc-list-files: Add support for subversion
13731         * build-aux/vc-list-files: Use "svn list" to generate the list of
13732         files controlled by subversion.
13733
13734 2010-04-23  Jim Meyering  <meyering@redhat.com>
13735
13736         vc-list-files tests: convert to use init.sh
13737         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13738         path_prepend_.
13739         Use Exit, not exit.
13740         Use skip_ rather than open coding it.
13741         Remove trap set-up and compare definitions.
13742         * tests/test-vc-list-files-git.sh: Likewise.
13743         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13744
13745 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13746
13747         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13748         backup files.
13749
13750 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13751
13752         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13753
13754 2010-04-20  Eric Blake  <eblake@redhat.com>
13755
13756         tests: be robust to ignored SIGPIPE
13757         * tests/test-select-in.sh: Consume all output.
13758         * tests/test-lseek.sh: Check correct exit status, while avoiding
13759         EPIPE.
13760
13761 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13762             Bruno Haible  <bruno@clisp.org>
13763
13764         visibility: Don't use -fvisibility if it leads to a warning.
13765         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13766         yes, don't pretend that visibility works if it leads to a warning.
13767         Reported by Mike Gran <spk121@yahoo.com>.
13768
13769 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13770
13771         * build-aux/bootstrap: Use "git -h" for testing for supported options
13772         instead of "git --help".  The short-form option only shows a summary,
13773         and doesn't layout the full man page.  Grep for the full option name
13774         in the summary, too.
13775
13776 2010-04-19  Bruno Haible  <bruno@clisp.org>
13777
13778         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13779         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13780         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13781         mention of RELOCATABLE_STRIP.
13782         Reported by Sylvain Beucler <beuc@beuc.net>.
13783
13784 2010-04-19  Bruno Haible  <bruno@clisp.org>
13785
13786         * lib/diffseq.h: Fix typo in comment.
13787         Reported by Eric Blake.
13788
13789 2010-04-19  Bruno Haible  <bruno@clisp.org>
13790
13791         ioctl: Move autoconf macro to a .m4 file.
13792         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13793         * modules/ioctl (Files): Add it.
13794         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13795         Reported by Ian Beckwith <ianb@erislabs.net>.
13796
13797 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13798             Bruno Haible  <bruno@clisp.org>
13799
13800         diffseq: Accommodate use-case with abstract arrays.
13801         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13802         is not defined.
13803         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13804         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13805
13806 2010-04-18  Bruno Haible  <bruno@clisp.org>
13807
13808         * doc/posix-headers/stdbool.texi: More precise wording.
13809
13810 2010-04-17  Jim Meyering  <meyering@redhat.com>
13811
13812         maint.mk: use gnu-style indentation in an embedded perl script
13813         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13814         Rename variable: s/two/last_two_bytes/
13815
13816 2010-04-16  Eric Blake  <eblake@redhat.com>
13817
13818         test-stdbool: skip test that fails with Solaris CC
13819         * tests/test-stdbool.c (f): Skip test that causes compilation
13820         error under buggy C++ compiler.
13821         * lib/stdbool.in.h: Document the limitation.
13822         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13823
13824         setenv: allow compilation with C++
13825         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13826         register keyword.
13827
13828         stdint: allow test to pass with C++
13829         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13830
13831         getopt: allow compilation with C++
13832         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13833         struct.
13834         * lib/getopt.c (_getopt_internal_r): Use correct type.
13835         Reported by Dagobert Michelson, via Joel E. Denny.
13836
13837 2010-04-16  Bruno Haible  <bruno@clisp.org>
13838
13839         Override netdb.h always.
13840         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13841         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13842         Reported by Ludovic Courtès <ludo@gnu.org>.
13843
13844 2010-04-15  Bruno Haible  <bruno@clisp.org>
13845
13846         openpty: Fix mistake from 2010-03-21.
13847         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13848         Reported by Simon Josefsson.
13849
13850 2010-04-15  Eric Blake  <eblake@redhat.com>
13851
13852         test-forkpty: fix expected signature
13853         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13854         Reported by Simon Josefsson.
13855
13856 2010-04-15  Jim Meyering  <meyering@redhat.com>
13857
13858         maint.mk: texinfo_suffix_re_: correct the default regexp
13859         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13860
13861         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13862         make it configurable via texinfo_suffix_re_.
13863
13864 2010-04-14  Eric Blake  <eblake@redhat.com>
13865
13866         strtok_r: relax license to LGPLv2+
13867         * modules/strtok_r (License): Relax license.
13868         Reported by Matthias Bolte.
13869
13870 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13871
13872         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13873         version 1.4.4 by default instead of requiring the libgcrypt
13874         version used during build.  This makes it possible to use the
13875         application with older but still binary compatible libgcrypt
13876         versions.
13877
13878 2010-04-13  Eric Blake  <eblake@redhat.com>
13879
13880         getopt-gnu: match recent glibc fixes and posix ruling
13881         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13882         '+' handling, when requesting extensions.
13883         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13884         'W;' handling.
13885         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13886         * doc/posix-functions/getopt.texi (getopt): Document this.
13887         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13888         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13889         Likewise.
13890
13891         getopt: merge bug fixes from glibc
13892         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13893         diagnostics.  Honor '+:' correctly.  Reject ';'.
13894
13895         getopt-posix: detect MacOS bug
13896         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13897         optind when missing a required argument.
13898         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13899         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13900         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13901         Likewise.
13902
13903         getopt-posix: avoid spurious failure on Solaris
13904         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13905         an indicator that setting optind=1 is sufficient for reset.
13906
13907         getopt-posix: avoid spurious failure on FreeBSD
13908         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13909         in POSIX mode, since the m4 test uses it.
13910
13911         gnulib-tool: silence warning on BSD sh
13912         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13913
13914 2010-04-13  Jim Meyering  <meyering@redhat.com>
13915
13916         doc: users.txt: GNU patch now uses gnulib
13917         * users.txt: Add patch.
13918
13919 2010-04-12  Jim Meyering  <meyering@redhat.com>
13920
13921         maint.mk: generate more concise timing data for syntax-check rules
13922         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13923         " done" from each line that reports a syntax-check test duration.
13924
13925 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13926
13927         git-version-gen: use "git update-index..." rather than "git status"
13928         * build-aux/git-version-gen: Use git update-index --refresh, not
13929         "git status".  With some versions of git, "git status" would fail
13930         to update the index and result in an unwarranted "-dirty" suffix.
13931
13932 2010-04-11  Jim Meyering  <meyering@redhat.com>
13933
13934         openat: correct formatting (no semantic change)
13935         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13936         Suggested by Bruno Haible.
13937
13938 2010-04-11  Bruno Haible  <bruno@clisp.org>
13939
13940         Stricter declaration checking in testdirs.
13941         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13942         If for_tests is true, augment AM_CPPFLAGS to define
13943         GNULIB_STRICT_CHECKING.
13944         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13945         GNULIB_STRICT_CHECKING is defined, verify that the function is
13946         declared.
13947
13948 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13949             Bruno Haible  <bruno@clisp.org>
13950
13951         libunistring: Improve configure output.
13952         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13953         Don't say "consider installing GNU libunistring" when checking again
13954         with libiconv.
13955
13956 2010-04-11  Bruno Haible  <bruno@clisp.org>
13957
13958         libunistring: Correct value of $LTLIBUNISTRING.
13959         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13960         correct the value of $LTLIBUNISTRING.
13961
13962 2010-04-11  Bruno Haible  <bruno@clisp.org>
13963
13964         havelib: Add static libraries to LIBS in the right order.
13965         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13966         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13967
13968 2010-04-11  Bruno Haible  <bruno@clisp.org>
13969
13970         libunistring: Detect libunistring also when it depends on libiconv.
13971         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13972         the second AC_LIB_HAVE_LINKFLAGS invocation.
13973
13974 2010-04-11  James Youngman  <jay@gnu.org>
13975
13976         close-stream: declare local scalars to be "const"
13977         * lib/close-stream.c (close_stream): Make boolean variables const
13978         to document the fact that we set but do not change them.
13979
13980 2010-04-11  Bruno Haible  <bruno@clisp.org>
13981
13982         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13983
13984 2010-04-11  Jim Meyering  <meyering@redhat.com>
13985
13986         maint.mk: don't include dist-check.mk
13987         * top/maint.mk: Remove bogus include directive.
13988
13989         maint.mk: improve empty-line-at-EOF check
13990         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13991         solution, rather than tail+Perl-based one.  The latter would read
13992         a few kilobytes from the end of each file, and did not handle empty
13993         files properly.
13994
13995         maint.mk: print the elapsed time for each syntax-check rule
13996         * top/maint.mk (sc_m_rules_): Save start time in a file.
13997         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13998         (local-check): Interpose the .z rules
13999
14000 2010-04-11  Jim Meyering  <meyering@redhat.com>
14001
14002         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
14003         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
14004         empty file with one that ends in an empty line.
14005
14006 2010-04-10  Bruno Haible  <bruno@clisp.org>
14007
14008         mkdir: Make it work on mingw64.
14009         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
14010         * lib/mkdir.c: Update comment.
14011         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
14012
14013 2010-04-10  Bruno Haible  <bruno@clisp.org>
14014
14015         Don't override improved macro from newer autoconf.
14016         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
14017         autoconf >= 2.62.
14018         Reported by Joel E. Denny <jdenny@clemson.edu>.
14019
14020 2010-04-10  Jim Meyering  <meyering@redhat.com>
14021
14022         maint.mk: new syntax-check rule: prohibit empty lines at end of file
14023         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
14024
14025         maint.mk: correct a diagnostic
14026         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
14027         in diagnostic; now use $prohibit.
14028
14029 2010-04-10  Bruno Haible  <address@hidden>
14030
14031         fchownat: Fix a C++ test error on Solaris 8.
14032         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
14033         the function does not exist.
14034
14035 2010-04-10  Bruno Haible  <bruno@clisp.org>
14036
14037         vasnprintf: Add more tests.
14038         * tests/test-vasnprintf-posix.c: Include <errno.h>.
14039         (test_function): Test converting an invalid wide string.
14040
14041         vasnprintf: Correct handling of unconvertible wide string arguments.
14042         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
14043         VASNPRINTF.
14044         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
14045         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
14046         smaller than the expected maximum need for the directive. Set errno to
14047         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
14048         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
14049         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
14050         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
14051         * modules/vasnprintf (Files): Add m4/printf.m4.
14052         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14053
14054 2010-04-10  Bruno Haible  <bruno@clisp.org>
14055
14056         vasnprintf: Fix crash in %ls directive.
14057         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14058         string is passed as argument to %ls, with no precision and no width.
14059         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14060
14061 2010-04-10  Bruno Haible  <bruno@clisp.org>
14062
14063         vasnprintf: Fix multiple test failures on mingw.
14064         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14065         _snprintf, or snwprintf, not _snwprintf.
14066
14067 2010-04-10  Bruno Haible  <bruno@clisp.org>
14068
14069         write: Fix a C++ test error on mingw.
14070         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14071
14072 2010-04-10  Bruno Haible  <bruno@clisp.org>
14073
14074         vasnprintf test: Reduce code duplication.
14075         * tests/test-vasnprintf.c (test_function): New function, extracted from
14076         test_vasnprintf.
14077         (test_vasnprintf, test_asnprintf): Invoke it.
14078
14079 2010-04-10  Bruno Haible  <bruno@clisp.org>
14080
14081         strnlen: Fix warning in C++ mode on MacOS X.
14082         * lib/string.in.h (strnlen): Use the modern idiom.
14083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14084         defining strnlen as a macro already in <config.h>.
14085         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14086         REPLACE_STRNLEN.
14087         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14088         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14089
14090 2010-04-08  James Youngman  <jay@gnu.org>
14091
14092         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14093         the example.
14094
14095 2010-04-09  Jim Meyering  <meyering@redhat.com>
14096
14097         maint.mk: print better diagnostic when there is no $(_hv_file)
14098         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14099         announce that when $(_hv_file) (aka help-version) does not exist.
14100
14101         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14102         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14103         not try to interpret its random input bytes.  Jarno Rajahalme reported
14104         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14105         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14106         (mktempd_): Likewise, just in case.
14107
14108         ftruncate: add two years to projected module removal date: 2012
14109         * m4/ftruncate.m4: Adjust comments.
14110
14111         ftruncate: mark module as obsolete; even MinGW provides it, now
14112         * modules/ftruncate (Status): Obsolete.
14113         (Notice): Say that.
14114         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14115         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14116
14117 2010-04-08  Bruno Haible  <bruno@clisp.org>
14118
14119         Fix side effects from tests-related modules.
14120         * modules/dprintf-posix (Comment): New section.
14121         * modules/fprintf-posix (Comment): Likewise.
14122         * modules/obstack-printf-posix (Comment): Likewise.
14123         * modules/printf-posix (Comment): Likewise.
14124         * modules/snprintf-posix (Comment): Likewise.
14125         * modules/sprintf-posix (Comment): Likewise.
14126         * modules/vasnprintf-posix (Comment): Likewise.
14127         * modules/vasprintf-posix (Comment): Likewise.
14128         * modules/vdprintf-posix (Comment): Likewise.
14129         * modules/vfprintf-posix (Comment): Likewise.
14130         * modules/vprintf-posix (Comment): Likewise.
14131         * modules/vsnprintf-posix (Comment): Likewise.
14132         * modules/vsprintf-posix (Comment): Likewise.
14133         * modules/xprintf-posix (Comment): Likewise.
14134         * modules/xvasprintf-posix (Comment): Likewise.
14135         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14136         * modules/floorf-tests (Depends-on): Likewise.
14137         * modules/round-tests (Depends-on): Likewise.
14138         * modules/roundf-tests (Depends-on): Likewise.
14139         * modules/trunc-tests (Depends-on): Likewise.
14140         * modules/truncf-tests (Depends-on): Likewise.
14141         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14142         'fprintf-posix' module is not present.
14143         * tests/test-floorf2.c (check): Likewise.
14144         * tests/test-trunc2.c (check): Likewise.
14145         * tests/test-truncf2.c (check): Likewise.
14146         * tests/test-round2.c (equal): Likewise.
14147         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14148
14149 2010-04-07  Karl Berry  <karl@gnu.org>
14150
14151         * config/srclist.txt,
14152         * config/srclistvars.sh,
14153         * config/srclist-update: doc fixes.
14154
14155 2010-04-07  Jim Meyering  <meyering@redhat.com>
14156
14157         maint.mk: add a PATH crosschecking syntax-check rule
14158         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14159         Useful if you use a test like the one in help-version (coreutils,
14160         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14161         printed by prog --version.
14162
14163 2010-04-06  Bruno Haible  <bruno@clisp.org>
14164
14165         Fix link error on mingw.
14166         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14167         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14168
14169 2010-04-06  Bruno Haible  <bruno@clisp.org>
14170
14171         Assume rmdir exists.
14172         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14173
14174 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14175
14176         doc: update users.txt
14177         * users.txt: Add gcal.
14178
14179 2010-04-06  Jim Meyering  <meyering@redhat.com>
14180
14181         init.sh: simply unset TMPDIR rather than risking env -i
14182         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14183         although it probably works fine on all Unix-based systems, some
14184         systems (Cygwin?) cannot tolerate a totally cleared environment.
14185         Suggestion from Eric Blake.
14186
14187 2010-04-06  Jim Meyering  <meyering@redhat.com>
14188
14189         init.sh: portability fix: use env's POSIX-specified -i option not -u
14190         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14191         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14192
14193 2010-04-05  Bruno Haible  <bruno@clisp.org>
14194
14195         btowc: Work around Cygwin 1.7.2 bug.
14196         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14197         does not map NUL to 0.
14198         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14199
14200 2010-04-05  Bruno Haible  <bruno@clisp.org>
14201
14202         Make the multithread modules work on Cygwin 1.7.2.
14203         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14204         imported symbols can be declared weak, so that it returns "no" on
14205         Cygwin 1.7.2.
14206
14207 2010-04-05  Bruno Haible  <bruno@clisp.org>
14208
14209         Use the module 'strncat'.
14210         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14211
14212         Tests for module 'strncat'.
14213         * modules/strncat-tests: New file.
14214         * tests/test-strncat.c: New file.
14215
14216         New module 'strncat'.
14217         * lib/string.in.h (strncat): New declaration.
14218         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14219         * m4/strncat.m4: New file, based on m4/memchr.m4.
14220         * modules/strncat: New file.
14221         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14222         is declared.
14223         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14224         REPLACE_STRNCAT.
14225         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14226         REPLACE_STRNCAT.
14227         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14228         module.
14229         * tests/test-string-c++.cc: Check signature of strncat.
14230
14231 2010-04-05  Jim Meyering  <meyering@redhat.com>
14232
14233         xstrtoumax-tests: convert to use init.sh
14234         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14235         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14236         Use Exit, not exit.
14237         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14238
14239         xstrtoimax-tests: convert to use init.sh
14240         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14241         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14242         Use Exit, not exit.
14243         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14244
14245 2010-04-05  Bruno Haible  <bruno@clisp.org>
14246
14247         sys_socket: Avoid #define replacements in C++ mode.
14248         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14249         warning to the function if possible, rather than #defining the symbol
14250         to a dysfunctional alias.
14251
14252 2010-04-05  Bruno Haible  <bruno@clisp.org>
14253
14254         fseeko: Fix C++ test error on mingw.
14255         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14256         gl_FUNC_FSEEKO.
14257         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14258         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14259         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14260         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14261
14262 2010-04-05  Bruno Haible  <bruno@clisp.org>
14263
14264         duplocale: Improve test output.
14265         * tests/test-duplocale.c (main): Print reason for skipped test.
14266
14267 2010-04-05  Bruno Haible  <bruno@clisp.org>
14268
14269         Assume rmdir exists.
14270         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14271         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14272
14273 2010-04-05  Bruno Haible  <bruno@clisp.org>
14274
14275         Fix link error on Solaris 8 with cc.
14276         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14277
14278 2010-04-05  Bruno Haible  <bruno@clisp.org>
14279
14280         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14281         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14282
14283 2010-04-05  Bruno Haible  <bruno@clisp.org>
14284
14285         vasprintf: Update documentation.
14286         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14287
14288 2010-04-05  Bruno Haible  <bruno@clisp.org>
14289
14290         ptsname: Improve test.
14291         * tests/test-ptsname.c (main): Also try the various master names of BSD
14292         systems.
14293
14294 2010-04-05  Bruno Haible  <bruno@clisp.org>
14295
14296         memchr: Avoid a possible C++ test error.
14297         * lib/string.in.h (memchr): Provide declaration if function is missing.
14298         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14299         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14301         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14302
14303 2010-04-05  Bruno Haible  <bruno@clisp.org>
14304
14305         strtok_r: Improve idiom.
14306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14307         AC_LIBOBJ is used.
14308
14309 2010-04-05  Bruno Haible  <bruno@clisp.org>
14310
14311         strdup: Improve idiom.
14312         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14313         AC_LIBOBJ is used.
14314         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14315         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14316         when AC_LIBOBJ is used.
14317
14318 2010-04-05  Bruno Haible  <bruno@clisp.org>
14319
14320         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14321         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14322         don't set REPLACE_MBSINIT to 1.
14323         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14324         don't set REPLACE_MBRTOWC to 1.
14325         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14326         exist, don't set REPLACE_MBSRTOWCS to 1.
14327         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14328         exist, don't set REPLACE_MBSNRTOWCS to 1.
14329         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14330         don't set REPLACE_WCRTOMB to 1.
14331         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14332         exist, don't set REPLACE_WCSRTOMBS to 1.
14333         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14334         exist, don't set REPLACE_WCSNRTOMBS to 1.
14335
14336 2010-04-05  Bruno Haible  <bruno@clisp.org>
14337
14338         ldexpl: Improve idiom.
14339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14340         make sure to set HAVE_DECL_LDEXPL to 0.
14341
14342 2010-04-05  Jim Meyering  <meyering@redhat.com>
14343
14344         xstrtol-tests: convert to use init.sh
14345         * modules/xstrtol-tests (Files): Add tests/init.sh.
14346         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14347         Use Exit, not exit.
14348         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14349
14350         atexit-tests: convert to use init.sh
14351         * modules/atexit-tests (Files): Add tests/init.sh.
14352         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14353         Use Exit, not exit.
14354         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14355
14356         init.sh: fix typo
14357         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14358
14359         init.sh: make it easier for a test script to write to the tty, ...
14360         when using automake's parallel-tests mode.
14361         * tests/init.sh (stderr_fileno_): Define overridable variable.
14362         (warn_): New function, to use it.
14363         (fail_, skip_, framework_failure_): Use warn_.
14364
14365 2010-04-04  Bruno Haible  <bruno@clisp.org>
14366
14367         btowc: Avoid warning.
14368         * lib/btowc.c: Include <stdlib.h>.
14369         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14370
14371 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14372             Bruno Haible  <bruno@clisp.org>
14373
14374         wchar: Port to NetBSD 1.5.
14375         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14376         * lib/wctype.in.h (WEOF): Likewise.
14377
14378 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14379             Bruno Haible  <bruno@clisp.org>
14380
14381         Port extended stdio to NetBSD 1.5.
14382         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14383         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14384         older.
14385
14386 2010-04-04  Bruno Haible  <bruno@clisp.org>
14387
14388         string: Remove unused substitution.
14389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14390         HAVE_DECL_STRERROR.
14391         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14392
14393 2010-04-04  Bruno Haible  <bruno@clisp.org>
14394
14395         strtod: Avoid a possible C++ test error.
14396         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14397         set REPLACE_STRTOD.
14398
14399 2010-04-04  Bruno Haible  <bruno@clisp.org>
14400
14401         strerror: Update documentation.
14402         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14403
14404 2010-04-04  Bruno Haible  <bruno@clisp.org>
14405
14406         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14407         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14408         _GL_CXXALIAS_SYS_CAST.
14409
14410 2010-04-04  Bruno Haible  <bruno@clisp.org>
14411
14412         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14413         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14414         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14415         REPLACE_FREXPL to 1.
14416         * doc/posix-functions/frexpl.texi: Update documentation.
14417
14418 2010-04-04  Bruno Haible  <bruno@clisp.org>
14419
14420         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14421         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14422
14423 2010-04-04  Bruno Haible  <bruno@clisp.org>
14424
14425         Implement nanosleep for native Windows.
14426         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14427
14428 2010-04-04  Bruno Haible  <bruno@clisp.org>
14429
14430         math: Fix some C++ test errors on Solaris 8.
14431         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14432
14433 2010-04-04  Bruno Haible  <bruno@clisp.org>
14434
14435         math: Fix some C++ test errors on Cygwin.
14436         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14437         truncl): Provide declaration if the system does not have it.
14438         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14439         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14440         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14441         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14442         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14443         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14444         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14445         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14446         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14447         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14448         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14449         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14450         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14451         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14452         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14453         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14455         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14456         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14457         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14458         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14459         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14460
14461 2010-04-04  Bruno Haible  <bruno@clisp.org>
14462
14463         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14464         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14465         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14466         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14467         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14468         * m4/isinf.m4 (gl_ISINF): Likewise.
14469         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14470
14471 2010-04-04  Bruno Haible  <bruno@clisp.org>
14472
14473         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14474         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14475
14476 2010-04-04  Bruno Haible  <bruno@clisp.org>
14477
14478         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14479         * modules/tmpfile (configure.ac): Update.
14480
14481         tmpfile: Fix C++ test error on mingw.
14482         * lib/stdio.in.h (tmpfile): New declaration.
14483         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14484         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14485         * modules/tmpfile (Depends-on): Add stdio.
14486         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14487         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14488         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14489         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14490         REPLACE_TMPFILE.
14491         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14492
14493 2010-04-04  Bruno Haible  <bruno@clisp.org>
14494
14495         ioctl: Fix C++ test error on mingw.
14496         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14497         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14498         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14499
14500 2010-04-03  Bruno Haible  <bruno@clisp.org>
14501
14502         wcwidth: Fix C++ test error on mingw.
14503         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14504         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14505         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14506
14507 2010-04-03  Bruno Haible  <bruno@clisp.org>
14508
14509         nanosleep: Fix C++ test error on mingw.
14510         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14511         * lib/time.in.h (nanosleep): Use modern idiom.
14512         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14513         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14514         REPLACE_NANOSLEEP to 1.
14515         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14516         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14517
14518 2010-04-03  Bruno Haible  <bruno@clisp.org>
14519
14520         strptime: Fix C++ test error on mingw.
14521         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14522         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14523         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14524         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14525         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14526         not REPLACE_STRPTIME.
14527         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14528         REPLACE_STRPTIME.
14529
14530 2010-04-03  Bruno Haible  <bruno@clisp.org>
14531
14532         timegm: Fix C++ test error on mingw.
14533         * lib/time.in.h (timegm): Use modern idiom.
14534         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14535         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14536         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14537         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14538
14539 2010-04-03  Bruno Haible  <bruno@clisp.org>
14540
14541         timegm: Assume declaration if function exists.
14542         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14543         if it exists. Don't clobber ac_cv_func_timegm.
14544
14545 2010-04-03  Bruno Haible  <bruno@clisp.org>
14546
14547         time_r: Fix C++ test error on mingw.
14548         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14549         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14550         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14551         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14552         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14553
14554 2010-04-03  Bruno Haible  <bruno@clisp.org>
14555
14556         time_r: Minor updates.
14557         * modules/time_r (Description): Mention the provided functions.
14558         * lib/time_r.c: Don't include <string.h>.
14559         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14560         * doc/posix-functions/localtime_r.texi: Likewise.
14561
14562 2010-04-03  Bruno Haible  <bruno@clisp.org>
14563
14564         time: Fix regression introduced on 2010-03-08.
14565         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14566         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14567
14568 2010-04-03  Jim Meyering  <meyering@redhat.com>
14569
14570         maint.mk: don't silently disable project-specific syntax-check rules
14571         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14572         that they need to convert their project-specific syntax-check rules
14573         to use the new _sc_search_regexp.
14574
14575 2010-04-03  Bruno Haible  <bruno@clisp.org>
14576
14577         fchdir: Fix regression introduced on 2010-03-08.
14578         * lib/unistd.in.h (fchdir): Fix declaration.
14579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14581         REPLACE_FCHDIR.
14582         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14583         REPLACE_FCHDIR.
14584
14585 2010-04-03  Bruno Haible  <bruno@clisp.org>
14586
14587         getpagesize: Fix C++ test error on mingw.
14588         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14589         system does not declare the function.
14590         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14591         declared.
14592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14593         HAVE_DECL_GETPAGESIZE.
14594         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14595
14596 2010-04-03  Bruno Haible  <bruno@clisp.org>
14597
14598         stdio: Make C++ tests work on mingw.
14599         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14600         does not declare the function.
14601
14602 2010-04-03  Bruno Haible  <bruno@clisp.org>
14603
14604         ftello: Fix C++ test error on mingw.
14605         * lib/stdio.in.h (ftello): Use modern idiom.
14606         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14607         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14608         is missing and that it needs to be replaced.
14609         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14610         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14611         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14612
14613 2010-04-03  Bruno Haible  <bruno@clisp.org>
14614
14615         fseeko: Fix C++ test error on mingw.
14616         * lib/stdio.in.h (fseeko): Use modern idiom.
14617         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14618         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14619         is missing and that it needs to be replaced.
14620         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14621         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14622         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14623
14624 2010-04-03  Bruno Haible  <bruno@clisp.org>
14625
14626         mkstemp: Fix C++ test error on mingw.
14627         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14628         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14629         function is missing and that it needs to be replaced.
14630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14631         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14632
14633 2010-04-03  Bruno Haible  <bruno@clisp.org>
14634
14635         stpncpy: Fix C++ test error on mingw.
14636         * lib/string.in.h (stpncpy): Use modern idiom.
14637         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14638         function is missing and that it needs to be replaced.
14639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14640         REPLACE_STPNCPY.
14641         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14642
14643 2010-04-03  Bruno Haible  <bruno@clisp.org>
14644
14645         sys_stat: Fix C++ test error on mingw.
14646         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14647         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14648
14649 2010-04-03  Bruno Haible  <bruno@clisp.org>
14650
14651         pty: Update doc.
14652         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14653
14654 2010-04-03  Bruno Haible  <bruno@clisp.org>
14655
14656         unistd: Fix C++ test error on mingw.
14657         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14658
14659 2010-04-03  Bruno Haible  <bruno@clisp.org>
14660
14661         Update doc regarding mingw.
14662         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14663         * doc/glibc-functions/login_tty.texi: Likewise.
14664         * doc/glibc-functions/forkpty.texi: Likewise.
14665
14666 2010-04-03  Bruno Haible  <bruno@clisp.org>
14667
14668         stdlib: Avoid compilation failure of c-strtold on mingw.
14669         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14670
14671 2010-04-03  Bruno Haible  <bruno@clisp.org>
14672
14673         locale: Make C++ tests work on Cygwin and mingw.
14674         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14675         cannot provide the function.
14676         Reported by Simon Josefsson.
14677
14678 2010-04-03  Bruno Haible  <bruno@clisp.org>
14679
14680         localename: Port to MacOS X 10.6.
14681         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14682         memory layout of the locales in MacOS X 10.6 as well.
14683         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14684
14685 2010-04-02  Bruno Haible  <bruno@clisp.org>
14686
14687         gnulib-tool: Ensure that long-running tests are executed last.
14688         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14689         running tests after the one for the other tests.
14690
14691 2010-04-02  Bruno Haible  <bruno@clisp.org>
14692
14693         gnulib-tool: Ensure the tests in the main directory are executed first.
14694         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14695         start with the current directory.
14696
14697 2010-04-02  Bruno Haible  <bruno@clisp.org>
14698
14699         Tests for module 'havelib', moved here from GNU gettext.
14700         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14701         modifications.
14702         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14703         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14704         with modifications.
14705         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14706         modifications.
14707         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14708         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14709         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14710         with modifications.
14711         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14712         with modifications.
14713         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14714         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14715         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14716         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14717         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14718         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14719         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14720         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14721         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14722         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14723         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14724         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14725         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14726         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14727         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14728         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14729         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14730         with modifications.
14731         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14732         with modifications.
14733         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14734         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14735         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14736         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14737         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14738         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14739         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14740         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14741         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14742         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14743         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14744         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14745         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14746         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14747         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14748         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14749         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14750         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14751         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14752         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14753         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14754         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14755         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14756         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14757         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14758         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14759         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14760         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14761         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14762         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14763         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14764         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14765         * tests/havelib/rpathx/rpathx.c: New file, from
14766         gettext/autoconf-lib-link.
14767         * tests/havelib/rpathx/Makefile.am: New file, from
14768         gettext/autoconf-lib-link.
14769         * tests/havelib/rpathx/configure.ac: New file, from
14770         gettext/autoconf-lib-link with modifications.
14771         * tests/havelib/rpathy/rpathy.c: New file, from
14772         gettext/autoconf-lib-link.
14773         * tests/havelib/rpathy/Makefile.am: New file, from
14774         gettext/autoconf-lib-link.
14775         * tests/havelib/rpathy/configure.ac: New file, from
14776         gettext/autoconf-lib-link with modifications.
14777         * tests/havelib/rpathz/rpathz.c: New file, from
14778         gettext/autoconf-lib-link.
14779         * tests/havelib/rpathz/Makefile.am: New file, from
14780         gettext/autoconf-lib-link.
14781         * tests/havelib/rpathz/configure.ac: New file, from
14782         gettext/autoconf-lib-link with modifications.
14783         * tests/havelib/rpathlx/usex.c: New file, from
14784         gettext/autoconf-lib-link.
14785         * tests/havelib/rpathlx/Makefile.am: New file, from
14786         gettext/autoconf-lib-link.
14787         * tests/havelib/rpathlx/configure.ac: New file, from
14788         gettext/autoconf-lib-link with modifications.
14789         * tests/havelib/rpathly/usey.c: New file, from
14790         gettext/autoconf-lib-link.
14791         * tests/havelib/rpathly/Makefile.am: New file, from
14792         gettext/autoconf-lib-link.
14793         * tests/havelib/rpathly/configure.ac: New file, from
14794         gettext/autoconf-lib-link with modifications.
14795         * tests/havelib/rpathlz/usez.c: New file, from
14796         gettext/autoconf-lib-link.
14797         * tests/havelib/rpathlz/Makefile.am: New file, from
14798         gettext/autoconf-lib-link.
14799         * tests/havelib/rpathlz/configure.ac: New file, from
14800         gettext/autoconf-lib-link with modifications.
14801         * tests/havelib/rpathlyx/usey.c: New file, from
14802         gettext/autoconf-lib-link.
14803         * tests/havelib/rpathlyx/Makefile.am: New file, from
14804         gettext/autoconf-lib-link.
14805         * tests/havelib/rpathlyx/configure.ac: New file, from
14806         gettext/autoconf-lib-link with modifications.
14807         * tests/havelib/rpathlzyx/usez.c: New file, from
14808         gettext/autoconf-lib-link.
14809         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14810         gettext/autoconf-lib-link.
14811         * tests/havelib/rpathlzyx/configure.ac: New file, from
14812         gettext/autoconf-lib-link with modifications.
14813         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14814         with modifications.
14815
14816 2010-04-02  Bruno Haible  <bruno@clisp.org>
14817
14818         gnulib-tool: Create distributed built sources also for the tests.
14819         * gnulib-tool (func_create_testdir): Also generate distributed built
14820         sources in the tests directory.
14821
14822 2010-04-02  Bruno Haible  <bruno@clisp.org>
14823
14824         gnulib-tool: Obey user's environment variables.
14825         * gnulib-tool (func_create_testdir): When creating built sources,
14826         respect the environment variables for autoconf, automake, etc. given by
14827         the user.
14828
14829 2010-04-02  Bruno Haible  <bruno@clisp.org>
14830
14831         gnulib-tool: Provide the value of --m4-base to modules.
14832         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14833         of gl_m4_base.
14834
14835 2010-04-02  Eric Blake  <eblake@redhat.com>
14836
14837         maint.mk: fix some fallout
14838         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14839         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14840
14841 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14842
14843         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14844         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14845         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14846         (sc_cast_of_x_alloc_return_value): Likewise.
14847         (sc_cast_of_alloca_return_value): Likewise.
14848         (sc_space_tab): Likewise.
14849         (sc_prohibit_atoi_atof): Likewise.
14850         (sc_prohibit_magic_number_exit): Likewise.
14851         (sc_error_exit_success): Likewise.
14852         (sc_file_system): Likewise.
14853         (sc_prohibit_have_config_h): Likewise.
14854         (sc_require_config_h): Likewise.
14855         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14856         (sc_obsolete_symbols): Likewise.
14857         (sc_changelog): Likewise.
14858         (sc_program_name): Likewise.
14859         (sc_the_the): Likewise.
14860         (sc_trailing_blank): Likewise.
14861         (sc_two_space_separator_in_usage): Likewise.
14862         (sc_useless_cpp_parens): Likewise.
14863         (sc_GPL_version): Likewise.
14864         (sc_GFDL_version): Likewise.
14865         (sc_texinfo_acronym): Likewise.
14866         (sc_prohibit_cvs_keyword): Likewise.
14867         (sc_prohibit_stat_st_blocks): Likewise.
14868         (sc_prohibit_S_IS_definition): Likewise.
14869         (sc_redundant_const): Likewise.
14870         (sc_makefile_TAB_only_indentation): Likewise.
14871         (sc_m4_quote_check): Likewise.
14872         (sc_makefile_path_separator_check): Likewise.
14873         (sc_copyright_check): Likewise.
14874         (sc_Wundef_boolean): Likewise.
14875         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14876
14877         maint.mk: match 0 or more whitespace-before-function-call '('
14878         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14879         that have zero or two-and-more spaces between the function name
14880         and the open parenthesis.
14881         (sc_error_message_warn_fatal): Likewise.
14882         (sc_error_message_uppercase): Likewise.
14883         (sc_error_message_period): Likewise.
14884
14885 2010-03-31  Eric Blake  <eblake@redhat.com>
14886
14887         maint.mk: check for [ as well as test
14888         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14889         Based on a libvirt report by Matthias Bolte.
14890
14891         gnumakefile: don't squelch _version output
14892         * top/GNUmakefile (_version): Create one-shot dependency rather
14893         than using $(shell) when version must be regenerated.
14894         (_autoreconf): Run verbosely, by default.
14895
14896         sys_time: avoid compiler warnings
14897         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14898         unconditional, fixing regression from 2010-03-29.
14899         Reported by Simon Josefsson.
14900
14901 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14902
14903         maint.mk: s/_header_without_use/_sc_header_without_use/
14904         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14905         (sc_prohibit_assert_without_use): Use the new name.
14906         (sc_prohibit_close_stream_without_use): Likewise.
14907         (sc_prohibit_getopt_without_use): Likewise.
14908         (sc_prohibit_quotearg_without_use): Likewise.
14909         (sc_prohibit_quote_without_use): Likewise.
14910         (sc_prohibit_long_options_without_use): Likewise.
14911         (sc_prohibit_inttostr_without_use): Likewise.
14912         (sc_prohibit_ignore_value_without_use): Likewise.
14913         (sc_prohibit_error_without_use): Likewise.
14914         (sc_prohibit_xalloc_without_use): Likewise.
14915         (sc_prohibit_hash_without_use): Likewise.
14916         (sc_prohibit_hash_pjw_without_use): Likewise.
14917         (sc_prohibit_safe_read_without_use): Likewise.
14918         (sc_prohibit_argmatch_without_use): Likewise.
14919         (sc_prohibit_canonicalize_without_use): Likewise.
14920         (sc_prohibit_root_dev_ino_without_use): Likewise.
14921         (sc_prohibit_openat_without_use): Likewise.
14922         (sc_prohibit_c_ctype_without_use): Likewise.
14923         (sc_prohibit_signal_without_use): Likewise.
14924         (sc_prohibit_intprops_without_use): Likewise.
14925
14926 2010-03-30  Eric Blake  <eblake@redhat.com>
14927
14928         maint: improve module indicators
14929         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14930         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14931         columns, and avoid extra macro expansion.
14932
14933         fdopendir: work around FreeBSD bug
14934         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14935         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14936         * modules/dirent (Makefile.am): Substitute it.
14937         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14938         declaration.
14939         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14940         fix.
14941         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14942
14943 2010-03-29  Bruno Haible  <bruno@clisp.org>
14944
14945         Emit #pragma system_header after the inclusion guard, not before.
14946         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14947         guard that spans the entire file, not before. This enables an
14948         optimization in GCC's preprocessor.
14949         * lib/ctype.in.h: Likewise.
14950         * lib/dirent.in.h: Likewise.
14951         * lib/errno.in.h: Likewise.
14952         * lib/float.in.h: Likewise.
14953         * lib/getopt.in.h: Likewise.
14954         * lib/iconv.in.h: Likewise.
14955         * lib/langinfo.in.h: Likewise.
14956         * lib/locale.in.h: Likewise.
14957         * lib/math.in.h: Likewise.
14958         * lib/netdb.in.h: Likewise.
14959         * lib/netinet_in.in.h: Likewise.
14960         * lib/pty.in.h: Likewise.
14961         * lib/sched.in.h: Likewise.
14962         * lib/se-selinux.in.h: Likewise.
14963         * lib/search.in.h: Likewise.
14964         * lib/spawn.in.h: Likewise.
14965         * lib/stdarg.in.h: Likewise.
14966         * lib/stdint.in.h: Likewise.
14967         * lib/string.in.h: Likewise.
14968         * lib/strings.in.h: Likewise.
14969         * lib/sys_file.in.h: Likewise.
14970         * lib/sys_ioctl.in.h: Likewise.
14971         * lib/sys_time.in.h: Likewise.
14972         * lib/sys_times.in.h: Likewise.
14973         * lib/sys_utsname.in.h: Likewise.
14974         * lib/sys_wait.in.h: Likewise.
14975         * lib/sysexits.in.h: Likewise.
14976         * lib/wctype.in.h: Likewise.
14977
14978 2010-03-28  James Youngman  <jay@gnu.org>
14979
14980         save-cwd: don't leak a file descriptor when the caller execs.
14981         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14982         saved file descriptor.
14983         * modules/save-cwd (Depends-on): Depend on cloexec.
14984
14985 2010-03-29  Bruno Haible  <bruno@clisp.org>
14986
14987         Remove vestiges of fts-lgpl module.
14988         * lib/fts_.h: Assume GNULIB_FTS is 1.
14989         * lib/fts.c: Likewise.
14990         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14991
14992 2010-03-28  Bruno Haible  <bruno@clisp.org>
14993
14994         Fix definition of tests witness macro.
14995         * gnulib-tool (func_import): Fix definition of witness macro.
14996
14997 2010-03-28  Bruno Haible  <bruno@clisp.org>
14998
14999         Fix ioctl's protoype on glibc systems.
15000         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
15001         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
15002         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
15003         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
15004         signature. If not, arrange to replace the ioctl function.
15005         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
15006         REPLACE_IOCTL.
15007         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
15008         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
15009         Reported by Ludovic Courtès <ludo@gnu.org>.
15010
15011 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
15012
15013         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
15014         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
15015         made it so grep -r --include=GLOB* ... did not work.
15016
15017 2010-03-26  Jim Meyering  <meyering@redhat.com>
15018             Eric Blake  <eblake@redhat.com>
15019
15020         maint.mk: prohibit use of test's -o and -a operators
15021         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
15022
15023 2010-03-28  Bruno Haible  <bruno@clisp.org>
15024
15025         Remove unused GNULIB_XYZ macro definitions.
15026         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
15027         invocation.
15028
15029 2010-03-28  Bruno Haible  <bruno@clisp.org>
15030
15031         Mark privileged tests modules.
15032         * modules/idpriv-drop-tests (Status): New section.
15033         * modules/idpriv-droptemp-tests (Status): New section.
15034
15035 2010-03-28  Bruno Haible  <bruno@clisp.org>
15036
15037         Split C++ tests into separate tests modules.
15038         * modules/dirent-c++-tests: New file, extracted from
15039         modules/dirent-tests.
15040         * modules/dirent-tests: Depend on it.
15041         * modules/fcntl-h-c++-tests: New file, extracted from
15042         modules/fcntl-h-tests.
15043         * modules/fcntl-h-tests: Depend on it.
15044         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
15045         * modules/glob-tests: Depend on it.
15046         * modules/iconv-h-c++-tests: New file, extracted from
15047         modules/iconv-h-tests.
15048         * modules/iconv-h-tests: Depend on it.
15049         * modules/langinfo-c++-tests: New file, extracted from
15050         modules/langinfo-tests.
15051         * modules/langinfo-tests: Depend on it.
15052         * modules/locale-c++-tests: New file, extracted from
15053         modules/locale-tests.
15054         * modules/locale-tests: Depend on it.
15055         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15056         * modules/math-tests: Depend on it.
15057         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15058         * modules/pty-tests: Depend on it.
15059         * modules/search-c++-tests: New file, extracted from
15060         modules/search-tests.
15061         * modules/search-tests: Depend on it.
15062         * modules/signal-c++-tests: New file, extracted from
15063         modules/signal-tests.
15064         * modules/signal-tests: Depend on it.
15065         * modules/spawn-c++-tests: New file, extracted from
15066         modules/spawn-tests.
15067         * modules/spawn-tests: Depend on it.
15068         * modules/stdio-c++-tests: New file, extracted from
15069         modules/stdio-tests.
15070         * modules/stdio-tests: Depend on it.
15071         * modules/stdlib-c++-tests: New file, extracted from
15072         modules/stdlib-tests.
15073         * modules/stdlib-tests: Depend on it.
15074         * modules/string-c++-tests: New file, extracted from
15075         modules/string-tests.
15076         * modules/string-tests: Depend on it.
15077         * modules/sys_ioctl-c++-tests: New file, extracted from
15078         modules/sys_ioctl-tests.
15079         * modules/sys_ioctl-tests: Depend on it.
15080         * modules/sys_select-c++-tests: New file, extracted from
15081         modules/sys_select-tests.
15082         * modules/sys_select-tests: Depend on it.
15083         * modules/sys_socket-c++-tests: New file, extracted from
15084         modules/sys_socket-tests.
15085         * modules/sys_socket-tests: Depend on it.
15086         * modules/sys_stat-c++-tests: New file, extracted from
15087         modules/sys_stat-tests.
15088         * modules/sys_stat-tests: Depend on it.
15089         * modules/sys_time-c++-tests: New file, extracted from
15090         modules/sys_time-tests.
15091         * modules/sys_time-tests: Depend on it.
15092         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15093         * modules/time-tests: Depend on it.
15094         * modules/unistd-c++-tests: New file, extracted from
15095         modules/unistd-tests.
15096         * modules/unistd-tests: Depend on it.
15097         * modules/wchar-c++-tests: New file, extracted from
15098         modules/wchar-tests.
15099         * modules/wchar-tests: Depend on it.
15100         * modules/wctype-c++-tests: New file, extracted from
15101         modules/wctype-tests.
15102         * modules/wctype-tests: Depend on it.
15103         Reported by Simon Josefsson.
15104
15105 2010-03-28  Bruno Haible  <bruno@clisp.org>
15106
15107         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15108         * gnulib-tool (func_exists_module): New function, extracted from
15109         func_verify_module.
15110         (func_verify_module): Use it.
15111         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15112         'foo' only if 'foo' exists.
15113         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15114         module.
15115
15116 2010-03-28  Bruno Haible  <bruno@clisp.org>
15117
15118         gnulib-tool: Add support for special categories of tests.
15119         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15120         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15121         (func_usage): Document them.
15122         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15123         inc_unportable_tests, inc_all_tests): New variables.
15124         (func_acceptable): Consider these variables.
15125         (func_modules_transitive_closure): Make it work when the 'Status' field
15126         consists of multiple words.
15127         (func_import): Store and restore the values of inc_cxx_tests,
15128         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15129         inc_all_tests in gnulib-comp.m4.
15130         (func_create_testdir): Set inc_all_tests to true.
15131         * doc/gnulib.texi (Extra tests modules): New section.
15132         Suggested by Jim Meyering.
15133
15134 2010-03-28  Bruno Haible  <bruno@clisp.org>
15135
15136         ansi-c++-opt: Allow turning off the C++ build by default.
15137         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15138         gl_CXX_CHOICE_DEFAULT_NO is defined.
15139         Requested by Eric Blake.
15140
15141 2010-03-28  Bruno Haible  <bruno@clisp.org>
15142
15143         unistd: Avoid #define replacements in C++ mode.
15144         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15145         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15146         setsockopt, shutdown, select): In C++, attach a warning to the function
15147         if possible, rather than #defining the symbol to a dysfunctional alias.
15148         Reported by John W. Eaton <jwe@gnu.org>.
15149
15150 2010-03-28  Bruno Haible  <bruno@clisp.org>
15151
15152         Fix link errors on mingw.
15153         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15154         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15155         $(LIBSOCKET).
15156         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15157         $(LIBSOCKET).
15158
15159 2010-03-28  Bruno Haible  <bruno@clisp.org>
15160             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15161
15162         lib-ignore: Determine different options for different compilers.
15163         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15164         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15165         Add comments.
15166         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15167         * NEWS: Mention the change.
15168
15169 2010-03-27  Bruno Haible  <bruno@clisp.org>
15170
15171         Remove unused GNULIB_XYZ macro definitions.
15172         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15173         * modules/fseek (configure.ac): Likewise.
15174         * modules/ioctl (configure.ac): Likewise.
15175         * modules/open (configure.ac): Likewise.
15176         * modules/stdlib-safer (configure.ac): Likewise.
15177
15178 2010-03-27  Bruno Haible  <bruno@clisp.org>
15179
15180         Add a remark about certain modules.
15181         * modules/malloc (Comment): New section.
15182         * modules/realloc (Comment): Likewise.
15183         * modules/sigpipe (Comment): Likewise.
15184
15185 2010-03-27  Bruno Haible  <bruno@clisp.org>
15186
15187         Resolve conflict between the two kinds of module indicators.
15188         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15189         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15190         * modules/canonicalize (configure.ac): Invoke
15191         gl_MODULE_INDICATOR_FOR_TESTS.
15192         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15193         GNULIB_XYZ.
15194         * tests/test-dirent-c++.cc: Likewise.
15195         * tests/test-dirent-safer.c: Likewise.
15196         * tests/test-dup2.c: Likewise.
15197         * tests/test-fchdir.c: Likewise.
15198         * tests/test-fcntl-h-c++.cc: Likewise.
15199         * tests/test-getopt.c: Likewise.
15200         * tests/test-getopt.h: Likewise.
15201         * tests/test-langinfo-c++.cc: Likewise.
15202         * tests/test-locale-c++.cc: Likewise.
15203         * tests/test-math-c++.cc: Likewise.
15204         * tests/test-pty-c++.cc: Likewise.
15205         * tests/test-search-c++.cc: Likewise.
15206         * tests/test-signal-c++.cc: Likewise.
15207         * tests/test-spawn-c++.cc: Likewise.
15208         * tests/test-stdio-c++.cc: Likewise.
15209         * tests/test-stdlib-c++.cc: Likewise.
15210         * tests/test-string-c++.cc: Likewise.
15211         * tests/test-sys_ioctl-c++.cc: Likewise.
15212         * tests/test-sys_select-c++.cc: Likewise.
15213         * tests/test-sys_socket-c++.cc: Likewise.
15214         * tests/test-sys_stat-c++.cc: Likewise.
15215         * tests/test-sys_time-c++.cc: Likewise.
15216         * tests/test-time-c++.cc: Likewise.
15217         * tests/test-unistd-c++.cc: Likewise.
15218         * tests/test-wchar-c++.cc: Likewise.
15219         * tests/uninorm/test-u8-nfc.c: Likewise.
15220         * tests/uninorm/test-u8-nfd.c: Likewise.
15221         * tests/uninorm/test-u8-nfkc.c: Likewise.
15222         * tests/uninorm/test-u8-nfkd.c: Likewise.
15223         * tests/uninorm/test-u16-nfc.c: Likewise.
15224         * tests/uninorm/test-u16-nfd.c: Likewise.
15225         * tests/uninorm/test-u16-nfkc.c: Likewise.
15226         * tests/uninorm/test-u16-nfkd.c: Likewise.
15227         * tests/uninorm/test-u32-nfc.c: Likewise.
15228         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15229         * tests/uninorm/test-u32-nfd.c: Likewise.
15230         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15231         * tests/uninorm/test-u32-nfkc.c: Likewise.
15232         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15233         * tests/uninorm/test-u32-nfkd.c: Likewise.
15234         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15235         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15236
15237 2010-03-27  Bruno Haible  <bruno@clisp.org>
15238
15239         Distinguish two kinds of module indicators.
15240         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15241         gl_MODULE_INDICATOR.
15242         (gl_MODULE_INDICATOR): New macro.
15243         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15244         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15245         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15246         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15247         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15248         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15249         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15250         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15251         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15252         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15253         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15254         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15255         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15256         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15257         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15258         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15259         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15260         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15261         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15262         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15263         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15264         * modules/cloexec (configure.ac): Likewise.
15265         * modules/getopt-gnu (configure.ac): Likewise.
15266         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15267         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15268         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15269         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15270
15271 2010-03-27  Bruno Haible  <bruno@clisp.org>
15272
15273         New module description field 'Comment'.
15274         * gnulib-tool: New option --extract-comment.
15275         (func_usage): Document it.
15276         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15277         (func_get_comment): New function.
15278         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15279
15280 2010-03-27  Bruno Haible  <bruno@clisp.org>
15281
15282         Addendum to 2010-02-07 commit.
15283         * gnulib-tool (func_usage): Document --extract-applicability option.
15284
15285 2010-03-27  Bruno Haible  <bruno@clisp.org>
15286
15287         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15288         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15289         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15290         rather than link errors.
15291
15292 2010-03-27  Bruno Haible  <bruno@clisp.org>
15293
15294         Avoid side effects from tests-related modules on the compilation of lib.
15295         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15296         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15297         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15298         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15299         macro.
15300         (func_import): Define a witness macro. Assign it a value that depends
15301         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15302         tests-related modules.
15303         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15304         Reported by Jim Meyering.
15305
15306 2010-03-27  Bruno Haible  <bruno@clisp.org>
15307
15308         Factorize common .m4 code.
15309         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15310         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15311         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15312         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15313         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15314         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15315         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15316         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15317         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15318         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15319         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15320         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15321         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15322         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15323         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15324         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15325         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15326         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15328         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15329         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15330         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15331         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15333         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15334         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15335         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15336         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15337         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15338         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15339         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15340         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15341
15342 2010-03-27  Bruno Haible  <bruno@clisp.org>
15343
15344         Fix a compilation error on Cygwin with g++ >= 4.3.
15345         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15346         if it is undefined or if we alias it to chmod.
15347         (lstat): Don't warn about the use of this function if it is undefined
15348         or if we alias it to stat.
15349         Reported by Simon Josefsson.
15350
15351 2010-03-27  Bruno Haible  <bruno@clisp.org>
15352
15353         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15354         * modules/getlogin (configure.ac): Update.
15355
15356         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15357         * modules/getlogin_r (configure.ac): Update.
15358
15359         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15360         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15361         * modules/inet_ntop (configure.ac): Update.
15362
15363         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15364         * modules/inet_pton (configure.ac): Update.
15365
15366         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15367         * modules/mbslen (configure.ac): Update.
15368
15369         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15370         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15371         * modules/forkpty (configure.ac): Update.
15372         * modules/openpty (configure.ac): Update.
15373
15374 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15375
15376         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15377         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15378
15379 2010-03-25  Eric Blake  <eblake@redhat.com>
15380
15381         maint: use pragma consistently across replacement headers
15382         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15383         * lib/dirent.in.h (system_header): Likewise.
15384         * lib/errno.in.h (system_header): Likewise.
15385         * lib/float.in.h (system_header): Likewise.
15386         * lib/getopt.in.h (system_header): Likewise.
15387         * lib/iconv.in.h (system_header): Likewise.
15388         * lib/inttypes.in.h (system_header): Likewise.
15389         * lib/langinfo.in.h (system_header): Likewise.
15390         * lib/locale.in.h (system_header): Likewise.
15391         * lib/math.in.h (system_header): Likewise.
15392         * lib/netdb.in.h (system_header): Likewise.
15393         * lib/netinet_in.in.h (system_header): Likewise.
15394         * lib/pty.in.h (system_header): Likewise.
15395         * lib/sched.in.h (system_header): Likewise.
15396         * lib/se-selinux.in.h (system_header): Likewise.
15397         * lib/search.in.h (system_header): Likewise.
15398         * lib/spawn.in.h (system_header): Likewise.
15399         * lib/stdarg.in.h (system_header): Likewise.
15400         * lib/stdint.in.h (system_header): Likewise.
15401         * lib/string.in.h (system_header): Likewise.
15402         * lib/strings.in.h (system_header): Likewise.
15403         * lib/sys_file.in.h (system_header): Likewise.
15404         * lib/sys_ioctl.in.h (system_header): Likewise.
15405         * lib/sys_socket.in.h (system_header): Likewise.
15406         * lib/sys_times.in.h (system_header): Likewise.
15407         * lib/sys_utsname.in.h (system_header): Likewise.
15408         * lib/sys_wait.in.h (system_header): Likewise.
15409         * lib/sysexits.in.h (system_header): Likewise.
15410         * lib/unistd.in.h (system_header): Likewise.
15411         * lib/wctype.in.h (system_header): Likewise.
15412
15413         arpa/inet: fix mingw compilation warning
15414         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15415         Reported by Matthew Bolte.
15416
15417 2010-03-25  Bruno Haible  <bruno@clisp.org>
15418
15419         Avoid collision between gnulib wrapper and libintl wrapper.
15420         * lib/printf.c (printf): Don't define if a printf wrapper is already
15421         defined in intl/printf.c.
15422         Reported by Michel Boaventura <michel@michelboaventura.com>.
15423
15424 2010-03-25  Bruno Haible  <bruno@clisp.org>
15425
15426         Use ANSI C.
15427         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15428
15429 2010-03-25  Bruno Haible  <bruno@clisp.org>
15430
15431         Minor formatting changes.
15432         * lib/acosl.c: Insert space before function argument list.
15433         * lib/argz.c: Likewise.
15434         * lib/asinl.c: Likewise.
15435         * lib/expl.c: Likewise.
15436         * lib/gen-uni-tables.c: Likewise.
15437         * lib/gettext.h: Likewise.
15438         * lib/glthread/lock.h: Likewise.
15439         * lib/tanl.c: Likewise.
15440         * lib/uniname/uniname.c: Likewise.
15441         * tests/test-idpriv-drop.c: Likewise.
15442         * tests/test-idpriv-droptemp.c: Likewise.
15443         * tests/test-lock.c: Likewise.
15444         * tests/test-tls.c: Likewise.
15445         * lib/argp-help.c: Insert space before function-like macro argument
15446         list.
15447         * lib/memcmp.c: Likewise.
15448         * tests/test-base64.c: Likewise.
15449         * lib/localename.c: Insert space before sizeof's argument list.
15450         * lib/safe-alloc.h: Likewise.
15451         * lib/file-set.h: Insert space before macro argument list.
15452         * tests/test-argp.c: Likewise.
15453         * lib/argp-namefrob.h: Insert space before function parameter list.
15454         * lib/getaddrinfo.c: Likewise.
15455         * lib/netdb.in.h: Likewise.
15456         * lib/parse-duration.h: Likewise.
15457         * lib/parse-duration.c: Likewise.
15458         * lib/poll.c: Likewise.
15459         * lib/select.c: Likewise.
15460         * lib/trim.h: Likewise.
15461         * tests/test-usleep.c: Likewise.
15462         * lib/ldexpl.c: Insert space before function parameter list and before
15463         function argument list.
15464         * lib/logl.c: Likewise.
15465         * lib/sqrtl.c: Likewise.
15466         * lib/trim.c: Likewise.
15467         * lib/cosl.c: Use GNU style indentation. Insert space before function
15468         argument list.
15469         * lib/sinl.c: Likewise.
15470         * lib/tsearch.c: Insert space after 'for'.
15471         Reported by Jim Meyering.
15472
15473 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15474
15475         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15476         config header before grepping, as it's not present before
15477         autoreconf/configure are run.  Reported by Simon Josefsson.
15478
15479 2010-03-23  Bruno Haible  <bruno@clisp.org>
15480
15481         pt_chown: Make it work with automake < 1.11.
15482         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15483         Reported by Simon Josefsson.
15484
15485 2010-03-23  Bruno Haible  <bruno@clisp.org>
15486
15487         pt_chown: Don't depend on GPLed modules.
15488         * lib/pt_chown.c: Don't include idpriv.h.
15489         (main): Don't drop privileges.
15490         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15491         Reported by Simon Josefsson.
15492
15493 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15494
15495         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15496         suggestions from karl@freefriends.org (Karl Berry).
15497
15498 2010-03-22  Eric Blake  <eblake@redhat.com>
15499
15500         gethostname: further tweaks
15501         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15502         are overriding gethostname.
15503         Suggested by Bruno Haible.
15504
15505 2010-03-21  Bruno Haible  <bruno@clisp.org>
15506
15507         Fix comments.
15508         * lib/forkpty.c (rpl_forkpty): Fix comment.
15509         * lib/openpty.c (rpl_openpty): Likewise.
15510         Reported by Eric Blake.
15511
15512 2010-03-22  Eric Blake  <eblake@redhat.com>
15513
15514         gethostname: fix build on mingw
15515         * lib/unistd.in.h (includes): Work around fact that mingw
15516         <winsock2.h> re-includes <unistd.h>, by avoiding any
15517         redeclarations if we are being included by <winsock2.h>.
15518         Reported by Matthias Bolte.
15519
15520 2010-03-21  Bruno Haible  <bruno@clisp.org>
15521
15522         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15523         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15524         modifications.
15525         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15526         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15527         provide the replacement.
15528         * modules/forkpty (Depends-on): Add openpty, login_tty.
15529         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15530         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15531         * doc/glibc-functions/forkpty.texi: More supported platforms.
15532         * config/srclist.txt: Add forkpty.c (commented).
15533
15534 2010-03-21  Bruno Haible  <bruno@clisp.org>
15535
15536         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15537         (Makefile.am): Verify that PTY_LIB is defined.
15538
15539         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15540
15541 2010-03-21  Bruno Haible  <bruno@clisp.org>
15542
15543         Tests for module 'login_tty'.
15544         * modules/login_tty-tests: New file.
15545         * tests/test-login_tty.c: New file.
15546
15547         New module 'login_tty'.
15548         * lib/login_tty.c: New file.
15549         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15550         * modules/login_tty: New file.
15551         * doc/glibc-functions/login_tty.texi: Mention the new module.
15552
15553 2010-03-21  Bruno Haible  <bruno@clisp.org>
15554
15555         login_tty: Documentation.
15556         * doc/glibc-functions/login_tty.texi: New file.
15557         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15558
15559 2010-03-21  Bruno Haible  <bruno@clisp.org>
15560
15561         pty: Consistent macro naming.
15562         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15563         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15564         * modules/pty (configure.ac): Update.
15565
15566 2010-03-21  Bruno Haible  <bruno@clisp.org>
15567
15568         Tests for openpty: Make stricter.
15569         * tests/test-openpty.c (main): Add test of canonical processing and
15570         erase.
15571         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15572
15573         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15574         * lib/openpty.c (openpty): New replacement function.
15575         * lib/pty.in.h: Include <termios.h>.
15576         (openpty): Update declaration. Add comments.
15577         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15578         is not declared, arrange to provide the replacement. Check for _getpty
15579         and posix_openpt.
15580         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15581         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15582         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15583         * modules/pty-tests (test_pty_c___LDADD): New variable.
15584         * doc/glibc-functions/openpty.texi: More supported platforms.
15585
15586 2010-03-21  Bruno Haible  <bruno@clisp.org>
15587
15588         setenv: Tweaks.
15589         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15590         the test program.
15591         * doc/posix-functions/setenv.texi: Update platforms list.
15592
15593 2010-03-21  Bruno Haible  <bruno@clisp.org>
15594
15595         New module 'unlockpt'.
15596         * lib/unlockpt.c: New file, from glibc with modifications.
15597         * m4/unlockpt.m4: New file.
15598         * modules/unlockpt: New file.
15599         * lib/stdlib.in.h (unlockpt): New declaration.
15600         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15601         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15602         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15603         HAVE_UNLOCKPT.
15604         * doc/posix-functions/unlockpt.texi: Mention the new module.
15605         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15606         * config/srclist.txt: Add unlockpt.c (commented).
15607
15608 2010-03-21  Jim Meyering  <meyering@redhat.com>
15609
15610         maint.mk: prohibit inclusion of "intprops.h" without use
15611         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15612
15613 2010-03-21  Bruno Haible  <bruno@clisp.org>
15614
15615         New module 'grantpt'.
15616         * lib/grantpt.c: New file, from glibc with modifications.
15617         * m4/grantpt.m4: New file.
15618         * modules/grantpt: New file.
15619         * lib/stdlib.in.h (grantpt): New declaration.
15620         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15621         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15622         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15623         HAVE_GRANTPT.
15624         * doc/posix-functions/grantpt.texi: Mention the new module.
15625         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15626         * config/srclist.txt: Add grantpt.c (commented).
15627
15628 2010-03-21  Bruno Haible  <bruno@clisp.org>
15629
15630         New module 'pt_chown'.
15631         * lib/pt_chown.c: New file, from glibc with modifications.
15632         * lib/pty-private.h: New file, from glibc with modifications.
15633         * modules/pt_chown: New file.
15634         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15635
15636 2010-03-21  Bruno Haible  <bruno@clisp.org>
15637
15638         Tests for module 'ptsname'.
15639         * modules/ptsname-tests: New file.
15640         * tests/test-ptsname.c: New file.
15641
15642         New module 'ptsname'.
15643         * lib/ptsname.c: New file, from glibc with modifications.
15644         * m4/ptsname.m4: New file.
15645         * modules/ptsname: New file.
15646         * lib/stdlib.in.h (ptsname): New declaration.
15647         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15648         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15649         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15650         HAVE_PTSNAME.
15651         * doc/posix-functions/ptsname.texi: Mention the new module.
15652         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15653         * config/srclist.txt: Add ptsname.c (commented).
15654
15655 2010-03-21  Bruno Haible  <bruno@clisp.org>
15656
15657         Tests for module 'ttyname_r'.
15658         * modules/ttyname_r-tests: New file.
15659         * tests/test-ttyname_r.c: New file.
15660
15661         New module 'ttyname_r'.
15662         * lib/ttyname_r.c: New file.
15663         * m4/ttyname_r.m4: New file.
15664         * modules/ttyname_r: New file.
15665         * lib/unistd.in.h (ttyname_r): New declaration.
15666         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15667         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15668         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15669         HAVE_TTYNAME_R.
15670         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15671         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15672
15673 2010-03-20  Bruno Haible  <bruno@clisp.org>
15674
15675         signal: Undefine macro definitions in C++ mode.
15676         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15677         sigfillset): Undefine macro definitions from the system header in C++
15678         mode.
15679         Reported by John W. Eaton <jwe@gnu.org>.
15680
15681 2010-03-20  Bruno Haible  <bruno@clisp.org>
15682
15683         Ensure no #include statements inside extern "C" { ... }.
15684         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15685         contain #include statements.
15686         * lib/time.in.h: Likewise.
15687
15688 2010-03-20  Bruno Haible  <bruno@clisp.org>
15689
15690         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15691         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15692         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15693         Reported by John W. Eaton <jwe@gnu.org>.
15694
15695 2010-03-20  Bruno Haible  <bruno@clisp.org>
15696
15697         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15698         Reported by Jim Meyering.
15699
15700 2010-03-20  Bruno Haible  <bruno@clisp.org>
15701
15702         pipe: Set errno upon failure.
15703         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15704         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15705         errno value in error message.
15706
15707 2010-03-20  Bruno Haible  <bruno@clisp.org>
15708             Jim Meyering  <meyering@redhat.com>
15709
15710         lchown: Avoid "unused variable" warning.
15711         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15712
15713 2010-03-20  Bruno Haible  <bruno@clisp.org>
15714
15715         Work around unlink() bug on MacOS X 10.5.6.
15716         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15717         attempting to unlink a parent directory.
15718         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15719         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15720         activate for the replacement function.
15721         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15722
15723 2010-03-20  Bruno Haible  <bruno@clisp.org>
15724
15725         Fix link errors on Solaris 8.
15726         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15727         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15728
15729 2010-03-19  Jim Meyering  <meyering@redhat.com>
15730
15731         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15732         The _LIBC implementation of build_range_exp correctly honors the
15733         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15734         However, the non-_LIBC implementation would ignore that syntax-bit
15735         flag and return REG_ERANGE unconditionally.
15736         This change makes it honor that flag.
15737         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15738         Make two pointer parameters "const".
15739         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15740         (parse_bracket_exp): Update caller.
15741
15742         regex.m4: correct the reversed range endpoint ([b-a]) test
15743         * m4/regex.m4: When requiring that [b-a] evoke failure,
15744         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15745         test pass once again for x86-based systems.
15746
15747 2010-03-19  Bruno Haible  <bruno@clisp.org>
15748
15749         scandir: Fix link error on Solaris 8.
15750         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15751         macros.
15752
15753 2010-03-19  Bruno Haible  <bruno@clisp.org>
15754
15755         getusershell: Fix documentation.
15756         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15757         module.
15758         * doc/glibc-functions/setusershell.texi: Likewise.
15759
15760         getusershell: Provide declaration, missing on Solaris 9.
15761         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15762         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15763         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15764         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15766         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15767         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15768         HAVE_GETUSERSHELL.
15769         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15770
15771 2010-03-19  Bruno Haible  <bruno@clisp.org>
15772
15773         wctype: Provide iswblank function.
15774         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15775         exists and is fine.
15776         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15777         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15778         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15779         * doc/posix-functions/iswblank.texi: Update.
15780
15781 2010-03-19  Bruno Haible  <bruno@clisp.org>
15782
15783         Tests of module 'pty' in C++ mode.
15784         * modules/pty-tests: New file.
15785         * tests/test-pty-c++.cc: New file.
15786         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15787
15788 2010-03-19  Eric Blake  <eblake@redhat.com>
15789
15790         logb: fix documentation
15791         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15792         1.5 declaration bug.
15793
15794         forkpty, openpty: prefer glibc's const-safe prototype
15795         * lib/forkpty.c (rpl_forkpty): New file.
15796         * lib/openpty.c (rpl_openpty): Likewise.
15797         * modules/forkpty (Files): Distribute it.
15798         * modules/openpty (Files): Likewise.
15799         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15800         check...
15801         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15802         replacement for for non-const BSD signature.
15803         * modules/pty (Makefile.am): Substitute witnesses.
15804         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15805         * tests/test-forkpty.c: Update signature check.
15806         * tests/test-openpty.c: Likewise.
15807         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15808         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15809
15810         forkpty, openpty: split functions into new modules
15811         * modules/pty (Makefile.am): Substitute new witnesses.
15812         (Libraries): Move library detection...
15813         * modules/forkpty: ...into new module.
15814         * modules/openpty: Another new module.
15815         * modules/pty-tests: Rename and split...
15816         * modules/forkpty-tests: ...to this...
15817         * modules/openpty-tests: ...and this.
15818         * tests/test-pty.c: Rename and split...
15819         * tests/test-forkpty.c: ...to this...
15820         * tests/test-openpty.c: ...and this.
15821         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15822         (gl_PTY): Split library searching...
15823         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15824         (gl_FORKPTY, gl_OPENPTY): New macros.
15825         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15826         * NEWS: Mention the split.
15827         * MODULES.html.sh (Misc): Document the modules.
15828         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15829         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15830
15831         pty: improve replacement header
15832         * lib/pty.in.h: New file.
15833         * modules/pty (Files): Ship it.
15834         (Makefile.am): Always build replacement.
15835         * m4/pty.m4: Rename...
15836         * m4/pty_h.m4: ...to this.
15837         (gl_PTY): Modernize setting of witness macros; update check of
15838         forkpty to take proper advantage of cache.
15839         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15840
15841         getopt: avoid compiler warning
15842         * lib/getopt.c (attribute_hidden): Remove unused macro.
15843
15844 2010-03-18  Bruno Haible  <bruno@clisp.org>
15845
15846         Fix link errors on Solaris 8.
15847         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15848         * modules/search-tests (test_search_c___LDADD): Likewise.
15849         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15850         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15851         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15852         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15853         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15854         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15855         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15856
15857 2010-03-18  Bruno Haible  <bruno@clisp.org>
15858
15859         Fix bug introduced on 2010-03-14.
15860         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15861         (gl_SPAWN_H): Require it.
15862         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15863         Reported by Simon Josefsson.
15864
15865 2010-03-18  Bruno Haible  <bruno@clisp.org>
15866
15867         Fix typo introduced on 2009-12-31.
15868         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15869         posix_spawn_file_actions_adddup2.
15870
15871 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15872         and Eric Blake  <eblake@redhat.com>
15873
15874         test-vc-list-files-git: make more robust
15875         * tests/test-vc-list-files-git.sh: Unset problematic environment
15876         variables.  Chain commands together.
15877
15878 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15879
15880         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15881         `AC_CHECK_DECL' invocation.
15882
15883 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15884
15885         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15886         appears before executable statements. Suggested by Petr Sumbera
15887         <Petr.Sumbera@Sun.COM>.
15888
15889 2010-03-14  Bruno Haible  <bruno@clisp.org>
15890
15891         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15892         portability problems. Instead use a simpler test.
15893         (main): Check that invalid arguments are rejected only on Linux.
15894
15895 2010-03-14  Bruno Haible  <bruno@clisp.org>
15896
15897         Fix bug introduced on 2009-12-31.
15898         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15899         gl_PREREQ_SYS_H_WINSOCK2 always.
15900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15901         SYS_SOCKET_H variable.
15902         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15903         Update comments.
15904         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15906         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15907         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15908         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15909
15910 2010-03-14  Bruno Haible  <bruno@clisp.org>
15911
15912         Fix values returned by sinl, cosl.
15913         * lib/trigl.h: Add specification comments.
15914         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15915         that combines the values from the precomputed table with the values of
15916         the Chebyshev polynomials.
15917
15918 2010-03-14  Bruno Haible  <bruno@clisp.org>
15919
15920         Fix compilation error when modules 'posix_spawn[p]' are not used.
15921         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15922         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15923
15924 2010-03-14  Bruno Haible  <bruno@clisp.org>
15925
15926         Fix compilation error on mingw when module 'time_r' is not used.
15927         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15928         is 1.
15929         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15930         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15931         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15932         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15933
15934 2010-03-14  Bruno Haible  <bruno@clisp.org>
15935
15936         Fix compilation error with Sun C.
15937         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15938         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15939         instead of GCC specific ULONG_LONG_MAX.
15940         * lib/xstrtoll.c: Likewise.
15941         * lib/xstrtoull.c: Likewise.
15942
15943 2010-03-13  Bruno Haible  <bruno@clisp.org>
15944
15945         Allow the user to disable C++ code and tests.
15946         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15947         (gl_PROG_ANSI_CXX): Require it.
15948
15949 2010-03-13  Bruno Haible  <bruno@clisp.org>
15950
15951         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15952         cases.
15953
15954 2010-03-13  Bruno Haible  <bruno@clisp.org>
15955
15956         Test that gnulib does not break the standard C++ headers.
15957         * tests/test-locale-c++2.cc: New file.
15958         * modules/locale-tests (Files): Add it.
15959         (Makefile.am): Compile it for test-locale-c++.
15960         * tests/test-math-c++2.cc: New file.
15961         * modules/math-tests (Files): Add it.
15962         (Makefile.am): Compile it for test-math-c++.
15963         * tests/test-signal-c++2.cc: New file.
15964         * modules/signal-tests (Files): Add it.
15965         (Makefile.am): Compile it for test-signal-c++.
15966         * tests/test-stdio-c++2.cc: New file.
15967         * modules/stdio-tests (Files): Add it.
15968         (Makefile.am): Compile it for test-stdio-c++.
15969         * tests/test-stdlib-c++2.cc: New file.
15970         * modules/stdlib-tests (Files): Add it.
15971         (Makefile.am): Compile it for test-stdlib-c++.
15972         * tests/test-string-c++2.cc: New file.
15973         * modules/string-tests (Files): Add it.
15974         (Makefile.am): Compile it for test-string-c++.
15975         * tests/test-time-c++2.cc: New file.
15976         * modules/time-tests (Files): Add it.
15977         (Makefile.am): Compile it for test-time-c++.
15978         Reported by John W. Eaton <jwe@gnu.org>.
15979
15980 2010-03-13  Bruno Haible  <bruno@clisp.org>
15981
15982         * gnulib-tool (func_usage): Clarify which options are available for
15983         --create-testdir and --create-megatestdir.
15984
15985 2010-03-13  Bruno Haible  <bruno@clisp.org>
15986
15987         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15988         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15989         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15990         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15991         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15992         when appropriate.
15993         Reported by Jim Meyering.
15994
15995 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15996
15997         * gnulib-tool (func_import): Explain origin of code.
15998
15999 2010-03-12  Bruno Haible  <bruno@clisp.org>
16000
16001         Fix problem with automake's definition of CXXLINK.
16002         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
16003         Reported by Simon Josefsson and Ludovic Courtès.
16004
16005 2010-03-12  Bruno Haible  <bruno@clisp.org>
16006
16007         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
16008         stable releases.
16009
16010 2010-03-11  Bruno Haible  <bruno@clisp.org>
16011
16012         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
16013         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
16014         whether the system provides one variant or multiple variants of the
16015         function.
16016         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
16017         C++ compilers.
16018         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
16019         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
16020         Reported by Jim Meyering.
16021
16022 2010-03-09  Simon Josefsson  <simon@josefsson.org>
16023
16024         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
16025
16026 2010-03-08  Bruno Haible  <bruno@clisp.org>
16027
16028         gnulib-tool: Add support for --libtool in --create-testdir.
16029         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
16030         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
16031
16032 2010-03-08  Eric Blake  <eblake@redhat.com>
16033
16034         gnulib-tool.texi: mention possibility of git submodule
16035         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
16036         submodules.
16037         * doc/.gitignore: Ignore another generated file.
16038
16039 2010-03-08  Karl Berry  <karl@gnu.org>
16040
16041         * doc/gnulib-tool.texi (VCS Issues): Mention third option
16042         of committing gnulib files while skipping others.
16043
16044 2010-03-07  Bruno Haible  <bruno@clisp.org>
16045
16046         Tests of module 'wctype' in C++ mode.
16047         * tests/test-wctype-c++.cc: New file.
16048         * modules/wctype-tests (Files): Add it and tests/signature.h.
16049         (Depends-on): Add ansi-c++-opt.
16050         (Makefile.am): Arrange to compile and run test-wctype-c++.
16051
16052         Tests of module 'wchar' in C++ mode.
16053         * tests/test-wchar-c++.cc: New file.
16054         * modules/wchar-tests (Files): Add it and tests/signature.h.
16055         (Depends-on): Add ansi-c++-opt.
16056         (Makefile.am): Arrange to compile and run test-wchar-c++.
16057         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16058         gl_MODULE_INDICATOR.
16059
16060         Tests of module 'unistd' in C++ mode.
16061         * tests/test-unistd-c++.cc: New file.
16062         * modules/unistd-tests (Files): Add it and tests/signature.h.
16063         (Depends-on): Add ansi-c++-opt.
16064         (Makefile.am): Arrange to compile and run test-unistd-c++.
16065         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16066         gl_MODULE_INDICATOR.
16067
16068         Tests of module 'time' in C++ mode.
16069         * tests/test-time-c++.cc: New file.
16070         * modules/time-tests (Files): Add it and tests/signature.h.
16071         (Depends-on): Add ansi-c++-opt.
16072         (Makefile.am): Arrange to compile and run test-time-c++.
16073         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16074
16075         Tests of module 'sys_time' in C++ mode.
16076         * tests/test-sys_time-c++.cc: New file.
16077         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16078         (Depends-on): Add ansi-c++-opt.
16079         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16080         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16081         gl_MODULE_INDICATOR.
16082
16083         Tests of module 'sys_stat' in C++ mode.
16084         * tests/test-sys_stat-c++.cc: New file.
16085         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16086         (Depends-on): Add ansi-c++-opt.
16087         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16088         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16089         gl_MODULE_INDICATOR.
16090
16091         Tests of module 'sys_socket' in C++ mode.
16092         * tests/test-sys_socket-c++.cc: New file.
16093         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16094         (Depends-on): Add ansi-c++-opt.
16095         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16096         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16097         gl_MODULE_INDICATOR.
16098
16099         Tests of module 'sys_select' in C++ mode.
16100         * tests/test-sys_select-c++.cc: New file.
16101         * modules/sys_select-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_select-c++.
16104         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16105         gl_MODULE_INDICATOR.
16106
16107         Tests of module 'sys_ioctl' in C++ mode.
16108         * tests/test-sys_ioctl-c++.cc: New file.
16109         * modules/sys_ioctl-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_ioctl-c++.
16112         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16113         gl_MODULE_INDICATOR.
16114
16115         Tests of module 'string' in C++ mode.
16116         * tests/test-string-c++.cc: New file.
16117         * modules/string-tests (Files): Add it and tests/signature.h.
16118         (Depends-on): Add ansi-c++-opt.
16119         (Makefile.am): Arrange to compile and run test-string-c++.
16120         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16121         gl_MODULE_INDICATOR.
16122
16123         Tests of module 'stdlib' in C++ mode.
16124         * tests/test-stdlib-c++.cc: New file.
16125         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16126         (Depends-on): Add ansi-c++-opt.
16127         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16128         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16129         gl_MODULE_INDICATOR.
16130
16131         Tests of module 'stdio' in C++ mode.
16132         * tests/test-stdio-c++.cc: New file.
16133         * modules/stdio-tests (Files): Add it and tests/signature.h.
16134         (Depends-on): Add ansi-c++-opt.
16135         (Makefile.am): Arrange to compile and run test-stdio-c++.
16136         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16137         gl_MODULE_INDICATOR.
16138
16139         Tests of module 'spawn' in C++ mode.
16140         * tests/test-spawn-c++.cc: New file.
16141         * modules/spawn-tests (Files): Add it and tests/signature.h.
16142         (Depends-on): Add ansi-c++-opt.
16143         (Makefile.am): Arrange to compile and run test-spawn-c++.
16144         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16145         gl_MODULE_INDICATOR.
16146
16147         Tests of module 'signal' in C++ mode.
16148         * tests/test-signal-c++.cc: New file.
16149         * modules/signal-tests (Files): Add it and tests/signature.h.
16150         (Depends-on): Add ansi-c++-opt.
16151         (Makefile.am): Arrange to compile and run test-signal-c++.
16152         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16153         gl_MODULE_INDICATOR.
16154
16155         Tests of module 'search' in C++ mode.
16156         * tests/test-search-c++.cc: New file.
16157         * modules/search-tests (Files): Add it and tests/signature.h.
16158         (Depends-on): Add ansi-c++-opt.
16159         (Makefile.am): Arrange to compile and run test-search-c++.
16160         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16161         gl_MODULE_INDICATOR.
16162
16163         Tests of module 'math' in C++ mode.
16164         * tests/test-math-c++.cc: New file.
16165         * modules/math-tests (Files): Add it and tests/signature.h.
16166         (Depends-on): Add ansi-c++-opt.
16167         (Makefile.am): Arrange to compile and run test-math-c++.
16168         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16169
16170         Tests of module 'locale' in C++ mode.
16171         * tests/test-locale-c++.cc: New file.
16172         * modules/locale-tests (Files): Add it and tests/signature.h.
16173         (Depends-on): Add ansi-c++-opt.
16174         (Makefile.am): Arrange to compile and run test-locale-c++.
16175         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16176         gl_MODULE_INDICATOR.
16177
16178         Tests of module 'langinfo' in C++ mode.
16179         * tests/test-langinfo-c++.cc: New file.
16180         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16181         (Depends-on): Add ansi-c++-opt.
16182         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16183         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16184         gl_MODULE_INDICATOR.
16185
16186         Tests of module 'iconv-h' in C++ mode.
16187         * tests/test-iconv-h-c++.cc: New file.
16188         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16189         (Depends-on): Add ansi-c++-opt.
16190         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16191
16192         Tests of module 'glob' in C++ mode.
16193         * tests/test-glob-c++.cc: New file.
16194         * modules/glob-tests (Files): Add it.
16195         (Depends-on): Add ansi-c++-opt.
16196         (Makefile.am): Arrange to compile and run test-glob-c++.
16197
16198         Tests of module 'fcntl-h' in C++ mode.
16199         * tests/test-fcntl-h-c++.cc: New file.
16200         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16201         (Depends-on): Add ansi-c++-opt.
16202         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16203         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16204         gl_MODULE_INDICATOR.
16205
16206         Tests of module 'dirent' in C++ mode.
16207         * tests/test-dirent-c++.cc: New file.
16208         * modules/dirent-tests (Files): Add it and tests/signature.h.
16209         (Depends-on): Add ansi-c++-opt.
16210         (Makefile.am): Arrange to compile and run test-dirent-c++.
16211         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16212         gl_MODULE_INDICATOR.
16213
16214         New module 'ansi-c++-opt'.
16215         * modules/ansi-c++-opt: New file.
16216         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16217
16218         Document C++ namespace mode.
16219         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16220
16221         wctype: Avoid #define replacements in C++ mode.
16222         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16223         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16224         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16225         In C++, define a namespaced alias symbol.
16226         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16227         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16228         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16229         rule.
16230
16231         wchar: Avoid #define replacements in C++ mode.
16232         * lib/wchar.in.h: Include c++defs.h.
16233         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16234         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16235         symbol.
16236         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16237         * modules/wchar (Depends-on): Add c++defs.
16238         (Makefile.am): Update wchar.h rule.
16239
16240         unistd: Avoid #define replacements in C++ mode.
16241         * lib/unistd.in.h: Include c++defs.h.
16242         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16243         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16244         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16245         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16246         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16247         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16248         symbol.
16249         (environ): Update.
16250         * modules/unistd (Depends-on): Add c++defs.
16251         (Makefile.am): Update unistd.h rule.
16252
16253         time: Avoid #define replacements in C++ mode.
16254         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16255         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16256         define a namespaced alias symbol.
16257         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16258         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16259         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16260         * modules/time (Depends-on): Add c++defs, warn-on-use.
16261         (Makefile.am): Update time.h rule.
16262         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16263         * modules/nanosleep (configure.ac): Likewise.
16264         * modules/strptime (configure.ac): Likewise.
16265         * modules/timegm (configure.ac): Likewise.
16266
16267         sys_time: Avoid #define replacements in C++ mode.
16268         * lib/sys_time.in.h: Include c++defs.h.
16269         (gettimeofday): In C++, define a namespaced alias symbol.
16270         * modules/sys_time (Depends-on): Add c++defs.
16271         (Makefile.am): Update sys/time.h rule.
16272
16273         sys_stat: Avoid #define replacements in C++ mode.
16274         * lib/sys_stat.in.h: Include c++defs.h.
16275         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16276         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16277         namespaced alias symbol.
16278         In C++, define a namespaced alias symbol.
16279         * modules/sys_stat (Depends-on): Add c++defs.
16280         (Makefile.am): Update sys/stat.h rule.
16281
16282         sys_socket: Avoid #define replacements in C++ mode.
16283         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16284         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16285         definitions also when the system has a <sys/socket.h>.
16286         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16287         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16288         In C++, define a namespaced alias symbol.
16289         * modules/sys_socket (Depends-on): Add c++defs.
16290         (Makefile.am): Update sys/socket.h rule.
16291
16292         sys_select: Avoid #define replacements in C++ mode.
16293         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16294         definitions also when the system has a <sys/select.h>.
16295         (select): In C++, define a namespaced alias symbol.
16296         * modules/sys_select (Depends-on): Add c++defs.
16297         (Makefile.am): Update sys/select.h rule.
16298
16299         sys_ioctl: Avoid #define replacements in C++ mode.
16300         * lib/sys_ioctl.in.h: Include c++defs.h.
16301         (ioctl): In C++, define a namespaced alias symbol.
16302         * modules/sys_ioctl (Depends-on): Add c++defs.
16303         (Makefile.am): Update sys/ioctl.h rule.
16304
16305         string: Avoid #define replacements in C++ mode.
16306         * lib/string.in.h: Include c++defs.h.
16307         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16308         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16309         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16310         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16311         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16312         * modules/string (Depends-on): Add c++defs.
16313         (Makefile.am): Update string.h rule.
16314
16315         stdlib: Avoid #define replacements in C++ mode.
16316         * lib/stdlib.in.h: Include c++defs.h.
16317         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16318         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16319         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16320         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16321         symbol.
16322         * modules/stdlib (Depends-on): Add c++defs.
16323         (Makefile.am): Update stdlib.h rule.
16324
16325         stdio: Avoid #define replacements in C++ mode.
16326         * lib/stdio.in.h: Include c++defs.h.
16327         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16328         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16329         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16330         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16331         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16332         namespaced alias symbol.
16333         * modules/stdio (Depends-on): Add c++defs.
16334         (Makefile.am): Update stdio.h rule.
16335
16336         spawn: Avoid #define replacements in C++ mode.
16337         * lib/spawn.in.h: Include c++defs.h.
16338         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16339         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16340         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16341         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16342         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16343         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16344         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16345         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16346         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16347         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16348         In C++, define a namespaced alias symbol.
16349         * modules/spawn (Depends-on): Add c++defs.
16350         (Makefile.am): Update spawn.h rule.
16351
16352         signal: Avoid #define replacements in C++ mode.
16353         * lib/signal.in.h: Include c++defs.h.
16354         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16355         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16356         namespaced alias symbol.
16357         * modules/signal (Depends-on): Add c++defs.
16358         (Makefile.am): Update signal.h rule.
16359
16360         search: Avoid #define replacements in C++ mode.
16361         * lib/search.in.h: Include c++defs.h.
16362         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16363         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16364         symbol.
16365         * modules/search (Depends-on): Add c++defs.
16366         (Makefile.am): Update search.h rule.
16367
16368         math: Avoid #define replacements in C++ mode.
16369         * lib/math.in.h: Include c++defs.h.
16370         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16371         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16372         trunc, truncl): In C++, define a namespaced alias symbol.
16373         * modules/math (Depends-on): Add c++defs.
16374         (Makefile.am): Update math.h rule.
16375
16376         locale: Avoid #define replacements in C++ mode.
16377         * lib/locale.in.h: Include c++defs.h.
16378         (duplocale): In C++, define a namespaced alias symbol.
16379         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16380         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16381         * modules/locale (Depends-on): Add c++defs.
16382         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16383
16384         langinfo: Avoid #define replacements in C++ mode.
16385         * lib/langinfo.in.h: Include c++defs.h.
16386         (nl_langinfo): In C++, define a namespaced alias symbol.
16387         * modules/langinfo (Depends-on): Add c++defs.
16388         (Makefile.am): Update langinfo.h rule.
16389
16390         iconv-h: Avoid #define replacements in C++ mode.
16391         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16392         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16393         symbol.
16394         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16395         whenever iconv is present.
16396         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16397         (Makefile.am): Update iconv.h rule.
16398
16399         glob: Avoid #define replacements in C++ mode.
16400         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16401         (_gl_glob_errfunc_fn): New type.
16402         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16403         symbol.
16404         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16405         (Makefile.am): Update glob.h rule.
16406
16407         fcntl-h: Avoid #define replacements in C++ mode.
16408         * lib/fcntl.in.h: Include c++defs.h.
16409         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16410         * modules/fcntl-h (Depends-on): Add c++defs.
16411         (Makefile.am): Update fcntl.h rule.
16412
16413         dirent: Avoid #define replacements in C++ mode.
16414         * lib/dirent.in.h: Include c++defs.h.
16415         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16416         namespaced alias symbol.
16417         (dirfd): Update declaration.
16418         * modules/dirent (Depends-on): Add c++defs.
16419         (Makefile.am): Update dirent.h rule.
16420
16421         ctype: Make it usable in C++ code.
16422         * lib/ctype.in.h: Include c++defs.h.
16423         (isblank): Declare as extern "C".
16424         * modules/ctype (Depends-on): Add c++defs.
16425         (Makefile.am): Update ctype.h rule.
16426
16427         New module 'c++defs'.
16428         * modules/c++defs: New file.
16429         * build-aux/c++defs.h: New file.
16430         Reported by John W. Eaton <jwe@gnu.org>.
16431
16432 2010-03-07  Bruno Haible  <bruno@clisp.org>
16433
16434         logb: Provide missing declaration for Cygwin.
16435         * lib/math.in.h (logb): New declaration.
16436         * m4/logb.m4: New file.
16437         * modules/logb (Files): Add m4/logb.m4.
16438         (Depends-on): Add math.
16439         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16440         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16442         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16443         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16444
16445 2010-03-07  Bruno Haible  <bruno@clisp.org>
16446
16447         Fix test-cond link error.
16448         * tests/test-cond.c: Include <stdio.h>.
16449
16450 2010-03-07  Bruno Haible  <bruno@clisp.org>
16451
16452         Fix test-dirent-safer link error.
16453         * modules/dirent-safer-tests (Makefile.am): Define
16454         test_dirent_safer_LDADD.
16455
16456 2010-03-07  Bruno Haible  <bruno@clisp.org>
16457
16458         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16459         among default module list.
16460
16461 2010-03-07  Bruno Haible  <bruno@clisp.org>
16462
16463         Fix link error on platforms with GNU libiconv.
16464         * modules/unistr/u8-strcoll-tests (Makefile): Define
16465         test_u8_strcoll_LDADD.
16466         * modules/unistr/u16-strcoll-tests (Makefile): Define
16467         test_u16_strcoll_LDADD.
16468         * modules/unistr/u32-strcoll-tests (Makefile): Define
16469         test_u32_strcoll_LDADD.
16470
16471 2010-03-07  Bruno Haible  <bruno@clisp.org>
16472
16473         Use POSIX declarations for socket functions.
16474         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16475         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16476         rpl_sendto): Change declaration to match POSIX.
16477         * lib/connect.c (rpl_connect): Likewise.
16478         * lib/accept.c (rpl_accept): Likewise.
16479         * lib/bind.c (rpl_bind): Likewise.
16480         * lib/getpeername.c (rpl_getpeername): Likewise.
16481         * lib/getsockname.c (rpl_getsockname): Likewise.
16482         * lib/recv.c (rpl_recv): Likewise.
16483         * lib/send.c (rpl_send): Likewise.
16484         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16485         * lib/sendto.c (rpl_sendto): Likewise.
16486
16487 2010-03-06  Bruno Haible  <bruno@clisp.org>
16488
16489         Clarify access, euidaccess, faccessat.
16490         * doc/posix-functions/faccessat.texi: Mention security problem under
16491         "Other problems", not "Portability problems".
16492         * doc/posix-functions/access.texi: Likewise. Mention a related security
16493         problem.
16494         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16495         * lib/euidaccess.c: Add comments about platforms.
16496         * lib/unistd.in.h (access, euidaccess): Add warnings.
16497
16498 2010-03-07  Bruno Haible  <bruno@clisp.org>
16499
16500         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16501         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16502         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16503         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16504         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16505         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16506         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16507         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16508         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16510         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16511         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16512         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16513         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16514         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16515         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16516         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16517         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16518         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16519         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16520         Likewise.
16521         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16522         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16523         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16524         Likewise.
16525         * tests/test-spawn.c (main): Make it work when
16526         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16527
16528 2010-03-07  Bruno Haible  <bruno@clisp.org>
16529
16530         Fix incorrect Makefile.am generation in German locale.
16531         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16532         Execute sed command with character range in C locale.
16533
16534 2010-03-06  Bruno Haible  <bruno@clisp.org>
16535
16536         Tests for module 'iconv-h'.
16537         * modules/iconv-h-tests: New file.
16538         * tests/test-iconv-h.c: New file.
16539
16540         New module 'iconv-h'.
16541         * modules/iconv-h: New file.
16542         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16543         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16544         (configure.ac): Remove gl_ICONV_H.
16545         (Makefile.am): Remove rule for iconv.h.
16546
16547 2010-03-06  Bruno Haible  <bruno@clisp.org>
16548
16549         More consistent naming of *.m4 files.
16550         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16551         * modules/wctype (Files): Update.
16552
16553         More consistent naming of *.m4 files.
16554         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16555         * modules/wchar (Files): Update.
16556
16557 2010-03-06  Jim Meyering  <meyering@redhat.com>
16558
16559         euidaccess: relax license to LGPLv2+
16560         * modules/euidaccess (License): Relax to LGPLv2+.
16561
16562 2010-03-06  Bruno Haible  <bruno@clisp.org>
16563
16564         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16565         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16566         (Makefile.am): Augment lib_SOURCES instead.
16567
16568 2010-03-04  Jim Meyering  <meyering@redhat.com>
16569
16570         utime: remove obsolete module
16571         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16572         unnecessary for years, and has been marked as obsolete for 10 months.
16573         * modules/utime: Remove file.
16574         * lib/utime.c: Remove file.
16575         * m4/utime.m4: Remove file.
16576         * m4/utimes-null.m4: Remove file.
16577         * doc/posix-functions/utime.texi (utime): Remove reference to
16578         the module.  Move the sole "fixed by gnulib" item into the
16579         "problems not fixed by Gnulib" list.
16580         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16581
16582 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16583
16584         * modules/exit (License): Relax license to LGPLv2+.
16585         (Status): Mark as obsolete.
16586         * NEWS: Mention deprecated 'exit' module.
16587         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16588         of now obsolete 'exit'.
16589
16590 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16591
16592         fts-lgpl: remove unused module
16593         * modules/fts-lgpl: Remove.
16594         * MODULES.html.sh (func_all_modules): Adjust.
16595         * check-module (find_included_lib_files): Adjust.
16596         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16597
16598 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16599
16600         copy-acl: enhance Solaris ACL error handling
16601         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16602         * lib/set-mode-acl.c (qset_acl): Likewise.
16603
16604 2010-03-02  Bruno Haible  <bruno@clisp.org>
16605
16606         spawn: Don't override the system defined values on FreeBSD 8.
16607         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16608         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16609         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16610         if HAVE_POSIX_SPAWN is 1.
16611         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16612
16613 2010-03-01  Bruno Haible  <bruno@clisp.org>
16614
16615         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16616         regarding Automake.
16617
16618 2010-02-25  Bruno Haible  <bruno@clisp.org>
16619
16620         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16621         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16622         setting, not afterwards.
16623         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16624
16625 2010-02-24  Eric Blake  <eblake@redhat.com>
16626
16627         bootstrap, git-version-gen: use timestamp
16628         * build-aux/git-version-gen (scriptversion): Force UTC.
16629         * build-aux/bootstrap (scriptversion): New variable.
16630
16631         bootstrap: allow older git
16632         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16633         older than 1.6.4.  Requested by the libvirt project.
16634
16635 2010-02-23  Eric Blake  <eblake@redhat.com>
16636
16637         warn-on-use: work with old autoconf
16638         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16639         AS_VAR semantics of autoconf 2.60.
16640         Reported by Bruno Haible.
16641
16642         bootstrap: improve some comments
16643         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16644         clarification comments.
16645
16646         gettimeofday: provide correct function
16647         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16648         when replacement is declared, otherwise provide gettimeofday.
16649         Reported by Michael Goffioul.
16650
16651 2010-02-23  Jim Meyering  <meyering@redhat.com>
16652
16653         lib-ignore: relax license to "unlimited", not LGPLv2+
16654         * modules/lib-ignore (License): Relax to "unlimited".
16655
16656 2010-02-23  Jim Meyering  <meyering@redhat.com>
16657
16658         lib-ignore: relax license to LGPLv2+
16659         * modules/lib-ignore (License): Relax to LGPLv2+.
16660
16661 2010-02-22  Eric Blake  <eblake@redhat.com>
16662
16663         lseek: avoid bash 3.2 broken pipe bug
16664         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16665         warning from bash 3.2.
16666         Reported by Ben Pfaff, with analysis from Bruno Haible.
16667
16668         bootstrap: support non-FSF copyright holder
16669         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16670         bootstrap.conf override of COPYRIGHT_HOLDER.
16671         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16672
16673         bootstrap: interoperate with gettext 0.14.1
16674         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16675
16676         bootstrap: allow for alternate submodule location
16677         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16678         hardcoding submodule location.
16679         (gnulib_mk): Allow direct use of Makefile.am.
16680
16681         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16682         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16683         rather than reconfiguring where the submodule points.
16684
16685         gettimeofday: restore support for platforms that lack function
16686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16687         replacement if function is missing.
16688         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16689         * modules/sys_time (Makefile.am): Substitute it.
16690         * lib/sys_time.in.h (gettimeofday): Check it.
16691         Reported by Michael Goffioul.
16692
16693 2010-02-21  Bruno Haible  <bruno@clisp.org>
16694
16695         * lib/stdio.in.h (obstack_printf): Fix typo.
16696
16697 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16698
16699         vc-list-files: use bzr ls's -R option
16700         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16701         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16702
16703 2010-02-21  Jim Meyering  <meyering@redhat.com>
16704
16705         init.sh: fix EXEEXT shims to work also for names like test-prog
16706         * tests/init.sh: Re-exec a better shell, when needed.
16707         If the current shell lacks support for posix $(...), an init.sh-using
16708         test will now try to find a shell that supports that.  If EXEEXT is
16709         nonempty, we also require support for hyphen-in-alias-name and shell
16710         substitutions like ${var#glob}.  Failure to find such a shell results
16711         in a skipped test.
16712
16713 2010-02-21  Bruno Haible  <bruno@clisp.org>
16714
16715         Really work around around "broken pipe" error message from bash 3.2.
16716         * gnulib-tool (func_reset_sigpipe): Remove function.
16717         (echo): In bash 3.2, define to a function that uses printf.
16718         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16719
16720 2010-02-20  Bruno Haible  <bruno@clisp.org>
16721
16722         Restore support for automake 1.9.6 with autoconf 2.61.
16723         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16724         Reported by James Youngman <jay@gnu.org>.
16725
16726 2010-02-20  Bruno Haible  <bruno@clisp.org>
16727
16728         Improve *printf warning condition.
16729         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16730         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16731         and the function is overridden due to SIGPIPE emulation.
16732
16733 2010-02-20  Bruno Haible  <bruno@clisp.org>
16734
16735         * lib/stdio.in.h: Tweak comments.
16736
16737 2010-02-19  Bruno Haible  <bruno@clisp.org>
16738
16739         Make it easier to find modules. New gnulib-tool option '--find'.
16740         * gnulib-tool: New option --find.
16741         (func_usage): Document it.
16742         (func_sanitize_modulelist): New function, extracted from
16743         func_all_modules.
16744         (func_all_modules): Invoke it.
16745         * doc/gnulib-tool.texi (Which modules?): New node.
16746
16747 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16748
16749         * lib/sys_select.in.h: Provide select replacement even if
16750         sys/select.h exists on a system, for Interix.
16751
16752 2010-02-18  Jim Meyering  <meyering@redhat.com>
16753
16754         init.sh: don't use $(...) just yet
16755         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16756         to accommodate e.g., Solaris' /bin/sh.
16757
16758 2010-02-17  Bruno Haible  <bruno@clisp.org>
16759
16760         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16761         Reported by Ludovic Courtès <ludo@gnu.org>.
16762
16763 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16764
16765         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16766         linking with -lintl.
16767
16768 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16769
16770         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16771         if not provided by the system's netdb.h.  Reported by
16772         ludo@gnu.org (Ludovic Courtès).
16773
16774 2010-02-15  Jim Meyering  <meyering@redhat.com>
16775
16776         init.sh: improve portability and efficiency
16777         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16778         "dummy" in a for loop.
16779         Use '!', not '^' to select the complement of a character set used
16780         in a "case" statement.
16781         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16782         Suggestions from Eric Blake.
16783
16784         init.sh: automatically accommodate programs with the .exe suffix
16785         Automatically arrange for an invocation of "prog" to execute the
16786         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16787         may use the simpler "prog", yet still work when built on a system
16788         that requires specifying the added suffix.
16789         Do this by constructing a function named "prog" that invokes
16790         "prog.exe" for each .exe file in selected directories.
16791         * tests/init.sh (find_exe_basenames_): New function.
16792         (create_exe_shim_functions_): New function.
16793         (path_prepend_): Use it.
16794
16795         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16796         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16797         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16798
16799 2010-02-14  Jim Meyering  <meyering@redhat.com>
16800
16801         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16802         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16803         (sc_prohibit_hash_pjw_without_use): New rule.
16804
16805         maint.mk: allow the default upload destination dir to be overridden
16806         * top/maint.mk (upload_dest_dir_): Define with a default that
16807         preserves the status quo.
16808         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16809         Reported by Peter Simons.
16810
16811         maint.mk: prohibit inclusion of "hash.h" without_use
16812         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16813
16814 2010-02-10  Jim Meyering  <meyering@redhat.com>
16815
16816         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16817         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16818
16819 2010-02-09  Eric Blake  <ebb9@byu.net>
16820         and Bruno Haible  <bruno@clisp.org>
16821
16822         obstack-printf-posix: ensure declaration
16823         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16824         extracted from gl_FUNC_OBSTACK_PRINTF.
16825         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16826         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16827         Likewise.
16828         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16829         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16830         0.
16831
16832 2010-02-08  Bruno Haible  <bruno@clisp.org>
16833
16834         gnulib-tool: Fix typo in 2010-02-07 commit.
16835         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16836         Reported by Eric Blake.
16837
16838 2010-02-07  Bruno Haible  <bruno@clisp.org>
16839
16840         gnulib-tool: Fix up caching patches.
16841         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16842         option --no-cache. Use associative arrays when supported by the shell.
16843         (sed_comments): New variable.
16844         (modcache): Renamed from do_cache.
16845         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16846         abbreviate unnecessarily.
16847         (have_associative): New variable.
16848         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16849         way also for ksh and zsh.
16850         (func_init_sed_convert_to_cache_statements): New function, extracted
16851         from func_cache_lookup_module. Add support for associative arrays.
16852         Don't set the c_MODULE_cached variable here. Ignore all lines before
16853         the first field header. Remove only the final newline, not all trailing
16854         newlines. Support empty fields correctly. Limit the use of 'eval' to
16855         assignments.
16856         (func_get_description, func_get_status, func_get_notice,
16857         func_get_applicability, func_get_filelist, func_get_dependencies,
16858         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16859         func_get_automake_snippet, func_get_include_directive,
16860         func_get_link_directive, func_get_license, func_get_maintainer):
16861         Update documentation. List the unoptimized code first. Add support for
16862         associative arrays. Limit the use of 'eval' to assignments.
16863         (func_get_applicability): Undo stylistic pessimisations.
16864         (func_get_automake_snippet, func_get_include_directive): Reduce code
16865         duplication.
16866         (func_modules_transitive_closure, func_modules_add_dummy,
16867         func_modules_notice, func_modules_to_filelist, func_add_file,
16868         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16869         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16870         func_create_testdir, func_create_megatestdir): Update documentation.
16871
16872 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16873
16874         * gnulib-tool (func_cache_lookup_module): Store the module name
16875         belonging to the cache variable; error out if two different
16876         module names map to the same cache variable name.
16877
16878 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16879
16880         gnulib-tool: Make caching optional.
16881         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16882         Update matching short versions of --no-changelog.
16883         (func_usage): Update.
16884         (sed_extract_cache_prog): Renamed from ...
16885         (sed_extract_prog): ... this; revert to old extraction script.
16886         (func_get_description, func_get_status)
16887         (func_get_notice, func_get_applicability, func_get_filelist)
16888         (func_get_dependencies, func_get_autoconf_early_snippet)
16889         (func_get_autoconf_snippet, func_get_automake_snippet)
16890         (func_get_include_directive, func_get_link_directive)
16891         (func_get_license, func_get_maintainer): If $do_cache is false,
16892         use old, non-caching extraction scripts.
16893         Suggestion by Bruno Haible.
16894
16895 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16896
16897         gnulib-tool: cache module metainformation.
16898         * gnulib-tool (sed_extract_prog): Match newline before each
16899         header, and rewrite header to a shell variable suffix.
16900         (func_cache_var, func_cache_lookup_module): New functions,
16901         to turn a module name into a cache variable prefix, and to
16902         look up and cache module metainformation.
16903         (func_get_description, func_get_status)
16904         (func_get_notice, func_get_applicability, func_get_filelist)
16905         (func_get_dependencies, func_get_autoconf_early_snippet)
16906         (func_get_autoconf_snippet, func_get_automake_snippet)
16907         (func_get_include_directive, func_get_link_directive)
16908         (func_get_license, func_get_maintainer): Use
16909         func_cache_lookup_module.
16910
16911 2010-02-07  Bruno Haible  <bruno@clisp.org>
16912
16913         fnctl: Fix missing dependency.
16914         * modules/fcntl (Depends-on): Add getdtablesize.
16915         Reported by John W. Eaton <jwe@gnu.org>.
16916
16917 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16918
16919         Argp: fix recognition of short alias options.
16920
16921         * lib/argp-parse.c (convert_options): Fix improper use of
16922         `|' between character values.
16923         * tests/test-argp.c (group1_option): New alias option
16924         --read (-r).
16925         (group1_parser): Special handling for 'r'.
16926         (test15): New test case.
16927         (test_fun): Add test15.
16928         * tests/test-argp-2.sh: Update expected --help and --usage
16929         outputs.
16930
16931 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16932
16933         * tests/test-argp.c: Fix indentation.
16934
16935 2010-02-04  Eric Blake  <ebb9@byu.net>
16936
16937         gettimeofday: expose type of second argument
16938         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16939         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16940         * tests/test-gettimeofday.c: Use it to silence warning.
16941         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16942         the issue.
16943
16944 2010-02-03  Jim Meyering  <meyering@redhat.com>
16945
16946         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16947         * lib/regcomp.c (TYPE_SIGNED): Define.
16948         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16949
16950         regcomp.c: avoid a new -Wshadow warning
16951         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16952
16953 2010-02-01  Jim Meyering  <meyering@redhat.com>
16954
16955         removing useless parentheses in cpp #define directives
16956         For motivation, see commit c0221df4, "define STREQ(a,b)
16957         consistently, removing useless parentheses"
16958         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16959         * lib/mountlist.c (MNT_IGNORE): Likewise.
16960         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16961
16962 2010-02-01  Eric Blake  <ebb9@byu.net>
16963
16964         sys_time: use link-warning
16965         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16966         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16967         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16968         * modules/sys_time (Depends-on): Add warn-on-use.
16969         (Makefile.am): Always build replacement.
16970         (configure.ac): Update substitutions.
16971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16972         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16973         bother with SYS_TIME_H.
16974         * modules/gettimeofday (configure.ac): Declare indicator.
16975         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16976         in use.
16977
16978         closein-tests: silence compiler warning
16979         * tests/test-closein.c (main): Ignore fread result.
16980         * modules/closein-tests (Depends-on): Add ignore-value.
16981
16982         tests: silence warning about system return
16983         * tests/test-areadlink-with-size.c (main): Ignore system result.
16984         * tests/test-areadlink.c (main): Likewise.
16985         * tests/test-areadlinkat-with-size.c (main): Likewise.
16986         * tests/test-areadlinkat.c (main): Likewise.
16987         * tests/test-canonicalize-lgpl.c (main): Likewise.
16988         * tests/test-canonicalize.c (main): Likewise.
16989         * tests/test-chown.c (main): Likewise.
16990         * tests/test-fchownat.c (main): Likewise.
16991         * tests/test-fdutimensat.c (main): Likewise.
16992         * tests/test-fstatat.c (main): Likewise.
16993         * tests/test-futimens.c (main): Likewise.
16994         * tests/test-lchown.c (main): Likewise.
16995         * tests/test-link.c (main): Likewise.
16996         * tests/test-linkat.c (main): Likewise.
16997         * tests/test-lstat.c (main): Likewise.
16998         * tests/test-mkdir.c (main): Likewise.
16999         * tests/test-mkdirat.c (main): Likewise.
17000         * tests/test-mkfifo.c (main): Likewise.
17001         * tests/test-mkfifoat.c (main): Likewise.
17002         * tests/test-mknod.c (main): Likewise.
17003         * tests/test-readlink.c (main): Likewise.
17004         * tests/test-remove.c (main): Likewise.
17005         * tests/test-rename.c (main): Likewise.
17006         * tests/test-renameat.c (main): Likewise.
17007         * tests/test-rmdir.c (main): Likewise.
17008         * tests/test-symlink.c (main): Likewise.
17009         * tests/test-symlinkat.c (main): Likewise.
17010         * tests/test-unlink.c (main): Likewise.
17011         * tests/test-unlinkat.c (main): Likewise.
17012         * tests/test-utimens.c (main): Likewise.
17013         * tests/test-utimensat.c (main): Likewise.
17014         * modules/areadlink-tests (Depends-on): Add ignore-value.
17015         * modules/areadlink-with-size-tests (Depends-on): Likewise.
17016         * modules/areadlinkat-tests (Depends-on): Likewise.
17017         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
17018         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17019         * modules/canonicalize-tests (Depends-on): Likewise.
17020         * modules/chown-tests (Depends-on): Likewise.
17021         * modules/fdutimensat-tests (Depends-on): Likewise.
17022         * modules/futimens-tests (Depends-on): Likewise.
17023         * modules/lchown-tests (Depends-on): Likewise.
17024         * modules/link-tests (Depends-on): Likewise.
17025         * modules/linkat-tests (Depends-on): Likewise.
17026         * modules/lstat-tests (Depends-on): Likewise.
17027         * modules/mkdir-tests (Depends-on): Likewise.
17028         * modules/mkfifo-tests (Depends-on): Likewise.
17029         * modules/mkfifoat-tests (Depends-on): Likewise.
17030         * modules/mknod-tests (Depends-on): Likewise.
17031         * modules/openat-tests (Depends-on): Likewise.
17032         * modules/readlink-tests (Depends-on): Likewise.
17033         * modules/remove-tests (Depends-on): Likewise.
17034         * modules/rename-tests (Depends-on): Likewise.
17035         * modules/renameat-tests (Depends-on): Likewise.
17036         * modules/rmdir-tests (Depends-on): Likewise.
17037         * modules/symlink-tests (Depends-on): Likewise.
17038         * modules/symlinkat-tests (Depends-on): Likewise.
17039         * modules/unlink-tests (Depends-on): Likewise.
17040         * modules/utimens-tests (Depends-on): Likewise.
17041         * modules/utimensat-tests (Depends-on): Likewise.
17042
17043 2010-01-31  Bruno Haible  <bruno@clisp.org>
17044
17045         Perform the same test for many <math.h> functions.
17046         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
17047         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
17048         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
17049         of gl_MATHFUNC.
17050         * modules/acos (configure.ac): Likewise.
17051         * modules/asin (configure.ac): Likewise.
17052         * modules/atan (configure.ac): Likewise.
17053         * modules/atan2 (configure.ac): Likewise.
17054         * modules/cbrt (configure.ac): Likewise.
17055         * modules/copysign (configure.ac): Likewise.
17056         * modules/cos (configure.ac): Likewise.
17057         * modules/cosh (configure.ac): Likewise.
17058         * modules/erf (configure.ac): Likewise.
17059         * modules/erfc (configure.ac): Likewise.
17060         * modules/exp (configure.ac): Likewise.
17061         * modules/fmod (configure.ac): Likewise.
17062         * modules/hypot (configure.ac): Likewise.
17063         * modules/j0 (configure.ac): Likewise.
17064         * modules/j1 (configure.ac): Likewise.
17065         * modules/jn (configure.ac): Likewise.
17066         * modules/lgamma (configure.ac): Likewise.
17067         * modules/log (configure.ac): Likewise.
17068         * modules/log10 (configure.ac): Likewise.
17069         * modules/log1p (configure.ac): Likewise.
17070         * modules/pow (configure.ac): Likewise.
17071         * modules/remainder (configure.ac): Likewise.
17072         * modules/sin (configure.ac): Likewise.
17073         * modules/sinh (configure.ac): Likewise.
17074         * modules/tan (configure.ac): Likewise.
17075         * modules/tanh (configure.ac): Likewise.
17076         * modules/y0 (configure.ac): Likewise.
17077         * modules/y1 (configure.ac): Likewise.
17078         * modules/yn (configure.ac): Likewise.
17079         Suggested by Paolo Bonzini.
17080
17081 2010-01-31  Bruno Haible  <bruno@clisp.org>
17082
17083         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17084
17085 2010-01-31  Bruno Haible  <bruno@clisp.org>
17086
17087         Work around getdelim() bug on FreeBSD 8.0.
17088         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17089         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17090         not work.
17091         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17092         is 1.
17093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17094         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17095         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17096         a non-zero size.
17097         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17098
17099 2010-01-31  Bruno Haible  <bruno@clisp.org>
17100
17101         Work around getline() bug on FreeBSD 8.0.
17102         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17103         and a non-zero size.
17104         * tests/test-getline.c (main): Likewise.
17105         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17106         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17107
17108 2010-01-28  Eric Blake  <ebb9@byu.net>
17109
17110         regex: fix build failure
17111         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17112         platforms.
17113
17114 2010-01-28  Jim Meyering  <meyering@redhat.com>
17115
17116         regex: do not ignore memory allocation failure
17117         * lib/regex_internal.c (create_cd_newstate): Detect
17118         re_node_set_init_copy failure.   Extracted from glibc commit
17119         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17120
17121         regex: sync more white-space changes from libc
17122         * lib/regex_internal.c: White-space only changes.
17123         * lib/regexec.c: Likewise.
17124
17125         regex: add many uses of __attribute_warn_unused_result__
17126         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17127         * lib/regexec.c: Likewise.
17128         Extracted from a messy glibc commit.
17129
17130         regcomp.c: spelling and merge-artifact from glibc
17131         * lib/regcomp.c: Merge remainder of glibc's
17132         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17133
17134         regcomp.c: sync white-space changes from glibc
17135         * lib/regcomp.c: Merge to accommodate white space
17136         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17137
17138         regcomp.c: do not ignore internal return values
17139         * lib/regcomp.c: Do not ignore internal return values.
17140         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17141         but without its white-space changes and spelling fixes.
17142
17143         regex_internal.h: define __attribute_warn_unused_result__
17144         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17145
17146         maint: add a syntax-check rule to check for vulnerable Makefile.in
17147         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17148
17149 2010-01-27  Jim Meyering  <meyering@redhat.com>
17150
17151         ncftpput-ftp: clean up spaces
17152         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17153         Remove trailing blanks.
17154
17155 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17156
17157         * build-aux/git-version-gen: Fix copyright statement.
17158         * build-aux/gnupload: Likewise.
17159         * tests/test-arcfour.c: Likewise.
17160         * tests/test-arctwo.c: Likewise.
17161         * tests/test-count-one-bits.c: Likewise.
17162         * tests/test-crc.c: Likewise.
17163         * tests/test-des.c: Likewise.
17164         * tests/test-gc-arcfour.c: Likewise.
17165         * tests/test-gc-arctwo.c: Likewise.
17166         * tests/test-gc-des.c: Likewise.
17167         * tests/test-gc-hmac-md5.c: Likewise.
17168         * tests/test-gc-hmac-sha1.c: Likewise.
17169         * tests/test-gc-md2.c: Likewise.
17170         * tests/test-gc-md4.c: Likewise.
17171         * tests/test-gc-md5.c: Likewise.
17172         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17173         * tests/test-gc-rijndael.c: Likewise.
17174         * tests/test-gc-sha1.c: Likewise.
17175         * tests/test-gc.c: Likewise.
17176         * tests/test-gethostname.c: Likewise.
17177         * tests/test-gettimeofday.c: Likewise.
17178         * tests/test-hash.c: Likewise.
17179         * tests/test-hmac-md5.c: Likewise.
17180         * tests/test-hmac-sha1.c: Likewise.
17181         * tests/test-md2.c: Likewise.
17182         * tests/test-md4.c: Likewise.
17183         * tests/test-md5.c: Likewise.
17184         * tests/test-memchr.c: Likewise.
17185         * tests/test-memchr2.c: Likewise.
17186         * tests/test-memcmp.c: Likewise.
17187         * tests/test-memmem.c: Likewise.
17188         * tests/test-memrchr.c: Likewise.
17189         * tests/test-rawmemchr.c: Likewise.
17190         * tests/test-read-file.c: Likewise.
17191         * tests/test-rijndael.c: Likewise.
17192         * tests/test-sockets.c: Likewise.
17193         * tests/test-strchrnul.c: Likewise.
17194         * tests/test-strstr.c: Likewise.
17195         * tests/test-strtod.c: Likewise.
17196         * build-aux/ncftpput-ftp: Likewise.
17197
17198 2010-01-26  Eric Blake  <ebb9@byu.net>
17199
17200         ignore-value: update recommended header name
17201         * modules/ignore-value (Include): Only use <> for headers that
17202         exist in glibc.
17203
17204 2010-01-26  Jim Meyering  <meyering@redhat.com>
17205
17206         test-userspec.c: avoid compiler warnings
17207         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17208         and "initialization discards qualifiers..." warnings.
17209         Put the first "uid" in its own scope, and make char* members "const".
17210
17211 2010-01-25  Bruno Haible  <bruno@clisp.org>
17212
17213         gnulib-tool: Make warning diagnostics consistent.
17214         * gnulib-tool (func_warning): New function.
17215         Use it everywhere where gnulib-tool produces output to stderr and it is
17216         not a fatal error.
17217
17218 2010-01-25  Bruno Haible  <bruno@clisp.org>
17219
17220         Fix test dependencies.
17221         * modules/xstrtol-tests (Depends-on): Add inttypes.
17222         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17223
17224 2010-01-25 Pádraig Brady <P@draigBrady.com>
17225
17226         syntax-check: detect incorrect boolean macro values in config.h
17227         * modules/maintainer-makefile (configure.ac): Parameterize the location
17228         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17229         The logic is from Eric Blake and the location indicated by Jim Meyering.
17230         Note the more natural CONFIG_HEADER name is prohibited by automake
17231         for backwards compatibility reasons.
17232         * top/maint.mk (sc_Wundef_boolean): New rule.
17233
17234 2010-01-25  Jim Meyering  <meyering@redhat.com>
17235
17236         bootstrap: detect MacOS 10.6's shasum, too
17237         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17238         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17239
17240 2010-01-23  Jim Meyering  <meyering@redhat.com>
17241
17242         xstrtoll: new module
17243         * modules/xstrtoll: New file.
17244         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17245         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17246         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17247         ./configure fails if you use this module and lack "long long".
17248         * modules/xstrtoll-tests: New module.
17249         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17250         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17251         new init.sh-based test framework.
17252
17253 2010-01-24  Bruno Haible  <bruno@clisp.org>
17254
17255         Tests for module 'yn'.
17256         * modules/yn-tests: New file.
17257         * tests/test-yn.c: New file.
17258
17259         Tests for module 'y1'.
17260         * modules/y1-tests: New file.
17261         * tests/test-y1.c: New file.
17262
17263         Tests for module 'y0'.
17264         * modules/y0-tests: New file.
17265         * tests/test-y0.c: New file.
17266
17267         Tests for module 'tanh'.
17268         * modules/tanh-tests: New file.
17269         * tests/test-tanh.c: New file.
17270
17271         Tests for module 'tan'.
17272         * modules/tan-tests: New file.
17273         * tests/test-tan.c: New file.
17274
17275         Tests for module 'sqrt'.
17276         * modules/sqrt-tests: New file.
17277         * tests/test-sqrt.c: New file.
17278
17279         Tests for module 'sinh'.
17280         * modules/sinh-tests: New file.
17281         * tests/test-sinh.c: New file.
17282
17283         Tests for module 'sin'.
17284         * modules/sin-tests: New file.
17285         * tests/test-sin.c: New file.
17286
17287         Tests for module 'rint'.
17288         * modules/rint-tests: New file.
17289         * tests/test-rint.c: New file.
17290
17291         Tests for module 'remainder'.
17292         * modules/remainder-tests: New file.
17293         * tests/test-remainder.c: New file.
17294
17295         Tests for module 'pow'.
17296         * modules/pow-tests: New file.
17297         * tests/test-pow.c: New file.
17298
17299         Tests for module 'nextafter'.
17300         * modules/nextafter-tests: New file.
17301         * tests/test-nextafter.c: New file.
17302
17303         Tests for module 'modf'.
17304         * modules/modf-tests: New file.
17305         * tests/test-modf.c: New file.
17306
17307         Tests for module 'logb'.
17308         * modules/logb-tests: New file.
17309         * tests/test-logb.c: New file.
17310
17311         Tests for module 'log1p'.
17312         * modules/log1p-tests: New file.
17313         * tests/test-log1p.c: New file.
17314
17315         Tests for module 'log10'.
17316         * modules/log10-tests: New file.
17317         * tests/test-log10.c: New file.
17318
17319         Tests for module 'log'.
17320         * modules/log-tests: New file.
17321         * tests/test-log.c: New file.
17322
17323         Tests for module 'lgamma'.
17324         * modules/lgamma-tests: New file.
17325         * tests/test-lgamma.c: New file.
17326
17327         Tests for module 'ldexp'.
17328         * modules/ldexp-tests: New file.
17329         * tests/test-ldexp.c: New file.
17330
17331         Tests for module 'jn'.
17332         * modules/jn-tests: New file.
17333         * tests/test-jn.c: New file.
17334
17335         Tests for module 'j1'.
17336         * modules/j1-tests: New file.
17337         * tests/test-j1.c: New file.
17338
17339         Tests for module 'j0'.
17340         * modules/j0-tests: New file.
17341         * tests/test-j0.c: New file.
17342
17343         Tests for module 'hypot'.
17344         * modules/hypot-tests: New file.
17345         * tests/test-hypot.c: New file.
17346
17347         Tests for module 'fmod'.
17348         * modules/fmod-tests: New file.
17349         * tests/test-fmod.c: New file.
17350
17351         Tests for module 'fabs'.
17352         * modules/fabs-tests: New file.
17353         * tests/test-fabs.c: New file.
17354
17355         Tests for module 'exp'.
17356         * modules/exp-tests: New file.
17357         * tests/test-exp.c: New file.
17358
17359         Tests for module 'erfc'.
17360         * modules/erfc-tests: New file.
17361         * tests/test-erfc.c: New file.
17362
17363         Tests for module 'erf'.
17364         * modules/erf-tests: New file.
17365         * tests/test-erf.c: New file.
17366
17367         Tests for module 'cosh'.
17368         * modules/cosh-tests: New file.
17369         * tests/test-cosh.c: New file.
17370
17371         Tests for module 'cos'.
17372         * modules/cos-tests: New file.
17373         * tests/test-cos.c: New file.
17374
17375         Tests for module 'copysign'.
17376         * modules/copysign-tests: New file.
17377         * tests/test-copysign.c: New file.
17378
17379         Tests for module 'cbrt'.
17380         * modules/cbrt-tests: New file.
17381         * tests/test-cbrt.c: New file.
17382
17383         Tests for module 'atan2'.
17384         * modules/atan2-tests: New file.
17385         * tests/test-atan2.c: New file.
17386
17387         Tests for module 'atan'.
17388         * modules/atan-tests: New file.
17389         * tests/test-atan.c: New file.
17390
17391         Tests for module 'asin'.
17392         * modules/asin-tests: New file.
17393         * tests/test-asin.c: New file.
17394
17395         Tests for module 'acos'.
17396         * modules/acos-tests: New file.
17397         * tests/test-acos.c: New file.
17398
17399 2010-01-24  Bruno Haible  <bruno@clisp.org>
17400
17401         Fix tests for common <math.h> functions.
17402         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17403         code snippet that references the function pointer, rather than merely
17404         calling the function. Substitute the FUNC_LIBM variable.
17405         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17406         * modules/acos (configure.ac): Likewise.
17407         * modules/asin (configure.ac): Likewise.
17408         * modules/atan (configure.ac): Likewise.
17409         * modules/atan2 (configure.ac): Likewise.
17410         * modules/cbrt (configure.ac): Likewise.
17411         * modules/copysign (configure.ac): Likewise.
17412         * modules/cos (configure.ac): Likewise.
17413         * modules/cosh (configure.ac): Likewise.
17414         * modules/erf (configure.ac): Likewise.
17415         * modules/erfc (configure.ac): Likewise.
17416         * modules/exp (configure.ac): Likewise.
17417         * modules/fabs (configure.ac): Likewise.
17418         * modules/fmod (configure.ac): Likewise.
17419         * modules/hypot (configure.ac): Likewise.
17420         * modules/j0 (configure.ac): Likewise.
17421         * modules/j1 (configure.ac): Likewise.
17422         * modules/jn (configure.ac): Likewise.
17423         * modules/ldexp (configure.ac): Likewise.
17424         * modules/lgamma (configure.ac): Likewise.
17425         * modules/log (configure.ac): Likewise.
17426         * modules/log10 (configure.ac): Likewise.
17427         * modules/log1p (configure.ac): Likewise.
17428         * modules/logb (configure.ac): Likewise.
17429         * modules/modf (configure.ac): Likewise.
17430         * modules/nextafter (configure.ac): Likewise.
17431         * modules/pow (configure.ac): Likewise.
17432         * modules/remainder (configure.ac): Likewise.
17433         * modules/rint (configure.ac): Likewise.
17434         * modules/sin (configure.ac): Likewise.
17435         * modules/sinh (configure.ac): Likewise.
17436         * modules/tan (configure.ac): Likewise.
17437         * modules/tanh (configure.ac): Likewise.
17438         * modules/y0 (configure.ac): Likewise.
17439         * modules/y1 (configure.ac): Likewise.
17440         * modules/yn (configure.ac): Likewise.
17441
17442 2010-01-24  Bruno Haible  <bruno@clisp.org>
17443
17444         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17445         * tests/test-acosl.c (x): New variable.
17446         (main): Store argument in x and fetch it from x.
17447         * tests/test-asinl.c (x): New variable.
17448         (main): Store argument in x and fetch it from x.
17449         * tests/test-atanl.c (x): New variable.
17450         (main): Store argument in x and fetch it from x.
17451         * tests/test-cosl.c (x): New variable.
17452         (main): Store argument in x and fetch it from x.
17453         * tests/test-expl.c (x): New variable.
17454         (main): Store argument in x and fetch it from x.
17455         * tests/test-logl.c (x): New variable.
17456         (main): Store argument in x and fetch it from x.
17457         * tests/test-sinl.c (x): New variable.
17458         (main): Store argument in x and fetch it from x.
17459         * tests/test-sqrtl.c (x): New variable.
17460         (main): Store argument in x and fetch it from x.
17461         * tests/test-tanl.c (x): New variable.
17462         (main): Store argument in x and fetch it from x.
17463
17464 2010-01-24  Bruno Haible  <bruno@clisp.org>
17465
17466         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17467         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17468         assignments to the initial TESTS_ENVIRONMENT.
17469         * doc/gnulib.texi (Unit test modules): Document it.
17470         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17471         TESTS_ENVIRONMENT.
17472         * modules/btowc-tests (Makefile.am): Likewise.
17473         * modules/c-stack-tests (Makefile.am): Likewise.
17474         * modules/c-strcase-tests (Makefile.am): Likewise.
17475         * modules/copy-file-tests (Makefile.am): Likewise.
17476         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17477         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17478         * modules/mbrtowc-tests (Makefile.am): Likewise.
17479         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17480         * modules/mbscasestr-tests (Makefile.am): Likewise.
17481         * modules/mbschr-tests (Makefile.am): Likewise.
17482         * modules/mbscspn-tests (Makefile.am): Likewise.
17483         * modules/mbsinit-tests (Makefile.am): Likewise.
17484         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17485         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17486         * modules/mbspbrk-tests (Makefile.am): Likewise.
17487         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17488         * modules/mbsrchr-tests (Makefile.am): Likewise.
17489         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17490         * modules/mbsspn-tests (Makefile.am): Likewise.
17491         * modules/mbsstr-tests (Makefile.am): Likewise.
17492         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17493         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17494         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17495         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17496         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17497         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17498         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17499         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17500         * modules/wcrtomb-tests (Makefile.am): Likewise.
17501         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17502         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17503         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17504         assignments from TESTS_ENVIRONMENT.
17505         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17506         augmentation.
17507         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17508         * modules/atexit-tests (Makefile.am): Likewise.
17509         * modules/binary-io-tests (Makefile.am): Likewise.
17510         * modules/closein-tests (Makefile.am): Likewise.
17511         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17512         * modules/exclude-tests (Makefile.am): Likewise.
17513         * modules/fflush-tests (Makefile.am): Likewise.
17514         * modules/fpending-tests (Makefile.am): Likewise.
17515         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17516         * modules/freadahead-tests (Makefile.am): Likewise.
17517         * modules/freadptr-tests (Makefile.am): Likewise.
17518         * modules/freadseek-tests (Makefile.am): Likewise.
17519         * modules/fseek-tests (Makefile.am): Likewise.
17520         * modules/fseeko-tests (Makefile.am): Likewise.
17521         * modules/ftell-tests (Makefile.am): Likewise.
17522         * modules/ftello-tests (Makefile.am): Likewise.
17523         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17524         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17525         * modules/lseek-tests (Makefile.am): Likewise.
17526         * modules/parse-duration-tests (Makefile.am): Likewise.
17527         * modules/perror-tests (Makefile.am): Likewise.
17528         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17529         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17530         * modules/pipe-tests (Makefile.am): Likewise.
17531         * modules/pread-tests (Makefile.am): Likewise.
17532         * modules/printf-posix-tests (Makefile.am): Likewise.
17533         * modules/select-tests (Makefile.am): Likewise.
17534         * modules/sigpipe-tests (Makefile.am): Likewise.
17535         * modules/tsearch-tests (Makefile.am): Likewise.
17536         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17537         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17538         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17539         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17540         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17541         * modules/version-etc-tests (Makefile.am): Likewise.
17542         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17543         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17544         * modules/xalloc-die-tests (Makefile.am): Likewise.
17545         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17546         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17547         * modules/xstrtol-tests (Makefile.am): Likewise.
17548         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17549         * modules/yesno-tests (Makefile.am): Likewise.
17550         Suggested by Jim Meyering.
17551
17552 2010-01-24  Bruno Haible  <bruno@clisp.org>
17553
17554         More documentation.
17555         * doc/gnulib.texi (Writing modules): New chapter.
17556         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17557         the new chapter.
17558
17559 2010-01-24  Jim Meyering  <meyering@redhat.com>
17560
17561         maint.mk: do not prepend "./" after filtering
17562         * top/maint.mk (_prepend_srcdir_prefix): New variable
17563         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17564         "./" when $(srcdir) is ".".
17565
17566         define STREQ(a,b) consistently, removing useless parentheses
17567         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17568         since the only risk is that "a" or "b" contains an unparenthesized
17569         comma, but if either did that, STREQ would have 3 or more arguments.
17570         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17571         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17572         * lib/hash-triple.c (STREQ): Likewise.
17573         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17574         * lib/getugroups.c (STREQ): Likewise.
17575
17576 2010-01-23  Jim Meyering  <meyering@redhat.com>
17577
17578         maint.mk: fix syntax-check in a non-srcdir build directory
17579         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17580         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17581
17582 2010-01-22  Jim Meyering  <meyering@redhat.com>
17583
17584         userspec: add unit tests
17585         * tests/test-userspec.c: New file.
17586         * modules/userspec-tests: Likewise.
17587
17588 2010-01-21  Jim Meyering  <meyering@redhat.com>
17589
17590         maint.mk: handle source file names containing "." robustly
17591         * top/maint.mk (_dot_escaped_srcdir): Define.
17592         (VC_LIST): Use it in LHS of sed substitution.
17593
17594 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17595
17596         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17597         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17598         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17599         from a non-srcdir build.
17600
17601 2010-01-20  Eric Blake  <ebb9@byu.net>
17602
17603         warn-on-use: use instead of link-warning
17604         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17605         * modules/unistd (Depends-on, Makefile.am): Likewise.
17606         * modules/arpa_inet (Depends-on): Replace link-warning with
17607         warn-on-use.
17608         (Makefile.am): Update rules accordingly.
17609         * modules/ctype (Depends-on, Makefile.am): Likewise.
17610         * modules/dirent (Depends-on, Makefile.am): Likewise.
17611         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17612         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17613         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17614         * modules/locale (Depends-on, Makefile.am): Likewise.
17615         * modules/math (Depends-on, Makefile.am): Likewise.
17616         * modules/search (Depends-on, Makefile.am): Likewise.
17617         * modules/signal (Depends-on, Makefile.am): Likewise.
17618         * modules/spawn (Depends-on, Makefile.am): Likewise.
17619         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17620         * modules/string (Depends-on, Makefile.am): Likewise.
17621         * modules/strings (Depends-on, Makefile.am): Likewise.
17622         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17623         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17624         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17625         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17626         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17627         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17628         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17629         * modules/wchar (Depends-on, Makefile.am): Likewise.
17630         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17631         should be poisoned.
17632         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17633         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17634         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17635         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17636         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17637         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17638         * m4/math_h.m4 (gl_MATH_H): Likewise.
17639         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17640         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17641         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17642         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17643         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17644         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17645         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17646         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17651         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17652         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17653         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17654         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17655         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17656         GL_LINK_WARNING.
17657         * lib/ctype.in.h: Likewise.
17658         * lib/dirent.in.h: Likewise.
17659         * lib/fcntl.in.h: Likewise.
17660         * lib/inttypes.in.h: Likewise.
17661         * lib/langinfo.in.h: Likewise.
17662         * lib/locale.in.h: Likewise.
17663         * lib/math.in.h: Likewise.
17664         * lib/search.in.h: Likewise.
17665         * lib/signal.in.h: Likewise.
17666         * lib/spawn.in.h: Likewise.
17667         * lib/stdio.in.h: Likewise.
17668         * lib/stdlib.in.h: Likewise.
17669         * lib/string.in.h: Likewise.
17670         * lib/strings.in.h: Likewise.
17671         * lib/sys_file.in.h: Likewise.
17672         * lib/sys_ioctl.in.h: Likewise.
17673         * lib/sys_select.in.h: Likewise.
17674         * lib/sys_socket.in.h: Likewise.
17675         * lib/sys_stat.in.h: Likewise.
17676         * lib/sys_times.in.h: Likewise.
17677         * lib/sys_utsname.in.h: Likewise.
17678         * lib/unistd.in.h: Likewise.
17679         * lib/wchar.in.h: Likewise.
17680
17681 2010-01-20  Bruno Haible  <bruno@clisp.org>
17682
17683         Avoid duplicate -lm.
17684         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17685         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17686         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17687         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17688         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17689         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17690         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17691         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17692         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17693         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17694         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17695         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17696         Reported by Paolo Bonzini.
17697
17698 2010-01-19  Bruno Haible  <bruno@clisp.org>
17699
17700         langinfo, nl_langinfo: Relicense under LGPLv2+.
17701         * modules/langinfo (License): Change to LGPLv2+.
17702         * modules/nl_langinfo (License): Likewise.
17703         Patch by David Lutterkort <lutter@redhat.com>.
17704
17705 2010-01-19  Bruno Haible  <bruno@clisp.org>
17706
17707         Avoid compilation error with cc on OSF/1 5.1.
17708         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17709         statement, not before.
17710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17711
17712 2010-01-18  Bruno Haible  <bruno@clisp.org>
17713
17714         Avoid a link error due to the __printf__ symbol.
17715         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17716         and 2.6.x.
17717         (__format__, __printf__): Remove definitions.
17718         * lib/argp-fmtstream.h: Likewise.
17719         * lib/argp.h: Likewise.
17720         * lib/error.h: Likewise.
17721         * lib/vasnprintf.h: Likewise.
17722         * lib/xprintf.h: Likewise.
17723         * lib/xvasprintf.h: Likewise.
17724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17725
17726 2010-01-18  Bruno Haible  <bruno@clisp.org>
17727
17728         Tests for module 'tanl'.
17729         * modules/tanl-tests: New file.
17730         * tests/test-tanl.c: New file.
17731
17732         Tests for module 'sqrtl'.
17733         * modules/sqrtl-tests: New file.
17734         * tests/test-sqrtl.c: New file.
17735
17736         Tests for module 'sinl'.
17737         * modules/sinl-tests: New file.
17738         * tests/test-sinl.c: New file.
17739
17740         Tests for module 'logl'.
17741         * modules/logl-tests: New file.
17742         * tests/test-logl.c: New file.
17743
17744         Tests for module 'expl'.
17745         * modules/expl-tests: New file.
17746         * tests/test-expl.c: New file.
17747
17748         Tests for module 'cosl'.
17749         * modules/cosl-tests: New file.
17750         * tests/test-cosl.c: New file.
17751
17752         Tests for module 'atanl'.
17753         * modules/atanl-tests: New file.
17754         * tests/test-atanl.c: New file.
17755
17756         Tests for module 'asinl'.
17757         * modules/asinl-tests: New file.
17758         * tests/test-asinl.c: New file.
17759
17760         Tests for module 'acosl'.
17761         * modules/acosl-tests: New file.
17762         * tests/test-acosl.c: New file.
17763
17764         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17765         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17766         tanl): Use the standard gnulib idiom.
17767         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17768         * lib/sinl.c: Likewise.
17769         * lib/tanl.c: Don't include trigl.c.
17770         (kernel_tanl): Make static.
17771         * lib/sincosl.c: Include trigl.h first.
17772         * lib/trigl.c: Likewise.
17773         * m4/acosl.m4: New file.
17774         * m4/asinl.m4: New file.
17775         * m4/atanl.m4: New file.
17776         * m4/cosl.m4: New file.
17777         * m4/expl.m4: New file.
17778         * m4/logl.m4: New file.
17779         * m4/sinl.m4: New file.
17780         * m4/sqrtl.m4: New file.
17781         * m4/tanl.m4: New file.
17782         * m4/mathl.m4: Remove file.
17783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17784         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17785         Don't initialize GNULIB_MATHL.
17786         * modules/acosl: New file.
17787         * modules/asinl: New file.
17788         * modules/atanl: New file.
17789         * modules/cosl: New file.
17790         * modules/expl: New file.
17791         * modules/logl: New file.
17792         * modules/sinl: New file.
17793         * modules/sqrtl: New file.
17794         * modules/tanl: New file.
17795         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17796         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17797         substitute GNULIB_MATHL.
17798         * modules/mathl: Rewritten.
17799         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17800         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17801         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17802         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17803         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17804         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17805         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17806         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17807         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17808
17809 2010-01-18  Bruno Haible  <bruno@clisp.org>
17810
17811         sqrt: Make gl_FUNC_SQRT requirable.
17812         * m4/sqrt.m4: New file.
17813         * modules/sqrt (Files): Add it.
17814         (configure.ac): Invoke gl_FUNC_SQRT.
17815
17816 2010-01-18  Bruno Haible  <bruno@clisp.org>
17817
17818         New modules for common <math.h> functions.
17819         * m4/mathfunc.m4: New file.
17820         * modules/acos: New file.
17821         * modules/asin: New file.
17822         * modules/atan: New file.
17823         * modules/atan2: New file.
17824         * modules/cbrt: New file.
17825         * modules/copysign: New file.
17826         * modules/cos: New file.
17827         * modules/cosh: New file.
17828         * modules/erf: New file.
17829         * modules/erfc: New file.
17830         * modules/exp: New file.
17831         * modules/fabs: New file.
17832         * modules/fmod: New file.
17833         * modules/hypot: New file.
17834         * modules/j0: New file.
17835         * modules/j1: New file.
17836         * modules/jn: New file.
17837         * modules/ldexp: New file.
17838         * modules/lgamma: New file.
17839         * modules/log: New file.
17840         * modules/log10: New file.
17841         * modules/log1p: New file.
17842         * modules/logb: New file.
17843         * modules/modf: New file.
17844         * modules/nextafter: New file.
17845         * modules/pow: New file.
17846         * modules/remainder: New file.
17847         * modules/rint: New file.
17848         * modules/sin: New file.
17849         * modules/sinh: New file.
17850         * modules/sqrt: New file.
17851         * modules/tan: New file.
17852         * modules/tanh: New file.
17853         * modules/y0: New file.
17854         * modules/y1: New file.
17855         * modules/yn: New file.
17856         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17857         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17858         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17859         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17860         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17861         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17862         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17863         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17864         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17865         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17866         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17867         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17868         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17869         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17870         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17871         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17872         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17873         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17874         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17875         * doc/posix-functions/log.texi: Mention the 'log' module.
17876         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17877         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17878         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17879         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17880         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17881         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17882         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17883         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17884         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17885         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17886         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17887         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17888         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17889         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17890         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17891         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17892
17893 2010-01-18  Jim Meyering  <meyering@redhat.com>
17894
17895         ignore-value: relax license to LGPLv2+
17896         * modules/ignore-value (License): Relax to LGPLv2+.
17897
17898         getdate: don't leak when TZ contains two or more '"'s
17899         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17900         double quote in TZ after the first one.
17901
17902         readtokens: do not leak internal token_lengths buffer
17903         * lib/readtokens.c (readtokens): Free the local, lengths,
17904         when the supplied "token_lengths" parameter is NULL.
17905
17906 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17907
17908         Fix a couple of missing LIBTHREAD link failures on AIX.
17909         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17910         $(LIBTHREAD).
17911         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17912
17913         Link test-poll against INET_PTON_LIB.
17914         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17915         for inet_pton on Solaris 10.
17916
17917 2010-01-17  Bruno Haible  <bruno@clisp.org>
17918
17919         unistdio/*-sprintf: Fix typo in module description.
17920         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17921         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17922         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17923         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17924         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17925         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17926         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17927         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17928
17929 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17930
17931         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17932         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17933         variables in shell case patterns, for AIX and HP-UX ksh.
17934
17935         Split large sed scripts, for HP-UX sed.
17936         * modules/stdio: Split sed scripts around 50 sed commands,
17937         to avoid HP-UX limit of 99 commands, in the near future.
17938         * modules/string: Likewise.
17939         * modules/unistd: Likewise.
17940
17941         gnulib-tool: avoid writing in the current directory.
17942         * gnulib-tool (func_emit_lib_Makefile_am)
17943         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17944         not in the current directory, so concurrent gnulib-tool
17945         instances do not interfere.
17946
17947 2010-01-16  Jim Meyering  <meyering@redhat.com>
17948
17949         doc: update users.txt
17950         * users.txt: Add grep.
17951         (diffutils, gzip): Update URLs.
17952
17953 2010-01-12  Bruno Haible  <bruno@clisp.org>
17954
17955         posix_spawn: Avoid test failure on Cygwin.
17956         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17957         characters.
17958         Reported by Simon Josefsson.
17959
17960 2010-01-12  Bruno Haible  <bruno@clisp.org>
17961
17962         * tests/test-cond.c (main): When skipping the test, show the reason.
17963
17964 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17965
17966         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17967
17968 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17969
17970         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17971         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17972
17973 2010-01-12  Eric Blake  <ebb9@byu.net>
17974
17975         build: guarantee AS_VAR_IF
17976         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17977         (gl_AS_VAR_IF): Move...
17978         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17979         Reported by Simon Josefsson.
17980
17981 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17982
17983         * lib/stdio.in.h: Fix typo.
17984
17985 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17986
17987         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17988         libgpg-error.
17989
17990 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17991
17992         * tests/test-xalloc-die.sh: Use $EXEEXT.
17993
17994 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17995             Bruno Haible  <bruno@clisp.org>
17996
17997         getlogin, getlogin_r: Avoid test failure.
17998         * tests/test-getlogin.c: Include <stdio.h>.
17999         (main): Skip the test when the function fails because stdin is not a
18000         tty.
18001         * tests/test-getlogin_r.c: Include <stdio.h>.
18002         (main): Skip the test when the function fails because stdin is not a
18003         tty.
18004
18005 2010-01-11  Eric Blake  <ebb9@byu.net>
18006
18007         tests: avoid more large file warnings
18008         * tests/test-fflush.c: Avoid warning about ftell use.
18009         * tests/test-fseek.c: Avoid warning about fseek use.
18010
18011 2010-01-10  Bruno Haible  <bruno@clisp.org>
18012
18013         nproc: Work better on Linux when /proc and /sys are not mounted.
18014         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
18015         as lower bound when, on glibc/Linux systems,
18016         sysconf (_SC_NPROCESSORS_CONF) returns 1.
18017         Suggested by Pádraig Brady <P@draigbrady.com>.
18018         Reported by Dmitry V. Levin <ldv@altlinux.org>.
18019
18020         nproc: Refactor.
18021         * lib/nproc.c (num_processors_via_affinity_mask): New function,
18022         extracted from num_processors.
18023         (num_processors): Call it.
18024
18025 2010-01-11  Jim Meyering  <meyering@redhat.com>
18026
18027         utimecmp: avoid new warning from upcoming gcc-4.5.0
18028         * lib/utimecmp.c (BILLION): Define using #define rather than an
18029         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
18030
18031 2010-01-11  Eric Blake  <ebb9@byu.net>
18032
18033         math: add portability warnings for classification macros
18034         * modules/math (Depends-on): Add warn-on-use.
18035         (Makefile.am): Provide new substitutions.
18036         * m4/math_h.m4 (gl_MATH_H): Require inline.
18037         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
18038         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
18039         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
18040         implement warnings.
18041
18042         unistd: warn on use of environ without module
18043         * modules/unistd (Depends-on): Add warn-on-use.
18044         (Makefile.am): Provide new substitutions.
18045         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
18046         * lib/unistd.in.h (environ): Wrap with a warning helper function.
18047
18048         stdio: warn on suspicious uses
18049         * modules/stdio (Depends-on): Add warn-on-use.
18050         (Makefile.am): Provide new substitutions.
18051         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
18052         fseeko.
18053         * lib/stdio.in.h (gets): Always warn on use.
18054         (fseek, ftell): Adjust when warnings are issued, and honor
18055         _GL_NO_LARGE_FILES as a way to silence the warning.
18056         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18057         any warning about large file offsets.
18058         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18059         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18060         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18061         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18062         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18063         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18064         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18065         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18066
18067         warn-on-use: new module
18068         * modules/warn-on-use: New file.
18069         * build-aux/warn-on-use.h: Likewise.
18070         * m4/warn-on-use.m4: Likewise.
18071         * MODULES.html.sh (Support for building): Mention it.
18072
18073 2010-01-10  Bruno Haible  <bruno@clisp.org>
18074
18075         Tests for module 'unistr/u32-strdup'.
18076         * modules/unistr/u32-strdup-tests: New file.
18077         * tests/unistr/test-u32-strdup.c: New file.
18078
18079         Tests for module 'unistr/u16-strdup'.
18080         * modules/unistr/u16-strdup-tests: New file.
18081         * tests/unistr/test-u16-strdup.c: New file.
18082
18083         Tests for module 'unistr/u8-strdup'.
18084         * modules/unistr/u8-strdup-tests: New file.
18085         * tests/unistr/test-u8-strdup.c: New file.
18086         * tests/unistr/test-strdup.h: New file.
18087
18088         Tests for module 'unistr/u32-strncmp'.
18089         * modules/unistr/u32-strncmp-tests: New file.
18090         * tests/unistr/test-u32-strncmp.c: New file.
18091
18092         Tests for module 'unistr/u16-strncmp'.
18093         * modules/unistr/u16-strncmp-tests: New file.
18094         * tests/unistr/test-u16-strncmp.c: New file.
18095
18096         Tests for module 'unistr/u8-strncmp'.
18097         * modules/unistr/u8-strncmp-tests: New file.
18098         * tests/unistr/test-u8-strncmp.c: New file.
18099         * tests/unistr/test-strncmp.h: New file.
18100
18101         Tests for module 'unistr/u32-strcoll'.
18102         * modules/unistr/u32-strcoll-tests: New file.
18103         * tests/unistr/test-u32-strcoll.c: New file.
18104
18105         Tests for module 'unistr/u16-strcoll'.
18106         * modules/unistr/u16-strcoll-tests: New file.
18107         * tests/unistr/test-u16-strcoll.c: New file.
18108
18109         Tests for module 'unistr/u8-strcoll'.
18110         * modules/unistr/u8-strcoll-tests: New file.
18111         * tests/unistr/test-u8-strcoll.c: New file.
18112
18113         Tests for module 'unistr/u32-strcmp'.
18114         * modules/unistr/u32-strcmp-tests: New file.
18115         * tests/unistr/test-u32-strcmp.c: New file.
18116         * tests/unistr/test-u32-strcmp.h: New file.
18117
18118         Tests for module 'unistr/u16-strcmp'.
18119         * modules/unistr/u16-strcmp-tests: New file.
18120         * tests/unistr/test-u16-strcmp.c: New file.
18121         * tests/unistr/test-u16-strcmp.h: New file.
18122
18123         Tests for module 'unistr/u8-strcmp'.
18124         * modules/unistr/u8-strcmp-tests: New file.
18125         * tests/unistr/test-u8-strcmp.c: New file.
18126         * tests/unistr/test-u8-strcmp.h: New file.
18127         * tests/unistr/test-strcmp.h: New file.
18128
18129         Tests for module 'unistr/u32-strncat'.
18130         * modules/unistr/u32-strncat-tests: New file.
18131         * tests/unistr/test-u32-strncat.c: New file.
18132
18133         Tests for module 'unistr/u16-strncat'.
18134         * modules/unistr/u16-strncat-tests: New file.
18135         * tests/unistr/test-u16-strncat.c: New file.
18136
18137         Tests for module 'unistr/u8-strncat'.
18138         * modules/unistr/u8-strncat-tests: New file.
18139         * tests/unistr/test-u8-strncat.c: New file.
18140         * tests/unistr/test-strncat.h: New file.
18141
18142         Tests for module 'unistr/u32-strcat'.
18143         * modules/unistr/u32-strcat-tests: New file.
18144         * tests/unistr/test-u32-strcat.c: New file.
18145
18146         Tests for module 'unistr/u16-strcat'.
18147         * modules/unistr/u16-strcat-tests: New file.
18148         * tests/unistr/test-u16-strcat.c: New file.
18149
18150         Tests for module 'unistr/u8-strcat'.
18151         * modules/unistr/u8-strcat-tests: New file.
18152         * tests/unistr/test-u8-strcat.c: New file.
18153         * tests/unistr/test-strcat.h: New file.
18154
18155         Tests for module 'unistr/u32-stpncpy'.
18156         * modules/unistr/u32-stpncpy-tests: New file.
18157         * tests/unistr/test-u32-stpncpy.c: New file.
18158
18159         Tests for module 'unistr/u16-stpncpy'.
18160         * modules/unistr/u16-stpncpy-tests: New file.
18161         * tests/unistr/test-u16-stpncpy.c: New file.
18162
18163         Tests for module 'unistr/u8-stpncpy'.
18164         * modules/unistr/u8-stpncpy-tests: New file.
18165         * tests/unistr/test-u8-stpncpy.c: New file.
18166         * tests/unistr/test-stpncpy.h: New file.
18167
18168         Tests for module 'unistr/u32-strncpy'.
18169         * modules/unistr/u32-strncpy-tests: New file.
18170         * tests/unistr/test-u32-strncpy.c: New file.
18171
18172         Tests for module 'unistr/u16-strncpy'.
18173         * modules/unistr/u16-strncpy-tests: New file.
18174         * tests/unistr/test-u16-strncpy.c: New file.
18175
18176         Tests for module 'unistr/u8-strncpy'.
18177         * modules/unistr/u8-strncpy-tests: New file.
18178         * tests/unistr/test-u8-strncpy.c: New file.
18179         * tests/unistr/test-strncpy.h: New file.
18180
18181         Tests for module 'unistr/u32-stpcpy'.
18182         * modules/unistr/u32-stpcpy-tests: New file.
18183         * tests/unistr/test-u32-stpcpy.c: New file.
18184
18185         Tests for module 'unistr/u16-stpcpy'.
18186         * modules/unistr/u16-stpcpy-tests: New file.
18187         * tests/unistr/test-u16-stpcpy.c: New file.
18188
18189         Tests for module 'unistr/u8-stpcpy'.
18190         * modules/unistr/u8-stpcpy-tests: New file.
18191         * tests/unistr/test-u8-stpcpy.c: New file.
18192         * tests/unistr/test-stpcpy.h: New file.
18193
18194         Tests for module 'unistr/u32-strcpy'.
18195         * modules/unistr/u32-strcpy-tests: New file.
18196         * tests/unistr/test-u32-strcpy.c: New file.
18197
18198         Tests for module 'unistr/u16-strcpy'.
18199         * modules/unistr/u16-strcpy-tests: New file.
18200         * tests/unistr/test-u16-strcpy.c: New file.
18201
18202         Tests for module 'unistr/u8-strcpy'.
18203         * modules/unistr/u8-strcpy-tests: New file.
18204         * tests/unistr/test-u8-strcpy.c: New file.
18205         * tests/unistr/test-strcpy.h: New file.
18206
18207         Tests for module 'unistr/u32-strnlen'.
18208         * modules/unistr/u32-strnlen-tests: New file.
18209         * tests/unistr/test-u32-strnlen.c: New file.
18210
18211         Tests for module 'unistr/u16-strnlen'.
18212         * modules/unistr/u16-strnlen-tests: New file.
18213         * tests/unistr/test-u16-strnlen.c: New file.
18214
18215         Tests for module 'unistr/u8-strnlen'.
18216         * modules/unistr/u8-strnlen-tests: New file.
18217         * tests/unistr/test-u8-strnlen.c: New file.
18218         * tests/unistr/test-strnlen.h: New file.
18219
18220         Tests for module 'unistr/u32-strlen'.
18221         * modules/unistr/u32-strlen-tests: New file.
18222         * tests/unistr/test-u32-strlen.c: New file.
18223
18224         Tests for module 'unistr/u16-strlen'.
18225         * modules/unistr/u16-strlen-tests: New file.
18226         * tests/unistr/test-u16-strlen.c: New file.
18227
18228         Tests for module 'unistr/u8-strlen'.
18229         * modules/unistr/u8-strlen-tests: New file.
18230         * tests/unistr/test-u8-strlen.c: New file.
18231
18232         Tests for module 'unistr/u32-prev'.
18233         * modules/unistr/u32-prev-tests: New file.
18234         * tests/unistr/test-u32-prev.c: New file.
18235
18236         Tests for module 'unistr/u16-prev'.
18237         * modules/unistr/u16-prev-tests: New file.
18238         * tests/unistr/test-u16-prev.c: New file.
18239
18240         Tests for module 'unistr/u8-prev'.
18241         * modules/unistr/u8-prev-tests: New file.
18242         * tests/unistr/test-u8-prev.c: New file.
18243
18244         Tests for module 'unistr/u32-next'.
18245         * modules/unistr/u32-next-tests: New file.
18246         * tests/unistr/test-u32-next.c: New file.
18247
18248         Tests for module 'unistr/u16-next'.
18249         * modules/unistr/u16-next-tests: New file.
18250         * tests/unistr/test-u16-next.c: New file.
18251
18252         Tests for module 'unistr/u8-next'.
18253         * modules/unistr/u8-next-tests: New file.
18254         * tests/unistr/test-u8-next.c: New file.
18255
18256         Tests for module 'unistr/u32-strmbtouc'.
18257         * modules/unistr/u32-strmbtouc-tests: New file.
18258         * tests/unistr/test-u32-strmbtouc.c: New file.
18259
18260         Tests for module 'unistr/u16-strmbtouc'.
18261         * modules/unistr/u16-strmbtouc-tests: New file.
18262         * tests/unistr/test-u16-strmbtouc.c: New file.
18263
18264         Tests for module 'unistr/u8-strmbtouc'.
18265         * modules/unistr/u8-strmbtouc-tests: New file.
18266         * tests/unistr/test-u8-strmbtouc.c: New file.
18267
18268         Tests for module 'unistr/u32-strmblen'.
18269         * modules/unistr/u32-strmblen-tests: New file.
18270         * tests/unistr/test-u32-strmblen.c: New file.
18271
18272         Tests for module 'unistr/u16-strmblen'.
18273         * modules/unistr/u16-strmblen-tests: New file.
18274         * tests/unistr/test-u16-strmblen.c: New file.
18275
18276         Tests for module 'unistr/u8-strmblen'.
18277         * modules/unistr/u8-strmblen-tests: New file.
18278         * tests/unistr/test-u8-strmblen.c: New file.
18279
18280         Tests for module 'unistr/u32-cpy-alloc'.
18281         * modules/unistr/u32-cpy-alloc-tests: New file.
18282         * tests/unistr/test-u32-cpy-alloc.c: New file.
18283
18284         Tests for module 'unistr/u16-cpy-alloc'.
18285         * modules/unistr/u16-cpy-alloc-tests: New file.
18286         * tests/unistr/test-u16-cpy-alloc.c: New file.
18287
18288         Tests for module 'unistr/u8-cpy-alloc'.
18289         * modules/unistr/u8-cpy-alloc-tests: New file.
18290         * tests/unistr/test-u8-cpy-alloc.c: New file.
18291         * tests/unistr/test-cpy-alloc.h: New file.
18292
18293         Tests for module 'unistr/u32-mbsnlen'.
18294         * modules/unistr/u32-mbsnlen-tests: New file.
18295         * tests/unistr/test-u32-mbsnlen.c: New file.
18296
18297         Tests for module 'unistr/u16-mbsnlen'.
18298         * modules/unistr/u16-mbsnlen-tests: New file.
18299         * tests/unistr/test-u16-mbsnlen.c: New file.
18300
18301         Tests for module 'unistr/u8-mbsnlen'.
18302         * modules/unistr/u8-mbsnlen-tests: New file.
18303         * tests/unistr/test-u8-mbsnlen.c: New file.
18304
18305         Tests for module 'unistr/u32-chr'.
18306         * modules/unistr/u32-chr-tests: New file.
18307         * tests/unistr/test-u32-chr.c: New file.
18308
18309         Tests for module 'unistr/u16-chr'.
18310         * modules/unistr/u16-chr-tests: New file.
18311         * tests/unistr/test-u16-chr.c: New file.
18312
18313         Tests for module 'unistr/u8-chr'.
18314         * modules/unistr/u8-chr-tests: New file.
18315         * tests/unistr/test-u8-chr.c: New file.
18316         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18317
18318         Tests for module 'unistr/u32-cmp2'.
18319         * modules/unistr/u32-cmp2-tests: New file.
18320         * tests/unistr/test-u32-cmp2.c: New file.
18321
18322         Tests for module 'unistr/u16-cmp2'.
18323         * modules/unistr/u16-cmp2-tests: New file.
18324         * tests/unistr/test-u16-cmp2.c: New file.
18325
18326         Tests for module 'unistr/u8-cmp2'.
18327         * modules/unistr/u8-cmp2-tests: New file.
18328         * tests/unistr/test-u8-cmp2.c: New file.
18329         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18330
18331         Tests for module 'unistr/u32-cmp'.
18332         * modules/unistr/u32-cmp-tests: New file.
18333         * tests/unistr/test-u32-cmp.c: New file.
18334
18335         Tests for module 'unistr/u16-cmp'.
18336         * modules/unistr/u16-cmp-tests: New file.
18337         * tests/unistr/test-u16-cmp.c: New file.
18338
18339         Tests for module 'unistr/u8-cmp'.
18340         * modules/unistr/u8-cmp-tests: New file.
18341         * tests/unistr/test-u8-cmp.c: New file.
18342         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18343
18344         Tests for module 'unistr/u32-set'.
18345         * modules/unistr/u32-set-tests: New file.
18346         * tests/unistr/test-u32-set.c: New file.
18347
18348         Tests for module 'unistr/u16-set'.
18349         * modules/unistr/u16-set-tests: New file.
18350         * tests/unistr/test-u16-set.c: New file.
18351
18352         Tests for module 'unistr/u8-set'.
18353         * modules/unistr/u8-set-tests: New file.
18354         * tests/unistr/test-u8-set.c: New file.
18355         * tests/unistr/test-set.h: New file.
18356
18357         Tests for module 'unistr/u32-move'.
18358         * modules/unistr/u32-move-tests: New file.
18359         * tests/unistr/test-u32-move.c: New file.
18360
18361         Tests for module 'unistr/u16-move'.
18362         * modules/unistr/u16-move-tests: New file.
18363         * tests/unistr/test-u16-move.c: New file.
18364
18365         Tests for module 'unistr/u8-move'.
18366         * modules/unistr/u8-move-tests: New file.
18367         * tests/unistr/test-u8-move.c: New file.
18368         * tests/unistr/test-move.h: New file.
18369
18370         Tests for module 'unistr/u32-cpy'.
18371         * modules/unistr/u32-cpy-tests: New file.
18372         * tests/unistr/test-u32-cpy.c: New file.
18373
18374         Tests for module 'unistr/u16-cpy'.
18375         * modules/unistr/u16-cpy-tests: New file.
18376         * tests/unistr/test-u16-cpy.c: New file.
18377
18378         Tests for module 'unistr/u8-cpy'.
18379         * modules/unistr/u8-cpy-tests: New file.
18380         * tests/unistr/test-u8-cpy.c: New file.
18381         * tests/unistr/test-cpy.h: New file.
18382
18383 2010-01-09  Bruno Haible  <bruno@clisp.org>
18384
18385         Tests for module 'unistr/u32-uctomb'.
18386         * modules/unistr/u32-uctomb-tests: New file.
18387         * tests/unistr/test-u32-uctomb.c: New file.
18388
18389         Tests for module 'unistr/u16-uctomb'.
18390         * modules/unistr/u16-uctomb-tests: New file.
18391         * tests/unistr/test-u16-uctomb.c: New file.
18392
18393         Tests for module 'unistr/u8-uctomb'.
18394         * modules/unistr/u8-uctomb-tests: New file.
18395         * tests/unistr/test-u8-uctomb.c: New file.
18396
18397         Tests for module 'unistr/u32-mbtoucr'.
18398         * modules/unistr/u32-mbtoucr-tests: New file.
18399         * tests/unistr/test-u32-mbtoucr.c: New file.
18400
18401         Tests for module 'unistr/u16-mbtoucr'.
18402         * modules/unistr/u16-mbtoucr-tests: New file.
18403         * tests/unistr/test-u16-mbtoucr.c: New file.
18404
18405         Tests for module 'unistr/u8-mbtoucr'.
18406         * modules/unistr/u8-mbtoucr-tests: New file.
18407         * tests/unistr/test-u8-mbtoucr.c: New file.
18408
18409         Tests for module 'unistr/u32-mbtouc'.
18410         * modules/unistr/u32-mbtouc-tests: New file.
18411         * tests/unistr/test-u32-mbtouc.c: New file.
18412
18413         Tests for module 'unistr/u16-mbtouc'.
18414         * modules/unistr/u16-mbtouc-tests: New file.
18415         * tests/unistr/test-u16-mbtouc.c: New file.
18416
18417         Tests for module 'unistr/u8-mbtouc'.
18418         * modules/unistr/u8-mbtouc-tests: New file.
18419         * tests/unistr/test-u8-mbtouc.c: New file.
18420
18421         Tests for module 'unistr/u32-mbtouc-unsafe'.
18422         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18423         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18424         * tests/unistr/test-u32-mbtouc.h: New file.
18425
18426         Tests for module 'unistr/u16-mbtouc-unsafe'.
18427         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18428         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18429         * tests/unistr/test-u16-mbtouc.h: New file.
18430
18431         Tests for module 'unistr/u8-mbtouc-unsafe'.
18432         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18433         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18434         * tests/unistr/test-u8-mbtouc.h: New file.
18435
18436         Tests for module 'unistr/u32-mblen'.
18437         * modules/unistr/u32-mblen-tests: New file.
18438         * tests/unistr/test-u32-mblen.c: New file.
18439
18440         Tests for module 'unistr/u16-mblen'.
18441         * modules/unistr/u16-mblen-tests: New file.
18442         * tests/unistr/test-u16-mblen.c: New file.
18443
18444         Tests for module 'unistr/u8-mblen'.
18445         * modules/unistr/u8-mblen-tests: New file.
18446         * tests/unistr/test-u8-mblen.c: New file.
18447
18448         Tests for module 'unistr/u32-to-u16'.
18449         * modules/unistr/u32-to-u16-tests: New file.
18450         * tests/unistr/test-u32-to-u16.c: New file.
18451
18452         Tests for module 'unistr/u32-to-u8'.
18453         * modules/unistr/u32-to-u8-tests: New file.
18454         * tests/unistr/test-u32-to-u8.c: New file.
18455
18456         Tests for module 'unistr/u16-to-u32'.
18457         * modules/unistr/u16-to-u32-tests: New file.
18458         * tests/unistr/test-u16-to-u32.c: New file.
18459
18460         Tests for module 'unistr/u16-to-u8'.
18461         * modules/unistr/u16-to-u8-tests: New file.
18462         * tests/unistr/test-u16-to-u8.c: New file.
18463
18464         Tests for module 'unistr/u8-to-u32'.
18465         * modules/unistr/u8-to-u32-tests: New file.
18466         * tests/unistr/test-u8-to-u32.c: New file.
18467
18468         Tests for module 'unistr/u8-to-u16'.
18469         * modules/unistr/u8-to-u16-tests: New file.
18470         * tests/unistr/test-u8-to-u16.c: New file.
18471
18472         Tests for module 'unistr/u32-check'.
18473         * modules/unistr/u32-check-tests: New file.
18474         * tests/unistr/test-u32-check.c: New file.
18475
18476         Tests for module 'unistr/u16-check'.
18477         * modules/unistr/u16-check-tests: New file.
18478         * tests/unistr/test-u16-check.c: New file.
18479
18480         Tests for module 'unistr/u8-check'.
18481         * modules/unistr/u8-check-tests: New file.
18482         * tests/unistr/test-u8-check.c: New file.
18483
18484         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18485         (category_equals): New function.
18486         (main): Add more tests.
18487         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18488
18489         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18490
18491 2010-01-10  Bruno Haible  <bruno@clisp.org>
18492
18493         unistr/u*-strcoll: Try harder to distinguish different strings.
18494         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18495         compare s1 and s2 to see if they are different.
18496
18497 2010-01-10  Bruno Haible  <bruno@clisp.org>
18498
18499         unistr/u*-stpncpy: Fix the return value.
18500         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18501         description of the return value consistent with stpncpy in glibc.
18502         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18503         written non-NUL unit.
18504
18505 2010-01-10  Bruno Haible  <bruno@clisp.org>
18506
18507         unistr/u*-next: Add missing dependencies.
18508         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18509         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18510         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18511
18512 2010-01-10  Bruno Haible  <bruno@clisp.org>
18513
18514         unistr/u8-mbsnlen: Fix return value for incomplete character.
18515         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18516         u8_mblen.
18517         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18518         Remove unistr/u8-mblen.
18519         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18520         u16_mblen.
18521         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18522         Remove unistr/u16-mblen.
18523
18524 2010-01-10  Bruno Haible  <bruno@clisp.org>
18525
18526         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18527         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18528         Reported by Brian Gough <bjg@gnu.org> and
18529         Chris Clayton <chris2553@googlemail.com> via
18530         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18531
18532 2010-01-09  Bruno Haible  <bruno@clisp.org>
18533
18534         unistr/u16-to-u32: Reject invalid input.
18535         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18536         u16_mbtouc.
18537         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18538         Remove unistr/u16-mbtouc.
18539
18540         unistr/u16-to-u8: Reject invalid input.
18541         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18542         u16_mbtouc.
18543         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18544         Remove unistr/u16-mbtouc.
18545
18546         unistr/u8-to-u32: Reject invalid input.
18547         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18548         u8_mbtouc.
18549         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18550         Remove unistr/u8-mbtouc.
18551
18552         unistr/u8-to-u16: Reject invalid input.
18553         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18554         u8_mbtouc.
18555         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18556         Remove unistr/u8-mbtouc.
18557
18558 2010-01-09  Bruno Haible  <bruno@clisp.org>
18559
18560         Tests for module 'getlogin'.
18561         * modules/getlogin-tests: New file.
18562         * tests/test-getlogin.c: New file.
18563
18564         New module 'getlogin'.
18565         * lib/unistd.in.h (getlogin): New declaration.
18566         * lib/getlogin.c: New file.
18567         * m4/getlogin.m4: New file.
18568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18569         HAVE_GETLOGIN.
18570         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18571         HAVE_GETLOGIN.
18572         * modules/getlogin: New file.
18573         * doc/posix-functions/getlogin.texi: Mention the new module.
18574         Reported by John W. Eaton <jwe@gnu.org>.
18575
18576 2010-01-09  Bruno Haible  <bruno@clisp.org>
18577
18578         getlogin_r: Support for native Windows.
18579         * lib/getlogin_r.c: Include <windows.h>
18580         (getlogin_r): Implement for native Windows.
18581         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18582         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18583         via John W. Eaton <jwe@gnu.org>.
18584
18585 2010-01-09  Bruno Haible  <bruno@clisp.org>
18586
18587         getlogin_r: Small fixes.
18588         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18589         succeeds.
18590         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18591         before testing whether getlogin_r is declared. No need to set
18592         HAVE_DECL_GETLOGIN_R to 1.
18593         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18594
18595 2010-01-09  Bruno Haible  <bruno@clisp.org>
18596
18597         * lib/unistd.in.h (getlogin_r): Add comment.
18598
18599 2010-01-09  Bruno Haible  <bruno@clisp.org>
18600
18601         Tests for module 'getlogin_r'.
18602         * modules/getlogin_r-tests: New file.
18603         * tests/test-getlogin_r.c: New file.
18604
18605 2010-01-09  Jim Meyering  <meyering@redhat.com>
18606
18607         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18608         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18609         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18610
18611 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18612
18613         * lib/dup2.c (rpl_dup2): Improve comment.
18614
18615 2010-01-08  Eric Blake  <ebb9@byu.net>
18616
18617         maint.mk: allow packages to add makefile @@ exceptions
18618         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18619         (sc_makefile_check): Rename...
18620         (sc_makefile_at_at_check): ...to this, and use hook.
18621
18622         dup2: work around mingw bug
18623         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18624         Reported by Simon Josefsson.
18625
18626 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18627
18628         glob: Fix C++ compilation.
18629         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18630         C++.
18631
18632 2010-01-07  Bruno Haible  <bruno@clisp.org>
18633
18634         Fix indentation of wctype.in.h, broken since 2007-01-06.
18635         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18636
18637 2010-01-07  Bruno Haible  <bruno@clisp.org>
18638
18639         mbslen: Avoid collision with system function.
18640         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18641         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18642         * m4/mbslen.m4: New file.
18643         * modules/mbslen (Files): Add it.
18644         (configure.ac): Invoke gl_MBSLEN.
18645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18646         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18647         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18648         via Ian Beckwith <ianb@erislabs.net>.
18649
18650 2010-01-07  Bruno Haible  <bruno@clisp.org>
18651
18652         dirent: Document the last fix.
18653         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18654
18655 2010-01-07  Bruno Haible  <bruno@clisp.org>
18656
18657         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18658         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18659         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18660         va_list are defined.
18661         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18662         Reported by Eric Blake.
18663
18664 2010-01-07  Bruno Haible  <bruno@clisp.org>
18665
18666         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18667         * modules/xlist (Depends-on): Add 'list',
18668         * modules/xoset (Depends-on): Add 'oset'.
18669         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18670
18671 2010-01-07  Bruno Haible  <bruno@clisp.org>
18672
18673         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18674         * doc/posix-functions/strncasecmp.texi: Likewise.
18675
18676 2010-01-07  Bruno Haible  <bruno@clisp.org>
18677
18678         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18679
18680 2010-01-07  John W. Eaton  <jwe@octave.org>
18681
18682         wctype: allow C++ use
18683         * lib/wctype.in.h: Add extern "C" block for C++.
18684
18685 2010-01-06  Eric Blake  <ebb9@byu.net>
18686
18687         maint.mk: detect incorrect GFDL usage
18688         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18689
18690 2010-01-06  Jim Meyering  <meyering@redhat.com>
18691         and Eric Blake  <ebb9@byu.net>
18692
18693         maint.mk: ignore multi-line copyright in NEWS
18694         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18695
18696 2010-01-06  Eric Blake  <ebb9@byu.net>
18697
18698         select: add missing dependency
18699         * modules/select-tests (Depends-on): Move sockets dependency...
18700         * modules/select (Depends-on): ...here.
18701         Reported by Ian Beckwith.
18702
18703         doc: regenerate INSTALL
18704         * doc/INSTALL: Reflect recent autoconf update.
18705         * doc/INSTALL.ISO: Likewise.
18706         * doc/INSTALL.UTF-8: Likewise.
18707
18708         pread: fix compilation on glibc
18709         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18710         Reported by Ralf Wildenhues.
18711
18712         dirent: fix test failure
18713         * lib/dirent.in.h (includes): Guarantee ino_t.
18714         Reported by Ralf Wildenhues.
18715
18716 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18717
18718         linkat, renameat: avoid bad free
18719         * lib/at-func2.c (at_func2): Fix typo.
18720         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18721
18722 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18723
18724         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18725         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18726         to avoid failure of symlink test later.
18727
18728 2010-01-06  Eric Blake  <ebb9@byu.net>
18729
18730         stdio, unistd: guarantee ssize_t
18731         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18732         2008 are exposed when needed.
18733         * lib/stdio.in.h (includes): Likewise.
18734         Reported by Ralf Wildenhues.
18735
18736 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18737
18738         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18739         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18740         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18741
18742 2010-01-06  Jim Meyering  <meyering@redhat.com>
18743
18744         readtokens: this module *does* require xalloc.h
18745         It uses only functions that were omitted by the old syntax-check rule.
18746         * lib/readtokens.c: Include "xalloc.h" once again.
18747         * modules/readtokens (Depends-on): Add xalloc.
18748         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18749
18750 2010-01-05  Eric Blake  <ebb9@byu.net>
18751
18752         maint: support 'make announcement' from a VPATH build
18753         * top/maint.mk (announcement): Look for correct NEWS file.
18754
18755 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18756
18757         utimens (fdutimens): ignore a negative FD, per contract
18758         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18759         when we have a valid file descriptor.  Otherwise, using a brand
18760         new glibc (with just-patched futimens that now fails with EBADF)
18761         would cause this function to fail with ENOSYS.
18762         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18763         See also http://bugzilla.redhat.com/552320.
18764
18765 2010-01-05  Eric Blake  <ebb9@byu.net>
18766
18767         strcase: document what it provides
18768         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18769         gnulib module.
18770         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18771         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18772
18773 2010-01-05  Jim Meyering  <meyering@redhat.com>
18774
18775         maint: remove useless inclusions of "xalloc.h"
18776         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18777         * lib/readtokens.c: Likewise.
18778         * lib/same.c: Likewise.
18779         * modules/getloadavg (Depends-on): Remove xalloc.
18780         * modules/readtokens: Likewise.
18781         * modules/same: Likewise.
18782
18783         maint.mk: include 4 more function names in alloca.h-checking regexp
18784         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18785         regexp.  Before, we would give a false-positive (saying alloca.h
18786         is included unnecessarily) when the only uses involved omitted symbols.
18787
18788         xalloc.h: use consistent formatting
18789         * lib/xalloc.h: Move declarations to start in the first column.
18790
18791 2010-01-05  Eric Blake  <ebb9@byu.net>
18792
18793         mkdir: avoid xalloc
18794         * lib/mkdir.c (includes): Drop unused header.
18795         Reported by John W. Eaton.
18796
18797 2010-01-04  Jim Meyering  <meyering@redhat.com>
18798
18799         nl_langinfo: avoid configure-time syntax error
18800         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18801         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18802         the empty string.  Don't let that provoke a shell syntax error.
18803
18804         regcomp, regexec, fnmatch: avoid array bounds read error
18805         * lib/regcomp.c (build_equiv_class): From glibc:
18806         Use only the low 24 bits of a findidx return value as an index
18807         into the weights array.  Patch by Ulrich Drepper:
18808         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18809         * lib/regexec.c (check_node_accept_bytes): Likewise.
18810         * lib/fnmatch_loop.c (FCT): Likewise.
18811
18812         regcomp: skip collseq lookup when there are no rules
18813         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18814         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18815
18816         regcomp: recognize ill-formed { } expressions
18817         * lib/regcomp.c (parse_dup_op): From glibc:
18818         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18819
18820         regcomp: fix typo in comment
18821         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18822         s/satisfy/satisfies/.
18823
18824         regcomp: sync from glibc: remove dead store
18825         * lib/regcomp.c (duplicate_node_closure): Remove useless
18826         search_duplicated_node call and dead store.
18827
18828         regcomp: sync from glibc; always use nl_langinfo
18829         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18830         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18831         * modules/regex (Depends-on): Add nl_langinfo.
18832
18833 2010-01-04  Eric Blake  <ebb9@byu.net>
18834
18835         fdopendir: fix configure test
18836         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18837
18838 2010-01-01  Bruno Haible  <bruno@clisp.org>
18839
18840         wchar: Remove unused configure check.
18841         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18842
18843 2010-01-01  Eric Blake  <ebb9@byu.net>
18844
18845         headers: make check of system header explicit
18846         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18847         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18848         ourselves.
18849         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18850         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18851         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18852         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18853         internals.
18854         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18855         missing.
18856         Suggested by Bruno Haible.
18857
18858 2010-01-01  Jim Meyering  <meyering@redhat.com>
18859
18860         ChangeLog: tweak to eliminate unnecessary copyright line
18861         * ChangeLog: Remove a copyright line that was mistakenly updated
18862         by today's update-copyright run.  Reported by Eric Blake.
18863
18864         test-update-copyright: don't let envvar setting cause test failure
18865         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18866
18867 2010-01-01  Bruno Haible  <bruno@clisp.org>
18868
18869         localename: Avoid gcc warning.
18870         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18871         function if it is not used.
18872
18873 2010-01-01  Jim Meyering  <meyering@redhat.com>
18874
18875         update nearly all FSF copyright year lists to include 2010
18876         Use the same procedure as for 2009, outlined in
18877         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18878
18879         version-etc: set COPYRIGHT_YEAR to 2010
18880         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18881
18882 2009-12-31  Eric Blake  <ebb9@byu.net>
18883
18884         doc: correct availability of cygwin 1.5.x getopt
18885         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18886         variables.
18887         * doc/posix-functions/opterr.texi (opterr): Likewise.
18888         * doc/posix-functions/optind.texi (optind): Likewise.
18889         * doc/posix-functions/optopt.texi (optopt): Likewise.
18890         * doc/posix-functions/tzname.texi (tzname): Likewise.
18891
18892         openat: update maintainer
18893         * modules/openat (Maintainer): Add myself.
18894
18895         utimens: avoid shadowing warning
18896         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18897         buffers into one, to avoid shadowing, as well as avoiding a
18898         redundant stat.
18899         Reported by Jim Meyering.
18900
18901         test-dup2: avoid compiler warning
18902         * tests/test-dup2.c (is_inheritable): Only define if used.
18903
18904 2010-01-01  Bruno Haible  <bruno@clisp.org>
18905
18906         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18907         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18908         defined, use wctomb instead of wcrtomb.
18909
18910 2010-01-01  Bruno Haible  <bruno@clisp.org>
18911
18912         iconv: Reject native Solaris iconv.
18913         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18914         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18915
18916 2009-12-31  Bruno Haible  <bruno@clisp.org>
18917
18918         * tests/test-signal.c (main): Remove test of 'SIG'.
18919
18920 2009-12-31  Bruno Haible  <bruno@clisp.org>
18921
18922         spawn: Fix incomplete fix.
18923         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18924         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18925         warnings for GNULIB_POSIXCHECK again.
18926         Reported by Eric Blake.
18927
18928 2009-12-31  Bruno Haible  <bruno@clisp.org>
18929
18930         Avoid namespace pollution on glibc systems.
18931         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18932         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18933         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18934         glibc systems.
18935
18936 2009-12-31  Bruno Haible  <bruno@clisp.org>
18937
18938         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18939         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18940         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18941         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18942         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18943         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18944         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18945
18946 2009-12-31  Bruno Haible  <bruno@clisp.org>
18947
18948         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18949         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18950         afterwards.
18951
18952 2009-12-31  Bruno Haible  <bruno@clisp.org>
18953
18954         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18955         SYS_UTSNAME_H.
18956
18957 2009-12-31  Bruno Haible  <bruno@clisp.org>
18958
18959         spawn: Fix misapplied patch.
18960         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18961         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18962         warnings for GNULIB_POSIXCHECK.
18963
18964 2009-12-31  Bruno Haible  <bruno@clisp.org>
18965
18966         times: Update after sys_times changed.
18967         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18968         * modules/times (Files): Add it.
18969         (configure.ac): Invoke gl_FUNC_TIMES.
18970
18971 2009-12-31  Bruno Haible  <bruno@clisp.org>
18972
18973         Use AC_C_INLINE where necessary.
18974         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18975         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18977         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18978         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18979         * m4/mbiter.m4 (gl_MBITER): Likewise.
18980         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18981         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18982         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18983         * modules/u64 (configure.ac): Likewise.
18984
18985 2009-12-31  Bruno Haible  <bruno@clisp.org>
18986
18987         Use AC_C_INLINE instead of module 'inline' where possible.
18988         * modules/inline (Description): Clarify purpose.
18989         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18990         * modules/count-one-bits (Depends-on): Remove inline.
18991         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18992         * modules/openat (Depends-on): Remove inline.
18993         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18994         instead of depending on module 'inline'.
18995         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18996         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18997         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18998         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18999         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
19000         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
19001         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
19002         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
19003         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
19004         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
19005         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
19006         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
19007         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
19008         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
19009         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
19010         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
19011         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
19012         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
19013         Likewise.
19014         * modules/unictype/property-ascii-hex-digit (Depends-on,
19015         configure.ac): Likewise.
19016         * modules/unictype/property-bidi-arabic-digit (Depends-on,
19017         configure.ac): Likewise.
19018         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
19019         configure.ac): Likewise.
19020         * modules/unictype/property-bidi-block-separator (Depends-on,
19021         configure.ac): Likewise.
19022         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
19023         configure.ac): Likewise.
19024         * modules/unictype/property-bidi-common-separator (Depends-on,
19025         configure.ac): Likewise.
19026         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
19027         Likewise.
19028         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
19029         configure.ac): Likewise.
19030         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
19031         configure.ac): Likewise.
19032         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
19033         configure.ac): Likewise.
19034         * modules/unictype/property-bidi-european-digit (Depends-on,
19035         configure.ac): Likewise.
19036         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
19037         configure.ac): Likewise.
19038         * modules/unictype/property-bidi-left-to-right (Depends-on,
19039         configure.ac): Likewise.
19040         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
19041         configure.ac): Likewise.
19042         * modules/unictype/property-bidi-other-neutral (Depends-on,
19043         configure.ac): Likewise.
19044         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
19045         Likewise.
19046         * modules/unictype/property-bidi-segment-separator (Depends-on,
19047         configure.ac): Likewise.
19048         * modules/unictype/property-bidi-whitespace (Depends-on,
19049         configure.ac): Likewise.
19050         * modules/unictype/property-combining (Depends-on, configure.ac):
19051         Likewise.
19052         * modules/unictype/property-composite (Depends-on, configure.ac):
19053         Likewise.
19054         * modules/unictype/property-currency-symbol (Depends-on,
19055         configure.ac): Likewise.
19056         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19057         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19058         Likewise.
19059         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19060         configure.ac): Likewise.
19061         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19062         Likewise.
19063         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19064         Likewise.
19065         * modules/unictype/property-extender (Depends-on, configure.ac):
19066         Likewise.
19067         * modules/unictype/property-format-control (Depends-on, configure.ac):
19068         Likewise.
19069         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19070         Likewise.
19071         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19072         Likewise.
19073         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19074         Likewise.
19075         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19076         Likewise.
19077         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19078         Likewise.
19079         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19080         Likewise.
19081         * modules/unictype/property-id-start (Depends-on, configure.ac):
19082         Likewise.
19083         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19084         Likewise.
19085         * modules/unictype/property-ids-binary-operator (Depends-on,
19086         configure.ac): Likewise.
19087         * modules/unictype/property-ids-trinary-operator (Depends-on,
19088         configure.ac): Likewise.
19089         * modules/unictype/property-ignorable-control (Depends-on,
19090         configure.ac): Likewise.
19091         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19092         Likewise.
19093         * modules/unictype/property-join-control (Depends-on, configure.ac):
19094         Likewise.
19095         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19096         Likewise.
19097         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19098         Likewise.
19099         * modules/unictype/property-logical-order-exception (Depends-on,
19100         configure.ac): Likewise.
19101         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19102         Likewise.
19103         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19104         * modules/unictype/property-non-break (Depends-on, configure.ac):
19105         Likewise.
19106         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19107         Likewise.
19108         * modules/unictype/property-numeric (Depends-on, configure.ac):
19109         Likewise.
19110         * modules/unictype/property-other-alphabetic (Depends-on,
19111         configure.ac): Likewise.
19112         * modules/unictype/property-other-default-ignorable-code-point
19113         (Depends-on, configure.ac): Likewise.
19114         * modules/unictype/property-other-grapheme-extend (Depends-on,
19115         configure.ac): Likewise.
19116         * modules/unictype/property-other-id-continue (Depends-on,
19117         configure.ac): Likewise.
19118         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19119         Likewise.
19120         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19121         Likewise.
19122         * modules/unictype/property-other-math (Depends-on, configure.ac):
19123         Likewise.
19124         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19125         Likewise.
19126         * modules/unictype/property-paired-punctuation (Depends-on,
19127         configure.ac): Likewise.
19128         * modules/unictype/property-paragraph-separator (Depends-on,
19129         configure.ac): Likewise.
19130         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19131         Likewise.
19132         * modules/unictype/property-pattern-white-space (Depends-on,
19133         configure.ac): Likewise.
19134         * modules/unictype/property-private-use (Depends-on, configure.ac):
19135         Likewise.
19136         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19137         Likewise.
19138         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19139         Likewise.
19140         * modules/unictype/property-radical (Depends-on, configure.ac):
19141         Likewise.
19142         * modules/unictype/property-sentence-terminal (Depends-on,
19143         configure.ac): Likewise.
19144         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19145         Likewise.
19146         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19147         * modules/unictype/property-terminal-punctuation (Depends-on,
19148         configure.ac): Likewise.
19149         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19150         Likewise.
19151         * modules/unictype/property-unassigned-code-value (Depends-on,
19152         configure.ac): Likewise.
19153         * modules/unictype/property-unified-ideograph (Depends-on,
19154         configure.ac): Likewise.
19155         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19156         Likewise.
19157         * modules/unictype/property-variation-selector (Depends-on,
19158         configure.ac): Likewise.
19159         * modules/unictype/property-white-space (Depends-on, configure.ac):
19160         Likewise.
19161         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19162         Likewise.
19163         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19164         Likewise.
19165         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19166         Likewise.
19167         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19168         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19169         Likewise.
19170
19171 2009-12-31  Bruno Haible  <bruno@clisp.org>
19172
19173         Remove unnecessary AC_C_INLINE invocation.
19174         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19175         since 2009-08-21.
19176
19177 2009-12-31  Jim Meyering  <meyering@redhat.com>
19178
19179         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19180         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19181         With this change, we can all remove the gpg_key_ID = ... definition
19182         from our respective cfg.mk files.
19183
19184         maint.mk: create announcement template in ~/, not in /tmp
19185         * top/maint.mk (emit_upload_commands): Adjust.
19186         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19187         Remove temporary file, .ci-msg.
19188
19189 2009-12-31  Eric Blake  <ebb9@byu.net>
19190
19191         link-warning: always build headers with link warnings
19192         * modules/arpa_inet (Makefile.am): Always build replacement
19193         header.
19194         * modules/ctype (Makefile.am): Likewise.
19195         * modules/dirent (Makefile.am): Likewise.
19196         * modules/inttypes (Makefile.am): Likewise.
19197         * modules/langinfo (Makefile.am): Likewise.
19198         * modules/locale (Makefile.am): Likewise.
19199         * modules/spawn (Makefile.am): Likewise.
19200         * modules/sys_file (Makefile.am): Likewise.
19201         * modules/sys_ioctl (Makefile.am): Likewise.
19202         * modules/sys_select (Makefile.am): Likewise.
19203         * modules/sys_socket (Makefile.am): Likewise.
19204         * modules/sys_times (Makefile.am): Likewise.
19205         * modules/sys_utsname (Makefile.am): Likewise.
19206         * modules/sys_wait (Makefile.am): Likewise.
19207         * modules/wchar (Makefile.am): Likewise.
19208         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19209         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19210         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19211         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19212         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19213         Likewise.
19214         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19215         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19216         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19217         Likewise.
19218         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19219         Likewise.
19220         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19221         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19222         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19223         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19224         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19225         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19226         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19227         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19228         (gl_WCHAR_H_DEFAULTS): Likewise.
19229
19230 2009-12-31  Eric Blake  <ebb9@byu.net>
19231
19232         signal, spawn: use link warnings
19233         * lib/signal.in.h (sigset_t): Make unconditional.
19234         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19235         (sigpending, sigprocmask, sigaction): Add link warnings.
19236         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19237         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19238         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19239         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19240         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19241         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19242         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19243         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19244         (posix_spawn_file_actions_destroy)
19245         (posix_spawn_file_actions_addopen)
19246         (posix_spawn_file_actions_addclose)
19247         (posix_spawn_file_actions_adddup2): Likewise.
19248         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19249         * tests/test-signal.c (main): Enhance test.
19250
19251         spawn: improve wrapper support
19252         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19253         (gl_SPAWN_H_DEFAULTS): New defaults.
19254         * modules/spawn (Makefile.am): Substitute them.
19255         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19256         Only declare if missing or broken.
19257
19258         sys_times, sys_utsname: use include_next
19259         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19260         header.
19261         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19262         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19263         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19264         * modules/sys_times (Depends-on): Add include_next.
19265         (Makefile.am): Substitute additional values.
19266         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19267         * lib/sys_times.in.h (includes): Include native header, if
19268         available.
19269         * lib/sys_utsname.in.h (includes): Likewise.
19270         * tests/test-sys_times.c (main): Enhance test.
19271
19272         fdutimensat: revert prior patch
19273         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19274         utimens.h.
19275         Reported by Bruno Haible.
19276
19277 2009-12-30  Eric Blake  <ebb9@byu.net>
19278
19279         sys_wait: drop link-warning dependency
19280         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19281         link-warning efforts.
19282         * lib/sys_wait.in.h: Likewise.
19283
19284         fdutimensat: remove bogus dependency
19285         * modules/fdutimensat (Depends-on): Drop inline.
19286
19287         unistd: fix typo
19288         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19289
19290 2009-12-30  Bruno Haible  <bruno@clisp.org>
19291
19292         Fix compilation error with Solaris cc.
19293         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19294         * lib/unicase/u16-is-invariant.c: Likewise.
19295         * lib/unicase/u32-is-invariant.c: Likewise.
19296         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19297
19298 2009-12-30  Bruno Haible  <bruno@clisp.org>
19299
19300         Fix test crash.
19301         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19302         locales.
19303         Reported by Simon Josefsson <simon@josefsson.org>.
19304
19305 2009-12-30  Bruno Haible  <bruno@clisp.org>
19306
19307         Fix compilation error on most platforms.
19308         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19309         Reported by Simon Josefsson <simon@josefsson.org>
19310         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19311
19312 2009-12-30  Eric Blake  <ebb9@byu.net>
19313
19314         futimens, utimensat: work around ntfs-3g bug
19315         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19316         a ctime bug is present, and expand workaround to cover ntfs-3g.
19317         * lib/utimens.c (fdutimens, lutimens): Likewise.
19318         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19319         (validate_timespec): Adjust return value.
19320         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19321         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19322         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19323
19324 2009-12-29  Eric Blake  <ebb9@byu.net>
19325
19326         link-warning: make usage consistent
19327         * modules/ctype (Depends-on): Add link-warning.
19328         (Makefile.am): Update rules accordingly.
19329         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19330         * modules/locale (Depends-on, Makefile.am): Likewise.
19331         * modules/sys_file (Makefile.am): Likewise.
19332         * modules/getopt-posix (Makefile.am): Delete unused link warning
19333         efforts.
19334         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19335         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19336         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19337         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19338
19339         stdio: remove unused variables
19340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19341         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19342         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19343
19344         tests: test more substitute headers
19345         * modules/ctype-tests: New file.
19346         * modules/dirent-tests: Likewise.
19347         * modules/spawn-tests: Likewise.
19348         * modules/sys_file-tests: Likewise.
19349         * modules/sys_ioctl-tests: Likewise.
19350         * modules/sys_wait-tests: Likewise.
19351         * tests/test-ctype.c: Likewise.
19352         * tests/test-dirent.c: Likewise.
19353         * tests/test-spawn.c: Likewise.
19354         * tests/test-sys_file.c: Likewise.
19355         * tests/test-sys_ioctl.c: Likewise.
19356         * tests/test-sys_wait.c: Likewise.
19357         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19358         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19359         whether or not flock is in use.
19360
19361         tests: remove License section from module
19362         * modules/arpa_inet-tests: Remove unneeded section.
19363         * modules/byteswap-tests: Likewise.
19364         * modules/ceilf-tests: Likewise.
19365         * modules/ceill-tests: Likewise.
19366         * modules/crypto/des-tests: Likewise.
19367         * modules/crypto/gc-arcfour-tests: Likewise.
19368         * modules/crypto/gc-arctwo-tests: Likewise.
19369         * modules/crypto/gc-des-tests: Likewise.
19370         * modules/crypto/gc-hmac-md5-tests: Likewise.
19371         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19372         * modules/crypto/gc-md2-tests: Likewise.
19373         * modules/crypto/gc-md4-tests: Likewise.
19374         * modules/crypto/gc-md5-tests: Likewise.
19375         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19376         * modules/crypto/gc-rijndael-tests: Likewise.
19377         * modules/crypto/gc-sha1-tests: Likewise.
19378         * modules/crypto/gc-tests: Likewise.
19379         * modules/crypto/md2-tests: Likewise.
19380         * modules/crypto/md4-tests: Likewise.
19381         * modules/fcntl-h-tests: Likewise.
19382         * modules/floorf-tests: Likewise.
19383         * modules/floorl-tests: Likewise.
19384         * modules/frexp-nolibm-tests: Likewise.
19385         * modules/frexp-tests: Likewise.
19386         * modules/frexpl-nolibm-tests: Likewise.
19387         * modules/frexpl-tests: Likewise.
19388         * modules/getaddrinfo-tests: Likewise.
19389         * modules/inttypes-tests: Likewise.
19390         * modules/isfinite-tests: Likewise.
19391         * modules/isinf-tests: Likewise.
19392         * modules/ldexpl-tests: Likewise.
19393         * modules/locale-tests: Likewise.
19394         * modules/math-tests: Likewise.
19395         * modules/netdb-tests: Likewise.
19396         * modules/netinet_in-tests: Likewise.
19397         * modules/printf-frexp-tests: Likewise.
19398         * modules/printf-frexpl-tests: Likewise.
19399         * modules/priv-set-tests: Likewise.
19400         * modules/random_r-tests: Likewise.
19401         * modules/round-tests: Likewise.
19402         * modules/roundf-tests: Likewise.
19403         * modules/roundl-tests: Likewise.
19404         * modules/search-tests: Likewise.
19405         * modules/select-tests: Likewise.
19406         * modules/signal-tests: Likewise.
19407         * modules/stdbool-tests: Likewise.
19408         * modules/stddef-tests: Likewise.
19409         * modules/stdint-tests: Likewise.
19410         * modules/stdio-tests: Likewise.
19411         * modules/stdlib-tests: Likewise.
19412         * modules/string-tests: Likewise.
19413         * modules/strings-tests: Likewise.
19414         * modules/sys_select-tests: Likewise.
19415         * modules/sys_socket-tests: Likewise.
19416         * modules/sys_stat-tests: Likewise.
19417         * modules/sys_time-tests: Likewise.
19418         * modules/sys_utsname-tests: Likewise.
19419         * modules/sysexits-tests: Likewise.
19420         * modules/time-tests: Likewise.
19421         * modules/trunc-tests: Likewise.
19422         * modules/truncf-tests: Likewise.
19423         * modules/truncl-tests: Likewise.
19424         * modules/tsearch-tests: Likewise.
19425         * modules/unistd-tests: Likewise.
19426         * modules/wchar-tests: Likewise.
19427         * modules/wctype-tests: Likewise.
19428
19429         tests: fix license on several tests
19430         * tests/test-des.c: Update to GPLv3+.
19431         * tests/test-flock.c: Likewise.
19432         * tests/test-fsync.c: Likewise.
19433         * tests/test-futimens.h: Likewise.
19434         * tests/test-gc-arcfour.c: Likewise.
19435         * tests/test-gc-arctwo.c: Likewise.
19436         * tests/test-gc-des.c: Likewise.
19437         * tests/test-gc-hmac-md5.c: Likewise.
19438         * tests/test-gc-hmac-sha1.c: Likewise.
19439         * tests/test-gc-md2.c: Likewise.
19440         * tests/test-gc-md4.c: Likewise.
19441         * tests/test-gc-md5.c: Likewise.
19442         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19443         * tests/test-gc-rijndael.c: Likewise.
19444         * tests/test-gc-sha1.c: Likewise.
19445         * tests/test-gc.c: Likewise.
19446         * tests/test-getcwd.c: Likewise.
19447         * tests/test-link.c: Likewise.
19448         * tests/test-link.h: Likewise.
19449         * tests/test-lutimens.h: Likewise.
19450         * tests/test-md2.c: Likewise.
19451         * tests/test-md4.c: Likewise.
19452         * tests/test-mkdir.h: Likewise.
19453         * tests/test-rename.c: Likewise.
19454         * tests/test-rename.h: Likewise.
19455         * tests/test-safe-alloc.c: Likewise.
19456         * tests/test-utimens-common.h: Likewise.
19457         * tests/test-utimens.h: Likewise.
19458
19459         maint: sync license texts
19460         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19461         * doc/gpl-3.0.texi: Revert copyright year update.
19462         * doc/lgpl-3.0.texi: Likewise.
19463
19464 2009-12-29  Jim Meyering  <meyering@redhat.com>
19465
19466         update nearly all FSF copyright year lists to include 2009
19467         The files named by the following are exempted:
19468             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19469               test -f "$dst" && { echo "$dst"; continue; }
19470               test -d "$dst" || continue
19471               echo "$dst"/$(basename "$src")
19472             done > exempt
19473             git ls-files tests/unictype >> exempt
19474         In the remaining files, convert to all-interval notation if
19475         - there is already at least one year interval like 2000-2003
19476         - the file is maintained by me
19477         - the file is in lib/uni*/, where that style already prevails
19478         Otherwise, use update-copyright's default.
19479
19480 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19481         and Eric Blake  <ebb9@byu.net>
19482
19483         tests: don't require debug system() to pass
19484         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19485         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19486         * tests/test-unlink.h (test_unlink_func): Likewise.
19487         * tests/test-fstatat.c (main): ...into callers.
19488         * tests/test-lstat.c (main): Likewise.
19489         * tests/test-rmdir.c (main): Likewise.
19490         * tests/test-unlink.c (main): Likewise.
19491         * tests/test-unlinkat.c (main): Likewise.
19492         * tests/test-areadlink-with-size.c (main): Don't require a
19493         debug-only system call to pass, aiding cross-testing to mingw.
19494         * tests/test-areadlink.c (main): Likewise.
19495         * tests/test-areadlinkat-with-size.c (main): Likewise.
19496         * tests/test-areadlinkat.c (main): Likewise.
19497         * tests/test-canonicalize-lgpl.c (main): Likewise.
19498         * tests/test-canonicalize.c (main): Likewise.
19499         * tests/test-chown.c (main): Likewise.
19500         * tests/test-fchownat.c (main): Likewise.
19501         * tests/test-lchown.c (main): Likewise.
19502         * tests/test-fdutimensat.c (main): Likewise.
19503         * tests/test-futimens.c (main): Likewise.
19504         * tests/test-link.c (main): Likewise.
19505         * tests/test-linkat.c (main): Likewise.
19506         * tests/test-mkdir.c (main): Likewise.
19507         * tests/test-mkdirat.c (main): Likewise.
19508         * tests/test-mkfifo.c (main): Likewise.
19509         * tests/test-mkfifoat.c (main): Likewise.
19510         * tests/test-mknod.c (main): Likewise.
19511         * tests/test-readlink.c (main): Likewise.
19512         * tests/test-remove.c (main): Likewise.
19513         * tests/test-rename.c (main): Likewise.
19514         * tests/test-renameat.c (main): Likewise.
19515         * tests/test-symlink.c (main): Likewise.
19516         * tests/test-symlinkat.c (main): Likewise.
19517         * tests/test-utimens.c (main): Likewise.
19518         * tests/test-utimensat.c (main): Likewise.
19519
19520 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19521
19522         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19523         on $(UNUSED_PARAMETER_H) to avoid build failure.
19524
19525 2009-12-28  Jim Meyering  <meyering@redhat.com>
19526
19527         update-copyright: you may specify a max. line length other than 72
19528         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19529
19530         maint: use consistent FSF copyright line syntax
19531         * lib/posixtm.c: Add missing comma in FSF copyright line.
19532         * lib/posixtm.h: Likewise.
19533         * lib/getugroups.c: Add missing ", Inc.".
19534
19535         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19536         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19537         FSF copyright line.  Remove trailing blanks.
19538
19539 2009-12-28  Eric Blake  <ebb9@byu.net>
19540
19541         test-dup2: reduce dependencies
19542         * modules/cloexec (Configure.ac): Set witness.
19543         * modules/dup2-tests (Depends-on): Drop cloexec.
19544         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19545         not present.
19546         Suggested by Bruno Haible.
19547
19548 2009-12-26  Bruno Haible  <bruno@clisp.org>
19549
19550         Remove an unneeded dependency.
19551         * modules/fseterr (Depends-on): Remove dup2.
19552
19553 2009-12-26  Eric Blake  <ebb9@byu.net>
19554
19555         tests: use macros.h in more places
19556         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19557         (ASSERT_STREAM): Provide default of stderr.
19558         * tests/test-dirent-safer.c: Include macros.h, using alternate
19559         stream for assertions.
19560         * tests/test-dup-safer.c: Likewise.
19561         * tests/test-freopen-safer.c: Likewise.
19562         * tests/test-getopt.c: Likewise.
19563         * tests/test-openat-safer.c: Likewise.
19564         * tests/test-pipe.c: Likewise.
19565         * tests/test-popen-safer.c: Likewise.
19566         * modules/dirent-safer-tests (Files): Include macros.h.
19567         * modules/unistd-safer-tests (Files): Likewise.
19568         * modules/freopen-safer-tests (Files): Likewise.
19569         * modules/getopt-posix-tests (Files): Likewise.
19570         * modules/openat-safer-tests (Files): Likewise.
19571         * modules/pipe-tests (Files): Likewise.
19572
19573 2009-12-26  Bruno Haible  <bruno@clisp.org>
19574
19575         javacomp: Portability fix.
19576         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19577         that it also works on Solaris.
19578
19579 2009-12-26  Bruno Haible  <bruno@clisp.org>
19580
19581         localename: Fix storage allocation of gl_locale_name_thread's result.
19582         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19583         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19584         all platforms that have 'uselocale'.
19585         (gl_locale_name_thread_unsafe): New function, extracted from
19586         gl_locale_name_thread.
19587         (gl_locale_name_thread): Call struniq on all platforms that have
19588         'uselocale'.
19589         * tests/test-localename.c (test_locale_name_thread): Check that the
19590         resulting strings are permanently allocated.
19591         * modules/localename-tests (Depends-on): Add strdup.
19592
19593 2009-12-26  Bruno Haible  <bruno@clisp.org>
19594
19595         * tests/test-localename.c (categories): Fill in the strings.
19596
19597 2009-12-26  Jim Meyering  <meyering@redhat.com>
19598
19599         isdir: complete the removal of m4/isdir.m4
19600         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19601
19602         isdir: clean up, since at least grep still uses it
19603         * lib/isdir.c: Include "isdir.h".
19604         (S_ISDIR): Remove now-unneeded definition.
19605         * modules/isdir (Files): Add lib/isdir.h.
19606         * lib/isdir.h: New file, with declaration.
19607         * m4/isdir.m4: Remove file -- unneeded.
19608
19609 2009-12-25  Bruno Haible  <bruno@clisp.org>
19610
19611         selinux-h: Make generated .h files standalone.
19612         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19613         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19614         * lib/se-selinux.in.h: Likewise.
19615         * modules/selinux-h (Depends-on): Add unused-parameter.
19616         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19617         selinux/selinux.h and selinux/context.h.
19618         Suggested by Eric Blake.
19619
19620 2009-12-25  Bruno Haible  <bruno@clisp.org>
19621
19622         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19623         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19624         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19625         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19626         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19627
19628 2009-12-24  Bruno Haible  <bruno@clisp.org>
19629
19630         openat: Fix warning.
19631         * lib/openat-proc.c: Include <unistd.h>.
19632
19633 2009-12-24  Bruno Haible  <bruno@clisp.org>
19634
19635         New module 'unused-parameter'.
19636         * build-aux/unused-parameter.h: New file, extracted from earlier
19637         gnulib-common.m4.
19638         * modules/unused-parameter: New file.
19639         * lib/unistr.h: Include unused-parameter.h.
19640         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19641         _GL_UNUSED.
19642         * modules/unistr/base (Depends-on): Add unused-parameter.
19643
19644 2009-12-24  Bruno Haible  <bruno@clisp.org>
19645
19646         Add missing dependencies to 'extensions' module.
19647         * m4/extensions.m4: Add comment.
19648         * modules/accept4 (Depends-on): Add extensions.
19649         * modules/dup3 (Depends-on): Likewise.
19650         * modules/fcntl (Depends-on): Likewise.
19651         * modules/futimens (Depends-on): Likewise.
19652         * modules/mknod (Depends-on): Likewise.
19653         * modules/pipe2 (Depends-on): Likewise.
19654         * modules/stat-time (Depends-on): Likewise.
19655         * modules/strcasestr-simple (Depends-on): Likewise.
19656         * modules/strsignal (Depends-on): Likewise.
19657         * modules/utimensat (Depends-on): Likewise.
19658         * modules/localcharset (Depends-on): Likewise. Needed because of
19659         gl_FCNTL_O_FLAGS.
19660         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19661         AC_TYPE_MBSTATE_T.
19662         * modules/wcsnrtombs (Depends-on): Likewise.
19663         * modules/wcsrtombs (Depends-on): Likewise.
19664
19665 2009-12-24  Bruno Haible  <bruno@clisp.org>
19666
19667         binary-io: Avoid gcc warning due to SET_BINARY.
19668         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19669         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19670
19671 2009-12-24  Bruno Haible  <bruno@clisp.org>
19672
19673         Avoid future namespace pollution on glibc systems.
19674         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19675         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19676         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19677         glibc systems.
19678
19679 2009-12-24  Bruno Haible  <bruno@clisp.org>
19680
19681         Refactor common macros used in tests.
19682         * tests/macros.h: New file.
19683         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19684         and/or <stdlib.h>, if appropriate.
19685         (ASSERT, SIZEOF): Remove macros.
19686         * tests/test-areadlink-with-size.c: Likewise.
19687         * tests/test-areadlinkat.c: Likewise.
19688         * tests/test-areadlinkat-with-size.c: Likewise.
19689         * tests/test-argmatch.c: Likewise.
19690         * tests/test-argv-iter.c: Likewise.
19691         * tests/test-array-mergesort.c: Likewise.
19692         * tests/test-array_list.c: Likewise.
19693         * tests/test-array_oset.c: Likewise.
19694         * tests/test-avltree_list.c: Likewise.
19695         * tests/test-avltree_oset.c: Likewise.
19696         * tests/test-avltreehash_list.c: Likewise.
19697         * tests/test-base64.c: Likewise.
19698         * tests/test-binary-io.c: Likewise.
19699         * tests/test-bitrotate.c: Likewise.
19700         * tests/test-btowc.c: Likewise.
19701         * tests/test-byteswap.c: Likewise.
19702         * tests/test-c-ctype.c: Likewise.
19703         * tests/test-c-stack.c: Likewise.
19704         * tests/test-c-strcasecmp.c: Likewise.
19705         * tests/test-c-strcasestr.c: Likewise.
19706         * tests/test-c-strncasecmp.c: Likewise.
19707         * tests/test-c-strstr.c: Likewise.
19708         * tests/test-canonicalize-lgpl.c: Likewise.
19709         * tests/test-canonicalize.c: Likewise.
19710         * tests/test-carray_list.c: Likewise.
19711         * tests/test-ceilf1.c: Likewise.
19712         * tests/test-ceilf2.c: Likewise.
19713         * tests/test-ceill.c: Likewise.
19714         * tests/test-chown.c: Likewise.
19715         * tests/test-cloexec.c: Likewise.
19716         * tests/test-copy-acl.c: Likewise.
19717         * tests/test-copy-file.c: Likewise.
19718         * tests/test-count-one-bits.c: Likewise.
19719         * tests/test-dprintf-posix.c: Likewise.
19720         * tests/test-dup2.c: Likewise.
19721         * tests/test-dup3.c: Likewise.
19722         * tests/test-duplocale.c: Likewise.
19723         * tests/test-fbufmode.c: Likewise.
19724         * tests/test-fchdir.c: Likewise.
19725         * tests/test-fchownat.c: Likewise.
19726         * tests/test-fcntl-safer.c: Likewise.
19727         * tests/test-fcntl.c: Likewise.
19728         * tests/test-fdopendir.c: Likewise.
19729         * tests/test-fdutimensat.c: Likewise.
19730         * tests/test-fflush2.c: Likewise.
19731         * tests/test-file-has-acl.c: Likewise.
19732         * tests/test-filevercmp.c: Likewise.
19733         * tests/test-flock.c: Likewise.
19734         * tests/test-floorf1.c: Likewise.
19735         * tests/test-floorf2.c: Likewise.
19736         * tests/test-floorl.c: Likewise.
19737         * tests/test-fnmatch.c: Likewise.
19738         * tests/test-fopen.h: Likewise.
19739         * tests/test-fpending.c: Likewise.
19740         * tests/test-fprintf-posix.c: Likewise.
19741         * tests/test-fpurge.c: Likewise.
19742         * tests/test-freadable.c: Likewise.
19743         * tests/test-freadahead.c: Likewise.
19744         * tests/test-freading.c: Likewise.
19745         * tests/test-freadptr.c: Likewise.
19746         * tests/test-freadptr2.c: Likewise.
19747         * tests/test-freadseek.c: Likewise.
19748         * tests/test-freopen.c: Likewise.
19749         * tests/test-frexp.c: Likewise.
19750         * tests/test-frexpl.c: Likewise.
19751         * tests/test-fseek.c: Likewise.
19752         * tests/test-fseeko.c: Likewise.
19753         * tests/test-fstatat.c: Likewise.
19754         * tests/test-fstrcmp.c: Likewise.
19755         * tests/test-fsync.c: Likewise.
19756         * tests/test-ftell.c: Likewise.
19757         * tests/test-ftello.c: Likewise.
19758         * tests/test-func.c: Likewise.
19759         * tests/test-futimens.c: Likewise.
19760         * tests/test-fwritable.c: Likewise.
19761         * tests/test-fwriting.c: Likewise.
19762         * tests/test-getcwd.c: Likewise.
19763         * tests/test-getdate.c: Likewise.
19764         * tests/test-getdelim.c: Likewise.
19765         * tests/test-getdtablesize.c: Likewise.
19766         * tests/test-getgroups.c: Likewise.
19767         * tests/test-getline.c: Likewise.
19768         * tests/test-getndelim2.c: Likewise.
19769         * tests/test-glob.c: Likewise.
19770         * tests/test-hash.c: Likewise.
19771         * tests/test-i-ring.c: Likewise.
19772         * tests/test-iconv-utf.c: Likewise.
19773         * tests/test-iconv.c: Likewise.
19774         * tests/test-idpriv-drop.c: Likewise.
19775         * tests/test-idpriv-droptemp.c: Likewise.
19776         * tests/test-inet_ntop.c: Likewise.
19777         * tests/test-inet_pton.c: Likewise.
19778         * tests/test-isblank.c: Likewise.
19779         * tests/test-isfinite.c: Likewise.
19780         * tests/test-isinf.c: Likewise.
19781         * tests/test-isnan.c: Likewise.
19782         * tests/test-isnand.h: Likewise.
19783         * tests/test-isnanf.h: Likewise.
19784         * tests/test-isnanl.h: Likewise.
19785         * tests/test-lchown.c: Likewise.
19786         * tests/test-ldexpl.c: Likewise.
19787         * tests/test-link.c: Likewise.
19788         * tests/test-linkat.c: Likewise.
19789         * tests/test-linked_list.c: Likewise.
19790         * tests/test-linkedhash_list.c: Likewise.
19791         * tests/test-localename.c: Likewise.
19792         * tests/test-lseek.c: Likewise.
19793         * tests/test-lstat.c: Likewise.
19794         * tests/test-mbmemcasecmp.c: Likewise.
19795         * tests/test-mbmemcasecoll.c: Likewise.
19796         * tests/test-mbrtowc.c: Likewise.
19797         * tests/test-mbscasecmp.c: Likewise.
19798         * tests/test-mbscasestr1.c: Likewise.
19799         * tests/test-mbscasestr2.c: Likewise.
19800         * tests/test-mbscasestr3.c: Likewise.
19801         * tests/test-mbscasestr4.c: Likewise.
19802         * tests/test-mbschr.c: Likewise.
19803         * tests/test-mbscspn.c: Likewise.
19804         * tests/test-mbsinit.c: Likewise.
19805         * tests/test-mbsncasecmp.c: Likewise.
19806         * tests/test-mbsnrtowcs.c: Likewise.
19807         * tests/test-mbspbrk.c: Likewise.
19808         * tests/test-mbspcasecmp.c: Likewise.
19809         * tests/test-mbsrchr.c: Likewise.
19810         * tests/test-mbsrtowcs.c: Likewise.
19811         * tests/test-mbsspn.c: Likewise.
19812         * tests/test-mbsstr1.c: Likewise.
19813         * tests/test-mbsstr2.c: Likewise.
19814         * tests/test-mbsstr3.c: Likewise.
19815         * tests/test-memchr.c: Likewise.
19816         * tests/test-memchr2.c: Likewise.
19817         * tests/test-memcmp.c: Likewise.
19818         * tests/test-memmem.c: Likewise.
19819         * tests/test-memrchr.c: Likewise.
19820         * tests/test-mkdir.c: Likewise.
19821         * tests/test-mkdirat.c: Likewise.
19822         * tests/test-mkfifo.c: Likewise.
19823         * tests/test-mkfifoat.c: Likewise.
19824         * tests/test-mknod.c: Likewise.
19825         * tests/test-nanosleep.c: Likewise.
19826         * tests/test-nl_langinfo.c: Likewise.
19827         * tests/test-obstack-printf.c: Likewise.
19828         * tests/test-open.c: Likewise.
19829         * tests/test-openat.c: Likewise.
19830         * tests/test-pipe-filter-gi1.c: Likewise.
19831         * tests/test-pipe-filter-gi2-main.c: Likewise.
19832         * tests/test-pipe-filter-ii1.c: Likewise.
19833         * tests/test-pipe-filter-ii2-main.c: Likewise.
19834         * tests/test-pipe2.c: Likewise.
19835         * tests/test-popen.h: Likewise.
19836         * tests/test-posixtm.c: Likewise.
19837         * tests/test-pread.c: Likewise.
19838         * tests/test-printf-frexp.c: Likewise.
19839         * tests/test-printf-frexpl.c: Likewise.
19840         * tests/test-printf-posix.c: Likewise.
19841         * tests/test-priv-set.c: Likewise.
19842         * tests/test-quotearg.c: Likewise.
19843         * tests/test-random_r.c: Likewise.
19844         * tests/test-rawmemchr.c: Likewise.
19845         * tests/test-rbtree_list.c: Likewise.
19846         * tests/test-rbtree_oset.c: Likewise.
19847         * tests/test-rbtreehash_list.c: Likewise.
19848         * tests/test-readlink.c: Likewise.
19849         * tests/test-remove.c: Likewise.
19850         * tests/test-rename.c: Likewise.
19851         * tests/test-renameat.c: Likewise.
19852         * tests/test-rmdir.c: Likewise.
19853         * tests/test-round1.c: Likewise.
19854         * tests/test-roundf1.c: Likewise.
19855         * tests/test-roundl.c: Likewise.
19856         * tests/test-safe-alloc.c: Likewise.
19857         * tests/test-sameacls.c: Likewise.
19858         * tests/test-set-mode-acl.c: Likewise.
19859         * tests/test-setenv.c: Likewise.
19860         * tests/test-sigaction.c: Likewise.
19861         * tests/test-signbit.c: Likewise.
19862         * tests/test-sleep.c: Likewise.
19863         * tests/test-snprintf-posix.c: Likewise.
19864         * tests/test-snprintf.c: Likewise.
19865         * tests/test-sprintf-posix.c: Likewise.
19866         * tests/test-stat-time.c: Likewise.
19867         * tests/test-stat.c: Likewise.
19868         * tests/test-strcasestr.c: Likewise.
19869         * tests/test-strchrnul.c: Likewise.
19870         * tests/test-strerror.c: Likewise.
19871         * tests/test-striconv.c: Likewise.
19872         * tests/test-striconveh.c: Likewise.
19873         * tests/test-striconveha.c: Likewise.
19874         * tests/test-strsignal.c: Likewise.
19875         * tests/test-strstr.c: Likewise.
19876         * tests/test-strtod.c: Likewise.
19877         * tests/test-strverscmp.c: Likewise.
19878         * tests/test-symlink.c: Likewise.
19879         * tests/test-symlinkat.c: Likewise.
19880         * tests/test-trunc1.c: Likewise.
19881         * tests/test-trunc2.c: Likewise.
19882         * tests/test-truncf1.c: Likewise.
19883         * tests/test-truncf2.c: Likewise.
19884         * tests/test-truncl.c: Likewise.
19885         * tests/test-uname.c: Likewise.
19886         * tests/test-unlink.c: Likewise.
19887         * tests/test-unlinkat.c: Likewise.
19888         * tests/test-unsetenv.c: Likewise.
19889         * tests/test-usleep.c: Likewise.
19890         * tests/test-utimens.c: Likewise.
19891         * tests/test-utimensat.c: Likewise.
19892         * tests/test-vasnprintf-posix.c: Likewise.
19893         * tests/test-vasnprintf-posix2.c: Likewise.
19894         * tests/test-vasnprintf.c: Likewise.
19895         * tests/test-vasprintf-posix.c: Likewise.
19896         * tests/test-vasprintf.c: Likewise.
19897         * tests/test-vdprintf-posix.c: Likewise.
19898         * tests/test-vfprintf-posix.c: Likewise.
19899         * tests/test-vprintf-posix.c: Likewise.
19900         * tests/test-vsnprintf-posix.c: Likewise.
19901         * tests/test-vsnprintf.c: Likewise.
19902         * tests/test-vsprintf-posix.c: Likewise.
19903         * tests/test-wcrtomb.c: Likewise.
19904         * tests/test-wcsnrtombs.c: Likewise.
19905         * tests/test-wcsrtombs.c: Likewise.
19906         * tests/test-wctype.c: Likewise.
19907         * tests/test-wcwidth.c: Likewise.
19908         * tests/test-xfprintf-posix.c: Likewise.
19909         * tests/test-xmemdup0.c: Likewise.
19910         * tests/test-xprintf-posix.c: Likewise.
19911         * tests/test-xvasprintf.c: Likewise.
19912         * tests/unicase/test-locale-language.c: Likewise.
19913         * tests/unicase/test-mapping-part1.h: Likewise.
19914         * tests/unicase/test-predicate-part1.h: Likewise.
19915         * tests/unicase/test-u8-casecmp.c: Likewise.
19916         * tests/unicase/test-u8-casecoll.c: Likewise.
19917         * tests/unicase/test-u8-casefold.c: Likewise.
19918         * tests/unicase/test-u8-is-cased.c: Likewise.
19919         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19920         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19921         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19922         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19923         * tests/unicase/test-u8-tolower.c: Likewise.
19924         * tests/unicase/test-u8-totitle.c: Likewise.
19925         * tests/unicase/test-u8-toupper.c: Likewise.
19926         * tests/unicase/test-u16-casecmp.c: Likewise.
19927         * tests/unicase/test-u16-casecoll.c: Likewise.
19928         * tests/unicase/test-u16-casefold.c: Likewise.
19929         * tests/unicase/test-u16-is-cased.c: Likewise.
19930         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19931         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19932         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19933         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19934         * tests/unicase/test-u16-tolower.c: Likewise.
19935         * tests/unicase/test-u16-totitle.c: Likewise.
19936         * tests/unicase/test-u16-toupper.c: Likewise.
19937         * tests/unicase/test-u32-casecmp.c: Likewise.
19938         * tests/unicase/test-u32-casecoll.c: Likewise.
19939         * tests/unicase/test-u32-casefold.c: Likewise.
19940         * tests/unicase/test-u32-is-cased.c: Likewise.
19941         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19942         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19943         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19944         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19945         * tests/unicase/test-u32-tolower.c: Likewise.
19946         * tests/unicase/test-u32-totitle.c: Likewise.
19947         * tests/unicase/test-u32-toupper.c: Likewise.
19948         * tests/unicase/test-ulc-casecmp.c: Likewise.
19949         * tests/unicase/test-ulc-casecoll.c: Likewise.
19950         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19951         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19952         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19953         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19954         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19955         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19956         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19957         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19958         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19959         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19960         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19961         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19962         * tests/unictype/test-bidi_byname.c: Likewise.
19963         * tests/unictype/test-bidi_name.c: Likewise.
19964         * tests/unictype/test-bidi_of.c: Likewise.
19965         * tests/unictype/test-bidi_test.c: Likewise.
19966         * tests/unictype/test-block_list.c: Likewise.
19967         * tests/unictype/test-block_of.c: Likewise.
19968         * tests/unictype/test-block_test.c: Likewise.
19969         * tests/unictype/test-categ_and.c: Likewise.
19970         * tests/unictype/test-categ_and_not.c: Likewise.
19971         * tests/unictype/test-categ_byname.c: Likewise.
19972         * tests/unictype/test-categ_name.c: Likewise.
19973         * tests/unictype/test-categ_none.c: Likewise.
19974         * tests/unictype/test-categ_of.c: Likewise.
19975         * tests/unictype/test-categ_or.c: Likewise.
19976         * tests/unictype/test-categ_test_withtable.c: Likewise.
19977         * tests/unictype/test-combining.c: Likewise.
19978         * tests/unictype/test-decdigit.c: Likewise.
19979         * tests/unictype/test-digit.c: Likewise.
19980         * tests/unictype/test-mirror.c: Likewise.
19981         * tests/unictype/test-numeric.c: Likewise.
19982         * tests/unictype/test-pr_byname.c: Likewise.
19983         * tests/unictype/test-pr_test.c: Likewise.
19984         * tests/unictype/test-predicate-part1.h: Likewise.
19985         * tests/unictype/test-scripts.c: Likewise.
19986         * tests/unictype/test-sy_c_ident.c: Likewise.
19987         * tests/unictype/test-sy_java_ident.c: Likewise.
19988         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19989         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19990         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19991         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19992         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19993         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19994         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19995         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19996         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19997         * tests/uninorm/test-compat-decomposition.c: Likewise.
19998         * tests/uninorm/test-composition.c: Likewise.
19999         * tests/uninorm/test-decomposing-form.c: Likewise.
20000         * tests/uninorm/test-decomposition.c: Likewise.
20001         * tests/uninorm/test-u8-nfc.c: Likewise.
20002         * tests/uninorm/test-u8-nfd.c: Likewise.
20003         * tests/uninorm/test-u8-nfkc.c: Likewise.
20004         * tests/uninorm/test-u8-nfkd.c: Likewise.
20005         * tests/uninorm/test-u8-normcmp.c: Likewise.
20006         * tests/uninorm/test-u8-normcoll.c: Likewise.
20007         * tests/uninorm/test-u16-nfc.c: Likewise.
20008         * tests/uninorm/test-u16-nfd.c: Likewise.
20009         * tests/uninorm/test-u16-nfkc.c: Likewise.
20010         * tests/uninorm/test-u16-nfkd.c: Likewise.
20011         * tests/uninorm/test-u16-normcmp.c: Likewise.
20012         * tests/uninorm/test-u16-normcoll.c: Likewise.
20013         * tests/uninorm/test-u32-nfc.c: Likewise.
20014         * tests/uninorm/test-u32-nfd.c: Likewise.
20015         * tests/uninorm/test-u32-nfkc.c: Likewise.
20016         * tests/uninorm/test-u32-nfkd.c: Likewise.
20017         * tests/uninorm/test-u32-normalize-big.c: Likewise.
20018         * tests/uninorm/test-u32-normcmp.c: Likewise.
20019         * tests/uninorm/test-u32-normcoll.c: Likewise.
20020         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
20021         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20022         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20023         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20024         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20025         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20026         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20027         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20028         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20029         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20030         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20031         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20032         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20033         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20034         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20035         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20036         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20037         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20038         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20039         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20040         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20041         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20042         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20043         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20044         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20045         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20046         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20047         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20048         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20049         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
20050         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
20051         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
20052         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
20053         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20054         * tests/uniwidth/test-u8-width.c: Likewise.
20055         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20056         * tests/uniwidth/test-u16-width.c: Likewise.
20057         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20058         * tests/uniwidth/test-u32-width.c: Likewise.
20059         * tests/uniwidth/test-uc_width.c: Likewise.
20060         * tests/uniwidth/test-uc_width2.c: Likewise.
20061         * modules/acl-tests (Files): Add tests/macros.h.
20062         * modules/areadlink-tests (Files): Likewise.
20063         * modules/areadlink-with-size-tests (Files): Likewise.
20064         * modules/areadlinkat-tests (Files): Likewise.
20065         * modules/areadlinkat-with-size-tests (Files): Likewise.
20066         * modules/argmatch-tests (Files): Likewise.
20067         * modules/argv-iter-tests (Files): Likewise.
20068         * modules/array-list-tests (Files): Likewise.
20069         * modules/array-mergesort-tests (Files): Likewise.
20070         * modules/array-oset-tests (Files): Likewise.
20071         * modules/avltree-list-tests (Files): Likewise.
20072         * modules/avltree-oset-tests (Files): Likewise.
20073         * modules/avltreehash-list-tests (Files): Likewise.
20074         * modules/base64-tests (Files): Likewise.
20075         * modules/binary-io-tests (Files): Likewise.
20076         * modules/bitrotate-tests (Files): Likewise.
20077         * modules/btowc-tests (Files): Likewise.
20078         * modules/byteswap-tests (Files): Likewise.
20079         * modules/c-ctype-tests (Files): Likewise.
20080         * modules/c-stack-tests (Files): Likewise.
20081         * modules/c-strcase-tests (Files): Likewise.
20082         * modules/c-strcasestr-tests (Files): Likewise.
20083         * modules/c-strstr-tests (Files): Likewise.
20084         * modules/canonicalize-lgpl-tests (Files): Likewise.
20085         * modules/canonicalize-tests (Files): Likewise.
20086         * modules/carray-list-tests (Files): Likewise.
20087         * modules/ceilf-tests (Files): Likewise.
20088         * modules/ceill-tests (Files): Likewise.
20089         * modules/chown-tests (Files): Likewise.
20090         * modules/cloexec-tests (Files): Likewise.
20091         * modules/copy-file-tests (Files): Likewise.
20092         * modules/count-one-bits-tests (Files): Likewise.
20093         * modules/dprintf-posix-tests (Files): Likewise.
20094         * modules/dup2-tests (Files): Likewise.
20095         * modules/dup3-tests (Files): Likewise.
20096         * modules/duplocale-tests (Files): Likewise.
20097         * modules/fbufmode-tests (Files): Likewise.
20098         * modules/fchdir-tests (Files): Likewise.
20099         * modules/fcntl-safer-tests (Files): Likewise.
20100         * modules/fcntl-tests (Files): Likewise.
20101         * modules/fdopendir-tests (Files): Likewise.
20102         * modules/fdutimensat-tests (Files): Likewise.
20103         * modules/fflush-tests (Files): Likewise.
20104         * modules/filevercmp-tests (Files): Likewise.
20105         * modules/flock-tests (Files): Likewise.
20106         * modules/floorf-tests (Files): Likewise.
20107         * modules/floorl-tests (Files): Likewise.
20108         * modules/fnmatch-tests (Files): Likewise.
20109         * modules/fopen-safer-tests (Files): Likewise.
20110         * modules/fopen-tests (Files): Likewise.
20111         * modules/fpending-tests (Files): Likewise.
20112         * modules/fprintf-posix-tests (Files): Likewise.
20113         * modules/fpurge-tests (Files): Likewise.
20114         * modules/freadable-tests (Files): Likewise.
20115         * modules/freadahead-tests (Files): Likewise.
20116         * modules/freading-tests (Files): Likewise.
20117         * modules/freadptr-tests (Files): Likewise.
20118         * modules/freadseek-tests (Files): Likewise.
20119         * modules/freopen-tests (Files): Likewise.
20120         * modules/frexp-nolibm-tests (Files): Likewise.
20121         * modules/frexp-tests (Files): Likewise.
20122         * modules/frexpl-nolibm-tests (Files): Likewise.
20123         * modules/frexpl-tests (Files): Likewise.
20124         * modules/fseek-tests (Files): Likewise.
20125         * modules/fseeko-tests (Files): Likewise.
20126         * modules/fstrcmp-tests (Files): Likewise.
20127         * modules/fsync-tests (Files): Likewise.
20128         * modules/ftell-tests (Files): Likewise.
20129         * modules/ftello-tests (Files): Likewise.
20130         * modules/func-tests (Files): Likewise.
20131         * modules/futimens-tests (Files): Likewise.
20132         * modules/fwritable-tests (Files): Likewise.
20133         * modules/fwriting-tests (Files): Likewise.
20134         * modules/getcwd-tests (Files): Likewise.
20135         * modules/getdate-tests (Files): Likewise.
20136         * modules/getdelim-tests (Files): Likewise.
20137         * modules/getdtablesize-tests (Files): Likewise.
20138         * modules/getgroups-tests (Files): Likewise.
20139         * modules/getline-tests (Files): Likewise.
20140         * modules/getndelim2-tests (Files): Likewise.
20141         * modules/glob-tests (Files): Likewise.
20142         * modules/hash-tests (Files): Likewise.
20143         * modules/i-ring-tests (Files): Likewise.
20144         * modules/iconv-tests (Files): Likewise.
20145         * modules/iconv_open-utf-tests (Files): Likewise.
20146         * modules/idpriv-drop-tests (Files): Likewise.
20147         * modules/idpriv-droptemp-tests (Files): Likewise.
20148         * modules/inet_ntop-tests (Files): Likewise.
20149         * modules/inet_pton-tests (Files): Likewise.
20150         * modules/isblank-tests (Files): Likewise.
20151         * modules/isfinite-tests (Files): Likewise.
20152         * modules/isinf-tests (Files): Likewise.
20153         * modules/isnan-tests (Files): Likewise.
20154         * modules/isnand-nolibm-tests (Files): Likewise.
20155         * modules/isnand-tests (Files): Likewise.
20156         * modules/isnanf-nolibm-tests (Files): Likewise.
20157         * modules/isnanf-tests (Files): Likewise.
20158         * modules/isnanl-nolibm-tests (Files): Likewise.
20159         * modules/isnanl-tests (Files): Likewise.
20160         * modules/lchown-tests (Files): Likewise.
20161         * modules/ldexpl-tests (Files): Likewise.
20162         * modules/link-tests (Files): Likewise.
20163         * modules/linkat-tests (Files): Likewise.
20164         * modules/linked-list-tests (Files): Likewise.
20165         * modules/linkedhash-list-tests (Files): Likewise.
20166         * modules/localename-tests (Files): Likewise.
20167         * modules/lseek-tests (Files): Likewise.
20168         * modules/lstat-tests (Files): Likewise.
20169         * modules/mbmemcasecmp-tests (Files): Likewise.
20170         * modules/mbmemcasecoll-tests (Files): Likewise.
20171         * modules/mbrtowc-tests (Files): Likewise.
20172         * modules/mbscasecmp-tests (Files): Likewise.
20173         * modules/mbscasestr-tests (Files): Likewise.
20174         * modules/mbschr-tests (Files): Likewise.
20175         * modules/mbscspn-tests (Files): Likewise.
20176         * modules/mbsinit-tests (Files): Likewise.
20177         * modules/mbsncasecmp-tests (Files): Likewise.
20178         * modules/mbsnrtowcs-tests (Files): Likewise.
20179         * modules/mbspbrk-tests (Files): Likewise.
20180         * modules/mbspcasecmp-tests (Files): Likewise.
20181         * modules/mbsrchr-tests (Files): Likewise.
20182         * modules/mbsrtowcs-tests (Files): Likewise.
20183         * modules/mbsspn-tests (Files): Likewise.
20184         * modules/mbsstr-tests (Files): Likewise.
20185         * modules/memchr-tests (Files): Likewise.
20186         * modules/memchr2-tests (Files): Likewise.
20187         * modules/memcmp-tests (Files): Likewise.
20188         * modules/memmem-tests (Files): Likewise.
20189         * modules/memrchr-tests (Files): Likewise.
20190         * modules/mkdir-tests (Files): Likewise.
20191         * modules/mkfifo-tests (Files): Likewise.
20192         * modules/mkfifoat-tests (Files): Likewise.
20193         * modules/mknod-tests (Files): Likewise.
20194         * modules/nanosleep-tests (Files): Likewise.
20195         * modules/nl_langinfo-tests (Files): Likewise.
20196         * modules/obstack-printf-tests (Files): Likewise.
20197         * modules/open-tests (Files): Likewise.
20198         * modules/openat-tests (Files): Likewise.
20199         * modules/pipe-filter-gi-tests (Files): Likewise.
20200         * modules/pipe-filter-ii-tests (Files): Likewise.
20201         * modules/pipe2-tests (Files): Likewise.
20202         * modules/popen-safer-tests (Files): Likewise.
20203         * modules/popen-tests (Files): Likewise.
20204         * modules/posixtm-tests (Files): Likewise.
20205         * modules/pread-tests (Files): Likewise.
20206         * modules/printf-frexp-tests (Files): Likewise.
20207         * modules/printf-frexpl-tests (Files): Likewise.
20208         * modules/printf-posix-tests (Files): Likewise.
20209         * modules/priv-set-tests (Files): Likewise.
20210         * modules/quotearg-tests (Files): Likewise.
20211         * modules/random_r-tests (Files): Likewise.
20212         * modules/rawmemchr-tests (Files): Likewise.
20213         * modules/rbtree-list-tests (Files): Likewise.
20214         * modules/rbtree-oset-tests (Files): Likewise.
20215         * modules/rbtreehash-list-tests (Files): Likewise.
20216         * modules/readlink-tests (Files): Likewise.
20217         * modules/remove-tests (Files): Likewise.
20218         * modules/rename-tests (Files): Likewise.
20219         * modules/renameat-tests (Files): Likewise.
20220         * modules/rmdir-tests (Files): Likewise.
20221         * modules/round-tests (Files): Likewise.
20222         * modules/roundf-tests (Files): Likewise.
20223         * modules/roundl-tests (Files): Likewise.
20224         * modules/safe-alloc-tests (Files): Likewise.
20225         * modules/setenv-tests (Files): Likewise.
20226         * modules/sigaction-tests (Files): Likewise.
20227         * modules/signbit-tests (Files): Likewise.
20228         * modules/sleep-tests (Files): Likewise.
20229         * modules/snprintf-posix-tests (Files): Likewise.
20230         * modules/snprintf-tests (Files): Likewise.
20231         * modules/sprintf-posix-tests (Files): Likewise.
20232         * modules/stat-tests (Files): Likewise.
20233         * modules/stat-time-tests (Files): Likewise.
20234         * modules/strcasestr-tests (Files): Likewise.
20235         * modules/strchrnul-tests (Files): Likewise.
20236         * modules/strerror-tests (Files): Likewise.
20237         * modules/striconv-tests (Files): Likewise.
20238         * modules/striconveh-tests (Files): Likewise.
20239         * modules/striconveha-tests (Files): Likewise.
20240         * modules/strsignal-tests (Files): Likewise.
20241         * modules/strstr-tests (Files): Likewise.
20242         * modules/strtod-tests (Files): Likewise.
20243         * modules/strverscmp-tests (Files): Likewise.
20244         * modules/symlink-tests (Files): Likewise.
20245         * modules/symlinkat-tests (Files): Likewise.
20246         * modules/trunc-tests (Files): Likewise.
20247         * modules/truncf-tests (Files): Likewise.
20248         * modules/truncl-tests (Files): Likewise.
20249         * modules/uname-tests (Files): Likewise.
20250         * modules/unicase/cased-tests (Files): Likewise.
20251         * modules/unicase/ignorable-tests (Files): Likewise.
20252         * modules/unicase/locale-language-tests (Files): Likewise.
20253         * modules/unicase/tolower-tests (Files): Likewise.
20254         * modules/unicase/totitle-tests (Files): Likewise.
20255         * modules/unicase/toupper-tests (Files): Likewise.
20256         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20257         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20258         * modules/unicase/u8-casefold-tests (Files): Likewise.
20259         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20260         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20261         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20262         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20263         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20264         * modules/unicase/u8-tolower-tests (Files): Likewise.
20265         * modules/unicase/u8-totitle-tests (Files): Likewise.
20266         * modules/unicase/u8-toupper-tests (Files): Likewise.
20267         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20268         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20269         * modules/unicase/u16-casefold-tests (Files): Likewise.
20270         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20271         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20272         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20273         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20274         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20275         * modules/unicase/u16-tolower-tests (Files): Likewise.
20276         * modules/unicase/u16-totitle-tests (Files): Likewise.
20277         * modules/unicase/u16-toupper-tests (Files): Likewise.
20278         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20279         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20280         * modules/unicase/u32-casefold-tests (Files): Likewise.
20281         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20282         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20283         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20284         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20285         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20286         * modules/unicase/u32-tolower-tests (Files): Likewise.
20287         * modules/unicase/u32-totitle-tests (Files): Likewise.
20288         * modules/unicase/u32-toupper-tests (Files): Likewise.
20289         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20290         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20291         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20292         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20293         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20294         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20295         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20296         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20297         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20298         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20299         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20300         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20301         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20302         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20303         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20304         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20305         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20306         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20307         * modules/unictype/block-list-tests (Files): Likewise.
20308         * modules/unictype/block-of-tests (Files): Likewise.
20309         * modules/unictype/block-test-tests (Files): Likewise.
20310         * modules/unictype/category-C-tests (Files): Likewise.
20311         * modules/unictype/category-Cc-tests (Files): Likewise.
20312         * modules/unictype/category-Cf-tests (Files): Likewise.
20313         * modules/unictype/category-Cn-tests (Files): Likewise.
20314         * modules/unictype/category-Co-tests (Files): Likewise.
20315         * modules/unictype/category-Cs-tests (Files): Likewise.
20316         * modules/unictype/category-L-tests (Files): Likewise.
20317         * modules/unictype/category-Ll-tests (Files): Likewise.
20318         * modules/unictype/category-Lm-tests (Files): Likewise.
20319         * modules/unictype/category-Lo-tests (Files): Likewise.
20320         * modules/unictype/category-Lt-tests (Files): Likewise.
20321         * modules/unictype/category-Lu-tests (Files): Likewise.
20322         * modules/unictype/category-M-tests (Files): Likewise.
20323         * modules/unictype/category-Mc-tests (Files): Likewise.
20324         * modules/unictype/category-Me-tests (Files): Likewise.
20325         * modules/unictype/category-Mn-tests (Files): Likewise.
20326         * modules/unictype/category-N-tests (Files): Likewise.
20327         * modules/unictype/category-Nd-tests (Files): Likewise.
20328         * modules/unictype/category-Nl-tests (Files): Likewise.
20329         * modules/unictype/category-No-tests (Files): Likewise.
20330         * modules/unictype/category-P-tests (Files): Likewise.
20331         * modules/unictype/category-Pc-tests (Files): Likewise.
20332         * modules/unictype/category-Pd-tests (Files): Likewise.
20333         * modules/unictype/category-Pe-tests (Files): Likewise.
20334         * modules/unictype/category-Pf-tests (Files): Likewise.
20335         * modules/unictype/category-Pi-tests (Files): Likewise.
20336         * modules/unictype/category-Po-tests (Files): Likewise.
20337         * modules/unictype/category-Ps-tests (Files): Likewise.
20338         * modules/unictype/category-S-tests (Files): Likewise.
20339         * modules/unictype/category-Sc-tests (Files): Likewise.
20340         * modules/unictype/category-Sk-tests (Files): Likewise.
20341         * modules/unictype/category-Sm-tests (Files): Likewise.
20342         * modules/unictype/category-So-tests (Files): Likewise.
20343         * modules/unictype/category-Z-tests (Files): Likewise.
20344         * modules/unictype/category-Zl-tests (Files): Likewise.
20345         * modules/unictype/category-Zp-tests (Files): Likewise.
20346         * modules/unictype/category-Zs-tests (Files): Likewise.
20347         * modules/unictype/category-and-not-tests (Files): Likewise.
20348         * modules/unictype/category-and-tests (Files): Likewise.
20349         * modules/unictype/category-byname-tests (Files): Likewise.
20350         * modules/unictype/category-name-tests (Files): Likewise.
20351         * modules/unictype/category-none-tests (Files): Likewise.
20352         * modules/unictype/category-of-tests (Files): Likewise.
20353         * modules/unictype/category-or-tests (Files): Likewise.
20354         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20355         * modules/unictype/combining-class-tests (Files): Likewise.
20356         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20357         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20358         * modules/unictype/ctype-blank-tests (Files): Likewise.
20359         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20360         * modules/unictype/ctype-digit-tests (Files): Likewise.
20361         * modules/unictype/ctype-graph-tests (Files): Likewise.
20362         * modules/unictype/ctype-lower-tests (Files): Likewise.
20363         * modules/unictype/ctype-print-tests (Files): Likewise.
20364         * modules/unictype/ctype-punct-tests (Files): Likewise.
20365         * modules/unictype/ctype-space-tests (Files): Likewise.
20366         * modules/unictype/ctype-upper-tests (Files): Likewise.
20367         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20368         * modules/unictype/decimal-digit-tests (Files): Likewise.
20369         * modules/unictype/digit-tests (Files): Likewise.
20370         * modules/unictype/mirror-tests (Files): Likewise.
20371         * modules/unictype/numeric-tests (Files): Likewise.
20372         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20373         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20374         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20375         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20376         Likewise.
20377         * modules/unictype/property-bidi-block-separator-tests (Files):
20378         Likewise.
20379         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20380         Likewise.
20381         * modules/unictype/property-bidi-common-separator-tests (Files):
20382         Likewise.
20383         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20384         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20385         Likewise.
20386         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20387         Likewise.
20388         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20389         Likewise.
20390         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20391         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20392         Likewise.
20393         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20394         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20395         Likewise.
20396         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20397         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20398         * modules/unictype/property-bidi-segment-separator-tests (Files):
20399         Likewise.
20400         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20401         * modules/unictype/property-byname-tests (Files): Likewise.
20402         * modules/unictype/property-combining-tests (Files): Likewise.
20403         * modules/unictype/property-composite-tests (Files): Likewise.
20404         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20405         * modules/unictype/property-dash-tests (Files): Likewise.
20406         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20407         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20408         Likewise.
20409         * modules/unictype/property-deprecated-tests (Files): Likewise.
20410         * modules/unictype/property-diacritic-tests (Files): Likewise.
20411         * modules/unictype/property-extender-tests (Files): Likewise.
20412         * modules/unictype/property-format-control-tests (Files): Likewise.
20413         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20414         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20415         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20416         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20417         * modules/unictype/property-hyphen-tests (Files): Likewise.
20418         * modules/unictype/property-id-continue-tests (Files): Likewise.
20419         * modules/unictype/property-id-start-tests (Files): Likewise.
20420         * modules/unictype/property-ideographic-tests (Files): Likewise.
20421         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20422         * modules/unictype/property-ids-trinary-operator-tests (Files):
20423         Likewise.
20424         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20425         * modules/unictype/property-iso-control-tests (Files): Likewise.
20426         * modules/unictype/property-join-control-tests (Files): Likewise.
20427         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20428         * modules/unictype/property-line-separator-tests (Files): Likewise.
20429         * modules/unictype/property-logical-order-exception-tests (Files):
20430         Likewise.
20431         * modules/unictype/property-lowercase-tests (Files): Likewise.
20432         * modules/unictype/property-math-tests (Files): Likewise.
20433         * modules/unictype/property-non-break-tests (Files): Likewise.
20434         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20435         * modules/unictype/property-numeric-tests (Files): Likewise.
20436         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20437         * modules/unictype/property-other-default-ignorable-code-point-tests
20438         (Files): Likewise.
20439         * modules/unictype/property-other-grapheme-extend-tests (Files):
20440         Likewise.
20441         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20442         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20443         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20444         * modules/unictype/property-other-math-tests (Files): Likewise.
20445         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20446         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20447         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20448         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20449         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20450         * modules/unictype/property-private-use-tests (Files): Likewise.
20451         * modules/unictype/property-punctuation-tests (Files): Likewise.
20452         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20453         * modules/unictype/property-radical-tests (Files): Likewise.
20454         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20455         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20456         * modules/unictype/property-space-tests (Files): Likewise.
20457         * modules/unictype/property-terminal-punctuation-tests (Files):
20458         Likewise.
20459         * modules/unictype/property-test-tests (Files): Likewise.
20460         * modules/unictype/property-titlecase-tests (Files): Likewise.
20461         * modules/unictype/property-unassigned-code-value-tests (Files):
20462         Likewise.
20463         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20464         * modules/unictype/property-uppercase-tests (Files): Likewise.
20465         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20466         * modules/unictype/property-white-space-tests (Files): Likewise.
20467         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20468         * modules/unictype/property-xid-start-tests (Files): Likewise.
20469         * modules/unictype/property-zero-width-tests (Files): Likewise.
20470         * modules/unictype/scripts-tests (Files): Likewise.
20471         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20472         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20473         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20474         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20475         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20476         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20477         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20478         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20479         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20480         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20481         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20482         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20483         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20484         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20485         * modules/uninorm/composition-tests (Files): Likewise.
20486         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20487         * modules/uninorm/decomposition-tests (Files): Likewise.
20488         * modules/uninorm/filter-tests (Files): Likewise.
20489         * modules/uninorm/nfc-tests (Files): Likewise.
20490         * modules/uninorm/nfd-tests (Files): Likewise.
20491         * modules/uninorm/nfkc-tests (Files): Likewise.
20492         * modules/uninorm/nfkd-tests (Files): Likewise.
20493         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20494         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20495         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20496         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20497         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20498         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20499         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20500         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20501         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20502         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20503         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20504         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20505         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20506         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20507         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20508         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20509         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20510         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20511         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20512         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20513         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20514         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20515         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20516         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20517         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20518         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20519         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20520         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20521         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20522         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20523         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20524         * modules/uniwidth/u8-width-tests (Files): Likewise.
20525         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20526         * modules/uniwidth/u16-width-tests (Files): Likewise.
20527         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20528         * modules/uniwidth/u32-width-tests (Files): Likewise.
20529         * modules/uniwidth/width-tests (Files): Likewise.
20530         * modules/unlink-tests (Files): Likewise.
20531         * modules/unsetenv-tests (Files): Likewise.
20532         * modules/usleep-tests (Files): Likewise.
20533         * modules/utimens-tests (Files): Likewise.
20534         * modules/utimensat-tests (Files): Likewise.
20535         * modules/vasnprintf-posix-tests (Files): Likewise.
20536         * modules/vasnprintf-tests (Files): Likewise.
20537         * modules/vasprintf-posix-tests (Files): Likewise.
20538         * modules/vasprintf-tests (Files): Likewise.
20539         * modules/vdprintf-posix-tests (Files): Likewise.
20540         * modules/vfprintf-posix-tests (Files): Likewise.
20541         * modules/vprintf-posix-tests (Files): Likewise.
20542         * modules/vsnprintf-posix-tests (Files): Likewise.
20543         * modules/vsnprintf-tests (Files): Likewise.
20544         * modules/vsprintf-posix-tests (Files): Likewise.
20545         * modules/wcrtomb-tests (Files): Likewise.
20546         * modules/wcsnrtombs-tests (Files): Likewise.
20547         * modules/wcsrtombs-tests (Files): Likewise.
20548         * modules/wctype-tests (Files): Likewise.
20549         * modules/wcwidth-tests (Files): Likewise.
20550         * modules/xmemdup0-tests (Files): Likewise.
20551         * modules/xprintf-posix-tests (Files): Likewise.
20552         * modules/xvasprintf-tests (Files): Likewise.
20553
20554 2009-12-24  Eric Blake  <ebb9@byu.net>
20555
20556         test-nanosleep: fix typo
20557         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20558         patch.
20559         Reported by Bruno Haible.
20560
20561 2009-12-24  Bruno Haible  <bruno@clisp.org>
20562
20563         Reduce namespace pollution on glibc systems.
20564         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20565         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20566         systems.
20567         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20568         <getopt.h> on glibc systems.
20569         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20570         systems.
20571         * lib/fcntl.c: Include <unistd.h> here instead.
20572
20573 2009-12-24  Bruno Haible  <bruno@clisp.org>
20574
20575         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20576
20577 2009-12-24  Eric Blake  <ebb9@byu.net>
20578
20579         tests: add signature checks
20580         * tests/signature.h (SIGNATURE_CHECK): New file.
20581         * modules/atexit-tests (Files): Use it.
20582         * modules/btowc-tests (Files): Likewise.
20583         * modules/canonicalize-lgpl-tests (Files): Likewise.
20584         * modules/ceilf-tests (Files): Likewise.
20585         * modules/ceill-tests (Files): Likewise.
20586         * modules/chown-tests (Files): Likewise.
20587         * modules/dprintf-posix-tests (Files): Likewise.
20588         * modules/dup2-tests (Files): Likewise.
20589         * modules/dup3-tests (Files): Likewise.
20590         * modules/duplocale-tests (Files): Likewise.
20591         * modules/fchdir-tests (Files): Likewise.
20592         * modules/fcntl-tests (Files): Likewise.
20593         * modules/fdopendir-tests (Files): Likewise.
20594         * modules/fflush-tests (Files): Likewise.
20595         * modules/flock-tests (Files): Likewise.
20596         * modules/floorf-tests (Files): Likewise.
20597         * modules/floorl-tests (Files): Likewise.
20598         * modules/fnmatch-tests (Files): Likewise.
20599         * modules/fopen-tests (Files): Likewise.
20600         * modules/fprintf-posix-tests (Files): Likewise.
20601         * modules/freopen-tests (Files): Likewise.
20602         * modules/frexp-nolibm-tests (Files): Likewise.
20603         * modules/frexp-tests (Files): Likewise.
20604         * modules/frexpl-nolibm-tests (Files): Likewise.
20605         * modules/frexpl-tests (Files): Likewise.
20606         * modules/fseek-tests (Files): Likewise.
20607         * modules/fseeko-tests (Files): Likewise.
20608         * modules/fsync-tests (Files): Likewise.
20609         * modules/ftell-tests (Files): Likewise.
20610         * modules/ftello-tests (Files): Likewise.
20611         * modules/futimens-tests (Files): Likewise.
20612         * modules/getaddrinfo-tests (Files): Likewise.
20613         * modules/getcwd-tests (Files): Likewise.
20614         * modules/getdelim-tests (Files): Likewise.
20615         * modules/getdtablesize-tests (Files): Likewise.
20616         * modules/getgroups-tests (Files): Likewise.
20617         * modules/gethostname-tests (Files): Likewise.
20618         * modules/getline-tests (Files): Likewise.
20619         * modules/getopt-posix-tests (Files): Likewise.
20620         * modules/gettimeofday-tests (Files): Likewise.
20621         * modules/glob-tests (Files): Likewise.
20622         * modules/iconv-tests (Files): Likewise.
20623         * modules/inet_ntop-tests (Files): Likewise.
20624         * modules/inet_pton-tests (Files): Likewise.
20625         * modules/isblank-tests (Files): Likewise.
20626         * modules/lchown-tests (Files): Likewise.
20627         * modules/ldexpl-tests (Files): Likewise.
20628         * modules/link-tests (Files): Likewise.
20629         * modules/linkat-tests (Files): Likewise.
20630         * modules/lseek-tests (Files): Likewise.
20631         * modules/lstat-tests (Files): Likewise.
20632         * modules/mbrtowc-tests (Files): Likewise.
20633         * modules/mbsinit-tests (Files): Likewise.
20634         * modules/mbsnrtowcs-tests (Files): Likewise.
20635         * modules/mbsrtowcs-tests (Files): Likewise.
20636         * modules/memchr-tests (Files): Likewise.
20637         * modules/memcmp-tests (Files): Likewise.
20638         * modules/memmem-tests (Files): Likewise.
20639         * modules/memrchr-tests (Files): Likewise.
20640         * modules/mkdir-tests (Files): Likewise.
20641         * modules/mkfifo-tests (Files): Likewise.
20642         * modules/mkfifoat-tests (Files): Likewise.
20643         * modules/mknod-tests (Files): Likewise.
20644         * modules/nanosleep-tests (Files): Likewise.
20645         * modules/nl_langinfo-tests (Files): Likewise.
20646         * modules/obstack-printf-tests (Files): Likewise.
20647         * modules/open-tests (Files): Likewise.
20648         * modules/openat-tests (Files): Likewise.
20649         * modules/perror-tests (Files): Likewise.
20650         * modules/pipe2-tests (Files): Likewise.
20651         * modules/poll-tests (Files): Likewise.
20652         * modules/popen-tests (Files): Likewise.
20653         * modules/posix_spawn-tests (Files): Likewise.
20654         * modules/posix_spawnp-tests (Files): Likewise.
20655         * modules/pread-tests (Files): Likewise.
20656         * modules/printf-posix-tests (Files): Likewise.
20657         * modules/pty-tests (Files): Likewise.
20658         * modules/random_r-tests (Files): Likewise.
20659         * modules/rawmemchr-tests (Files): Likewise.
20660         * modules/readlink-tests (Files): Likewise.
20661         * modules/remove-tests (Files): Likewise.
20662         * modules/rename-tests (Files): Likewise.
20663         * modules/renameat-tests (Files): Likewise.
20664         * modules/rmdir-tests (Files): Likewise.
20665         * modules/round-tests (Files): Likewise.
20666         * modules/roundf-tests (Files): Likewise.
20667         * modules/roundl-tests (Files): Likewise.
20668         * modules/select-tests (Files): Likewise.
20669         * modules/setenv-tests (Files): Likewise.
20670         * modules/sigaction-tests (Files): Likewise.
20671         * modules/sleep-tests (Files): Likewise.
20672         * modules/snprintf-posix-tests (Files): Likewise.
20673         * modules/snprintf-tests (Files): Likewise.
20674         * modules/sprintf-posix-tests (Files): Likewise.
20675         * modules/stat-tests (Files): Likewise.
20676         * modules/strcasestr-tests (Files): Likewise.
20677         * modules/strchrnul-tests (Files): Likewise.
20678         * modules/strerror-tests (Files): Likewise.
20679         * modules/strsignal-tests (Files): Likewise.
20680         * modules/strstr-tests (Files): Likewise.
20681         * modules/strtod-tests (Files): Likewise.
20682         * modules/strverscmp-tests (Files): Likewise.
20683         * modules/symlink-tests (Files): Likewise.
20684         * modules/symlinkat-tests (Files): Likewise.
20685         * modules/times-tests (Files): Likewise.
20686         * modules/trunc-tests (Files): Likewise.
20687         * modules/truncf-tests (Files): Likewise.
20688         * modules/truncl-tests (Files): Likewise.
20689         * modules/tsearch-tests (Files): Likewise.
20690         * modules/uname-tests (Files): Likewise.
20691         * modules/unlink-tests (Files): Likewise.
20692         * modules/unsetenv-tests (Files): Likewise.
20693         * modules/usleep-tests (Files): Likewise.
20694         * modules/utimensat-tests (Files): Likewise.
20695         * modules/vasprintf-tests (Files): Likewise.
20696         * modules/vdprintf-posix-tests (Files): Likewise.
20697         * modules/vfprintf-posix-tests (Files): Likewise.
20698         * modules/vprintf-posix-tests (Files): Likewise.
20699         * modules/vsnprintf-posix-tests (Files): Likewise.
20700         * modules/vsnprintf-tests (Files): Likewise.
20701         * modules/vsprintf-posix-tests (Files): Likewise.
20702         * modules/wcrtomb-tests (Files): Likewise.
20703         * modules/wcsnrtombs-tests (Files): Likewise.
20704         * modules/wcsrtombs-tests (Files): Likewise.
20705         * modules/wcwidth-tests (Files): Likewise.
20706         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20707         * tests/test-isinf.c (isinf): Likewise.
20708         * tests/test-isnan.c (isnan): Likewise.
20709         * tests/test-signbit.c (signbit): Likewise.
20710         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20711         declaration, either as macro or with correct signature.
20712         (select): Ensure function under test is declared with correct
20713         signature in correct header.
20714         * tests/test-atexit.c (atexit): Likewise.
20715         * tests/test-btowc.c (btowc): Likewise.
20716         * tests/test-canonicalize-lgpl.c (realpath)
20717         (canonicalize_file_name): Likewise.
20718         * tests/test-ceilf1.c (ceilf): Likewise.
20719         * tests/test-ceill.c (ceill): Likewise.
20720         * tests/test-chown.c (chown): Likewise.
20721         * tests/test-dprintf-posix.c (dprintf): Likewise.
20722         * tests/test-dup2.c (dup2): Likewise.
20723         * tests/test-dup3.c (dup3): Likewise.
20724         * tests/test-duplocale.c (duplocale): Likewise.
20725         * tests/test-fchdir.c (fchdir): Likewise.
20726         * tests/test-fchownat.c (fchownat): Likewise.
20727         * tests/test-fcntl.c (fcntl): Likewise.
20728         * tests/test-fdopendir.c (fdopendir): Likewise.
20729         * tests/test-fflush.c (fflush): Likewise.
20730         * tests/test-flock.c (flock): Likewise.
20731         * tests/test-floorf1.c (floorf): Likewise.
20732         * tests/test-floorl.c (floorl): Likewise.
20733         * tests/test-fnmatch.c (fnmatch): Likewise.
20734         * tests/test-fopen.c (fopen): Likewise.
20735         * tests/test-fprintf-posix.c (fprintf): Likewise.
20736         * tests/test-freopen.c (freopen): Likewise.
20737         * tests/test-frexp.c (frexp): Likewise.
20738         * tests/test-frexpl.c (frexpl): Likewise.
20739         * tests/test-fseek.c (fseek): Likewise.
20740         * tests/test-fseeko.c (fseeko): Likewise.
20741         * tests/test-fstatat.c (fstatat): Likewise.
20742         * tests/test-fsync.c (fsync): Likewise.
20743         * tests/test-ftell.c (ftell): Likewise.
20744         * tests/test-ftello.c (ftello): Likewise.
20745         * tests/test-futimens.c (futimens): Likewise.
20746         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20747         (gai_strerror): Likewise.
20748         * tests/test-getcwd.c (getcwd): Likewise.
20749         * tests/test-getdelim.c (getdelim): Likewise.
20750         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20751         * tests/test-getgroups.c (getgroups): Likewise.
20752         * tests/test-gethostname.c (gethostname): Likewise.
20753         * tests/test-getline.c (getline): Likewise.
20754         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20755         Likewise.
20756         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20757         * tests/test-glob.c (glob, globfree): Likewise.
20758         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20759         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20760         * tests/test-inet_pton.c (inet_pton): Likewise.
20761         * tests/test-isblank.c (isblank): Likewise.
20762         * tests/test-lchown.c (lchown): Likewise.
20763         * tests/test-ldexpl.c (ldexpl): Likewise.
20764         * tests/test-link.c (link): Likewise.
20765         * tests/test-linkat.c (linkat): Likewise.
20766         * tests/test-lseek.c (lseek): Likewise.
20767         * tests/test-lstat.c (lstat): Likewise.
20768         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20769         * tests/test-mbsinit.c (mbsinit): Likewise.
20770         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20771         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20772         * tests/test-memchr.c (memchr): Likewise.
20773         * tests/test-memcmp.c (memcmp): Likewise.
20774         * tests/test-memmem.c (memmem): Likewise.
20775         * tests/test-memrchr.c (memrchr): Likewise.
20776         * tests/test-mkdir.c (mkdir): Likewise.
20777         * tests/test-mkdirat.c (mkdirat): Likewise.
20778         * tests/test-mkfifo.c (mkfifo): Likewise.
20779         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20780         * tests/test-mknod.c (mknod): Likewise.
20781         * tests/test-nanosleep.c (nanosleep): Likewise.
20782         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20783         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20784         Likewise.
20785         * tests/test-open.c (open): Likewise.
20786         * tests/test-openat.c (openat): Likewise.
20787         * tests/test-perror.c (perror): Likewise.
20788         * tests/test-pipe2.c (pipe2): Likewise.
20789         * tests/test-poll.c (poll): Likewise.
20790         * tests/test-popen.c (popen, pclose): Likewise.
20791         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20792         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20793         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20794         (posix_spawn_file_actions_destroy)
20795         (posix_spawn_file_actions_addclose)
20796         (posix_spawn_file_actions_addopen)
20797         (posix_spawn_file_actions_adddup2): Likewise.
20798         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20799         * tests/test-pread.c (pread): Likewise.
20800         * tests/test-printf-posix.c (printf): Likewise.
20801         * tests/test-pty.c (openpty, forkpty): Likewise.
20802         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20803         (random_r): Likewise.
20804         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20805         * tests/test-readlink.c (readlink): Likewise.
20806         * tests/test-remove.c (remove): Likewise.
20807         * tests/test-rename.c (rename): Likewise.
20808         * tests/test-renameat.c (renameat): Likewise.
20809         * tests/test-rmdir.c (rmdir): Likewise.
20810         * tests/test-round1.c (round): Likewise.
20811         * tests/test-roundf1.c (roundf): Likewise.
20812         * tests/test-roundl.c (roundl): Likewise.
20813         * tests/test-setenv.c (setenv): Likewise.
20814         * tests/test-sigaction.c (sigaction): Likewise.
20815         * tests/test-sleep.c (sleep): Likewise.
20816         * tests/test-snprintf.c (snprintf): Likewise.
20817         * tests/test-sprintf-posix.c (sprintf): Likewise.
20818         * tests/test-stat.c (stat): Likewise.
20819         * tests/test-stpncpy.c (stpncpy): Likewise.
20820         * tests/test-strcasestr.c (strcasestr): Likewise.
20821         * tests/test-strchrnul.c (strchrnul): Likewise.
20822         * tests/test-strerror.c (strerror): Likewise.
20823         * tests/test-strsignal.c (strsignal): Likewise.
20824         * tests/test-strstr.c (strstr): Likewise.
20825         * tests/test-strtod.c (strtod): Likewise.
20826         * tests/test-strverscmp.c (strverscmp): Likewise.
20827         * tests/test-symlink.c (symlink): Likewise.
20828         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20829         * tests/test-times.c (times): Likewise.
20830         * tests/test-trunc1.c (trunc): Likewise.
20831         * tests/test-truncf1.c (truncf): Likewise.
20832         * tests/test-truncl.c (truncl): Likewise.
20833         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20834         Likewise.
20835         * tests/test-uname.c (uname): Likewise.
20836         * tests/test-unlink.c (unlink): Likewise.
20837         * tests/test-unlinkat.c (unlinkat): Likewise.
20838         * tests/test-unsetenv.c (unsetenv): Likewise.
20839         * tests/test-usleep.c (usleep): Likewise.
20840         * tests/test-utimensat.c (utimensat): Likewise.
20841         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20842         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20843         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20844         * tests/test-vprintf-posix.c (vprintf): Likewise.
20845         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20846         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20847         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20848         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20849         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20850         * tests/test-wcwidth.c (wcwidth): Likewise.
20851
20852         build: pull in conditional headers during GNULIB_POSIXCHECK
20853         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20854         definitions from any conditionally-included headers.
20855         * lib/stdlib.in.h (includes): Likewise.
20856         * lib/unistd.in.h (includes): Likewise.
20857
20858 2009-12-24  Bruno Haible  <bruno@clisp.org>
20859
20860         * tests/test-argv-iter.c: Include header file being tested immediately
20861         after config.h.
20862         * tests/test-base64.c: Likewise.
20863         * tests/test-flock.c: Likewise.
20864         * tests/test-fsync.c: Likewise.
20865         * tests/test-getdate.c: Likewise.
20866         * tests/test-getndelim2.c: Likewise.
20867         * tests/test-isfinite.c: Likewise.
20868         * tests/test-isinf.c: Likewise.
20869         * tests/test-strerror.c: Likewise.
20870         * tests/test-strsignal.c: Likewise.
20871
20872 2009-12-23  Eric Blake  <ebb9@byu.net>
20873
20874         unistd: work around cygwin bug
20875         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20876         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20877         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20878
20879 2009-12-23  Bruno Haible  <bruno@clisp.org>
20880
20881         localename: More tests.
20882         * tests/test-localename.c (SIZEOF): New macro.
20883         (categories): New variable.
20884         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20885         test_locale_name_default): Add test w.r.t. thread locale.
20886         (test_locale_name_thread): New function.
20887         (main): Invoke it.
20888
20889         localename: Make aware of thread locale.
20890         * lib/localename.h (gl_locale_name_thread): New declaration.
20891         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20892         behaviour with respect to thread locale.
20893         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20894         <langinfo.h>, glthread/lock.h.
20895         (SIZE_BITS): New macro.
20896         (string_hash): New function.
20897         (struct hash_node): New type.
20898         (HASH_TABLE_SIZE): New macro.
20899         (struniq_hash_table, struniq_lock): New variables.
20900         (struniq): New function.
20901         (gl_locale_name_thread): New function.
20902         (gl_locale_name): Invoke it.
20903         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20904         * modules/localename (Depends-on): Add lock.
20905         Reported by Mike Gran <spk121@yahoo.com>.
20906
20907 2009-12-23  Eric Blake  <ebb9@byu.net>
20908
20909         va-args: new module
20910         * modules/va-args: New file.
20911         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20912         * MODULES.html.sh (Core language properties): Mention it.
20913
20914         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20915         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20916         named alias for __attribute__((__unused__)).
20917         * lib/chown.c: Update client.
20918         * lib/fchmodat.c: Likewise.
20919         * lib/fts.c: Likewise.
20920         * lib/getdate.y: Likewise.
20921         * lib/getgroups.c: Likewise.
20922         * lib/getopt.c: Likewise.
20923         * lib/getugroups.c: Likewise.
20924         * lib/mkdir.c: Likewise.
20925         * lib/mkfifo.c: Likewise.
20926         * lib/mkfifoat.c: Likewise.
20927         * lib/mknod.c: Likewise.
20928         * lib/mknodat.c: Likewise.
20929         * lib/readlink.c: Likewise.
20930         * lib/se-context.in.h: Likewise.
20931         * lib/se-selinux.in.h: Likewise.
20932         * lib/sockets.c: Likewise.
20933         * lib/symlink.c: Likewise.
20934         * lib/symlinkat.c: Likewise.
20935         * lib/unicodeio.c: Likewise.
20936         * lib/unistr.h: Likewise.
20937         * tests/test-areadlink.c: Likewise.
20938         * tests/test-areadlinkat.c: Likewise.
20939         * tests/test-filenamecat.c: Likewise.
20940         * tests/test-fseeko.c: Likewise.
20941         * tests/test-ftello.c: Likewise.
20942         * tests/test-getdate.c: Likewise.
20943         * tests/test-getgroups.c: Likewise.
20944         * tests/test-gethostname.c: Likewise.
20945         * tests/test-quotearg.c: Likewise.
20946         * tests/test-version-etc.c: Likewise.
20947         * tests/test-xalloc-die.c: Likewise.
20948         * tests/test-xfprintf-posix.c: Likewise.
20949         * tests/test-xprintf-posix.c: Likewise.
20950         * tests/test-xvasprintf.c: Likewise.
20951
20952         tests: avoid compiler warnings
20953         * tests/test-fcntl.c (main): Delete unused parameters.
20954         * tests/test-freopen-safer.c (main): Likewise.
20955         * tests/test-xalloc-die.c (main): Mark unused parameters.
20956         * tests/test-fseeko.c (main): Likewise.
20957         * tests/test-ftello.c (main): Likewise.
20958         * tests/test-nanosleep.c (main): Avoid declaration warning.
20959         * tests/test-sleep.c (main): Likewise.
20960         * tests/test-unsetenv.c (main): Silence warning about string
20961         literal.
20962         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20963
20964 2009-12-23  Bruno Haible  <bruno@clisp.org>
20965
20966         * tests/test-localename.c (test_locale_name): New function, extracted
20967         from main. Also test mixed situations.
20968         (test_locale_name_posix, test_locale_name_environ,
20969         test_locale_name_default): New functions.
20970         (main): Invoke them all.
20971         * modules/localename-tests (configure.ac): Test for newlocale.
20972
20973 2009-12-23  Bruno Haible  <bruno@clisp.org>
20974
20975         unistd: Ensure getcwd gets declared before being overridden.
20976         * lib/unistd.in.h: Conditionally include <io.h>.
20977
20978 2009-12-22  Bruno Haible  <bruno@clisp.org>
20979
20980         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20981         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20982         (gl_WCHAR_H): Invoke it.
20983         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20984         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20985         Reported by Karl Berry <karl@freefriends.org>.
20986
20987 2009-12-22  Eric Blake  <ebb9@byu.net>
20988
20989         math, unistd: avoid redundant includes
20990         * lib/math.in.h (isnan): No need to re-include <math.h>.
20991         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20992
20993         getsubopt: work around cygwin bug
20994         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20995         avoid conflicting with system getsubopt.
20996         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20997         bug.
20998
20999         getopt: synchronize from glibc
21000         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
21001         parameter order.  Adjust all callers.
21002         (_getopt_internal_r, main): Adjust quoting in error messages.
21003         Drop considerations for outdated POSIX 1003.2 error message.
21004         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
21005         callers.
21006         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
21007
21008         test-getopt: test stderr behavior
21009         * modules/getopt-posix-tests (Depends-on): Add dup2.
21010         * tests/test-getopt.c (ASSERT): Avoid stderr.
21011         (main): Move stderr to a temporary file.
21012         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
21013         Instead, add parameter to inform caller if output occurred.
21014         (test_getopt): Adjust all existing tests to expect silence, and
21015         add new tests of leading ":".
21016         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21017         glibc shortcomings with leading "-:" or "+:" in optstring.
21018         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21019         Likewise.
21020         * doc/posix-functions/getopt.texi (getopt): Likewise.
21021
21022         test-getopt: enhance test
21023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
21024         supports optind=0.
21025         * tests/test-getopt.c (OPTIND_MIN): Move...
21026         * tests/test-getopt.h (OPTIND_MIN): ...here.
21027         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
21028         Require that optind=0 works, since modern BSD supports it in
21029         addition to optreset, and since coreutils expects it.
21030         (test_getopt_long_only): New test.
21031         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
21032         glibc shortcomings with 'W;', and enforcement of optind=0.
21033         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
21034         Likewise.
21035
21036 2009-12-21  Bruno Haible  <bruno@clisp.org>
21037
21038         localename: Improvements for MacOS X and Cygwin.
21039         * lib/localename.h (gl_locale_name_environ): New declaration.
21040         * lib/localename.c (gl_locale_name_environ): New function, extracted from
21041         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
21042         (gl_locale_name_posix): Invoke it.
21043         (gl_locale_name_default): Add comments. Use Windows native API also on
21044         Cygwin.
21045
21046 2009-12-21  Bruno Haible  <bruno@clisp.org>
21047
21048         Update list of Win32 locale ids.
21049         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
21050         (LANG_SAMI): Renamed from LANG_SAAMI.
21051         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
21052         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
21053         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21054         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21055         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21056         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21057         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21058         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21059         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21060         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21061         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21062         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21063         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21064         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21065         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21066         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21067         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21068         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21069         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21070         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21071         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21072         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21073         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21074         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21075         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21076         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21077         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21078         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21079         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21080         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21081         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21082         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21083         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21084         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21085         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21086         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21087         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21088         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21089         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21090         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21091         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21092         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21093         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21094         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21095         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21096         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21097         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21098         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21099         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21100         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21101         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21102         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21103         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21104         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21105         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21106         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21107         Add more languages and countries for Sami, Sorbian. Add more countries
21108         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21109         for Pashto. Change country for Syriac, Tswana.
21110
21111 2009-12-21  Eric Blake  <ebb9@byu.net>
21112
21113         test-utimens: avoid spurious failure
21114         * tests/test-chown.h (nap): Factor...
21115         * tests/nap.h: ...into new file.
21116         * tests/test-lchown.h (nap): Avoid duplication.
21117         * tests/test-utimens-common.h (nap): Use shared implementation,
21118         necessary on file systems with 1-second resolution.
21119         * modules/chown-tests (Files): Include new file.
21120         * modules/fdutimensat-tests (Files): Likewise.
21121         * modules/futimens-tests (Files): Likewise.
21122         * modules/lchown-tests (Files): Likewise.
21123         * modules/openat-tests (Files): Likewise.
21124         * modules/utimens-tests (Files): Likewise.
21125         * modules/utimensat-tests (Files): Likewise.
21126
21127 2009-12-19  Eric Blake  <ebb9@byu.net>
21128
21129         futimens, utimensat: work around Linux bug
21130         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21131         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21132         * lib/utimensat.c (rpl_utimensat): Work around it.
21133         * lib/futimens.c (rpl_futimens): Adjust comment.
21134
21135         utimens: work around Linux ctime bug
21136         * lib/utimens.c (detect_ctime_bug): New helper function.
21137         (update_timespec): Differentiate between workaround needed for
21138         this bug vs. what is needed for systems that lack utimensat.
21139         (fdutimens, lutimens): Work around bug.
21140
21141         utimens: check for ctime update
21142         * tests/test-utimens-common.h (check_ctime): Define.
21143         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21144         * tests/test-futimens.h (test_futimens): Likewise.
21145         * tests/test-lutimens.h (test_lutimens): Likewise.
21146         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21147         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21148
21149 2009-12-19  Bruno Haible  <bruno@clisp.org>
21150
21151         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21152         * tests/test-dprintf-posix2.sh: New file.
21153         * tests/test-dprintf-posix2.c: New file.
21154         * modules/dprintf-posix-tests (Files): Add them.
21155         (configure.ac): Check for getrlimit and setrlimit.
21156         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21157
21158 2009-12-19  Bruno Haible  <bruno@clisp.org>
21159
21160         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21161         * tests/test-fprintf-posix3.sh: New file.
21162         * tests/test-fprintf-posix3.c: New file.
21163         * modules/fprintf-posix-tests (Files): Add them.
21164         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21165
21166 2009-12-19  Eric Blake  <ebb9@byu.net>
21167
21168         dirfd: fix prototype
21169         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21170         * lib/dirfd.c (dirfd): Likewise.
21171
21172         canonicalize: reduce memory usage
21173         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21174         allocation to size.
21175         Reported by Solar Designer <solar@openwall.com>.
21176
21177 2009-12-19  Bruno Haible  <bruno@clisp.org>
21178
21179         New module attribute 'Applicability'.
21180         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21181         * gnulib-tool: New option --extract-applicability.
21182         (func_usage): Document it.
21183         (sed_extract_prog): Recognize it.
21184         (func_get_applicability): New function.
21185         (func_import): Generalize handling of 'link-warning' module.
21186         * modules/link-warning (Applicability): New section.
21187         * modules/arg-nonnull (Applicability): New section.
21188         Repoted by Simon Josefsson <simon@josefsson.org>.
21189
21190 2009-12-19  Bruno Haible  <bruno@clisp.org>
21191
21192         fflush: tweak
21193         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21194         * lib/fseeko.c (rpl_fseeko): Likewise.
21195
21196 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21197
21198         * lib/gl_list.h: Fix typo in comment.
21199
21200 2009-12-16  Eric Blake  <ebb9@byu.net>
21201
21202         fcntl: use to simplify other modules
21203         * modules/cloexec (Depends-on): Add fcntl.
21204         * modules/fchdir (Depends-on): Likewise.
21205         * modules/fd-safer-flag (Depends-on): Likewise.
21206         * modules/unistd-safer (Depends-on): Likewise.
21207         * modules/dup3 (configure.ac): Set module indicator.
21208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21209         missing.
21210         * lib/fchdir.c (_gl_register_dup): Fix comment.
21211         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21212         * lib/dup-safer.c (dup_safer): Likewise.
21213         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21214         * lib/dup3.c (dup3): Likewise.
21215         * tests/test-fchdir.c (main): Enhance test.
21216         Fixes a dup_cloexec bug reported by Ondřej Vašík.
21217
21218         fcntl: port portions of fcntl to mingw
21219         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21220         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21221         replacement for mingw.
21222         * modules/fcntl (Description): Update.
21223         (Depends-on): Add dup2.
21224         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21225         * modules/fcntl-h (Makefile.am): Substitute it.
21226         * lib/fcntl.in.h (fcntl): Update declaration.
21227         (F_DUPFD, F_GETFD): New macros, when needed.
21228         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21229         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21230         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21231         we now guarantee.
21232
21233         fcntl: work around cygwin bug in F_DUPFD
21234         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21235         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21236         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21237         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21238         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21239
21240         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21241         * modules/fcntl (Files): List new files.
21242         (configure.ac): Run a test.
21243         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21244         * lib/fcntl.c (rpl_fcntl): Likewise.
21245         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21246         (gl_FCNTL_H): Always replace fcntl.h.
21247         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21248         * lib/fcntl.in.h (fcntl): Declare replacement.
21249         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21250         needed, plus a witness.
21251         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21252         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21253         * tests/test-fcntl.c: New file.
21254         * modules/fcntl-tests: Likewise.
21255
21256         binary-io: avoid potential compilation warning
21257         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21258         directives.
21259
21260         fflush: avoid compilation error on NetBSD
21261         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21262         between off_t and fpos_t, since the latter is sometimes a struct.
21263         * lib/fseeko.c (rpl_fseeko): Likewise.
21264         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21265
21266 2009-12-15  Eric Blake  <ebb9@byu.net>
21267
21268         fcntl-h, stdio, sys_ioctl: fix declarations
21269         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21270         function must not take arguments.
21271         * lib/sys_ioctl.in.h (ioctl): Likewise.
21272         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21273         (open): Add a link warning.
21274
21275 2009-12-15  Jim Meyering  <meyering@redhat.com>
21276
21277         areadlink, areadlink-with-size: relax license to LGPLv2+
21278         * modules/areadlink (License): Relax to LGPLv2+.
21279         * modules/areadlink-with-size (License): Likewise.
21280
21281 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21282             Bruno Haible  <bruno@clisp.org>
21283
21284         *printf: Fix memory leak.
21285         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21286         * lib/vfprintf.c (vfprintf): Likewise.
21287         * lib/dprintf.c (dprintf): Likewise.
21288         * lib/vdprintf.c (vdprintf): Likewise.
21289
21290 2009-12-14  Eric Blake  <ebb9@byu.net>
21291
21292         accept4: adjust module dependencies
21293         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21294
21295         utimens: one more try at avoiding compiler warning
21296         * lib/utimens.c (lutimens): Lower scope of result.
21297
21298 2009-12-13  Bruno Haible  <bruno@clisp.org>
21299
21300         Move the malloc checking from module 'list' to new module 'xlist'.
21301         * modules/xlist: New file.
21302         * lib/gl_xlist.h: New file.
21303         * lib/gl_xlist.c: New file.
21304         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21305         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21306         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21307         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21308         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21309         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21310         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21311         gl_sortedlist_nx_add): New declarations.
21312         (struct gl_list_implementation): Rename and change methods accordingly.
21313         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21314         (gl_list_nx_create): Renamed from gl_list_create.
21315         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21316         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21317         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21318         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21319         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21320         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21321         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21322         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21323         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21324         gl_list_create_empty.
21325         (gl_list_nx_create): Renamed from gl_list_create.
21326         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21327         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21328         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21329         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21330         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21331         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21332         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21333         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21334         * lib/gl_array_list.c: Don't include xalloc.h.
21335         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21336         NULL upon out-of-memory.
21337         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21338         out-of-memory.
21339         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21340         Change return type to 'int'.
21341         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21342         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21343         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21344         upon out-of-memory.
21345         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21346         upon out-of-memory.
21347         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21348         upon out-of-memory.
21349         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21350         upon out-of-memory.
21351         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21352         out-of-memory.
21353         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21354         Update.
21355         (gl_array_list_implementation): Update.
21356         * lib/gl_carray_list.c: Don't include xalloc.h.
21357         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21358         Return NULL upon out-of-memory.
21359         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21360         out-of-memory.
21361         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21362         Change return type to 'int'.
21363         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21364         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21365         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21366         upon out-of-memory.
21367         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21368         upon out-of-memory.
21369         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21370         out-of-memory.
21371         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21372         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21373         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21374         Update.
21375         (gl_carray_list_implementation): Update.
21376         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21377         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21378         gl_linked_create_empty. Return NULL upon out-of-memory.
21379         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21380         out-of-memory.
21381         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21382         Change return type to 'int'. Return -1 upon out-of-memory.
21383         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21384         out-of-memory.
21385         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21386         upon out-of-memory.
21387         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21388         upon out-of-memory.
21389         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21390         NULL upon out-of-memory.
21391         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21392         upon out-of-memory.
21393         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21394         out-of-memory.
21395         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21396         Update.
21397         * lib/gl_linked_list.c: Don't include xalloc.h.
21398         (gl_linked_list_implementation): Update.
21399         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21400         (add_to_bucket): Change return type to 'int'.
21401         (gl_linkedhash_list_implementation): Update.
21402         * lib/gl_anytree_list1.h (free_subtree): New function.
21403         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21404         gl_tree_create_empty. Return NULL upon out-of-memory.
21405         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21406         Change return type to 'int'. Return -1 upon out-of-memory.
21407         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21408         out-of-memory.
21409         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21410         (gl_tree_remove_node): New function, moved here from
21411         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21412         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21413         Update.
21414         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21415         malloc, not xmalloc. Return NULL upon out-of-memory.
21416         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21417         out-of-memory.
21418         (gl_tree_remove_node_from_tree): New function, extracted from
21419         gl_tree_remove_node.
21420         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21421         upon out-of-memory.
21422         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21423         out-of-memory.
21424         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21425         upon out-of-memory.
21426         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21427         upon out-of-memory.
21428         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21429         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21430         not xmalloc. Return NULL upon out-of-memory.
21431         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21432         out-of-memory.
21433         (gl_tree_remove_node_from_tree): New function, extracted from
21434         gl_tree_remove_node.
21435         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21436         upon out-of-memory.
21437         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21438         out-of-memory.
21439         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21440         upon out-of-memory.
21441         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21442         upon out-of-memory.
21443         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21444         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21445         gl_anytree_list1.h before gl_anyavltree_list2.h.
21446         (gl_avltree_list_implementation): Update.
21447         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21448         gl_anytree_list1.h before gl_anyavltree_list2.h.
21449         (gl_rbtree_list_implementation): Update.
21450         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21451         Change return type to 'int'. Return -1 upon out-of-memory. Use
21452         __builtin_expect.
21453         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21454         (gl_avltreehash_list_implementation): Update.
21455         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21456         (gl_rbtreehash_list_implementation): Update.
21457         * modules/array-list (Depends-on): Remove xalloc.
21458         * modules/carray-list (Depends-on): Likewise.
21459         * modules/linked-list (Depends-on): Likewise.
21460         * modules/linkedhash-list (Depends-on): Likewise.
21461         * modules/avltree-list (Depends-on): Likewise.
21462         * modules/rbtree-list (Depends-on): Likewise.
21463         * modules/avltreehash-list (Depends-on): Likewise.
21464         * modules/rbtreehash-list (Depends-on): Likewise.
21465
21466         * modules/xsublist: New file.
21467         * lib/gl_xsublist.h: New file.
21468         * lib/gl_xsublist.c: New file.
21469         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21470         (gl_sublist_nx_create): New declaration.
21471         * lib/gl_sublist.c: Don't include xalloc.h.
21472         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21473         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21474         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21475         Change return type to 'int'. Return -1 upon out-of-memory.
21476         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21477         upon out-of-memory.
21478         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21479         NULL upon out-of-memory.
21480         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21481         upon out-of-memory.
21482         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21483         NULL upon out-of-memory.
21484         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21485         NULL upon out-of-memory.
21486         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21487         upon out-of-memory.
21488         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21489         (gl_sublist_list_implementation): Update.
21490         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21491         upon out-of-memory.
21492         * modules/sublist (Depends-on): Remove xalloc.
21493
21494         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21495         * tests/test-carray_list.c: Likewise.
21496         * tests/test-linked_list.c: Likewise.
21497         * tests/test-linkedhash_list.c: Likewise.
21498         * tests/test-avltree_list.c: Likewise.
21499         * tests/test-rbtree_list.c: Likewise.
21500         * tests/test-avltreehash_list.c: Likewise.
21501         * tests/test-rbtreehash_list.c: Likewise.
21502         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21503         * modules/carray-list-tests (Makefile.am): Likewise.
21504         * modules/linked-list-tests (Makefile.am): Likewise.
21505         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21506         * modules/avltree-list-tests (Makefile.am): Likewise.
21507         * modules/rbtree-list-tests (Makefile.am): Likewise.
21508         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21509         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21510
21511         * NEWS: Mention the changes.
21512
21513         * lib/clean-temp.c: Include gl_xlist.h.
21514         * modules/clean-temp (Depends-on): Add xlist.
21515
21516         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21517         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21518
21519         * tests/test-array_oset.c: Include gl_xlist.h.
21520         * modules/array-oset-tests (Depends-on): Add xlist.
21521
21522         Reported by José E. Marchesi <jemarch@gnu.org>.
21523
21524 2009-12-13  Bruno Haible  <bruno@clisp.org>
21525
21526         Move the malloc checking from module 'oset' to new module 'xoset'.
21527         * modules/xoset: New file.
21528         * lib/gl_xoset.h: New file.
21529         * lib/gl_xoset.c: New file.
21530         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21531         declarations.
21532         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21533         (struct gl_oset_implementation): Rename and change methods accordingly.
21534         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21535         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21536         'int'. Mark as __warn_unused_result__.
21537         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21538         gl_oset_create_empty.
21539         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21540         'int'.
21541         * lib/gl_array_oset.c: Don't include xalloc.h.
21542         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21543         malloc, not xmalloc.
21544         (grow): Change return type to 'int'. Don't call xalloc_die.
21545         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21546         to 'int'.
21547         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21548         'int'.
21549         (gl_array_oset_implementation): Update.
21550         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21551         gl_tree_create_empty.
21552         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21553         'int'.
21554         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21555         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21556         xmalloc.
21557         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21558         not xmalloc.
21559         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21560         xmalloc.
21561         (gl_avltree_oset_implementation): Update.
21562         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21563         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21564         xmalloc.
21565         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21566         not xmalloc.
21567         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21568         xmalloc.
21569         (gl_rbtree_oset_implementation): Update.
21570         * modules/array-oset (Depends-on): Remove xalloc.
21571         * modules/avltree-oset (Depends-on): Likewise.
21572         * modules/rbtree-oset (Depends-on): Likewise.
21573         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21574         * tests/test-avltree_oset.c: Likewise.
21575         * tests/test-rbtree_oset.c: Likewise.
21576         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21577         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21578         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21579         * NEWS: Mention the change.
21580
21581 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21582
21583         maint.mk: allow a project to override release-prep commands
21584         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21585         commands into a new rule.
21586         (release-prep): New rule.
21587         (release-prep-hook): New overridable variable.
21588
21589 2009-12-13  Bruno Haible  <bruno@clisp.org>
21590
21591         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21592
21593 2009-12-13  Jim Meyering  <meyering@redhat.com>
21594
21595         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21596         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21597
21598 2009-12-12  Bruno Haible  <bruno@clisp.org>
21599
21600         duplocale: Tweak.
21601         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21602
21603 2009-12-12  Karl Berry  <karl@gnu.org>
21604
21605         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21606
21607 2009-12-12  Bruno Haible  <bruno@clisp.org>
21608
21609         * m4/po.m4: Undo incorrect untabification.
21610
21611 2009-12-12  Bruno Haible  <bruno@clisp.org>
21612
21613         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21614         * modules/c-strtod (Depends-on): Add locale.
21615         * modules/c-strtold (Depends-on): Likewise.
21616
21617 2009-12-12  Bruno Haible  <bruno@clisp.org>
21618
21619         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21620
21621 2009-12-11  Eric Blake  <ebb9@byu.net>
21622
21623         setenv: relax requirement in light of POSIX ruling
21624         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21625         not NULL.
21626         * tests/test-setenv.c (main): Relax test.
21627         * tests/test-unsetenv.c (main): Likewise.
21628         * doc/posix-functions/setenv.texi (setenv): Document this.
21629         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21630
21631 2009-12-11  Bruno Haible  <bruno@clisp.org>
21632
21633         New module 'fd-safer-flag'.
21634         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21635         * lib/dup-safer.c (dup_safer_flag): Remove function.
21636         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21637         * lib/fd-safer.c (fd_safer_flag): Remove function.
21638         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21639         * modules/cloexec (configure.ac): Drop indicator macro.
21640         * modules/fd-safer-flag: New file.
21641         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21642         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21643         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21644
21645 2009-12-11  Bruno Haible  <bruno@clisp.org>
21646
21647         Tests for module 'nl_langinfo'.
21648         * modules/nl_langinfo-tests: New file.
21649         * tests/test-nl_langinfo.sh: New file.
21650         * tests/test-nl_langinfo.c: New file.
21651
21652         New module 'nl_langinfo'.
21653         * lib/nl_langinfo.c: New file.
21654         * m4/nl_langinfo.m4: New file.
21655         * modules/nl_langinfo: New file.
21656         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21657
21658 2009-12-11  Bruno Haible  <bruno@clisp.org>
21659
21660         Tests for module 'langinfo'.
21661         * modules/langinfo-tests: New file.
21662         * tests/test-langinfo.c: New file.
21663
21664         New module 'langinfo'.
21665         * lib/langinfo.in.h: New file.
21666         * m4/langinfo_h.m4: New file.
21667         * modules/langinfo: New file.
21668         * doc/posix-headers/langinfo.texi: Mention the new module.
21669
21670 2009-12-11  Bruno Haible  <bruno@clisp.org>
21671
21672         * lib/config.charset: Untabify.
21673
21674 2009-12-11  Bruno Haible  <bruno@clisp.org>
21675
21676         * modules/unistd-safer (configure.ac): Drop indicator macro.
21677
21678 2009-12-11  Bruno Haible  <bruno@clisp.org>
21679
21680         Move pipe2-safer code to its own file.
21681         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21682         * lib/pipe-safer.c (pipe2_safer): Remove function.
21683         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21684         (Makefile.am): Add it to lib_SOURCES.
21685
21686 2009-12-10  Bruno Haible  <bruno@clisp.org>
21687
21688         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21689
21690 2009-12-10  Bruno Haible  <bruno@clisp.org>
21691
21692         Declare which arguments expect non-NULL values, for GCC and clang.
21693         * build-aux/arg-nonnull.h: New file.
21694         * modules/arg-nonnull: New file.
21695         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21696         (inet_ntop, inet_pton): Use it.
21697         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21698         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21699         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21700         (open, openat): Use it.
21701         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21702         (fnmatch): Use it.
21703         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21704         (getopt, getopt_long, getopt_long_only): Use it.
21705         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21706         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21707         Use it.
21708         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21709         (iconv_open): Use it.
21710         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21711         (strtoimax, strtoumax): Use it.
21712         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21713         (duplocale): Use it.
21714         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21715         (frexp, frexpl): Use it.
21716         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21717         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21718         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21719         (tsearch, tfind, tdelete, twalk): Use it.
21720         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21721         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21722         sigpending): Use it.
21723         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21724         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21725         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21726         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21727         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21728         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21729         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21730         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21731         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21732         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21733         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21734         Use it.
21735         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21736         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21737         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21738         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21739         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21740         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21741         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21742         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21743         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21744         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21745         strtoull, unsetenv): Use it.
21746         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21747         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21748         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21749         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21750         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21751         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21752         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21753         (strcasecmp, strncasecmp): Use it.
21754         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21755         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21756         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21757         rpl_setsockopt): Use it.
21758         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21759         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21760         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21761         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21762         (gettimeofday): Use it.
21763         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21764         (times): Use it.
21765         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21766         (uname): Use it.
21767         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21768         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21769         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21770         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21771         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21772         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21773         unlinkat, write): Use it.
21774         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21775         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21776         * lib/argv-iter.h: Include arg-nonnull.h.
21777         (_ATTRIBUTE_NONNULL_): Remove macro.
21778         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21779         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21780         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21781         optimization.
21782         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21783         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21784         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21785         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21786         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21787         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21788         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21789         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21790         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21791         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21792         * modules/dirent (Depends-on): Add arg-nonnull.
21793         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21794         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21795         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21796         * modules/fnmatch (Depends-on): Add arg-nonnull.
21797         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21798         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21799         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21800         * modules/glob (Depends-on): Add arg-nonnull.
21801         (Makefile.am): Insert arg-nonnull.h into glob.h.
21802         * modules/iconv_open (Depends-on): Add arg-nonnull.
21803         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21804         * modules/inttypes (Depends-on): Add arg-nonnull.
21805         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21806         * modules/locale (Depends-on): Add arg-nonnull.
21807         (Makefile.am): Insert arg-nonnull.h into locale.h.
21808         * modules/math (Depends-on): Add arg-nonnull.
21809         (Makefile.am): Insert arg-nonnull.h into math.h.
21810         * modules/netdb (Depends-on): Add arg-nonnull.
21811         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21812         * modules/search (Depends-on): Add arg-nonnull.
21813         (Makefile.am): Insert arg-nonnull.h into search.h.
21814         * modules/signal (Depends-on): Add arg-nonnull.
21815         (Makefile.am): Insert arg-nonnull.h into signal.h.
21816         * modules/spawn (Depends-on): Add arg-nonnull.
21817         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21818         * modules/stdio (Depends-on): Add arg-nonnull.
21819         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21820         * modules/stdlib (Depends-on): Add arg-nonnull.
21821         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21822         * modules/string (Depends-on): Add arg-nonnull.
21823         (Makefile.am): Insert arg-nonnull.h into string.h.
21824         * modules/strings (Depends-on): Add arg-nonnull.
21825         (Makefile.am): Insert arg-nonnull.h into strings.h.
21826         * modules/sys_socket (Depends-on): Add arg-nonnull.
21827         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21828         * modules/sys_stat (Depends-on): Add arg-nonnull.
21829         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21830         * modules/sys_time (Depends-on): Add arg-nonnull.
21831         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21832         * modules/sys_times (Depends-on): Add arg-nonnull.
21833         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21834         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21835         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21836         * modules/time (Depends-on): Add arg-nonnull.
21837         (Makefile.am): Insert arg-nonnull.h into time.h.
21838         * modules/unistd (Depends-on): Add arg-nonnull.
21839         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21840         * modules/wchar (Depends-on): Add arg-nonnull.
21841         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21842         * modules/argv-iter (Depends-on): Add arg-nonnull.
21843         * tests/test-canonicalize.c (null_ptr): New function.
21844         (main): Use it.
21845         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21846         (main): Use it.
21847         * tests/test-memmem.c (null_ptr): New function.
21848         (main): Use it.
21849         Reported by Jim Meyering.
21850
21851 2009-12-10  Bruno Haible  <bruno@clisp.org>
21852
21853         Use spaces for indentation, not tabs.
21854         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21855         * m4/*.m4: Untabify.
21856         * build-aux/*.h: Untabify.
21857         * tests/**/*.[hc]: Untabify.
21858         * README: New section "Indent with spaces, not TABs", based on
21859         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21860         * NEWS: Mention the change.
21861
21862 2009-12-10  Bruno Haible  <bruno@clisp.org>
21863
21864         pty test: Fix link error.
21865         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21866         test_pty_LDADD.
21867
21868 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21869
21870         * modules/pty: New file.
21871         * modules/pty-tests: New file.
21872         * m4/pty.m4: New file.
21873         * tests/test-pty.c: New file.
21874         * doc/glibc-headers/pty.texi: Modified.
21875         * doc/glibc-functions/forkpty.texi: Modified.
21876         * doc/glibc-functions/openpty.texi: Modified.
21877
21878 2009-12-10  Bruno Haible  <bruno@clisp.org>
21879
21880         Avoid syntax error in C++ mode.
21881         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21882
21883 2009-12-10  Bruno Haible  <bruno@clisp.org>
21884
21885         Use sed with option -e.
21886         * gnulib-tool (func_version, func_emit_copyright_notice,
21887         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21888         option -e to sed.
21889         * modules/link-warning (Makefile.am): Likewise.
21890
21891 2009-12-10  Jim Meyering  <meyering@redhat.com>
21892
21893         mgetgroups: do not write bytes beyond end of malloc'd buffer
21894         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21895         username, we call getgroups with a one-element-shorter buffer,
21896         but still told it the length was original, max_n_groups.
21897
21898 2009-12-09  Eric Blake  <ebb9@byu.net>
21899
21900         cloexec: relax license
21901         * modules/cloexec (Maintainer): Add myself.
21902         (License): Use LGPL, not GPL.
21903
21904         link-warning: optimize generation
21905         * modules/link-warning (Makefile.am): Reduce process usage.
21906
21907 2009-12-09  Bruno Haible  <bruno@clisp.org>
21908
21909         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21910         workaround was added on 2009-11-17.
21911
21912 2009-12-09  Jim Meyering  <meyering@redhat.com>
21913             Bruno Haible  <bruno@clisp.org>
21914
21915         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21916         * modules/link-warning (Makefile.am): Make the comment-removing sed
21917         command more robust in the face of bootstrap-prepended comment lines.
21918
21919 2009-12-09  Bruno Haible  <bruno@clisp.org>
21920
21921         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21922         most one group.
21923
21924 2009-12-09  Simon Josefsson <simon@josefsson.org>
21925             Bruno Haible  <bruno@clisp.org>
21926
21927         * build-aux/link-warning.h: Add copyright notice.
21928         * modules/link-warning (Makefile.am): Generate link-warning.h from
21929         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21930         * NEWS: Mention change in link-warning module.
21931         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21932         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21933         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21934         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21935         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21936         * modules/math (Makefile.am): Add dependency to math.h.
21937         * modules/search (Makefile.am): Add dependency to search.h.
21938         * modules/signal (Makefile.am): Add dependency to signal.h.
21939         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21940         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21941         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21942         * modules/string (Makefile.am): Add dependency to string.h.
21943         * modules/strings (Makefile.am): Add dependency to strings.h.
21944         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21945         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21946         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21947         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21948         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21949         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21950         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21951         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21952         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21953
21954 2009-12-09  Bruno Haible  <bruno@clisp.org>
21955
21956         fchdir: Optimize away rpl_fstat when possible.
21957         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21958         REPLACE_OPEN_DIRECTORY.
21959         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21960
21961 2009-12-09  Bruno Haible  <bruno@clisp.org>
21962
21963         * lib/fchdir.c: Update comment.
21964
21965 2009-12-09  Bruno Haible  <bruno@clisp.org>
21966
21967         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21968
21969 2009-12-08  Eric Blake  <ebb9@byu.net>
21970
21971         fchdir: avoid memory leak on re-registration.
21972         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21973
21974 2009-12-08  Jim Meyering  <meyering@redhat.com>
21975
21976         init.sh: avoid Solaris 10 /bin/sh portability problem
21977         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21978         sourced script:
21979           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21980           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21981           bar
21982         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21983         and two tests used that idiom.
21984         * tests/init.sh: Update suggested usage comments.
21985         (path_prepend_): New function, to be used in place
21986         of the --src-path=DIR option.
21987         (setup_): Move PATH-prepending code into path_prepend_.
21988         * tests/test-pread.sh: Adapt to new usage.
21989         * tests/test-xalloc-die.sh: Likewise.
21990
21991 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21992
21993         * doc/gnulib.texi (Glibc pty.h): Add.
21994         * doc/glibc-functions/forkpty.texi: Add.
21995         * doc/glibc-functions/openpty.texi: Add.
21996         Suggested by Bruno Haible.
21997
21998 2009-12-08  Eric Blake  <ebb9@byu.net>
21999
22000         fchdir: fix logic bugs
22001         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
22002         * tests/test-fchdir.c (main): Enhance test.
22003         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
22004         is in use.
22005
22006         dup2: fix logic bugs
22007         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
22008         REPLACE_DUP2 to decide when rpl_dup2 is needed.
22009         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
22010         exists.
22011         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
22012
22013 2009-12-07  Eric Blake  <ebb9@byu.net>
22014
22015         unlink: fix m4 detection
22016         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
22017
22018         unistd-safer: add unit test
22019         * modules/unistd-safer-tests: New file.
22020         * tests/test-dup-safer.c: Likewise.
22021         * tests/test-cloexec.c (setmode): Avoid compiler warning.
22022         * tests/test-dup2.c (setmode): Likewise.
22023         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
22024
22025         cloexec: preserve text vs. binary across dup_cloexec
22026         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
22027         mode.
22028         * modules/dup2-tests (Depends-on): Add binary-io.
22029         * modules/cloexec-tests (Depends-on): Likewise.
22030         * tests/test-dup2.c (setmode, is_mode): New helpers.
22031         (main): Add tests that translation mode is preserved.
22032         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
22033         Reported by Bruno Haible.
22034
22035         mgetgroups: reduce duplicate listings
22036         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
22037         resulting array.
22038         * tests/test-chown.h (test_chown): Simplify client.
22039         * tests/test-lchown.h (test_lchown): Likewise.
22040
22041 2009-12-06  Bruno Haible  <bruno@clisp.org>
22042
22043         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
22044         value.
22045
22046 2009-12-06  Bruno Haible  <bruno@clisp.org>
22047
22048         * lib/progname.c: Include stdio.h, stdlib.h.
22049         (set_program_name): Reject a NULL argument.
22050
22051 2009-12-05  Eric Blake  <ebb9@byu.net>
22052
22053         pipe2-safer: new module
22054         * modules/pipe2-safer: New file.
22055         * lib/unistd-safer.h (pipe2_safer): New prototype.
22056         * lib/unistd--.h (pipe2): New wrapper.
22057         * lib/pipe-safer.c (pipe2_safer): New function.
22058         * modules/pipe (Depends-on): Add pipe2-safer.
22059         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22060
22061         stdlib-safer: preserve cloexec flag for mkostemp[s]
22062         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22063         fd_safer_flag.
22064
22065         unistd-safer: allow preservation of cloexec status via flag
22066         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22067         prototypes.
22068         * lib/dup-safer.c (dup_safer_flag): New function.
22069         * lib/fd-safer.c (fd_safer_flag): Likewise.
22070         * modules/cloexec (configure.ac): Set witness.
22071
22072         test-dup2: enhance test
22073         * modules/dup2-tests (Depends-on): Add cloexec.
22074         * tests/test-dup2.c (main): Enhance test.
22075
22076         cloexec: add dup_cloexec
22077         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22078         header and comments.
22079         * lib/cloexec.c (set_cloexec_flag): Add comments.
22080         (dup_cloexec): New function, with mingw implementation borrowed
22081         from...
22082         * lib/w32spawn.h (dup_noinherit): ...here.
22083         * modules/execute (Depends-on): Add cloexec.
22084         * modules/pipe (Depends-on): Likewise.
22085         * modules/cloexec (Depends-on): Add dup2.
22086         * modules/cloexec-tests (Files): New file.
22087         * tests/test-cloexec.c: Likewise.
22088
22089         test-xalloc-die: fix test for mingw
22090         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22091         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22092         directory and .exe suffix off argv[0] output.
22093
22094         test-fseeko: fix test for mingw
22095         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22096         than undefining fseek, so test will pass on mingw.
22097
22098 2009-12-05  Bruno Haible  <bruno@clisp.org>
22099
22100         * lib/progname.h (set_program_name): Clarify specification.
22101         * lib/progname.c (set_program_name): Likewise.
22102         Reported by Jim Meyering.
22103
22104 2009-12-05  Jim Meyering  <meyering@redhat.com>
22105
22106         maint.mk: backslash-escape parens in default regexp
22107         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22108         backslash-escape the literal parentheses.
22109
22110         maint.mk: news-date-check: use grep -E
22111         * top/maint.mk (today): Define a Make variable, not a...
22112         (news-date-check): ...shell variable.
22113         (news-date-regexp): Use the Make variable.
22114         Use grep's -E option.  Change the failing diagnostic to mention
22115         the variable, $(news-date-regexp).
22116
22117 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22118
22119         maintainer-makefile: allow customization of NEWS entry format
22120         * top/maint.mk (news-date-regexp): New overridable variable.
22121         (news-date-check): Use it.
22122
22123 2009-12-04  Eric Blake  <ebb9@byu.net>
22124
22125         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22126         * lib/mgetgroups.h (xgetgroups): New prototype.
22127         * lib/mgetgroups.c (xgetgroups): New wrapper.
22128         (mgetgroups): Handle ENOSYS.
22129         * modules/mgetgroups (Depends-on): Add realloc.
22130         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22131
22132         mgetgroups: avoid argument promotion issues with -1
22133         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22134         for invalid gid_t.
22135         * tests/test-chown.h (getegid, test_chown): Likewise.
22136         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22137
22138 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22139
22140         exclude: Fix header file problems.
22141         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22142
22143 2009-12-01  Jim Meyering  <meyering@redhat.com>
22144
22145         fts: fts_open: do not let an empty string cause immediate failure
22146         This is required in support of GNU rm, for which the command
22147         "rm A '' B" must process and remove both A and B, in spite of
22148         the empty string argument.
22149         * lib/fts.c (fts_open): Do not let the presence of an empty string
22150         cause fts_open to fail immediately.  Most fts-using tools must be
22151         able to process all arguments, in order, and can be expected to
22152         diagnose such arguments themselves.
22153
22154 2009-11-30  Eric Blake  <ebb9@byu.net>
22155
22156         utimens: fix compilation error
22157         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22158         Declare variable at right scope.
22159
22160 2009-11-29  Jim Meyering  <meyering@redhat.com>
22161
22162         bootstrap: handle perl-5.11's changed --version output
22163         * build-aux/bootstrap (get_version): Handle perl separately,
22164         since perl-5.11's --version output is different.
22165
22166 2009-11-28  Jim Meyering  <meyering@redhat.com>
22167
22168         userspec: depend on the inttostr module, too
22169         * modules/userspec (Depends-on): Add inttostr.
22170
22171         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22172         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22173         number of MAXUID when it evaluates to (uid_t) -1.
22174         Likewise for group ID.  Reported by Matt McCutchen in
22175         <http://savannah.gnu.org/bugs/?28113>
22176
22177         userspec: reformat to use spaces, not TABs
22178         * lib/userspec.c: Expand TABs to spaces.
22179         Add Emacs' "indent-tabs-mode: nil" hint.
22180
22181 2009-11-27  Eric Blake  <ebb9@byu.net>
22182
22183         getopt-gnu: flush out another BSD bug
22184         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22185         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22186         flush out BSD bug.
22187         * tests/test-getopt.h (test_getopt): End lists with NULL.
22188         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22189         (test_getopt_long_posix): Enhance test.
22190         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22191         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22192         getopt-gnu.
22193         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22194         Likewise.
22195
22196 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22197
22198         * modules/idpriv-droptemp-tests (Notice): Fix text.
22199
22200 2009-11-27  Jim Meyering  <meyering@redhat.com>
22201
22202         test-xalloc-die: avoid spurious failure due to libtool argv difference
22203         In a libtool-enabled project, this test would fail due to a difference
22204         in the emitted program name, e.g.,
22205         -test-xalloc-die: memory exhausted
22206         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22207         Use program to avoid that.
22208         * modules/xalloc-die-tests (Depends-on): Add progname.
22209         * tests/test-xalloc-die.c: Include progname.h".
22210         (program_name): Remove decl.
22211         (main): Call set_program_name.
22212         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22213
22214 2009-11-26  Richard Jones  <rjones@redhat.com>
22215
22216         w32sock: leave win32 error in place.
22217         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22218
22219 2009-11-26  Eric Blake  <ebb9@byu.net>
22220
22221         init.sh: suggest to use skip_ and fail_ functions in comments
22222         * tests/init.sh: Add a sentence.
22223
22224 2009-11-25  Bruno Haible  <bruno@clisp.org>
22225
22226         init.sh: add documentation in comments
22227         * tests/init.sh: Add some developer and user documentation.
22228
22229 2009-11-26  Jim Meyering  <meyering@redhat.com>
22230
22231         init.sh: accommodate even those who specify bogus srcdir manually
22232         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22233         configure-time tests to be sanitized, so that there is no need to
22234         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22235         (with no double quotes) suffices.  However, since tests may be
22236         invoked manually, and since you may explicitly set srcdir to the
22237         name of a directory containing spaces, do quote its uses here.
22238         * tests/test-pread.sh: Likewise.
22239         Suggested by Bruno Haible.
22240
22241         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22242         * tests/test-pread.sh: Write no data into the pipe, because
22243         test-pread actually reads none.  This avoids a diagnostic,
22244         "bash: echo: write error: Broken pipe", that arises in the unusual
22245         event something is ignoring SIGPIPE, and might be interpreted
22246         as some sort of failure.  Reported by Bruno Haible.
22247
22248 2009-11-25  Jim Meyering  <meyering@redhat.com>
22249
22250         test-pread: cover failure with ESPIPE and EINVAL
22251         * tests/test-pread.c (main): Test for failure, too.
22252         * tests/test-pread.sh: Invoke with stdin on a pipe.
22253         Suggested by Eric Blake.
22254
22255         pread: improvement and fix
22256         * modules/pread (Depends-on): Depend on lseek, for portability to
22257         e.g., mingw.  Suggested by Eric Blake.
22258         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22259
22260         unistd.in.h: correct declaration of pread
22261         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22262         Reported by Richard W.M. Jones.
22263
22264         test-pread.sh: distribute the test script
22265         * modules/pread-tests (Files): Include test-pread.sh.
22266
22267         test-pread.sh: clean up
22268         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22269         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22270         That is unnecessary, since it's always ".".
22271         Suggestion from Eric Blake.
22272
22273         test-pread.sh: make executable
22274         * tests/test-pread.sh: Set executable bit.
22275         Reported by Eric Blake.
22276
22277         correct typo in test-pread.sh
22278         * tests/test-pread.sh: Add #! line.
22279
22280         test pread
22281         * tests/test-pread.c: New file.
22282         * tests/test-pread.sh: Likewise.
22283         * modules/pread-tests: Likewise.
22284
22285         pread: new module
22286         * modules/pread: New file.
22287         * lib/unistd.in.h (pread): Define/declare.
22288         * lib/pread.c (pread): New file.
22289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22290         * modules/unistd (Makefile.am): Substitute witnesses.
22291         * doc/posix-functions/pread.texi (pread): Update.
22292         * MODULES.html.sh: Add pread.
22293
22294 2009-11-25  Jim Meyering  <meyering@redhat.com>
22295
22296         tests/init.sh: new file to be used via most *.sh tests
22297         * tests/init.sh: New file.
22298
22299 2009-11-25  Eric Blake  <ebb9@byu.net>
22300
22301         utimens: work around older Linux failure with symlinks
22302         * lib/utimens.c (lutimensat_works_really): New variable.
22303         (fdutimens, lutimens): Use it to manage kernels that support
22304         nanosecond times on files, but not on symlinks.
22305         Reported by Ondřej Vašík.
22306
22307         utimes: fix configure grammar
22308         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22309
22310 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22311
22312         regex: Fix fastmap for multibyte character ranges.
22313         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22314         characters when a multibyte character range is included.
22315
22316 2009-11-22  Andy Wingo  <wingo@pobox.com>
22317
22318         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22319         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22320
22321 2009-11-24  Bruno Haible  <bruno@clisp.org>
22322
22323         doc: Most *_l functions exist in MacOS X 10.5.
22324         * doc/posix-functions/duplocale.texi: Update platforms list.
22325         * doc/posix-functions/freelocale.texi: Likewise.
22326         * doc/posix-functions/newlocale.texi: Likewise.
22327         * doc/posix-functions/uselocale.texi: Likewise.
22328         * doc/posix-functions/isalnum_l.texi: Likewise.
22329         * doc/posix-functions/isalpha_l.texi: Likewise.
22330         * doc/posix-functions/isblank_l.texi: Likewise.
22331         * doc/posix-functions/iscntrl_l.texi: Likewise.
22332         * doc/posix-functions/isdigit_l.texi: Likewise.
22333         * doc/posix-functions/isgraph_l.texi: Likewise.
22334         * doc/posix-functions/islower_l.texi: Likewise.
22335         * doc/posix-functions/isprint_l.texi: Likewise.
22336         * doc/posix-functions/ispunct_l.texi: Likewise.
22337         * doc/posix-functions/isspace_l.texi: Likewise.
22338         * doc/posix-functions/isupper_l.texi: Likewise.
22339         * doc/posix-functions/iswalnum_l.texi: Likewise.
22340         * doc/posix-functions/iswalpha_l.texi: Likewise.
22341         * doc/posix-functions/iswblank_l.texi: Likewise.
22342         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22343         * doc/posix-functions/iswctype_l.texi: Likewise.
22344         * doc/posix-functions/iswdigit_l.texi: Likewise.
22345         * doc/posix-functions/iswgraph_l.texi: Likewise.
22346         * doc/posix-functions/iswlower_l.texi: Likewise.
22347         * doc/posix-functions/iswprint_l.texi: Likewise.
22348         * doc/posix-functions/iswpunct_l.texi: Likewise.
22349         * doc/posix-functions/iswspace_l.texi: Likewise.
22350         * doc/posix-functions/iswupper_l.texi: Likewise.
22351         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22352         * doc/posix-functions/isxdigit_l.texi: Likewise.
22353         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22354         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22355         * doc/posix-functions/strcoll_l.texi: Likewise.
22356         * doc/posix-functions/strfmon_l.texi: Likewise.
22357         * doc/posix-functions/strftime_l.texi: Likewise.
22358         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22359         * doc/posix-functions/strxfrm_l.texi: Likewise.
22360         * doc/posix-functions/tolower_l.texi: Likewise.
22361         * doc/posix-functions/toupper_l.texi: Likewise.
22362         * doc/posix-functions/towctrans_l.texi: Likewise.
22363         * doc/posix-functions/towlower_l.texi: Likewise.
22364         * doc/posix-functions/towupper_l.texi: Likewise.
22365         * doc/posix-functions/wcscoll_l.texi: Likewise.
22366         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22367         * doc/posix-functions/wctrans_l.texi: Likewise.
22368         * doc/posix-functions/wctype_l.texi: Likewise.
22369         * doc/glibc-functions/strptime_l.texi: Likewise.
22370         * doc/glibc-functions/strtod_l.texi: Likewise.
22371         * doc/glibc-functions/strtof_l.texi: Likewise.
22372         * doc/glibc-functions/strtol_l.texi: Likewise.
22373         * doc/glibc-functions/strtold_l.texi: Likewise.
22374         * doc/glibc-functions/strtoll_l.texi: Likewise.
22375         * doc/glibc-functions/strtoul_l.texi: Likewise.
22376         * doc/glibc-functions/strtoull_l.texi: Likewise.
22377         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22378         * doc/glibc-functions/wcstod_l.texi: Likewise.
22379         * doc/glibc-functions/wcstof_l.texi: Likewise.
22380         * doc/glibc-functions/wcstol_l.texi: Likewise.
22381         * doc/glibc-functions/wcstold_l.texi: Likewise.
22382         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22383         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22384         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22385
22386 2009-11-24  Bruno Haible  <bruno@clisp.org>
22387
22388         duplocale: Fix logic bug.
22389         * lib/duplocale.c: Don't include <langinfo.h>.
22390         (_NL_LOCALE_NAME): Remove macro.
22391         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22392         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22393
22394 2009-11-23  Jim Meyering  <meyering@redhat.com>
22395
22396         test-update-copyright: don't hard-code /usr/bin/perl
22397         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22398         perl to print the current year.  Gilles Espinasse reported that
22399         the replaced use of perl was hard-coded as /usr/bin/perl.
22400
22401 2009-11-23  Bruno Haible  <bruno@clisp.org>
22402
22403         duplocale: Add support for glibc 2.3.x.
22404         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22405
22406 2009-11-22  Bruno Haible  <bruno@clisp.org>
22407
22408         vasnprintf: Tiny optimization.
22409         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22410         MacOS X.
22411
22412 2009-11-22  Bruno Haible  <bruno@clisp.org>
22413
22414         Tests for module 'duplocale'.
22415         * modules/duplocale-tests: New file.
22416         * tests/test-duplocale.c: New file.
22417
22418         New module 'duplocale'.
22419         * m4/duplocale.m4: New file.
22420         * lib/locale.in.h (duplocale): New declaration.
22421         * lib/duplocale.c: New file.
22422         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22423         gl_LOCALE_H_DEFAULTS): New macros.
22424         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22425         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22426         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22427         REPLACE_DUPLOCALE.
22428         * modules/duplocale: New file.
22429         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22430
22431 2009-11-22  Bruno Haible  <bruno@clisp.org>
22432
22433         * modules/locale-tests (configure.ac): Test for newlocale function.
22434         * tests/test-locale.c: When the system has extended locale functions,
22435         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22436
22437         locale: Make locale_t available when possible.
22438         * lib/locale.in.h: Include <xlocale.h> when it exists.
22439         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22440         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22441         * modules/locale (Depends-on): Add extensions.
22442         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22443         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22444
22445 2009-11-22  Bruno Haible  <bruno@clisp.org>
22446
22447         Add comments.
22448         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22449         invocation.
22450         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22451         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22452         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22453
22454 2009-11-22  Bruno Haible  <bruno@clisp.org>
22455
22456         error: account for the possibility of freopen (stdout).
22457         * lib/error.c: Include <unistd.h>.
22458         (flush_stdout): New function, extracted from error and error_at_line.
22459         Determine stdout's fd dynamically.
22460         (error, error_at_line): Invoke flush_stdout.
22461         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22462         * modules/error (Depends-on): Add unistd.
22463
22464 2009-11-22  Bruno Haible  <bruno@clisp.org>
22465
22466         diffseq: Add comment.
22467         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22468
22469 2009-11-22  Jim Meyering  <meyering@redhat.com>
22470
22471         c-stack: avoid defining an unused static function
22472         * lib/c-stack.c (find_stack_direction): Do not define this function
22473         when it will not be used.
22474
22475         diffseq: avoid spurious gcc warnings
22476         * lib/diffseq.h (IF_LINT2): Define.
22477         (compareseq): Use it to initialize two members of "part".
22478         This avoids two used-uninitialized warnings.
22479
22480 2009-11-21  Jim Meyering  <meyering@redhat.com>
22481
22482         c-stack: avoid "ignoring return value of `write'" warning
22483         * lib/c-stack.c: Include "ignore-value.h".
22484         (die): Explicitly ignore each write return value.
22485         * modules/c-stack (Depends-on): Add ignore-value.
22486
22487 2009-11-21  Bruno Haible  <bruno@clisp.org>
22488
22489         diffseq: reduce scope of variable 'best'.
22490         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22491         variable, earlier used for two different purposes.
22492
22493 2009-11-21  Jim Meyering  <meyering@redhat.com>
22494
22495         diffseq: remove useless assignment to "best"
22496         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22497         assignment.  At that point "best" is already guaranteed to be zero.
22498
22499 2009-11-20  Eric Blake  <ebb9@byu.net>
22500
22501         build: mention ftp redirector in release announcements
22502         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22503         values that used to come from cfg.mk; mention FTP redirect URL.
22504         * build-aux/announce-gen: Mention the mirror list.
22505         Suggested by Karl Berry.
22506
22507         nanosleep: improve port to mingw
22508         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22510         LIB_NANOSLEEP, but only when needed.
22511         * modules/select (Link): Document LIBSOCKET.
22512         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22513         enough.
22514
22515         nanosleep: work around cygwin bug
22516         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22517         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22518         bug.
22519         (getnow): Delete, not needed.
22520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22521         LIB_CLOCK_GETTIME.
22522         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22523         clock-time, gettime.
22524         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22525         bug.
22526         * modules/nanosleep-tests: New test.
22527         * tests/test-nanosleep.c: New file.
22528
22529         sleep: work around cygwin bug
22530         * lib/sleep.c (rpl_sleep): Work around the bug.
22531         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22532         (gl_PREREQ_SLEEP): Delete unused macro.
22533         * modules/sleep (Depends-on): Add verify.
22534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22535         * modules/unistd (Makefile.am): Substitute witness.
22536         * lib/unistd.in.h (sleep): Update prototype.
22537         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22538         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22539         * modules/sleep-tests (Depends-on): Check for alarm.
22540
22541 2009-11-20  Jim Meyering  <meyering@redhat.com>
22542
22543         maint.mk: improve sc_prohibit_magic_number_exit
22544         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22545         so it does not match uses like System.exit(1).
22546         Add comments showing how to correct all offenders.
22547
22548 2009-11-19  Eric Blake  <ebb9@byu.net>
22549
22550         xalloc-die-tests: add missing library
22551         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22552
22553         test-xvasprintf: silence compiler warnings
22554         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22555         empty string from gcc.
22556
22557 2009-11-19  Jim Meyering  <meyering@redhat.com>
22558
22559         xfreopen: new module, from coreutils
22560         * modules/xfreopen: New module.
22561         * lib/xfreopen.c: New file.
22562         * lib/xfreopen.h: New file.
22563         * MODULES.html.sh (File stream based Input/Output"): Add it.
22564
22565 2009-11-19  Eric Blake  <ebb9@byu.net>
22566
22567         manywarnings: depend on warnings
22568         * modules/manywarnings (Depends-on): Add warnings.
22569
22570         build: avoid compiler warnings
22571         * lib/select.c (rpl_select): Delete unused variable.
22572         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22573
22574 2009-11-18  Eric Blake  <ebb9@byu.net>
22575
22576         tests: avoid false negative with --with-packager
22577         * tests/test-version-etc.sh: Discard packager information.
22578         * tests/test-argp-version-etc-1.sh: Likewise.
22579         Reported by Mike Frysinger.
22580
22581         utimens: fix regression on Solaris
22582         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22583         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22584         can only change fd timestamps via futimesat.  Instead, use an
22585         additional witness macro to avoid BSD bug.
22586         Reported by Jim Meyering.
22587
22588 2009-11-17  Eric Blake  <ebb9@byu.net>
22589
22590         usleep: use it to simplify tests
22591         * modules/stat-time-tests (Depends-on): Add usleep.
22592         (configure.ac): Drop usleep check.
22593         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22594         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22595         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22596         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22597         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22598         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22599         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22600         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22601         Likewise.
22602         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22603         * tests/test-lchown.h (nap): Likewise.
22604         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22605         * tests/test-stat-time.c (nap): Likewise.
22606         * tests/test-utimens-common.h (nap): Update comments.
22607
22608         usleep: new module
22609         * modules/usleep: New file.
22610         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22611         * lib/usleep.c (usleep): Likewise.
22612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22613         * modules/unistd (Makefile.am): Substitute witnesses.
22614         * lib/unistd.in.h (usleep): Add declaration.
22615         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22616         * MODULES.html.sh (Date and time): Likewise.
22617         * modules/usleep-tests (Depends-on): New test.
22618         * tests/test-usleep.c: New file.
22619
22620         chown: work around OpenBSD bug
22621         * lib/chown.c (rpl_chown): Work around the bug.
22622         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22623         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22624         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22625         * modules/chown (Depends-on): Add stdbool.
22626         * modules/lchown (Depends-on): Likewise.
22627         * doc/posix-functions/chown.texi (chown): Document the bug.
22628         * doc/posix-functions/lchown.texi (lchown): Likewise.
22629         * tests/test-lchown.h (test_chown): Relax test.
22630
22631         mkstemp: avoid conflict with C++ keyword template
22632         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22633         * lib/mkostemp.c (mkostemp): Likewise.
22634         * lib/mkostemps.c (mkostemps): Likewise.
22635         * lib/mkstemp.c (mkstemp): Likewise.
22636         * lib/mkstemps.c (mkstemps): Likewise.
22637
22638         xalloc-die-tests: optimize
22639         * tests/test-xalloc-die.sh: Reduce number of processes.
22640
22641 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22642
22643         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22644         patch from ludo@gnu.org (Ludovic Courtès).
22645
22646 2009-11-17  Jim Meyering  <meyering@redhat.com>
22647
22648         version-etc: use proper license string
22649         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22650         * modules/version-etc-fsf: Likewise.
22651
22652 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22653
22654         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22655         printed to stdout.  Deal with EOL differences.
22656
22657 2009-11-17  Eric Blake  <ebb9@byu.net>
22658
22659         unsetenv: work around Solaris bug
22660         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22661         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22662         Reported by Jim Meyering.
22663
22664         vasnprintf: avoid compiler warnings
22665         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22666         variables.
22667         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22668
22669 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22670
22671         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22672         settings since xalloc-die is no longer the self test,
22673         xalloc-die.sh is.
22674
22675 2009-11-17  Jim Meyering  <meyering@redhat.com>
22676
22677         test-xalloc-die.sh: make the code agree with the commit log
22678         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22679         at the end, just in case you happen to have a test-xalloc-die
22680         program in some other PATH directory.
22681
22682         test-xalloc-die.sh: fix a portability bug
22683         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22684         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22685         Otherwise, argv[0] (as often seen in diagnostics) would be too
22686         system-dependent, sometimes with, and sometimes without the leading "./".
22687
22688         version-etc-fsf: relax license to LGPLv3+
22689         * modules/version-etc-fsf (License): Relax license.
22690
22691 2009-11-16  Eric Blake  <ebb9@byu.net>
22692
22693         xalloc-die-tests: avoid printing null pointer
22694         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22695         shell script.
22696         * tests/test-xalloc-die.c (program_name): Declare.
22697         * tests/test-xalloc-die.sh (tmpfiles): New file.
22698
22699         setenv, unsetenv: work around various bugs
22700         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22701         (setenv) [HAVE_SETENV]: Work around bugs.
22702         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22703         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22704         for bugs.
22705         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22706         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22708         * modules/stdlib (Makefile.am): Update substitutions.
22709         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22710         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22711         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22712         * modules/setenv-tests: New test.
22713         * modules/unsetenv-tests: Likewise.
22714         * tests/test-setenv.c: New file.
22715         * tests/test-unsetenv.c: Likewise.
22716
22717 2009-11-16  Jim Meyering  <meyering@redhat.com>
22718
22719         version-etc: relax license to LGPLv3+
22720         * modules/version-etc (License): Relax license.
22721
22722         better AC_REQUIRE expanded-before-required-warning avoidance
22723         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22724         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22725         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22726         which is no longer needed.
22727
22728 2009-11-16  Eric Blake  <ebb9@byu.net>
22729
22730         test-freading: clean up temporary file
22731         * tests/test-freading.c (main): Remove file on success, and use
22732         ASSERT more liberally.
22733         Reported by Jim Meyering.
22734
22735 2009-11-16  Jim Meyering  <meyering@redhat.com>
22736
22737         avoid new AC_REQUIRE expanded-before-required warnings
22738         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22739         merely using it.
22740         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22741         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22742
22743 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22744
22745         * tests/test-xalloc-die.c: New file.
22746         * modules/xalloc-die-tests: New file.
22747         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22748         XFAIL_TESTS so it can be appended by modules.
22749
22750 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22751
22752         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22753         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22754
22755 2009-11-14  Eric Blake  <ebb9@byu.net>
22756
22757         fnmatch: avoid compiler warning
22758         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22759         to silence compiler warning about mismatch signedness in ?:.
22760         Reported by Robert Millan.
22761
22762         intprops: add double-inclusion guard
22763         * lib/intprops.h: Allow idempotent includes.
22764         Suggested by Bruce Korb.
22765
22766         openat: detect Solaris fchownat bug
22767         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22768         penalizing glibc chownat when only lchownat is broken.
22769         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22770         trailing slash bugs.
22771         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22772         * modules/openat-tests (Files): Include more files.
22773         (Depends-on): Add mgetgroups, sleep, stat-time.
22774         (configure.ac): Add additional checks.
22775         (Makefile.am): Build new test.
22776         * tests/test-fchownat.c: New file.
22777
22778         lchown: detect Solaris and FreeBSD bug
22779         * lib/lchown.c (rpl_lchown): Work around bug.
22780         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22782         * modules/unistd (Makefile.am): Populate it.
22783         * lib/unistd.in.h (lchown): Update declaration.
22784         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22785         * modules/lchown-tests: New file.
22786         * tests/test-lchown.h (test_lchown): Likewise.
22787         * tests/test-lchown.c (main): Likewise.
22788
22789         chown: detect Solaris and FreeBSD bug
22790         * lib/chown.c (rpl_chown): Work around bug.
22791         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22792         (gl_PREREQ_CHOWN): Delete.
22793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22794         * modules/unistd (Makefile.am): Populate it.
22795         * lib/unistd.in.h (chown): Update declaration.
22796         * lib/lchown.c (chown): Update client.
22797         * modules/lchown (Depends-on): Add lstat.
22798         * doc/posix-functions/chown.texi (chown): Document the bug.
22799         * doc/posix-functions/getgroups.texi (getgroups): Document
22800         getgroups pitfall.
22801         * modules/chown-tests: New file.
22802         * tests/test-chown.h (test_chown): Likewise.
22803         * tests/test-chown.c (main): Likewise.
22804
22805 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22806
22807         gnulib-tool: correctly detect absence of m4 directories
22808         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22809
22810 2009-11-14  Jim Meyering  <meyering@redhat.com>
22811
22812         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22813         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22814
22815 2009-11-14  John W. Eaton  <jwe@gnu.org>
22816
22817         strftime.h: wrap funtion declaration in extern "C" block
22818         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22819
22820 2009-11-13  Eric Blake  <ebb9@byu.net>
22821
22822         getgroups: avoid compiler warning
22823         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22824
22825         getgroups: work around FreeBSD bug
22826         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22827         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22828         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22829         * tests/test-getgroups.c (main): Fix buffer overrun.
22830
22831         getgroups: avoid compilation failure
22832         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22833         * modules/getgroups (Depends-on): Add stdint.
22834
22835 2009-11-13  Jim Meyering  <meyering@redhat.com>
22836
22837         test-getgroups: avoid compilation failure
22838         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22839
22840 2009-11-13  Eric Blake  <ebb9@byu.net>
22841
22842         mgetgroups: new module, taken from coreutils
22843         * modules/mgetgroups: New file.
22844         * lib/mgetgroups.h: Likewise.
22845         * lib/mgetgroups.c (mgetgroups): Likewise.
22846         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22847         * MODULES.html.sh (Users and groups): Mention it.
22848
22849         getgroups: don't expose GETGROUPS_T to user
22850         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22851         an element at a time if GETGROUPS_T is wrong size.
22852         * lib/getugroups.h (getugroups): Change signature.
22853         * lib/unistd.in.h (getgroups): Likewise.
22854         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22855         signature needs fixing.
22856         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22857         AC_TYPE_GETGROUPS.
22858         * modules/group-member (Depends-on): Add getgroups.
22859         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22860         (group_member): Rely on getgroups replacement.
22861         * lib/getugroups.c (getugroups): Use gid_t.
22862         * tests/test-getgroups.c (main): Likewise.
22863         * NEWS: Mention the signature change.
22864         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22865         problem with signature.
22866         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22867         GETGROUPS_T is still useful for setgroups.
22868
22869         getgroups, getugroups: provide stubs for mingw
22870         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22871         * lib/getugroups.c (getugroups): Likewise.
22872         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22873         function.  Modernize replacement scheme.
22874         (gl_PREREQ_GETGROUPS): Delete.
22875         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22876         * modules/getgroups (configure.ac): Declare witness.
22877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22878         * modules/unistd (Depends-on): Substitute witness.
22879         * lib/unistd.in.h (getgroups): Declare replacement.
22880
22881         getgroups: avoid calling exit
22882         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22883         drop xalloc.
22884         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22885         dependencies.
22886         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22887         exiting, in the rare case of malloc failure.
22888
22889         getgroups: fix logic error
22890         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22891         has more than 20 groups.
22892         * modules/getgroups-tests: New test.
22893         * tests/test-getgroups.c: New file.
22894
22895 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22896
22897         * tests/test-base64.c: Improve.
22898
22899 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22900
22901         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22902         Blake <ebb9@byu.net>.
22903
22904 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22905
22906         * tests/test-xvasprintf.c: Add %s%s related checks.
22907
22908 2009-11-12  Eric Blake  <ebb9@byu.net>
22909
22910         version-etc: match standards.texi style
22911         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22912         and use <> only for URLs.
22913
22914 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22915
22916         fts: do not fail on a submount during traversal
22917         * lib/fts.c (fts_build): Read the stat info again after opening
22918         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22919         Original report at http://bugzilla.redhat.com/501848.
22920
22921 2009-11-12  Jim Meyering  <meyering@redhat.com>
22922
22923         bootstrap: sync from coreutils
22924         * build-aux/bootstrap (bootstrap_epilogue): New function.
22925         Use git_modules_config in one more place.  This make bootstrap's
22926         --gnulib-srcdir option more useful for testing.
22927
22928         bootstrap: generalize autoheader check
22929         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22930         AC_CONFIG_HEADERS.
22931
22932 2009-11-11  Eric Blake  <ebb9@byu.net>
22933
22934         mkfifoat: use new modules for Solaris and BSD bugs
22935         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22936         * lib/mkfifoat.c (mknodat): Split...
22937         * lib/mknodat.c (mknodat): ...into new file.
22938         * modules/mkfifoat (Files): Ship new file.
22939         (Depends-on): Add mkfifo, mknod.
22940         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22941         (Depends-on): Add symlink.
22942         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22943         redundant with test_mkfifo.h.
22944         (do_mkfifoat, do_mknodat): New helpers.
22945
22946         mknod: new module
22947         * modules/mknod: New file.
22948         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22949         * lib/mknod.c (mknod): Likewise.
22950         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22951         defaults.
22952         * modules/sys_stat (Makefile.am): Substitute them.
22953         * lib/sys_stat.in.h (mknod): Declare replacement.
22954         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22955         Document it.
22956         * doc/posix-functions/mknod.texi (mknod): Likewise.
22957         * modules/mknod-tests: New test.
22958         * tests/test-mknod.c: Likewise.
22959
22960         mkfifo: new module
22961         * modules/mkfifo: New file.
22962         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22963         * lib/mkfifo.c (mkfifo): Likewise.
22964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22965         defaults.
22966         * modules/sys_stat (Makefile.am): Substitute them.
22967         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22968         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22969         Document it.
22970         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22971         * modules/mkfifo-tests: New test.
22972         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22973         from test-mkfifoat.c.
22974         * tests/test-mkfifo.c: New file.
22975
22976         readlink: detect FreeBSD bug
22977         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22978         slash on symlink.
22979         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22980         * tests/test-readlink.h (test_readlink): Enhance test.
22981
22982         symlink: detect FreeBSD bug
22983         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22984         slash on symlink.
22985         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22986         * tests/test-symlink.h (test_symlink): Enhance test.
22987
22988 2009-11-10  Eric Blake  <ebb9@byu.net>
22989
22990         link: detect FreeBSD bug
22991         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22992         symlink.
22993         * doc/posix-functions/link.texi (link): Document the bug.
22994         * tests/test-link.h (test_link): Enhance test.
22995         * tests/test-linkat.c (main): Update caller.
22996
22997         unlink, remove: detect FreeBSD bug
22998         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22999         slash on symlink.
23000         * doc/posix-functions/unlink.texi (unlink): Document the bug.
23001         * doc/posix-functions/remove.texi (remove): Likewise.
23002         * tests/test-unlink.h (test_unlink): Enhance test.
23003         * tests/test-remove.c (main): Likewise.
23004
23005 2009-11-09  Eric Blake  <ebb9@byu.net>
23006
23007         rename: detect FreeBSD bug
23008         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
23009         slash on symlink.
23010         * modules/renameat-tests (Depends-on): Add filenamecat.
23011         * tests/test-rename.h (test_rename): Allow one more errno.
23012         * tests/test-renameat.c (main): Likewise.
23013         * doc/posix-functions/rename.texi (rename): Document the bug.
23014
23015         open: detect FreeBSD bug
23016         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
23017         symlink.
23018         * doc/posix-functions/open.texi (open): Document the bug.
23019         * doc/posix-functions/utimes.texi (utimes): Likewise.
23020         * tests/test-open.h (test_open): Add parameters, and test symlink
23021         handling.
23022         * tests/test-open.c (main): Adjust caller.
23023         * tests/test-fcntl-safer.c (main): Likewise.
23024         * modules/open-tests (Depends-on): Add stdbool, symlink.
23025         * modules/fcntl-safer-tests (Depends-on): Likewise.
23026         * tests/test-openat.c (main): Add test-open tests.
23027
23028         stat: detect FreeBSD bug
23029         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
23030         symlink.
23031         * doc/posix-functions/stat.texi (stat): Document the bug.
23032         * tests/test-stat.h (test_stat_func): Add argument.
23033         * tests/test-stat.c (main): Adjust caller.
23034         * tests/test-fstatat.c (main): Likewise.
23035         * modules/stat-tests (Depends-on): Add stdbool, symlink.
23036         Reported by Jim Meyering.
23037
23038 2009-11-09  James Youngman  <jay@gnu.org>
23039
23040         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
23041         * lib/strftime.c: Correct placement of #include "ignore-value.h".
23042
23043 2009-11-08  Jim Meyering  <meyering@redhat.com>
23044
23045         utimens: remove invalid futimesat call
23046         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
23047         It used the file descriptor of the target file as the DIR_FD
23048         parameter and NULL as the file name.  That caused failure with
23049         errno == EFAULT on FreeBSD-8.0-rc2
23050
23051 2009-11-07  Eric Blake  <ebb9@byu.net>
23052
23053         fflush, freadseek: use fseeko, not fseek
23054         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23055         (clear_ungetc_buffer): Avoid potential problems on large files.
23056         * lib/freadseek.c (freadseek): Likewise.
23057         * modules/freadseek (Depends-on): Add fseeko.
23058         * modules/fseek (configure.ac): Set a witness.
23059         * tests/test-fflush.c (main): Use fseeko.
23060         * tests/test-fpurge.c (fseek): Disable link warning.
23061         * tests/test-freadable.c (fseek): Likewise.
23062         * tests/test-freading.c (fseek): Likewise.
23063         * tests/test-fseeko.c (fseek): Likewise.
23064         * tests/test-ftell.c (fseek): Likewise.
23065         * tests/test-ftello.c (fseek): Likewise.
23066         * tests/test-fwritable.c (fseek): Likewise.
23067         * tests/test-fwriting.c (fseek): Likewise.
23068
23069 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23070
23071         * modules/memchr (Depends-on): Drop getpagesize dependency.
23072
23073 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23074
23075         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23076         Reported by Ludovic Courtès.
23077         * build-aux/pmccabe2html: Improve example usage.
23078         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23079
23080 2009-11-06  Jim Meyering  <meyering@redhat.com>
23081
23082         do-release-commit-and-tag: New module.
23083         Automate the release-commit and tag process.
23084         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23085         * modules/do-release-commit-and-tag: New file.
23086         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23087
23088 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23089
23090         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23091         because test-select.c uses inet_pton.
23092
23093 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23094
23095         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23096         GETADDRINFO_LIB.  Bump serial number.
23097         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23098         Suggested by Eric Blake <ebb9@byu.net>.
23099
23100 2009-11-05  Eric Blake  <ebb9@byu.net>
23101
23102         strtod: detect darwin bug
23103         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23104         Reported by Leo Davis.
23105
23106         freopen-safer: new module
23107         * modules/freopen-safer: New module.
23108         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23109         * lib/freopen-safer.c (freopen_safer): New file.
23110         * lib/stdio-safer.h (freopen_safer): New declaration.
23111         * lib/stdio--.h (freopen): New override.
23112         * MODULES.html.sh (File stream based Input/Output): Mention it.
23113         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23114         freopen-safer module.
23115         * doc/posix-functions/stderr.texi (stderr): Likewise.
23116         * doc/posix-functions/stdin.texi (stdin): Likewise.
23117         * doc/posix-functions/stdout.texi (stdout): Likewise.
23118         * modules/freopen-safer-tests: New test.
23119         * tests/test-reopen-safer.c: New file.
23120
23121 2009-11-05  Jim Meyering  <meyering@redhat.com>
23122
23123         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23124         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23125
23126 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23127
23128         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23129
23130 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23131
23132         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23133
23134 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23135
23136         Fix link error.
23137         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23138         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23139
23140 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23141
23142         * tests/test-func.c: Also test value of __func__.
23143
23144 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23145
23146         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23147         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23148
23149 2009-11-05  Bruno Haible  <bruno@clisp.org>
23150
23151         Fix link error.
23152         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23153         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23154         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23155
23156 2009-11-05  Bruno Haible  <bruno@clisp.org>
23157
23158         Tests for module 'inet_pton'.
23159         * modules/inet_pton-tests: New file.
23160         * tests/test-inet_pton.c: New file.
23161
23162 2009-11-05  Bruno Haible  <bruno@clisp.org>
23163
23164         Tests for module 'inet_ntop'.
23165         * modules/inet_ntop-tests: New file.
23166         * tests/test-inet_ntop.c: New file.
23167
23168 2009-11-04  Eric Blake  <ebb9@byu.net>
23169
23170         stdlib-safer: wrap all mkstemp variants
23171         * modules/mkostemp (configure.ac): Set witness.
23172         * modules/mkostemps (configure.ac): Likewise.
23173         * modules/mkstemps (configure.ac): Likewise.
23174         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23175         (mkstemps_safer): Wrap more functions.
23176         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23177         wrapping.
23178         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23179         (mkstemps_safer): Implement the wrappers.
23180
23181         mkstemps, mkostemps: new modules
23182         * modules/mkostemps: New module.
23183         * modules/mkstemps: Likewise.
23184         * lib/mkostemps.c (mkostemps): New file.
23185         * lib/mkstemps.c (mkstemps): Likewise.
23186         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23187         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23189         * modules/stdlib (Makefile.am): Substitute them.
23190         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23191         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23192         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23193         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23194         * MODULES.html.sh (File system functions): Mention them.
23195
23196         tempname: resync from glibc
23197         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23198         same values for __GT_FILE as glibc.  Abort even when assertions
23199         are disabled.
23200         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23201         match its value otherwise.  Allow idempotent inclusion.
23202         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23203         * lib/mkostemp.c (mkostemp): Likewise.
23204         * lib/mkstemp.c (mkstemp): Likewise.
23205         * lib/tmpfile.c (tmpfile): Likewise.
23206         * NEWS: Document this.
23207
23208         utimens: fix use of futimens on older Linux
23209         * lib/utimens.c (fdutimens): Use updated, rather than original,
23210         timespec to avoid bug in older Linux kernel.
23211         Reported by Simon Josefsson.
23212
23213 2009-11-04  Bruno Haible  <bruno@clisp.org>
23214
23215         Make num_processors more flexible and consistent.
23216         * lib/nproc.h (enum nproc_query): New type.
23217         (num_processors): Add a 'query' argument.
23218         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23219         (num_processors): Add a 'query' argument. Test the value of the
23220         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23221         mingw, count the number of CPUs available for the current process.
23222         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23223         Check for sched_getaffinity and sched_getaffinity_np.
23224         * modules/nproc (Depends-on): Add c-ctype, extensions.
23225         * NEWS: Mention the change.
23226
23227 2009-11-03  Bruno Haible  <bruno@clisp.org>
23228
23229         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23230
23231 2009-11-03  Jim Meyering  <meyering@redhat.com>
23232
23233         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23234         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23235         if it is defined.
23236
23237 2009-11-02  Eric Blake  <ebb9@byu.net>
23238
23239         mktime, timegm: share common declaration
23240         * lib/mktime-internal.h: New file.
23241         * lib/mktime.c: Use it rather than open-coding a declaration.
23242         * lib/timegm.c: Likewise.
23243         * modules/mktime (Files): Ship it.
23244         * modules/timegm (Files): Likewise.
23245         Suggested by Bruno Haible.
23246
23247         test-update-copyright: update test to match script changes
23248         * tests/test-update-copyright.sh: Avoid hard-coding perl
23249         location.  Don't update *.bak created by earlier runs.
23250
23251 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23252             Simon Josefsson  <simon@josefsson.org>
23253             Bruno Haible  <bruno@clisp.org>
23254
23255         Fix link error on Solaris 8.
23256         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23257         also in libnsl. Define also INET_PTON_LIB.
23258         * modules/inet_pton (Link): New section.
23259
23260 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23261             Bruno Haible  <bruno@clisp.org>
23262
23263         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23264         * modules/inet_ntop (Link): New section.
23265         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23266
23267 2009-11-02  Eric Blake  <ebb9@byu.net>
23268
23269         maint: avoid compiler warnings in m4 macros
23270         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23271         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23272
23273 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23274
23275         * m4/pmccabe2html.m4: Remove file.
23276         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23277         function.  Change maintainer.
23278         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23279         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23280         Courtès).
23281
23282 2009-10-31  Eric Blake  <ebb9@byu.net>
23283
23284         fseeko: fix m4 regression
23285         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23286         regression from 2009-10-27.
23287         Reported by Ralf Wildenhues.
23288
23289 2009-10-31  Jim Meyering  <meyering@redhat.com>
23290
23291         inttostr: aesthetics and improved (compile-time) safety
23292         Define inttype_is_signed rather than inttype_is_unsigned,
23293         since the sole use is via "#if inttype_is_signed".
23294         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23295         inttype_is_unsigned.
23296         * lib/offtostr.c (inttype_is_signed): Likewise.
23297         * lib/uinttostr.c (inttype_is_signed): Likewise.
23298         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23299         * lib/inttostr.c (inttostr): Use verify to cross-check the
23300         inttype_is_signed value and the signedness of the actual type.
23301         * modules/inttostr (Depends-on): Add verify.
23302
23303 2009-10-30  Eric Blake  <ebb9@byu.net>
23304
23305         build: avoid compiler warnings
23306         * lib/fchmodat.c (lchmod): Mark unused variables.
23307         * lib/getopt.c (_getopt_initialize): Likewise.
23308         * lib/mktime.c (__mktime_internal): Provide prototype.
23309         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23310         older gcc that do not understand #pragma GCC diagnostic.
23311         * lib/uinttostr.c (inttype_is_unsigned): Define.
23312         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23313
23314 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23315
23316         stat: fix compilation on AIX
23317         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23318         only see struct stat64.
23319
23320 2009-10-30  Eric Blake  <ebb9@byu.net>
23321
23322         exclude: make more robust
23323         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23324         rather than masking a coding bug.
23325         Suggested by Bruno Haible.
23326
23327 2009-10-30  Jim Meyering  <meyering@redhat.com>
23328
23329         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23330         Rather than putting #!/usr/bin/perl on the first line,
23331         start with a variant of what's recommended by "man perlrun" that
23332         invokes the first "perl" program from your shell's search path.
23333         * build-aux/gitlog-to-changelog: Replace #!... as above.
23334         Add a "Local Variables" perl mode setting.
23335         Prompted by a patch from Ludovic Courtès.
23336         Improved by Eric Blake.
23337         * build-aux/useless-if-before-free: Likewise.
23338         * build-aux/announce-gen: Likewise.
23339         * build-aux/update-copyright: Likewise.
23340
23341 2009-10-29  Eric Blake  <ebb9@byu.net>
23342
23343         filenamecat-lgpl: adjust clients
23344         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23345         filenamecat.
23346         * modules/renameat (Depends-on): Likewise.
23347
23348         filenamecat: split into filenamecat-lgpl
23349         * modules/filenamecat-lgpl: New module.
23350         * modules/filenamecat (Files): Move library-safe files into
23351         filenamecat-lgpl.
23352         (Depends-on): Add filenamecat-lgpl.
23353         (configure.ac): Declare witness.
23354         * lib/filenamecat.h (file_name_concat): Only declare when using
23355         GPL module.
23356         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23357         Move...
23358         * lib/filenamecat-lgpl.c: ...into new file.
23359         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23360         (gl_FILE_NAME_CONCAT): Use it.
23361         * MODULES.html.sh (File system functions): Mention new module.
23362
23363         argp: avoid memory leak
23364         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23365         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23366         base_name, since the latter malloc()s and can call exit().
23367         Leak introduced 2006-07-03.
23368
23369         dirname-lgpl: adjust clients that don't need full dirname
23370         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23371         * modules/filenamecat (Depends-on): Likewise.
23372         * modules/linkat (Depends-on): Likewise.
23373         * modules/mkancesdirs (Depends-on): Likewise.
23374         * modules/mkdir (Depends-on): Likewise.
23375         * modules/openat (Depends-on): Likewise.
23376         * modules/savewd (Depends-on): Likewise.
23377         * modules/rename (Depends-on): Likewise.
23378         (License): Relax license.
23379         * modules/mkdir-tests (Depends-on): Drop progname.
23380         (Makefile.am): Delete unneeded LDADD.
23381         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23382
23383         dirname: split into dirname-lgpl
23384         * modules/dirname-lgpl: New module.
23385         * modules/dirname (Files): Move library-safe files into
23386         dirname-lgpl.
23387         (Depends-on): Add dirname-lgpl.
23388         (configure.ac): Declare witness.
23389         * modules/double-slash-root (License): Relax license.
23390         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23391         module.
23392         * lib/dirname.c (dir_len, mdir_name): Move...
23393         * lib/dirname-lgpl.c: ...into new file.
23394         * lib/basename.c (last_component, base_len): Move...
23395         * lib/basename-lgpl.c: ...into new file.
23396         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23397         (gl_DIRNAME): Use it.
23398         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23399         Mention new module.
23400         * modules/dirname-tests (Depends-on): Add progname.
23401         * tests/test-dirname.c (program_name): Delete.
23402
23403         mkdir: make safe for libraries
23404         * modules/mkdir (Depends-on): Drop xalloc.
23405         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23406         exit.
23407
23408         tests: avoid some compiler warnings
23409         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23410         literals.
23411         * tests/test-memchr.c (main): Avoid type mismatch.
23412         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23413         * tests/test-base64.c (main): Likewise.
23414         * tests/test-getdelim.c (main): Likewise.
23415         * tests/test-gethostname.c (main): Likewise.
23416         * tests/test-getline.c (main): Likewise.
23417         * tests/test-netinet_in.c (main): Likewise.
23418         * tests/test-select.c (open_server_socket, main): Likewise.
23419         * tests/test-select-stdin.c (main): Likewise.
23420         * tests/test-sockets.c (main): Likewise.
23421         * tests/test-strsignal.c (main): Likewise.
23422         * tests/test-sys_select.c (main): Likewise.
23423         * tests/test-sys_socket.c (main): Likewise.
23424         * tests/test-u64.c (main): Likewise.
23425         * tests/test-xfprintf-posix.c (main): Likewise.
23426         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23427
23428         sockets: avoid compiler warning
23429         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23430
23431         maint: detect usage(1) and other suspicious exits
23432         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23433
23434 2009-10-29  Jim Meyering  <meyering@redhat.com>
23435
23436         timespec: long-to-int truncation could make timespec_cmp malfunction
23437         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23438         a multiple of 2^32 nanoseconds as no difference.
23439
23440 2009-10-28  Jim Meyering  <meyering@redhat.com>
23441
23442         fprintftime: wrap macro code argument in "do {...} while(0)"
23443         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23444         cpy macro must be a statement that can be followed by a semicolon.
23445         Now that the else clause contains a comment and is hence longer
23446         than one line, I require curly braces.  That in turn requires
23447         that we wrap this code block in the standard do...while(0).
23448
23449         fprintftime: remove stray semicolon from previous change
23450         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23451
23452         fprintftime: avoid a warning about ignored fwrite return value
23453         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23454         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23455         that is unsafe.
23456         * modules/fprintftime (Depends-on): Add ignore-value.
23457
23458         exclude: avoid an unwarranted warning
23459         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23460
23461 2009-10-27  Eric Blake  <ebb9@byu.net>
23462
23463         fseek: avoid compilation failure when fflush is replaced
23464         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23465         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23466         module is in use.
23467         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23468         module is not in use; since REPLACE_FSEEK worked otherwise.
23469         (GNULIB_FTELLO): Likewise for ftell.
23470         Reported by Ian Beckwith and others.
23471
23472 2009-10-27  Bruno Haible  <bruno@clisp.org>
23473
23474         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23475         Reported by Jim Meyering.
23476
23477 2009-10-27  Jim Meyering  <jim@meyering.net>
23478             Bruno Haible  <bruno@clisp.org>
23479
23480         Avoid warning despite dropping the return value of fwrite.
23481         * lib/unicodeio.c: Include ignore-value.h.
23482         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23483         * modules/unicodeio (Depends-on): Add ignore-value.
23484
23485 2009-10-26  Eric Blake  <ebb9@byu.net>
23486
23487         areadlinkat: fix fallback path
23488         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23489         pointer and zero.
23490
23491 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23492
23493         Use a better IO block size for modern systems
23494         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23495         * lib/md2.c: Likewise.
23496         * lib/md4.c: Likewise.
23497         * lib/md5.c: Likewise.
23498         * lib/sha1.c: Likewise.
23499         * lib/sha256.c: Likewise.
23500         * lib/sha512.c: Likewise.
23501
23502 2009-10-22  Eric Blake  <ebb9@byu.net>
23503
23504         tests: avoid several compiler warnings
23505         * tests/test-getcwd.c (main): Avoid buffer underflow.
23506         * tests/test-getdate.c (main): String literals are not safe with
23507         putenv, so use setenv.  Declare unused argument.
23508         * modules/getdate-tests (Depends-on): Add setenv.
23509         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23510         problems with string literals in char *.
23511         * tests/test-hash.c (main): Avoid shadowing declaration.
23512         (insert_new): Treat string literals as char const *.
23513         * tests/test-getopt.h (test_getopt): Likewise.
23514         (getopt_loop): Alter types to minimize casting elsewhere.
23515         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23516         (test_getopt_long_posix): Likewise.
23517         (do_getopt_long): Add wrapper to minimize casting.
23518         * tests/test-atexit.c (clear_temp_file): Use void.
23519         * tests/test-areadlink-with-size.c (main): Declare unused
23520         arguments.
23521         * tests/test-areadlink.c (main): Likewise.
23522         * tests/test-areadlinkat-with-size.c (main): Likewise.
23523         * tests/test-areadlinkat.c (main): Likewise.
23524         * tests/test-canonicalize-lgpl.c (main): Likewise.
23525         * tests/test-canonicalize.c (main): Likewise.
23526         * tests/test-dirent-safer.c (main): Likewise.
23527         * tests/test-dirname.c (main): Likewise.
23528         * tests/test-dup2.c (main): Likewise.
23529         * tests/test-fchdir.c (main): Likewise.
23530         * tests/test-fcntl-h.c (main): Likewise.
23531         * tests/test-fcntl-safer.c (main): Likewise.
23532         * tests/test-fdopendir.c (main): Likewise.
23533         * tests/test-fdutimensat.c (main): Likewise.
23534         * tests/test-fflush.c (main): Likewise.
23535         * tests/test-filenamecat.c (main): Likewise.
23536         * tests/test-filevercmp.c (main): Likewise.
23537         * tests/test-fopen-safer.c (main): Likewise.
23538         * tests/test-fopen.c (main): Likewise.
23539         * tests/test-fpending.c (main): Likewise.
23540         * tests/test-fpurge.c (main): Likewise.
23541         * tests/test-freading.c (main): Likewise.
23542         * tests/test-fstatat.c (main): Likewise.
23543         * tests/test-fsync.c (main): Likewise.
23544         * tests/test-futimens.c (main): Likewise.
23545         * tests/test-getndelim2.c (main): Likewise.
23546         * tests/test-gettimeofday.c (main): Likewise.
23547         * tests/test-getopt.c (main): Likewise.
23548         * tests/test-i-ring.c (main): Likewise.
23549         * tests/test-inttypes.c (main): Likewise.
23550         * tests/test-link.c (main): Likewise.
23551         * tests/test-lstat.c (main): Likewise.
23552         * tests/test-math.c (main): Likewise.
23553         * tests/test-md5.c (main): Likewise.
23554         * tests/test-memchr2.c (main): Likewise.
23555         * tests/test-memrchr.c (main): Likewise.
23556         * tests/test-mkdir.c (main): Likewise.
23557         * tests/test-mkdirat.c (main): Likewise.
23558         * tests/test-mkfifoat.c (main): Likewise.
23559         * tests/test-open.c (main): Likewise.
23560         * tests/test-openat-safer.c (main): Likewise.
23561         * tests/test-openat.c (main): Likewise.
23562         * tests/test-quotearg.c (main): Likewise.
23563         * tests/test-rawmemchr.c (main): Likewise.
23564         * tests/test-readlink.c (main): Likewise.
23565         * tests/test-remove.c (main): Likewise.
23566         * tests/test-rename.c (main): Likewise.
23567         * tests/test-renameat.c (main): Likewise.
23568         * tests/test-rmdir.c (main): Likewise.
23569         * tests/test-sha1.c (main): Likewise.
23570         * tests/test-signal.c (main): Likewise.
23571         * tests/test-sigaction.c (main): Likewise.
23572         * tests/test-stat.c (main): Likewise.
23573         * tests/test-stat-time.c (main): Likewise.
23574         * tests/test-stddef.c (main): Likewise.
23575         * tests/test-stdint.c (main): Likewise.
23576         * tests/test-stdio.c (main): Likewise.
23577         * tests/test-stdlib.c (main): Likewise.
23578         * tests/test-strchrnul.c (main): Likewise.
23579         * tests/test-strerror.c (main): Likewise.
23580         * tests/test-string.c (main): Likewise.
23581         * tests/test-strtod.c (main): Likewise.
23582         * tests/test-strverscmp.c (main): Likewise.
23583         * tests/test-symlink.c (main): Likewise.
23584         * tests/test-symlinkat.c (main): Likewise.
23585         * tests/test-sys_stat.c (main): Likewise.
23586         * tests/test-sys_time.c (main): Likewise.
23587         * tests/test-time.c (main): Likewise.
23588         * tests/test-unistd.c (main): Likewise.
23589         * tests/test-unlink.c (main): Likewise.
23590         * tests/test-unlinkat.c (main): Likewise.
23591         * tests/test-utimens.c (main): Likewise.
23592         * tests/test-utimensat.c (main): Likewise.
23593         * tests/test-version-etc.c (main): Likewise.
23594         * tests/test-wchar.c (main): Likewise.
23595         * tests/test-wctype.c (main): Likewise.
23596         * tests/test-xprintf-posix.c (main): Likewise.
23597         * tests/test-posixtm.c (main): Likewise.
23598         (STREQ): Delete unused macro.
23599         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23600         shadowed variables.
23601         * tests/test-memchr.c (main): Likewise.
23602
23603 2009-10-21  Eric Blake  <ebb9@byu.net>
23604
23605         areadlinkat: avoid failure on older glibc
23606         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23607         rather than mis-comparing 0 against FUNC_RESULT of char*.
23608
23609 2009-10-21  Bruno Haible  <bruno@clisp.org>
23610
23611         * modules/stpncpy (License): Relicense under LGPLv2+.
23612         Reported by David Lutterkort <lutter@redhat.com>.
23613
23614 2009-10-20  Eric Blake  <ebb9@byu.net>
23615
23616         utimensat: work around Solaris 9 bug
23617         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23618         has trailing slash bugs.
23619         * tests/test-lutimens.h (test_lutimens): Enhance test.
23620         * tests/test-utimens.h (test_utimens): Likewise.
23621         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23622         * doc/posix-functions/utimes.texi (utimes): Likewise.
23623         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23624         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23625         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23626         * doc/posix-functions/futimens.texi (futimens): Likewise.
23627
23628         fdutimensat: new module
23629         * modules/fdutimensat: New file.
23630         * lib/fdutimensat.c (fdutimensat): Likewise.
23631         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23632         * MODULES.html.sh (File system functions): Mention module.
23633         * modules/fdutimensat-tests: New test.
23634         * tests/test-fdutimensat.c: Likewise.
23635
23636         doc: regenerate INSTALL
23637         * doc/INSTALL: Reflect recent autoconf update.
23638         * doc/INSTALL.ISO: Likewise.
23639         * doc/INSTALL.UTF-8: Likewise.
23640
23641 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23642
23643         acl: warn if ACL support is not detected
23644         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23645
23646 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23647
23648         * lib/nproc.h: Add extern "C" block for C++.
23649
23650 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23651             Bruno Haible  <bruno@clisp.org>
23652
23653         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23654         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23655         * doc/posix-functions/isalpha.texi: Likewise.
23656         * doc/posix-functions/isblank.texi: Likewise.
23657         * doc/posix-functions/iscntrl.texi: Likewise.
23658         * doc/posix-functions/isdigit.texi: Likewise.
23659         * doc/posix-functions/isgraph.texi: Likewise.
23660         * doc/posix-functions/islower.texi: Likewise.
23661         * doc/posix-functions/isprint.texi: Likewise.
23662         * doc/posix-functions/ispunct.texi: Likewise.
23663         * doc/posix-functions/isspace.texi: Likewise.
23664         * doc/posix-functions/isupper.texi: Likewise.
23665         * doc/posix-functions/isxdigit.texi: Likewise.
23666
23667 2009-10-18  Bruno Haible  <bruno@clisp.org>
23668
23669         Tests for module 'isblank'.
23670         * modules/isblank-tests: New file.
23671         * tests/test-isblank.c: New file.
23672
23673         New module 'isblank'.
23674         * lib/isblank.c: New file.
23675         * m4/isblank.m4: New file.
23676         * modules/isblank: New file.
23677         * doc/posix-functions/isblank.texi: Mention the new module.
23678
23679 2009-10-18  Bruno Haible  <bruno@clisp.org>
23680
23681         New module 'ctype'.
23682         * lib/ctype.in.h: New file.
23683         * m4/ctype.m4: New file.
23684         * modules/ctype: New file.
23685         * doc/posix-headers/ctype.texi: Mention the new module.
23686
23687 2009-10-18  Jim Meyering  <meyering@redhat.com>
23688
23689         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23690         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23691         right after its initialization, rather than farther down.
23692         Keeping these in close proximity makes it easier to ensure
23693         that each such variable is initialized.  E.g.,
23694
23695             LIB_CLOCK_GETTIME=
23696             AC_SUBST([LIB_CLOCK_GETTIME])
23697
23698         This change also increments these serial numbers.
23699         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23700         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23702
23703 2009-10-18  Bruno Haible  <bruno@clisp.org>
23704
23705         Don't let environment variables perturb build.
23706         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23707         (gl_PREREQ_GETHRXTIME): ... not here.
23708
23709 2009-10-18  Bruno Haible  <bruno@clisp.org>
23710
23711         Avoid symlink attack in localcharset module.
23712         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23713         (O_NOFOLLOW): Define fallback.
23714         (get_charset_aliases): Don't open the file if it is a symbolic link.
23715         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23716         gl_FCNTL_H.
23717         (gl_FCNTL_H): Require it.
23718         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23719         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23720         Reported by Fergal Glynn <fglynn@veracode.com>.
23721
23722 2009-10-18  Bruno Haible  <bruno@clisp.org>
23723
23724         Implement nproc for mingw.
23725         * lib/nproc.c: Include <windows.h>
23726         (num_processors): On native Windows platforms, try GetSystemInfo.
23727
23728 2009-10-18  Bruno Haible  <bruno@clisp.org>
23729
23730         Implement nproc for IRIX.
23731         * lib/nproc.c: Include <sys/sysmp.h>.
23732         (num_processors): On IRIX systems, try sysmp.
23733         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23734
23735 2009-10-18  Bruno Haible  <bruno@clisp.org>
23736
23737         Implement nproc for HP-UX.
23738         * lib/nproc.c: Include <sys/pstat.h>
23739         (num_processors): On HP-UX systems, try pstat_getdynamic.
23740         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23741         pstat_getdynamic.
23742
23743 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23744             Bruno Haible  <bruno@clisp.org>
23745
23746         Implement nproc for NetBSD, OpenBSD.
23747         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23748         (ARRAY_SIZE): New macro.
23749         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23750         * m4/nproc.m4: New file.
23751         * modules/nproc (Files): Add m4/nproc.m4.
23752         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23753         (Makefile.am): Instead, augment lib_SOURCES.
23754
23755 2009-10-18  Bruno Haible  <bruno@clisp.org>
23756
23757         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23758         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23759         sys/param.h.
23760
23761 2009-10-16  Eric Blake  <ebb9@byu.net>
23762
23763         utimensat: new module
23764         * modules/utimensat: New file.
23765         * lib/utimensat.c (utimensat): Likewise.
23766         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23767         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23768         so we can work around Linux bugs.
23769         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23770         * modules/sys_stat (Makefile.am): Substitute them.
23771         * lib/sys_stat.in.h (utimensat): Declare it.
23772         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23773         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23774         * modules/utimensat-tests: New test.
23775         * tests/test-utimensat.c: Likewise.
23776
23777         utimens: let lutimens work on non-symlinks
23778         * lib/utimens.c (lutimens): Fall back to utimens rather than
23779         failing with ENOSYS, when file is not a symlink.
23780         (utimens): Reduce redirection.
23781         * tests/test-lutimens.h (test_lutimens): Update test to cover
23782         non-symlinks.
23783         * tests/test-utimens.h (test_utimens): Update test to cover
23784         symlinks.
23785         * tests/test-utimens.c (main): Update caller.
23786
23787         utimens: cache whether utimensat syscall works
23788         * lib/utimens.c (utimensat_works_really): New cache variable.
23789         (fdutimens, lutimens): Use it to avoid failing syscall.
23790
23791         test-stat-time, test-utimens: improve portability
23792         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23793         ext4 on alpha, and for cygwin.
23794         * tests/test-utimens-common.h: New file.
23795         (nap): Factor delays into single function.
23796         * tests/test-lutimens.h (test_lutimens): Use new header.
23797         * tests/test-futimens.h (test_futimens): Likewise.
23798         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23799         timestamps to occur from same machine, as was done previously for
23800         test_utimens.
23801         * modules/utimens-tests (Files): Ship new file.
23802         * modules/futimens-tests (Files): Likewise.
23803         Reported in part by Jim Meyering.
23804
23805         sys_stat: sort replacement declarations
23806         * lib/sys_stat.in.h: Sort declarations.
23807         * lib/futimens.c (futimens): Fix typo.
23808
23809 2009-10-15  Jim Meyering  <meyering@redhat.com>
23810
23811         don't let environment settings perturb build
23812         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23813         could cause a configure-time and/or build-time malfunction.
23814         Typically, a configure-time function-in-library test is performed
23815         via code like this:
23816
23817           LIB_VAR=
23818           AC_SUBST([LIB_VAR])
23819           prefix_saved_LIBS=$LIBS
23820             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23821                        [test "$ac_cv_search_FUNC" = "none required" ||
23822                         LIB_VAR=$ac_cv_search_FUNC])
23823           LIBS=$prefix_saved_LIBS
23824
23825         However, in each of the files affected by this change, the LIB_VAR=
23826         initialization was omitted.  Thus, when set in the environment, its
23827         value would propagate into generated Makefiles when FUNC is not found
23828         in LIB_NAME.
23829         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23830         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23832
23833 2009-10-14  Eric Blake  <ebb9@byu.net>
23834
23835         fchdir: avoid infinite recursion in mingw
23836         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23837         recursing.
23838
23839         test-stat-time: port to mingw
23840         * tests/test-stat-time.c (force_unlink): Return a value.
23841         (test_ctime) [W32]: Fix compilation error.
23842         (nap): Don't call usleep with too large an argument.  Use
23843         force_unlink.
23844         * doc/pastposix-functions/usleep.texi (usleep): Document the
23845         portability issue.
23846
23847 2009-10-13  Jim Meyering  <meyering@redhat.com>
23848
23849         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23850         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23851         * modules/pipe-filter-ii: Likewise.
23852         * modules/sys_socket-tests: Likewise.
23853         * modules/tsearch-tests: Likewise.
23854         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23855         (check): Depend on it.
23856
23857 2009-10-12  Eric Blake  <ebb9@byu.net>
23858
23859         utimens-tests: port to NFS file systems
23860         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23861         comparisons to avoid spurious failures from timestamp drift
23862         between NFS machines.
23863
23864 2009-10-12  Eric Blake  <ebb9@byu.net>
23865
23866         stat-time-tests: minor cleanups
23867         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23868         * tests/test-stat-time.c (nap): Separate assignment from call.
23869         Suggested by Paolo Bonzini and Bruno Haible.
23870
23871         sys_stat: guarantee struct timespec
23872         * lib/sys_stat.in.h (includes): Always include <time.h>
23873         * modules/sys_stat (Depends-on): Add time.
23874         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23875         mode_t permission values.
23876         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23877         get at subsecond timestamps.
23878
23879 2009-10-10  Eric Blake  <ebb9@byu.net>
23880
23881         futimens: new module
23882         * modules/futimens: New file.
23883         * lib/futimens.c (futimens): Likewise.
23884         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23885         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23886         we can work around Linux bugs.
23887         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23888         * modules/sys_stat (Makefile.am): Substitute them.
23889         * lib/sys_stat.in.h (futimens): Declare it.
23890         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23891         * doc/posix-functions/futimens.texi (futimens): Likewise.
23892         * modules/futimens-tests: New test.
23893         * tests/test-futimens.c: Likewise.
23894
23895         utimens: introduce fdutimens
23896         * lib/utimens.h (fdutimens): New prototype.
23897         * lib/utimens.c (gl_futimens): Move guts...
23898         (fdutimens): ...to new interface.
23899         * tests/test-utimens.c (do_fdutimens): Use it.
23900
23901         utimens: add UTIME_NOW and UTIME_OMIT support
23902         * lib/utimens.c (validate_timespec, update_timespec): New helper
23903         functions.
23904         (gl_futimens, lutimens): Use them.
23905         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23906         stdbool, sys_stat.
23907         (Link): Mention resulting library dependency.
23908         * modules/utimecmp (Link): Likewise.
23909         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23910         (Makefile.am): Pick up library dependency.
23911         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23912         definition.
23913         * tests/test-sys_stat.c: Test the definitions.
23914         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23915         * NEWS: Document library dependency.
23916
23917         utimecmp: support symlink timestamps
23918         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23919         hashing when possible.  Use pathconf when available.
23920         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23921         * modules/utimecmp (Depends-on): Add lstat.
23922
23923         utimens: add lutimens interface
23924         * lib/utimens.c (lutimens): New function.
23925         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23926         * lib/utimens.h (lutimens): Declare new interface.
23927         * tests/test-utimens.c (main): Enhance test.
23928         * tests/test-lutimens.h (test_lutimens): New file.
23929         * modules/utimens-tests (Files): Distribute it.
23930         (Depends-on): Add symlink.
23931         (configure.ac): Check for usleep.
23932
23933         utimens: validate futimens usage
23934         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23935         fewer syscalls on failure later on.  Avoid compiler warning on
23936         mingw.
23937         * modules/utimens (Depends-on): Add dup2.
23938
23939         utimens: add test
23940         * modules/utimens-tests: New test.
23941         * tests/test-utimens.h: New file.
23942         * tests/test-futimens.h: Likewise.
23943         * tests/test-utimens.c: Likewise.
23944
23945         doc: mention timestamp portability issues
23946         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23947         instead.
23948         * doc/posix-functions/utime.texi (utime): Likewise.
23949         * doc/posix-functions/utimes.texi (utimes): Likewise.
23950         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23951         instead.
23952         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23953         module.
23954         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23955         Mention weakness with symlink timestamps.
23956         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23957         to utimensat/futimens instead.
23958         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23959
23960         test-dup2: enhance test
23961         * tests/test-dup2.c (main): Also check AT_FDCWD.
23962
23963         test-stat-time: avoid more spurious failures
23964         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23965         xfs; and avoid race if the two timestamps cross quantization edge.
23966
23967         relocatable: prefer 'file system' over 'filesystem'
23968         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23969         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23970         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23971         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23972         * lib/relocatable.c (compute_curr_prefix): Likewise.
23973
23974 2009-10-10  Jim Meyering  <meyering@redhat.com>
23975
23976         stat-time-tests: check for the usleep function
23977         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23978
23979 2009-10-10  Bruno Haible  <bruno@clisp.org>
23980
23981         * modules/xnanosleep: Put the Link section after the Include section.
23982
23983 2009-10-09  Eric Blake  <ebb9@byu.net>
23984
23985         dup2: work around FreeBSD 6.1 bug
23986         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23987         * doc/posix-functions/dup2.texi (dup2): Document it.
23988         Reported by Nelson H. F. Beebe and Jim Meyering.
23989
23990         test-stat-time: port to buggy NFS clients
23991         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23992         (test_ctime): Also skip test if mtime and ctime are skewed.
23993
23994         maint: prefer 'file system' over 'filesystem'
23995         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23996         * doc/posix-functions/lstat.texi (lstat): Likewise.
23997         * lib/file-has-acl.c (file_has_acl): Likewise.
23998         * lib/fwriteerror.c [TEST]: Likewise.
23999         * tests/test-areadlink.h (test_areadlink): Likewise.
24000         * tests/test-areadlinkat-with-size.c (main): Likewise.
24001         * tests/test-areadlinkat.c (main): Likewise.
24002         * tests/test-canonicalize-lgpl.c (main): Likewise.
24003         * tests/test-canonicalize.c (main): Likewise.
24004         * tests/test-fstatat.c (main): Likewise.
24005         * tests/test-linkat.c (main): Likewise.
24006         * tests/test-lstat.h (test_lstat_func): Likewise.
24007         * tests/test-mkdir.h (test_mkdir): Likewise.
24008         * tests/test-readlink.h (test_readlink): Likewise.
24009         * tests/test-remove.c (main): Likewise.
24010         * tests/test-rename.h (test_rename): Likewise.
24011         * tests/test-renameat.c (main): Likewise.
24012         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24013         * tests/test-symlink.h (test_symlink): Likewise.
24014         * tests/test-symlinkat.c (main): Likewise.
24015         * tests/test-unlink.h (test_unlink_func): Likewise.
24016         * tests/test-unlinkat.c (main): Likewise.
24017
24018         maint: make realtime library usage explicit
24019         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
24020         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
24021         * modules/settime (Link): Likewise.
24022         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
24023
24024         test-stat-time: speed up execution
24025         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
24026         warning on mingw.
24027         (nap): New helper function.
24028         (prepare_test): Use it to reduce sleep time.
24029         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
24030         execution.
24031         * modules/stat-time-tests (configure.ac): Check for usleep.
24032
24033 2009-10-09  Jim Meyering  <meyering@redhat.com>
24034
24035         selinux-h: always use getfilecon wrappers
24036         * lib/getfilecon.c: New file.
24037         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
24038         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
24039         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
24040         (fgetfilecon): Provide a stub.
24041         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
24042         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
24043         file unconditionally.
24044         When <selinux/selinux.h> is found, arrange to use wrappers.
24045         * modules/selinux-h (Files): Add getfilecon.c.
24046         (Makefile.am): Substitute include-next-related bits
24047         into the now-always-generated selinux/selinux.h file.
24048         * doc/glibc-functions/lgetfilecon.texi: New file.
24049         * doc/glibc-functions/fgetfilecon.texi: New file.
24050         * doc/glibc-functions/getfilecon.texi: New file.
24051         * doc/glibc-functions/getfilecon-desc.texi: New file.
24052         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
24053         which to pull in the new files.
24054         * MODULES.html.sh (Misc): Add selinux-h.
24055
24056 2009-10-08  Jim Meyering  <meyering@redhat.com>
24057
24058         unistd: fix comment typo
24059         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24060
24061 2009-10-08  Eric Blake  <ebb9@byu.net>
24062
24063         areadlink: use SIZE_MAX consistently
24064         * modules/areadlink (Depends-on): Add stdint.
24065         * modules/areadlink-with-size (Depends-on): Likewise.
24066         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24067         gives NULL; drop sys/types, since unistd gives size_t; and add
24068         stdint for SIZE_MAX.
24069         (SIZE_MAX): Rely on headers.
24070         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24071         and add stdint.
24072         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24073         (SIZE_MAX): Likewise.
24074         (INITIAL_BUF_SIZE): Turn into enum.
24075         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24076
24077 2009-10-08  Jim Meyering  <meyering@redhat.com>
24078
24079         areadlinkat: avoid compilation failure
24080         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24081         Fix typo in comment.
24082
24083 2009-10-07  Eric Blake  <ebb9@byu.net>
24084
24085         areadlinkat-with-size: new module
24086         * modules/areadlinkat-with-size: New module.
24087         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24088         * lib/areadlink.h (areadlinkat): Declare it.
24089         * MODULES.html.sh (File system functions): Mention it.
24090         * modules/areadlinkat-with-size-tests: New test.
24091         * tests/test-areadlinkat-with-size.c: New file.
24092
24093         xreadlinkat: new module
24094         * modules/xreadlinkat: New module.
24095         * lib/xreadlinkat.c (xreadlinkat): New file.
24096         * lib/xreadlink.h (xreadlinkat): Declare it.
24097         * MODULES.html.sh (File system functions): Mention it.
24098
24099         areadlinkat: new module
24100         * lib/at-func.c (FUNC_FAIL): New define.
24101         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24102         * modules/areadlinkat: New module.
24103         * lib/linkat.c (areadlinkat): Move...
24104         * lib/areadlinkat.c (areadlinkat): ...to new file.
24105         * lib/areadlink.h (areadlinkat): Declare it.
24106         * modules/linkat (Depends-on): Add areadlinkat.
24107         * MODULES.html.sh (File system functions): Mention it.
24108         * modules/areadlinkat-tests: New test.
24109         * tests/test-areadlinkat.c: New file.
24110
24111         areadlink, areadlink-with-size: add tests
24112         * modules/areadlink-tests: New test.
24113         * modules/areadlink-with-size-tests: Likewise.
24114         * tests/test-areadlink.h: New file.
24115         * tests/test-areadlink.c: Likewise.
24116         * tests/test-areadlink-with-size.c: Likewise.
24117
24118         maint: minor cleanups
24119         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24120         _UNUSED_PARAMETER_ instead.
24121         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24122         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24123         * modules/linkat-tests (Files): Distribute test-link.h.
24124
24125         openat, utimens: whitespace cleanup
24126         * lib/openat.c: Prefer space throughout, rather than mix of 8
24127         spaces vs. tabs.
24128         * lib/at-func.c: Likewise.
24129         * lib/utimens.c: Likewise.
24130
24131         openat: avoid using wrong fd
24132         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24133         working directory chooses same fd.
24134         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24135
24136         mkdir, mkdirat: fix cygwin 1.5.x bug
24137         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24138         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24139         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24140         bug.
24141         (gl_PREREQ_MKDIR): Delete unused macro.
24142         * modules/mkdir (Files): Track file rename.
24143         (configure.ac): Update macro name.
24144         * modules/openat (Depends-on): Add mkdir.
24145         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24146
24147         mkdir, mkdirat: add tests
24148         * modules/mkdir-tests: New test.
24149         * tests/test-mkdir.h: New file.
24150         * tests/test-mkdir.c: Likewise.
24151         * tests/test-mkdirat.c: Likewise.
24152         * modules/openat-tests (Files): Add new files.
24153         (Makefile.am): Run new test.
24154
24155 2009-10-06  Eric Blake  <ebb9@byu.net>
24156
24157         doc: tweak *at function documentation
24158         * doc/posix-functions/faccessat.texi (faccessat): Mention
24159         known issue with replacement.
24160         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24161         * doc/posix-functions/linkat.texi (linkat): Likewise.
24162         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24163         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24164         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24165         * doc/posix-functions/renameat.texi (renameat): Likewise.
24166         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24167
24168         openat: fix GNU/Hurd bug in unlinkat
24169         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24170         broken.
24171         * doc/posix-functions/unlink.texi (unlink): Document this.
24172         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24173
24174         fdopendir: fix GNU/Hurd bug
24175         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24176         allowing non-directory fds.
24177         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24178         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24179         * modules/dirent (Makefile.am): Substitute it.
24180         * lib/dirent.in.h (fdopendir): Declare replacement.
24181         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24182         * tests/test-fdopendir.c (main): Test something other than
24183         /dev/null, since on Hurd that behaves like a directory.
24184
24185         test-symlink: port to GNU/Hurd
24186         * tests/test-symlink.h (test_symlink): Relax expected errno.
24187
24188         doc: tweak more cygwin information
24189         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24190         now compatible with glibc.
24191         * doc/posix-functions/getopt.texi (getopt): Likewise.
24192
24193         getopt-gnu: add another test
24194         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24195         guarantee behavior relied on by m4.
24196         * tests/test-getopt.c (main): Use it.
24197         * modules/getopt-posix-tests (Depends-on): Add setenv.
24198         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24199
24200         getopt: fix compilation on darwin
24201         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24202         include.
24203         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24204         Reported by Ludovic Courtès.
24205
24206 2009-10-06  Bruno Haible  <bruno@clisp.org>
24207
24208         * modules/size_max (Description): Discourage its use.
24209         Reported by Simon Josefsson.
24210
24211 2009-10-06  Jim Meyering  <meyering@redhat.com>
24212
24213         linkat: avoid compilation failure
24214         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24215
24216 2009-10-05  Eric Blake  <ebb9@byu.net>
24217
24218         linkat: support Linux 2.6.17
24219         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24220         linkat on Linux, but allow cache variable override.
24221         * lib/linkat.c (rpl_linkat): Define override.
24222         * modules/linkat (Depends-on): Add symlinkat.
24223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24224         * modules/unistd (Makefile.am): Substitute it.
24225         * lib/unistd.in.h (linkat): Declare replacement.
24226         Reported by Pádraig Brady.
24227
24228         quotearg: port test to systems with C.UTF-8 locale
24229         * tests/test-quotearg.c (struct result_strings): Add another
24230         member, differentiating between C.ASCII and C.UTF-8 handling.
24231         (compare_strings): Add parameter.
24232         (main): Adjust all callers.
24233
24234         getopt: avoid clash with FreeBSD _getopt_internal
24235         * lib/getopt.in.h (_getopt_internal): Override the name.
24236         * lib/getopt_int.h (includes): Pick up any overrides.
24237         Reported by Reuben Thomas.
24238
24239         hash: allow C89 compilation
24240         * lib/hash.c (check_tuning): Move declaration before statement.
24241         Reported by Reuben Thomas.
24242
24243 2009-10-05  Karl Berry  <karl@gnu.org>
24244
24245         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24246
24247 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24248             Bruno Haible  <bruno@clisp.org>
24249
24250         * lib/uname.c (uname): Use a table-driven algorithm to compute
24251         Windows NT versions.
24252
24253 2009-10-04  Bruno Haible  <bruno@clisp.org>
24254
24255         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24256         program_invocation_short_name.
24257         * modules/progname (configure.ac): Test for presence of
24258         program_invocation_short_name.
24259         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24260
24261 2009-10-04  Bruno Haible  <bruno@clisp.org>
24262
24263         * lib/progname.c (set_program_name): Fix comment.
24264         Reported by Jim Meyering.
24265
24266 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24267             Bruno Haible  <bruno@clisp.org>
24268
24269         * lib/uname.c: Include <string.h>.
24270         (uname): Do only one call to GetVersionEx in the common case.
24271
24272 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24273             Bruno Haible  <bruno@clisp.org>
24274
24275         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24276         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24277         (uname): Add support for Windows CE and various non-x86 CPU types.
24278
24279 2009-10-03  Bruno Haible  <bruno@clisp.org>
24280
24281         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24282         invocation to tests/configure.ac.
24283         Reported by Ian Beckwith <ianb@erislabs.net>.
24284
24285 2009-10-02  Eric Blake  <ebb9@byu.net>
24286
24287         fchdir: avoid compiler warning
24288         * lib/fchdir.c (canonicalize_file_name)
24289         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24290
24291         test-open: support mingw errno values
24292         * tests/test-open.h (test_open): Relax test.
24293         * tests/test-fopen.h (test_fopen): Likewise.
24294         * tests/test-openat-safer.c (main): Likewise.
24295
24296         open: fix opening directory on mingw
24297         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24298
24299         test-open: on GNU/Hurd, /dev/null is a directory
24300         * tests/test-fopen.h (main): Rename...
24301         (test_fopen): ...to this.  Use a guaranteed non-directory when
24302         confirming open behavior on trailing slash.
24303         * tests/test-openat-safer.c (main): Likewise.
24304         * tests/test-open.h (main): Likewise....
24305         (test_open): ...to this.
24306         * tests/test-fopen.c (main): Adjust caller.
24307         * tests/test-fopen-safer.c (main): Likewise.
24308         * tests/test-open.c (main): Likewise.
24309         * tests/test-fcntl-safer.c (main): Likewise.
24310         Reported by Samuel Thibault.
24311
24312         rename, fchdir: don't ignore chdir failure
24313         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24314         * lib/rename.c (rpl_rename) [W32]: Likewise.
24315         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24316         an empty destination directory if source cannot be renamed,
24317         although there is still possibility for failure.
24318         * doc/posix-functions/rename.texi (rename): Document the race.
24319         Reported by Jim Meyering.
24320
24321         maint: cleanup whitespace in recent commits
24322         * lib/rename.c (rpl_rename): Remove tabs.
24323         * tests/test-link.h (test_link): Likewise.
24324         * lib/fchdir.c (get_name): Likewise.
24325         Reported by Jim Meyering.
24326
24327 2009-10-02  Ben Pfaff  <blp@gnu.org>
24328
24329         relocatable-prog-wrapper: Add missing dependency on
24330         double-slash-root.
24331         * modules/relocatable-prog-wrapper: Add dependency.
24332         Reported by Ian Beckwith <ianb@erislabs.net>.
24333
24334 2009-10-02  Eric Blake  <ebb9@byu.net>
24335
24336         renameat: fix Solaris bugs
24337         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24338         needed fixing.
24339         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24340         * modules/stdio (Makefile.am): Substitute it.
24341         * lib/stdio.in.h (renameat): Declare replacement.
24342         * lib/renameat.c (rpl_renameat): Implement fix.
24343
24344         renameat: new module
24345         * modules/renameat: New file.
24346         * lib/renameat.c (renameat): Likewise.
24347         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24349         * modules/stdio (Makefile.am): Substitute them.
24350         * lib/stdio.in.h (renameat): Declare it.
24351         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24352         * doc/posix-functions/renameat.texi (renameat): Likewise.
24353         * modules/renameat-tests: New test.
24354         * tests/test-renameat.c: Likewise.
24355
24356         rename: fix mingw bugs
24357         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24358         directory overwrite bugs.
24359
24360         rename: fix another cygwin 1.5 bug
24361         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24362         checks.
24363         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24364         unnecessary cygwin workarounds.  Also work around bug with moving
24365         full directory onto an empty one.
24366         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24367
24368         rename-dest-slash: merge into rename module
24369         * modules/rename-dest-slash (Status): Mark obsolete.
24370         (Depends-on): Add rename.
24371         (Files): Let rename do it all.
24372         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24373         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24374         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24375         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24376         * lib/rename.c (rpl_rename): Update comments.
24377
24378         rename: fix cygwin 1.5.x bugs
24379         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24380         * lib/rename.c (rpl_rename): Work around them.
24381         * modules/rename (Depends-on): Add same-inode.
24382
24383         rename: fix Solaris 10 bug
24384         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24385         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24386         was the only bug.
24387
24388         rename: fix Solaris 9 bug
24389         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24390         on non-directory.  Avoid calling exit.
24391         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24392         strdup.
24393         * modules/rename-tests (Depends-on): Drop lstat.
24394         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24395         (gl_PREREQ_RENAME): Delete unused macro.
24396
24397         rename-dest-slash: fix NetBSD bug
24398         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24399         links.
24400         * modules/rename-dest-slash (Depends-on): Add same-inode.
24401
24402         rename-tests: new test, exposes several platform bugs
24403         * modules/rename-tests: New file.
24404         * tests/test-rename.h: Likewise.
24405         * tests/test-rename.c: Likewise.
24406         * doc/posix-functions/rename.texi (rename): Improve documentation,
24407         including bugs that will eventually be fixed in gnulib.
24408
24409 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24410
24411         * lib/uname.c: Include <stdlib.h>
24412         (uname): Assume version info is available.
24413
24414 2009-10-02  Jim Meyering  <meyering@redhat.com>
24415
24416         gnu-web-doc-update: correct --help output
24417         * build-aux/gnu-web-doc-update: Make --help output relevant.
24418
24419         gnu-web-doc-update: add standard options
24420         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24421
24422         gnu-web-doc-update: New module.
24423         Use this script to automatically update the on-line web documentation
24424         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24425         * modules/gnu-web-doc-update: New file, from coreutils.
24426         * build-aux/gnu-web-doc-update: New script.
24427
24428 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24429
24430         link: LoadLibrary is not needed.
24431         * lib/link.c: Use GetModuleHandle.
24432
24433 2009-10-01  Eric Blake  <ebb9@byu.net>
24434
24435         getopt: bump serial number
24436         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24437         change.
24438
24439         tests: tighten link, rmdir, and remove tests
24440         * tests/test-link.h (includes): No need to use <config.h> here.
24441         Clean up if directory hard link was created, otherwise test for
24442         trailing '.'.
24443         * tests/test-linkat.c (main): Simplify.
24444         * tests/test-remove.c (main): Enhance test for trailing '.'.
24445         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24446
24447 2009-10-01  Jim Meyering  <meyering@redhat.com>
24448
24449         maint.mk: requiring "make major" was annoying, for a "minor" release.
24450         What is intended is "stable", to contrast with alpha and beta,
24451         so require "make stable", not "make major".
24452         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24453         (get_tool_versions): Likewise.
24454         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24455
24456 2009-09-30  Ben Pfaff  <blp@gnu.org>
24457
24458         Fix broken build of replacement for Windows tmpfile().
24459         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24460         flags argument added along with the 'mkostemp' module.
24461
24462 2009-09-28  Bruno Haible  <bruno@clisp.org>
24463
24464         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24465         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24466         to 'remove_elt'.
24467         (gl_list_remove): Update.
24468         * lib/gl_list.c (gl_list_remove): Update.
24469         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24470         to 'remove_elt'.
24471         (gl_oset_remove): Update.
24472         * lib/gl_list.c (gl_oset_remove): Update.
24473         Reported by Eric Blake.
24474
24475 2009-09-28  Eric Blake  <ebb9@byu.net>
24476
24477         doc: mention yet more cygwin 1.7 status
24478         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24479         cygwin.
24480         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24481         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24482
24483         argp: fix test failure
24484         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24485         that are not upper-case.  Pass correct range to tolower.
24486
24487 2009-09-27  Jim Meyering  <meyering@redhat.com>
24488
24489         test-yesno: work around sparc-dash here-document infelicity
24490         Without this change, the literal \177 byte in a here document
24491         would make dash 0.5.5.1-3 access uninitialized memory.
24492         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24493         Instead, use a marker, "@", and filter through tr to create the desired
24494         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24495
24496 2009-09-27  Bruno Haible  <bruno@clisp.org>
24497
24498         Disable untested support for new flavours of ACLs on AIX.
24499         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24500         progress.
24501         * lib/set-mode-acl.c (qset_acl): Likewise.
24502
24503 2008-12-07  Bruno Haible  <bruno@clisp.org>
24504
24505         Add support for new flavours of ACLs on AIX. (Untested.)
24506         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24507         (file_has_acl): Add support for newer AIX.
24508         * lib/set-mode-acl.c (qset_acl): Likewise.
24509         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24510         Rainer Tammer <tammer@tammer.net>.
24511
24512 2009-09-26  Eric Blake  <ebb9@byu.net>
24513
24514         argp: fix compilation of getopt
24515         * lib/getopt.in.h (includes): Use different guard than glibc.
24516         Reported by Sergey Poznyakoff.
24517
24518         doc: mention more cygwin 1.7 status
24519         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24520         bug.
24521         * doc/posix-functions/execl.texi (execl): Likewise.
24522         * doc/posix-functions/execle.texi (execle): Likewise.
24523         * doc/posix-functions/execlp.texi (execlp): Likewise.
24524         * doc/posix-functions/execv.texi (execv): Likewise.
24525         * doc/posix-functions/execve.texi (execve): Likewise.
24526         * doc/posix-functions/execvp.texi (execvp): Likewise.
24527         * doc/glibc-functions/canonicalize_file_name.texi
24528         (canonicalize_file_name): Cygwin 1.7 now provides this.
24529         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24530         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24531         on AT_SYMLINK_NOFOLLOW.
24532
24533 2009-09-24  Eric Blake  <ebb9@byu.net>
24534
24535         test-linkat: make test more robust
24536         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24537
24538         getopt: fix inclusion guards for cygwin
24539         * modules/getopt-posix (Depends-on): Add include-next.
24540         (Makefile.am): Substitute more items in replacement header.
24541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24542         <getopt.h>.
24543         * lib/getopt.in.h (includes): Use split inclusion guard, and
24544         prefer <getopt.h> over include <unistd.h> when one is present.
24545         (option): Also override name of 'struct option'.
24546
24547         same-inode: revert prior change; it is not yet ready
24548         * NEWS: Undo mention of this change.
24549         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24550         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24551         * lib/cycle-check.c (cycle_check): Likewise.
24552         * lib/same.c (same_name): Likewise.
24553         * lib/at-func2.c (at_func2): Likewise.
24554
24555 2009-09-23  Eric Blake  <ebb9@byu.net>
24556
24557         linkat: new module
24558         * modules/linkat: New file.
24559         * lib/at-func2.c (at_func2): Likewise.
24560         * lib/linkat.c (linkat): Likewise.
24561         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24562         * lib/openat-priv.h (at_func2): Add declaration.
24563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24564         * modules/unistd (Makefile.am): Substitute them.
24565         * lib/unistd.in.h (linkat): Declare it.
24566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24567         * doc/posix-functions/linkat.texi (linkat): Likewise.
24568         * doc/posix-functions/link.texi (link): Tweak wording.
24569         * tests/test-link.c (main): Move guts...
24570         * tests/test-link.h (test_link): ...into new file.
24571         * modules/linkat-tests: New test.
24572         * tests/test-linkat.c: Likewise.
24573         * modules/link-tests (Files): Ship new file.
24574         (Depends-on): Add stdbool.
24575
24576         dirname: add library-safe mdir_name
24577         * lib/dirname.h (mdir_name): New prototype.
24578         * lib/dirname.c (dir_name): Move guts...
24579         (mdir_name): ...to new function that avoids xalloc_die.
24580
24581         fchdir: another mingw fix
24582         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24583         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24584         on mingw (where it has not yet been ported), and make it optional
24585         elsewhere.
24586         (_gl_register_fd): Use it.
24587
24588         same-inode: make SAME_INODE tri-state, to port to mingw
24589         * NEWS: Mention this change.
24590         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24591         st_ino always being 0.
24592         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24593         * lib/cycle-check.c (cycle_check): Likewise.
24594         * lib/same.c (same_name): Likewise.
24595
24596         lstat: avoid mingw compilation error
24597         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24598         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24599         lstat ourselves.
24600         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24601         was adequate.
24602         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24603         the checks for lstat.
24604         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24605
24606         link: fix test failure on Solaris 9
24607         * lib/link.c (rpl_link): Don't assume link will catch bogus
24608         trailing slash on source.
24609
24610         test-symlinkat: enhance test
24611         * tests/test-readlink.c (main): Move guts...
24612         * tests/test-readlink.h (test_readlink): ...into new file.
24613         * tests/test-symlink.c (main): Move guts...
24614         * tests/test-symlink.h (test_symlink): ...into new file.
24615         * tests/test-symlinkat.c (main): Use new files for further
24616         coverage.
24617         (do_symlink, do_readlink): New helper functions.
24618         * modules/symlink-tests (Files): Ship new file.
24619         (Depends-on): Add stdbool.
24620         * modules/readlink-tests (Files): Ship new file.
24621         (Depends-on): Add stdbool.
24622         * modules/symlinkat-tests (Files): Use new files.
24623
24624 2009-09-23  Eric Blake  <ebb9@byu.net>
24625
24626         readlink: document portability issue with symlink length
24627         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24628         systems have bogus st_size on symlinks, and mention the
24629         areadlink-with-size module.
24630         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24631         * doc/posix-functions/readlink.texi (readlink): Mention the
24632         areadlink module, and ERANGE failure.
24633         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24634         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24635
24636         readlink: fix Solaris 9 bug with trailing slash
24637         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24638         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24639         * doc/posix-functions/readlink.texi (readlink): Document this.
24640         * modules/readlink-tests: New test.
24641         * tests/test-readlink.c: Likewise.
24642
24643         readlink: fix cygwin 1.5.x bug with return type
24644         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24645         * lib/unistd.in.h (readlink): Use ssize_t.
24646         * lib/readlink.c (readlink): Likewise.
24647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24648         * modules/unistd (Makefile.am): Substitute it.
24649         * lib/unistd.in.h (readlink): Declare replacement.
24650         * doc/posix-functions/readlink.texi (readlink): Document this.
24651
24652         symlink: use throughout gnulib
24653         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24654         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24655         symlink is not used.
24656         * modules/symlinkat (Depends-on): Add symlink.
24657         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24658         * modules/canonicalize-tests (Depends-on): Likewise.
24659         * modules/lstat-tests (Depends-on): Likewise.
24660         * modules/openat-tests (Depends-on): Likewise.
24661         * modules/remove-tests (Depends-on): Likewise.
24662         * modules/rmdir-tests (Depends-on): Likewise.
24663         * modules/unlink-tests (Depends-on): Likewise.
24664         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24665         * tests/test-canonicalize.c (symlink): Likewise.
24666         * tests/test-fstatat.c (symlink): Likewise.
24667         * tests/test-lstat.c (symlink): Likewise.
24668         * tests/test-remove.c (symlink): Likewise.
24669         * tests/test-rmdir.c (symlink): Likewise.
24670         * tests/test-unlink.c (symlink): Likewise.
24671         * tests/test-unlinkat.c (symlink): Likewise.
24672
24673         symlink: new module, for Solaris 9 bug
24674         * modules/symlink: New file.
24675         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24676         * lib/symlink.c: Likewise.
24677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24678         * modules/unistd (Makefile.am): Substitute them.
24679         * lib/unistd.in.h (symlink): Declare replacement.
24680         * MODULES.html.sh (File system functions): Mention it.
24681         * doc/posix-functions/symlink.texi (symlink): Likewise.
24682         * modules/symlink-tests: New test.
24683         * tests/test-symlink.c: Likewise.
24684
24685 2009-09-23  Bruno Haible  <bruno@clisp.org>
24686
24687         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24688         when needed.
24689         Test case: gnulib-tool --import --with-tests atexit inttypes.
24690         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24691
24692 2009-09-23  Bruno Haible  <bruno@clisp.org>
24693
24694         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24695         subcommand, not in a subshell.
24696
24697 2009-09-22  Eric Blake  <ebb9@byu.net>
24698
24699         unistd: sort replacement declarations
24700         * lib/unistd.in.h: Sort declarations.
24701
24702         open, openat: minor optimization
24703         * lib/open.c (open): If open succeeded, len is non-zero.
24704         * lib/openat.c (rpl_openat): Likewise.
24705
24706         link-follow: ensure correct result
24707         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24708         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24709         distinguish between possible failures.
24710
24711 2009-09-21  Eric Blake  <ebb9@byu.net>
24712
24713         fts: avoid compiler warning
24714         * lib/fts.c (dirent_inode_sort_may_be_useful)
24715         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24716
24717 2009-09-19  Bruno Haible  <bruno@clisp.org>
24718
24719         * lib/progreloc.c (canonicalize_file_name): New declaration.
24720
24721 2009-09-19  Eric Blake  <ebb9@byu.net>
24722
24723         link: fix quoting
24724         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24725
24726         openat: fix openat bugs on Solaris 9
24727         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24728         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24729         * modules/openat (Depends-on): Add open.
24730         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24731         * modules/fcntl-h (Makefile.am): Substitute it.
24732         * lib/fcntl.in.h (openat): Declare replacement.
24733         * doc/posix-functions/openat.texi (openat): Document this.
24734
24735         openat: move fstatat and unlinkat into correct files
24736         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24737         compiled.
24738         * lib/openat.c (fstatat, unlinkat): Move...
24739         * lib/fstatat.c (fstatat): ...into correct files.
24740         * lib/unlinkat.c (unlinkat): Likewise.
24741
24742         openat: fix unlinkat bugs on Solaris 9
24743         * lib/unlinkat.c (unlinkat): New file.
24744         * modules/openat (Depends-on): Add unlink.
24745         (Files): Distribute it.
24746         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24747         trailing slash behavior is broken.
24748         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24749         * modules/unistd (Makefile.am): Substitute it.
24750         * lib/unistd.in.h (unlinkat): Declare replacement.
24751         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24752
24753         openat: fix fstatat bugs on Solaris 9
24754         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24755         stat.
24756         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24757
24758         test-unlinkat: enhance test, to expose Solaris 9 bug
24759         * tests/test-unlink.c (main): Factor guts...
24760         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24761         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24762         * tests/test-rmdir.c (main): Adjust caller.
24763         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24764         (unlinker): New helper function.
24765         (rmdirat): Enhance check.
24766         * modules/rmdir-tests (Depends-on): Add stdbool.
24767         * modules/unlink-tests (Depends-on): Likewise.
24768         (Files): Add test-unlink.h.
24769         * modules/openat-tests (Files): Likewise.
24770         (Depends-on): Add unlinkdir.
24771
24772         test-fstatat: new test, to expose Solaris 9 bugs
24773         * tests/test-stat.c (main): Factor guts...
24774         * tests/test-stat.h (test_stat_func): ...into new file.
24775         * tests/test-lstat.c (main): Factor guts...
24776         * tests/test-lstat.h (test_lstat_func): ...into new file.
24777         * tests/test-fstatat.c: New file.
24778         * modules/stat-tests (Files): Add test-stat.h.
24779         * modules/lstat-tests (Files): Add test-lstat.h.
24780         (Depends-on): Add stdbool.
24781         * modules/openat-tests (Depends-on): Add pathmax.
24782         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24783         (Makefile.am): Run new test.
24784
24785         remove: new module, for mingw and Solaris 9 bugs
24786         * modules/remove: New file.
24787         * lib/remove.c: Likewise.
24788         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24790         * modules/stdio (Makefile.am): Use them.
24791         * lib/stdio.in.h (remove): Declare replacement.
24792         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24793         * doc/posix-functions/remove.texi (remove): Likewise.
24794         * modules/remove-tests: New test.
24795         * tests/test-remove.c: Likewise.
24796
24797         unlink: new module, for Solaris 9 bug
24798         * modules/unlink: New file.
24799         * lib/unlink.c: Likewise.
24800         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24802         * modules/unistd (Makefile.am): Use them.
24803         * lib/unistd.in.h (stat): Declare replacement.
24804         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24805         * doc/posix-functions/unlink.texi (unlink): Likewise.
24806         * modules/unlink-tests: New test.
24807         * tests/test-unlink.c: Likewise.
24808
24809         lstat: fix Solaris 9 bug
24810         * lib/lstat.c (lstat): Also check for trailing slash on
24811         non-symlink, non-directories.  Use stat module to simplify logic.
24812         * doc/posix-functions/lstat.texi (lstat): Document it.
24813         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24814         (configure.ac): Check for symlink.
24815         * tests/test-lstat.c (main): Add more tests.
24816
24817         stat: add as dependency to other modules
24818         * modules/chown (Depends-on): Add stat.
24819         * modules/euidaccess (Depends-on): Likewise.
24820         * modules/fchdir (Depends-on): Likewise.
24821         * modules/isdir (Depends-on): Likewise.
24822         * modules/link (Depends-on): Likewise.
24823         * modules/lstat (Depends-on): Likewise.
24824         * modules/mkdir-p (Depends-on): Likewise.
24825         * modules/modechange (Depends-on): Likewise.
24826         * modules/open (Depends-on): Likewise.
24827         * modules/readlink (Depends-on): Likewise.
24828         * modules/same (Depends-on): Likewise.
24829
24830         stat: fix Solaris 9 bug
24831         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24832         slash.
24833         * lib/stat.c (rpl_stat): Work around it.
24834         * doc/posix-functions/stat.texi (stat): Update documentation.
24835
24836         stat: new module, for mingw bug
24837         * modules/stat: New file.
24838         * lib/stat.c: Likewise.
24839         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24840         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24841         * modules/sys_stat (Makefile.am): Use them.
24842         * lib/sys_stat.in.h (stat): Declare replacement.
24843         * lib/openat.c (fstatat): Deal with lstat and stat being function
24844         macros.
24845         * modules/openat (Depends-on): Add inline.
24846         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24847         * doc/posix-functions/stat.texi (stat): Likewise.
24848         * modules/stat-tests: New test.
24849         * tests/test-stat.c: Likewise.
24850
24851 2009-09-19  Jim Meyering  <meyering@redhat.com>
24852
24853         syntax-check: detect unnecessary inclusion of canonicalize.h
24854         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24855
24856 2009-09-19  Eric Blake  <ebb9@byu.net>
24857
24858         canonicalize-lgpl: adjust clients to use correct header
24859         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24860         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24861         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24862         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24863         * lib/progreloc.c (includes): Likewise.
24864
24865 2009-09-19  Jim Meyering  <meyering@redhat.com>
24866
24867         test-posixtm.c: correct a comment
24868         * tests/test-posixtm.c: Correct first-line comment.
24869         Spotted by Eric Blake.
24870
24871 2009-09-16  Jim Meyering  <meyering@redhat.com>
24872
24873         posixtm-tests: make T const-correct; add a test case
24874         * tests/test-posixtm.c (T): Declare const.
24875         Add a test for -(2^31+1).
24876         Remove useless can-succeed-only-in-2002 test.
24877
24878         posixtm-tests: adjust the sole failing test
24879         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24880         expected output matches what mktime now produces.  Cross-checked via
24881         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24882
24883         posixtm: move #ifdef'd tests into a new module
24884         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24885         * tests/test-posixtm.c: ... this new file.
24886         * modules/posixtm-tests: New module.
24887
24888 2009-09-19  Eric Blake  <ebb9@byu.net>
24889
24890         openat: simplify use of at-func.c
24891         * lib/at-func.c (includes): Include prerequisites here, to
24892         simplify requirements on client files.
24893         * lib/openat-priv.h: Add double-inclusion guard.
24894         * lib/faccessat.c (includes): Simplify.
24895         * lib/fchmodat.c (includes): Likewise.
24896         * lib/fchownat.c (includes): Likewise.
24897         * lib/mkdirat.c (includes): Likewise.
24898         * lib/mkfifoat.c (includes): Likewise.
24899         * lib/symlinkat.c (includes): Likewise.
24900
24901         openat: allow return of fd 0
24902         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24903         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24904         unistd-safer.
24905         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24906         <fcntl.h>; this module does not leak fds.
24907         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24908         must be allowed to return 0, leaving openat_safer to add the
24909         safety.
24910         (openat_permissive): Avoid writing to just-opened fd 2 if
24911         restoring the current directory fails.
24912         * lib/openat-die.c (openat_restore_fail): Add comment.
24913         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24914         (save_cwd): Guarantee safe fd, but without use of open_safer.
24915         * tests/test-openat.c: New test.
24916         * modules/openat-tests (Files, Makefile.am): Distribute and build
24917         new file.
24918
24919         relocatable-prog-wrapper: fix build
24920         * modules/relocatable-prog-wrapper (Files): Update name of
24921         canonicalize m4 file, broken on 2009-09-17.
24922         Reported by emad hajjar <aleppos@hotmail.com>.
24923
24924 2009-09-19  Bruno Haible  <bruno@clisp.org>
24925
24926         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24927         * lib/safe-alloc.c: Likewise.
24928         Reported by Ian Beckwith <ianb@erislabs.net>.
24929
24930 2009-09-18  Bruno Haible  <bruno@clisp.org>
24931
24932         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24933         Reported by <erobles@sensacd.com.mx>.
24934
24935 2009-09-17  Eric Blake  <ebb9@byu.net>
24936
24937         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24938         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24939         slashes when checking if last component is missing.
24940         * tests/test-canonicalize.c (main): Test this.
24941
24942         canonicalize, canonicalize-lgpl: honor // if distinct from /
24943         * modules/canonicalize (Files): Add double-slash-root.m4.
24944         * modules/canonicalize-lgpl (Files): Likewise.
24945         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24946         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24947         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24948         fallback definition.
24949         (canonicalize_filename_mode): Use it to protect //.
24950         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24951         (__realpath): Likewise.
24952         * tests/test-canonicalize.c (main): Test this.
24953         * tests/test-canonicalize-lgpl.c (main): Likewise.
24954         * modules/canonicalize-tests (Depends-on): Add same-inode.
24955         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24956
24957         canonicalize-lgpl: fix glibc bug with trailing slash
24958         * m4/canonicalize-lgpl.m4: Move contents...
24959         * m4/canonicalize.m4: ...here.
24960         (gl_CANONICALIZE_LGPL): Factor realpath check...
24961         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24962         glibc 2.3.5 bug, fixed 2005-04-27.
24963         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24964         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24965         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24966         * modules/canonicalize-lgpl (Files): Manage file rename.
24967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24968         * modules/stdlib (Makefile.am): Substitute witness.
24969         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24970         is needed.
24971         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24972         replacement is required.
24973         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24974         * doc/glibc-functions/canonicalize_file_name.texi
24975         (canonicalize_file_name): Document this.
24976         * doc/posix-functions/realpath.texi (realpath): Likewise.
24977
24978         canonicalize-lgpl: reject non-directory with trailing slash
24979         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24980         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24981         catches failures in glibc 2.3.5.
24982         * tests/test-canonicalize.c (main): Likewise.
24983
24984         canonicalize-lgpl: use native realpath if it works
24985         * lib/canonicalize-lgpl.c (realpath): Guard with
24986         FUNC_REALPATH_WORKS.
24987         * lib/stdlib.in.h (realpath): Make declaration optional based on
24988         HAVE_REALPATH.
24989         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24990         native realpath works.
24991         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24992         * modules/stdlib (Makefile.am): Substitute witness.
24993
24994         canonicalize, canonicalize-lgpl: use <stdlib.h>
24995         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24996         (Include): Mention <stdlib.h>.
24997         (configure.ac): Mention functions we provide.
24998         * modules/canonicalize (configure.ac): Likewise.
24999         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
25000         realpath if canonicalize_file_name is missing.
25001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
25002         * modules/stdlib (Makefile.am): Substitute witnesses.
25003         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
25004         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
25005         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
25006         * NEWS: Document this.
25007         * doc/glibc-functions/canonicalize_file_name.texi
25008         (canonicalize_file_name): Likewise.
25009         * doc/posix-functions/realpath.texi (realpath): Likewise.
25010         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
25011
25012         test-canonicalize: consolidate into single C program
25013         * tests/test-canonicalize.sh: Delete; move setup into...
25014         * tests/test-canonicalize.c (main): ...the program, making it
25015         easier to run in debugger.  Add some tests.
25016         * modules/canonicalize-tests (Files): Remove unused file.
25017         (Depends-on): Add progname.
25018         (configure.ac, Makefile.am): Simplify.
25019
25020         test-canonicalize-lgpl: consolidate into single C program
25021         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
25022         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
25023         easier to run in debugger.  Add some tests.
25024         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
25025         (configure.ac, Makefile.am): Simplify.
25026
25027         canonicalize: avoid resolvepath
25028         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
25029         unnecessary checks.
25030         * lib/canonicalize.c (includes): Simplify.
25031         (canonicalize_file_name): Drop resolvepath implementation.
25032         * modules/canonicalize (Depends-on): Drop filenamecat.
25033
25034         canonicalize: don't lose errno
25035         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
25036         over calls to free.
25037
25038         canonicalize: simplify errno handling
25039         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
25040         assignment.
25041
25042         canonicalize, canonicalize-lgpl: update module dependencies
25043         * modules/canonicalize (Depends-on): Add extensions, lstat,
25044         pathmax, stdlib.
25045         (Files): Drop pathmax.h.
25046         (configure.ac): Adjust macro name.
25047         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
25048         lstat, stdlib, sys_stat.
25049         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
25050         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
25051         extensions.
25052         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
25053         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25054         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25055         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25056         declaration, if available.
25057         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25058         we can rely on the readlink module.
25059         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25060         (includes): Use <unistd.h> unconditionally.
25061
25062 2009-09-17  Eric Blake  <ebb9@byu.net>
25063
25064         maint: make Include sections of modules consistent
25065         * modules/alloca: Use only header name; no need to list #include.
25066         * modules/alloca-opt: Likewise.
25067         * modules/arpa_inet: Likewise.
25068         * modules/canon-host: Likewise.
25069         * modules/configmake: Likewise.
25070         * modules/dirent: Likewise.
25071         * modules/eealloc: Likewise.
25072         * modules/environ: Likewise.
25073         * modules/fchdir: Likewise.
25074         * modules/fcntl: Likewise.
25075         * modules/fcntl-h: Likewise.
25076         * modules/gethrxtime: Likewise.
25077         * modules/gettime: Likewise.
25078         * modules/ignore-value: Likewise.
25079         * modules/inet_ntop: Likewise.
25080         * modules/inet_pton: Likewise.
25081         * modules/inttypes: Likewise.
25082         * modules/isnand-nolibm: Likewise.
25083         * modules/isnanf-nolibm: Likewise.
25084         * modules/mbchar: Likewise.
25085         * modules/mbfile: Likewise.
25086         * modules/mbiter: Likewise.
25087         * modules/mbuiter: Likewise.
25088         * modules/netdb: Likewise.
25089         * modules/netinet_in: Likewise.
25090         * modules/nproc: Likewise.
25091         * modules/pagealign_alloc: Likewise.
25092         * modules/poll: Likewise.
25093         * modules/printf-frexp: Likewise.
25094         * modules/pthread: Likewise.
25095         * modules/putenv: Likewise.
25096         * modules/random_r: Likewise.
25097         * modules/relocatable-prog: Likewise.
25098         * modules/search: Likewise.
25099         * modules/select: Likewise.
25100         * modules/selinux-h: Likewise.
25101         * modules/settime: Likewise.
25102         * modules/signal: Likewise.
25103         * modules/size_max: Likewise.
25104         * modules/socklen: Likewise.
25105         * modules/ssize_t: Likewise.
25106         * modules/stdarg: Likewise.
25107         * modules/stdbool: Likewise.
25108         * modules/stddef: Likewise.
25109         * modules/stdint: Likewise.
25110         * modules/stdio: Likewise.
25111         * modules/stdlib: Likewise.
25112         * modules/string: Likewise.
25113         * modules/strings: Likewise.
25114         * modules/sys_file: Likewise.
25115         * modules/sys_ioctl: Likewise.
25116         * modules/sys_select: Likewise.
25117         * modules/sys_socket: Likewise.
25118         * modules/sys_stat: Likewise.
25119         * modules/sys_time: Likewise.
25120         * modules/sys_times: Likewise.
25121         * modules/sys_utsname: Likewise.
25122         * modules/sys_wait: Likewise.
25123         * modules/sysexits: Likewise.
25124         * modules/time: Likewise.
25125         * modules/times: Likewise.
25126         * modules/tmpfile: Likewise.
25127         * modules/trim: Likewise.
25128         * modules/unistd: Likewise.
25129         * modules/wchar: Likewise.
25130         * modules/wctype: Likewise.
25131
25132 2009-09-17  Bruno Haible  <bruno@clisp.org>
25133
25134         Make getdate.y compile on QNX and NetBSD 5 / i386.
25135         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25136         TIME_T_FITS_IN_LONG_INT.
25137         * lib/getdate.y (long_time_t): New type.
25138         (relative_time): Change type of 'seconds' field to long_time_t.
25139         (get_date): Update types of local variables. Check against overflow
25140         during conversion from long_time_t to time_t.
25141         Reported by Matt Kraai <kraai@ftbfs.org>
25142         and Hasso Tepper <hasso@netbsd.org>.
25143
25144 2009-09-17  Bruno Haible  <bruno@clisp.org>
25145
25146         * modules/COPYING: Update copyright years.
25147         * modules/README: Likeiwse.
25148         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25149         Reported by Ian Beckwith <ianb@erislabs.net>.
25150
25151 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25152
25153         * users.txt: Update references for gnuit package.
25154
25155 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25156
25157         * m4/getdelim.m4: Fix typo in copyright line.
25158
25159 2009-09-17  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/atoll.c: Use the standard header with GPL copyright.
25162         * lib/argz.in.h: Likewise.
25163         * lib/glob.c: Likewise.
25164         * lib/glob-libc.h: Likewise.
25165         * lib/random_r.c: Likewise.
25166         * lib/siglist.h: Likewise.
25167         * lib/strsignal.c: Likewise.
25168         Reported by Ian Beckwith <ianb@erislabs.net>.
25169
25170 2009-09-17  Eric Blake  <ebb9@byu.net>
25171
25172         rmdir: ensure correct dependency order
25173         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25174
25175 2009-09-17  Bruno Haible  <bruno@clisp.org>
25176
25177         Disable assertion that fails on NetBSD 5 / i386.
25178         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25179         Reported by Sam Steingold <sds@gnu.org>
25180         and Hasso Tepper <hasso@netbsd.org>.
25181
25182 2009-09-16  Eric Blake  <ebb9@byu.net>
25183
25184         unlinkdir: port to mingw
25185         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25186         on which no one can unlink a directory.
25187
25188         stdlib: sort witness names
25189         * modules/stdlib (Makefile.am): Sort replacements.
25190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25191         * lib/stdlib.in.h: Likewise.
25192
25193         parse-duration-tests: avoid link failure
25194         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25195         LIBINTL.
25196         Reported by Tom G. Christensen.
25197
25198         openat-tests: ensure unlinkat behaves like rmdir
25199         * tests/test-rmdir.c (main): Factor guts...
25200         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25201         * modules/rmdir-tests (Files): Ship new file.
25202         * modules/openat-tests: New test.
25203         * tests/test-unlinkat.c: Likewise.
25204
25205         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25206         * modules/rmdir-errno (Status, Notice): Now obsolete.
25207
25208         rmdir: work around cygwin 1.5.x and mingw bugs
25209         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25210         * lib/rmdir.c (rmdir): Work around it.
25211         * modules/rmdir (Status, Notice): No longer obsolete.
25212         (Files): Add dos.m4.
25213         (Depends-on): Add unistd.
25214         (configure.ac): Set witnesses.
25215         (License): Relax to LGPLv2+.
25216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25217         * modules/unistd (Makefile.am): Substitute witnesses.
25218         * lib/unistd.in.h (rmdir): Declare replacement.
25219         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25220         * modules/rmdir-tests: New tests.
25221         * tests/test-rmdir.c: Likewise.
25222
25223 2009-09-15  Eric Blake  <ebb9@byu.net>
25224
25225         fchdir: improve use of replacement functions
25226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25229         REPLACE_CLOSEDIR.
25230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25231         * modules/sys_stat (Makefile.am): Substitute correct witness.
25232         * modules/dirent (Makefile.am): Likewise.
25233         * modules/unistd (Makefile.am): Likewise.
25234         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25235         * lib/unistd.in.h (dup): Likewise.
25236         * lib/sys_stat.in.h (fstat): Likewise.
25237
25238         maint: ignore gnulib-tool temp files
25239         * .gitignore: Ignore files created during gnulib-tool --test.
25240
25241 2009-09-13  Jim Meyering  <meyering@redhat.com>
25242
25243         posixtm: don't reject a time that specify "60" as the number of seconds
25244         * lib/posixtm.c (posixtime): The code to reject invalid dates
25245         would also reject a time specified with the .60 suffix.
25246         But POSIX allows that, in order to accommodate leap seconds.
25247         So don't reject it.
25248         (main): Adjust tests accordingly.
25249         * modules/posixtm (Depends-on): Add stpcpy.
25250
25251 2009-09-11  Jim Meyering  <meyering@redhat.com>
25252
25253         announce-gen: include [$release_type] in emitted Subject:
25254         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25255         e.g., [stable] in the emitted Subject: line.
25256
25257 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25258
25259         Remove obsolete macros from several modules.
25260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25261         obsolete Autoconf macros with their modern counterparts.
25262         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25263         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25264         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25265         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25266         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25267         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25268         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25269         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25270         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25271         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25272         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25273         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25274         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25275         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25276         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25277         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25278         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25279         * m4/time_r.m4 (gl_TIME_R): Likewise.
25280         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25281         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25282         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25283
25284         Fix copyright header in build-aux scripts.
25285         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25286         recommendation.
25287         * build-aux/ncftpput-ftp: Likewise.
25288         * build-aux/update-copyright: Likewise.
25289
25290 2009-09-09  Eric Blake  <ebb9@byu.net>
25291
25292         test-link: allow Linux choice of errno
25293         * tests/test-link.c (main): Relax test for alternate error.
25294
25295         strndup: fix improper m4 caching
25296         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25297         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25298         (gl_PREREQ_STRNDUP): Delete.
25299         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25300         * modules/string (Makefile.am): Substitute it.
25301         * lib/string.in.h (strndup): Modernize prototype.
25302
25303         getcwd: port to mingw
25304         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25305         different from the POSIX assumptions made throughout the getcwd
25306         module; fortunately, the mingw getcwd does not need replacement.
25307         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25308         * modules/getcwd-tests: New test.
25309         * tests/test-getcwd.c: Likewise.
25310
25311         link: fix platform bugs
25312         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25313         * lib/link.c (link): Work around them.  Fix related mingw bug.
25314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25315         * modules/unistd (Makefile.am): Substitute it.
25316         * lib/unistd.in.h (link): Declare replacement.
25317         * doc/posix-functions/link.texi (link): Document this.
25318         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25319
25320         test-link: consolidate into single C program, test more cases
25321         * tests/test-link.sh: Delete.
25322         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25323         at least Cygwin and Solaris.
25324         * modules/link-tests (Files): Remove unused file.
25325         (Depends-on): Add errno, sys_stat.
25326         (Makefile.am): Simplify.
25327
25328 2009-09-08  Bruno Haible  <bruno@clisp.org>
25329
25330         Work around towlower, towupper bug on mingw.
25331         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25332         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25333         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25334         * doc/posix-functions/towupper.texi: Likewise.
25335         Reported by Eric Blake.
25336
25337 2009-09-08  Jim Meyering  <meyering@redhat.com>
25338
25339         build: don't try to run autoheader if we don't use it
25340         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25341         is not used in configure.ac.
25342
25343 2009-09-08  Eric Blake  <ebb9@byu.net>
25344
25345         euidaccess: fix compilation error
25346         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25347
25348         rawmemchr: relax license
25349         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25350         okay.
25351         Reported by Jim Meyering.
25352
25353         mkfifoat: new module
25354         * modules/mkfifoat: New file.
25355         * lib/mkfifoat.c: Likewise.
25356         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25358         * modules/sys_stat (Makefile.am): Use them.
25359         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25360         * MODULES.html.sh (File system functions): Mention module.
25361         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25362         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25363         * modules/mkfifoat-tests: New test.
25364         * tests/test-mkfifoat.c: Likewise.
25365
25366         strchrnul: relax license
25367         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25368         okay.
25369         Reported by Jim Meyering.
25370
25371 2009-09-08  Eric Blake  <ebb9@byu.net>
25372
25373         fstatat: fix compilation on Solaris
25374         * lib/fstatat.c (includes): Add fcntl.h.
25375         Reported by Pádraig Brady.
25376
25377 2009-09-07  Eric Blake  <ebb9@byu.net>
25378
25379         rename: modernize replacement
25380         * modules/rename (Depends-on): Add stdio.
25381         (configure.ac): Declare witness.
25382         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25383         stdio take care of replacement.
25384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25385         * modules/stdio (Makefile.am): Substitute them.
25386         * lib/stdio.in.h (rename): Declare replacement.
25387         * lib/rename.c (includes): Allow cross-compilation to non-windows
25388         machines.
25389         * doc/posix-functions/rename.texi (rename): Improve
25390         documentation.
25391
25392         stdio: sort witness names
25393         * modules/stdio (Makefile.am): Sort replacements.
25394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25395         * lib/stdio.in.h: Likewise.
25396
25397         getcwd: minor cleanups
25398         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25399         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25400
25401         openat: provide more convenience names
25402         * modules/faccessat (configure.ac): Add C witness.
25403         * lib/unistd.in.h (readlinkat): Fix typo.
25404         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25405         convenience wrappers.
25406         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25407         wrappers in syntax checks.
25408
25409 2009-09-06  Eric Blake  <ebb9@byu.net>
25410
25411         doc: fix comments in recent patches
25412         * lib/faccessat.c: Mention correct function.
25413         * lib/fchmodat.c: Likewise.
25414         * lib/fchownat.c: Likewise.
25415         * lib/symlinkat.c: Likewise.
25416         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25417         constants.
25418
25419         faccessat, symlinkat: continue cleanup of previous patch
25420         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25421         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25422         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25423         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25424         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25425         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25426         set.
25427
25428 2009-09-06  Bruno Haible  <bruno@clisp.org>
25429
25430         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25431         (fstatat): Declare if GNULIB_FSTATAT is set.
25432         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25433         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25434         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25435         * modules/fcntl-h (Files): Remove m4/openat.m4.
25436         * modules/sys_stat (Files): Remove m4/openat.m4.
25437         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25438         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25439         * modules/unistd (Files): Remove m4/openat.m4.
25440         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25441         GNULIB_OPENAT.
25442         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25443         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25444         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25445         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25446         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25447         gl_OPENAT_DEFAULTS.
25448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25449         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25450         Don't require gl_OPENAT_DEFAULTS.
25451         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25452         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25453         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25454         (gl_OPENAT_DEFAULTS): Remove macro.
25455
25456 2009-09-06  Bruno Haible  <bruno@clisp.org>
25457
25458         * modules/openat (configure.ac): Remove unneeded witness.
25459
25460 2009-09-06  Bruno Haible  <bruno@clisp.org>
25461
25462         Set errno to ENOSYS when a function is entirely unsupported.
25463         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25464         EOPNOTSUPP.
25465         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25466         * modules/chown (Depends-on): Remove errno.
25467
25468 2009-09-06  Bruno Haible  <bruno@clisp.org>
25469
25470         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25471
25472 2009-09-06  Bruno Haible  <bruno@clisp.org>
25473
25474         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25475
25476 2009-09-06  Ben Pfaff  <blp@gnu.org>
25477             Bruno Haible  <bruno@clisp.org>
25478
25479         Work around a glibc bug in strtok_r.
25480         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25481         Undefine if UNDEFINE_STRTOK_R is set.
25482         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25484         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25485         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25486         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25487         UNDEFINE_STRTOK_R.
25488         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25489
25490 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25491
25492         exclude: minor fix
25493         * lib/exclude.c: Include wctype.h
25494
25495 2009-09-06  Akim Demaille  <demaille@gostai.com>
25496
25497         bootstrap: improve error message
25498         * build-aux/bootstrap (find_tool): Upon failure, report the list
25499         of candidates.
25500         Honor the initial value of the envvar.
25501
25502 2009-09-05  Eric Blake  <ebb9@byu.net>
25503
25504         symlinkat: new module
25505         * modules/symlinkat: New file.
25506         * lib/symlinkat.c: Likewise.
25507         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25509         * modules/unistd (Makefile.am): Use them.
25510         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25511         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25512         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25513         * MODULES.html.sh (File system functions): Mention module.
25514         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25515         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25516         * modules/symlinkat-tests: New test.
25517         * tests/test-symlinkat.c: Likewise.
25518
25519         test-openat-safer: add more checks
25520         * tests/test-openat-safer.c (main): Check more code paths.
25521
25522 2009-09-05  Jim Meyering  <meyering@redhat.com>
25523
25524         syntax-check: detect unnecessary inclusion of openat.h
25525         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25526
25527 2009-09-05  Bruno Haible  <bruno@clisp.org>
25528
25529         Support towlower, towupper.
25530         * doc/posix-functions/towlower.texi: Mention module wctype.
25531         * doc/posix-functions/towupper.texi: Likewise.
25532         * lib/wctype.in.h (towlower, towupper): New functions.
25533         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25534         (ASSERT): New macro.
25535         (e): New variable.
25536         (main): Test also towlower, towupper. Test WEOF argument.
25537         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25538
25539 2009-09-05  Bruno Haible  <bruno@clisp.org>
25540
25541         Fix conversion behaviour when the input is invalid.
25542         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25543         mark occurring in first pass of indirect conversion.
25544         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25545         input.
25546         Found by clang's static analyzer.
25547
25548 2009-09-05  Bruno Haible  <bruno@clisp.org>
25549
25550         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25551         where direct conversion is possible.
25552
25553 2009-09-04  Eric Blake  <ebb9@byu.net>
25554
25555         openat: fail with ENOENT on empty name
25556         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25557         buffer.
25558
25559         link-follow: fix logic bug in prior patch
25560         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25561         reversed sense of yes and no in prior patch.  Avoid confusing
25562         compilation failure with desired semantics.
25563
25564         link-follow: accomodate mingw and cross-compilation
25565         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25566         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25567         cross-compilation results to -1, to make linkat easier to
25568         implement when cross-compiling.  Trivially support mingw.
25569         * modules/link-follow (configure.ac): Call new name.
25570         * NEWS: Mention this.
25571
25572 2009-09-03  Eric Blake  <ebb9@byu.net>
25573
25574         faccessat: compile replacement
25575         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25576         needed.
25577
25578         fts: fix compilation error
25579         * lib/fts.c (includes): Re-add "openat.h", for
25580         openat_needs_fchdir.
25581
25582         faccessat: new module
25583         * modules/faccessat: New file.
25584         * lib/faccessat.c: Likewise.
25585         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25587         * modules/unistd (Makefile.am): Use it.
25588         * lib/unistd.in.h (faccessat): Declare it.
25589         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25590         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25591         * MODULES.html.sh (File system functions): Mention it.
25592         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25593         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25594
25595         euidaccess: prefer POSIX over non-standard implementation
25596         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25597         * lib/euidaccess.c (euidaccess): Use it if available.
25598
25599         openat: make template easier to use
25600         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25601         AT_FUNC_F2 to be undefined.
25602         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25603         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25604         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25605         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25606         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25607         Likewise.
25608         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25609         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25610         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25611         Likewise.
25612
25613         openat: declare in POSIX headers
25614         * NEWS: Mention this.
25615         * modules/openat (configure.ac): Declare witnesses.
25616         (Depends-on): Add fcntl-h, sys_stat, unistd.
25617         (Include): Mention correct headers.
25618         * modules/fcntl-h (Depends-on): Add link-warning.
25619         (Files): Add openat.m4.
25620         (Makefile.am): Substitute witnesses.
25621         * modules/sys_stat (Files, Makefile.am): Likewise.
25622         * modules/unistd (Files, Makefile.am): Likewise.
25623         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25624         (gl_OPENAT_DEFAULTS): New macro.
25625         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25628         (SYS_STAT_H): Remove unused variable.
25629         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25630         * lib/fcntl--.h (includes): Remove unneeded header.
25631         * lib/openat-safer.c (includes): Likewise.
25632         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25633         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25634         appropriate headers.
25635         (__OPENAT_PREFIX): Delete.
25636         * lib/fcntl.in.h (openat): Provide declaration.
25637         (AT_FDCWD): Fix Solaris bug.
25638         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25639         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25640         * lib/fchmodat.c (includes):  Adjust to find declaration.
25641         * lib/fchownat.c (includes): Likewise.
25642         * lib/mkdirat.c (includes): Likewise.
25643         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25644         still visible.
25645
25646 2009-09-02  Eric Blake  <ebb9@byu.net>
25647
25648         errno: use consistently
25649         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25650         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25651         * lib/canonicalize.c (ELOOP): Likewise.
25652         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25653         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25654         * lib/lchown.c (EOPNOTSUPP): Likewise.
25655         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25656         * lib/savewd.c (ESTALE): Likewise.
25657         * lib/settime.c (ENOSYS): Likewise.
25658         * lib/utimens.c (ENOSYS): Likewise.
25659         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25660         * lib/chdir-safer.c (ELOOP): Likewise.
25661         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25662         * modules/c-stack (Depends-on): Add errno.
25663         * modules/canonicalize (Depends-on): Likewise.
25664         * modules/chdir-safer (Depends-on): Likewise.
25665         * modules/fdopendir (Depends-on): Likewise.
25666         * modules/inet_ntop (Depends-on): Likewise.
25667         * modules/inet_pton (Depends-on): Likewise.
25668         * modules/lchown (Depends-on): Likewise.
25669         * modules/openat (Depends-on): Likewise.
25670         * modules/savewd (Depends-on): Likewise.
25671         * modules/settime (Depends-on): Likewise.
25672         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25673
25674         fts: avoid leaking fds
25675         * modules/fts (Depends-on): Add cloexec.
25676         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25677         flag.
25678
25679         fts: make directory fds more robust
25680         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25681         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25682
25683         backupfile, chdir-long, fts, savedir: make safer
25684         * lib/backupfile.c (includes): Use "dirent--.h", since
25685         numbered_backup can write to stderr during readdir.
25686         * lib/savedir.c (includes): Likewise.
25687         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25688         emulation can write to stderr on failure.
25689         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25690         * lib/getcwd.c: Document why opendir_safer is unused.
25691         * lib/glob.c: Likewise.
25692         * lib/scandir.c: Likewise.
25693         * lib/openat-proc.c: Likewise, for open_safer.
25694         * modules/backupfile (Depends-on): Add dirent-safer.
25695         * modules/savedir (Depends-on): Likewise.
25696         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25697         * modules/chdir-long (Depends-on): Add openat-safer.
25698
25699         openat-safer: new module
25700         * modules/openat-safer: New file.
25701         * lib/openat-safer.c: Likewise.
25702         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25703         * lib/fcntl-safer.h (openat_safer): Declare.
25704         * lib/fcntl--.h (openat): Override.
25705         * MODULES.html.sh (File descriptor based I/O): Mention it.
25706         * lib/openat.h: Add double-inclusion guards.
25707         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25708         "fcntl--.h", so we can implement openat.
25709         * modules/openat-safer-tests: New test.
25710         * tests/test-openat-safer.c: New file.
25711
25712         dirent-safer: new module
25713         * modules/dirent-safer: New file.
25714         * lib/dirent--.h: Likewise.
25715         * lib/dirent-safer.h: Likewise.
25716         * lib/opendir-safer.c: Likewise.
25717         * m4/dirent-safer.m4: Likewise.
25718         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25719         * modules/dirent-safer-tests: New test.
25720         * tests/test-dirent-safer.c: New file.
25721         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25722
25723         fdopendir: optimize on mingw
25724         * lib/unistd.in.h (_gl_directory_name): New prototype.
25725         * lib/fchdir.c (_gl_directory_name): Implement it.
25726         (fchdir): Use it to simplify implementation.
25727         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25728         fchdir, when available, to avoid calling [f]chdir().
25729
25730         fdopendir: split into its own module
25731         * lib/openat.c (fdopendir): Move...
25732         * lib/fdopendir.c: ...into new file.
25733         * modules/fdopendir: New module.
25734         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25735         * modules/openat (Depends-on): Add fdopendir.
25736         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25737         fdopendir here.
25738         * modules/savedir (Depends-on): Only need fdopendir, not full
25739         openat.
25740         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25741         * lib/openat.h (fdopendir): Drop prototype.
25742         * lib/dirent.in.h (fdopendir): Provide prototype.
25743         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25744         * modules/dirent (Makefile.am): Substitute them.
25745         * MODULES.html.sh (File system functions): Mention it.
25746         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25747         * modules/fdopendir-tests: New file.
25748         * tests/test-fdopendir.c: Likewise.
25749
25750         fchdir: use more consistent macro convention
25751         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25752         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25753         REPLACE_FCHDIR, rather than relying on config.h macros.
25754         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25755         inside a single make-time REPLACE_FCHDIR block, rather than using
25756         the config.h FCHDIR_REPLACEMENT.
25757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25758         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25759         Manage fstat replacement.
25760         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25761         REPLACE_FCHDIR.
25762         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25763         (Makefile.am): Substitute REPLACE_FCHDIR.
25764         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25765         FCHDIR_REPLACEMENT.
25766         * lib/dup-safer.c (dup_safer): Likewise.
25767         * lib/dup2.c (rpl_dup2): Likewise.
25768         * lib/dup3.c (rpl_dup3): Likewise.
25769         * lib/open.c (rpl_open): Likewise.
25770
25771         fchdir: simplify error handling, and support dup3
25772         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25773         stdbool, malloc-posix, realloc-posix.
25774         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25775         (ensure_dirs_slot): Return false on allocation failure.
25776         (rpl_dup2): Delete.
25777         (_gl_register_dup): New function.
25778         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25779         (_gl_register_fd): Close fd on allocation failure.
25780         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25781         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25782         prototype.
25783         (rpl_dup2_fchdir): Delete prototype.
25784         * lib/open.c (open): Update caller.
25785         * lib/dup2.c (dup2): Track fchdir metadata.
25786         * lib/dup3.c (dup3): Likewise.
25787         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25788         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25789
25790 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25791
25792         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25793         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25794         don't pass arguments to AC_OUTPUT.
25795
25796 2009-09-02  Bruno Haible  <bruno@clisp.org>
25797
25798         * modules/mkdtemp (License): Relicense under LGPLv2+.
25799         Reported by Paolo Bonzini.
25800
25801 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25802
25803         Replace uses of obsolete autoconf macros in Jim's modules.
25804         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25805         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25806         can evoke a warning from autoconf when run with -Wobsolete
25807         enabled.  They were declared obsolete for good reasons (see
25808         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25809         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25810         should not continue using the deprecated macros.
25811         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25812         obsolete Autoconf macros with modern counterparts.
25813         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25814         * m4/dos.m4 (gl_AC_DOS): Likewise.
25815         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25817         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25818         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25819         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25820         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25821         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25822         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25823         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25824         Likewise.
25825         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25826         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25827         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25828         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25829         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25830         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25831
25832 2009-09-01  Eric Blake  <ebb9@byu.net>
25833
25834         fchdir: fix off-by-one bug in previous patch
25835         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25836         (_gl_unregister_fd): Delete useless if.
25837
25838 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25839
25840         maint.mk: sort the list of syntax-check rules
25841         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25842         easier to get a sense of progress when the rules are run sequentially
25843         and take a long time.
25844
25845 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25846
25847         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25848         * modules/netinet_in: Likewise.
25849         * modules/sys_file: Likewise.
25850         * modules/sys_ioctl: Likewise.
25851         * modules/sys_select: Likewise.
25852         * modules/sys_socket: Likewise.
25853         * modules/sys_stat: Likewise.
25854         * modules/sys_time: Likewise.
25855         * modules/sys_times: Likewise.
25856         * modules/sys_utsname: Likewise.
25857         * modules/sys_wait: Likewise.
25858
25859 2009-09-01  Jim Meyering  <meyering@redhat.com>
25860
25861         fts: help ensure that return values are not ignored
25862         * lib/fts_.h (__GNUC_PREREQ): Define.
25863         (__attribute_warn_unused_result__): Define.
25864         (fts_children, fts_close, fts_open, fts_read): Declare with
25865         __attribute_warn_unused_result__.
25866
25867         fts: fts_close now fails also when closing a dir file descriptor fails
25868         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25869         and propagate to caller, along with errno.
25870
25871         announce-gen: correct formatting in --help output
25872         * build-aux/announce-gen (usage): Move the one-line description in
25873         --help output "up", to where it belongs, just after Usage:.
25874
25875 2009-08-31  Eric Blake  <ebb9@byu.net>
25876
25877         fchdir: port to mingw
25878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25879         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25880         opened, then use a substitute.
25881         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25882         replacement.
25883         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25884         (_gl_register_fd): No need to check stat if open already filters
25885         all directories.
25886         (fchdir): Fix error condition to match POSIX.
25887         * modules/fchdir (Depends-on): Add sys_stat.
25888         * doc/posix-functions/open.texi (open): Document the limitation.
25889         * modules/fchdir-tests: New file.
25890         * tests/test-fchdir.c: Likewise.
25891
25892         canonicalize: allow cross-testing from cygwin to mingw
25893         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25894         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25895         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25896         Likewise.
25897         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25898         target does not support symlinks.
25899         * tests/test-canonicalize-lgpl.sh: Likewise.
25900
25901         chown: avoid compilation warning on mingw
25902         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25903         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25904         mingw.
25905         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25906         * modules/chown (Depends-on): Add errno.
25907
25908 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25909
25910         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25911         command.
25912
25913 2009-08-31  Jim Meyering  <meyering@redhat.com>
25914
25915         canonicalize: remove useless initialization
25916         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25917         initialization of local, "end".
25918
25919 2009-08-30  Bruno Haible  <bruno@clisp.org>
25920
25921         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25922         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25923         ENOSYS.
25924
25925 2009-08-30  Bruno Haible  <bruno@clisp.org>
25926
25927         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25928         /usr/xpg4/bin/tr when it exists.
25929         * tests/test-pipe-filter-gi1.sh: Likewise.
25930
25931 2009-08-30  Bruno Haible  <bruno@clisp.org>
25932
25933         Work around deficient /usr/bin/id program on Solaris.
25934         * tests/test-file-has-acl.sh (ID): New variable.
25935         * tests/test-set-mode-acl.sh (ID): Likewise.
25936         * tests/test-copy-acl.sh (ID): Likewise.
25937         * tests/test-copy-file.sh (ID): Likewise.
25938
25939 2009-08-30  Bruno Haible  <bruno@clisp.org>
25940
25941         New module 'xstriconveh'.
25942         * lib/xstriconveh.h: New file.
25943         * lib/xstriconveh.c: New file.
25944         * modules/xstriconveh: New file.
25945
25946 2009-08-30  Bruno Haible  <bruno@clisp.org>
25947
25948         Make it easier to use mem_cd_iconveh.
25949         * lib/striconveh.h (iconveh_t): New type.
25950         (iconveh_open, iconveh_close): New declarations.
25951         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25952         with a single 'const iconveh_t *' argument.
25953         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25954         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25955         with a single 'const iconveh_t *' argument.
25956         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25957         * tests/test-striconveh.c (main): Update.
25958         * NEWS: Mention the change.
25959
25960 2009-08-30  Bruno Haible  <bruno@clisp.org>
25961
25962         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25963         problem.
25964
25965 2009-08-30  Bruno Haible  <bruno@clisp.org>
25966
25967         Work around iconv_open problem on Solaris.
25968         * lib/iconv_open-solaris.gperf: New file.
25969         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25970         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25971         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25972         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25973         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25974         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25975
25976 2009-08-29  Jim Meyering  <meyering@redhat.com>
25977
25978         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25979         * top/maint.mk (cvs-check): Remove target; it was just an alias
25980         to the better-named vc-diff-check.
25981         (maintainer-distcheck): Remove rule.  It was used only from
25982         the (alpha/beta/major) target, and all of its commands but one
25983         were coreutils-specific.
25984         (vc-dist): Remove rule.
25985         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25986         Run vc-diff-check, not vc-dist.
25987         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25988
25989 2009-08-27  Bruno Haible  <bruno@clisp.org>
25990
25991         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25992         of 0.
25993
25994 2009-08-27  Bruno Haible  <bruno@clisp.org>
25995
25996         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25997         compilers.
25998         * doc/func.texi: Document the SunPRO C bug.
25999
26000 2009-08-27  Bruno Haible  <bruno@clisp.org>
26001
26002         Fix link error on Solaris.
26003         * tests/test-parse-duration.c (xstrdup): Remove function.
26004
26005 2009-08-26  Pádraig Brady  <P@draigbrady.com>
26006
26007         ignore-value: handle pointer types, too
26008         * lib/ignore-value.h (__attribute__): Remove definition.
26009         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
26010         of a more concise and more-often effective "(void) i" statement.
26011         (ignore_ptr): New function to suppress warnings from functions that
26012         return pointers, and to make it explicit that one function doesn't
26013         handle all cases.
26014
26015 2009-08-25  Bruno Haible  <bruno@clisp.org>
26016
26017         dup2: work around a Linux bug.
26018         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
26019         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
26020         * doc/posix-functions/dup2.texi: Mention the Linux bug.
26021         Reported by Simon Josefsson.
26022
26023 2009-08-25  Jim Meyering  <meyering@redhat.com>
26024
26025         libguestfs uses gnulib
26026         * users.txt: Add libguestfs.
26027
26028 2009-08-24  Eric Blake  <ebb9@byu.net>
26029
26030         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
26031         * lib/pipe2.c (includes): Add binary-io.h.
26032         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
26033
26034 2009-08-24  Bruno Haible  <bruno@clisp.org>
26035
26036         Tolerate declared but missing accept4 syscall.
26037         * lib/accept4.c (accept4): Invoke original accept4 function first, if
26038         available.
26039         * lib/sys_socket.in.h (accept4): If the function is already present,
26040         override it.
26041         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
26042         * modules/accept4 (Makefile.am): Compile accept4.c always.
26043         Reported by Paolo Bonzini and Eric Blake.
26044
26045 2009-08-23  Bruno Haible  <bruno@clisp.org>
26046
26047         New module 'accept4'.
26048         * lib/sys_socket.in.h (accept4): New declaration.
26049         * lib/accept4.c: New file.
26050         * m4/accept4.m4: New file.
26051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26052         GNULIB_ACCEPT4, HAVE_ACCEPT4.
26053         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26054         HAVE_ACCEPT4.
26055         * modules/accept4: New file.
26056         * doc/glibc-functions/accept4.texi: Mention the new module.
26057
26058 2009-08-24  Jim Meyering  <meyering@redhat.com>
26059
26060         progname: also set global program_invocation_name, when possible
26061         Before this change, a libtool-enabled program that calls glibc's
26062         error function would report the program name as
26063         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26064         * modules/progname (configure.ac): Check for a declaration of
26065         program_invocation_name.
26066         * lib/progname.c:  Include <errno.h>.
26067         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26068         Set program_invocation_name.
26069
26070 2009-08-23  Bruno Haible  <bruno@clisp.org>
26071
26072         * lib/dup3.c: Include <string.h>.
26073
26074 2009-08-23  Bruno Haible  <bruno@clisp.org>
26075
26076         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26077         * lib/pipe2.c (pipe2): Likewise.
26078         Suggested by Eric Blake.
26079
26080 2009-08-23  Bruno Haible  <bruno@clisp.org>
26081
26082         Tolerate declared but missing dup3 syscall.
26083         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26084         * lib/unistd.in.h (dup3): If the function is already present,
26085         override it.
26086         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26087         * modules/dup3 (Makefile.am): Compile dup3.c always.
26088         Reported by Paolo Bonzini.
26089
26090 2009-08-23  Bruno Haible  <bruno@clisp.org>
26091
26092         Tolerate declared but missing pipe2 syscall.
26093         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26094         available.
26095         * lib/unistd.in.h (pipe2): If the function is already present,
26096         override it.
26097         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26098         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26099         Reported by Paolo Bonzini.
26100
26101 2009-08-23  Bruno Haible  <bruno@clisp.org>
26102
26103         * lib/pipe2.c (pipe2): Move #ifs inside function.
26104
26105 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26106
26107         quotearg: document limitations of quote_these_too
26108         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26109         those limitations are created.
26110         * lib/quotearg.h (set_char_quoting): Document that digits and
26111         letters that are special after backslash are not permitted.
26112         (quotearg_char): Cross-reference set_char_quoting documentation.
26113
26114 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26115
26116         quotearg: implement custom_quoting_style
26117         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26118         right_quote fields.
26119         (set_custom_quoting): New public function.
26120         (quotearg_buffer_restyled): Add left_quote and right_quote
26121         arguments, handle them very much like locale quoting, and update
26122         all uses.
26123         (quotearg_n_custom): New public function.
26124         (quotearg_n_custom_mem): New public function.
26125         (quotearg_custom): New public function.
26126         (quotearg_custom_mem): New public function.
26127         * lib/quotearg.h: Prototype and document new public functions.
26128         (enum quoting_style): For escape_quoting_style and
26129         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26130         ignored even though they're otherwise like c_quoting_style.
26131         Add custom_quoting_style member and document with comparison to
26132         clocale_quoting_style.
26133         * tests/test-quotearg.c (custom_quotes): New array.
26134         (custom_results): New array.
26135         (main): Extend to test custom quoting.
26136
26137 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26138
26139         quotearg: fix right quote escaping when it's in quote_these_too
26140         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26141         quote, be sure to prepend only one backslash.
26142         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26143         (main): Test it.
26144
26145 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26146
26147         quotearg-tests: test escaping of embedded locale quotes
26148         * tests/test-quotearg.c (struct result_strings): Add member for
26149         new input.
26150         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26151         (inputs): Add new input.
26152         (results_g): Add expected results.
26153         (flag_results): Likewise.
26154         (locale_results): Likewise.
26155         (compare_strings): Check those.
26156
26157 2009-08-23  Bruno Haible  <bruno@clisp.org>
26158
26159         Tests for module 'dup3'.
26160         * modules/dup3-tests: New file.
26161         * tests/test-dup3.c: New file.
26162
26163         New module 'dup3'.
26164         * lib/unistd.in.h (dup3): New declaration.
26165         * lib/dup3.c: New file.
26166         * m4/dup3.m4: New file.
26167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26168         HAVE_DUP3.
26169         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26170         * modules/dup3: New file.
26171         * doc/glibc-functions/dup3.texi: Mention the new module.
26172
26173 2009-08-23  Bruno Haible  <bruno@clisp.org>
26174
26175         Tweak the dup2 test.
26176         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26177         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26178         the test file is still empty. Fix argument order of lseek.
26179
26180 2009-08-23  Bruno Haible  <bruno@clisp.org>
26181
26182         Avoid test link errors when the modules getopt-gnu, gettext are used.
26183         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26185
26186 2009-08-23  Bruno Haible  <bruno@clisp.org>
26187
26188         Fix getdtablesize() on mingw.
26189         * lib/getdtablesize.c (getdtablesize): Implement differently.
26190         * lib/unistd.in.h (getdtablesize): Improve comment.
26191
26192 2009-08-23  Bruno Haible  <bruno@clisp.org>
26193
26194         New module 'mkostemp'.
26195         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26196         * lib/stdlib.in.h (mksotemp): New declaration.
26197         * lib/mkostemp.c: New file, from glibc with modifications.
26198         * lib/tempname.h (GT_FILE): Remove outdated comment.
26199         (gen_tempname): Add flags argument.
26200         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26201         (__GT_FILE): Map to 1.
26202         (small_open, large_open): Remove macros.
26203         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26204         * lib/mkstemp.c (mkstemp): Update.
26205         * lib/mkdtemp.c (mkdtemp): Likewise.
26206         * m4/mkostemp.m4: New file.
26207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26208         HAVE_MKOSTEMP.
26209         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26210         HAVE_MKOSTEMP.
26211         * modules/mkostemp: New file, based on modules/mkstemp.
26212         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26213         * NEWS: Mention the change.
26214
26215 2009-08-23  Bruno Haible  <bruno@clisp.org>
26216
26217         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26218         Reported by Eric Blake.
26219
26220 2009-08-23  Bruno Haible  <bruno@clisp.org>
26221
26222         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26223         Reported by Eric Blake.
26224
26225 2009-08-23  Bruno Haible  <bruno@clisp.org>
26226
26227         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26228         * modules/pipe2 (Depends-on): Likewise.
26229
26230 2009-08-23  Eric Blake  <ebb9@byu.net>
26231
26232         fcntl-h: add O_TTY_INIT support
26233         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26234         * tests/test-fcntl-h.c (o): Test it.
26235         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26236
26237         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26238         * modules/fcntl: Move <fcntl.h> header replacement...
26239         * modules/fcntl-h: ...to new name, so as not to collide with
26240         like-named function.
26241         * tests/test-fcntl.c: Rename...
26242         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26243         * modules/fcntl-tests: Rename...
26244         * modules/fcntl-h-tests: ...to this.  Update test file name.
26245         * modules/chdir-long (Depends-on): Update clients.
26246         * modules/chdir-safer (Depends-on): Likewise.
26247         * modules/fcntl-safer (Depends-on): Likewise.
26248         * modules/fts (Depends-on): Likewise.
26249         * modules/mkancesdirs (Depends-on): Likewise.
26250         * modules/mkdir-p (Depends-on): Likewise.
26251         * modules/open (Depends-on): Likewise.
26252         * modules/savewd (Depends-on): Likewise.
26253         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26254         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26255
26256 2009-08-22  Bruno Haible  <bruno@clisp.org>
26257
26258         * modules/binary-io (License): Relicense under LGPL.
26259         * modules/pipe2 (License): Likewise.
26260
26261 2009-08-22  Bruno Haible  <bruno@clisp.org>
26262
26263         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26264         return value.
26265         * lib/pipe-filter-gi.c (filter_init): Likewise.
26266         Reported by Eric Blake.
26267
26268 2009-08-22  Bruno Haible  <bruno@clisp.org>
26269
26270         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26271         * modules/pipe (Depends-on): Add pipe2.
26272
26273 2009-08-22  Bruno Haible  <bruno@clisp.org>
26274
26275         Tests for module 'pipe2'.
26276         * modules/pipe2-tests: New file.
26277         * tests/test-pipe2.c: New file.
26278
26279         New module 'pipe2'.
26280         * lib/unistd.in.h (pipe2): New declaration.
26281         * lib/pipe2.c: New file.
26282         * m4/pipe2.m4: New file.
26283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26284         HAVE_PIPE2.
26285         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26286         * modules/pipe2: New file.
26287         * doc/glibc-functions/pipe2.texi: Mention the new module.
26288
26289 2009-08-22  Bruno Haible  <bruno@clisp.org>
26290
26291         Reference some new glibc functions.
26292         * doc/glibc-functions/accept4.texi: New file.
26293         * doc/glibc-functions/dup3.texi: New file.
26294         * doc/glibc-functions/mkostemp.texi: New file.
26295         * doc/glibc-functions/pipe2.texi: New file.
26296         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26297         (Glibc sys/socket.h): Refer to accept4.
26298         (Glibc unistd.h): Refer to dup3, pipe2.
26299         Reported by Eric Blake.
26300
26301 2009-08-22  Jim Meyering  <meyering@redhat.com>
26302             Bruno Haible  <bruno@clisp.org>
26303
26304         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26305         This makes it so packages using automake-1.11's silent-rules option
26306         can print e.g., a single "GEN    configmake.h" line, rather than
26307         the 30+ statements that perform the job.  If you want to see the
26308         actual commands, you can still run "make V=1".
26309         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26310         so that make output is abbreviated when those variables are defined
26311         appropriately.
26312         * modules/argz: Likewise.
26313         * modules/arpa_inet: Likewise.
26314         * modules/byteswap: Likewise.
26315         * modules/configmake: Likewise.
26316         * modules/dirent: Likewise.
26317         * modules/errno: Likewise.
26318         * modules/fcntl: Likewise.
26319         * modules/float: Likewise.
26320         * modules/fnmatch: Likewise.
26321         * modules/getopt-posix: Likewise.
26322         * modules/glob: Likewise.
26323         * modules/iconv_open: Likewise.
26324         * modules/inttypes: Likewise.
26325         * modules/localcharset: Likewise.
26326         * modules/locale: Likewise.
26327         * modules/math: Likewise.
26328         * modules/netdb: Likewise.
26329         * modules/netinet_in: Likewise.
26330         * modules/poll: Likewise.
26331         * modules/posix_spawnp-tests: Likewise.
26332         * modules/sched: Likewise.
26333         * modules/search: Likewise.
26334         * modules/selinux-h: Likewise.
26335         * modules/signal: Likewise.
26336         * modules/spawn: Likewise.
26337         * modules/stdarg: Likewise.
26338         * modules/stdbool: Likewise.
26339         * modules/stddef: Likewise.
26340         * modules/stdint: Likewise.
26341         * modules/stdio: Likewise.
26342         * modules/stdlib: Likewise.
26343         * modules/string: Likewise.
26344         * modules/strings: Likewise.
26345         * modules/sys_file: Likewise.
26346         * modules/sys_ioctl: Likewise.
26347         * modules/sys_select: Likewise.
26348         * modules/sys_socket: Likewise.
26349         * modules/sys_stat: Likewise.
26350         * modules/sys_time: Likewise.
26351         * modules/sys_times: Likewise.
26352         * modules/sys_utsname: Likewise.
26353         * modules/sys_wait: Likewise.
26354         * modules/sysexits: Likewise.
26355         * modules/time: Likewise.
26356         * modules/unistd: Likewise.
26357         * modules/wchar: Likewise.
26358         * modules/wctype: Likewise.
26359
26360 2009-08-22  Jim Meyering  <meyering@redhat.com>
26361
26362         announce-gen: detect write failure
26363         * build-aux/announce-gen: Add Coda at end.
26364         Remove equivalent-but-more-verbose block at top.
26365
26366 2009-08-19  Akim Demaille  <demaille@gostai.com>
26367
26368         bootstrap: --help to stdout.
26369         * bootstrap (usage): Don't send --help to stderr.
26370         Use a here doc instead of a long string.
26371
26372 2009-08-21  Eric Blake  <ebb9@byu.net>
26373
26374         test-popen-safer: split from test-popen
26375         * tests/test-popen.c (main): Move...
26376         * tests/test-popen.h: ...into new file.
26377         * tests/test-popen-safer2.c: New file.
26378         * modules/popen-tests (Files): Add test-popen.h.
26379         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26380         Suggested by Bruno Haible.
26381
26382         test-fcntl-safer: split from test-open
26383         * tests/test-open.c (main): Move...
26384         * tests/test-open.h: ...into new file.
26385         * tests/test-fcntl-safer.c: New file.
26386         * modules/open-tests (Files): Add test-open.h.
26387         * modules/fcntl-safer-tests: New file.
26388         Suggested by Bruno Haible.
26389
26390         test-fopen-safer: split from test-fopen
26391         * tests/test-fopen.c (main): Move...
26392         * tests/test-fopen.h: ...into new file.
26393         * tests/test-fopen-safer.c: New file.
26394         * modules/fopen-tests (Files): Add test-fopen.h.
26395         * modules/fopen-safer-tests: New file.
26396         Suggested by Bruno Haible.
26397
26398 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26399
26400         popen-safer: test O_CLOEXEC at run-time.
26401         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26402
26403 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26404
26405         fcntl: move more flags to the header
26406         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26407         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26408         * lib/fcntl.in.h: Do both things here.
26409
26410 2009-08-21  Jim Meyering  <meyering@redhat.com>
26411
26412         consistently remove $@-t before redirecting to it
26413         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26414         * modules/alloca-opt: Likewise.
26415         * modules/byteswap: Likewise.
26416         * modules/fnmatch: Likewise.
26417         * modules/getopt-posix: Likewise.
26418         * modules/glob: Likewise.
26419         * modules/poll: Likewise.
26420         * modules/posix_spawnp-tests: Likewise.
26421         * modules/sys_socket: Likewise.
26422         * modules/sysexits: Likewise.
26423
26424 2009-08-21  Eric Blake  <ebb9@byu.net>
26425
26426         popen: simplify access to original popen
26427         * lib/popen.c (rpl_popen): No need to worry about popen being a
26428         macro.
26429         Reported by Bruno Haible.
26430
26431 2009-08-20  Eric Blake  <ebb9@byu.net>
26432
26433         build: avoid some compiler warnings
26434         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26435         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26436         type.
26437         (new_exclude_segment, excluded_file_pattern_p)
26438         (excluded_file_name_p): Reduce scope.
26439         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26440         old-style declaration.
26441
26442 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26443
26444         * tests/test-exclude1.sh: Handle Windows EOL.
26445         * tests/test-exclude2.sh: Likewise.
26446         * tests/test-exclude3.sh: Likewise.
26447         * tests/test-exclude4.sh: Likewise.
26448         * tests/test-exclude5.sh: Likewise.
26449         * tests/test-exclude6.sh: Likewise.
26450         * tests/test-exclude7.sh: Likewise.
26451
26452 2009-08-19  Akim Demaille  <demaille@gostai.com>
26453
26454         bootstrap: find sha1sum when named gsha1sum.
26455         * bootstrap (find_tool): New.
26456         ($SHA1SUM): New.
26457         Use it.
26458
26459 2009-08-20  Jim Meyering  <meyering@redhat.com>
26460
26461         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26462         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26463         expression that converts "." in a file name to "\." in the resulting
26464         regexp.  Start with a dummy statement, so that prior shell variable
26465         definitions are expanded portably.  Reported by Simon Josefsson.
26466
26467 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26468
26469         Fix polling for writeability of a screen buffer.
26470         * lib/poll.c: Distinguish input and screen buffers for the
26471         Win32 implementation.
26472         * lib/select.c: Likewise.
26473
26474 2009-08-19  Eric Blake  <ebb9@byu.net>
26475
26476         popen-safer: prevent popen from clobbering std descriptors
26477         * modules/popen-safer: New file.
26478         * lib/popen-safer.c: Likewise.
26479         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26480         * lib/stdio--.h (popen): Provide override.
26481         * lib/stdio-safer.h (popen_safer): Provide declaration.
26482         * tests/test-popen.c (includes): Partially test this.
26483         * modules/popen-safer-tests: New file, for more tests.
26484         * tests/test-popen-safer.c: Likewise.
26485         * MODULES.html.sh (file stream based Input/Output): Mention it.
26486
26487         tests: test some of the *-safer modules
26488         * modules/fopen-safer (Depends-on): Add fopen.
26489         * modules/fcntl-safer (Depends-on): Add fcntl.
26490         * modules/stdlib-safer (Depends-on): Add stdlib.
26491         (configure.ac): Set indicator.
26492         * modules/unistd-safer (configure.ac): Likewise.
26493         * modules/tmpfile-safer (configure.ac): Likewise.
26494         (Depends-on): Add tmpfile.
26495         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26496         active.
26497         * tests/test-fopen.c (includes): Test safer versions when they are
26498         in use.
26499         * tests/test-open.c (includes): Likewise.
26500
26501         popen: fix cygwin 1.5 bug when stdin closed
26502         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26503         * modules/popen: New file.
26504         * modules/popen-tests: Likewise.
26505         * tests/test-popen.c: Likewise.
26506         * m4/popen.m4: Likewise.
26507         * lib/popen.c: Likewise.
26508         * lib/stdio.in.h (popen): New declaration.
26509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26510         * modules/stdio (Makefile.am): Likewise.
26511         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26512
26513 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26514
26515         maint.mk: give full control over update-copyright exclusions
26516         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26517         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26518         (update-copyright): Don't force inclusion of top-level
26519         ChangeLog.  Don't force exclusion of all COPYING files, but make
26520         them the default exclusion instead.
26521
26522 2009-08-16  Bruno Haible  <bruno@clisp.org>
26523
26524         Fix test failures on Solaris 10.
26525         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26526         tests when Solaris iconv() is used.
26527         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26528         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26529         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26530         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26531         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26532
26533 2009-08-16  Bruno Haible  <bruno@clisp.org>
26534
26535         Fix test failures on Solaris 10.
26536         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26537         'tr' program and pass it as first argument.
26538         * tests/test-pipe-filter-gi1.sh: Likewise.
26539         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26540         program as first argument.
26541         * tests/test-pipe-filter-gi1.c (main): Likewise.
26542
26543 2009-08-16  Eric Blake  <ebb9@byu.net>
26544
26545         fpurge: fix previous commits
26546         * modules/fpurge (Makefile.am): Make replacement conditional,
26547         partially reverting 2007-04-29 change; missed in previous
26548         attempt.
26549         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26550         is missing.
26551
26552 2009-08-16  Bruno Haible  <bruno@clisp.org>
26553
26554         Clarify fpurge's effect on the file position.
26555         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26556         * tests/test-fpurge.c (main): Make a second pass for checking the file
26557         position.
26558
26559 2009-08-16  Bruno Haible  <bruno@clisp.org>
26560
26561         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26562         declaration of fpurge is missing.
26563         * tests/test-fpurge.c (main): Check that the file has not more contents
26564         than expected. Close the file before removing it.
26565
26566 2009-08-15  Eric Blake  <ebb9@byu.net>
26567
26568         fpurge: don't wrap working cygwin implementation
26569         * lib/fpurge.c (fpurge): Fix comment typo.
26570         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26571         1.7 to avoid replacement.
26572         * tests/test-fpurge.c (main): Enhance test.
26573
26574 2009-08-15  Eric Blake  <ebb9@byu.net>
26575         and Jim Meyering  <meyering@redhat.com>
26576
26577         test-update-copyright: skip if perl is insufficient
26578         * tests/test-update-copyright.sh: Failure to run maintainer tool
26579         should not cause testsuite failure on cygwin 1.5.
26580
26581 2009-08-14  Eric Blake  <ebb9@byu.net>
26582
26583         doc: mention more functions added in cygwin 1.7.0
26584         * doc/posix-headers/limits.texi (limits.h): Update for recent
26585         cygwin additions.
26586         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26587         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26588         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26589         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26590         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26591
26592 2009-08-14  Eric Blake  <ebb9@byu.net>
26593
26594         maint.mk: simplify update-copyright rule
26595         * top/maint.mk (update-copyright-local): Delete, and document how
26596         to do it in cfg.mk instead.
26597         (update-copyright-exclude-regexp): Delete, and document how to do
26598         it in .x-update-copyright instead.
26599         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26600         exclude ChangeLog.
26601
26602 2009-08-14  Bruno Haible  <bruno@clisp.org>
26603
26604         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26605
26606 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26607
26608         maint.mk: support update-copyright-env
26609         * top/maint.mk (update-copyright-env): Define place-holder.
26610         (update-copyright): Expand $(update-copyright-env) before
26611         invoking update-copyright.
26612
26613 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26614
26615         update-copyright: implement forced reformatting
26616         * build-aux/update-copyright: Implement and document
26617         UPDATE_COPYRIGHT_FORCE.
26618         * tests/test-update-copyright.sh: Test it.
26619
26620 2009-08-14  Eric Blake  <ebb9@byu.net>
26621         and Bruno Haible  <bruno@clisp.org>
26622
26623         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26624         * tests/test-locale.c: Revert previous patch related to NULL.
26625         * tests/test-stdio.c: Likewise.
26626         * tests/test-stdlib.c: Likewise.
26627         * tests/test-string.c: Likewise.
26628         * tests/test-unistd.c: Likewise.
26629         * modules/time-tests (Depends-on): Add verify.
26630         * modules/wchar-tests (Depends-on): Likewise.
26631         * tests/test-time.c: Test for NULL compliance.
26632         * tests/test-wchar.c: Likewise.
26633         * modules/locale (Depends-on): Add stddef.
26634         * modules/stdio (Depends-on): Likewise.
26635         * modules/stdlib (Depends-on): Likewise.
26636         * modules/string (Depends-on): Likewise.
26637         * modules/time (Depends-on): Likewise.
26638         * modules/unistd (Depends-on): Likewise.
26639         * modules/wchar (Depends-on): Likewise.
26640         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26641         * lib/stdlib.in.h (includes): Likewise.
26642         * lib/string.in.h (includes): Likewise.
26643         * lib/time.in.h (includes): Likewise.
26644         * lib/unistd.in.h (includes): Likewise.
26645         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26646         replaced.
26647         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26648         * m4/stddef_h.m4: New file.
26649         * modules/stddef: Likewise.
26650         * lib/stddef.in.h: Likewise.
26651         * modules/stddef-tests: Likewise.
26652         * tests/test-stddef.c: Likewise.
26653         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26654         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26655         * doc/posix-headers/locale.texi (locale.h): Likewise.
26656         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26657         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26658         * doc/posix-headers/string.texi (string.h): Likewise.
26659         * doc/posix-headers/time.texi (time.h): Likewise.
26660         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26661         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26662
26663 2009-08-14  Eric Blake  <ebb9@byu.net>
26664
26665         doc: improve git diff of texinfo files
26666         * .gitattributes: Add rule for *.texi files, with hint on how to
26667         use it.
26668         Copied from m4, and based on a report by Bruno Haible.
26669
26670 2009-08-14  Bruno Haible  <bruno@clisp.org>
26671
26672         Disable multithread support by default on Cygwin 1.5.x for real.
26673         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26674
26675 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26676
26677         update-copyright: much ado about intervals
26678         * build-aux/update-copyright: Implement and document
26679         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26680         of copyright year intervals.
26681         Also, document UPDATE_COPYRIGHT_YEAR.
26682         * tests/test-update-copyright.sh: Test it.
26683
26684         update-copyright: convert 2-digit to 4-digit years
26685         * build-aux/update-copyright: Implement and document.
26686         * tests/test-update-copyright.sh: Update.
26687
26688 2009-08-14  Jim Meyering  <meyering@redhat.com>
26689
26690         test-exclude: avoid coreutils "make check" failure
26691         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26692         just as in test-argmatch.c.
26693
26694 2009-08-13  Eric Blake  <ebb9@byu.net>
26695
26696         test-dup2: fix bad assumption
26697         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26698         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26699
26700         test-version-etc: fix CRLF portability issue
26701         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26702         recognize \r.
26703         * tests/test-argp-version-etc-1.sh: Likewise.
26704
26705         getopt: update client modules
26706         * modules/argp (Depends-on): Use getopt-gnu.
26707         * modules/git-merge-changelog (Depends-on): Likewise.
26708         * modules/long-options (Depends-on): Likewise.
26709         * modules/xstrtol (Depends-on): Likewise.
26710
26711 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26712
26713         * tests/test-version-etc.sh: Don't fail on different
26714         project/version.  Don't fail on CRLF differences.  Rewrite to use
26715         multiple -e instead of multiple sed forks, suggested by Eric Blake
26716         <ebb9@byu.net>.
26717         * tests/test-argp-version-etc-1.sh: Likewise.
26718
26719 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26720
26721         * tests/test-version-etc.sh: Don't fail on different
26722         project/version.
26723
26724 2009-08-12  Bruno Haible  <bruno@clisp.org>
26725
26726         Tests for modules 'getopt-posix', 'getopt-gnu'.
26727         * modules/getopt-posix-tests: New file.
26728         * tests/test-getopt.c: New file.
26729         * tests/test-getopt.h: New file.
26730         * tests/test-getopt_long.h: New file.
26731
26732         New modules 'getopt-posix', 'getopt-gnu'.
26733         * modules/getopt-gnu: New file, renamed from modules/getopt.
26734         * modules/getopt-posix: New file.
26735         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26736         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26737         (gl_GETOPT): Remove macro.
26738         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26739         Disable the test against BSD systems that declare optreset. Test
26740         against mingw bug. Test against lack of support of optional arguments
26741         on many platforms.
26742         * doc/glibc-headers/getopt.texi: Update module name and list of
26743         relevant platforms.
26744         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26745         'getopt-gnu' and more portability problems.
26746         * NEWS: Mention the changes.
26747
26748 2009-08-12  Bruno Haible  <bruno@clisp.org>
26749
26750         Ensure that optarg etc. get declared by <unistd.h>.
26751         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26752         AC_USE_SYSTEM_EXTENSIONS.
26753         * modules/getopt (Depends-on): Add 'extensions'.
26754
26755 2009-08-12  Bruno Haible  <bruno@clisp.org>
26756
26757         Avoid test link errors.
26758         * modules/pipe-filter-ii-tests (Makefile.am): Define
26759         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26760         * modules/pipe-filter-gi-tests (Makefile.am): Define
26761         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26763
26764 2009-08-12  Bruno Haible  <bruno@clisp.org>
26765
26766         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26767         gl_GETOPT_SUBSTITUTE before.
26768         (gl_GETOPT): Use it.
26769         * m4/argp.m4 (gl_ARGP): Update.
26770         Reported by Sergey Poznyakoff.
26771
26772         * m4/getopt.m4: Reorder macros.
26773         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26774         (gl_GETOPT_SUBSTITUTE): Remove macro.
26775
26776 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26777
26778         Minor improvement in gitlog-to-changelog
26779
26780         * build-aux/gitlog-to-changelog: New option `--format' makes
26781         output format string configurable.
26782
26783 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26784
26785         Optimize exclude: use hash tables for non-wildcard patterns.
26786
26787         * lib/exclude.c: Include hash.h and mbuiter.h
26788         (struct exclude_pattern, exclude_segment): New data types.
26789         (struct exclude): Rewrite.
26790         (fnmatch_pattern_has_wildcards): New function.
26791         (new_exclude_segment, free_exclude_segment): New functions.
26792         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26793         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26794         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26795         * modules/exclude: Depend on hash and mbuiter.
26796
26797         * modules/exclude-tests: New file.
26798         * tests/test-exclude.c: New file.
26799         * tests/test-exclude1.sh: New file.
26800         * tests/test-exclude2.sh: New file.
26801         * tests/test-exclude3.sh: New file.
26802         * tests/test-exclude4.sh: New file.
26803         * tests/test-exclude5.sh: New file.
26804         * tests/test-exclude6.sh: New file.
26805         * tests/test-exclude7.sh: New file.
26806
26807 2009-08-12  Bruno Haible  <bruno@clisp.org>
26808
26809         Ensure that getopt() gets declared by <unistd.h>.
26810         * lib/unistd.in.h: Conditionally include getopt.h.
26811         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26812         Set GNULIB_UNISTD_H_GETOPT.
26813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26814         GNULIB_UNISTD_H_GETOPT.
26815         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26816
26817 2009-08-12  Bruno Haible  <bruno@clisp.org>
26818
26819         Clarify logic.
26820         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26821         gl_replace_getopt instead of GETOPT_H.
26822
26823 2009-08-12  Bruno Haible  <bruno@clisp.org>
26824
26825         * m4/getopt.m4: Add comments.
26826
26827 2009-08-12  Bruno Haible  <bruno@clisp.org>
26828
26829         Disable multithread support by default on Cygwin 1.5.x.
26830         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26831         set gl_use_threads=no if not specified otherwise.
26832
26833 2009-08-11  Bruno Haible  <bruno@clisp.org>
26834
26835         Avoid compilation error on NetBSD 5.0.
26836         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26837         * tests/test-stdio.c: Likewise.
26838         * tests/test-stdlib.c: Likewise.
26839         * tests/test-string.c: Likewise.
26840         * tests/test-unistd.c: Likewise.
26841         Reported by Greg Troxel <gdt@ir.bbn.com>
26842         at <https://savannah.gnu.org/support/?106973>.
26843
26844 2009-08-11  Bruno Haible  <bruno@clisp.org>
26845
26846         * modules/dup2-tests (Depends-on): Remove close.
26847
26848         Undo 2009-07-19 commit.
26849         * modules/acl-tests (Depends-on): Remove close.
26850         * modules/binary-io-tests (Depends-on): Likewise.
26851         * modules/closein-tests (Depends-on): Likewise.
26852         * modules/flock-tests (Depends-on): Likewise.
26853         * modules/fsync-tests (Depends-on): Likewise.
26854         * modules/lseek-tests (Depends-on): Likewise.
26855         * modules/pipe-tests (Depends-on): Likewise.
26856         * modules/posix_spawn-tests (Depends-on): Likewise.
26857         * modules/posix_spawnp-tests (Depends-on): Likewise.
26858         * modules/stat-time-tests (Depends-on): Likewise.
26859         * modules/yesno-tests (Depends-on): Likewise.
26860
26861 2009-08-10  Bruno Haible  <bruno@clisp.org>
26862
26863         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26864
26865 2009-08-10  Bruno Haible  <bruno@clisp.org>
26866
26867         Fix a gcc warning.
26868         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26869
26870 2009-08-10  Bruno Haible  <bruno@clisp.org>
26871
26872         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26873         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26874         not only the first time.
26875         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26876         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26877         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26878         is 1, not only the the first time.
26879
26880 2009-08-10  Bruno Haible  <bruno@clisp.org>
26881
26882         Make it possible to use module 'gethostname' without module 'close'.
26883         * lib/unistd.in.h (close): Evoke a link error only if
26884         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26886         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26887         * modules/unistd (Makefile.am): Substitute
26888         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26889         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26890         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26891         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26892         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26893         * modules/sys_ioctl (Makefile.am): Substitute
26894         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26895         * modules/socket (configure.ac): On native Windows, set
26896         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26897         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26898         Reported by Sam Steingold <sds@gnu.org>.
26899
26900 2009-08-10  Bruno Haible  <bruno@clisp.org>
26901
26902         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26903         * modules/ioctl (configure.ac): Likewise.
26904
26905 2009-08-10  Bruno Haible  <bruno@clisp.org>
26906
26907         Avoid collision between gnulib wrapper and libintl wrapper.
26908         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26909         already defined in intl/printf.c.
26910         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26911         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26912
26913 2009-08-09  Bruno Haible  <bruno@clisp.org>
26914
26915         Make <sys/select.h> really self-contained, also on Solaris 10.
26916         * lib/sys_select.in.h: Include <string.h>.
26917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26918         Solaris 10 problem.
26919         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26920         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26921         Reported by Jim Meyering.
26922
26923 2009-08-09  Bruno Haible  <bruno@clisp.org>
26924
26925         Avoid warnings from 'aclocal' that are due to a use of macro name
26926         AM_XGETTEXT_OPTION that is not defined in automake.
26927         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26928         automake.
26929         * modules/error (configure.ac): Likewise.
26930         * modules/propername (configure.ac): Likewise.
26931         * modules/vasprintf (configure.ac): Likewise.
26932         * modules/verror (configure.ac): Likewise.
26933         * modules/xprintf (configure.ac): Likewise.
26934         * modules/xvasprintf (configure.ac): Likewise.
26935
26936 2009-08-08  Bruno Haible  <bruno@clisp.org>
26937
26938         Avoid compilation error in C++ mode.
26939         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26940         Reported by Sam Steingold <sds@gnu.org>.
26941
26942 2009-08-08  Bruno Haible  <bruno@clisp.org>
26943
26944         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26945         for the various Unix platforms.
26946         * doc/posix-headers/limits.texi: Update platforms list regarding
26947         HOST_NAME_MAX.
26948         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26949
26950 2009-08-07  Jim Meyering  <meyering@redhat.com>
26951
26952         selinux-at: fix typo in a comment
26953         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26954         Spotted by Paolo Bonzini.
26955
26956         selinux-at: remove redundant m4 code, add documentation
26957         * modules/selinux-at (configure.ac): Remove redundant code.
26958         LIB_SELINUX is already set via the dependent module, selinux-h.
26959         (Include): Add quotes around selinux-at.h.
26960         * lib/selinux-at.h: Add documentation.
26961         Reported by Bruno Haible in
26962         http://marc.info/?l=gnulib-bug&m=124958988300749
26963
26964 2009-08-07  Bruno Haible  <bruno@clisp.org>
26965
26966         Avoid link error on MacOS X 10.3 and 10.4.
26967         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26968         on non-ELF systems.
26969         * lib/argp-pv.c (argp_program_version): Likewise.
26970         Reported by Simon Josefsson.
26971
26972 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26973
26974         * tests/test-version-etc.sh: Use $EXEEXT.
26975
26976 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26977
26978         update-copyright: update documentation to point to maint.mk
26979         * build-aux/update-copyright: Here.
26980
26981 2009-08-06  Jim Meyering  <meyering@redhat.com>
26982
26983         maint.mk: support update-copyright-local
26984         * top/maint.mk (update-copyright-local): Define place-holder.
26985         (update-copyright): Depend on $(update-copyright-local).
26986
26987 2009-08-06  Jim Meyering  <meyering@redhat.com>
26988
26989         selinux-at: new module
26990         Initially written for coreutils, this module will soon be
26991         used by findutils, too.
26992         * MODULES.html.sh [Misc]: Add selinux-at.
26993         * lib/selinux-at.h: New file, from coreutils.
26994         * lib/selinux-at.c: Likewise.
26995         * modules/selinux-at: Likewise.
26996         (License): Change from LGPL to GPL, since it depends
26997         on the GPL'd openat module.
26998
26999         doc: update README
27000         * README: Remove references to cogito.
27001         Remove cvs-repo-updating instructions from 2007.
27002         Don't imply that CVS is better if you have limited disk space.
27003
27004 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27005
27006         update-copyright: support C-style comments
27007         * build-aux/update-copyright: Implement and document.
27008         * tests/test-update-copyright.sh: Test.
27009
27010 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27011
27012         update-copyright: support omitted "(C)"
27013         * build-aux/update-copyright: Implement and document.  Also,
27014         allow variable whitespace before "(C)".
27015         * tests/test-update-copyright.sh: Test.
27016
27017 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27018
27019         update-copyright: don't trip on non-FSF copyright statements
27020         * build-aux/update-copyright: Fix so that the first correctly
27021         formatted FSF copyright statement is recognized no matter what
27022         appears before it.  Update documentation.
27023         * tests/test-update-copyright.sh: Test that.
27024
27025 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27026
27027         update-copyright: clean up code a little
27028         * build-aux/update-copyright: Append "_re" to the name of any
27029         variable holding a regular expression.
27030         Replace "old" and "new" with "stmt" in variable names.
27031         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
27032         handled correctly.
27033         Format code more consistently.
27034
27035 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
27036
27037         update-copyright-tests: improve portability
27038         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
27039         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
27040
27041 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27042
27043         update-copyright: support @copyright{} and &copy;
27044         * build-aux/update-copyright: Implement and document.
27045         * tests/test-update-copyright.sh: Test.
27046
27047 2009-08-04  Jim Meyering  <meyering@redhat.com>
27048
27049         update-copyright-tests: correctly test EOL=\r\n handling
27050         * tests/test-update-copyright.sh: Put \r at the end of some lines
27051         for the dos-eol tests.  Based on a patch by Joel E. Denny.
27052
27053         maint.mk: make update-copyright exclusion list more configurable
27054         * top/maint.mk (update-copyright): Default to excluding COPYING,
27055         but allow an override, in case someone does want to update that file.
27056
27057         maint.mk: don't update copyright date in COPYING
27058         * top/maint.mk (update-copyright): Exclude COPYING.
27059
27060         maint.mk: add a copyright-updating rule
27061         * top/maint.mk (update-copyright): New rule.
27062         Derived from coreutils/Makefile.am.
27063
27064         update-copyright: rename some variables
27065         * build-aux/update-copyright: Rename a few variables for clarity.
27066         Tweak syntax.  List Joel E. Denny as coauthor.
27067
27068 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27069
27070         update-copyright: fix bug for 2-digit last year and add tests
27071         * build-aux/update-copyright: Fix bug.
27072         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27073         specified.
27074         * modules/update-copyright-tests: New
27075         * tests/test-update-copyright.sh: New.
27076
27077 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27078
27079         update-copyright: handle leading tabs in line prefix
27080         * build-aux/update-copyright: Count leading tabs as 8 spaces
27081         when computing margin.  This helps with the formatting of
27082         ChangeLogs, for example.
27083         Fix documentation a little.
27084
27085 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27086
27087         update-copyright: support EOL=\r\n
27088         * build-aux/update-copyright: Implement that.
27089
27090 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27091
27092         update-copyright: automatically format copyright statements
27093         * build-aux/update-copyright: Implement that.
27094         Also, be a little more predictable and safer by always failing
27095         when the full copyright format is not perfectly recognized as an
27096         unbroken whole.  Discussed at
27097         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27098         Rewrite documentation.
27099
27100 2009-08-03  Bruno Haible  <bruno@clisp.org>
27101
27102         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27103
27104 2009-08-02  Bruno Haible  <bruno@clisp.org>
27105
27106         Tests for module 'uname'.
27107         * modules/uname-tests: New file.
27108         * tests/test-uname.c: New file.
27109
27110         New module 'uname'.
27111         * lib/uname.c: New file.
27112         * m4/uname.m4: New file.
27113         * modules/uname: New file.
27114         * doc/posix-functions/uname.texi: Mention the new module.
27115
27116 2009-08-02  Bruno Haible  <bruno@clisp.org>
27117
27118         Tests for module 'sys_utsname'.
27119         * modules/sys_utsname-tests: New file.
27120         * tests/test-sys_utsname.c: New file.
27121
27122         New module 'sys_utsname'.
27123         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27124         * m4/sys_utsname_h.m4: New file.
27125         * modules/sys_utsname: New file.
27126         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27127
27128 2009-08-02  Bruno Haible  <bruno@clisp.org>
27129
27130         Implicitly initialize the sockets library.
27131         * lib/gethostname.c: Include sockets.h.
27132         (rpl_gethostname): Invoke gl_sockets_startup.
27133         * lib/socket.c: Include sockets.h.
27134         (rpl_socket): Invoke gl_sockets_startup.
27135         * modules/gethostname (Depends-on): Add sockets.
27136         * modules/socket (Depends-on): Likewise.
27137         * tests/test-poll.c: Don't include sockets.h.
27138         (main): Don't invoke gl_sockets_startup.
27139         * tests/test-select.c: Don't include sockets.h.
27140         (main): Don't invoke gl_sockets_startup.
27141
27142 2009-08-02  Bruno Haible  <bruno@clisp.org>
27143
27144         Allow multiple calls to gl_sockets_startup.
27145         * lib/sockets.c (initialized_sockets_version): New variable.
27146         (gl_sockets_startup): Do nothing if already called for this or a higher
27147         version.
27148         (gl_sockets_cleanup): Reset initialized_sockets_version.
27149
27150 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27151
27152         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27153         different project/version.
27154
27155 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27156             Bruno Haible  <bruno@clisp.org>
27157
27158         Tests for module 'pipe-filter-gi'.
27159         * modules/pipe-filter-gi-tests: New file.
27160         * tests/test-pipe-filter-gi1.sh: New file.
27161         * tests/test-pipe-filter-gi1.c: New file.
27162         * tests/test-pipe-filter-gi2.sh: New file.
27163         * tests/test-pipe-filter-gi2-main.c: New file.
27164         * tests/test-pipe-filter-gi2-child.c: New file.
27165
27166         New module 'pipe-filter-gi'.
27167         * lib/pipe-filter-gi.c: New file.
27168         * modules/pipe-filter-gi: New file.
27169
27170 2009-08-02  Bruno Haible  <bruno@clisp.org>
27171             Paolo Bonzini  <bonzini@gnu.org>
27172
27173         Tests for module 'pipe-filter-ii'.
27174         * modules/pipe-filter-ii-tests: New file.
27175         * tests/test-pipe-filter-ii1.sh: New file.
27176         * tests/test-pipe-filter-ii1.c: New file.
27177         * tests/test-pipe-filter-ii2.sh: New file.
27178         * tests/test-pipe-filter-ii2-main.c: New file.
27179         * tests/test-pipe-filter-ii2-child.c: New file.
27180
27181         New module 'pipe-filter-ii'.
27182         * lib/pipe-filter.h: New file.
27183         * lib/pipe-filter-ii.c: New file.
27184         * lib/pipe-filter-aux.h: New file.
27185         * modules/pipe-filter-ii: New file.
27186
27187 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27188
27189         * lib/gc-libgcrypt.c: Change copyright to FSF.
27190         * lib/gc-gnulib.c: Likewise.
27191
27192 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27193
27194         * lib/gethostname.c: Include limits.h.
27195
27196 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27197             Bruno Haible  <bruno@clisp.org>
27198
27199         Ensure HOST_NAME_MAX as part of the gethostname module.
27200         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27201         define also HOST_NAME_MAX.
27202         * tests/test-gethostname.c: Include <limits.h>.
27203         (main): Check also HOST_NAME_MAX.
27204         * doc/posix-headers/limits.texi: Document the mingw problem.
27205
27206 2009-08-02  Bruno Haible  <bruno@clisp.org>
27207
27208         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27209         Add comments.
27210
27211 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27212
27213         * lib/gethostname.c: Add Windows wrapper.
27214         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27215         * modules/gethostname: Depend on sys_socket & errno, for also
27216         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27217         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27218
27219 2009-07-31  Jim Meyering  <meyering@redhat.com>
27220
27221         getloadavg: fix symbol name in comment
27222         * lib/getloadavg.c: Correct a typo I introduced when adding
27223         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27224         Matt Kraai spotted the problem.
27225
27226 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27227
27228         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27229         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27230         code also if ! defined N_NAME_POINTER.
27231         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27232         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27233         but the n_name member is a 12-byte array.
27234
27235 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27236
27237         update-copyright: generalize comment handling
27238         * build-aux/update-copyright: Handle copyright statements
27239         within more comment styles.
27240         Document usage.
27241         Report any file with an external copyright holder or parse failure.
27242
27243 2009-07-29  Jim Meyering  <meyering@redhat.com>
27244
27245         mktime: correct setting of REPLACE_MKTIME
27246         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27247
27248         update-copyright: new module
27249         * modules/update-copyright: New file.
27250         * build-aux/update-copyright: New file.
27251         * MODULES.html.sh (maint+release support): Add update-copyright.
27252
27253 2009-07-27  Bruno Haible  <bruno@clisp.org>
27254
27255         Fix compilation error when <ctime> is used and mktime is replaced.
27256         * lib/time.in.h (mktime): New declaration.
27257         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27258         REPLACE_MKTIME instead of defining mktime in config.h.
27259         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27260         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27261         Reported by Ross McFarland <rwmcfa1@neces.com>.
27262
27263 2009-07-27  Bruno Haible  <bruno@clisp.org>
27264
27265         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27266         Reported by Matt Kraai <mkraai@beckman.com>.
27267
27268 2009-07-25  Jim Meyering  <meyering@redhat.com>
27269
27270         maint.mk: avoid warnings about missing files
27271         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27272         diagnostic when .prev-version does not exist.
27273         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27274         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27275         nonexistent cfg.mk.
27276         Suggestions from Simon Josefsson.
27277
27278 2009-07-25  Bruno Haible  <bruno@clisp.org>
27279
27280         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27281         defined as macros. Needed on QNX 6.4.1.
27282         Reported by Matt Kraai <mkraai@beckman.com>.
27283
27284 2009-07-23  Jim Meyering  <meyering@redhat.com>
27285
27286         maint.mk: invoke "make dist" with a working value of XZ_OPT
27287         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27288
27289 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27290
27291         Make fseeko.c compile on QNX.
27292         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27293
27294 2009-07-22  Peter Simons  <simons@cryp.to>
27295
27296         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27297         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27298         * lib/md4.h: Likewise.
27299         * lib/md5.h: Likewise.
27300         * lib/sha1.h: Likewise.
27301         * lib/sha256.h: Likewise.
27302         * lib/sha512.h: Likewise.
27303
27304         tests-sha1: don't assign literal string to 'char *' variable
27305         * tests/test-sha1.c (main): Declare locals with "const" to match
27306         attributes of the right hand side.
27307
27308 2009-07-21  Eric Blake  <ebb9@byu.net>
27309
27310         dup2: fix more mingw problems
27311         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27312         fd to itself.
27313         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27314         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27315         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27316         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27317         care of mingw bugs.
27318
27319 2009-07-21  Jim Meyering  <meyering@redhat.com>
27320
27321         vc-list-files: avoid failure when /bin/sh is dash
27322         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27323         On some Debian based systems, /bin/sh is a symlink to dash, and running
27324         this command would omit the "/" following each 'tests' prefix:
27325           dash -x build-aux/vc-list-files -C . tests
27326         That is because bash and dash work differently:
27327           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27328           bash ok
27329           dash odd
27330
27331 2009-07-21  Eric Blake  <ebb9@byu.net>
27332
27333         dup2-tests: test previous patch
27334         * modules/dup2-tests: New file.
27335         * tests/test-dup2.c: Likewise.
27336         * tests/test-open.c (main): Avoid unspecified behavior.
27337         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27338         test.
27339
27340         dup2: work around mingw and cygwin 1.5 bug
27341         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27343         * modules/unistd (Makefile.am): Substitute it.
27344         * lib/unistd.in.h (dup2): Declare the replacement.
27345         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27346         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27347         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27348         * modules/execute (Depends-on): Add dup2.
27349         * modules/fseterr (Depends-on): Likewise.
27350         * modules/pipe (Depends-on): Likewise.
27351         * modules/posix_spawn-internal (Depends-on): Likewise.
27352
27353 2009-07-21  Bruno Haible  <bruno@clisp.org>
27354
27355         * modules/.gitattributes: New file.
27356
27357 2009-07-20  Bruno Haible  <bruno@clisp.org>
27358
27359         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27360         (main): Use it.
27361
27362 2009-07-20  Eric Blake  <ebb9@byu.net>
27363
27364         test-pipe: make a bit more robust.
27365         * tests/test-pipe.c (myerr): Allow error messages regardless of
27366         what we do to stderr.
27367         (test_pipe): Rearrange to avoid deadlock.
27368         (child_main): Try a larger read, to ensure we avoided deadlock.
27369         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27370         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27371         if misused.
27372
27373 2009-07-19  Jim Meyering  <meyering@redhat.com>
27374
27375         fts: avoid false-positive cycle-detection
27376         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27377         for each new command line argument.
27378
27379 2009-07-19  Bruno Haible  <bruno@clisp.org>
27380
27381         Fix build error on mingw with the modules sys_select and unistd.
27382         * modules/acl-tests (Depends-on): Add close.
27383         * modules/binary-io-tests (Depends-on): Likewise.
27384         * modules/closein-tests (Depends-on): Likewise.
27385         * modules/flock-tests (Depends-on): Likewise.
27386         * modules/fsync-tests (Depends-on): Likewise.
27387         * modules/lseek-tests (Depends-on): Likewise.
27388         * modules/pipe-tests (Depends-on): Likewise.
27389         * modules/posix_spawn-tests (Depends-on): Likewise.
27390         * modules/posix_spawnp-tests (Depends-on): Likewise.
27391         * modules/stat-time-tests (Depends-on): Likewise.
27392         * modules/yesno-tests (Depends-on): Likewise.
27393
27394 2009-07-19  Bruno Haible  <bruno@clisp.org>
27395
27396         Unify conditionals.
27397         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27398         macros, not at the compiler macros.
27399         * lib/pipe.c: Likewise.
27400         * lib/execute.c: Likewise.
27401         * lib/spawni.c: Likewise.
27402
27403 2009-07-19  Bruno Haible  <bruno@clisp.org>
27404
27405         Fix handling of closed stdin/stdout/stderr on mingw.
27406         * lib/w32spawn.h: Include unistd.h.
27407         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27408         file descriptor with O_NOINHERIT flag.
27409         (fd_safer_noinherit): New function, based on fd-safer.c.
27410         (dup_safer_noinherit): New function, based on dup-safer.c.
27411         (undup_safer_noinherit): New function.
27412         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27413         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27414         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27415         instead of fd_safer.
27416         * tests/test-pipe.c: Include <windows.h>.
27417         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
27418
27419         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27420         from main.
27421         (test_pipe): Pass an extra argument for disambiguation.
27422         (main): Invoke parent_main or child_main.
27423
27424         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27425         consistently.
27426
27427 2009-07-18  Eric Blake  <ebb9@byu.net>
27428
27429         test-pipe: fix mingw build
27430         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27431
27432 2009-07-18  Bruno Haible  <bruno@clisp.org>
27433
27434         * modules/pipe-tests (Makefile.am): Fix typo.
27435
27436 2009-07-18  Eric Blake  <ebb9@byu.net>
27437
27438         error: fix mingw build
27439         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27440         Reported by Bruno Haible.
27441
27442         error: avoid undefined use of stdout
27443         * lib/error.c (error, error_at_line): Check that fd 1 is open
27444         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27445         is handling faults and the close_stdout module wants to report the
27446         detection of closed stdout as an error.
27447
27448 2009-07-17  Eric Blake  <ebb9@byu.net>
27449
27450         pipe: be robust in face of closed fds
27451         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27452         should cause child to misbehave.
27453         * modules/pipe-tests: New module.
27454         * tests/test-pipe.c: New file.
27455         * tests/test-pipe.sh: New file.
27456         Reported by Akim Demaille.
27457
27458 2009-07-14  Bruno Haible  <bruno@clisp.org>
27459
27460         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27461         Reported by anonymous kc.
27462
27463 2009-07-07  Jim Meyering  <meyering@redhat.com>
27464
27465         maint.mk: don't look for translatable strings in *.m4 or *.mk
27466         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27467         when searching for translatable strings.
27468
27469 2009-07-05  Jim Meyering  <meyering@redhat.com>
27470
27471         remove superfluous parentheses in STREQ definition
27472         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27473         * lib/getugroups.c (STREQ): Likewise.
27474         * lib/fnmatch.c (STREQ): Likewise.
27475         Spotted by Bruno Haible.
27476
27477 2009-07-04  Jim Meyering  <meyering@redhat.com>
27478
27479         argv-iter: new module
27480         * MODULES.html.sh: Add argv-iter.
27481         * lib/argv-iter.c, lib/argv-iter.h: New files.
27482         * modules/argv-iter: New file.
27483         * modules/argv-iter-tests: New file.
27484         * tests/test-argv-iter.c: Test it.
27485
27486 2009-07-04  Bruno Haible  <bruno@clisp.org>
27487
27488         Fix assertion.
27489         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27490         contains more exact copies of a given entry than file2, leave the extra
27491         copies unpaired rather than aborting.
27492         Reported by Eric Blake.
27493
27494 2009-07-02  Bruno Haible  <bruno@clisp.org>
27495
27496         Speedup git-merge-changelog for git cherry-pick.
27497         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27498         (entries_mapping_get): New function, extracted from compute_mapping.
27499         (entries_mapping_reverse_get): New function.
27500         (compute_mapping): Add a 'full' argument. Return the result in a
27501         'struct entries_mapping'.
27502         (main): Update. Access the mappings through entries_mapping_get.
27503         Reported by Eric Blake.
27504
27505 2009-07-02  Bruno Haible  <bruno@clisp.org>
27506
27507         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27508         best_i.
27509
27510 2009-07-02  Bruno Haible  <bruno@clisp.org>
27511
27512         Speed up approximate search for matching ChangeLog entries.
27513         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27514         argument. Call fstrcmp_bounded instead of fstrcmp.
27515         (compute_mapping, try_split_merged_entry, main): Update callers.
27516
27517 2009-07-02  Bruno Haible  <bruno@clisp.org>
27518
27519         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27520
27521 2009-06-30  Bruno Haible  <bruno@clisp.org>
27522
27523         Reduce the number of uc_is_cased calls.
27524         * lib/unicase.h (casing_suffix_context_t): Add
27525         'first_char_except_ignorable' field.
27526         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27527         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27528         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27529         Update initializer.
27530         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27531         case-ignorable characters.
27532         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27533         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27534         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27535         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27536         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27537
27538 2009-06-30  Bruno Haible  <bruno@clisp.org>
27539
27540         Tests for module 'unicase/ignorable'.
27541         * modules/unicase/ignorable-tests: New file.
27542         * tests/unicase/test-ignorable.c: New file, generated by
27543         gen-uni-tables.
27544
27545         Tests for module 'unicase/cased'.
27546         * modules/unicase/cased-tests: New file.
27547         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27548         * tests/unicase/test-predicate-part1.h: New file, derived from
27549         tests/unictype/test-predicate-part1.h.
27550         * tests/unicase/test-predicate-part2.h: New file, same as
27551         tests/unictype/test-predicate-part2.h.
27552
27553         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27554         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27555         (output_casing_properties): New function.
27556         (main): Call it.
27557         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27558         * lib/unicase/cased.c: Include unictype/bitmap.h.
27559         (uc_is_cased): Define through a bitmap lookup.
27560         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27561         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27562         (uc_is_case_ignorable): Define through a bitmap lookup.
27563         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27564         lib/unictype/bitmap.h.
27565         (Depends-on): Add inline. Clean up.
27566         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27567         lib/unictype/bitmap.h.
27568         (Depends-on): Add inline. Clean up.
27569         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27570         recognition.
27571         * tests/unicase/test-u16-tolower.c (main): Likewise.
27572         * tests/unicase/test-u32-tolower.c (main): Likewise.
27573
27574 2009-06-30  Bruno Haible  <bruno@clisp.org>
27575
27576         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27577         * lib/unicase/u16-casemap.c: Likewise.
27578         * lib/unicase/u32-casemap.c: Likewise.
27579
27580 2009-06-29  Bruno Haible  <bruno@clisp.org>
27581
27582         Define u32_casefold as a wrapper around u32_ct_casefold.
27583         * lib/unicase/u32-casefold.c: Update.
27584         * modules/unicase/u32-casefold (Depends-on): Add
27585         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27586         unicase/empty-suffix-context. Clean up.
27587
27588         Define u16_casefold as a wrapper around u16_ct_casefold.
27589         * lib/unicase/u16-casefold.c: Update.
27590         * modules/unicase/u16-casefold (Depends-on): Add
27591         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27592         unicase/empty-suffix-context. Clean up.
27593
27594         Define u8_casefold as a wrapper around u8_ct_casefold.
27595         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27596         * lib/unicase/u8-casefold.c: Update.
27597         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27598         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27599
27600         Define u32_totitle as a wrapper around u32_ct_totitle.
27601         * lib/unicase/u32-totitle.c: Update.
27602         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27603         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27604
27605         Define u16_totitle as a wrapper around u16_ct_totitle.
27606         * lib/unicase/u16-totitle.c: Update.
27607         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27608         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27609
27610         Define u8_totitle as a wrapper around u8_ct_totitle.
27611         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27612         functions.
27613         (FUNC): Delegate to U_CT_TOTITLE.
27614         * lib/unicase/u8-totitle.c: Update.
27615         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27616         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27617
27618         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27619         invocation.
27620         * modules/unicase/u32-tolower (Depends-on): Add
27621         unicase/empty-prefix-context, unicase/empty-suffix-context.
27622
27623         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27624         invocation.
27625         * modules/unicase/u16-tolower (Depends-on): Add
27626         unicase/empty-prefix-context, unicase/empty-suffix-context.
27627
27628         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27629         * modules/unicase/u8-tolower (Depends-on): Add
27630         unicase/empty-prefix-context, unicase/empty-suffix-context.
27631
27632         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27633         invocation.
27634         * modules/unicase/u32-toupper (Depends-on): Add
27635         unicase/empty-prefix-context, unicase/empty-suffix-context.
27636
27637         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27638         invocation.
27639         * modules/unicase/u16-toupper (Depends-on): Add
27640         unicase/empty-prefix-context, unicase/empty-suffix-context.
27641
27642         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27643         * modules/unicase/u8-toupper (Depends-on): Add
27644         unicase/empty-prefix-context, unicase/empty-suffix-context.
27645
27646         New module 'unicase/u32-ct-casefold'.
27647         * lib/unicase/u32-ct-casefold.c: New file.
27648         * modules/unicase/u32-ct-casefold: New file.
27649
27650         New module 'unicase/u16-ct-casefold'.
27651         * lib/unicase/u16-ct-casefold.c: New file.
27652         * modules/unicase/u16-ct-casefold: New file.
27653
27654         New module 'unicase/u8-ct-casefold'.
27655         * lib/unicase/u8-ct-casefold.c: New file.
27656         * lib/unicase/u-ct-casefold.h: New file, derived from
27657         lib/unicase/u-casefold.h.
27658         * modules/unicase/u8-ct-casefold: New file.
27659
27660         New module 'unicase/u32-ct-totitle'.
27661         * lib/unicase/u32-ct-totitle.c: New file.
27662         * modules/unicase/u32-ct-totitle: New file.
27663
27664         New module 'unicase/u16-ct-totitle'.
27665         * lib/unicase/u16-ct-totitle.c: New file.
27666         * modules/unicase/u16-ct-totitle: New file.
27667
27668         New module 'unicase/u8-ct-totitle'.
27669         * lib/unicase/u8-ct-totitle.c: New file.
27670         * lib/unicase/u-ct-totitle.h: New file, derived from
27671         lib/unicase/u-totitle.h.
27672         * modules/unicase/u8-ct-totitle: New file.
27673
27674         New module 'unicase/u32-ct-tolower'.
27675         * lib/unicase/u32-ct-tolower.c: New file.
27676         * modules/unicase/u32-ct-tolower: New file.
27677
27678         New module 'unicase/u16-ct-tolower'.
27679         * lib/unicase/u16-ct-tolower.c: New file.
27680         * modules/unicase/u16-ct-tolower: New file.
27681
27682         New module 'unicase/u8-ct-tolower'.
27683         * lib/unicase/u8-ct-tolower.c: New file.
27684         * modules/unicase/u8-ct-tolower: New file.
27685
27686         New module 'unicase/u32-ct-toupper'.
27687         * lib/unicase/u32-ct-toupper.c: New file.
27688         * modules/unicase/u32-ct-toupper: New file.
27689
27690         New module 'unicase/u16-ct-toupper'.
27691         * lib/unicase/u16-ct-toupper.c: New file.
27692         * modules/unicase/u16-ct-toupper: New file.
27693
27694         New module 'unicase/u8-ct-toupper'.
27695         * lib/unicase/u8-ct-toupper.c: New file.
27696         * modules/unicase/u8-ct-toupper: New file.
27697
27698         Add context arguments to u*_casemap functions.
27699         * lib/unicase/unicasemap.h: Include unicase.h.
27700         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27701         suffix_context arguments.
27702         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27703         functions.
27704         (FUNC): Add prefix_context and suffix_context arguments. Use
27705         uc_is_cased and uc_is_case_ignorable.
27706         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27707         * lib/unicase/u16-casemap.c: Likewise.
27708         * lib/unicase/u32-casemap.c: Likewise.
27709         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27710         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27711         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27712         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27713         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27714         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27715
27716         New module 'unicase/u32-suffix-context'.
27717         * lib/unicase/u32-suffix-context.c: New file.
27718         * modules/unicase/u32-suffix-context: New file.
27719
27720         New module 'unicase/u16-suffix-context'.
27721         * lib/unicase/u16-suffix-context.c: New file.
27722         * modules/unicase/u16-suffix-context: New file.
27723
27724         New module 'unicase/u8-suffix-context'.
27725         * lib/unicase/u8-suffix-context.c: New file.
27726         * lib/unicase/u-suffix-context.h: New file.
27727         * modules/unicase/u8-suffix-context: New file.
27728
27729         New module 'unicase/empty-suffix-context'.
27730         * lib/unicase/empty-suffix-context.c: New file.
27731         * modules/unicase/empty-suffix-context: New file.
27732
27733         New module 'unicase/u32-prefix-context'.
27734         * lib/unicase/u32-prefix-context.c: New file.
27735         * modules/unicase/u32-prefix-context: New file.
27736
27737         New module 'unicase/u16-prefix-context'.
27738         * lib/unicase/u16-prefix-context.c: New file.
27739         * modules/unicase/u16-prefix-context: New file.
27740
27741         New module 'unicase/u8-prefix-context'.
27742         * lib/unicase/u8-prefix-context.c: New file.
27743         * lib/unicase/u-prefix-context.h: New file.
27744         * lib/unicase/context.h: New file.
27745         * modules/unicase/u8-prefix-context: New file.
27746
27747         New module 'unicase/empty-prefix-context'.
27748         * lib/unicase/empty-prefix-context.c: New file.
27749         * modules/unicase/empty-prefix-context: New file.
27750
27751         New module 'unicase/ignorable'.
27752         * lib/unicase/ignorable.c: New file.
27753         * modules/unicase/ignorable: New file.
27754
27755         New module 'unicase/cased'.
27756         * lib/unicase/caseprop.h: New file.
27757         * lib/unicase/cased.c: New file.
27758         * modules/unicase/cased: New file.
27759
27760         New functions for case mapping of substrings.
27761         * lib/unicase.h (casing_prefix_context_t): New type.
27762         (unicase_empty_prefix_context): New variable.
27763         (u8_casing_prefix_context, u16_casing_prefix_context,
27764         u32_casing_prefix_context, u8_casing_prefixes_context,
27765         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27766         declarations.
27767         (casing_suffix_context_t): New type.
27768         (unicase_empty_suffix_context): New variable.
27769         (u8_casing_suffix_context, u16_casing_suffix_context,
27770         u32_casing_suffix_context, u8_casing_suffixes_context,
27771         u16_casing_suffixes_context, u32_casing_suffixes_context,
27772         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27773         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27774         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27775         declarations.
27776
27777 2009-06-28  Jim Meyering  <meyering@redhat.com>
27778
27779         boostrap: indent only with spaces
27780         * build-aux/bootstrap: Indent only with spaces, never TABs.
27781
27782         bootstrap: split long lines
27783         * build-aux/bootstrap: Keep line length < 80.
27784
27785         bootstrap: sync from coreutils
27786         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27787         just as autoreconf does.  Verify a list of prerequisite
27788         package-name,version-number pairs if defined in bootstrap.conf.
27789         Refer to README-prereq, if prerequisites are not satisfied.
27790
27791 2009-06-27  Eric Blake  <ebb9@byu.net>
27792
27793         tests: add test for bogus NULL definition
27794         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27795         * tests/test-stdlib.c: Likewise.
27796         * tests/test-string.c: Likewise.
27797         * tests/test-locale.c: Likewise.
27798         * tests/test-unistd.c: Likewise.
27799         * modules/stdio-tests (Depends-on): Add verify.
27800         * modules/stdlib-tests (Depends-on): Likewise.
27801         * modules/string-tests (Depends-on): Likewise.
27802         * modules/locale-tests (Depends-on): Likewise.
27803         * modules/unistd-tests (Depends-on): Likewise.
27804
27805 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27806
27807         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27808         self-explaining comment.
27809         * m4/selinux-selinux-h: Update serial.
27810         (gl_LIBSELINUX): New macro, adding a warning for missing development
27811         packages to code extracted from...
27812         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27813         Add warning for missing development packages here, too.
27814
27815 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27816
27817         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27818
27819 2009-06-25  Eric Blake  <ebb9@byu.net>
27820
27821         version-etc: fix regression
27822         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27823         gcc.
27824         (version_etc): Use it, to catch bugs with trailing NULL.
27825         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27826         (version_etc_va): Fix logic bug.
27827         * modules/version-etc-tests: Add test.
27828         * tests/test-version-etc.c: New file.
27829         * tests/test-version-etc.sh: Likewise.
27830
27831 2009-06-25  Sam Steingold  <sds@gnu.org>
27832
27833         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27834         mbtowc declaration.
27835
27836 2009-06-25  Eric Blake  <ebb9@byu.net>
27837
27838         fpurge: migrate into <stdio.h>
27839         * lib/fpurge.h: Delete...
27840         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27841         * lib/fpurge.c (fpurge): Change declaring header.
27842         * modules/fpurge (Files): Drop deleted file.
27843         (Depends-on): Add stdio.
27844         (configure.ac): Set witness.
27845         * modules/stdio (Makefile.am): Support fpurge macros.
27846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27847         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27848         * lib/fflush.c: Update client.
27849         * tests/test-fpurge.c: Likewise.
27850         * NEWS: Mention the change.
27851
27852 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27853
27854         * lib/argp-version-etc.c (program_authors): Add const
27855         qualifier.
27856         * lib/version-etc.c: Fix typos in the comments.
27857         * modules/argp-version-etc: Depends on version-etc.
27858
27859 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27860
27861         argp-version-etc: new module.
27862
27863         * lib/argp-version-etc.c: New file.
27864         * lib/argp-version-etc.h: New file.
27865         * modules/argp-version-etc: New file.
27866         * modules/argp-version-etc-tests: New file.
27867         * tests/test-argp-version-etc.c: New test.
27868         * tests/test-argp-version-etc-1.sh: New test.
27869
27870 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27871
27872         Provide additional interfaces and documentation for version-etc
27873         module.
27874
27875         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27876         interfaces.
27877         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27878         prototypes.
27879
27880 2009-06-24  Bruno Haible  <bruno@clisp.org>
27881
27882         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27883         HAVE_LIB${NAME} macro.
27884         Reported by Sam Steingold <sds@gnu.org>.
27885
27886 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27887
27888         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27889         needed.
27890
27891 2009-06-21  Bruno Haible  <bruno@clisp.org>
27892
27893         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27894         work.
27895         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27896         together with LIB${NAME}, LTLIB${NAME}.
27897         Reported by Sam Steingold <sds@gnu.org>.
27898
27899 2009-06-20  Jim Meyering  <meyering@redhat.com>
27900
27901         tests: make sc_require_test_exit_idiom more generic
27902         * top/maint.mk (Exit_witness_file): New overridable variable.
27903         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27904         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27905
27906 2009-06-19  Jim Meyering  <meyering@redhat.com>
27907
27908         hash: reverse order of src/dst parameters in an internal interface
27909         * lib/hash.c (transfer_entries): Reverse order of parameters to
27910         put DST before SRC.  Adjust callers.
27911
27912         tests: test-hash: avoid wholesale duplication
27913         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27914         Instead, use a loop and add a single conditional.
27915
27916         tests: test-hash: allow seed selection via a command line argument
27917         * tests/test-hash.c (get_seed): New function.
27918         (main): Use it.
27919
27920 2009-06-19  Eric Blake  <ebb9@byu.net>
27921
27922         hash: avoid memory leak on allocation failure
27923         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27924         failure.  Factor repeated algorithm...
27925         (transfer_entries): ...into new helper routine.
27926         (hash_delete): React to hash_rehash return value.
27927
27928         hash: reduce memory pressure in hash_rehash no-op case
27929         * lib/hash.c (next_prime): Avoid overflow.
27930         (hash_initialize): Factor bucket size computation...
27931         (compute_bucket_size): ...into new helper function.
27932         (hash_rehash): Use new function and open coding to reduce memory
27933         pressure, and avoid a memory leak in USE_OBSTACK code.
27934         Reported by Jim Meyering.
27935
27936 2009-06-18  Eric Blake  <ebb9@byu.net>
27937
27938         hash: make rotation more obvious
27939         * modules/hash (Depends-on): Add bitrotate and stdint.
27940         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27941         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27942         (SIZE_MAX): Rely on headers for definition.
27943         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27944         (raw_hasher): Use rotr_sz.
27945         Suggested by Jim Meyering.
27946
27947         hash: fix memory leak in last patch
27948         * lib/hash.c (hash_rehash): Avoid memory leak.
27949
27950         hash: avoid no-op rehashing
27951         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27952
27953         hash: provide default callback functions
27954         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27955         (hash_initialize): Use them as defaults.
27956         * tests/test-hash.c (main): Test this.
27957
27958         hash: minor optimization
27959         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27960         when possible.
27961         (hash_initialize): Document this promise.
27962         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27963         * tests/test-hash.c (hash_compare_strings): Test this.
27964
27965 2009-06-18  Bruno Haible  <bruno@clisp.org>
27966
27967         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27968         going to be replaced anyway.
27969
27970 2009-06-18  Bruno Haible  <bruno@clisp.org>
27971
27972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27973         in one place.
27974         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27975         be replaced anyway.
27976
27977 2009-06-18  Eric Blake  <ebb9@byu.net>
27978
27979         hash: check for resize before insertion
27980         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27981         threshold before insertion, so that a pathological hash_rehash
27982         that fills every bucket can still trigger another rehash.
27983
27984 2009-06-18  Jim Meyering  <meyering@redhat.com>
27985
27986         hash-tests: add a loop around the small tests
27987         * tests/test-hash.c (main): Repeat small tests with selected
27988         small initial table sizes.
27989
27990 2009-06-17  Eric Blake  <ebb9@byu.net>
27991
27992         hash: minor cleanups
27993         * lib/hash.h (hash_entry): Make opaque, by moving...
27994         * lib/hash.c (hash_entry): ...here.
27995         (hash_insert): Clarify restrictions on what can be inserted.
27996         (hash_get_next): Clarify when it is safe to remove an element
27997         during traversal.
27998         (check_tuning): Skip verification when tuning is known safe.
27999         (hash_initialize): Clarify restrictions on tuning.
28000
28001 2009-06-17  Jim Meyering  <jim@meyering.net>
28002         and Eric Blake  <ebb9@byu.net>
28003
28004         hash-tests: new module
28005         * modules/hash-tests: New file.
28006         * tests/test-hash.c: New file.
28007
28008 2009-06-17  Eric Blake  <ebb9@byu.net>
28009
28010         strstr-simple: document new module
28011         * MODULES.html.sh: Document new module.
28012
28013         strstr, strcasestr: replace on platforms with broken memchr
28014         * modules/strstr: Split into...
28015         * modules/strstr-simple: ...new module that does not care about
28016         performance, but does care about glibc bug.
28017         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
28018         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
28019         if platform memchr is broken, per Debian bug 521737.
28020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
28021         memchr.
28022         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
28023         * doc/posix-functions/strstr.texi (strstr): Document the fix.
28024         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28025         * modules/mountlist (Depends-on): Add strstr-simple.
28026         * modules/gen-uni-tables (Depends-on): Likewise.
28027         * modules/argz (Depends-on): Add strstr.
28028
28029 2009-06-17  Bruno Haible  <bruno@clisp.org>
28030
28031         * modules/posix_spawn-internal (Depends-on): Add errno.
28032
28033 2009-06-17  Bruno Haible  <bruno@clisp.org>
28034
28035         Define missing ESTALE on Interix 3.5.
28036         * lib/errno.in.h (ESTALE): Assign a value if missing.
28037         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
28038         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
28039         missing.
28040         * doc/posix-headers/errno.texi: Mention the Interix bug.
28041         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
28042
28043 2009-06-15  Eric Blake  <ebb9@byu.net>
28044
28045         memchr, memchr2: add valgrind exception
28046         * lib/memchr.valgrind: New file.
28047         * lib/memchr2.valgrind: New file.
28048         * modules/memchr (Files): Distribute valgrind file.
28049         * modules/memchr2 (Files): Likewise.
28050
28051         docs: memchr is no longer obsolete
28052         * MODULES.html.sh: Move memchr from obsolete to string.h section.
28053         * lib/string.in.h (memchr): Simplify logic.
28054
28055 2009-06-14  Jim Meyering  <meyering@redhat.com>
28056
28057         link-follow: fix the "checking..." message to not mention trailing slash
28058         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28059         never considered trailing slashes.
28060
28061 2009-06-14  Bruno Haible  <bruno@clisp.org>
28062
28063         * m4/memchr.m4: Mention also the bug on IA-64.
28064         * doc/posix-functions/memchr.texi: Likewise.
28065
28066 2009-06-12  Eric Blake  <ebb9@byu.net>
28067
28068         memchr: detect broken x86_64 and alpha implementations
28069         * modules/memchr-tests (Depends-on): Move mmap detection...
28070         * modules/memchr (Depends-on): ...here.
28071         (configure.ac): Set indicator.
28072         * lib/string.in.h (memchr): Declare replacement.
28073         * modules/string (Makefile.am): Trigger replacement.
28074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28075         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28076         bugs.
28077         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28078         * modules/getpagesize (License): Relax license.
28079
28080 2009-06-11  Bruno Haible  <bruno@clisp.org>
28081
28082         * lib/idpriv.h: Add more references.
28083
28084 2009-06-08  Bruno Haible  <bruno@clisp.org>
28085
28086         Tests for module 'idpriv-droptemp'.
28087         * modules/idpriv-droptemp-tests: New file.
28088         * tests/test-idpriv-droptemp.sh: New file.
28089         * tests/test-idpriv-droptemp.su.sh: New file.
28090         * tests/test-idpriv-droptemp.c: New file.
28091
28092         New module 'idpriv-droptemp'.
28093         * lib/idpriv-droptemp.c: New file.
28094         * modules/idpriv-droptemp: New file.
28095
28096 2009-06-08  Bruno Haible  <bruno@clisp.org>
28097
28098         Tests for module 'idpriv-drop'.
28099         * modules/idpriv-drop-tests: New file.
28100         * tests/test-idpriv-drop.sh: New file.
28101         * tests/test-idpriv-drop.su.sh: New file.
28102         * tests/test-idpriv-drop.c: New file.
28103
28104         New module 'idpriv-drop'.
28105         * lib/idpriv.h: New file.
28106         * lib-idpriv-drop.c: New file.
28107         * m4/idpriv.m4: New file.
28108         * modules/idpriv-drop: New file.
28109
28110 2009-06-08  Bruno Haible  <bruno@clisp.org>
28111
28112         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28119
28120 2009-06-08  Eric Blake  <ebb9@byu.net>
28121
28122         test-strstr: use memory fence, when possible
28123         * tests/test-strstr.c (main): Use memory fence, in order to be
28124         more likely to trigger Debian bug 521737.
28125         * modules/strstr-tests (Files): Pull in additional files.
28126
28127         memchr: no longer obsolete, for wider field testing
28128         * modules/memchr (Status, Notice): Delete, this module is no
28129         longer obsolete.
28130         * modules/vasnprintf (Depends-on): Add memchr.
28131
28132 2009-06-07  Jim Meyering  <meyering@redhat.com>
28133
28134         hash: declare some functions with the warn_unused_result attribute
28135         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28136
28137 2009-06-07  Bruno Haible  <bruno@clisp.org>
28138
28139         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28140         Reported by Eric Blake.
28141
28142 2009-06-06  Eric Blake  <ebb9@byu.net>
28143
28144         test-alignof: fix typo with long double
28145         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28146         compiler error.
28147
28148 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28149
28150         Escape non-texinfo { and }s.
28151         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28152         markup error.
28153
28154 2009-06-04  Jim Meyering  <meyering@redhat.com>
28155
28156         gitlog-to-changelog: don't infloop on an empty commit log
28157         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28158         Reported by Boris Petersen <transacid@centerim.org>.
28159
28160 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28161
28162         version-etc: extend for packagers
28163         Add three new configure options, intended for packagers:
28164           --with-packager="packager name"
28165           --with-packager-version="packager-specific version"
28166           --with-packager-bug-reports="packager bug reporting"
28167         An example with coreutils:
28168           $ ./configure \
28169             --with-packager=Gentoo \
28170             --with-packager-bug-report=http://bugs.gentoo.org/ \
28171             --with-packager-version="patchset 1.6"
28172           $ ./src/ls --version | head -n2
28173           ls (GNU coreutils) 7.1-dirty
28174           Packaged by Gentoo (patchset 1.6)
28175         Note that the bug reporting info via --help doesn't show up because
28176         coreutils uses its own custom emit_bug_reporting_address() implementation
28177         in src/system.h.  If it didn't, it'd look like:
28178           $ ./src/ls --help | tail -n4
28179           Report bugs to <bug-coreutils@gnu.org>.
28180           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28181           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28182           General help using GNU software: <http://www.gnu.org/gethelp/>.
28183         * lib/version-etc.c: Print new information, if provided.
28184         * m4/version-etc.m4: New file.
28185         * modules/version-etc (Files): Add m4/version-etc.m4.
28186         (configure.ac): Add gl_VERSION_ETC.
28187
28188 2009-05-31  Bruno Haible  <bruno@clisp.org>
28189
28190         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28191         and 'int64_t'.
28192         * modules/alignof-tests (Dependencies): Add stdint.
28193         Reported by Eric Blake.
28194
28195 2009-05-31  Bruno Haible  <bruno@clisp.org>
28196
28197         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28198         restriction due to compiler bugs.
28199         Reported by Eric Blake.
28200
28201 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28202             Bruno Haible  <bruno@clisp.org>
28203
28204         Fix test-alignof failure.
28205         * lib/alignof.h (alignof_slot): New macro.
28206         (alignof_type): New macro, with the same semantics as the previous
28207         'alignof'.
28208         (alignof): Alias to alignof_slot.
28209         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28210         check that the results are usable as constant expressions.
28211
28212 2009-05-31  Bruno Haible  <bruno@clisp.org>
28213
28214         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28215         * tests/test-memchr.c (main): Check that memchr does not read past the
28216         first occurrence of the byte.
28217         * tests/test-strstr.c (main): Update comment.
28218         Suggested by Eric Blake.
28219
28220 2009-05-30  Bruno Haible  <bruno@clisp.org>
28221
28222         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28223         detail how to use dumpbin.
28224         Reported by David Byron <dbyron@dbyron.com>.
28225
28226 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28227
28228         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28229
28230 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28231
28232         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28233
28234 2009-05-28  Bruno Haible  <bruno@clisp.org>
28235
28236         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28237         build-aux/ files.
28238
28239 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28240
28241         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28242
28243 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28244
28245         * gnulib-tool (sed_transform_main_lib_file)
28246         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28247         regexps.
28248
28249 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28250
28251         * tests/test-strstr.c: Add another self-test.
28252         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28253         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28254
28255 2009-05-23  Bruno Haible  <bruno@clisp.org>
28256
28257         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28258         change.
28259
28260 2009-05-21  Bruno Haible  <bruno@clisp.org>
28261
28262         Simplify use of mode_t varargs.
28263         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28264         uses 'mode_t' or 'int'.
28265         * lib/openat.c (openat): Likewise.
28266         * lib/open-safer.c (open_safer): Likewise.
28267         * m4/mode_t.m4: New file.
28268         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28269         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28270         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28271         * modules/open (Files): Add m4/mode_t.m4.
28272         * modules/openat (Files): Likewise.
28273         * modules/fcntl-safer (Files): Likewise.
28274         Suggested by Eric Blake.
28275
28276 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28277
28278         * doc/glibc-functions/fallocate.texi: New file.
28279         * doc/gnulib.texi: Include it.
28280
28281 2009-05-21  Eric Blake  <ebb9@byu.net>
28282             Bruno Haible  <bruno@clisp.org>
28283
28284         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28285         invocations.
28286         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28287
28288 2009-05-21  Eric Blake  <ebb9@byu.net>
28289             Bruno Haible  <bruno@clisp.org>
28290
28291         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28292         include_next. Fix of 2008-11-20 commit.
28293         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28294         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28295         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28296         NEXT_MATH_H.
28297         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28298         instead of NEXT_MATH_H.
28299
28300 2009-05-21  Bruno Haible  <bruno@clisp.org>
28301
28302         Avoid redefinition warnings for SIZE_MAX.
28303         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28304         Reported by Simon Josefsson.
28305
28306 2009-05-21  Bruno Haible  <bruno@clisp.org>
28307
28308         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28309         AC_CACHE_VAL.
28310
28311 2009-05-20  Bruno Haible  <bruno@clisp.org>
28312
28313         Make zeroptr.h work on mingw.
28314         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28315         mprotect.
28316         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28317         * modules/memchr2-tests (configure.ac): Likewise.
28318         * modules/memcmp-tests (configure.ac): Likewise.
28319         * modules/memmem-tests (configure.ac): Likewise.
28320         * modules/memrchr-tests (configure.ac): Likewise.
28321         Reported by Simon Josefsson.
28322
28323 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28324
28325         * tests/test-glob.c: Include string.h for strcmp prototype.
28326
28327 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28328
28329         * modules/getdelim (Depends-on): Add explicit stdint, although it
28330         was implicitly already pulled in via realloc-posix.
28331         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28332
28333 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28334
28335         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28336         G. Christensen" <tgc@jupiterrise.com>.
28337         * m4/sys_socket_h.m4: Check for sa_family_t.
28338         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28339         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28340         * tests/test-sys_socket.c: Check that sa_family_t works.
28341
28342 2009-05-18  Eric Blake  <ebb9@byu.net>
28343
28344         maint.mk: allow gnulib_dir in VPATH build
28345         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28346
28347 2009-05-15  Jim Meyering  <meyering@redhat.com>
28348
28349         maint.mk: Give gnulib_dir a default definition.
28350         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28351         Thus, most packages no longer need to specify this variable in cfg.mk
28352
28353 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28354
28355         rename.m4: fix typos that would make non-mingw cross-configure fail
28356         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28357
28358 2009-05-13  Eric Blake  <ebb9@byu.net>
28359
28360         mmap-anon: avoid out-of-order autoconf expansion
28361         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28362         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28363         * modules/memchr-tests (Depends-on): Add extensions.
28364         * modules/memchr2-tests (Depends-on): Add extensions.
28365         * modules/memcmp-tests (Depends-on): Add extensions.
28366         * modules/memmem-tests (Depends-on): Add extensions.
28367         * modules/memrchr-tests (Depends-on): Add extensions.
28368
28369 2009-05-13  Bruno Haible  <bruno@clisp.org>
28370
28371         Make some tests ISO C 99 compliant.
28372         * tests/zerosize-ptr.h: New file.
28373         * tests/test-memchr.c: Include zerosize-ptr.h.
28374         (main): Use a zero-size object pointer instead of NULL.
28375         * tests/test-memchr2.c: Include zerosize-ptr.h.
28376         (main): Use a zero-size object pointer instead of NULL.
28377         * tests/test-memcmp.c: Include zerosize-ptr.h.
28378         (main): Use a zero-size object pointer instead of NULL.
28379         * tests/test-memmem.c: Include zerosize-ptr.h.
28380         (main): Use a zero-size object pointer instead of NULL.
28381         * tests/test-memrchr.c: Include zerosize-ptr.h.
28382         (main): Use a zero-size object pointer instead of NULL.
28383         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28384         m4/mmap-anon.m4.
28385         (Depends-on): Add getpagesize.
28386         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28387         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28388         m4/mmap-anon.m4.
28389         (Depends-on): Add getpagesize.
28390         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28391         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28392         m4/mmap-anon.m4.
28393         (Depends-on): Add getpagesize.
28394         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28395         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28396         m4/mmap-anon.m4.
28397         (Depends-on): Add getpagesize.
28398         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28399         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28400         m4/mmap-anon.m4.
28401         (Depends-on): Add getpagesize.
28402         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28403
28404 2009-05-12  Bruno Haible  <bruno@clisp.org>
28405
28406         Tests for module 'alignof'.
28407         * modules/alignof-tests: New file.
28408         * tests/test-alignof.c: New file.
28409
28410 2009-05-12  Bruno Haible  <bruno@clisp.org>
28411
28412         Fix alignof macro.
28413         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28414         vendor compilers that are always correct.
28415
28416 2009-05-12  Bruno Haible  <bruno@clisp.org>
28417
28418         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28419         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28420         not whether its fully works.
28421
28422 2009-05-12  Bruno Haible  <bruno@clisp.org>
28423
28424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28425
28426 2009-05-12  Jim Meyering  <meyering@redhat.com>
28427
28428         * top/maint.mk: Adjust backslash alignment.
28429
28430 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28431
28432         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28433
28434 2009-05-11  Eric Blake  <ebb9@byu.net>
28435
28436         argp: avoid undefined behavior
28437         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28438         macros.
28439
28440 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28441
28442         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28443         user.name to prevent git commit from complaining.
28444
28445 2009-05-10  Bruno Haible  <bruno@clisp.org>
28446
28447         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28448         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28449         it rewrites every file name only once.
28450         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28451
28452 2009-05-08  Bruno Haible  <bruno@clisp.org>
28453
28454         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28455         instead of 'max'.
28456
28457 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28458
28459         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28460         sockaddr_storage test.
28461
28462 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28463
28464         * modules/sys_socket (Makefile.am): Substitute
28465         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28466         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28467         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28468         * tests/test-sys_socket.c: Check sockaddr_storage.
28469
28470 2009-05-08  Bruno Haible  <bruno@clisp.org>
28471
28472         New module 'alignof'.
28473         * lib/alignof.h: New file.
28474         * modules/alignof: New file.
28475
28476 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28477             Bruno Haible  <bruno@clisp.org>
28478
28479         Fix test-file-has-acl on FreeBSD.
28480         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28481         mask is implicitly added.
28482         * tests/test-file-has-acl.c: Include <signal.h>.
28483         (main): Terminate the test after 5 seconds.
28484         * modules/acl-tests (configure.ac): Check for alarm function.
28485
28486 2009-05-04  Bruno Haible  <bruno@clisp.org>
28487
28488         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28489         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28490         * modules/errno (configure.ac): Drop AC_REQUIRE.
28491         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28492         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28493
28494 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28495
28496         * modules/glob-tests: New module.
28497         * tests/test-glob.c: Add.
28498
28499 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28500
28501         * modules/fnmatch-tests: New module.
28502         * tests/test-fnmatch.c: Add.
28503
28504 2009-05-04  Eric Blake  <ebb9@byu.net>
28505
28506         maint: make the new no-submodule-changes rule VPATH-safe
28507         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28508
28509 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28510             Bruno Haible  <bruno@clisp.org>
28511
28512         acl: Fix infinite loop on FreeBSD.
28513         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28514         of return value from acl_get_entry.
28515         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28516         Likewise.
28517
28518 2009-05-03  Bruno Haible  <bruno@clisp.org>
28519
28520         * lib/acl-internal.h (acl_entries): Clarify return value.
28521         * lib/acl_entries.c (acl_entries): Likewise.
28522
28523 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28524
28525         Bug fix in acl module.
28526         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28527
28528 2009-05-03  Bruno Haible  <bruno@clisp.org>
28529
28530         Create gperf-generated file in the source dir, not in the build dir.
28531         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28532         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28533         * modules/unicase/locale-language (unicase/locale-languages.h):
28534         Likewise.
28535         * modules/unicase/special-casing (unicase/special-casing-table.h):
28536         Likewise.
28537         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28538         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28539         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28540         Reported by Ralf Wildenhues.
28541
28542 2009-05-03  Bruno Haible  <bruno@clisp.org>
28543
28544         * modules/fnmatch (Description, configure.ac): Taken from
28545         fnmatch-posix.
28546         * modules/fnmatch-posix: Turn into a symbolic reference to the
28547         'fnmatch' module, and deprecate.
28548         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28549
28550 2009-05-03  Bruno Haible  <bruno@clisp.org>
28551
28552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28553         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28554         Reported by Ralf Wildenhues.
28555
28556 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28557
28558         * m4/fnmatch.m4: Fix fnmatch re-define.
28559
28560 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28561
28562         priv-set: new module and tests; adapt write-any-file
28563         * lib/priv-set.c: New file.
28564         * lib/priv-set.h: New file.
28565         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28566         * lib/write-any-file.c: Simplify by using priv-set module.
28567         * m4/priv-set.m4: New file.
28568         * modules/priv-set: New file.
28569         * modules/unlinkdir: Add dependency on priv-set module.
28570         * modules/write-any-file: Likewise.
28571
28572         Tests for module 'priv-set'.
28573         * modules/priv-set-tests: New file.
28574         * tests/test-priv-set.c: New file.
28575
28576 2009-05-03  Jim Meyering  <meyering@redhat.com>
28577             Bruno Haible  <bruno@clisp.org>
28578
28579         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28580         use the converted UTF-8 variant of the name instead.
28581
28582 2009-05-03  Jim Meyering  <meyering@redhat.com>
28583
28584         tests: tighten some getdate tests
28585         * tests/test-getdate.c (main): Tighten tests: require equality,
28586         not just greater than.  Set TZ envvar to UTC0.
28587
28588 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28589
28590         getdate: correctly interpret "next monday" when run on a Monday
28591         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28592         that e.g., "next tues" (when run on a tuesday) results in a date
28593         that is one week in the future, and not today's date.
28594         I.e., add a week when the wday is the same as the current one.
28595         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28596         and earlier by Martin Bernreuther and Jan Minář.
28597         * tests/test-getdate.c (main): Check that "next DAY" is always in
28598         the future and that "last DAY" is always in the past.
28599
28600 2009-05-02  Jim Meyering  <meyering@redhat.com>
28601
28602         build: ensure that a release build fails when a submodule is unclean
28603         * top/maint.mk (no-submodule-changes): New rule.
28604         (alpha beta major): Depend on it.
28605
28606 2009-05-02  Bruno Haible  <bruno@clisp.org>
28607
28608         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28609         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28610         shell variable gl_fnmatch_required to detect which variant is
28611         requested.
28612         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28613         gl_FUNC_FNMATCH_POSIX.
28614         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28615         exclude fnmatch-posix.
28616
28617 2009-05-02  Bruno Haible  <bruno@clisp.org>
28618
28619         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28620         * modules/mbsrtowcs (License): Change to LGPLv2+.
28621         * modules/strnlen1 (License): Likewise.
28622         Reported by Simon Josefsson.
28623
28624 2009-05-02  Bruno Haible  <bruno@clisp.org>
28625
28626         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28627         "cross".
28628         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28629         gnulib-tool was called with option --source-base=lib.
28630
28631 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28632
28633         Use automake *-local hooks without commands, for extensibility.
28634         * modules/localcharset (Makefile.am): Rename install-exec-local
28635         rule to install-exec-localcharset, and make it a prerequisite of
28636         install-exec-local.  Likewise, rename the uninstall-local rule to
28637         uninstall-localcharset, and make it a prerequisite of the former.
28638
28639 2009-05-01  Bruno Haible  <bruno@clisp.org>
28640
28641         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28642         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28643         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28645         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28646         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28647         m4/locale-zh.m4, m4/codeset.m4.
28648
28649         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28650         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28651         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28652         m4/locale-zh.m4.
28653
28654         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28655         REPLACE_WCRTOMB if mbstate_t must be replaced.
28656         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28657         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28658
28659 2009-05-01  Bruno Haible  <bruno@clisp.org>
28660
28661         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28662         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28663         dngettext, dcngettext, textdomain, bindtextdomain,
28664         bind_textdomain_codeset): Undefine before redefining.
28665
28666 2009-04-30  Bruno Haible  <bruno@clisp.org>
28667
28668         Fix bug introduced on 2009-04-25.
28669         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28670         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28671         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28672         is defined.
28673         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28674         is defined.
28675         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28676         is defined.
28677         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28678
28679 2009-04-28  Bruno Haible  <bruno@clisp.org>
28680
28681         Comment tweaks.
28682         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28683         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28684         * lib/unicase.h (u*_casexfrm): Likewise.
28685         Reported by Paolo Bonzini.
28686
28687 2009-04-28  Bruno Haible  <bruno@clisp.org>
28688
28689         Fix a compilation error.
28690         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28691         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28692         Reported by Jim Meyering.
28693
28694 2009-04-27  Bruno Haible  <bruno@clisp.org>
28695
28696         New module 'libunistring'.
28697         * modules/libunistring: New file.
28698         * m4/libunistring.m4: New file.
28699         * MODULES.html.sh (Unicode string functions): Add it.
28700
28701 2009-04-27  Eric Blake  <ebb9@byu.net>
28702
28703         maint.mk: allow package-specific header to provide <config.h>
28704         * top/maint.mk (sc_require_config_h): New variable.
28705         (sc_require_config_h, sc_require_config_h_first): Use it.
28706
28707 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28708
28709         * top/maint.mk (sc_avoid_if_before_free): Except
28710         useless-if-before-free script.
28711
28712 2009-04-27  Eric Blake  <ebb9@byu.net>
28713
28714         maintainer-makefile: depend on all required helper scripts
28715         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28716         useless-if-before-free.
28717         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28718         version, rather than assuming gnulib checkout is available.
28719         Reported by Simen Josefsson.
28720
28721 2009-04-26  Bruno Haible  <bruno@clisp.org>
28722
28723         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28724         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28725         "../" or "..".
28726
28727 2009-04-26  Bruno Haible  <bruno@clisp.org>
28728
28729         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28730         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28731         AC_LIB_HAVE_LINKFLAGS.
28732
28733 2009-04-26  Bruno Haible  <bruno@clisp.org>
28734
28735         Simplify calling convention of u*_conv_from_encoding.
28736         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28737         u32_conv_from_encoding): Expect a resultbuf argument and return the
28738         result directly as a pointer.
28739         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28740         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28741         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28742         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28743         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28744         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28745         Update.
28746         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28747         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28748         * lib/vasnprintf.c (VASNPRINTF): Update.
28749         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28750         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28751         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28752         * NEWS: Mention the change.
28753
28754 2009-04-26  Bruno Haible  <bruno@clisp.org>
28755
28756         Simplify calling convention of u*_conv_to_encoding.
28757         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28758         u32_conv_to_encoding): Expect a resultbuf argument and return the
28759         result directly as a pointer.
28760         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28761         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28762         freeing scaled_offsets if mem_iconveha failed.
28763         * lib/unicase/u-casexfrm.h (FUNC): Update.
28764         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28765         * lib/vasnprintf.c (VASNPRINTF): Update.
28766         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28767         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28768         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28769         * NEWS: Mention the change.
28770
28771 2009-04-26  Bruno Haible  <bruno@clisp.org>
28772
28773         Avoid test failures on AIX and OSF/1.
28774         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28775         malloc(0).
28776         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28777         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28778         Likewise.
28779         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28780         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28781         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28782         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28783         * doc/posix-functions/malloc.texi: Document the portability problem
28784         related to malloc(0).
28785
28786 2009-04-26  Bruno Haible  <bruno@clisp.org>
28787
28788         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28789         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28790         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28791
28792 2009-04-25  Bruno Haible  <bruno@clisp.org>
28793
28794         Avoid link error when creating a namespace clean library.
28795         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28796         as macro with arguments if already defined as an alias.
28797         * lib/signbitf.c (gl_signbitf): Don't undefine.
28798         * lib/signbitd.c (gl_signbitd): Don't undefine.
28799         * lib/signbitl.c (gl_signbitl): Don't undefine.
28800
28801 2009-04-25  Jim Meyering  <meyering@redhat.com>
28802
28803         vc-list-files: fix another quoting bug
28804         * build-aux/vc-list-files: Avoid sed backslash expansion
28805         of pathological directory names.
28806
28807 2009-04-25  Eric Blake  <ebb9@byu.net>
28808
28809         vc-list-files: fix shell quoting error
28810         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28811         timestamp.
28812
28813 2009-04-25  Jim Meyering  <meyering@redhat.com>
28814
28815         vc-list-files: restore lost functionality with subdir argument
28816         * build-aux/vc-list-files: When given a non-"." sub-directory
28817         argument, substitute the $dir/ prefix back onto each resulting name.
28818         Otherwise, coreutils' root_tests check would fail.
28819
28820 2009-04-24  Eric Blake  <ebb9@byu.net>
28821
28822         vc-list-files: ignore git symlinks
28823         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28824         than ls-files, to ignore git symlinks.
28825
28826         maint.mk: import improvements from m4
28827         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28828         (move_if_change): Delete unused macro.
28829         (news-date-check, vc-diff-check): Support VPATH builds.
28830         (announcement): Likewise.  Split --bootstrap-tools list...
28831         (boostrap-tools): ...into separate list, which can be overridden
28832         in cfg.mk.
28833         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28834         requiring dependency on useless-if-before-free module.
28835         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28836         Support VPATH builds.
28837
28838 2009-04-24  Jim Meyering  <meyering@redhat.com>
28839
28840         maint.mk: remove coreutils-specific rules and variables
28841         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28842         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28843         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28844
28845         maint.mk: remove obsolete rule
28846         * top/maint.mk (rel-check): Remove rule.
28847         (WGET, WGETFLAGS): Remove now-unused variables.
28848
28849 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28850
28851         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28852         consistency.
28853
28854         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28855         '$(PATH_SEPARATOR)' instead of ':'.
28856
28857 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28858
28859         * lib/getopt1.c (main): Use 'const' for static array.
28860
28861 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28862
28863         * top/maint.mk: Sync with coreutils.
28864         * NEWS: Explain incompatibilities.
28865
28866 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28867             Bruno Haible  <bruno@clisp.org>
28868
28869         Fix cross-compilation results.
28870         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28871         statement, as third argument of AC_TRY_RUN.
28872         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28873         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28874         Likewise.
28875         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28876         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28877         Likewise.
28878         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28879         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28880         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28881
28882 2009-04-20  Bruno Haible  <bruno@clisp.org>
28883
28884         Avoid test failure on mingw.
28885         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28886
28887 2009-04-20  Bruno Haible  <bruno@clisp.org>
28888
28889         Avoid compilation error on mingw.
28890         * modules/localename-tests (Depends-on): Add locale.
28891
28892 2009-04-19  Bruno Haible  <bruno@clisp.org>
28893
28894         Support for building a shared library on Windows platforms.
28895         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28896         (main): Test the presence of UNINORM_NFC here.
28897         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28898         (main): Test the presence of UNINORM_NFD here.
28899         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28900         (main): Test the presence of UNINORM_NFKC here.
28901         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28902         (main): Test the presence of UNINORM_NFKD here.
28903
28904 2009-04-19  Bruno Haible  <bruno@clisp.org>
28905
28906         Avoid a compiler warning.
28907         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28908         Change type of variable 'sequence'.
28909
28910 2009-04-19  Bruno Haible  <bruno@clisp.org>
28911
28912         * modules/configmake (Makefile.am): When the contents of configmake.h
28913         does not change, arrange to preserve its modification time.
28914
28915 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28916
28917         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28918         gettext domain.
28919
28920 2009-04-16  Jim Meyering  <meyering@redhat.com>
28921
28922         useless-if-before-free: improve conversion code
28923         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28924         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28925
28926 2009-04-14  Bruno Haible  <bruno@clisp.org>
28927
28928         * modules/fcntl (Depends-on): Add extensions.
28929         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28930
28931 2009-04-12  Ben Pfaff  <blp@gnu.org>
28932
28933         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28934         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28935
28936 2009-03-20  Ben Pfaff  <blp@gnu.org>
28937
28938         Make rename replace existing destinations on Windows.
28939         * m4/rename.m4: Add test for Mingw.
28940         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28941         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28942         * doc/posix-functions/rename.texi: Document.
28943
28944 2009-04-10  Bruno Haible  <bruno@clisp.org>
28945
28946         New include file "iconveh.h".
28947         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28948         * lib/striconveh.h: Include it.
28949         (enum iconv_ilseq_handler): Remove definition.
28950         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28951         striconveh.h.
28952         * lib/striconveha.c: Include striconveh.h.
28953         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28954         * modules/striconveh (Files): Add lib/iconveh.h.
28955         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28956         lib/striconveh.h.
28957
28958 2009-04-10  Bruno Haible  <bruno@clisp.org>
28959
28960         * lib/uniconv.h: Update comment.
28961
28962 2009-04-10  Bruno Haible  <bruno@clisp.org>
28963
28964         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28965         always.
28966         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28967         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28968         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28969         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28970         "unistring-notinline.h", so that the function gets defined always.
28971         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28972         * lib/unistr/u8-uctomb.c: Likewise.
28973         * lib/unistr/u16-mbtouc.c: Likewise.
28974         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28975         * lib/unistr/u16-uctomb.c: Likewise.
28976         * lib/unistr/u32-mbtouc.c: Likewise.
28977         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28978         * lib/unistr/u32-uctomb.c: Likewise.
28979
28980 2009-04-10  Bruno Haible  <bruno@clisp.org>
28981
28982         Mark 'utime' obsolete.
28983         * modules/utime (Status, Notice): New sections.
28984         Suggested by Jim Meyering.
28985
28986         Fix cross-compile guess for utime test.
28987         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28988         autoconf.
28989         * doc/posix-functions/utime.texi: Give more precisions.
28990         Reported by Jan <ipif@ymail.com>.
28991
28992 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28993
28994         filevercmp: correct today's change
28995         * lib/filevercmp.c: Also handle coreutils' test inputs.
28996         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28997
28998         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28999         for reporting it.
29000         * lib/filevercmp.c: Special handle for "", "." and "..".
29001         * tests/test-filevercmp.c: Enlarge the set suite.
29002
29003 2009-04-07  Jim Meyering  <meyering@redhat.com>
29004
29005         useless-if-before-free: show how to remove braced useless free, too
29006         * build-aux/useless-if-before-free: still only in a comment, though.
29007
29008 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
29009
29010         maint.mk: import changes to syntax-check macros from coreutils
29011         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
29012         Use them in the relevant macros.
29013
29014 2009-04-06  Bruno Haible  <bruno@clisp.org>
29015
29016         Fix unportable use of bit-fields.
29017         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
29018         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
29019         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
29020
29021 2009-04-06  Bruno Haible  <bruno@clisp.org>
29022
29023         Avoid test failures on AIX and OSF/1.
29024         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
29025         that malloc(0) = NULL.
29026         * tests/unicase/test-u8-tolower.c (check): Likewise.
29027         * tests/unicase/test-u8-totitle.c (check): Likewise.
29028         * tests/unicase/test-u8-toupper.c (check): Likewise.
29029         * tests/unicase/test-u16-casefold.c (check): Likewise.
29030         * tests/unicase/test-u16-tolower.c (check): Likewise.
29031         * tests/unicase/test-u16-totitle.c (check): Likewise.
29032         * tests/unicase/test-u16-toupper.c (check): Likewise.
29033         * tests/unicase/test-u32-casefold.c (check): Likewise.
29034         * tests/unicase/test-u32-tolower.c (check): Likewise.
29035         * tests/unicase/test-u32-totitle.c (check): Likewise.
29036         * tests/unicase/test-u32-toupper.c (check): Likewise.
29037         * tests/uninorm/test-u8-nfc.c (check): Likewise.
29038         * tests/uninorm/test-u8-nfd.c (check): Likewise.
29039         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
29040         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
29041         * tests/uninorm/test-u16-nfc.c (check): Likewise.
29042         * tests/uninorm/test-u16-nfd.c (check): Likewise.
29043         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
29044         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
29045         * tests/uninorm/test-u32-nfc.c (check): Likewise.
29046         * tests/uninorm/test-u32-nfd.c (check): Likewise.
29047         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
29048         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
29049
29050 2009-04-05  Bruno Haible  <bruno@clisp.org>
29051
29052         Work around an autoconf limitation.
29053         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29054         comment line if it would be longer than 3 KB.
29055
29056 2009-04-05  Bruno Haible  <bruno@clisp.org>
29057
29058         Avoid test failure with libiconv-1.13.
29059         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29060         of the expected test results.
29061
29062 2009-04-05  Bruno Haible  <bruno@clisp.org>
29063
29064         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29065         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29066         that it should be installed.
29067
29068 2009-04-05  Bruno Haible  <bruno@clisp.org>
29069
29070         * gnulib-tool: New option --copy-file.
29071         (func_usage): Document it.
29072         (func_dest_tmpfilename): Moved out of func_import.
29073         (func_add_file, func_update_file): New functions, extracted from
29074         func_import.
29075         (func_import): Update.
29076
29077 2009-04-05  Karl Berry  <karl@gnu.org>
29078
29079         * README: prominently mention gnulib-tool.
29080         Rearrange sections so getting the code is near the top.
29081
29082 2009-04-05  Bruno Haible  <bruno@clisp.org>
29083
29084         * lib/unicase.h: Mention u*_cmp2.
29085         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29086         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29087         * lib/unicase/ulc-casecmp.c: Likewise.
29088         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29089         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29090         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29091         unistr/u8-cmp.
29092         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29093         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29094         unistr/u16-cmp.
29095         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29096         unistr/u32-cmp.
29097
29098         * lib/uninorm.h: Mention u*_cmp2.
29099         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29100         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29101         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29102         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29103         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29104         unistr/u8-cmp.
29105         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29106         unistr/u16-cmp.
29107         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29108         unistr/u32-cmp.
29109
29110         New module 'unistr/u32-cmp2'.
29111         * lib/unistr/u32-cmp2.c: New file.
29112         * modules/unistr/u32-cmp2: New file.
29113
29114         New module 'unistr/u16-cmp2'.
29115         * lib/unistr/u16-cmp2.c: New file.
29116         * modules/unistr/u16-cmp2: New file.
29117
29118         New module 'unistr/u8-cmp2'.
29119         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29120         * lib/unistr/u8-cmp2.c: New file.
29121         * lib/unistr/u-cmp2.h: New file.
29122         * modules/unistr/u8-cmp2: New file.
29123
29124 2009-04-05  Bruno Haible  <bruno@clisp.org>
29125
29126         * lib/unictype.h (uc_property_is_valid): New macro.
29127         * tests/unictype/test-pr_byname.c (main): Use it.
29128
29129         * lib/unistr.h: Doc fixes.
29130         * lib/uniconv.h: Doc fixes.
29131         * lib/unictype.h: Doc fixes.
29132
29133 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29134
29135         Port coreutils 7.2 to Solaris 8.
29136
29137         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29138         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29139         for Solaris 8.  This is a bit of a hack, as it means it's the
29140         caller's responsibility to add -lnsl if needed, but most likely it
29141         won't be needed since only getaddrinfo uses this and getaddrinfo
29142         isn't needed on Solaris 8.
29143
29144         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29145         problem to Solaris 8 encountered with coreutils 7.2, which
29146         resulted in a message "fnmatch.c:292: warning: passing argument 4
29147         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29148         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29149
29150 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29151
29152         * m4/ld-version-script.m4: Add FIXME comment.
29153
29154 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29155
29156         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29157         SOVERSION variable.
29158
29159 2009-04-02  Bruno Haible  <bruno@clisp.org>
29160
29161         * Makefile (info, html, dvi, pdf): Combine the rules.
29162         Suggested by Jim Meyering.
29163
29164 2009-04-01  Bruno Haible  <bruno@clisp.org>
29165
29166         * Makefile (info, html, dvi, pdf): New targets.
29167         Reported by Reuben Thomas <rrt@sc3d.org>.
29168
29169 2009-04-01  Bruno Haible  <bruno@clisp.org>
29170
29171         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29172         can be put into PATH.
29173         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29174
29175 2009-04-01  Bruno Haible  <bruno@clisp.org>
29176
29177         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29178
29179 2009-04-01  Bruno Haible  <bruno@clisp.org>
29180
29181         Rename module 'visibility'.
29182         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29183         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29184         * doc/gnulib.texi: Update.
29185         * MODULES.html.sh (Misc): Update.
29186         * NEWS: Mention the change.
29187
29188 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29189
29190         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29191         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29192         Eric Blake <ebb9@byu.net> for review.
29193         * MODULES.html.sh: Add lib-msvc-compat.
29194         * doc/gnulib.texi: Link to new section.
29195         * m4/ld-output-def.m4: New file.
29196         * doc/ld-output-def.texi: New file.
29197
29198 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29199
29200         Rename ld-version-script to lib-symbol-versions.  Suggested by
29201         Bruno Haible <bruno@clisp.org>.
29202         * modules/ld-version-script: Renamed to lib-symbol-versions.
29203         * doc/ld-version-script.texi: Fix module name.
29204         * MODULES.html.sh: Add lib-symbol-versions.
29205
29206 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29207
29208         * modules/u64-tests: New file.
29209         * tests/test-u64.c: New file.
29210
29211 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29212
29213         * MODULES.html.sh: Mention u64.
29214         * modules/u64: New module.
29215         * modules/crypto/sha512: Depend on u64 module instead of providing
29216         u64.h.
29217
29218 2009-03-27  Eric Blake  <ebb9@byu.net>
29219
29220         test-strerror: make debugging EAI_SYSTEM easier
29221         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29222         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29223         failure was EAI_SYSTEM.
29224
29225 2009-03-25  Bruno Haible  <bruno@clisp.org>
29226
29227         Fix a problem with --enable-relocatable on Solaris 7.
29228         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29229         since 2008-02-24.
29230
29231 2009-03-25  Eric Blake  <ebb9@byu.net>
29232
29233         test-sockets: avoid gcc warning
29234         * tests/test-sockets.c (main): Silence compiler warning.
29235
29236 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29237
29238         New modules nproc, pthread, contributed by Glen Lenker.
29239
29240         * MODULES.html.sh: Add pthread, nproc.
29241         * lib/nproc.c: New file.
29242         * lib/nproc.h: New file.
29243         * lib/pthread.in.h: New file.
29244         * m4/pthread.m4: New file.
29245         * modules/nproc: New file.
29246         * modules/pthread: New file.
29247
29248 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29249
29250         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29251         New variable.
29252
29253 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29254
29255         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29256         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29257         * tests/test-filevercmp.c: Add tests for backup suffixes.
29258
29259 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29260
29261         * modules/stdlib (Depends-on): Add stdint, needed when defining
29262         struct random_data on, for example, HP-UX 10.20.  Reported by
29263         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29264
29265 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29266
29267         * lib/readline.c (readline): Call fflush on stdout after printing
29268         prompt.
29269
29270 2009-03-20  Bruno Haible  <bruno@clisp.org>
29271
29272         Remove dependency from 'close' module to -lws2_32 on native Windows.
29273         * lib/close-hook.h: New file.
29274         * lib/close-hook.c: New file.
29275         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29276         w32sock.h.
29277         (_gl_close_fd_maybe_socket): Remove function.
29278         (rpl_close): Invoke execute_all_close_hooks instead of
29279         _gl_close_fd_maybe_socket.
29280         * lib/sockets.c: Include close-hook.h, w32sock.h.
29281         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29282         (close_sockets_hook): New variable.
29283         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29284         (gl_sockets_cleanup): Unregister it.
29285         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29286         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29287         * modules/close-hook: New file.
29288         * modules/close (Files): Remove lib/w32sock.h.
29289         (Depends-on): Add close-hook.
29290         (Link): Remove section.
29291         * modules/sockets (Files): Add lib/w32sock.h.
29292         (Depends-on): Add close-hook.
29293         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29294         invocation.
29295         * NEWS: Mention that LIB_CLOSE is gone.
29296
29297 2009-03-23  Eric Blake  <ebb9@byu.net>
29298
29299         signal-tests: test previous patch
29300         * tests/test-signal.c: New file.
29301         * modules/signal-tests: Likewise.
29302
29303         signal.h: always support 'volatile sig_atomic_t'
29304         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29305         (gl_SIGNAL_H_DEFAULTS): Add a default.
29306         * modules/signal (Makefile.am): Substitute if needed.
29307         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29308         users can blindly add volatile.
29309         * doc/posix-headers/signal.texi (signal.h): Document it.
29310         Reported by Matthew Woehlke.
29311
29312 2009-03-23  Jim Meyering  <meyering@redhat.com>
29313
29314         pathmax: PATH_MAX: use pathconf only when available
29315         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29316         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29317         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29318         This avoids a link failure in a PSP cross-compilation environment
29319         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29320
29321         * lib/vasnprintf.c (divide): Fix typo in comment.
29322
29323 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29324
29325         * gnulib-tool (func_filter_filelist): Fix comment.
29326
29327 2009-03-20  Bruno Haible  <bruno@clisp.org>
29328
29329         Make sockets.h self-contained.
29330         * lib/sockets.c: Include sockets.h first.
29331         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29332
29333 2009-03-19  Eric Blake  <ebb9@byu.net>
29334
29335         doc: mention more functions added in cygwin 1.7.0
29336         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29337         addition.
29338         * doc/posix-functions/log2f.texi: Likewise.
29339
29340 2009-03-19  Jim Meyering  <meyering@redhat.com>
29341
29342         fsusage: avoid syntax error due to statement-before-declaration
29343         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29344         after all declarations.  Reported by Matthew Woehlke in
29345         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29346
29347 2009-03-18  Eric Blake  <ebb9@byu.net>
29348
29349         build-aux/compile: sync from automake
29350         * build-aux/compile: New file, from automake.
29351         * config/srclist.txt: Mention build-aux/compile.
29352
29353 2009-03-17  Bruno Haible  <bruno@clisp.org>
29354
29355         * lib/git-merge-changelog.c: Fix typo in comment.
29356         Reported by Reuben Thomas <rrt@sc3d.org>.
29357
29358 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29359
29360         * m4/regex.m4: update and improve help for
29361         --without-included-regex.
29362
29363 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29364
29365         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29366         failure on missing include files.
29367
29368 2009-03-17  Eric Blake  <ebb9@byu.net>
29369
29370         doc: mention more functions added in cygwin 1.7.0
29371         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29372         addition.
29373         * doc/posix-functions/fwscanf.texi: Likewise.
29374         * doc/posix-functions/swprintf.texi: Likewise.
29375         * doc/posix-functions/swscanf.texi: Likewise.
29376         * doc/posix-functions/vfwprintf.texi: Likewise.
29377         * doc/posix-functions/vfwscanf.texi: Likewise.
29378         * doc/posix-functions/vswprintf.texi: Likewise.
29379         * doc/posix-functions/vswscanf.texi: Likewise.
29380         * doc/posix-functions/vwprintf.texi: Likewise.
29381         * doc/posix-functions/vwscanf.texi: Likewise.
29382         * doc/posix-functions/wcscasecmp.texi: Likewise.
29383         * doc/posix-functions/wcsdup.texi: Likewise.
29384         * doc/posix-functions/wcsftime.texi: Likewise.
29385         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29386         * doc/posix-functions/wprintf.texi: Likewise.
29387         * doc/posix-functions/wscanf.texi: Likewise.
29388         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29389
29390 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29391
29392         maint.mk: really add $(AM_MAKEFLAGS)
29393         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29394         was inadvertently omitted in the last commit.
29395         Spotted by Bruno Haible.
29396
29397         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29398         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29399         $(AM_MAKEFLAGS)' rather than plain `make'.
29400
29401         gnulib-tool: execute $MAKE not make
29402         * gnulib-tool: Default $MAKE to 'make'.
29403         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29404         than make.  Initialize $MAKE in the do-autobuild script.
29405
29406         gnulib-tool: use $MAKE not make in generated files
29407         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29408         make, in generated files.  Initialize $MAKE in the do-autobuild
29409         script.
29410
29411         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29412
29413         GNUmakefile: disable parallelism only for multiple, recursive targets
29414         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29415         additions in the Makefile.
29416         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29417         by Automake.
29418         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29419         are listed on the command line and at least one of them is
29420         listed in $(ALL_RECURSIVE_TARGETS).
29421
29422 2009-03-14  Bruno Haible  <bruno@clisp.org>
29423
29424         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29425         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29426         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29427         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29428         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29429         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29430         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29431         unistr/u8-uctomb.
29432         * modules/unistr/u8-strchr (Depends-on): Likewise.
29433         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29434         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29435         unistr/u16-uctomb.
29436         * modules/unistr/u16-strchr (Depends-on): Likewise.
29437         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29438
29439 2009-03-12  Bruno Haible  <bruno@clisp.org>
29440
29441         Work around select() bug on Interix 3.5.
29442         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29443         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29444         * m4/select.m4: New file.
29445         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29446         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29447         * modules/select (Files): Add m4/select.m4.
29448         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29449         * modules/nanosleep (Depends-on): Add select.
29450         * modules/poll (Depends-on): Likewise.
29451         * doc/posix-functions/select.texi: Mention the Interix bug.
29452         Reported by Markus Duft <mduft@gentoo.org>.
29453
29454         * lib/select.c: Renamed from lib/winsock-select.c.
29455         * modules/select (Files): Add lib/select.c, remove
29456         lib/winsock-select.c.
29457         (configure.ac): Update.
29458
29459 2009-03-12  Jim Meyering  <meyering@redhat.com>
29460
29461         avoid gcc warnings about unused macro definitions
29462         * lib/readtokens.c (STREQ): Remove unused definition.
29463         * lib/xmalloc.c (SIZE_MAX): Likewise.
29464         * lib/openat-die.c (N_): Likewise.
29465         * lib/mountlist.c (SIZE_MAX): Remove definition.
29466         Instead, include <stdint.h>.
29467         * lib/readutmp.c: Likewise.
29468         * modules/readutmp (Depends-on): Add stdint.
29469         * modules/mountlist (Depends-on): Add stdint.
29470         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29471
29472 2009-03-10  Bruno Haible  <bruno@clisp.org>
29473
29474         Tests for module 'mbmemcasecoll'.
29475         * modules/mbmemcasecoll-tests: New file.
29476         * tests/test-mbmemcasecoll1.sh: New file.
29477         * tests/test-mbmemcasecoll2.sh: New file.
29478         * tests/test-mbmemcasecoll3.sh: New file.
29479         * tests/test-mbmemcasecoll.c: New file.
29480
29481         New module 'mbmemcasecoll'.
29482         * lib/mbmemcasecoll.h: New file.
29483         * lib/mbmemcasecoll.c: New file.
29484         * modules/mbmemcasecoll: New file.
29485
29486         * tests/test-mbmemcasecmp.h: New file, extracted from
29487         tests/test-mbmemcasecmp.c.
29488         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29489         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29490         (main): Update.
29491         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29492
29493 2009-03-09  Bruno Haible  <bruno@clisp.org>
29494
29495         Tests for module 'mbmemcasecmp'.
29496         * modules/mbmemcasecmp-tests: New file.
29497         * tests/test-mbmemcasecmp1.sh: New file.
29498         * tests/test-mbmemcasecmp2.sh: New file.
29499         * tests/test-mbmemcasecmp3.sh: New file.
29500         * tests/test-mbmemcasecmp.c: New file.
29501
29502         New module 'mbmemcasecmp'.
29503         * lib/mbmemcasecmp.h: New file.
29504         * lib/mbmemcasecmp.c: New file.
29505         * modules/mbmemcasecmp: New file.
29506
29507 2009-03-09  Bruno Haible  <bruno@clisp.org>
29508
29509         Tests for module 'unicase/ulc-casecoll'.
29510         * modules/unicase/ulc-casecoll-tests: New file.
29511         * tests/unicase/test-ulc-casecoll1.sh: New file.
29512         * tests/unicase/test-ulc-casecoll2.sh: New file.
29513         * tests/unicase/test-ulc-casecoll.c: New file.
29514
29515         New module 'unicase/ulc-casecoll'.
29516         * lib/unicase.h (ulc_casecoll): New declaration.
29517         * lib/unicase/ulc-casecoll.c: New file.
29518         * modules/unicase/ulc-casecoll: New file.
29519
29520         New module 'unicase/ulc-casexfrm'.
29521         * lib/unicase.h (ulc_casexfrm): New declaration.
29522         * lib/unicase/ulc-casexfrm.c: New file.
29523         * modules/unicase/ulc-casexfrm: New file.
29524
29525 2009-03-09  Bruno Haible  <bruno@clisp.org>
29526
29527         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29528         invocations.
29529
29530         * m4/mbscasecmp.m4: Remove file.
29531         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29532         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29533
29534         * m4/mbscasestr.m4: Remove file.
29535         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29536         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29537
29538         * m4/mbschr.m4: Remove file.
29539         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29540         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29541
29542         * m4/mbscspn.m4: Remove file.
29543         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29544         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29545
29546         * m4/mbslen.m4: Remove file.
29547         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29548         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29549
29550         * m4/mbsncasecmp.m4: Remove file.
29551         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29552         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29553
29554         * m4/mbsnlen.m4: Remove file.
29555         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29556         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29557
29558         * m4/mbspbrk.m4: Remove file.
29559         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29560         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29561
29562         * m4/mbspcasecmp.m4: Remove file.
29563         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29564         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29565
29566         * m4/mbsrchr.m4: Remove file.
29567         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29568         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29569
29570         * m4/mbssep.m4: Remove file.
29571         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29572         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29573
29574         * m4/mbsspn.m4: Remove file.
29575         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29576         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29577
29578         * m4/mbsstr.m4: Remove file.
29579         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29580         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29581
29582         * m4/mbstok_r.m4: Remove file.
29583         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29584         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29585
29586         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29587
29588         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29589         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29590
29591         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29592
29593 2009-03-08  Bruno Haible  <bruno@clisp.org>
29594
29595         Tests for module 'unicase/ulc-casecmp'.
29596         * modules/unicase/ulc-casecmp-tests: New file.
29597         * tests/unicase/test-ulc-casecmp1.sh: New file.
29598         * tests/unicase/test-ulc-casecmp2.sh: New file.
29599         * tests/unicase/test-ulc-casecmp.c: New file.
29600
29601         New module 'unicase/ulc-casecmp'.
29602         * lib/unicase.h (ulc_casecmp): New declaration.
29603         * lib/unicase/ulc-casecmp.c: New file.
29604         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29605         'const SRC_UNIT *'.
29606         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29607         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29608         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29609         * modules/unicase/ulc-casecmp: New file.
29610
29611         Tests for module 'unicase/u32-is-cased'.
29612         * modules/unicase/u32-is-cased-tests: New file.
29613         * tests/unicase/test-u32-is-cased.c: New file.
29614
29615         Tests for module 'unicase/u16-is-cased'.
29616         * modules/unicase/u16-is-cased-tests: New file.
29617         * tests/unicase/test-u16-is-cased.c: New file.
29618
29619         Tests for module 'unicase/u8-is-cased'.
29620         * modules/unicase/u8-is-cased-tests: New file.
29621         * tests/unicase/test-u8-is-cased.c: New file.
29622         * tests/unicase/test-is-cased.h: New file.
29623
29624         New module 'unicase/u32-is-cased'.
29625         * lib/unicase/u32-is-cased.c: New file.
29626         * modules/unicase/u32-is-cased: New file.
29627
29628         New module 'unicase/u16-is-cased'.
29629         * lib/unicase/u16-is-cased.c: New file.
29630         * modules/unicase/u16-is-cased: New file.
29631
29632         New module 'unicase/u8-is-cased'.
29633         * lib/unicase/u8-is-cased.c: New file.
29634         * lib/unicase/u-is-cased.h: New file.
29635         * modules/unicase/u8-is-cased: New file.
29636
29637         Tests for module 'unicase/u32-is-casefolded'.
29638         * modules/unicase/u32-is-casefolded-tests: New file.
29639         * tests/unicase/test-u32-is-casefolded.c: New file.
29640
29641         Tests for module 'unicase/u16-is-casefolded'.
29642         * modules/unicase/u16-is-casefolded-tests: New file.
29643         * tests/unicase/test-u16-is-casefolded.c: New file.
29644
29645         Tests for module 'unicase/u8-is-casefolded'.
29646         * modules/unicase/u8-is-casefolded-tests: New file.
29647         * tests/unicase/test-u8-is-casefolded.c: New file.
29648         * tests/unicase/test-is-casefolded.h: New file.
29649
29650         New module 'unicase/u32-is-casefolded'.
29651         * lib/unicase/u32-is-casefolded.c: New file.
29652         * modules/unicase/u32-is-casefolded: New file.
29653
29654         New module 'unicase/u16-is-casefolded'.
29655         * lib/unicase/u16-is-casefolded.c: New file.
29656         * modules/unicase/u16-is-casefolded: New file.
29657
29658         New module 'unicase/u8-is-casefolded'.
29659         * lib/unicase/u8-is-casefolded.c: New file.
29660         * modules/unicase/u8-is-casefolded: New file.
29661
29662         Tests for module 'unicase/u32-is-titlecase'.
29663         * modules/unicase/u32-is-titlecase-tests: New file.
29664         * tests/unicase/test-u32-is-titlecase.c: New file.
29665
29666         Tests for module 'unicase/u16-is-titlecase'.
29667         * modules/unicase/u16-is-titlecase-tests: New file.
29668         * tests/unicase/test-u16-is-titlecase.c: New file.
29669
29670         Tests for module 'unicase/u8-is-titlecase'.
29671         * modules/unicase/u8-is-titlecase-tests: New file.
29672         * tests/unicase/test-u8-is-titlecase.c: New file.
29673         * tests/unicase/test-is-titlecase.h: New file.
29674
29675         New module 'unicase/u32-is-titlecase'.
29676         * lib/unicase/u32-is-titlecase.c: New file.
29677         * modules/unicase/u32-is-titlecase: New file.
29678
29679         New module 'unicase/u16-is-titlecase'.
29680         * lib/unicase/u16-is-titlecase.c: New file.
29681         * modules/unicase/u16-is-titlecase: New file.
29682
29683         New module 'unicase/u8-is-titlecase'.
29684         * lib/unicase/u8-is-titlecase.c: New file.
29685         * modules/unicase/u8-is-titlecase: New file.
29686
29687         Tests for module 'unicase/u32-is-lowercase'.
29688         * modules/unicase/u32-is-lowercase-tests: New file.
29689         * tests/unicase/test-u32-is-lowercase.c: New file.
29690
29691         Tests for module 'unicase/u16-is-lowercase'.
29692         * modules/unicase/u16-is-lowercase-tests: New file.
29693         * tests/unicase/test-u16-is-lowercase.c: New file.
29694
29695         Tests for module 'unicase/u8-is-lowercase'.
29696         * modules/unicase/u8-is-lowercase-tests: New file.
29697         * tests/unicase/test-u8-is-lowercase.c: New file.
29698         * tests/unicase/test-is-lowercase.h: New file.
29699
29700         New module 'unicase/u32-is-lowercase'.
29701         * lib/unicase/u32-is-lowercase.c: New file.
29702         * modules/unicase/u32-is-lowercase: New file.
29703
29704         New module 'unicase/u16-is-lowercase'.
29705         * lib/unicase/u16-is-lowercase.c: New file.
29706         * modules/unicase/u16-is-lowercase: New file.
29707
29708         New module 'unicase/u8-is-lowercase'.
29709         * lib/unicase/u8-is-lowercase.c: New file.
29710         * modules/unicase/u8-is-lowercase: New file.
29711
29712         Tests for module 'unicase/u32-is-uppercase'.
29713         * modules/unicase/u32-is-uppercase-tests: New file.
29714         * tests/unicase/test-u32-is-uppercase.c: New file.
29715
29716         Tests for module 'unicase/u16-is-uppercase'.
29717         * modules/unicase/u16-is-uppercase-tests: New file.
29718         * tests/unicase/test-u16-is-uppercase.c: New file.
29719
29720         Tests for module 'unicase/u8-is-uppercase'.
29721         * modules/unicase/u8-is-uppercase-tests: New file.
29722         * tests/unicase/test-u8-is-uppercase.c: New file.
29723         * tests/unicase/test-is-uppercase.h: New file.
29724
29725         New module 'unicase/u32-is-uppercase'.
29726         * lib/unicase/u32-is-uppercase.c: New file.
29727         * modules/unicase/u32-is-uppercase: New file.
29728
29729         New module 'unicase/u16-is-uppercase'.
29730         * lib/unicase/u16-is-uppercase.c: New file.
29731         * modules/unicase/u16-is-uppercase: New file.
29732
29733         New module 'unicase/u8-is-uppercase'.
29734         * lib/unicase/u8-is-uppercase.c: New file.
29735         * modules/unicase/u8-is-uppercase: New file.
29736
29737         New module 'unicase/u32-is-invariant'.
29738         * lib/unicase/u32-is-invariant.c: New file.
29739         * modules/unicase/u32-is-invariant: New file.
29740
29741         New module 'unicase/u16-is-invariant'.
29742         * lib/unicase/u16-is-invariant.c: New file.
29743         * modules/unicase/u16-is-invariant: New file.
29744
29745         New module 'unicase/u8-is-invariant'.
29746         * lib/unicase/u8-is-invariant.c: New file.
29747         * lib/unicase/invariant.h: New file.
29748         * lib/unicase/u-is-invariant.h: New file.
29749         * modules/unicase/u8-is-invariant: New file.
29750
29751         Tests for module 'unicase/u32-casecoll'.
29752         * modules/unicase/u32-casecoll-tests: New file.
29753         * tests/unicase/test-u32-casecoll.c: New file.
29754
29755         Tests for module 'unicase/u16-casecoll'.
29756         * modules/unicase/u16-casecoll-tests: New file.
29757         * tests/unicase/test-u16-casecoll.c: New file.
29758
29759         Tests for module 'unicase/u8-casecoll'.
29760         * modules/unicase/u8-casecoll-tests: New file.
29761         * tests/unicase/test-u8-casecoll.c: New file.
29762
29763         New module 'unicase/u32-casecoll'.
29764         * lib/unicase/u32-casecoll.c: New file.
29765         * modules/unicase/u32-casecoll: New file.
29766
29767         New module 'unicase/u16-casecoll'.
29768         * lib/unicase/u16-casecoll.c: New file.
29769         * modules/unicase/u16-casecoll: New file.
29770
29771         New module 'unicase/u8-casecoll'.
29772         * lib/unicase/u8-casecoll.c: New file.
29773         * lib/unicase/u-casecoll.h: New file.
29774         * modules/unicase/u8-casecoll: New file.
29775
29776         New module 'unicase/u32-casexfrm'.
29777         * lib/unicase/u32-casexfrm.c: New file.
29778         * modules/unicase/u32-casexfrm: New file.
29779
29780         New module 'unicase/u16-casexfrm'.
29781         * lib/unicase/u16-casexfrm.c: New file.
29782         * modules/unicase/u16-casexfrm: New file.
29783
29784         New module 'unicase/u8-casexfrm'.
29785         * lib/unicase/u8-casexfrm.c: New file.
29786         * lib/unicase/u-casexfrm.h: New file.
29787         * modules/unicase/u8-casexfrm: New file.
29788
29789         Tests for module 'unicase/u32-casecmp'.
29790         * modules/unicase/u32-casecmp-tests: New file.
29791         * tests/unicase/test-u32-casecmp.c: New file.
29792
29793         Tests for module 'unicase/u16-casecmp'.
29794         * modules/unicase/u16-casecmp-tests: New file.
29795         * tests/unicase/test-u16-casecmp.c: New file.
29796
29797         Tests for module 'unicase/u8-casecmp'.
29798         * modules/unicase/u8-casecmp-tests: New file.
29799         * tests/unicase/test-u8-casecmp.c: New file.
29800         * tests/unicase/test-casecmp.h: New file.
29801
29802         New module 'unicase/u32-casecmp'.
29803         * lib/unicase/u32-casecmp.c: New file.
29804         * modules/unicase/u32-casecmp: New file.
29805
29806         New module 'unicase/u16-casecmp'.
29807         * lib/unicase/u16-casecmp.c: New file.
29808         * modules/unicase/u16-casecmp: New file.
29809
29810         New module 'unicase/u8-casecmp'.
29811         * lib/unicase/u8-casecmp.c: New file.
29812         * lib/unicase/u-casecmp.h: New file.
29813         * modules/unicase/u8-casecmp: New file.
29814
29815         Tests for module 'unicase/u32-casefold'.
29816         * modules/unicase/u32-casefold-tests: New file.
29817         * tests/unicase/test-u32-casefold.c: New file.
29818
29819         Tests for module 'unicase/u16-casefold'.
29820         * modules/unicase/u16-casefold-tests: New file.
29821         * tests/unicase/test-u16-casefold.c: New file.
29822
29823         Tests for module 'unicase/u8-casefold'.
29824         * modules/unicase/u8-casefold-tests: New file.
29825         * tests/unicase/test-u8-casefold.c: New file.
29826
29827         New module 'unicase/u32-casefold'.
29828         * lib/unicase/u32-casefold.c: New file.
29829         * modules/unicase/u32-casefold: New file.
29830
29831         New module 'unicase/u16-casefold'.
29832         * lib/unicase/u16-casefold.c: New file.
29833         * modules/unicase/u16-casefold: New file.
29834
29835         New module 'unicase/u8-casefold'.
29836         * lib/unicase/u8-casefold.c: New file.
29837         * lib/unicase/u-casefold.h: New file.
29838         * modules/unicase/u8-casefold: New file.
29839
29840         New module 'unicase/tocasefold'.
29841         * lib/unicase/casefold.h: New file.
29842         * lib/unicase/tocasefold.c: New file.
29843         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29844         * modules/unicase/tocasefold: New file.
29845
29846         Tests for module 'unicase/u32-totitle'.
29847         * modules/unicase/u32-totitle-tests: New file.
29848         * tests/unicase/test-u32-totitle.c: New file.
29849
29850         Tests for module 'unicase/u16-totitle'.
29851         * modules/unicase/u16-totitle-tests: New file.
29852         * tests/unicase/test-u16-totitle.c: New file.
29853
29854         Tests for module 'unicase/u8-totitle'.
29855         * modules/unicase/u8-totitle-tests: New file.
29856         * tests/unicase/test-u8-totitle.c: New file.
29857
29858         New module 'unicase/u32-totitle'.
29859         * lib/unicase/u32-totitle.c: New file.
29860         * modules/unicase/u32-totitle: New file.
29861
29862         New module 'unicase/u16-totitle'.
29863         * lib/unicase/u16-totitle.c: New file.
29864         * modules/unicase/u16-totitle: New file.
29865
29866         New module 'unicase/u8-totitle'.
29867         * lib/unicase/u8-totitle.c: New file.
29868         * lib/unicase/u-totitle.h: New file.
29869         * modules/unicase/u8-totitle: New file.
29870
29871         Tests for module 'unicase/u32-tolower'.
29872         * modules/unicase/u32-tolower-tests: New file.
29873         * tests/unicase/test-u32-tolower.c: New file.
29874
29875         Tests for module 'unicase/u16-tolower'.
29876         * modules/unicase/u16-tolower-tests: New file.
29877         * tests/unicase/test-u16-tolower.c: New file.
29878
29879         Tests for module 'unicase/u8-tolower'.
29880         * modules/unicase/u8-tolower-tests: New file.
29881         * tests/unicase/test-u8-tolower.c: New file.
29882
29883         New module 'unicase/u32-tolower'.
29884         * lib/unicase/u32-tolower.c: New file.
29885         * modules/unicase/u32-tolower: New file.
29886
29887         New module 'unicase/u16-tolower'.
29888         * lib/unicase/u16-tolower.c: New file.
29889         * modules/unicase/u16-tolower: New file.
29890
29891         New module 'unicase/u8-tolower'.
29892         * lib/unicase/u8-tolower.c: New file.
29893         * modules/unicase/u8-tolower: New file.
29894
29895         Tests for module 'unicase/u32-toupper'.
29896         * modules/unicase/u32-toupper-tests: New file.
29897         * tests/unicase/test-u32-toupper.c: New file.
29898
29899         Tests for module 'unicase/u16-toupper'.
29900         * modules/unicase/u16-toupper-tests: New file.
29901         * tests/unicase/test-u16-toupper.c: New file.
29902
29903         Tests for module 'unicase/u8-toupper'.
29904         * modules/unicase/u8-toupper-tests: New file.
29905         * tests/unicase/test-u8-toupper.c: New file.
29906
29907         New module 'unicase/u32-toupper'.
29908         * lib/unicase/u32-toupper.c: New file.
29909         * modules/unicase/u32-toupper: New file.
29910
29911         New module 'unicase/u16-toupper'.
29912         * lib/unicase/u16-toupper.c: New file.
29913         * modules/unicase/u16-toupper: New file.
29914
29915         New module 'unicase/u8-toupper'.
29916         * lib/unicase/u8-toupper.c: New file.
29917         * modules/unicase/u8-toupper: New file.
29918
29919         New module 'unicase/u32-casemap'.
29920         * lib/unicase/u32-casemap.c: New file.
29921         * modules/unicase/u32-casemap: New file.
29922
29923         New module 'unicase/u16-casemap'.
29924         * lib/unicase/u16-casemap.c: New file.
29925         * modules/unicase/u16-casemap: New file.
29926
29927         New module 'unicase/u8-casemap'.
29928         * lib/unicase/unicasemap.h: New file.
29929         * lib/unicase/u8-casemap.c: New file.
29930         * lib/unicase/u-casemap.h: New file.
29931         * modules/unicase/u8-casemap: New file.
29932
29933         New module 'unicase/special-casing'.
29934         * lib/unicase/special-casing.h: New file.
29935         * lib/unicase/special-casing.c: New file.
29936         * lib/unicase/special-casing-table.gperf: New file, generated by
29937         gen-uni-tables.c.
29938         * modules/unicase/special-casing: New file.
29939
29940         Tests for module 'unicase/locale-language'.
29941         * modules/unicase/locale-language-tests: New file.
29942         * tests/unicase/test-locale-language.sh: New file.
29943         * tests/unicase/test-locale-language.c: New file.
29944
29945         New module 'unicase/locale-language'.
29946         * lib/unicase/locale-language.c: New file.
29947         * lib/unicase/locale-languages.gperf: New file.
29948         * modules/unicase/locale-language: New file.
29949
29950         Generate more tables for case conversion and case folding.
29951         * lib/gen-uni-tables.c (SCC_*): New enum items.
29952         (struct special_casing_rule): New type.
29953         (casing_rules, num_casing_rules, allocated_casing_rules): New
29954         variables.
29955         (add_casing_rule, fill_casing_rules): New functions.
29956         (struct casefold_rule): New type.
29957         (casefolding_rules, num_casefolding_rules,
29958         allocated_casefolding_rules): New variables.
29959         (fill_casefolding_rules): New function.
29960         (unicode_casefold): New variable.
29961         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29962         sort_casing_rules, output_casing_rules): New functions.
29963         (main): Accept to more arguments: SpecialCasing.txt and
29964         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29965         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29966         Output mapping for casefolding.
29967
29968         * lib/unicase.h: Include stdbool.h, uninorm.h.
29969         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29970         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29971         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29972         arguments.
29973         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29974         resultp arguments.
29975         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29976         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29977         resultp arguments.
29978         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29979         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29980         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29981         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29982         declarations.
29983         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29984
29985 2009-03-08  Bruno Haible  <bruno@clisp.org>
29986
29987         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29988         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29989         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29990         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29991
29992 2009-03-07  Bruno Haible  <bruno@clisp.org>
29993
29994         Adjust u*_normcmp, u*_normcoll API.
29995         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29996         u16_normcoll, u32_normcoll): Change failure conventions.
29997         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29998         errno and return -1.
29999         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
30000
30001 2009-03-07  Bruno Haible  <bruno@clisp.org>
30002
30003         Tests for module 'uninorm/u32-normcoll'.
30004         * modules/uninorm/u32-normcoll-tests: New file.
30005         * tests/uninorm/test-u32-normcoll.c: New file.
30006
30007         Tests for module 'uninorm/u16-normcoll'.
30008         * modules/uninorm/u16-normcoll-tests: New file.
30009         * tests/uninorm/test-u16-normcoll.c: New file.
30010
30011         Tests for module 'uninorm/u8-normcoll'.
30012         * modules/uninorm/u8-normcoll-tests: New file.
30013         * tests/uninorm/test-u8-normcoll.c: New file.
30014
30015 2009-03-07  Bruno Haible  <bruno@clisp.org>
30016
30017         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
30018         tests/uninorm/test-u32-normcmp.c.
30019         * tests/uninorm/test-u32-normcmp.c: Include it.
30020         (test_nonascii): New function, extracted from main. Add some more
30021         tests.
30022         (main): Invoke test_ascii and test_nonascii.
30023         * modules/uninorm/u32-normcmp-tests (Files): Add
30024         tests/uninorm/test-u32-normcmp.h.
30025         (Depends-on): Remove uninorm/u32-normcmp.
30026
30027         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
30028         tests/uninorm/test-u16-normcmp.c.
30029         * tests/uninorm/test-u16-normcmp.c: Include it.
30030         (test_nonascii): New function, extracted from main. Add some more
30031         tests.
30032         (main): Invoke test_ascii and test_nonascii.
30033         * modules/uninorm/u16-normcmp-tests (Files): Add
30034         tests/uninorm/test-u16-normcmp.h.
30035         (Depends-on): Remove uninorm/u16-normcmp.
30036
30037         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
30038         tests/uninorm/test-u8-normcmp.c.
30039         * tests/uninorm/test-u8-normcmp.c: Include it.
30040         (test_nonascii): New function, extracted from main. Add some more
30041         tests.
30042         (main): Invoke test_ascii and test_nonascii.
30043         * modules/uninorm/u8-normcmp-tests (Files): Add
30044         tests/uninorm/test-u8-normcmp.h.
30045         (Depends-on): Remove uninorm/u8-normcmp.
30046
30047 2009-03-07  Bruno Haible  <bruno@clisp.org>
30048
30049         New module 'uninorm/u32-normcoll'.
30050         * lib/uninorm/u32-normcoll.c: New file.
30051         * modules/uninorm/u32-normcoll: New file.
30052
30053         New module 'uninorm/u16-normcoll'.
30054         * lib/uninorm/u16-normcoll.c: New file.
30055         * modules/uninorm/u16-normcoll: New file.
30056
30057         New module 'uninorm/u8-normcoll'.
30058         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30059         declarations.
30060         * lib/uninorm/u8-normcoll.c: New file.
30061         * lib/uninorm/u-normcoll.h: New file.
30062         * modules/uninorm/u8-normcoll: New file.
30063
30064         New module 'uninorm/u32-normxfrm'.
30065         * lib/uninorm/u32-normxfrm.c: New file.
30066         * modules/uninorm/u32-normxfrm: New file.
30067
30068         New module 'uninorm/u16-normxfrm'.
30069         * lib/uninorm/u16-normxfrm.c: New file.
30070         * modules/uninorm/u16-normxfrm: New file.
30071
30072         New module 'uninorm/u8-normxfrm'.
30073         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30074         declarations.
30075         * lib/uninorm/u8-normxfrm.c: New file.
30076         * lib/uninorm/u-normxfrm.h: New file.
30077         * modules/uninorm/u8-normxfrm: New file.
30078
30079 2009-03-07  Bruno Haible  <bruno@clisp.org>
30080
30081         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30082         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30083         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30084
30085 2009-03-07  Bruno Haible  <bruno@clisp.org>
30086
30087         New module 'memxfrm'.
30088         * lib/memxfrm.h: New file.
30089         * lib/memxfrm.c: New file.
30090         * modules/memxfrm: New file.
30091
30092 2009-03-07  Bruno Haible  <bruno@clisp.org>
30093
30094         New module 'memcmp2'.
30095         * lib/memcmp2.h: New file.
30096         * lib/memcmp2.c: New file.
30097         * modules/memcmp2: New file.
30098
30099 2009-03-07  Bruno Haible  <bruno@clisp.org>
30100
30101         Tests for module 'uninorm/decomposing-form'.
30102         * modules/uninorm/decomposing-form-tests: New file.
30103         * tests/uninorm/test-decomposing-form.c: New file.
30104
30105         New module 'uninorm/decomposing-form'.
30106         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30107         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30108         Add 'decomposing_variant' field.
30109         * lib/uninorm/decomposing-form.c: New file.
30110         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30111         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30112         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30113         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30114         * modules/uninorm/decomposing-form: New file.
30115         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30116         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30117
30118 2009-03-07  Bruno Haible  <bruno@clisp.org>
30119
30120         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30121         strings.
30122
30123 2009-03-06  Bruno Haible  <bruno@clisp.org>
30124
30125         Tests for module 'uninorm/u32-normcmp'.
30126         * tests/uninorm/test-u32-normcmp.c: New file.
30127         * modules/uninorm/u32-normcmp-tests: New file.
30128
30129         Tests for module 'uninorm/u16-normcmp'.
30130         * tests/uninorm/test-u16-normcmp.c: New file.
30131         * modules/uninorm/u16-normcmp-tests: New file.
30132
30133         Tests for module 'uninorm/u8-normcmp'.
30134         * tests/uninorm/test-u8-normcmp.c: New file.
30135         * modules/uninorm/u8-normcmp-tests: New file.
30136
30137         New module 'uninorm/u32-normcmp'.
30138         * lib/uninorm/u32-normcmp.c: New file.
30139         * modules/uninorm/u32-normcmp: New file.
30140
30141         New module 'uninorm/u16-normcmp'.
30142         * lib/uninorm/u16-normcmp.c: New file.
30143         * modules/uninorm/u16-normcmp: New file.
30144
30145         New module 'uninorm/u8-normcmp'.
30146         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30147         declarations.
30148         * lib/uninorm/u8-normcmp.c: New file.
30149         * lib/uninorm/u-normcmp.h: New file.
30150         * modules/uninorm/u8-normcmp: New file.
30151
30152 2009-03-06  Bruno Haible  <bruno@clisp.org>
30153
30154         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30155         Reported by Eric Blake.
30156
30157 2009-03-06  Eric Blake  <ebb9@byu.net>
30158             Bruno Haible  <bruno@clisp.org>
30159
30160         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30161         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30162         condition.
30163         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30164         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30165         condition.
30166         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30167
30168 2009-03-06  Eric Blake  <ebb9@byu.net>
30169
30170         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30171         to avoid compiler warnings.
30172         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30173
30174 2009-03-05  Bruno Haible  <bruno@clisp.org>
30175
30176         * tests/test-ftell.c (main): Disable test beyond end of file on
30177         FreeMiNT.
30178         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30179
30180 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30181
30182         * lib/filevercmp.c: Move hidden files up in ordering.
30183         * tests/test-filevercmp.c: Add tests for hidden files.
30184
30185 2009-03-04  Bruno Haible  <bruno@clisp.org>
30186
30187         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30188         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30189         AM_CFLAGS.
30190         Reported by Simon Josefsson.
30191
30192 2009-03-03  Bruno Haible  <bruno@clisp.org>
30193
30194         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30195         Reported by Simon Josefsson.
30196
30197         * doc/ld-version-script.texi: Update node reference.
30198
30199 2009-03-03  Bruno Haible  <bruno@clisp.org>
30200
30201         * modules/visibility (License): Change to 'unlimited'.
30202         Suggested by Simon Josefsson.
30203
30204 2009-03-03  Jim Meyering  <meyering@redhat.com>
30205
30206         unlinkdir: cannot_unlink_dir may modify process state
30207         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30208         it's neither thread-safe nor appropriate for use in a library.
30209
30210 2009-03-03  Eric Blake  <ebb9@byu.net>
30211
30212         test-closein: silence test under Darwin
30213         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30214         care if it dies from EPIPE or EBADF.
30215
30216 2009-03-03  Bruno Haible  <bruno@clisp.org>
30217
30218         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30219         earlier.
30220         * doc/visibility.texi: Fix @node and @section.
30221
30222 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30223
30224         * doc/gnulib.texi: Link to sections for ld version script and
30225         visibility.
30226         * doc/visibility.texi: Add @node and @section.
30227         * modules/ld-version-script: New module.
30228         * m4/ld-version-script.m4: New file.
30229         * doc/ld-version-script.texi: New file.
30230
30231 2009-03-02  David Lutterkort  <lutter@redhat.com>
30232
30233         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30234         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30235
30236 2009-03-02  Bruno Haible  <bruno@clisp.org>
30237
30238         * doc/visibility.texi: Mention libtool's -export-symbols option.
30239
30240 2009-03-02  Jim Meyering  <meyering@redhat.com>
30241
30242         announce-gen: new option: --no-print-checksums
30243         * build-aux/announce-gen (usage): Describe it.
30244         (print_checksums): Print a newline here, not in the [*] footnote.
30245         (main): Honor it.
30246
30247 2009-03-01  Bruno Haible  <bruno@clisp.org>
30248
30249         Use socklen_t in the native Windows replacements prototypes.
30250         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30251         instead of 'int'.
30252         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30253         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30254         * modules/getsockopt (Depends-on): Add socklen.
30255         * modules/setsockopt (Depends-on): Add socklen.
30256
30257 2009-03-01  Bruno Haible  <bruno@clisp.org>
30258
30259         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30260         least 4.2.
30261
30262 2009-03-01  Eric Blake  <ebb9@byu.net>
30263             Bruno Haible  <bruno@clisp.org>
30264
30265         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30266         error messages.
30267         * lib/wait-process.c (wait_subprocess): Omit error message about
30268         deadly signal sent to the child of termsigp != NULL.
30269
30270 2009-03-01  Eric Blake  <ebb9@byu.net>
30271
30272         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30273
30274 2009-03-01  Bruno Haible  <bruno@clisp.org>
30275
30276         Avoid a gcc warning.
30277         * tests/test-sched.c (b): Make global.
30278         Reported by Eric Blake.
30279
30280 2009-01-19  Martin Lambers  <marlam@marlam.de>
30281
30282         Provide POSIX semantics for socket timeout options on W32.
30283         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30284         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30285         * modules/setsockopt: Depend on sys_time module for struct timeval.
30286         * modules/getsockopt: Depend on sys_time module for struct timeval.
30287
30288 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30289
30290         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30291         __USE_GNU, for consistency with netdb.in.h.
30292         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30293
30294 2009-03-01  Bruno Haible  <bruno@clisp.org>
30295
30296         More support for FreeMiNT.
30297         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30298         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30299
30300 2009-03-01  Bruno Haible  <bruno@clisp.org>
30301
30302         More support for FreeMiNT.
30303         * lib/fpurge.c (fpurge): Correct last commit.
30304         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30305
30306 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30307
30308         Fix unportable awk script in vc-list-files.
30309         * build-aux/vc-list-files: In the replacement awk script, use
30310         substr with a second argument of 1, not zero.
30311         Report by Simon Josefsson.
30312
30313 2009-02-28  Bruno Haible  <bruno@clisp.org>
30314
30315         More support for FreeMiNT.
30316         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30317         to FreeMiNT today.
30318         * lib/fwriting.c (fwriting): Likewise.
30319         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30320
30321 2009-02-28  Bruno Haible  <bruno@clisp.org>
30322
30323         * tests/test-freadseek.c (main): Disable test beyond end of file on
30324         FreeMiNT.
30325         * tests/test-ftello.c (main): Likewise.
30326         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30327
30328 2009-02-28  Bruno Haible  <bruno@clisp.org>
30329
30330         Add tentative support for FreeMiNT.
30331         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30332         * lib/fpurge.c (fpurge): Likewise.
30333         * lib/freadable.c (freadable): Likewise.
30334         * lib/freading.c (freading): Likewise.
30335         * lib/freadptr.c (freadptr): Likewise.
30336         * lib/freadseek.c (freadptrinc): Likewise.
30337         * lib/fseeko.c (rpl_fseeko): Likewise.
30338         * lib/fseterr.c (fseterr): Likewise.
30339         * lib/fwritable.c (fwritable): Likewise.
30340         * lib/fwriting.c (fwriting): Likewise.
30341         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30342         Hourihane.
30343         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30344
30345 2009-02-28  Bruno Haible  <bruno@clisp.org>
30346
30347         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30348         SIGCHLD.
30349         Reported by Jim Meyering.
30350
30351 2009-02-28  Bruno Haible  <bruno@clisp.org>
30352
30353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30354         Mention the results of these tests on various platforms.
30355         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30356         order.
30357         * doc/posix-functions/printf.texi: Likewise.
30358         * doc/posix-functions/snprintf.texi: Likewise.
30359         * doc/posix-functions/sprintf.texi: Likewise.
30360         * doc/posix-functions/vfprintf.texi: Likewise.
30361         * doc/posix-functions/vprintf.texi: Likewise.
30362         * doc/posix-functions/vsnprintf.texi: Likewise.
30363         * doc/posix-functions/vsprintf.texi: Likewise.
30364         * doc/glibc-functions/obstack_printf.texi: Likewise.
30365         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30366
30367 2009-02-28  Bruno Haible  <bruno@clisp.org>
30368
30369         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30370         Reported by Loïc Minier <lool@dooz.org>.
30371
30372 2009-02-27  Bruno Haible  <bruno@clisp.org>
30373
30374         * gnulib-tool (func_import): Make the sed expression used to create the
30375         sed script for updating the .gitignore file POSIX compliant.
30376         Reported by Eric Blake.
30377
30378 2009-02-27  Bruno Haible  <bruno@clisp.org>
30379
30380         * gnulib-tool (sed): Don't alias as "sed --posix".
30381         Reported by Eric Blake.
30382
30383 2009-02-27  Bruno Haible  <bruno@clisp.org>
30384
30385         Avoid test link errors.
30386         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30387         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30388         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30389         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30390         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30391
30392 2009-02-27  Bruno Haible  <bruno@clisp.org>
30393
30394         Avoid spurious "(cached)" in configure output.
30395         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30396         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30397         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30398         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30399         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30400         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30401         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30402         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30403         Reported by Eric Blake.
30404
30405 2009-02-27  Eric Blake  <ebb9@byu.net>
30406
30407         printf: fix regression in previous patch
30408         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30409
30410 2009-02-27  Bruno Haible  <bruno@clisp.org>
30411
30412         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30413         value.
30414         * lib/stdint.in.h: Likewise.
30415         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30416
30417 2009-02-27  Eric Blake  <ebb9@byu.net>
30418
30419         doc: mention more functions added in cygwin 1.7.0
30420         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30421         addition.
30422         * doc/posix-functions/open_wmemstream.texi: Likewise.
30423         * doc/posix-functions/wcsnlen.texi: Likewise.
30424         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30425         * doc/posix-functions/wcstod.texi: Likewise.
30426         * doc/posix-functions/wcstof.texi: Likewise.
30427         * doc/posix-functions/wcstoimax.texi: Likewise.
30428         * doc/posix-functions/wcstok.texi: Likewise.
30429         * doc/posix-functions/wcstoumax.texi: Likewise.
30430
30431         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30432         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30433         * doc/posix-functions/fprintf.texi: Update.
30434         * doc/posix-functions/printf.texi: Update.
30435         * doc/posix-functions/snprintf.texi: Update.
30436         * doc/posix-functions/sprintf.texi: Update.
30437         * doc/posix-functions/vfprintf.texi: Update.
30438         * doc/posix-functions/vprintf.texi: Update.
30439         * doc/posix-functions/vsnprintf.texi: Update.
30440         * doc/posix-functions/vsprintf.texi: Update.
30441         * doc/glibc-functions/obstack_printf.texi: Update.
30442         * doc/glibc-functions/obstack_vprintf.texi: Update.
30443
30444 2009-02-26  Eric Blake  <ebb9@byu.net>
30445
30446         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30447         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30448         compilation bug by using runtime conversion.
30449         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30450         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30451         * modules/ceill-tests (Files): Use nan.h.
30452         * modules/floorl-tests (Files): Likewise.
30453         * modules/frexpl-tests (Files): Likewise.
30454         * modules/isnanl-tests (Files): Likewise.
30455         * modules/ldexpl-tests (Files): Likewise.
30456         * modules/roundl-tests (Files): Likewise.
30457         * modules/truncl-tests (Files): Likewise.
30458         * tests/test-ceill.c (main): Use a working NaN.
30459         * tests/test-floorl.c (main): Likewise.
30460         * tests/test-frexpl.c (main): Likewise.
30461         * tests/test-isnan.c (test_long_double): Likewise.
30462         * tests/test-isnanl.h (main): Likewise.
30463         * tests/test-ldexpl.h (main): Likewise.
30464         * tests/test-roundl.h (main): Likewise.
30465         * tests/test-truncl.h (main): Likewise.
30466         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30467
30468 2009-02-26  Eric Blake  <ebb9@byu.net>
30469             Bruno Haible  <bruno@clisp.org>
30470
30471         Work around a *printf bug with %ls on Solaris.
30472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30473         precision is specified, sprintf stops converting the wide string
30474         argument when the number of bytes that have been produced by this
30475         conversion equals or exceeds the precision.
30476         * doc/posix-functions/fprintf.texi: Update.
30477         * doc/posix-functions/printf.texi: Update.
30478         * doc/posix-functions/snprintf.texi: Update.
30479         * doc/posix-functions/sprintf.texi: Update.
30480         * doc/posix-functions/vfprintf.texi: Update.
30481         * doc/posix-functions/vprintf.texi: Update.
30482         * doc/posix-functions/vsnprintf.texi: Update.
30483         * doc/posix-functions/vsprintf.texi: Update.
30484         * doc/glibc-functions/obstack_printf.texi: Update.
30485         * doc/glibc-functions/obstack_vprintf.texi: Update.
30486
30487 2009-02-26  Eric Blake  <ebb9@byu.net>
30488
30489         stdlib: favor compiler check of random.h
30490         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30491         to avoid an ObjC random.h installed by Swarm.
30492
30493 2009-02-26  Bruno Haible  <bruno@clisp.org>
30494
30495         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30496         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30497         Reported by Gary V. Vaughan <gary@gnu.org>.
30498
30499 2009-02-26  Bruno Haible  <bruno@clisp.org>
30500
30501         Fix *printf behaviour regarding the %ls directive.
30502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30503         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30504         NEED_PRINTF_DIRECTIVE_LS.
30505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30506         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30507         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30508         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30509         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30510         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30511         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30516         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30520         * doc/posix-functions/fprintf.texi: Update.
30521         * doc/posix-functions/printf.texi: Update.
30522         * doc/posix-functions/snprintf.texi: Update.
30523         * doc/posix-functions/sprintf.texi: Update.
30524         * doc/posix-functions/vfprintf.texi: Update.
30525         * doc/posix-functions/vprintf.texi: Update.
30526         * doc/posix-functions/vsnprintf.texi: Update.
30527         * doc/posix-functions/vsprintf.texi: Update.
30528         * doc/glibc-functions/obstack_printf.texi: Update.
30529         * doc/glibc-functions/obstack_vprintf.texi: Update.
30530         Reported by Eric Blake.
30531
30532 2009-02-25  Bruno Haible  <bruno@clisp.org>
30533
30534         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30535         with known value.
30536         Reported by Gary V. Vaughan <gary@gnu.org>.
30537
30538 2009-02-25  Bruno Haible  <bruno@clisp.org>
30539
30540         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30541         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30542         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30543         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30544         Reported by Gary V. Vaughan <gary@gnu.org>.
30545
30546 2009-02-25  Bruno Haible  <bruno@clisp.org>
30547
30548         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30549         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30550         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30551         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30552         Reported by Gary V. Vaughan <gary@gnu.org>.
30553
30554 2009-02-25  Eric Blake  <ebb9@byu.net>
30555
30556         tests: skip fseek/ftell tests if ungetc is broken
30557         * m4/ungetc.m4: New file.
30558         * modules/fseek-tests: Split test, so ungetc dependency is
30559         separate from rest of test.
30560         * modules/fseeko-tests: Likewise.
30561         * modules/ftell-tests: Likewise.
30562         * modules/ftello-tests: Likewise.
30563         * tests/test-fseek.c (main): Isolate ungetc dependency.
30564         * tests/test-fseeko.c (main): Likewise.
30565         * tests/test-ftell.c (main): Likewise.
30566         * tests/test-ftello.c (main): Likewise.
30567         * tests/test-fseek2.sh: New file.
30568         * tests/test-fseeko2.sh: Likewise.
30569         * tests/test-ftell2.sh: Likewise.
30570         * tests/test-ftello2.sh: Likewise.
30571
30572 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
30573
30574         test-getaddrinfo: fix usage of skip return code 77
30575         * tests/test-gettaddrinfo.c: Return skip code 77 only
30576         for first occurance of skip (4x77 is not 77)
30577
30578 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30579
30580         strtod: avoid C99 decl-after-statement
30581         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30582
30583 2009-02-24  Eric Blake  <ebb9@byu.net>
30584
30585         strtod: detect HP-UX 11.31 bug
30586         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30587         Reported by Gary V. Vaughan.
30588
30589 2009-02-23  Bruno Haible  <bruno@clisp.org>
30590
30591         Fix invalid read past end of memory block.
30592         * lib/vasnprintf.c (DCHAR_SET): Define.
30593         (local_wcslen): Define only when needed.
30594         (local_strnlen, local_wcsnlen): New functions.
30595         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30596         directives that involve a conversion ourselves.
30597         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30598         wcsnlen, mbrtowc, wcrtomb.
30599         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30600         * tests/test-vasprintf-posix.c (test_function): Likewise.
30601         * tests/test-snprintf-posix.h (test_function): Likewise.
30602         * tests/test-sprintf-posix.h (test_function): Likewise.
30603         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30604
30605 2009-02-22  Bruno Haible  <bruno@clisp.org>
30606
30607         Implement new clarified decomposition of Hangul syllables.
30608         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30609         of type LTV, return only a pairwise decomposition.
30610         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30611         Likewise.
30612         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30613         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30614         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30615
30616 2009-02-22  Bruno Haible  <bruno@clisp.org>
30617
30618         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30619         zero-length results and shrink excess allocated memory.
30620         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30621         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30622         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30623         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30624         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30625         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30626         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30627         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30628         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30629         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30630         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30631         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30632
30633 2009-02-21  Bruno Haible  <bruno@clisp.org>
30634
30635         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30636         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30637         spaces after a period. Put a space between a macro name and its
30638         argument list. Trivial rewordings.
30639         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30640         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30641         (main): Return 0 explicitly.
30642
30643 2009-02-21  Bruno Haible  <bruno@clisp.org>
30644
30645         Tests for module 'uninorm/filter'.
30646         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30647         * modules/uninorm/filter-tests: New file.
30648
30649         New module 'uninorm/filter'.
30650         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30651         uninorm_filter_flush, uninorm_filter_free): New declarations.
30652         * lib/uninorm/uninorm-filter.c: New file.
30653         * modules/uninorm/filter: New file.
30654
30655 2009-02-21  Bruno Haible  <bruno@clisp.org>
30656
30657         Tests for module 'uninorm/nfkc'.
30658         * tests/uninorm/test-nfkc.c: New file.
30659         * tests/uninorm/test-u8-nfkc.c: New file.
30660         * tests/uninorm/test-u16-nfkc.c: New file.
30661         * tests/uninorm/test-u32-nfkc.c: New file.
30662         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30663         * tests/uninorm/test-u32-nfkc-big.c: New file.
30664         * modules/uninorm/nfkc-tests: New file.
30665
30666         New module 'uninorm/nfkc'.
30667         * lib/uninorm/nfkc.c: New file.
30668         * modules/uninorm/nfkc: New file.
30669
30670         Tests for module 'uninorm/nfkd'.
30671         * tests/uninorm/test-nfkd.c: New file.
30672         * tests/uninorm/test-u8-nfkd.c: New file.
30673         * tests/uninorm/test-u16-nfkd.c: New file.
30674         * tests/uninorm/test-u32-nfkd.c: New file.
30675         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30676         * tests/uninorm/test-u32-nfkd-big.c: New file.
30677         * modules/uninorm/nfkd-tests: New file.
30678
30679         New module 'uninorm/nfkd'.
30680         * lib/uninorm/nfkd.c: New file.
30681         * modules/uninorm/nfkd: New file.
30682
30683         Tests for module 'uninorm/nfc'.
30684         * tests/uninorm/test-nfc.c: New file.
30685         * tests/uninorm/test-u8-nfc.c: New file.
30686         * tests/uninorm/test-u16-nfc.c: New file.
30687         * tests/uninorm/test-u32-nfc.c: New file.
30688         * tests/uninorm/test-u32-nfc-big.sh: New file.
30689         * tests/uninorm/test-u32-nfc-big.c: New file.
30690         * modules/uninorm/nfc-tests: New file.
30691
30692         New module 'uninorm/nfc'.
30693         * lib/uninorm/nfc.c: New file.
30694         * modules/uninorm/nfc: New file.
30695
30696         Tests for module 'uninorm/nfd'.
30697         * tests/uninorm/test-nfd.c: New file.
30698         * tests/uninorm/test-u8-nfd.c: New file.
30699         * tests/uninorm/test-u16-nfd.c: New file.
30700         * tests/uninorm/test-u32-nfd.c: New file.
30701         * tests/uninorm/test-u32-nfd-big.sh: New file.
30702         * tests/uninorm/test-u32-nfd-big.c: New file.
30703         * tests/uninorm/test-u32-normalize-big.h: New file.
30704         * tests/uninorm/test-u32-normalize-big.c: New file.
30705         * tests/uninorm/NormalizationTest.txt: New file, created from
30706         Unicode 5.1.0 NormalizationTest.txt.
30707         * modules/uninorm/nfd-tests: New file.
30708
30709         New module 'uninorm/nfd'.
30710         * lib/uninorm/nfd.c: New file.
30711         * modules/uninorm/nfd: New file.
30712
30713         New module 'uninorm/u32-normalize'.
30714         * lib/uninorm/u32-normalize.c: New file.
30715         * modules/uninorm/u32-normalize: New file.
30716
30717         New module 'uninorm/u16-normalize'.
30718         * lib/uninorm/u16-normalize.c: New file.
30719         * modules/uninorm/u16-normalize: New file.
30720
30721         New module 'uninorm/u8-normalize'.
30722         * lib/uninorm/u8-normalize.c: New file.
30723         * lib/uninorm/normalize-internal.h: New file.
30724         * lib/uninorm/u-normalize-internal.h: New file.
30725         * modules/uninorm/u8-normalize: New file.
30726
30727         New module 'uninorm/decompose-internal'.
30728         * lib/uninorm/decompose-internal.c: New file.
30729         * modules/uninorm/decompose-internal: New file.
30730
30731         Tests for module 'uninorm/composition'.
30732         * tests/uninorm/test-composition.c: New file.
30733         * modules/uninorm/composition-tests: New file.
30734
30735         New module 'uninorm/composition'.
30736         * lib/uninorm/composition.c: New file.
30737         * lib/uninorm/composition-table.gperf: New file, generated by
30738         gen-uni-tables.
30739         * modules/uninorm/composition: New file.
30740
30741         Tests for module 'uninorm/compat-decomposition'.
30742         * tests/uninorm/test-compat-decomposition.c: New file.
30743         * modules/uninorm/compat-decomposition-tests: New file.
30744
30745         New module 'uninorm/compat-decomposition'.
30746         * lib/uninorm/decompose-internal.h: New file.
30747         * lib/uninorm/compat-decomposition.c: New file.
30748         * modules/uninorm/compat-decomposition: New file.
30749
30750         Tests for module 'uninorm/canonical-decomposition'.
30751         * tests/uninorm/test-canonical-decomposition.c: New file.
30752         * modules/uninorm/canonical-decomposition-tests: New file.
30753
30754         New module 'uninorm/canonical-decomposition'.
30755         * lib/uninorm/canonical-decomposition.c: New file.
30756         * modules/uninorm/canonical-decomposition: New file.
30757
30758         Tests for module 'uninorm/decomposition'.
30759         * tests/uninorm/test-decomposition.c: New file.
30760         * modules/uninorm/decomposition-tests: New file.
30761
30762         New module 'uninorm/decomposition'.
30763         * lib/uninorm/decomposition.c: New file.
30764         * modules/uninorm/decomposition: New file.
30765
30766         New module 'uninorm/decomposition-table'.
30767         * lib/uninorm/decomposition-table.h: New file.
30768         * lib/uninorm/decomposition-table.c: New file.
30769         * lib/uninorm/decomposition-table1.h: New file, generated by
30770         gen-uni-tables.
30771         * lib/uninorm/decomposition-table2.h: New file, generated by
30772         gen-uni-tables.
30773         * modules/uninorm/decomposition-table: New file.
30774
30775         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30776         (UC_DECOMP_*): New enumeration items.
30777         (get_decomposition): New function.
30778         (struct decomp_table): New type.
30779         (output_decomposition, output_decomposition_tables): New functions.
30780         (unicode_composition_exclusions): New variable.
30781         (fill_composition_exclusions, debug_output_composition_tables): New
30782         functions.
30783         (main): Accept one more argument. Invoke fill_composition_exclusions.
30784         Output decomposition and composition tables.
30785
30786         New module 'uninorm/base'.
30787         * lib/uninorm.h: New file.
30788         * lib/unictype.h: Update comment.
30789         * modules/uninorm/base: New file.
30790
30791 2009-02-21  David Lutterkort  <lutter@redhat.com>
30792
30793         Tests for module 'safe-alloc'.
30794         * tests/test-safe-alloc.c: New file.
30795         * modules/safe-alloc-tests: New file.
30796
30797         New module 'safe-alloc'.
30798         * lib/safe-alloc.h: New file.
30799         * lib/safe-alloc.c: New file.
30800         * m4/safe-alloc.m4: New file.
30801         * modules/safe-alloc: New file.
30802         * doc/safe-alloc.texi: New file.
30803         * doc/gnulib.texi: Include it.
30804         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30805         safe-alloc.
30806
30807 2009-02-18  Bruno Haible  <bruno@clisp.org>
30808
30809         Fix link error on non-glibc systems.
30810         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30811         variable.
30812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30813
30814 2009-02-18  Jim Meyering  <meyering@redhat.com>
30815
30816         fts: avoid used-uninitialized error due to recent change
30817         * lib/fts.c (fts_read): Guard uses of the new member,
30818         parent->fts_n_dirs_remaining, since it's not relevant for
30819         the parent of a directory specified on the command-line.
30820
30821 2009-02-17  James Youngman  <jay@gnu.org>
30822             Bruno Haible  <bruno@clisp.org>
30823
30824         * m4/include_next.m4: Reformulate comment.
30825
30826 2009-02-16  Jim Meyering  <meyering@redhat.com>
30827
30828         fts: add #if guards so that the fts_lgpl module still builds
30829         * lib/fts.c: Guard just-added hash-table-using parts with
30830         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30831         Reported by Simon Josefsson.
30832
30833 2009-02-15  Bruno Haible  <bruno@clisp.org>
30834
30835         * modules/array-mergesort-tests: New file.
30836         * tests/test-array-mergesort.c: New file.
30837
30838         New module 'array-mergesort'.
30839         * modules/array-mergesort: New file.
30840         * lib/array-mergesort.h: New file.
30841
30842 2009-02-15  Bruno Haible  <bruno@clisp.org>
30843
30844         Fix 2009-02-07 commit.
30845         * lib/gen-uni-tables.c (output_predicate, output_category,
30846         output_combclass, output_bidi_category, output_decimal_digit,
30847         output_digit, output_numeric, output_mirror, output_scripts,
30848         output_ident_category, output_simple_mapping): Fix format directives.
30849         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30850
30851 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30852
30853         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30854         fixes are available from IBM.
30855
30856 2009-02-13  Jim Meyering  <meyering@redhat.com>
30857
30858         fts: arrange not to stat non-directories in more cases
30859         This makes GNU find (when it doesn't need to stat each file)
30860         *much* more efficient at traversing reiserfs file systems.
30861         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30862         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30863         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30864         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30865         (leaf_optimization_applies): New function.
30866         (LCO_hash, LCO_compare): New helper functions.
30867         (link_count_optimize_ok): New function.
30868         (fts_stat): Initialize new member (if dir).
30869         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30870         we've just stat'ed a directory.  Skip the stat call when possible.
30871         ---
30872         Note this AFS-related exchange:
30873         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30874         and note find's pioctl call in find/fstype.c.
30875         But that is necessary only if you want to enable the
30876         optimization for AFS, and for now, I don't.
30877
30878         fts: move a function definition "up" (no semantic change)
30879         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30880         "up" to precede upcoming use of a related function.
30881
30882 2009-02-11  Jim Meyering  <meyering@redhat.com>
30883
30884         fts: correct internal computation of nlinks (optimization-related)
30885         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30886         whether the current entry is a directory, so don't test it.
30887
30888 2009-02-10  Bruno Haible  <bruno@clisp.org>
30889
30890         Tests for module 'uniwbrk/ulc-wordbreaks'.
30891         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30892         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30893         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30894
30895         Tests for module 'uniwbrk/u32-wordbreaks'.
30896         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30897         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30898
30899         Tests for module 'uniwbrk/u16-wordbreaks'.
30900         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30901         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30902
30903         Tests for module 'uniwbrk/u8-wordbreaks'.
30904         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30905         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30906
30907 2009-02-10  Bruno Haible  <bruno@clisp.org>
30908
30909         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30910         property.
30911         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30912         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30913         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30914
30915 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30916
30917         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30918         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30919
30920 2009-02-10  Bruno Haible  <bruno@clisp.org>
30921
30922         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30923         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30924         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30925         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30926         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30927         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30928
30929 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30930
30931         * lib/sockets.h (gl_fd_to_handle): New function.
30932
30933         * tests/test-sockets.c: Call gl_fd_to_handle.
30934
30935 2009-02-09  Bruno Haible  <bruno@clisp.org>
30936
30937         * doc/havelib.texi: Document the conventions on bi-arch systems.
30938
30939 2009-02-08  Bruno Haible  <bruno@clisp.org>
30940
30941         Document the AC_LIB_LINKFLAGS macro.
30942         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30943         * doc/gnulib.texi: Include it.
30944
30945 2009-02-08  Bruno Haible  <bruno@clisp.org>
30946
30947         Fix wrong order of sections, compared to TOC.
30948         * doc/gnulib.texi: Include relocatable-maint.texi after the
30949         "Regular expressions" node, not before.
30950
30951 2009-02-08  Bruno Haible  <bruno@clisp.org>
30952
30953         Tests for module 'unicase/totitle'.
30954         * modules/unicase/totitle-tests: New file.
30955
30956         Tests for module 'unicase/tolower'.
30957         * modules/unicase/tolower-tests: New file.
30958
30959         Tests for module 'unicase/toupper'.
30960         * modules/unicase/toupper-tests: New file.
30961         * tests/unicase/test-mapping-part1.h: New file.
30962         * tests/unicase/test-mapping-part2.h: New file.
30963
30964         New module 'unicase/totitle'.
30965         * modules/unicase/totitle: New file.
30966         * lib/unicase/totitle.c: New file.
30967
30968         New module 'unicase/tolower'.
30969         * modules/unicase/tolower: New file.
30970         * lib/unicase/tolower.c: New file.
30971
30972         New module 'unicase/toupper'.
30973         * modules/unicase/toupper: New file.
30974         * lib/unicase/toupper.c: New file.
30975         * lib/unicase/simple-mapping.h: New file.
30976
30977         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30978         (mapping_table): New structure.
30979         (output_simple_mapping): New function.
30980         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30981         * modules/gen-uni-tables (Description): Update.
30982         * lib/unicase/toupper.h: New file, automatically generated by
30983         gen-uni-tables.
30984         * lib/unicase/tolower.h: New file, automatically generated by
30985         gen-uni-tables.
30986         * lib/unicase/totitle.h: New file, automatically generated by
30987         gen-uni-tables.
30988         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30989         gen-uni-tables.
30990         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30991         gen-uni-tables.
30992         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30993         gen-uni-tables.
30994
30995         New module 'unicase/base'.
30996         * modules/unicase/base: New file.
30997         * lib/unicase.h: New file.
30998
30999 2009-02-08  Bruno Haible  <bruno@clisp.org>
31000
31001         New module 'uniwbrk/ulc-wordbreaks'.
31002         * modules/uniwbrk/ulc-wordbreaks: New file.
31003         * lib/uniwbrk/ulc-wordbreaks.c: New file.
31004
31005         New module 'uniwbrk/u32-wordbreaks'.
31006         * modules/uniwbrk/u32-wordbreaks: New file.
31007         * lib/uniwbrk/u32-wordbreaks.c: New file.
31008
31009         New module 'uniwbrk/u16-wordbreaks'.
31010         * modules/uniwbrk/u16-wordbreaks: New file.
31011         * lib/uniwbrk/u16-wordbreaks.c: New file.
31012
31013         New module 'uniwbrk/u8-wordbreaks'.
31014         * modules/uniwbrk/u8-wordbreaks: New file.
31015         * lib/uniwbrk/u8-wordbreaks.c: New file.
31016         * lib/uniwbrk/u-wordbreaks.h: New file.
31017
31018         New module 'uniwbrk/table'.
31019         * modules/uniwbrk/table: New file.
31020         * lib/uniwbrk/wbrktable.h: New file.
31021         * lib/uniwbrk/wbrktable.c: New file.
31022
31023         New module 'uniwbrk/wordbreak-property'.
31024         * modules/uniwbrk/wordbreak-property: New file.
31025         * lib/uniwbrk/wordbreak-property.c: New file.
31026
31027         * lib/gen-uni-tables.c (WBP_*): New enum items.
31028         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
31029         (unicode_org_wbp): New variable.
31030         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
31031         New functions.
31032         (wbp_table): New structure.
31033         (output_wbp, output_wbrk_tables): New functions.
31034         (main): Accept additional argument. Invoke fill_org_wbp,
31035         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
31036         output_wbrk_tables.
31037         * modules/gen-uni-tables (Description): Update.
31038         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
31039         gen-uni-tables.
31040
31041         New module 'uniwbrk/base'.
31042         * modules/uniwbrk/base: New file.
31043         * lib/uniwbrk.h: New file.
31044
31045 2009-02-08  Bruno Haible  <bruno@clisp.org>
31046
31047         Update to Unicode 5.1.0.
31048         * lib/gen-uni-tables.c (is_property_alphabetic): Include
31049         U+2185..U+2188.
31050         (is_property_default_ignorable_code_point): Don't include characters
31051         of category Cc or Cs and not-a-characters.
31052         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
31053         U+0D79, U+109E, U+109F, U+A60C.
31054         * lib/unictype/bidi_of.h: Regenerated.
31055         * lib/unictype/blocks.h: Regenerated.
31056         * lib/unictype/categ_C.h: Regenerated.
31057         * lib/unictype/categ_Cf.h: Regenerated.
31058         * lib/unictype/categ_Cn.h: Regenerated.
31059         * lib/unictype/categ_L.h: Regenerated.
31060         * lib/unictype/categ_Ll.h: Regenerated.
31061         * lib/unictype/categ_Lm.h: Regenerated.
31062         * lib/unictype/categ_Lo.h: Regenerated.
31063         * lib/unictype/categ_Lu.h: Regenerated.
31064         * lib/unictype/categ_M.h: Regenerated.
31065         * lib/unictype/categ_Mc.h: Regenerated.
31066         * lib/unictype/categ_Me.h: Regenerated.
31067         * lib/unictype/categ_Mn.h: Regenerated.
31068         * lib/unictype/categ_N.h: Regenerated.
31069         * lib/unictype/categ_Nd.h: Regenerated.
31070         * lib/unictype/categ_Nl.h: Regenerated.
31071         * lib/unictype/categ_No.h: Regenerated.
31072         * lib/unictype/categ_P.h: Regenerated.
31073         * lib/unictype/categ_Pd.h: Regenerated.
31074         * lib/unictype/categ_Pe.h: Regenerated.
31075         * lib/unictype/categ_Pf.h: Regenerated.
31076         * lib/unictype/categ_Pi.h: Regenerated.
31077         * lib/unictype/categ_Po.h: Regenerated.
31078         * lib/unictype/categ_Ps.h: Regenerated.
31079         * lib/unictype/categ_S.h: Regenerated.
31080         * lib/unictype/categ_Sk.h: Regenerated.
31081         * lib/unictype/categ_Sm.h: Regenerated.
31082         * lib/unictype/categ_So.h: Regenerated.
31083         * lib/unictype/categ_of.h: Regenerated.
31084         * lib/unictype/combining.h: Regenerated.
31085         * lib/unictype/ctype_alnum.h: Regenerated.
31086         * lib/unictype/ctype_alpha.h: Regenerated.
31087         * lib/unictype/ctype_graph.h: Regenerated.
31088         * lib/unictype/ctype_lower.h: Regenerated.
31089         * lib/unictype/ctype_print.h: Regenerated.
31090         * lib/unictype/ctype_punct.h: Regenerated.
31091         * lib/unictype/ctype_upper.h: Regenerated.
31092         * lib/unictype/decdigit.h: Regenerated.
31093         * lib/unictype/digit.h: Regenerated.
31094         * lib/unictype/mirror.h: Regenerated.
31095         * lib/unictype/numeric.h: Regenerated.
31096         * lib/unictype/pr_alphabetic.h: Regenerated.
31097         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31098         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31099         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31100         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31101         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31102         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31103         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31104         * lib/unictype/pr_combining.h: Regenerated.
31105         * lib/unictype/pr_dash.h: Regenerated.
31106         * lib/unictype/pr_decimal_digit.h: Regenerated.
31107         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31108         * lib/unictype/pr_deprecated.h: Regenerated.
31109         * lib/unictype/pr_diacritic.h: Regenerated.
31110         * lib/unictype/pr_extender.h: Regenerated.
31111         * lib/unictype/pr_format_control.h: Regenerated.
31112         * lib/unictype/pr_grapheme_base.h: Regenerated.
31113         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31114         * lib/unictype/pr_grapheme_link.h: Regenerated.
31115         * lib/unictype/pr_id_continue.h: Regenerated.
31116         * lib/unictype/pr_id_start.h: Regenerated.
31117         * lib/unictype/pr_ideographic.h: Regenerated.
31118         * lib/unictype/pr_ignorable_control.h: Regenerated.
31119         * lib/unictype/pr_lowercase.h: Regenerated.
31120         * lib/unictype/pr_math.h: Regenerated.
31121         * lib/unictype/pr_numeric.h: Regenerated.
31122         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31123         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31124         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31125         * lib/unictype/pr_other_id_continue.h: Regenerated.
31126         * lib/unictype/pr_other_lowercase.h: Regenerated.
31127         * lib/unictype/pr_other_math.h: Regenerated.
31128         * lib/unictype/pr_punctuation.h: Regenerated.
31129         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31130         * lib/unictype/pr_soft_dotted.h: Regenerated.
31131         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31132         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31133         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31134         * lib/unictype/pr_uppercase.h: Regenerated.
31135         * lib/unictype/pr_xid_continue.h: Regenerated.
31136         * lib/unictype/pr_xid_start.h: Regenerated.
31137         * lib/unictype/pr_zero_width.h: Regenerated.
31138         * lib/unictype/scripts.h: Regenerated.
31139         * lib/unictype/scripts_byname.gperf: Regenerated.
31140         * lib/unictype/sy_java_ident.h: Regenerated.
31141         * lib/unilbrk/lbrkprop1.h: Regenerated.
31142         * lib/unilbrk/lbrkprop2.h: Regenerated.
31143         * tests/unictype/test-categ_C.c: Regenerated.
31144         * tests/unictype/test-categ_Cf.c: Regenerated.
31145         * tests/unictype/test-categ_Cn.c: Regenerated.
31146         * tests/unictype/test-categ_L.c: Regenerated.
31147         * tests/unictype/test-categ_Ll.c: Regenerated.
31148         * tests/unictype/test-categ_Lm.c: Regenerated.
31149         * tests/unictype/test-categ_Lo.c: Regenerated.
31150         * tests/unictype/test-categ_Lu.c: Regenerated.
31151         * tests/unictype/test-categ_M.c: Regenerated.
31152         * tests/unictype/test-categ_Mc.c: Regenerated.
31153         * tests/unictype/test-categ_Me.c: Regenerated.
31154         * tests/unictype/test-categ_Mn.c: Regenerated.
31155         * tests/unictype/test-categ_N.c: Regenerated.
31156         * tests/unictype/test-categ_Nd.c: Regenerated.
31157         * tests/unictype/test-categ_Nl.c: Regenerated.
31158         * tests/unictype/test-categ_No.c: Regenerated.
31159         * tests/unictype/test-categ_P.c: Regenerated.
31160         * tests/unictype/test-categ_Pd.c: Regenerated.
31161         * tests/unictype/test-categ_Pe.c: Regenerated.
31162         * tests/unictype/test-categ_Pf.c: Regenerated.
31163         * tests/unictype/test-categ_Pi.c: Regenerated.
31164         * tests/unictype/test-categ_Po.c: Regenerated.
31165         * tests/unictype/test-categ_Ps.c: Regenerated.
31166         * tests/unictype/test-categ_S.c: Regenerated.
31167         * tests/unictype/test-categ_Sk.c: Regenerated.
31168         * tests/unictype/test-categ_Sm.c: Regenerated.
31169         * tests/unictype/test-categ_So.c: Regenerated.
31170         * tests/unictype/test-ctype_alnum.c: Regenerated.
31171         * tests/unictype/test-ctype_alpha.c: Regenerated.
31172         * tests/unictype/test-ctype_graph.c: Regenerated.
31173         * tests/unictype/test-ctype_lower.c: Regenerated.
31174         * tests/unictype/test-ctype_print.c: Regenerated.
31175         * tests/unictype/test-ctype_punct.c: Regenerated.
31176         * tests/unictype/test-ctype_upper.c: Regenerated.
31177         * tests/unictype/test-decdigit.h: Regenerated.
31178         * tests/unictype/test-digit.h: Regenerated.
31179         * tests/unictype/test-numeric.h: Regenerated.
31180         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31181         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31182         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31183         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31184         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31185         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31186         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31187         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31188         * tests/unictype/test-pr_combining.c: Regenerated.
31189         * tests/unictype/test-pr_dash.c: Regenerated.
31190         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31191         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31192         * tests/unictype/test-pr_deprecated.c: Regenerated.
31193         * tests/unictype/test-pr_diacritic.c: Regenerated.
31194         * tests/unictype/test-pr_extender.c: Regenerated.
31195         * tests/unictype/test-pr_format_control.c: Regenerated.
31196         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31197         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31198         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31199         * tests/unictype/test-pr_id_continue.c: Regenerated.
31200         * tests/unictype/test-pr_id_start.c: Regenerated.
31201         * tests/unictype/test-pr_ideographic.c: Regenerated.
31202         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31203         * tests/unictype/test-pr_lowercase.c: Regenerated.
31204         * tests/unictype/test-pr_math.c: Regenerated.
31205         * tests/unictype/test-pr_numeric.c: Regenerated.
31206         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31207         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31208         Regenerated.
31209         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31210         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31211         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31212         * tests/unictype/test-pr_other_math.c: Regenerated.
31213         * tests/unictype/test-pr_punctuation.c: Regenerated.
31214         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31215         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31216         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31217         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31218         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31219         * tests/unictype/test-pr_uppercase.c: Regenerated.
31220         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31221         * tests/unictype/test-pr_xid_start.c: Regenerated.
31222         * tests/unictype/test-pr_zero_width.c: Regenerated.
31223
31224         Update to Unicode 5.1.0.
31225         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31226         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31227         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31228         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31229         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31230         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31231         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31232         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31233         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31234         (nonspacing_table_ind): Update.
31235         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31236
31237         Update to Unicode 5.1.0.
31238         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31239         code transform.
31240         * lib/uniname/uniname.c (unicode_character_name,
31241         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31242         * lib/uniname/uninames.h: Regenerated.
31243         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31244
31245 2009-02-07  Bruno Haible  <bruno@clisp.org>
31246
31247         Merge gen-ctype and gen-lbrk into a single program.
31248         * lib/gen-uni-tables.c: New file, incorporating
31249         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31250         Add directory prefixes to the names of the generated files.
31251         * lib/unictype/gen-ctype.c: Remove file.
31252         * lib/unilbrk/gen-lbrk.c: Remove file.
31253         * modules/gen-uni-tables: New file.
31254         * modules/unictype/gen-ctype: Remove file.
31255         * modules/unilbrk/gen-lbrk: Remove file.
31256
31257 2009-02-07  Bruno Haible  <bruno@clisp.org>
31258
31259         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31260
31261         New module 'unistr/u32-strcoll'.
31262         * modules/unistr/u32-strcoll: New file.
31263         * lib/unistr/u32-strcoll.c: New file.
31264
31265         New module 'unistr/u16-strcoll'.
31266         * modules/unistr/u16-strcoll: New file.
31267         * lib/unistr/u16-strcoll.c: New file.
31268
31269         New module 'unistr/u8-strcoll'.
31270         * modules/unistr/u8-strcoll: New file.
31271         * lib/unistr/u8-strcoll.c: New file.
31272         * lib/unistr/u-strcoll.h: New file.
31273
31274 2009-02-07  Bruno Haible  <bruno@clisp.org>
31275
31276         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31277         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31278         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31279         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31280         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31281         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31282
31283 2009-02-07  Bruno Haible  <bruno@clisp.org>
31284
31285         Make 64-bit clean.
31286         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31287         output_combclass, output_bidi_category, output_decimal_digit,
31288         output_digit, output_numeric, output_mirror, output_scripts,
31289         output_ident_category): Use proper width specifier in format strings.
31290
31291 2009-02-07  Bruno Haible  <bruno@clisp.org>
31292
31293         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31294         failure behaviour.
31295
31296 2009-02-07  Jim Meyering  <meyering@redhat.com>
31297
31298         regex: avoid compilation failure with upcoming gcc-4.4
31299         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31300         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31301         "... error: integer overflow in preprocessor expression".
31302
31303 2009-02-05  Ben Pfaff  <blp@gnu.org>
31304
31305         Fix link errors on Windows when close module is used.
31306         * modules/close: Add $(LIB_CLOSE) to Link section.
31307         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31308         $(LIB_CLOSE) on Windows.
31309
31310 2009-02-05  Jim Meyering  <meyering@redhat.com>
31311
31312         still avoid unused-parameter warnings, but do it cleanly
31313         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31314         (get_fs_usage): Cast to void instead.
31315         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31316         (dev_from_mount_options, read_file_system_list): Cast to void.
31317         Prompted by Bruno Haible.
31318
31319 2009-02-04  Jim Meyering  <meyering@redhat.com>
31320
31321         fsusage.c: correct copyright year
31322         * lib/fsusage.c: Reflect year in which the change is pushed into
31323
31324         avoid misc. warnings
31325         * lib/fsusage.c (UNUSED_PARAM): Define.
31326         (get_fs_usage): Mark parameter "disk" as unused.
31327         * lib/getugroups.c (getgrent): Use "void" in prototype.
31328         * lib/mountlist.c: Mark unused parameters.
31329         (read_file_system_list): Declare a local with "const".
31330         * lib/nanosleep.c (getnow): Declare static.
31331         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31332
31333         dirfd: set errno upon failure
31334         * lib/dirfd.c: Include <errno.h>.
31335         Set errno to ENOTSUP when returning -1.
31336         * modules/dirfd (Depends-on): Add errno.
31337         Suggested by John Kodis <kodis@comcast.net>.
31338
31339 2009-02-01  Bruno Haible  <bruno@clisp.org>
31340
31341         Don't assume sizeof (long) >= sizeof (void *).
31342         * lib/memcmp.c: Include stdint.h.
31343         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31344         srcp2 to 'const byte *'.
31345         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31346         types to uintptr_t.
31347         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31348         * modules/memcmp (Depends-on): Add stdint.
31349         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31350
31351 2009-01-30  Eric Blake  <ebb9@byu.net>
31352
31353         fix more require-before-expand issues
31354         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31355         expand, AC_PROG_AWK.
31356         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31357
31358 2009-01-28  Eric Blake  <ebb9@byu.net>
31359
31360         version-etc: use consistent URL formatting
31361         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31362         Improve formatting.  Use fputs for string without %.
31363
31364 2009-01-28  Jim Meyering  <meyering@redhat.com>
31365
31366         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31367         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31368         "underquoted definition of NAME" from autoconf-2.59.
31369
31370 2009-01-28  Bruno Haible  <bruno@clisp.org>
31371
31372         * doc/gnulib.texi: Add "Obsolete modules" to index.
31373
31374 2009-01-28  Jim Meyering  <meyering@redhat.com>
31375
31376         useless-if-before-free: recognize more variants
31377         * build-aux/useless-if-before-free: Also recognize e.g.,
31378         if (NULL != p) free (p);
31379
31380 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31381
31382         test-getaddrinfo: skip (don't fail) this test when there's no network
31383         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31384         on the presumption that it means you lack network access.
31385
31386 2009-01-26  Jim Meyering  <meyering@redhat.com>
31387
31388         fflush: avoid warnings on modern systems
31389         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31390         pos and result, into scopes where they're used.
31391
31392 2009-01-26  Eric Blake  <ebb9@byu.net>
31393
31394         Silence warning reintroduced by recent extensions patch.
31395         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31396         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31397         autoconf.
31398
31399         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31400         * m4/00gnulib.m4: New file.
31401         * gnulib-tool (func_get_filelist): Always use it.
31402         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31403         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31404
31405 2009-01-25  Bruno Haible  <bruno@clisp.org>
31406
31407         Make test-quotearg work on MacOS X and AIX.
31408         * tests/test-quotearg.sh: New file.
31409         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31410         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31411         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31412         include <libintl.h>.
31413         (fake_locale): Remove variable.
31414         (gettext, dgettext, dcgettext): Remove functions.
31415         (main): Instead of setting a fake locale, set a real locale. Call
31416         textdomain and bindtextdomain.
31417         * modules/quotearg-tests (Files): Add the new files.
31418         (Depends-on): Add gettext, setenv, unsetenv.
31419         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31420         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31421         Augment TESTS_ENVIRONMENT.
31422
31423 2009-01-25  Bruno Haible  <bruno@clisp.org>
31424
31425         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31426         fr_FR.ISO8859-1 locale on MacOS X.
31427         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31428         ja_JP.eucJP locale on MacOS X.
31429         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31430         zh_CN.GB18030 locale on MacOS X.
31431
31432 2009-01-25  Bruno Haible  <bruno@clisp.org>
31433
31434         Avoid link errors on MacOS X 10.3.
31435         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31436         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31437
31438 2009-01-25  Bruno Haible  <bruno@clisp.org>
31439
31440         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31441         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31442         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31443         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31444         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31445         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31446         posix_spawnattr_init, posix_spawnattr_setsigmask,
31447         posix_spawnattr_setflags, posix_spawnattr_destroy.
31448
31449         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31450         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31451         * modules/execute (Files): Remove m4/posix_spawn.m4.
31452         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31453         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31454         posix_spawnattr_init, posix_spawnattr_setsigmask,
31455         posix_spawnattr_setflags, posix_spawnattr_destroy.
31456
31457 2009-01-25  Bruno Haible  <bruno@clisp.org>
31458
31459         * lib/glthread/threadlib.c: Include <stdlib.h>.
31460
31461 2009-01-25  Bruno Haible  <bruno@clisp.org>
31462
31463         * lib/glthread/threadlib.c (dummy): New declaration.
31464
31465 2009-01-25  Bruno Haible  <bruno@clisp.org>
31466
31467         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31468         multibyte characters also for the GB18030 encoding. Don't crash when
31469         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31470
31471 2009-01-25  Bruno Haible  <bruno@clisp.org>
31472
31473         Avoid redefining 'struct random_data' on OSF/1 5.1.
31474         * lib/stdlib.in.h: Include <random.h> if it exists.
31475         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31476         HAVE_RANDOM_H. Include <random.h> when testing whether
31477         'struct random_data' exists.
31478         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31479
31480 2009-01-25  Bruno Haible  <bruno@clisp.org>
31481
31482         Don't install charset.alias on MacOS X >= 10.3.
31483         * lib/localcharset.c (DARWIN7): New macro.
31484         (get_charset_aliases): Hardcode the result for Darwin7.
31485         * modules/localcharset (install-exec-local): Don't install
31486         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31487
31488 2009-01-25  Bruno Haible  <bruno@clisp.org>
31489
31490         Don't install charset.alias on mingw and Cygwin.
31491         * modules/localcharset (install-exec-local): Don't install
31492         charset.alias on mingw and Cygwin, if the file does not yet exist.
31493         The result for these platforms is hardcoded in localcharset.c.
31494
31495 2009-01-25  Bruno Haible  <bruno@clisp.org>
31496
31497         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31498         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31499         before requiring AC_USE_SYSTEM_EXTENSIONS.
31500
31501 2009-01-25  Jim Meyering  <meyering@redhat.com>
31502
31503         c-strtod: avoid warnings
31504         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31505         "assignment discards qualifiers from pointer target type" warnings.
31506
31507 2009-01-24  Bruno Haible  <bruno@clisp.org>
31508
31509         Add support for non-UTF-8 locales on MacOS X.
31510         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31511         canonical encodings. For Darwin 7 and newer, don't map traditional
31512         encodings to UTF-8.
31513         Reported by Vincent Lefevre <vincent@vinc17.org>
31514         at <http://savannah.gnu.org/bugs/?25235>.
31515
31516 2009-01-24  Bruno Haible  <bruno@clisp.org>
31517
31518         * doc/gnulib.texi (Obsolete modules): New section.
31519         Reported by Mike Frysinger <vapier@gentoo.org>.
31520
31521 2009-01-24  Bruno Haible  <bruno@clisp.org>
31522
31523         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31524         (%.dvi): New rule.
31525
31526 2009-01-24  Bruno Haible  <bruno@clisp.org>
31527
31528         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31529         Reported by Eric Blake.
31530
31531 2009-01-24  Bruno Haible  <bruno@clisp.org>
31532
31533         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31534         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31535         Reported by Gary V. Vaughan <gary@gnu.org>.
31536
31537 2009-01-24  Bruno Haible  <bruno@clisp.org>
31538
31539         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31540
31541 2009-01-23  Bruno Haible  <bruno@clisp.org>
31542
31543         Make c-strtod, c-strtold usable in libraries.
31544         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31545         (C_STRTOD): Call strdup instead of xstrdup.
31546         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31547         * modules/c-strtold (Depends-on): Likewise.
31548         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31549         * NEWS: Mention the change.
31550         Reported by Michael Gold <mgold@ncf.ca>.
31551
31552 2009-01-23  Jim Meyering  <meyering@redhat.com>
31553
31554         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31555         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31556         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31557
31558 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31559
31560         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31561         GNU CoreUtils.
31562         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31563         * modules/version-etc (Description): Update.
31564
31565 2009-01-22  Bruno Haible  <bruno@clisp.org>
31566
31567         Cache the C locale object.
31568         * lib/c-strtod.c (c_locale_cache): New variable.
31569         (c_locale): New function.
31570         (C_STRTOD): Use it, and don't call freelocale.
31571         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31572         Suggested by Paolo Bonzini.
31573
31574 2009-01-21  Bruno Haible  <bruno@clisp.org>
31575
31576         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31577         conditions other than overflow.
31578
31579 2009-01-21  Bruno Haible  <bruno@clisp.org>
31580
31581         * lib/c-strtod.c: Include errno.h.
31582         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31583         value from STRTOD_L and STRTOD.
31584
31585 2009-01-21  Bruno Haible  <bruno@clisp.org>
31586         and Jim Meyering  <meyering@redhat.com>
31587
31588         nanosleep: skip configure test (fail it) for apple universal builds
31589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31590         universal builds, assume that nanosleep does not work.
31591         * modules/nanosleep (Depends-on): Add multiarch.
31592
31593         mktime: skip configure test (fail it) for apple universal builds
31594         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31595         universal builds, assume that mktime does not work.
31596         * modules/mktime (Depends-on): Add multiarch.
31597
31598 2009-01-21  Eric Blake  <ebb9@byu.net>
31599
31600         multiarch: avoid expand-before-require warning
31601         * modules/multiarch (configure.ac): Require, rather than expand,
31602         gl_MULTIARCH.
31603         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31604         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31605         enforce that all clients require it.  Partial reversion of
31606         2008-12-29 patch.
31607
31608         error: avoid expand-before-require warning
31609         * modules/errno (configure.ac): Require, rather than expand,
31610         gl_HEADER_ERRNO_H.
31611         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31612         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31613         enforce that all clients require it.
31614
31615         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31616         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31617         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31618         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31619
31620 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31621
31622         Revert:
31623         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31624
31625         regex: do not depend on obsolete modules.
31626         * modules/regex: Remove memcmp and memmove.
31627
31628 2009-01-20  Bruno Haible  <bruno@clisp.org>
31629
31630         Make the 'link' module link on Windows NT 4.
31631         * lib/link.c (_WIN32_WINNT): Don't define.
31632         (CreateHardLinkFuncType): New type.
31633         (CreateHardLinkFunc, initialized): New variables.
31634         (initialize): New function.
31635         (link): Invoke CreateHardLink indirectly through the function pointer.
31636
31637 2009-01-20  Bruno Haible  <bruno@clisp.org>
31638
31639         Fix compilation failure on mingw.
31640         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31641
31642 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31643
31644         * doc/c-strtod.texi: Mention a couple of restrictions.
31645
31646 2009-01-20  Jim Meyering  <meyering@redhat.com>
31647
31648         gettimeofday: move more declarations out of functions
31649         * lib/gettimeofday.c: Move extern declarations of tzset and
31650         gmtime out of containing functions.  Prompted by Bruno Haible.
31651
31652 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31653
31654         regex: do not depend on obsolete modules.
31655         * modules/regex: Remove memcmp and memmove.
31656
31657 2009-01-19  Bruno Haible  <bruno@clisp.org>
31658
31659         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31660         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31661         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31662         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31663         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31664
31665 2009-01-19  Bruno Haible  <bruno@clisp.org>
31666
31667         * tests/test-link.c: Include <errno.h>.
31668         (main): Exit with code 77 when a hard link cannot be created due to
31669         the file system.
31670         * tests/test-link.sh: Skip test when a hard link cannot be created due
31671         to the file system.
31672         Suggested by Eric Blake.
31673
31674 2009-01-19  Martin Lambers  <marlam@marlam.de>
31675
31676         * modules/link-tests: New file.
31677         * tests/test-link.sh: New file.
31678         * tests/test-link.c: New file.
31679
31680 2009-01-19  Eric Blake  <ebb9@byu.net>
31681
31682         doc: mention another function added in cygwin 1.7.0
31683         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31684         Another new function in cygwin 1.7.
31685
31686 2009-01-19  Bruno Haible  <bruno@clisp.org>
31687
31688         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31689         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31690         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31691         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31692         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31693         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31694         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31695         * m4/md4.m4 (gl_MD4): Likewise.
31696         * m4/md5.m4 (gl_MD5): Likewise.
31697         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31698         * m4/sha1.m4 (gl_SHA1): Likewise.
31699         * m4/sha256.m4 (gl_SHA256): Likewise.
31700         * m4/sha512.m4 (gl_SHA512): Likewise.
31701
31702 2009-01-19  Bruno Haible  <bruno@clisp.org>
31703
31704         * modules/uniname/uniname-tests (Depends-on): Add progname.
31705         * tests/uniname/test-uninames.c: Include progname.h.
31706         (main): Call set_program_name.
31707
31708         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31709         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31710         (main): Call set_program_name.
31711
31712         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31713         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31714         (main): Call set_program_name.
31715
31716         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31717         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31718         (main): Call set_program_name.
31719
31720         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31721         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31722         (main): Call set_program_name.
31723
31724         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31725         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31726         (main): Call set_program_name.
31727
31728         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31729         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31730         (main): Call set_program_name.
31731
31732         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31733         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31734         (main): Call set_program_name.
31735
31736         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31737         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31738         (main): Call set_program_name.
31739
31740 2009-01-19  Eric Blake  <ebb9@byu.net>
31741
31742         test-unistd: test previous patch
31743         * tests/test-unistd.c: Test *_FILENO macros.
31744
31745         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31746         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31747         Guarantee a definition.
31748         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31749         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31750         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31751         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31752         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31753         Likewise.
31754         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31755         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31756         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31757         Likewise.
31758         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31759         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31760         (STDERR_FILENO): Likewise.
31761         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31762         (STDERR_FILENO): Likewise.
31763         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31764         (STDERR_FILENO): Likewise.
31765         Reported by Elbert Pol.
31766
31767 2009-01-19  Eric Blake  <ebb9@byu.net>
31768
31769         doc: mention more functions added in cygwin 1.7.0
31770         * doc/posix-functions/abort.texi (abort): Update wording related
31771         to cygwin.
31772         * doc/posix-functions/daylight.texi (daylight): Likewise.
31773         * doc/posix-functions/optarg.texi (optarg): Likewise.
31774         * doc/posix-functions/optarg.texi (opterr): Likewise.
31775         * doc/posix-functions/optarg.texi (optind): Likewise.
31776         * doc/posix-functions/optarg.texi (optopt): Likewise.
31777         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31778         worked in 1.5.x, and was withdrawn in 1.7.
31779         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31780         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31781         cygwin versions.
31782         * doc/posix-functions/perror.texi (perror): Likewise.
31783         * doc/posix-functions/printf.texi (printf): Likewise.
31784         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31785         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31786         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31787         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31788         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31789         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31790         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31791         Likewise.
31792         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31793         Likewise.
31794         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31795         this function.
31796         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31797         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31798         Likewise.
31799         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31800         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31801         * doc/posix-functions/confstr.texi (confstr): Likewise.
31802         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31803         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31804         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31805         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31806         * doc/posix-functions/fputws.texi (fputws): Likewise.
31807         * doc/posix-functions/fwide.texi (fwide): Likewise.
31808         * doc/posix-functions/getwc.texi (getwc): Likewise.
31809         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31810         * doc/posix-functions/putwc.texi (putwc): Likewise.
31811         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31812         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31813         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31814         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31815         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31816         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31817         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31818         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31819         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31820         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31821         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31822
31823 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31824
31825         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31826         * lib/ioctl.c: Include <sys/ioctl.h>.
31827
31828 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31829
31830         * modules/getdate-tests (Depends-on): Add progname.
31831         * tests/test-getdate.c: Use progname module, to avoid link errors
31832         on non-glibc systems.
31833
31834 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31835
31836         * modules/filenamecat-tests (Depends-on): Add progname.
31837         * modules/fstrcmp-tests (Depends-on): Likewise.
31838
31839         * tests/test-filenamecat.c: Use progname module, to avoid link
31840         errors on non-glibc systems.
31841         * tests/test-fstrcmp.c: Likewise.
31842
31843 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31844
31845         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31846         * lib/gettimeofday.c: Move extern declaration out of function.
31847
31848 2009-01-18  Bruno Haible  <bruno@clisp.org>
31849
31850         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31851         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31852         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31853
31854 2009-01-18  Bruno Haible  <bruno@clisp.org>
31855
31856         * lib/strftime.c (MEMPCPY): Remove unused macro.
31857         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31858
31859 2009-01-18  Martin Lambers  <marlam@marlam.de>
31860
31861         New module 'link'.
31862         * lib/unistd.in.h (link): New declaration.
31863         * lib/link.c: New file.
31864         * m4/link.m4: New file.
31865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31866         HAVE_LINK.
31867         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31868         * modules/link: New file.
31869         * doc/posix-functions/link.texi: Mention the new module.
31870
31871 2009-01-18  Bruno Haible  <bruno@clisp.org>
31872
31873         * tests/test-avltree_list.c (main): Call set_program_name.
31874         * tests/test-avltree_oset.c (main): Likewise.
31875         * tests/test-obstack-printf.c: Include progname.h.
31876         (main): Call set_program_name.
31877         * tests/test-quotearg.c: Include progname.h.
31878         (main): Call set_program_name.
31879         * tests/test-xmemdup0.c: Include progname.h.
31880         (main): Call set_program_name.
31881
31882 2009-01-18  Bruno Haible  <bruno@clisp.org>
31883
31884         New module 'alphasort'.
31885         * lib/dirent.in.h (alphasort): New declaration.
31886         * lib/alphasort.c: New file, from glibc with modifications.
31887         * m4/alphasort.m4: New file.
31888         * modules/alphasort: New file.
31889         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31890         HAVE_ALPHASORT.
31891         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31892         HAVE_ALPHASORT.
31893         * doc/posix-functions/alphasort.texi: Mention the new module and the
31894         portability problems.
31895
31896 2009-01-18  Bruno Haible  <bruno@clisp.org>
31897
31898         New module 'scandir'.
31899         * lib/dirent.in.h (scandir): New declaration.
31900         * lib/scandir.c: New file, from glibc with modifications.
31901         * m4/scandir.m4: New file.
31902         * modules/scandir: New file.
31903         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31904         HAVE_SCANDIR.
31905         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31906         HAVE_SCANDIR.
31907         * doc/posix-functions/scandir.texi: Mention the new module and the
31908         portability problems.
31909
31910 2009-01-17  Bruno Haible  <bruno@clisp.org>
31911
31912         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31913         Update documentation.
31914         (func_remove_suffix): Escape all dots in the suffix. Update
31915         documentation.
31916         (func_filter_filelist): Update documentation.
31917         Reported by Ralf Wildenhues.
31918
31919 2009-01-17  Bruno Haible  <bruno@clisp.org>
31920
31921         * modules/dprintf-posix-tests: New file.
31922         * tests/test-dprintf-posix.sh: New file.
31923         * tests/test-dprintf-posix.c: New file.
31924
31925         New modules 'dprintf', 'dprintf-posix'.
31926         * lib/stdio.in.h (dprintf): New declaration.
31927         * lib/dprintf.c: New file.
31928         * m4/dprintf.m4: New file.
31929         * m4/dprintf-posix.m4: New file.
31930         * modules/dprintf: New file.
31931         * modules/dprintf-posix: New file.
31932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31933         HAVE_DPRINTF, REPLACE_DPRINTF.
31934         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31935         HAVE_DPRINTF, REPLACE_DPRINTF.
31936         * doc/posix-functions/dprintf.texi: Mention the new modules.
31937
31938 2009-01-17  Bruno Haible  <bruno@clisp.org>
31939
31940         * modules/vdprintf-posix-tests: New file.
31941         * tests/test-vdprintf-posix.sh: New file.
31942         * tests/test-vdprintf-posix.c: New file.
31943
31944         New modules 'vdprintf', 'vdprintf-posix'.
31945         * lib/stdio.in.h (vdprintf): New declaration.
31946         * lib/vdprintf.c: New file.
31947         * m4/vdprintf.m4: New file.
31948         * m4/vdprintf-posix.m4: New file.
31949         * modules/vdprintf: New file.
31950         * modules/vdprintf-posix: New file.
31951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31952         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31953         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31954         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31955         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31956
31957 2009-01-17  Bruno Haible  <bruno@clisp.org>
31958
31959         Fix replacement of fopen on mingw.
31960         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31961         mingw.
31962
31963 2009-01-17  Bruno Haible  <bruno@clisp.org>
31964
31965         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31966         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31967
31968 2009-01-17  Bruno Haible  <bruno@clisp.org>
31969
31970         Avoid test-fflush2.sh failure on mingw.
31971         * tests/test-fflush2.c: Include binary-io.h.
31972         (main): Put standard input into binary mode.
31973         * modules/fflush-tests (Depends-on): Add binary-io.
31974
31975 2009-01-17  Bruno Haible  <bruno@clisp.org>
31976
31977         * lib/wchar.in.h: In another particular situation, include only the
31978         system's <wchar.h> file.
31979         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31980         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31981         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31982
31983 2009-01-17  Bruno Haible  <bruno@clisp.org>
31984
31985         Support for stripping executables in --enable-relocatable.
31986         * build-aux/install-reloc: Expect one more argument, or an environment
31987         variable RELOC_STRIP_PROG. If set, strip the destination program and
31988         its wrapper.
31989         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31990         RELOC_STRIP_PROG.
31991         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31992         to set RELOCATABLE_STRIP.
31993         * NEWS: Mention the new Makefile requirement.
31994
31995 2009-01-17  Bruno Haible  <bruno@clisp.org>
31996
31997         * build-aux/install-reloc: Remove debugging information left over by
31998         C compiler on MacOS X.
31999
32000 2009-01-17  Bruno Haible  <bruno@clisp.org>
32001
32002         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
32003         * lib/progreloc.c (find_executable): Fix type of pointer passed to
32004         _NSGetExecutablePath.
32005
32006 2009-01-16  Jim Meyering  <meyering@redhat.com>
32007
32008         strerror: avoid warnings about discarding "const"
32009         * lib/strerror.c (rpl_strerror): Instead of returning a const
32010         string from each and every "case", use a variable, and add a single
32011         cast after the switch.
32012
32013 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
32014
32015         * lib/arpa_inet.in.h: Add extern "C" block for C++.
32016
32017 2009-01-16  Bruno Haible  <bruno@clisp.org>
32018
32019         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
32020         array initializer syntax that also works in C++ mode.
32021         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32022
32023 2009-01-16  Jim Meyering  <meyering@redhat.com>
32024
32025         poll: suppress a warning
32026         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
32027         to ignore "...unsigned expression < 0 is always false" warnings.
32028
32029 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
32030
32031         poll: remove declarations of unused variables
32032         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
32033         sockbuf and optlen.
32034
32035 2009-01-15  Bruno Haible  <bruno@clisp.org>
32036
32037         Make fflush-after-ungetc POSIX compliant on BSD systems.
32038         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
32039         (clear_ungetc_buffer): Implement also for other systems.
32040         (rpl_fflush): On glibc systems, invoke
32041         clear_ungetc_buffer_preserving_position. Otherwise, invoke
32042         clear_ungetc_buffer after fetching the stream's position, not before.
32043
32044 2009-01-15  Bruno Haible  <bruno@clisp.org>
32045
32046         Make fflush-after-ungetc POSIX compliant on glibc systems.
32047         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
32048         after ungetc.
32049         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
32050         (rpl_fflush): On glibc systems, simply call the system's fflush
32051         function after clearing the ungetc buffer.
32052         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
32053         Instead, lseek only to the end of file, then use the system's fseeko
32054         for the rest. On glibc systems, reset the EOF indicator bit.
32055
32056 2009-01-15  Jim Meyering  <meyering@redhat.com>
32057
32058         openmp.m4: revert quote-adding change, for portability to older autoconf
32059         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32060         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32061         Simon Josefsson noticed the problem when using autoconf-2.61.
32062
32063 2009-01-15  Bruno Haible  <bruno@clisp.org>
32064
32065         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32066         * tests/test-fflush2.c (ASSERT): Always fail.
32067         (main): Add two tests for fflush() after ungetc(), taking into account
32068         the Austin Group's clarification.
32069         Suggested by Eric Blake.
32070
32071 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32072
32073         mktime.m4: remove K&R-style function prototypes
32074         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32075         for the Sun C++ compiler.
32076
32077 2009-01-14  Bruno Haible  <bruno@clisp.org>
32078
32079         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32080         while including <wchar.h>.
32081         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32082         the system's <wchar.h> file.
32083         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32084
32085 2009-01-14  Bruno Haible  <bruno@clisp.org>
32086
32087         * m4/csharp.m4: Don't mention gettext on the serial number line.
32088         * m4/csharpexec.m4: Likewise.
32089         * m4/eaccess.m4: Likewise.
32090         * m4/javaexec.m4: Likewise.
32091         * m4/sig_atomic_t.m4: Likewise.
32092         * m4/tmpdir.m4: Likewise.
32093         * m4/intldir.m4: Bump gettext version.
32094         * m4/lib-ld.m4: Likewise.
32095
32096 2009-01-14  Bruno Haible  <bruno@clisp.org>
32097
32098         * lib/progname.c (set_program_name): Add more comments.
32099         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32100
32101 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32102
32103         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32104         were sys/stat.h does not define it.
32105
32106 2009-01-14  Jim Meyering  <meyering@redhat.com>
32107
32108         many *.m4 files: improve m4 quoting
32109         99% of this change was performed by running the following commands:
32110         git ls-files | grep '\.m4$' | xargs perl -pi \
32111           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32112           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32113           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32114           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32115         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32116         The remainder were to add Copyright dates, increment serial numbers,
32117         undo some changes in comments, exclude m4/intl.m4, and add quotes
32118         around the "1" in ",1" where the unusual spacing prohibited the
32119         above regexps from doing the job.  For more details, see
32120         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32121         * m4/acl.m4: Modified.
32122         * m4/afs.m4: Likewise.
32123         * m4/alloca.m4: Likewise.
32124         * m4/argp.m4: Likewise.
32125         * m4/argz.m4: Likewise.
32126         * m4/atexit.m4: Likewise.
32127         * m4/bison-i18n.m4: Likewise.
32128         * m4/bison.m4: Likewise.
32129         * m4/byteswap.m4: Likewise.
32130         * m4/c-stack.m4: Likewise.
32131         * m4/c-strtod.m4: Likewise.
32132         * m4/calloc.m4: Likewise.
32133         * m4/canonicalize-lgpl.m4: Likewise.
32134         * m4/chown.m4: Likewise.
32135         * m4/clock_time.m4: Likewise.
32136         * m4/codeset.m4: Likewise.
32137         * m4/copy-file.m4: Likewise.
32138         * m4/csharp.m4: Likewise.
32139         * m4/csharpcomp.m4: Likewise.
32140         * m4/csharpexec.m4: Likewise.
32141         * m4/d-ino.m4: Likewise.
32142         * m4/d-type.m4: Likewise.
32143         * m4/dirfd.m4: Likewise.
32144         * m4/double-slash-root.m4: Likewise.
32145         * m4/eaccess.m4: Likewise.
32146         * m4/eealloc.m4: Likewise.
32147         * m4/environ.m4: Likewise.
32148         * m4/errno_h.m4: Likewise.
32149         * m4/euidaccess.m4: Likewise.
32150         * m4/execute.m4: Likewise.
32151         * m4/fatal-signal.m4: Likewise.
32152         * m4/fchdir.m4: Likewise.
32153         * m4/fcntl_h.m4: Likewise.
32154         * m4/fileblocks.m4: Likewise.
32155         * m4/filenamecat.m4: Likewise.
32156         * m4/findprog.m4: Likewise.
32157         * m4/flexmember.m4: Likewise.
32158         * m4/fnmatch.m4: Likewise.
32159         * m4/fopen.m4: Likewise.
32160         * m4/fpending.m4: Likewise.
32161         * m4/fprintf-posix.m4: Likewise.
32162         * m4/free.m4: Likewise.
32163         * m4/frexp.m4: Likewise.
32164         * m4/frexpl.m4: Likewise.
32165         * m4/fsusage.m4: Likewise.
32166         * m4/ftruncate.m4: Likewise.
32167         * m4/gc-camellia.m4: Likewise.
32168         * m4/gc-random.m4: Likewise.
32169         * m4/gc.m4: Likewise.
32170         * m4/getaddrinfo.m4: Likewise.
32171         * m4/getcwd-abort-bug.m4: Likewise.
32172         * m4/getcwd-path-max.m4: Likewise.
32173         * m4/getdate.m4: Likewise.
32174         * m4/getdomainname.m4: Likewise.
32175         * m4/getgroups.m4: Likewise.
32176         * m4/gethostname.m4: Likewise.
32177         * m4/gethrxtime.m4: Likewise.
32178         * m4/getline.m4: Likewise.
32179         * m4/getloadavg.m4: Likewise.
32180         * m4/getndelim2.m4: Likewise.
32181         * m4/getpass.m4: Likewise.
32182         * m4/gettext.m4: Likewise.
32183         * m4/gettime.m4: Likewise.
32184         * m4/gettimeofday.m4: Likewise.
32185         * m4/gnulib-common.m4: Likewise.
32186         * m4/group-member.m4: Likewise.
32187         * m4/host-os.m4: Likewise.
32188         * m4/iconv.m4: Likewise.
32189         * m4/iconv_open.m4: Likewise.
32190         * m4/inet_ntop.m4: Likewise.
32191         * m4/inet_pton.m4: Likewise.
32192         * m4/inline.m4: Likewise.
32193         * m4/intldir.m4: Likewise.
32194         * m4/intlmacosx.m4: Likewise.
32195         * m4/intmax.m4: Likewise.
32196         * m4/intmax_t.m4: Likewise.
32197         * m4/inttypes.m4: Likewise.
32198         * m4/inttypes_h.m4: Likewise.
32199         * m4/inttypes-pri.m4: Likewise.
32200         * m4/isapipe.m4: Likewise.
32201         * m4/isnand.m4: Likewise.
32202         * m4/isnanf.m4: Likewise.
32203         * m4/isnanl.m4: Likewise.
32204         * m4/javacomp.m4: Likewise.
32205         * m4/javaexec.m4: Likewise.
32206         * m4/jm-winsz1.m4: Likewise.
32207         * m4/jm-winsz2.m4: Likewise.
32208         * m4/lchown.m4: Likewise.
32209         * m4/lcmessage.m4: Likewise.
32210         * m4/ldexpl.m4: Likewise.
32211         * m4/lib-ld.m4: Likewise.
32212         * m4/lib-link.m4: Likewise.
32213         * m4/libsigsegv.m4: Likewise.
32214         * m4/link-follow.m4: Likewise.
32215         * m4/localcharset.m4: Likewise.
32216         * m4/locale-fr.m4: Likewise.
32217         * m4/locale-ja.m4: Likewise.
32218         * m4/locale-tr.m4: Likewise.
32219         * m4/locale-zh.m4: Likewise.
32220         * m4/lock.m4: Likewise.
32221         * m4/longlong.m4: Likewise.
32222         * m4/ls-mntd-fs.m4: Likewise.
32223         * m4/lstat.m4: Likewise.
32224         * m4/malloc.m4: Likewise.
32225         * m4/mathl.m4: Likewise.
32226         * m4/mbrtowc.m4: Likewise.
32227         * m4/mbstate_t.m4: Likewise.
32228         * m4/mbswidth.m4: Likewise.
32229         * m4/memchr.m4: Likewise.
32230         * m4/memcmp.m4: Likewise.
32231         * m4/memcpy.m4: Likewise.
32232         * m4/memmem.m4: Likewise.
32233         * m4/memmove.m4: Likewise.
32234         * m4/mempcpy.m4: Likewise.
32235         * m4/memrchr.m4: Likewise.
32236         * m4/memset.m4: Likewise.
32237         * m4/minmax.m4: Likewise.
32238         * m4/mkdir-slash.m4: Likewise.
32239         * m4/mkdtemp.m4: Likewise.
32240         * m4/mktime.m4: Likewise.
32241         * m4/mmap-anon.m4: Likewise.
32242         * m4/mountlist.m4: Likewise.
32243         * m4/nanosleep.m4: Likewise.
32244         * m4/nls.m4: Likewise.
32245         * m4/nocrash.m4: Likewise.
32246         * m4/open.m4: Likewise.
32247         * m4/openat.m4: Likewise.
32248         * m4/openmp.m4: Likewise.
32249         * m4/pathmax.m4: Likewise.
32250         * m4/perl.m4: Likewise.
32251         * m4/physmem.m4: Likewise.
32252         * m4/pipe.m4: Likewise.
32253         * m4/po.m4: Likewise.
32254         * m4/poll.m4: Likewise.
32255         * m4/posixtm.m4: Likewise.
32256         * m4/posixver.m4: Likewise.
32257         * m4/printf-frexp.m4: Likewise.
32258         * m4/printf-frexpl.m4: Likewise.
32259         * m4/printf-posix.m4: Likewise.
32260         * m4/printf-posix-rpl.m4: Likewise.
32261         * m4/printf.m4: Likewise.
32262         * m4/progtest.m4: Likewise.
32263         * m4/putenv.m4: Likewise.
32264         * m4/readline.m4: Likewise.
32265         * m4/readlink.m4: Likewise.
32266         * m4/readutmp.m4: Likewise.
32267         * m4/realloc.m4: Likewise.
32268         * m4/regex.m4: Likewise.
32269         * m4/relocatable.m4: Likewise.
32270         * m4/relocatable-lib.m4: Likewise.
32271         * m4/rename-dest-slash.m4: Likewise.
32272         * m4/rename.m4: Likewise.
32273         * m4/rmdir-errno.m4: Likewise.
32274         * m4/rmdir.m4: Likewise.
32275         * m4/roundf.m4: Likewise.
32276         * m4/roundl.m4: Likewise.
32277         * m4/rpmatch.m4: Likewise.
32278         * m4/save-cwd.m4: Likewise.
32279         * m4/selinux-selinux-h.m4: Likewise.
32280         * m4/setenv.m4: Likewise.
32281         * m4/settime.m4: Likewise.
32282         * m4/sig2str.m4: Likewise.
32283         * m4/sig_atomic_t.m4: Likewise.
32284         * m4/signalblocking.m4: Likewise.
32285         * m4/signbit.m4: Likewise.
32286         * m4/sigpipe.m4: Likewise.
32287         * m4/sockets.m4: Likewise.
32288         * m4/sockpfaf.m4: Likewise.
32289         * m4/st_dm_mode.m4: Likewise.
32290         * m4/stat-time.m4: Likewise.
32291         * m4/stdbool.m4: Likewise.
32292         * m4/stdint.m4: Likewise.
32293         * m4/stdint_h.m4: Likewise.
32294         * m4/stpcpy.m4: Likewise.
32295         * m4/stpncpy.m4: Likewise.
32296         * m4/strcase.m4: Likewise.
32297         * m4/strchrnul.m4: Likewise.
32298         * m4/strcspn.m4: Likewise.
32299         * m4/strdup.m4: Likewise.
32300         * m4/strftime.m4: Likewise.
32301         * m4/strndup.m4: Likewise.
32302         * m4/strnlen.m4: Likewise.
32303         * m4/strpbrk.m4: Likewise.
32304         * m4/strptime.m4: Likewise.
32305         * m4/strsep.m4: Likewise.
32306         * m4/strtod.m4: Likewise.
32307         * m4/strtoimax.m4: Likewise.
32308         * m4/strtok_r.m4: Likewise.
32309         * m4/strtol.m4: Likewise.
32310         * m4/strtoll.m4: Likewise.
32311         * m4/strtoul.m4: Likewise.
32312         * m4/strtoull.m4: Likewise.
32313         * m4/strtoumax.m4: Likewise.
32314         * m4/strverscmp.m4: Likewise.
32315         * m4/threadlib.m4: Likewise.
32316         * m4/timegm.m4: Likewise.
32317         * m4/tm_gmtoff.m4: Likewise.
32318         * m4/tmpdir.m4: Likewise.
32319         * m4/tmpfile.m4: Likewise.
32320         * m4/tzset.m4: Likewise.
32321         * m4/uintmax_t.m4: Likewise.
32322         * m4/unlinkdir.m4: Likewise.
32323         * m4/unlocked-io.m4: Likewise.
32324         * m4/uptime.m4: Likewise.
32325         * m4/userspec.m4: Likewise.
32326         * m4/utimbuf.m4: Likewise.
32327         * m4/utime.m4: Likewise.
32328         * m4/utimes-null.m4: Likewise.
32329         * m4/utimes.m4: Likewise.
32330         * m4/vararrays.m4: Likewise.
32331         * m4/vasnprintf.m4: Likewise.
32332         * m4/vfprintf-posix.m4: Likewise.
32333         * m4/vprintf-posix.m4: Likewise.
32334         * m4/wait-process.m4: Likewise.
32335         * m4/wchar_t.m4: Likewise.
32336         * m4/wint_t.m4: Likewise.
32337         * m4/write-any-file.m4: Likewise.
32338         * m4/yield.m4: Likewise.
32339
32340 2009-01-13  Bruno Haible  <bruno@clisp.org>
32341
32342         Avoid test-copy-file.sh failures when ACL support insufficient.
32343         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32344         TESTS_ENVIRONMENT.
32345         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32346         Reported by Jim Meyering.
32347
32348 2009-01-13  Bruno Haible  <bruno@clisp.org>
32349
32350         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32351         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32352         * modules/unistdio/u8-printf-parse (Files): Likewise.
32353         * modules/unistdio/u32-printf-parse (Files): Likewise.
32354         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32355
32356 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32357
32358         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32359         and m4/inttypes_h.m4 too.
32360
32361 2009-01-12  Eric Blake  <ebb9@byu.net>
32362
32363         tests: IRIX 6.2 cc can't compile -0.0 into .data
32364         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32365         rather than at compile-time.
32366         * tests/test-floorl.c (minus_zero): Likewise.
32367         * tests/test-frexpl.c (minus_zero): Likewise.
32368         * tests/test-isnan.c (minus_zerol): Likewise.
32369         * tests/test-isnanl.h (minus_zero): Likewise.
32370         * tests/test-ldexpl.c (minus_zero): Likewise.
32371         * tests/test-roundl.c (minus_zero): Likewise.
32372         * tests/test-signbit.c (minus_zerol): Likewise.
32373         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32374         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32375         * tests/test-truncl.c (minus_zero): Likewise.
32376         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32377         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32378         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32379
32380 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32381
32382         regex: fix glibc bug 9697
32383         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32384         handling.
32385
32386 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32387
32388         regex: fix glibc bug 697
32389         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32390         being NULL also if there are no backreferences.
32391
32392 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32393
32394         regex: merge glibc changes
32395         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32396         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32397         re_string_skip_chars, re_string_reconstruct): Likewise.
32398         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32399
32400 2009-01-07  Jim Meyering  <meyering@redhat.com>
32401
32402         poll: filter through cppi
32403         * lib/poll.c: Indent cpp directives to reflect nesting.
32404
32405 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32406
32407         poll: don't return uninitialized
32408         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32409
32410 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32411
32412         avoid compile failure on AIX 6.1
32413         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32414         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32415
32416 2009-01-04  Jim Meyering  <meyering@redhat.com>
32417
32418         remove duplicate inclusion of <stdio.h>
32419         * tests/test-fprintf-posix.c: Likewise.
32420         * tests/test-printf-posix.c: Likewise.
32421         * tests/test-snprintf-posix.c: Likewise.
32422         * tests/test-sprintf-posix.c: Likewise.
32423         * tests/test-vasprintf-posix.c: Likewise.
32424         * tests/test-vfprintf-posix.c: Likewise.
32425         * tests/test-vprintf-posix.c: Likewise.
32426         * tests/test-vsnprintf-posix.c: Likewise.
32427         * tests/test-vsprintf-posix.c: Likewise.
32428
32429 2009-01-03  Jim Meyering  <meyering@redhat.com>
32430
32431         gnulib-tool: fix sed-based filtering
32432         * gnulib-tool (func_filter_filelist): Remove extra backslash
32433         in sed_fff_filter definition.
32434
32435 2009-01-02  Jim Meyering  <meyering@redhat.com>
32436
32437         strftime: avoid compilation failure on Solaris 2.6
32438         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32439         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32440         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32441         be available.  Reported by Tom G. Christensen.  Details in
32442         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32443
32444 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32445             Bruno Haible  <bruno@clisp.org>
32446
32447         Speed up gnulib-tool by doing more string processing through shell
32448         built-ins.
32449         * gnulib-tool (fast_func_append): New variable.
32450         (func_remove_prefix, func_remove_suffix): New functions.
32451         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32452         (func_filter_filelist): New function.
32453         (func_get_dependencies): Use func_remove_suffix instead of sed.
32454         (func_get_automake_snippet): Use func_filter_filelist instead of a
32455         subshell and sed invocation.
32456
32457 2009-01-01  Bruno Haible  <bruno@clisp.org>
32458
32459         Fix a security bug.
32460         * gnulib-tool (func_import, import, update): Don't allow the characters
32461         '"', '$', '`', '\' in macro arguments that become part of commands that
32462         are evaluated.
32463
32464 2009-01-01  Bruno Haible  <bruno@clisp.org>
32465
32466         * gnulib-tool (func_reset_sigpipe): Add more comments.
32467
32468 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32469
32470         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32471         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32472         already know the answer.
32473
32474 2009-01-01  Jim Meyering  <meyering@redhat.com>
32475
32476         * lib/version-etc.c (version_etc_va): Update copyright year.
32477
32478 2008-12-30  Bruno Haible  <bruno@clisp.org>
32479
32480         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32481         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32482         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32483
32484 2008-12-29  Eric Blake  <ebb9@byu.net>
32485
32486         multiarch: avoid autoconf AC_REQUIRE bug
32487         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32488         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32489         2.63 and older.
32490         Reported by Bruno Haible, and analyzed in
32491         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32492
32493 2008-12-29  Bruno Haible  <bruno@clisp.org>
32494
32495         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32496         files in subdirectories correctly.
32497         Reported by Ralf Wildenhues.
32498
32499 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32500
32501         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32502         rather than 'join FILE -', for Solaris join.
32503
32504 2008-12-29  Bruno Haible  <bruno@clisp.org>
32505
32506         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32507         quoting.
32508         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32509         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32510         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32511         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32512         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32513         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32514         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32515         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32516         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32517         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32518         * m4/nls.m4 (AM_NLS): Likewise.
32519         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32520         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32521         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32522         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32523         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32524         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32525         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32526         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32527         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32528         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32529         * m4/xsize.m4 (gl_XSIZE): Likewise.
32530         Suggested by Jim Meyering.
32531
32532 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32533
32534         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32535         * lib/parse-duration.c: use a switch instead of cascading if's.
32536
32537 2008-12-29  Eric Blake  <ebb9@byu.net>
32538
32539         wchar.h: supply WEOF on Irix 5.3
32540         * lib/wchar.in.h (wint_t): Also supply WEOF.
32541         * lib/wctype.in.h (wint_t): Likewise.
32542         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32543         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32544         Reported by Tom G. Christensen.
32545
32546 2008-12-26  Bruno Haible  <bruno@clisp.org>
32547
32548         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32549         i486, i586, i686.
32550
32551 2008-12-26  Bruno Haible  <bruno@clisp.org>
32552
32553         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32554
32555 2008-12-26  Bruno Haible  <bruno@clisp.org>
32556
32557         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32558         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32559         not __STDC_CONSTANT_MACROS.
32560         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32561
32562 2008-12-25  Bruno Haible  <bruno@clisp.org>
32563
32564         Add support for universal builds to vasnprintf.
32565         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32566         universal builds, guess no.
32567         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32568         * modules/vasprintf-posix (Depends-on): Likewise.
32569         * modules/fprintf-posix (Depends-on): Likewise.
32570         * modules/vfprintf-posix (Depends-on): Likewise.
32571         * modules/snprintf-posix (Depends-on): Likewise.
32572         * modules/vsnprintf-posix (Depends-on): Likewise.
32573         * modules/sprintf-posix (Depends-on): Likewise.
32574         * modules/vsprintf-posix (Depends-on): Likewise.
32575         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32576         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32577         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32578         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32579         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32580         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32581         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32582
32583         Add support for universal builds to <inttypes.h>.
32584         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32585         _SCNu64_PREFIX): In Apple
32586         universal builds, define directly, using _LP64.
32587         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32588         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32589         * modules/inttypes (Depends-on): Add multiarch.
32590         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32591
32592         Add support for universal builds to <stdint.h>.
32593         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32594         universal builds, define directly, using _LP64.
32595         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32596         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32597         and size_t.
32598         * modules/stdint (Depends-on): Add multiarch.
32599         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32600
32601         New module 'multiarch'.
32602         * modules/multiarch: New file.
32603         * m4/multiarch.m4: New file.
32604
32605 2008-12-25  Bruno Haible  <bruno@clisp.org>
32606
32607         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32608
32609 2008-12-25  Bruno Haible  <bruno@clisp.org>
32610
32611         * modules/btowc (License): Relicense under LGPLv2+.
32612         * modules/mbsinit (License): Likewise.
32613         * modules/mbrtowc (License): Likewise.
32614         * modules/wcrtomb (License): Likewise.
32615         * modules/streq (License): Likewise.
32616         Reported by David Lutterkort <lutter@redhat.com>.
32617
32618 2008-12-23  Bruno Haible  <bruno@clisp.org>
32619
32620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32621
32622 2008-12-23  Bruno Haible  <bruno@clisp.org>
32623
32624         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32626         GETADDRINFO_LIB, not in LIBS.
32627         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32628         * modules/canon-host (Link): Likewise.
32629         * NEWS: Mention the change.
32630         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32631         GETADDRINFO_LIB.
32632
32633 2008-12-22  Bruno Haible  <bruno@clisp.org>
32634
32635         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32636         * doc/posix-functions/iswalpha_l.texi: Likewise.
32637         * doc/posix-functions/iswblank_l.texi: Likewise.
32638         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32639         * doc/posix-functions/iswctype_l.texi: Likewise.
32640         * doc/posix-functions/iswdigit_l.texi: Likewise.
32641         * doc/posix-functions/iswgraph_l.texi: Likewise.
32642         * doc/posix-functions/iswlower_l.texi: Likewise.
32643         * doc/posix-functions/iswprint_l.texi: Likewise.
32644         * doc/posix-functions/iswpunct_l.texi: Likewise.
32645         * doc/posix-functions/iswspace_l.texi: Likewise.
32646         * doc/posix-functions/iswupper_l.texi: Likewise.
32647         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32648         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32649         * doc/posix-functions/open_wmemstream.texi: Likewise.
32650         * doc/posix-functions/swscanf.texi: Likewise.
32651         * doc/posix-functions/towctrans_l.texi: Likewise.
32652         * doc/posix-functions/towlower.texi: Likewise.
32653         * doc/posix-functions/towlower_l.texi: Likewise.
32654         * doc/posix-functions/towupper.texi: Likewise.
32655         * doc/posix-functions/towupper_l.texi: Likewise.
32656         * doc/posix-functions/vfwprintf.texi: Likewise.
32657         * doc/posix-functions/vfwscanf.texi: Likewise.
32658         * doc/posix-functions/vswscanf.texi: Likewise.
32659         * doc/posix-functions/vwprintf.texi: Likewise.
32660         * doc/posix-functions/vwscanf.texi: Likewise.
32661         * doc/posix-functions/wcpcpy.texi: Likewise.
32662         * doc/posix-functions/wcpncpy.texi: Likewise.
32663         * doc/posix-functions/wcscasecmp.texi: Likewise.
32664         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32665         * doc/posix-functions/wcscoll_l.texi: Likewise.
32666         * doc/posix-functions/wcsdup.texi: Likewise.
32667         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32668         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32669         * doc/posix-functions/wcsnlen.texi: Likewise.
32670         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32671         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32672         * doc/posix-functions/wctrans_l.texi: Likewise.
32673         * doc/posix-functions/wctype_l.texi: Likewise.
32674         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32675         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32676         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32677         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32678         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32679         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32680         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32681         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32682         * doc/glibc-functions/wcschrnul.texi: Likewise.
32683         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32684         * doc/glibc-functions/wcstod_l.texi: Likewise.
32685         * doc/glibc-functions/wcstof_l.texi: Likewise.
32686         * doc/glibc-functions/wcstol_l.texi: Likewise.
32687         * doc/glibc-functions/wcstold_l.texi: Likewise.
32688         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32689         * doc/glibc-functions/wcstoq.texi: Likewise.
32690         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32691         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32692         * doc/glibc-functions/wcstouq.texi: Likewise.
32693         * doc/glibc-functions/wmempcpy.texi: Likewise.
32694
32695 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32696             Eric Blake  <ebb9@byu.net>
32697             Paolo Bonzini  <bonzini@gnu.org>
32698             Bruno Haible  <bruno@clisp.org>
32699
32700         Make c-stack work on Haiku.
32701         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32702         (c_stack_action): Use SA_ONSTACK flag.
32703
32704 2008-12-22  Bruno Haible  <bruno@clisp.org>
32705
32706         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32707
32708 2008-12-22  Bruno Haible  <bruno@clisp.org>
32709
32710         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32711         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32712         being overridden.
32713         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32714         New macros.
32715         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32717         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32718         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32719
32720 2008-12-22  Bruno Haible  <bruno@clisp.org>
32721
32722         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32723         from test code.
32724
32725 2008-12-22  Eric Blake  <ebb9@byu.net>
32726
32727         Avoid gcc warnings on cygwin.
32728         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32729         Avoid unused variable.
32730         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32731         Likewise.
32732
32733 2008-12-22  Bruno Haible  <bruno@clisp.org>
32734
32735         Remove HAVE_MBRTOWC conditionals.
32736         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32737         (mbscasecmp): Assume mbrtowc function.
32738         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32739         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32740         * lib/mbschr.c: Include mbuiter.h unconditionally.
32741         (mbschr): Assume mbrtowc function.
32742         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32743         (mbscspn): Assume mbrtowc function.
32744         * lib/mbslen.c: Include mbuiter.h unconditionally.
32745         (mbslen): Assume mbrtowc function.
32746         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32747         (mbsncasecmp): Assume mbrtowc function.
32748         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32749         (mbsnlen): Assume mbrtowc function.
32750         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32751         (mbspbrk): Assume mbrtowc function.
32752         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32753         (mbspcasecmp): Assume mbrtowc function.
32754         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32755         (mbsrchr): Assume mbrtowc function.
32756         * lib/mbssep.c: Include mbuiter.h unconditionally.
32757         (mbssep): Assume mbrtowc function.
32758         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32759         (mbsspn): Assume mbrtowc function.
32760         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32761         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32762         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32763         (mbstok_r): Assume mbrtowc function.
32764         * lib/propername.c: Include mbuiter.h unconditionally.
32765         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32766         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32767         (trim2): Assume mbrtowc function.
32768         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32769         (mbsnwidth): Assume mbrtowc function.
32770         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32771         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32772         fallback definitions.
32773         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32774
32775 2008-12-22  Bruno Haible  <bruno@clisp.org>
32776
32777         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32778
32779 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32780
32781         * modules/regex: Request emulations for the mb*/wc* functions we need.
32782         * m4/regex.m4: Don't look for those functions here.
32783         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32784
32785 2008-12-22  Bruno Haible  <bruno@clisp.org>
32786
32787         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32788
32789 2008-12-21  Bruno Haible  <bruno@clisp.org>
32790
32791         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32792         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32793         (Include): Remove conditionalization.
32794         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32795         (Include): Remove conditionalization.
32796         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32797         (Include): Remove conditionalization.
32798         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32799         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32800         * NEWS: Mention the change.
32801         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32802         via Sergey Poznyakoff <gray@gnu.org.ua>.
32803
32804 2008-12-21  Bruno Haible  <bruno@clisp.org>
32805
32806         * MODULES.html.sh (Extended multibyte and wide character utilities
32807         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32808         wcrtomb, wcsrtombs.
32809         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32810         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32811         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32812         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32813
32814 2008-12-21  Bruno Haible  <bruno@clisp.org>
32815
32816         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32817
32818 2008-12-21  Bruno Haible  <bruno@clisp.org>
32819
32820         * modules/wcsnrtombs-tests: New file.
32821         * tests/test-wcsnrtombs1.sh: New file.
32822         * tests/test-wcsnrtombs2.sh: New file.
32823         * tests/test-wcsnrtombs3.sh: New file.
32824         * tests/test-wcsnrtombs4.sh: New file.
32825         * tests/test-wcsnrtombs.c: New file.
32826
32827         New module 'wcsnrtombs'.
32828         * lib/wchar.in.h (wcsnrtombs): New declaration.
32829         * lib/wcsnrtombs.c: New file.
32830         * lib/wcsrtombs-state.c: New file.
32831         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32832         (internal_state): Remove variable.
32833         * m4/wcsnrtombs.m4: New file.
32834         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32835         compilation units.
32836         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32837         HAVE_WCSNRTOMBS.
32838         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32839         HAVE_WCSNRTOMBS.
32840         * modules/wcsnrtombs: New file.
32841         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32842         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32843
32844 2008-12-21  Bruno Haible  <bruno@clisp.org>
32845
32846         * modules/wcsrtombs-tests: New file.
32847         * tests/test-wcsrtombs1.sh: New file.
32848         * tests/test-wcsrtombs2.sh: New file.
32849         * tests/test-wcsrtombs3.sh: New file.
32850         * tests/test-wcsrtombs4.sh: New file.
32851         * tests/test-wcsrtombs.c: New file.
32852
32853         New module 'wcsrtombs'.
32854         * lib/wchar.in.h (wcsrtombs): New declaration.
32855         * lib/wcsrtombs.c: New file.
32856         * m4/wcsrtombs.m4: New file.
32857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32858         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32860         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32861         * modules/wcsrtombs: New file.
32862         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32863         bugs.
32864
32865 2008-12-21  Bruno Haible  <bruno@clisp.org>
32866
32867         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32868         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32869         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32870         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32871         if not correct.
32872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32873         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32874         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32875         m4/locale-zh.m4, m4/codeset.m4.
32876         * doc/posix-functions/wcrtomb.texi: Document the bug.
32877
32878 2008-12-21  Bruno Haible  <bruno@clisp.org>
32879
32880         Work around a btowc() bug on IRIX 6.5.
32881         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32882         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32883         REPLACE_WTOBC if not.
32884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32885         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32886         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32887
32888 2008-12-21  Bruno Haible  <bruno@clisp.org>
32889
32890         * modules/wcrtomb-tests: New file.
32891         * tests/test-wcrtomb.sh: New file.
32892         * tests/test-wcrtomb.c: New file.
32893
32894         New module 'wcrtomb'.
32895         * lib/wchar.in.h (wcrtomb): New declaration.
32896         * lib/wcrtomb.c: New file.
32897         * m4/wcrtomb.m4: New file.
32898         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32899         HAVE_WCRTOMB.
32900         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32901         HAVE_WCRTOMB.
32902         * modules/wcrtomb: New file.
32903         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32904
32905 2008-12-21  Bruno Haible  <bruno@clisp.org>
32906
32907         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32908         * modules/mbsrtowcs (Files): Likewise.
32909         * modules/wctob (Files): Likewise.
32910         * modules/c-strcase-tests (Files): Likewise.
32911         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32912         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32913         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32914         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32915         * modules/vasnprintf-posix-tests (Files): Likewise.
32916
32917 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32918
32919         gitlog-to-changelog: pass all command-line arguments to git-log
32920         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32921         it is sometimes convenient to filter the commits in various ways.
32922         gitlog-to-changelog only allows --since to specify a start date,
32923         but git-log itself supports many other filtering mechanisms.
32924         At the moment, I want to filter by branch name.  Rather than
32925         adding a --branch option to gitlog-to-changelog, it seems more
32926         flexible to simply pass all options directly to git-log and let
32927         git do the work.  Notice that this effectively makes --since a
32928         redundant option for gitlog-to-changelog, but removing it would
32929         require current usage to change since calls would then require
32930         an additional '--'.
32931
32932 2008-12-21  Bruno Haible  <bruno@clisp.org>
32933
32934         * modules/mbsnrtowcs-tests: New file.
32935         * tests/test-mbsnrtowcs1.sh: New file.
32936         * tests/test-mbsnrtowcs2.sh: New file.
32937         * tests/test-mbsnrtowcs3.sh: New file.
32938         * tests/test-mbsnrtowcs4.sh: New file.
32939         * tests/test-mbsnrtowcs.c: New file.
32940
32941         New module 'mbsnrtowcs'.
32942         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32943         * lib/mbsnrtowcs.c: New file.
32944         * lib/mbsrtowcs-state.c: New file.
32945         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32946         (internal_state): Remove variable.
32947         * m4/mbsnrtowcs.m4: New file.
32948         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32949         compilation units.
32950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32951         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32952         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32953         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32954         * modules/mbsnrtowcs: New file.
32955         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32956         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32957         portability problem.
32958
32959 2008-12-21  Bruno Haible  <bruno@clisp.org>
32960
32961         Work around mbsrtowcs bug.
32962         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32963         (gl_FUNC_MBSRTOWCS): Invoke it.
32964         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32965         m4/locale-zh.m4.
32966         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32967
32968 2008-12-21  Bruno Haible  <bruno@clisp.org>
32969
32970         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32971
32972 2008-12-21  Bruno Haible  <bruno@clisp.org>
32973
32974         Update doc for AIX.
32975         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32976         16-bit wchar_t type.
32977         * doc/posix-functions/btowc.texi: Likewise.
32978         * doc/posix-functions/fgetwc.texi: Likewise.
32979         * doc/posix-functions/fgetws.texi: Likewise.
32980         * doc/posix-functions/fputwc.texi: Likewise.
32981         * doc/posix-functions/fputws.texi: Likewise.
32982         * doc/posix-functions/fwide.texi: Likewise.
32983         * doc/posix-functions/fwprintf.texi: Likewise.
32984         * doc/posix-functions/fwscanf.texi: Likewise.
32985         * doc/posix-functions/getwchar.texi: Likewise.
32986         * doc/posix-functions/getwc.texi: Likewise.
32987         * doc/posix-functions/iswalnum.texi: Likewise.
32988         * doc/posix-functions/iswalpha.texi: Likewise.
32989         * doc/posix-functions/iswblank.texi: Likewise.
32990         * doc/posix-functions/iswcntrl.texi: Likewise.
32991         * doc/posix-functions/iswctype.texi: Likewise.
32992         * doc/posix-functions/iswdigit.texi: Likewise.
32993         * doc/posix-functions/iswgraph.texi: Likewise.
32994         * doc/posix-functions/iswlower.texi: Likewise.
32995         * doc/posix-functions/iswprint.texi: Likewise.
32996         * doc/posix-functions/iswpunct.texi: Likewise.
32997         * doc/posix-functions/iswspace.texi: Likewise.
32998         * doc/posix-functions/iswupper.texi: Likewise.
32999         * doc/posix-functions/iswxdigit.texi: Likewise.
33000         * doc/posix-functions/mbrtowc.texi: Likewise.
33001         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33002         * doc/posix-functions/mbstowcs.texi: Likewise.
33003         * doc/posix-functions/mbtowc.texi: Likewise.
33004         * doc/posix-functions/putwchar.texi: Likewise.
33005         * doc/posix-functions/putwc.texi: Likewise.
33006         * doc/posix-functions/swprintf.texi: Likewise.
33007         * doc/posix-functions/tolower.texi: Likewise.
33008         * doc/posix-functions/toupper.texi: Likewise.
33009         * doc/posix-functions/towctrans.texi: Likewise.
33010         * doc/posix-functions/ungetwc.texi: Likewise.
33011         * doc/posix-functions/vswprintf.texi: Likewise.
33012         * doc/posix-functions/wcrtomb.texi: Likewise.
33013         * doc/posix-functions/wcscat.texi: Likewise.
33014         * doc/posix-functions/wcschr.texi: Likewise.
33015         * doc/posix-functions/wcscmp.texi: Likewise.
33016         * doc/posix-functions/wcscoll.texi: Likewise.
33017         * doc/posix-functions/wcscpy.texi: Likewise.
33018         * doc/posix-functions/wcscspn.texi: Likewise.
33019         * doc/posix-functions/wcsftime.texi: Likewise.
33020         * doc/posix-functions/wcslen.texi: Likewise.
33021         * doc/posix-functions/wcsncat.texi: Likewise.
33022         * doc/posix-functions/wcsncmp.texi: Likewise.
33023         * doc/posix-functions/wcsncpy.texi: Likewise.
33024         * doc/posix-functions/wcspbrk.texi: Likewise.
33025         * doc/posix-functions/wcsrchr.texi: Likewise.
33026         * doc/posix-functions/wcsrtombs.texi: Likewise.
33027         * doc/posix-functions/wcsspn.texi: Likewise.
33028         * doc/posix-functions/wcsstr.texi: Likewise.
33029         * doc/posix-functions/wcstod.texi: Likewise.
33030         * doc/posix-functions/wcstof.texi: Likewise.
33031         * doc/posix-functions/wcstoimax.texi: Likewise.
33032         * doc/posix-functions/wcstok.texi: Likewise.
33033         * doc/posix-functions/wcstold.texi: Likewise.
33034         * doc/posix-functions/wcstoll.texi: Likewise.
33035         * doc/posix-functions/wcstol.texi: Likewise.
33036         * doc/posix-functions/wcstombs.texi: Likewise.
33037         * doc/posix-functions/wcstoull.texi: Likewise.
33038         * doc/posix-functions/wcstoul.texi: Likewise.
33039         * doc/posix-functions/wcstoumax.texi: Likewise.
33040         * doc/posix-functions/wcswidth.texi: Likewise.
33041         * doc/posix-functions/wcsxfrm.texi: Likewise.
33042         * doc/posix-functions/wctob.texi: Likewise.
33043         * doc/posix-functions/wctomb.texi: Likewise.
33044         * doc/posix-functions/wctrans.texi: Likewise.
33045         * doc/posix-functions/wctype.texi: Likewise.
33046         * doc/posix-functions/wcwidth.texi: Likewise.
33047         * doc/posix-functions/wmemchr.texi: Likewise.
33048         * doc/posix-functions/wmemcmp.texi: Likewise.
33049         * doc/posix-functions/wmemcpy.texi: Likewise.
33050         * doc/posix-functions/wmemmove.texi: Likewise.
33051         * doc/posix-functions/wmemset.texi: Likewise.
33052         * doc/posix-functions/wprintf.texi: Likewise.
33053         * doc/posix-functions/wscanf.texi: Likewise.
33054
33055 2008-12-21  Bruno Haible  <bruno@clisp.org>
33056
33057         Update doc for HP-UX 11.11.
33058         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33059         in HP-UX version 11.00, not in all versions of HP-UX 11.
33060         * doc/posix-functions/fwide.texi: Likewise.
33061         * doc/posix-functions/fwprintf.texi: Likewise.
33062         * doc/posix-functions/fwscanf.texi: Likewise.
33063         * doc/posix-functions/inet_ntop.texi: Likewise.
33064         * doc/posix-functions/inet_pton.texi: Likewise.
33065         * doc/posix-functions/mbrlen.texi: Likewise.
33066         * doc/posix-functions/mbrtowc.texi: Likewise.
33067         * doc/posix-functions/mbsinit.texi: Likewise.
33068         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33069         * doc/posix-functions/swprintf.texi: Likewise.
33070         * doc/posix-functions/swscanf.texi: Likewise.
33071         * doc/posix-functions/towctrans.texi: Likewise.
33072         * doc/posix-functions/vfwprintf.texi: Likewise.
33073         * doc/posix-functions/vswprintf.texi: Likewise.
33074         * doc/posix-functions/vwprintf.texi: Likewise.
33075         * doc/posix-functions/wcrtomb.texi: Likewise.
33076         * doc/posix-functions/wcsrtombs.texi: Likewise.
33077         * doc/posix-functions/wcsstr.texi: Likewise.
33078         * doc/posix-functions/wctob.texi: Likewise.
33079         * doc/posix-functions/wctrans.texi: Likewise.
33080         * doc/posix-functions/wmemchr.texi: Likewise.
33081         * doc/posix-functions/wmemcmp.texi: Likewise.
33082         * doc/posix-functions/wmemcpy.texi: Likewise.
33083         * doc/posix-functions/wmemmove.texi: Likewise.
33084         * doc/posix-functions/wmemset.texi: Likewise.
33085         * doc/posix-functions/wprintf.texi: Likewise.
33086         * doc/posix-functions/wscanf.texi: Likewise.
33087
33088 2008-12-21  Bruno Haible  <bruno@clisp.org>
33089
33090         Work around a portability problem.
33091         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33092         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33093
33094 2008-12-20  Bruno Haible  <bruno@clisp.org>
33095
33096         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33097         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33098         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33100         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33101
33102         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33103         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33104         set.
33105         (GNULIB_defined_mbstate_t): New macro.
33106         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33107         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33108         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33109         reuses the system's mbrtowc function but works around the bugs.
33110         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33111         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33112         macros.
33113         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33114         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33115         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33116         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33117         REPLACE_MBSINIT if mbsinit needs to be overridden.
33118         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33119         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33120         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33121         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33122         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33123         m4/locale-zh.m4.
33124         (Depends): Add mbsinit.
33125         * modules/mbsinit (Depends): Add mbrtowc.
33126         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33127
33128 2008-12-20  Bruno Haible  <bruno@clisp.org>
33129
33130         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33131         so that there are no conversion errors on AIX.
33132         * tests/test-mbsrtowcs.c (main): LIkewise.
33133
33134 2008-12-20  Bruno Haible  <bruno@clisp.org>
33135
33136         Work around wctob bug on Solaris <= 9.
33137         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33138         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33139         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33140         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33141         * modules/wctob (Files): Add m4/locale-fr.m4.
33142         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33143
33144 2008-12-20  Bruno Haible  <bruno@clisp.org>
33145
33146         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33147         /dev/null.
33148         * tests/test-select-in.sh: Likewise.
33149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33150
33151 2008-12-20  Bruno Haible  <bruno@clisp.org>
33152
33153         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33154         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33155         Cygwin 1.5.x.
33156
33157 2008-12-20  Bruno Haible  <bruno@clisp.org>
33158
33159         Ensure mbstate_t is defined on HP-UX 11.11.
33160         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33161         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33162         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33163         AC_USE_SYSTEM_EXTENSIONS.
33164         * modules/fnmatch (Depends-on): Add extensions.
33165         * modules/mbrlen (Depends-on): Likewise.
33166         * modules/mbrtowc (Depends-on): Likewise.
33167         * modules/mbsinit (Depends-on): Likewise.
33168         * modules/mbsrtowcs (Depends-on): Likewise.
33169         * modules/mbswidth (Depends-on): Likewise.
33170         * modules/quotearg (Depends-on): Likewise.
33171         * modules/strftime (Depends-on): Likewise.
33172
33173 2008-12-20  Bruno Haible  <bruno@clisp.org>
33174
33175         Ensure wctob is declared on IRIX 6.5.
33176         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33177         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33178         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33179         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33180         of HAVE_WCTOB.
33181         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33182         HAVE_WCTOB.
33183         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33184
33185 2008-12-19  Bruno Haible  <bruno@clisp.org>
33186
33187         * modules/mbsrtowcs-tests: New file.
33188         * tests/test-mbsrtowcs1.sh: New file.
33189         * tests/test-mbsrtowcs2.sh: New file.
33190         * tests/test-mbsrtowcs3.sh: New file.
33191         * tests/test-mbsrtowcs4.sh: New file.
33192         * tests/test-mbsrtowcs.c: New file.
33193
33194         New module 'mbsrtowcs'.
33195         * lib/wchar.in.h (mbsrtowcs): New declaration.
33196         * lib/mbsrtowcs.c: New file.
33197         * m4/mbsrtowcs.m4: New file.
33198         * modules/mbsrtowcs: New file.
33199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33200         HAVE_MBSRTOWCS.
33201         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33202         HAVE_MBSRTOWCS.
33203         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33204
33205 2008-12-19  Bruno Haible  <bruno@clisp.org>
33206
33207         New module 'mbrlen'.
33208         * lib/wchar.in.h (mbrlen): New declaration.
33209         * lib/mbrlen.c: New file.
33210         * m4/mbrlen.m4: New file.
33211         * modules/mbrlen: New file.
33212         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33213         HAVE_MBRLEN.
33214         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33215         HAVE_MBRLEN.
33216         * doc/posix-functions/mbrlen.texi: Document the new module.
33217
33218 2008-12-19  Bruno Haible  <bruno@clisp.org>
33219
33220         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33221         * modules/mbrtowc (Depends-on): Add verify.
33222         Suggested by Paul Eggert.
33223
33224 2008-12-18  Bruno Haible  <bruno@clisp.org>
33225
33226         * modules/mbsinit-tests: New file.
33227         * tests/test-mbsinit.sh: New file.
33228         * tests/test-mbsinit.c: New file.
33229
33230 2008-12-18  Bruno Haible  <bruno@clisp.org>
33231
33232         * modules/mbrtowc-tests: New file.
33233         * tests/test-mbrtowc1.sh: New file.
33234         * tests/test-mbrtowc2.sh: New file.
33235         * tests/test-mbrtowc3.sh: New file.
33236         * tests/test-mbrtowc4.sh: New file.
33237         * tests/test-mbrtowc.c: New file.
33238
33239         New module 'mbrtowc'.
33240         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33241         mbsinit and mbrtowc.
33242         (mbrtowc): New declaration.
33243         * lib/mbrtowc.c: New file.
33244         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33245         * modules/mbrtowc: New file.
33246         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33247         HAVE_MBRTOWC.
33248         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33249         HAVE_MBRTOWC.
33250         * doc/posix-functions/mbrtowc.texi: Document the new module.
33251
33252 2008-12-18  Bruno Haible  <bruno@clisp.org>
33253
33254         New module 'wctob'.
33255         * lib/wchar.in.h (wctob): New declaration.
33256         * lib/wctob.c: New file.
33257         * m4/wctob.m4: New file.
33258         * modules/wctob: New file.
33259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33260         HAVE_WCTOB.
33261         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33262         * doc/posix-functions/wctob.texi: Document the new module.
33263
33264 2008-12-18  Bruno Haible  <bruno@clisp.org>
33265
33266         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33267         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33268
33269 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33270
33271         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33272         G. Christensen" <tgc@jupiterrise.com>.
33273
33274         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33275         G. Christensen" <tgc@jupiterrise.com>.
33276
33277         * lib/flock.c: Need to include string.h.  Reported by "Tom
33278         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33279         <ebb9@byu.net>.
33280
33281 2008-12-18  Bruno Haible  <bruno@clisp.org>
33282
33283         * m4/locale-ja.m4: New file, from GNU gettext.
33284
33285 2008-12-17  Bruno Haible  <bruno@clisp.org>
33286
33287         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33288         Suggested by Eric Blake.
33289
33290 2008-12-17  Bruno Haible  <bruno@clisp.org>
33291
33292         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33293
33294 2008-12-17  Bruno Haible  <bruno@clisp.org>
33295
33296         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33297         * modules/mbsinit (Depends-on): Add verify.
33298         Suggested by Paul Eggert.
33299
33300 2008-12-17  Bruno Haible  <bruno@clisp.org>
33301
33302         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33303         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33304         gl_FUNC_MBRTOWC.
33305         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33306         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33307         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33308         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33309         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33310         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33311         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33312         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33313         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33314         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33315         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33316         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33317         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33318         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33319         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33320         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33321         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33322         * modules/trim (configure.ac): Likewise.
33323
33324 2008-12-17  Bruno Haible  <bruno@clisp.org>
33325
33326         * modules/btowc-tests: New file.
33327         * tests/test-btowc1.sh: New file.
33328         * tests/test-btowc2.sh: New file.
33329         * tests/test-btowc.c: New file.
33330
33331         New module 'btowc'.
33332         * lib/wchar.in.h (btowc): New declaration.
33333         * lib/btowc.c: New file.
33334         * m4/btowc.m4: New file.
33335         * modules/btowc: New file.
33336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33337         HAVE_BTOWC.
33338         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33339         * doc/posix-functions/btowc.texi: Document the new module.
33340
33341 2008-12-17  Bruno Haible  <bruno@clisp.org>
33342
33343         New module 'mbsinit'.
33344         * lib/wchar.in.h (mbsinit): New declaration.
33345         * lib/mbsinit.c: New file.
33346         * m4/mbsinit.m4: New file.
33347         * modules/mbsinit: New file.
33348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33349         HAVE_MBSINIT.
33350         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33351         HAVE_MBSINIT.
33352         * doc/posix-functions/mbsinit.texi: Document the new module.
33353
33354 2008-12-16  Bruno Haible  <bruno@clisp.org>
33355
33356         * lib/unistd.in.h: Add comment.
33357         * tests/test-environ.c: Don't include <stdlib.h>.
33358
33359 2008-12-16  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/parse-duration.h (parse_duration): Document return value
33362         convention.
33363         * lib/parse-duration.c: Include specification header first. Add
33364         comments.
33365         (_): Remove macro.
33366         (parse_year_month_day, parse_hour_minute_second): Move side effects
33367         outside of strchr call.
33368         (parse_non_iso8601): Move side effects outside of isspace call.
33369         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33370         call.
33371
33372 2008-12-16  Bruno Haible  <bruno@clisp.org>
33373
33374         * tests/test-parse-duration.sh: Produce no output when the test
33375         succeeds.
33376
33377 2008-12-16  Bruno Haible  <bruno@clisp.org>
33378
33379         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33380         expressions.
33381
33382 2008-12-15  Bruno Haible  <bruno@clisp.org>
33383
33384         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33385         * doc/glibc-functions/flistxattr.texi: Likewise.
33386         * doc/glibc-functions/fopencookie.texi: Likewise.
33387         * doc/glibc-functions/fremovexattr.texi: Likewise.
33388         * doc/glibc-functions/fsetxattr.texi: Likewise.
33389         * doc/glibc-functions/getxattr.texi: Likewise.
33390         * doc/glibc-functions/lgetxattr.texi: Likewise.
33391         * doc/glibc-functions/listxattr.texi: Likewise.
33392         * doc/glibc-functions/llistxattr.texi: Likewise.
33393         * doc/glibc-functions/lremovexattr.texi: Likewise.
33394         * doc/glibc-functions/lsetxattr.texi: Likewise.
33395         * doc/glibc-functions/removexattr.texi: Likewise.
33396         * doc/glibc-functions/setxattr.texi: Likewise.
33397         * doc/posix-functions/open_memstream.texi: Likewise.
33398
33399 2008-12-15  Eric Blake  <ebb9@byu.net>
33400
33401         Update doc for cygwin 1.7.
33402         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33403         functions.
33404         * doc/posix-functions/fchmodat.texi: Likewise.
33405         * doc/posix-functions/fchownat.texi: Likewise.
33406         * doc/posix-functions/fdopendir.texi: Likewise.
33407         * doc/posix-functions/fmemopen.texi: Likewise.
33408         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33409         * doc/posix-functions/fstatat.texi: Likewise.
33410         * doc/posix-functions/futimens.texi: Likewise.
33411         * doc/posix-functions/gai_strerror.texi: Likewise.
33412         * doc/posix-functions/getaddrinfo.texi: Likewise.
33413         * doc/posix-functions/getnameinfo.texi: Likewise.
33414         * doc/posix-functions/if_freenameindex.texi: Likewise.
33415         * doc/posix-functions/if_indextoname.texi: Likewise.
33416         * doc/posix-functions/if_nameindex.texi: Likewise.
33417         * doc/posix-functions/if_nametoindex.texi: Likewise.
33418         * doc/posix-functions/insque.texi: Likewise.
33419         * doc/posix-functions/linkat.texi: Likewise.
33420         * doc/posix-functions/llrint.texi: Likewise.
33421         * doc/posix-functions/llrintf.texi: Likewise.
33422         * doc/posix-functions/llrintl.texi: Likewise.
33423         * doc/posix-functions/lockf.texi: Likewise.
33424         * doc/posix-functions/lrintl.texi: Likewise.
33425         * doc/posix-functions/mkdirat.texi: Likewise.
33426         * doc/posix-functions/mkfifoat.texi: Likewise.
33427         * doc/posix-functions/mknodat.texi: Likewise.
33428         * doc/posix-functions/mq_close.texi: Likewise.
33429         * doc/posix-functions/mq_getattr.texi: Likewise.
33430         * doc/posix-functions/mq_notify.texi: Likewise.
33431         * doc/posix-functions/mq_open.texi: Likewise.
33432         * doc/posix-functions/mq_receive.texi: Likewise.
33433         * doc/posix-functions/mq_send.texi: Likewise.
33434         * doc/posix-functions/mq_setattr.texi: Likewise.
33435         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33436         * doc/posix-functions/mq_timedsend.texi: Likewise.
33437         * doc/posix-functions/mq_unlink.texi: Likewise.
33438         * doc/posix-functions/open_memstream.texi: Likewise.
33439         * doc/posix-functions/openat.texi: Likewise.
33440         * doc/posix-functions/posix_fadvise.texi: Likewise.
33441         * doc/posix-functions/posix_fallocate.texi: Likewise.
33442         * doc/posix-functions/posix_madvise.texi: Likewise.
33443         * doc/posix-functions/posix_memalign.texi: Likewise.
33444         * doc/posix-functions/posix_openpt.texi: Likewise.
33445         * doc/posix-functions/readlinkat.texi: Likewise.
33446         * doc/posix-functions/remque.texi: Likewise.
33447         * doc/posix-functions/renameat.texi: Likewise.
33448         * doc/posix-functions/rintl.texi: Likewise.
33449         * doc/posix-functions/sem_unlink.texi: Likewise.
33450         * doc/posix-functions/shm_open.texi: Likewise.
33451         * doc/posix-functions/shm_unlink.texi: Likewise.
33452         * doc/posix-functions/signgam.texi: Likewise.
33453         * doc/posix-functions/sigset.texi: Likewise.
33454         * doc/posix-functions/stpcpy.texi: Likewise.
33455         * doc/posix-functions/stpncpy.texi: Likewise.
33456         * doc/posix-functions/strerror.texi: Likewise.
33457         * doc/posix-functions/strtod.texi: Likewise.
33458         * doc/posix-functions/symlinkat.texi: Likewise.
33459         * doc/posix-functions/unlinkat.texi: Likewise.
33460         * doc/posix-functions/utimensat.texi: Likewise.
33461         * doc/glibc-functions/bindresvport.texi: Likewise.
33462         * doc/glibc-functions/dn_expand.texi: Likewise.
33463         * doc/glibc-functions/exp10.texi: Likewise.
33464         * doc/glibc-functions/exp10f.texi: Likewise.
33465         * doc/glibc-functions/fgetxattr.texi: Likewise.
33466         * doc/glibc-functions/flistxattr.texi: Likewise.
33467         * doc/glibc-functions/fopencookie.texi: Likewise.
33468         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33469         * doc/glibc-functions/fremovexattr.texi: Likewise.
33470         * doc/glibc-functions/fsetxattr.texi: Likewise.
33471         * doc/glibc-functions/getifaddrs.texi: Likewise.
33472         * doc/glibc-functions/getxattr.texi: Likewise.
33473         * doc/glibc-functions/lgetxattr.texi: Likewise.
33474         * doc/glibc-functions/listxattr.texi: Likewise.
33475         * doc/glibc-functions/llistxattr.texi: Likewise.
33476         * doc/glibc-functions/lremovexattr.texi: Likewise.
33477         * doc/glibc-functions/lsetxattr.texi: Likewise.
33478         * doc/glibc-functions/pow10.texi: Likewise.
33479         * doc/glibc-functions/pow10f.texi: Likewise.
33480         * doc/glibc-functions/rcmd_af.texi: Likewise.
33481         * doc/glibc-functions/removexattr.texi: Likewise.
33482         * doc/glibc-functions/res_init.texi: Likewise.
33483         * doc/glibc-functions/res_mkquery.texi: Likewise.
33484         * doc/glibc-functions/res_query.texi: Likewise.
33485         * doc/glibc-functions/res_querydomain.texi: Likewise.
33486         * doc/glibc-functions/res_send.texi: Likewise.
33487         * doc/glibc-functions/rresvport_af.texi: Likewise.
33488         * doc/glibc-functions/setxattr.texi: Likewise.
33489         * doc/glibc-functions/strcasestr.texi: Likewise.
33490
33491 2008-12-15  Bruno Haible  <bruno@clisp.org>
33492
33493         Fix compilation error on OSF/1 4.0.
33494         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33495         <sys/time.h>, simply delegate to the system header.
33496         Reported by Daniel Richard G. <oss@teragram.com>.
33497
33498 2008-12-15  Bruno Haible  <bruno@clisp.org>
33499
33500         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33501         * doc/posix-functions/fchmodat.texi: Likewise.
33502         * doc/posix-functions/fchownat.texi: Likewise.
33503         * doc/posix-functions/fdopendir.texi: Likewise.
33504         * doc/posix-functions/fstatat.texi: Likewise.
33505         * doc/posix-functions/mkdirat.texi: Likewise.
33506         * doc/posix-functions/unlinkat.texi: Likewise.
33507
33508 2008-12-14  Bruno Haible  <bruno@clisp.org>
33509
33510         Update doc for POSIX:2008.
33511         * doc/posix-functions/faccessat.texi: New file.
33512         * doc/posix-functions/fchmodat.texi: New file.
33513         * doc/posix-functions/fchownat.texi: New file.
33514         * doc/posix-functions/fdopendir.texi: New file.
33515         * doc/posix-functions/fstatat.texi: New file.
33516         * doc/posix-functions/futimens.texi: New file.
33517         * doc/posix-functions/linkat.texi: New file.
33518         * doc/posix-functions/mkdirat.texi: New file.
33519         * doc/posix-functions/mkfifoat.texi: New file.
33520         * doc/posix-functions/mknodat.texi: New file.
33521         * doc/posix-functions/open_wmemstream.texi: New file.
33522         * doc/posix-functions/openat.texi: New file.
33523         * doc/posix-functions/psiginfo.texi: New file.
33524         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33525         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33526         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33527         * doc/posix-functions/readlinkat.texi: New file.
33528         * doc/posix-functions/renameat.texi: New file.
33529         * doc/posix-functions/strerror_l.texi: New file.
33530         * doc/posix-functions/symlinkat.texi: New file.
33531         * doc/posix-functions/unlinkat.texi: New file.
33532         * doc/posix-functions/utimensat.texi: New file.
33533         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33534
33535 2008-12-14  Bruno Haible  <bruno@clisp.org>
33536
33537         Update doc for POSIX:2008.
33538         * doc/posix-functions/alphasort.texi: Renamed from
33539         doc/glibc-functions/alphasort.texi.
33540         * doc/posix-functions/dirfd.texi: Renamed from
33541         doc/glibc-functions/dirfd.texi.
33542         * doc/posix-functions/dprintf.texi: Renamed from
33543         doc/glibc-functions/dprintf.texi.
33544         * doc/posix-functions/duplocale.texi: Renamed from
33545         doc/glibc-functions/duplocale.texi.
33546         * doc/posix-functions/fexecve.texi: Renamed from
33547         doc/glibc-functions/fexecve.texi.
33548         * doc/posix-functions/fmemopen.texi: Renamed from
33549         doc/glibc-functions/fmemopen.texi.
33550         * doc/posix-functions/freelocale.texi: Renamed from
33551         doc/glibc-functions/freelocale.texi.
33552         * doc/posix-functions/getdate_err.texi: Renamed from
33553         doc/glibc-functions/getdate_err.texi.
33554         * doc/posix-functions/isalnum_l.texi: Renamed from
33555         doc/glibc-functions/isalnum_l.texi.
33556         * doc/posix-functions/isalpha_l.texi: Renamed from
33557         doc/glibc-functions/isalpha_l.texi.
33558         * doc/posix-functions/isblank_l.texi: Renamed from
33559         doc/glibc-functions/isblank_l.texi.
33560         * doc/posix-functions/iscntrl_l.texi: Renamed from
33561         doc/glibc-functions/iscntrl_l.texi.
33562         * doc/posix-functions/isdigit_l.texi: Renamed from
33563         doc/glibc-functions/isdigit_l.texi.
33564         * doc/posix-functions/isgraph_l.texi: Renamed from
33565         doc/glibc-functions/isgraph_l.texi.
33566         * doc/posix-functions/islower_l.texi: Renamed from
33567         doc/glibc-functions/islower_l.texi.
33568         * doc/posix-functions/isprint_l.texi: Renamed from
33569         doc/glibc-functions/isprint_l.texi.
33570         * doc/posix-functions/ispunct_l.texi: Renamed from
33571         doc/glibc-functions/ispunct_l.texi.
33572         * doc/posix-functions/isspace_l.texi: Renamed from
33573         doc/glibc-functions/isspace_l.texi.
33574         * doc/posix-functions/isupper_l.texi: Renamed from
33575         doc/glibc-functions/isupper_l.texi.
33576         * doc/posix-functions/iswalnum_l.texi: Renamed from
33577         doc/glibc-functions/iswalnum_l.texi.
33578         * doc/posix-functions/iswalpha_l.texi: Renamed from
33579         doc/glibc-functions/iswalpha_l.texi.
33580         * doc/posix-functions/iswblank_l.texi: Renamed from
33581         doc/glibc-functions/iswblank_l.texi.
33582         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33583         doc/glibc-functions/iswcntrl_l.texi.
33584         * doc/posix-functions/iswctype_l.texi: Renamed from
33585         doc/glibc-functions/iswctype_l.texi.
33586         * doc/posix-functions/iswdigit_l.texi: Renamed from
33587         doc/glibc-functions/iswdigit_l.texi.
33588         * doc/posix-functions/iswgraph_l.texi: Renamed from
33589         doc/glibc-functions/iswgraph_l.texi.
33590         * doc/posix-functions/iswlower_l.texi: Renamed from
33591         doc/glibc-functions/iswlower_l.texi.
33592         * doc/posix-functions/iswprint_l.texi: Renamed from
33593         doc/glibc-functions/iswprint_l.texi.
33594         * doc/posix-functions/iswpunct_l.texi: Renamed from
33595         doc/glibc-functions/iswpunct_l.texi.
33596         * doc/posix-functions/iswspace_l.texi: Renamed from
33597         doc/glibc-functions/iswspace_l.texi.
33598         * doc/posix-functions/iswupper_l.texi: Renamed from
33599         doc/glibc-functions/iswupper_l.texi.
33600         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33601         doc/glibc-functions/iswxdigit_l.texi.
33602         * doc/posix-functions/isxdigit_l.texi: Renamed from
33603         doc/glibc-functions/isxdigit_l.texi.
33604         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33605         doc/glibc-functions/mbsnrtowcs.texi.
33606         * doc/posix-functions/mkdtemp.texi: Renamed from
33607         doc/glibc-functions/mkdtemp.texi.
33608         * doc/posix-functions/newlocale.texi: Renamed from
33609         doc/glibc-functions/newlocale.texi.
33610         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33611         doc/glibc-functions/nl_langinfo_l.texi.
33612         * doc/posix-functions/open_memstream.texi: Renamed from
33613         doc/glibc-functions/open_memstream.texi.
33614         * doc/posix-functions/opterr.texi: Renamed from
33615         doc/glibc-functions/opterr.texi.
33616         * doc/posix-functions/optind.texi: Renamed from
33617         doc/glibc-functions/optind.texi.
33618         * doc/posix-functions/optopt.texi: Renamed from
33619         doc/glibc-functions/optopt.texi.
33620         * doc/posix-functions/psignal.texi: Renamed from
33621         doc/glibc-functions/psignal.texi.
33622         * doc/posix-functions/scandir.texi: Renamed from
33623         doc/glibc-functions/scandir.texi.
33624         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33625         doc/glibc-functions/sched_get_priority_min.texi.
33626         * doc/posix-functions/signgam.texi: Renamed from
33627         doc/glibc-functions/signgam.texi.
33628         * doc/posix-functions/stpcpy.texi: Renamed from
33629         doc/glibc-functions/stpcpy.texi.
33630         * doc/posix-functions/stpncpy.texi: Renamed from
33631         doc/glibc-functions/stpncpy.texi.
33632         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33633         doc/glibc-functions/strcasecmp_l.texi.
33634         * doc/posix-functions/strcoll_l.texi: Renamed from
33635         doc/glibc-functions/strcoll_l.texi.
33636         * doc/posix-functions/strfmon_l.texi: Renamed from
33637         doc/glibc-functions/strfmon_l.texi.
33638         * doc/posix-functions/strftime_l.texi: Renamed from
33639         doc/glibc-functions/strftime_l.texi.
33640         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33641         doc/glibc-functions/strncasecmp_l.texi.
33642         * doc/posix-functions/strndup.texi: Renamed from
33643         doc/glibc-functions/strndup.texi.
33644         * doc/posix-functions/strnlen.texi: Renamed from
33645         doc/glibc-functions/strnlen.texi.
33646         * doc/posix-functions/strsignal.texi: Renamed from
33647         doc/glibc-functions/strsignal.texi.
33648         * doc/posix-functions/strxfrm_l.texi: Renamed from
33649         doc/glibc-functions/strxfrm_l.texi.
33650         * doc/posix-functions/timer_gettime.texi: Renamed from
33651         doc/glibc-functions/timer_gettime.texi.
33652         * doc/posix-functions/tolower_l.texi: Renamed from
33653         doc/glibc-functions/tolower_l.texi.
33654         * doc/posix-functions/toupper_l.texi: Renamed from
33655         doc/glibc-functions/toupper_l.texi.
33656         * doc/posix-functions/towctrans_l.texi: Renamed from
33657         doc/glibc-functions/towctrans_l.texi.
33658         * doc/posix-functions/towlower_l.texi: Renamed from
33659         doc/glibc-functions/towlower_l.texi.
33660         * doc/posix-functions/towupper_l.texi: Renamed from
33661         doc/glibc-functions/towupper_l.texi.
33662         * doc/posix-functions/uselocale.texi: Renamed from
33663         doc/glibc-functions/uselocale.texi.
33664         * doc/posix-functions/vdprintf.texi: Renamed from
33665         doc/glibc-functions/vdprintf.texi.
33666         * doc/posix-functions/wcpcpy.texi:
33667         Renamed from doc/glibc-functions/wcpcpy.texi.
33668         * doc/posix-functions/wcpncpy.texi: Renamed from
33669         doc/glibc-functions/wcpncpy.texi.
33670         * doc/posix-functions/wcscasecmp.texi: Renamed from
33671         doc/glibc-functions/wcscasecmp.texi.
33672         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33673         doc/glibc-functions/wcscasecmp_l.texi.
33674         * doc/posix-functions/wcscoll_l.texi: Renamed from
33675         doc/glibc-functions/wcscoll_l.texi.
33676         * doc/posix-functions/wcsdup.texi: Renamed from
33677         doc/glibc-functions/wcsdup.texi.
33678         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33679         doc/glibc-functions/wcsncasecmp.texi.
33680         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33681         doc/glibc-functions/wcsncasecmp_l.texi.
33682         * doc/posix-functions/wcsnlen.texi: Renamed from
33683         doc/glibc-functions/wcsnlen.texi.
33684         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33685         doc/glibc-functions/wcsnrtombs.texi.
33686         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33687         doc/glibc-functions/wcsxfrm_l.texi.
33688         * doc/posix-functions/wctrans_l.texi: Renamed from
33689         doc/glibc-functions/wctrans_l.texi.
33690         * doc/posix-functions/wctype_l.texi: Renamed from
33691         doc/glibc-functions/wctype_l.texi.
33692         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33693         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33694         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33695         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33696         these subsections.
33697         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33698         Remove sections.
33699
33700 2008-12-14  Bruno Haible  <bruno@clisp.org>
33701
33702         Update doc for POSIX:2008.
33703         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33704
33705 2008-12-14  Bruno Haible  <bruno@clisp.org>
33706
33707         Update doc for POSIX:2008.
33708         * doc/pastposix-functions/bcmp.texi: Renamed from
33709         doc/posix-functions/bcmp.texi.
33710         * doc/pastposix-functions/bcopy.texi: Renamed from
33711         doc/posix-functions/bcopy.texi.
33712         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33713         doc/posix-functions/bsd_signal.texi.
33714         * doc/pastposix-functions/bzero.texi: Renamed from
33715         doc/posix-functions/bzero.texi.
33716         * doc/pastposix-functions/ecvt.texi: Renamed from
33717         doc/posix-functions/ecvt.texi.
33718         * doc/pastposix-functions/fcvt.texi: Renamed from
33719         doc/posix-functions/fcvt.texi.
33720         * doc/pastposix-functions/ftime.texi: Renamed from
33721         doc/posix-functions/ftime.texi.
33722         * doc/pastposix-functions/gcvt.texi: Renamed from
33723         doc/posix-functions/gcvt.texi.
33724         * doc/pastposix-functions/getcontext.texi: Renamed from
33725         doc/posix-functions/getcontext.texi.
33726         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33727         doc/posix-functions/gethostbyaddr.texi.
33728         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33729         doc/posix-functions/gethostbyname.texi.
33730         * doc/pastposix-functions/getwd.texi: Renamed from
33731         doc/posix-functions/getwd.texi.
33732         * doc/pastposix-functions/h_errno.texi: Renamed from
33733         doc/posix-functions/h_errno.texi.
33734         * doc/pastposix-functions/index.texi: Renamed from
33735         doc/posix-functions/index.texi.
33736         * doc/pastposix-functions/makecontext.texi: Renamed from
33737         doc/posix-functions/makecontext.texi.
33738         * doc/pastposix-functions/mktemp.texi: Renamed from
33739         doc/posix-functions/mktemp.texi.
33740         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33741         doc/posix-functions/pthread_attr_getstackaddr.texi.
33742         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33743         doc/posix-functions/pthread_attr_setstackaddr.texi.
33744         * doc/pastposix-functions/rindex.texi: Renamed from
33745         doc/posix-functions/rindex.texi.
33746         * doc/pastposix-functions/scalb.texi: Renamed from
33747         doc/posix-functions/scalb.texi.
33748         * doc/pastposix-functions/setcontext.texi: Renamed from
33749         doc/posix-functions/setcontext.texi.
33750         * doc/pastposix-functions/swapcontext.texi: Renamed from
33751         doc/posix-functions/swapcontext.texi.
33752         * doc/pastposix-functions/ualarm.texi: Renamed from
33753         doc/posix-functions/ualarm.texi.
33754         * doc/pastposix-functions/usleep.texi: Renamed from
33755         doc/posix-functions/usleep.texi.
33756         * doc/pastposix-functions/vfork.texi: Renamed from
33757         doc/posix-functions/vfork.texi.
33758         * doc/pastposix-functions/wcswcs.texi: Renamed from
33759         doc/posix-functions/wcswcs.texi.
33760         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33761         (Function Substitutes): Update.
33762
33763 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33764
33765         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33766         m4/strerror.m4.
33767
33768 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33769             Bruno Haible  <bruno@clisp.org>
33770
33771         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33772
33773 2008-12-13  Bruno Haible  <bruno@clisp.org>
33774
33775         * modules/strtoull (Depends-on): Remove unistd.
33776
33777 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33778
33779         * modules/strtoull (Depends-on): Add stdlib.
33780
33781 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33782
33783         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33784
33785 2008-12-10  Jim Meyering  <meyering@redhat.com>
33786
33787         gl_ASSERT: don't say assertions are disabled when they're not
33788         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33789         "checking whether to enable assertions... no", when they are in
33790         fact enabled.  This is solely a bug in the output of configure.
33791         In spite of saying "no", NDEBUG was not defined in that case.
33792         Also, as noted by Eric Blake, leave assertions enabled upon
33793         --enable-assert=INVALID.
33794
33795 2008-12-10  Bruno Haible  <bruno@clisp.org>
33796
33797         Change MODULES.html to refer to POSIX:2008 where possible.
33798         * MODULES.html.sh (POSIX2008_URL): New variable.
33799         (posix_headers): Remove sys/timeb, ucontext.
33800         (posix2001_headers): New variable.
33801         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33802         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33803         index, makecontext, mktemp, pthread_attr_getstackaddr,
33804         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33805         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33806         (posix2001_functions): New variable.
33807         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33808         otherwise.
33809
33810 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33811
33812         add missing include to parse-duration.c
33813         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33814         * modules/parse-duration (Depends-on): Add xalloc.
33815
33816         fix sed script reading maint.mk
33817         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33818         (syntax-check-rules): Use it.
33819
33820 2008-12-09  Bruno Haible  <bruno@clisp.org>
33821
33822         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33823         MacOS X 10.4/PowerPC.
33824         Reported by Simon Josefsson.
33825
33826 2008-12-08  Jim Meyering  <meyering@redhat.com>
33827
33828         work around mingw's lack of some S_IF definitions
33829         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33830         Reported by Simon Josefsson.
33831
33832 2008-12-08  Bruno Haible  <bruno@clisp.org>
33833
33834         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33835         applied to variables. Needed on MacOS X 10.4/PowerPC.
33836         Reported by Simon Josefsson.
33837
33838 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33839         and Eric Blake  <ebb9@byu.net>
33840
33841         assert: honor --enable-assert
33842         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33843         order to honor --enable-assert, rather than treating it as a
33844         synonym for --disable-assert.
33845
33846 2008-12-08  Jim Meyering  <meyering@redhat.com>
33847
33848         * lib/posixtm.c: Remove now-useless declaration of mktime.
33849
33850         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33851
33852 2008-12-07  Bruno Haible  <bruno@clisp.org>
33853
33854         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33855         test_once): Mark functions as static.
33856         * tests/test-tls.c (test_tls): Likewise.
33857
33858 2008-12-07  Bruno Haible  <bruno@clisp.org>
33859
33860         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33861         iconv_register_autodetect.
33862
33863 2008-12-07  Jim Meyering  <meyering@redhat.com>
33864
33865         posixtm.c: avoid a warning
33866         * lib/posixtm.c (posixtime): Don't initialize tm0.
33867         It's no longer needed to placate gcc4's -Wuninitialized,
33868         and the attempt to placate would elicit a new warning.
33869
33870         unicodeio.c: mark unused parameters
33871         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33872         (fallback_failure_callback): Likewise.
33873
33874 2008-12-07  Bruno Haible  <bruno@clisp.org>
33875
33876         * gnulib-tool (func_create_testdir): When building the tests
33877         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33878         Reported by Simon Josefsson.
33879
33880 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33881
33882         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33883
33884 2008-12-06  Bruno Haible  <bruno@clisp.org>
33885
33886         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33887         Suggested by Eric Blake.
33888
33889 2008-12-06  Bruno Haible  <bruno@clisp.org>
33890
33891         Fix a c-stack test failure on MacOS X.
33892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33893         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33894         handler for SIGBUS as well.
33895         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33896         install a signal handler for SIGBUS as well.
33897         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33898
33899 2008-12-06  Bruno Haible  <bruno@clisp.org>
33900
33901         Advocacy documentation.
33902         * doc/gnulib-intro.texi (Benefits): New section.
33903         * doc/gnulib.texi: Update.
33904
33905 2008-12-06  Bruno Haible  <bruno@clisp.org>
33906
33907         Document the 'manywarnings' module.
33908         * doc/manywarnings.texi: New file.
33909         * doc/gnulib.texi: Include it.
33910
33911 2008-12-05  Eric Blake  <ebb9@byu.net>
33912
33913         tests: silence some gcc warnings
33914         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33915         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33916         type mismatches.
33917
33918 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33919             Bruno Haible  <bruno@clisp.org>
33920
33921         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33922
33923 2008-11-29  Jim Meyering  <meyering@redhat.com>
33924
33925         unicodeio.c: mark unused parameters
33926         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33927         (fallback_failure_callback): Likewise.
33928
33929         fts: fix a thinko
33930         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33931         (set_stat_type): Return S_IF*-valued "type" directly.
33932         Prompted by James Youngman's spotting a related bug.
33933         Confirmed by further testing through find.
33934
33935         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33936         * lib/fts.c (D_TYPE): Define.
33937         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33938         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33939         (s_ifmt_shift_bits): New function.
33940         (set_stat_type): New function.
33941         (fts_build): When not calling fts_stat, call set_stat_type
33942         to propagate dirent.d_type info to fts_read caller.
33943         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33944         fts_statp->st_mode type information may be valid.
33945
33946 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33947
33948         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33949         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33950         <sds@gnu.org>.
33951
33952 2008-11-20  Bruno Haible  <bruno@clisp.org>
33953
33954         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33955         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33956         INCLUDE_NEXT.
33957         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33958         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33959         * modules/math (Makefile.am): Substitute
33960         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33961         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33962
33963 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33964             Bruno Haible  <bruno@clisp.org>
33965
33966         * lib/stdint.in.h: Define all type macros so that their expansion is
33967         a single typedef'ed token. Fixes a compilation failure in Boost which
33968         does "using ::int8_t;".
33969
33970 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33971
33972         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33973         gl_MANYWARN_ALL_GCC.
33974         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33975         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33976         * modules/manywarnings: New file.
33977         * MODULES.html.sh: Mention manywarnings module.
33978
33979 2008-11-18  Bruno Haible  <bruno@clisp.org>
33980
33981         * doc/gnulib-tool.texi (Unit tests): New section.
33982
33983 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33984
33985         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33986         paths like 'lib/po/foo.po'.
33987
33988 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33989
33990         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33991         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33992
33993 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33994
33995         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33996         parameter works.
33997
33998 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33999
34000         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
34001
34002 2008-11-17  Bruce Korb  <bkorb@gnu.org>
34003
34004         * modules/parse-duration-tests: New file.
34005         * tests/test-parse-duration.sh: New file.
34006         * tests/test-parse-duration.c: New file.
34007
34008         New module 'parse-duration'.
34009         * lib/parse-duration.h: New file.
34010         * lib/parse-duration.c: New file.
34011         * modules/parse-duration: New file.
34012
34013 2008-11-17  Bruno Haible  <bruno@clisp.org>
34014
34015         * tests/test-select-out.sh: Comment out the first pipe test.
34016         Reported by Simon Josefsson.
34017
34018 2008-11-17  Bruno Haible  <bruno@clisp.org>
34019
34020         * modules/getaddrinfo (Depends-on): Add servent, hostent.
34021         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
34022         gl_HOSTENT.
34023
34024 2008-11-17  Bruno Haible  <bruno@clisp.org>
34025
34026         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
34027         -lnetwork and -lnet. Needed for Haiku and BeOS.
34028
34029 2008-11-16  Bruno Haible  <bruno@clisp.org>
34030
34031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
34032
34033 2008-11-16  Bruno Haible  <bruno@clisp.org>
34034
34035         Avoid test failure on Haiku.
34036         * tests/test-fsync.c: Include <errno.h>.
34037         (main): Don't require that fsync (0) fails.
34038
34039 2008-11-15  Bruno Haible  <bruno@clisp.org>
34040
34041         New module 'hostent'.
34042         * modules/hostent: New file.
34043         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
34044
34045 2008-11-15  Bruno Haible  <bruno@clisp.org>
34046
34047         New module 'servent'.
34048         * modules/servent: New file.
34049         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
34050
34051 2008-11-15  Bruno Haible  <bruno@clisp.org>
34052
34053         Avoid generating same test program with two different rules.
34054         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34055         test-frexp to test-frexp-nolibm.
34056         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34057         test-frexpl to test-frexpl-nolibm.
34058
34059 2008-11-15  Bruno Haible  <bruno@clisp.org>
34060
34061         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34062         $(FREXPL_LIBM).
34063
34064 2008-11-15  Bruno Haible  <bruno@clisp.org>
34065
34066         * lib/netdb.in.h: Activate the definitions also when the system's
34067         <netdb.h> has 'struct addrinfo'.
34068         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34069         EAI_OVERFLOW or AI_NUMERICSERV.
34070         * doc/posix-headers/netdb.texi: Document the problem.
34071
34072 2008-11-15  Bruno Haible  <bruno@clisp.org>
34073
34074         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34075
34076         Make the 'sched' module work on platforms where <sched.h> exists but
34077         is incomplete (such as Haiku).
34078         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34079         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34080         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34081         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34082         HAVE_STRUCT_SCHED_PARAM.
34083         * modules/sched (Depends-on): Add include_next.
34084         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34085         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34086         * doc/posix-headers/sched.texi: Document the issue.
34087
34088 2008-11-13  Jim Meyering  <meyering@redhat.com>
34089
34090         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34091         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34092         test would fail due to the difference in the Report bugs to ...
34093         line.  The expected address is empty, "<>", while the actual
34094         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34095
34096 2008-11-12  Bruno Haible  <bruno@clisp.org>
34097
34098         lstat: don't compile lstat.c on systems lacking lstat
34099         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34100         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34101         Reported by Daniel P. Berrange via Jim Meyering.
34102
34103 2008-11-12  Jim Meyering  <meyering@redhat.com>
34104
34105         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34106
34107 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34108
34109         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34110         instead.
34111
34112 2008-11-12  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/unicodeio.c: Include unistr.h.
34115         (utf8_wctomb): Remove function.
34116         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34117
34118 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34119
34120         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34121         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34122         <bruno@clisp.org>.
34123         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34124
34125 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34126
34127         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34128         * doc/gnulib.texi: Add section for warnings.
34129
34130 2008-11-11  Bruno Haible  <bruno@clisp.org>
34131
34132         * lib/sockets.h: Add a comment.
34133
34134 2008-11-11  Karl Berry  <karl@gnu.org>
34135
34136         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34137
34138 2008-11-11  Eric Blake  <ebb9@byu.net>
34139
34140         fdl.texi: avoid git symlinks
34141         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34142
34143 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34144
34145         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34146
34147 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34148
34149         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34150         (gl_WARN_ADD): Substitute $2 if literal.
34151
34152 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34153
34154         * m4/warning.m4: Remove.
34155
34156 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34157
34158         * m4/warnings.m4: Almost complete rewrite. :-)
34159
34160 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34161
34162         * modules/warnings: New module.
34163         * m4/warnings.m4: New file.
34164         * MODULES.html.sh: Mention warnings module.
34165         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34166         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34167
34168 2008-11-10  Eric Blake  <ebb9@byu.net>
34169
34170         fdl.texi: make a symlink to the latest version
34171         * doc/standards.texi: Revert today's earlier change.
34172         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34173         * doc/fdl.texi: ...and replace this with a symlink to the newer
34174         fdl-1.3.texi.
34175
34176 2008-11-10  Bruno Haible  <bruno@clisp.org>
34177
34178         * tests/test-select-fd.c (main): Accept the result file name as fourth
34179         argument.
34180         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34181         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34182
34183 2008-11-10  Bruno Haible  <bruno@clisp.org>
34184
34185         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34186         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34187         as autoconf-substituted macros.
34188         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34189         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34190         gl_NETDB_H_DEFAULTS. Set these variables.
34191         * modules/netdb (Makefile.am): Substitute these variables.
34192
34193 2008-11-10  Eric Blake  <ebb9@byu.net>
34194
34195         standards.texi: include correct file for FDL 1.3
34196         * doc/standards.texi (GNU Free Documentation License): Change
34197         include file to pull in FDL 1.3, not 1.2.
34198
34199         fdl.texi: revert accidental change to license
34200         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34201
34202 2008-11-10  Bruno Haible  <bruno@clisp.org>
34203
34204         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34205         cross-compiling guesses also when the native compile gives no result.
34206
34207 2008-11-10  Bruno Haible  <bruno@clisp.org>
34208
34209         * lib/spawni.c (__spawni): Force variable into the stack.
34210
34211 2008-11-10  Bruno Haible  <bruno@clisp.org>
34212
34213         Add support for Haiku.
34214         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34215         glibc and BeOS, but also on Haiku.
34216         * lib/fpurge.c (fpurge): Likewise.
34217         * lib/freadable.c (freadable): Likewise.
34218         * lib/freadahead.c (freadahead): Likewise.
34219         * lib/freading.c (freading): Likewise.
34220         * lib/freadptr.c (freadptr): Likewise.
34221         * lib/freadseek.c (freadptrinc): Likewise.
34222         * lib/fseeko.c (rpl_fseeko): Likewise.
34223         * lib/fseterr.c (fseterr): Likewise.
34224         * lib/fwritable.c (fwritable): Likewise.
34225         * lib/fwriting.c (fwriting): Likewise.
34226         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34227
34228 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34229
34230         * lib/config.charset: Treat Haiku like BeOS.
34231
34232 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34233
34234         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34235         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34236
34237 2008-11-08  Bruno Haible  <bruno@clisp.org>
34238
34239         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34240         AC_CACHE_CHECK.
34241
34242 2008-11-08  Bruno Haible  <bruno@clisp.org>
34243
34244         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34245
34246 2008-11-08  Bruno Haible  <bruno@clisp.org>
34247
34248         * tests/test-select-fd.c: New file.
34249         * tests/test-select-in.sh: New file.
34250         * tests/test-select-out.sh: New file.
34251         * tests/test-select-stdin.c: New file.
34252         * modules/select-tests (Files): Add the new files.
34253         (Depends-on): Add gettimeofday.
34254         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34255         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34256         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34257
34258 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34259             Bruno Haible  <bruno@clisp.org>
34260
34261         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34262
34263 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34264
34265         * build-aux/pmccabe2html: Added support for C++ source files.
34266
34267 2008-11-05  Ben Pfaff  <blp@gnu.org>
34268
34269         Fix lib/close.c build on Windows.
34270         * modules/close (Files): Add lib/w32sock.h.
34271
34272 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34273
34274         Accept Bison's NEWS format.
34275         * build-aux/announce-gen (print_news_deltas): Tweak
34276         $re_prefix.
34277
34278 2008-11-04  Bruno Haible  <bruno@clisp.org>
34279
34280         * modules/random_r (Maintainer): Add glibc.
34281
34282 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34283
34284         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34285         by karl@freefriends.org (Karl Berry).
34286         * doc/alloca.texi: Likewise.
34287         * doc/c-ctype.texi: Likewise.
34288         * doc/c-strcase.texi: Likewise.
34289         * doc/c-strcaseeq.texi: Likewise.
34290         * doc/c-strcasestr.texi: Likewise.
34291         * doc/c-strstr.texi: Likewise.
34292         * doc/c-strtod.texi: Likewise.
34293         * doc/c-strtold.texi: Likewise.
34294         * doc/ctime.texi: Likewise.
34295         * doc/error.texi: Likewise.
34296         * doc/fdl.texi: Likewise.
34297         * doc/gcd.texi: Likewise.
34298         * doc/getdate.texi: Likewise.
34299         * doc/gnulib-intro.texi: Likewise.
34300         * doc/gnulib-tool.texi: Likewise.
34301         * doc/gnulib.texi: Likewise.
34302         * doc/inet_ntoa.texi: Likewise.
34303         * doc/maintain.texi: Likewise.
34304         * doc/make-stds.texi: Likewise.
34305         * doc/quote.texi: Likewise.
34306         * doc/regexprops-generic.texi: Likewise.
34307         * doc/standards.texi: Likewise.
34308         * doc/verify.texi: Likewise.
34309         * doc/visibility.texi: Likewise.
34310         * doc/gnulib.texi (GNU Free Documentation License): Include
34311         fdl-1.3.texi instead of fdl.texi.
34312
34313 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34314
34315         * doc/fdl-1.3.texi: New file, from
34316         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34317         * modules/fdl-1.3: Add.
34318         * MODULES.html.sh: Add fdl-1.3.
34319
34320 2008-11-03  Bruno Haible  <bruno@clisp.org>
34321
34322         Make determination of absolute name of header file work with AIX xlc.
34323         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34324         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34325         preprocessing.
34326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34327         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34328
34329 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34330
34331         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34332         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34333         <ludo@gnu.org>.
34334
34335 2008-11-02  Bruno Haible  <bruno@clisp.org>
34336
34337         Mark 'strpbrk' obsolete.
34338         * modules/strpbrk (Status, Notice): New sections.
34339         * modules/strtok_r (Depends-on): Add strpbrk.
34340
34341 2008-11-02  Bruno Haible  <bruno@clisp.org>
34342
34343         Mark 'strdup' obsolete.
34344         * modules/strdup (Status, Notice): New sections.
34345         * modules/findprog (Depends-on): Add strdup.
34346         * modules/getaddrinfo (Depends-on): Likewise.
34347         * modules/localename (Depends-on): Likewise.
34348         * modules/relocatable-lib (Depends-on): Likewise.
34349         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34350         * modules/relocatable-prog (Depends-on): Likewise.
34351         * modules/trim (Depends-on): Likewise.
34352         * modules/unictype/gen-ctype (Depends-on): Likewise.
34353         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34354
34355 2008-11-02  Bruno Haible  <bruno@clisp.org>
34356
34357         Mark 'strcspn' obsolete.
34358         * modules/strcspn (Status, Notice): New sections.
34359
34360 2008-11-02  Bruno Haible  <bruno@clisp.org>
34361
34362         Mark 'rmdir' obsolete.
34363         * modules/rmdir (Status, Notice): New sections.
34364         * modules/clean-temp (Depends-on): Add rmdir.
34365         * modules/openat (Depends-on): Likewise.
34366
34367 2008-11-02  Bruno Haible  <bruno@clisp.org>
34368
34369         Mark 'raise' obsolete.
34370         * modules/raise (Status, Notice): New sections.
34371         (Include): Specify <signal.h>.
34372         * modules/stdio (Depends-on): Add raise.
34373         * modules/write (Depends-on): Likewise.
34374
34375 2008-11-02  Bruno Haible  <bruno@clisp.org>
34376
34377         Mark 'memset' obsolete.
34378         * modules/memset (Status, Notice): New sections.
34379
34380 2008-11-02  Bruno Haible  <bruno@clisp.org>
34381
34382         Mark 'memmove' obsolete.
34383         * modules/memmove (Status, Notice): New sections.
34384         * modules/argp (Depends-on): Add memmove.
34385         * modules/argz (Depends-on): Likewise.
34386         * modules/canonicalize (Depends-on): Likewise.
34387         * modules/canonicalize-lgpl (Depends-on): Likewise.
34388         * modules/fts (Depends-on): Likewise.
34389         * modules/getcwd (Depends-on): Likewise.
34390         * modules/human (Depends-on): Likewise.
34391         * modules/regex (Depends-on): Likewise.
34392         * modules/striconveh (Depends-on): Likewise.
34393         * modules/trim (Depends-on): Likewise.
34394         * modules/unistr/u8-move (Depends-on): Likewise.
34395         * modules/unistr/u16-move (Depends-on): Likewise.
34396         * modules/unistr/u32-move (Depends-on): Likewise.
34397
34398 2008-11-02  Bruno Haible  <bruno@clisp.org>
34399
34400         Mark 'memcpy' obsolete.
34401         * modules/memcpy (Status, Notice): New sections.
34402
34403 2008-11-02  Bruno Haible  <bruno@clisp.org>
34404
34405         Mark 'memcmp' obsolete.
34406         * modules/memcmp (Status, Notice): New sections.
34407         * modules/argmatch (Depends-on): Add memchr.
34408         * modules/backupfile (Depends-on): Likewise.
34409         * modules/c-strcasestr (Depends-on): Likewise.
34410         * modules/crypto/des (Depends-on): Likewise.
34411         * modules/csharpcomp (Depends-on): Likewise.
34412         * modules/fnmatch (Depends-on): Likewise.
34413         * modules/git-merge-changelog (Depends-on): Likewise.
34414         * modules/isnand (Depends-on): Likewise.
34415         * modules/isnand-nolibm (Depends-on): Likewise.
34416         * modules/isnanf (Depends-on): Likewise.
34417         * modules/isnanf-nolibm (Depends-on): Likewise.
34418         * modules/isnanl (Depends-on): Likewise.
34419         * modules/isnanl-nolibm (Depends-on): Likewise.
34420         * modules/mbchar (Depends-on): Likewise.
34421         * modules/memcoll (Depends-on): Likewise.
34422         * modules/quotearg (Depends-on): Likewise.
34423         * modules/regex (Depends-on): Likewise.
34424         * modules/relocatable-prog (Depends-on): Likewise.
34425         * modules/same (Depends-on): Likewise.
34426         * modules/signbit (Depends-on): Likewise.
34427         * modules/strcasestr-simple (Depends-on): Likewise.
34428         * modules/unictype/gen-ctype (Depends-on): Likewise.
34429         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34430         * modules/uniname/uniname (Depends-on): Likewise.
34431         * modules/unistr/u8-cmp (Depends-on): Likewise.
34432
34433 2008-11-02  Bruno Haible  <bruno@clisp.org>
34434
34435         Mark 'memchr' obsolete.
34436         * modules/memchr (Status, Notice): New sections.
34437         * modules/argp (Depends-on): Add memchr.
34438         * modules/base64 (Depends-on): Likewise.
34439         * modules/c-strcasestr (Depends-on): Likewise.
34440         * modules/chdir-long (Depends-on): Likewise.
34441         * modules/fnmatch (Depends-on): Likewise.
34442         * modules/getsubopt (Depends-on): Likewise.
34443         * modules/git-merge-changelog (Depends-on): Likewise.
34444         * modules/glob (Depends-on): Likewise.
34445         * modules/strcasestr-simple (Depends-on): Likewise.
34446         * modules/strnlen (Depends-on): Likewise.
34447
34448 2008-11-02  Bruno Haible  <bruno@clisp.org>
34449
34450         Mark 'atexit' obsolete.
34451         * modules/atexit (Status, Notice): New sections.
34452         * modules/chdir-long (Depends-on): Add atexit.
34453         * modules/wait-process (Depends-on): Likewise.
34454
34455 2008-11-02  Bruno Haible  <bruno@clisp.org>
34456
34457         * gnulib-tool: New option --with-obsolete.
34458         (func_usage): Document it.
34459         (func_modules_transitive_closure): Drop obsolete dependencies if
34460         incobsolete is not true.
34461         (func_import): Read and save the incobsolete variable to the cache.
34462
34463 2008-11-02  Bruno Haible  <bruno@clisp.org>
34464
34465         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34466         * gnulib-tool: New option --extract-status.
34467         (func_usage): Document it.
34468         (sed_extract_prog): Recognize it.
34469         (func_get_status): New function.
34470
34471 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34472
34473         * modules/sockets (License): Change from LGPL to LGPLv2+.
34474
34475 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34476
34477         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34478
34479 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34480
34481         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34482         Mention times and sys_times.
34483         * modules/sys_times, modules/sys_times-tests: New modules.
34484         * modules/times, modules/times-tests: Likewise
34485         * m4/sys_times_h.m4: New file.
34486         * lib/sys_times.in.h: Likewise
34487         * lib/times.c: Likewise.
34488         * tests/test-sys_times.c: Likewise.
34489         * tests/test-times.c: Likewise.
34490         * doc/posix-headers/sys_times.texi: Update.
34491         * doc/posix-functions/times.texi: Update.
34492
34493 2008-10-28  Jim Meyering  <meyering@redhat.com>
34494
34495         * modules/tempname (Depends-on): Add lstat.
34496
34497         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34498
34499 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34500
34501         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34502         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34503         using idiom used elsewhere in gnulib.
34504
34505 2008-10-27  Jim Meyering  <meyering@redhat.com>
34506
34507         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34508
34509 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34510
34511         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34512         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34513         programs.
34514         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34515
34516 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34517
34518         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34519
34520 2008-10-27  Bruno Haible  <bruno@clisp.org>
34521
34522         * tests/test-lstat.c: Include <stdio.h>.
34523
34524 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34525
34526         * modules/lstat-tests: New module.
34527         * tests/test-lstat.c: New file.
34528
34529 2008-10-26  Jim Meyering  <meyering@redhat.com>
34530
34531         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34532
34533 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34534             Bruno Haible  <bruno@clisp.org>
34535
34536         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34537         * modules/configmake (Include): Add a note that the include must come
34538         after all system headers.
34539         * lib/javaversion.c: Include configmake.h after all other includes.
34540
34541 2008-10-26  Bruno Haible  <bruno@clisp.org>
34542
34543         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34544         HAVE_STRUCT_RANDOM_DATA to 1.
34545         (gl_STDLIB_H): Simplify.
34546
34547 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34548
34549         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34550         substitute HAVE_STRUCT_RANDOM_DATA.
34551         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34552         random_data.
34553         * modules/stdlib (Makefile.am): Substitute
34554         HAVE_STRUCT_RANDOM_DATA.
34555
34556 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34557
34558         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34559         * doc/gnulib-intro.texi (Copyright): Likewise.
34560
34561 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34562
34563         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34564         findings.
34565
34566 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34567             Bruno Haible  <bruno@clisp.org>
34568
34569         * lib/unistd.in.h: Include <winsock2.h>.
34570         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34571         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34572         Provide dummy declarations.
34573         (gethostname): Override.
34574         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34575         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34576         gl_PREREQ_SYS_H_WINSOCK2.
34577         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34578         * doc/posix-functions/gethostname.texi: More details.
34579
34580 2008-10-25  Bruno Haible  <bruno@clisp.org>
34581
34582         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34583         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34584         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34585
34586         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34587         here ...
34588         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34589         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34590         gl_UNISTD_H_DEFAULTS.
34591
34592 2008-10-25  Eric Blake  <ebb9@byu.net>
34593
34594         signbit: avoid spurious compiler failure
34595         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34596         declarations inside function.
34597
34598 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34599             Bruno Haible  <bruno@clisp.org>
34600
34601         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34602         * modules/random_r (Depends-on): Add stdint.
34603
34604 2008-10-24  Bruno Haible  <bruno@clisp.org>
34605
34606         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34607         Eggert.
34608         * modules/strerror (License): Likewise.
34609
34610 2008-10-24  Jim Meyering  <meyering@redhat.com>
34611
34612         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34613         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34614
34615 2008-10-24  Eric Blake  <ebb9@byu.net>
34616
34617         getgroups: fix compilation when getgroups is available
34618         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34619         but with <config.h> override of getgroups disabled.
34620
34621 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34622
34623         * doc/gnulib.texi (Header files): Add note about C++ problems.
34624         Explained by Bruno Haible <bruno@clisp.org>.
34625
34626 2008-10-23  Bruno Haible  <bruno@clisp.org>
34627
34628         Define a dummy SA_NODEFER macro on Interix.
34629         * lib/signal.in.h (SA_NODEFER): Define fallback.
34630         Reported by Aleksey Cheusov <cheusov@tut.by> via
34631         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34632
34633 2008-10-23  Bruno Haible  <bruno@clisp.org>
34634
34635         * modules/freadahead (License): Change to LGPLv2+.
34636         Suggested by Simon Josefsson.
34637
34638 2008-10-23  Jim Meyering  <meyering@redhat.com>
34639
34640         random_r: new module
34641         * modules/random_r: New file.
34642         * m4/random_r.m4: New file.
34643         * lib/random_r.c: New file, from glibc.
34644         * modules/random_r-tests: New file.
34645         * tests/test-random_r.c: New file.
34646         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34647          Declare.
34648         (RAND_MAX): Define.
34649         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34650         * modules/stdlib: Substitute them, too.
34651         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34652         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34653         * doc/glibc-functions/random_r.texi: Likewise.
34654         * doc/glibc-functions/setstate_r.texi: Likewise.
34655         * doc/glibc-functions/srandom_r.texi: Likewise.
34656         * config/srclist.txt: Mention it.
34657
34658 2008-10-23  David Lutterkort  <lutter@redhat.com>
34659
34660         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34661         link requirement
34662
34663 2008-10-23  Jim Meyering  <meyering@redhat.com>
34664
34665         selinux-h: mark parameters of stub functions as intentionally unused
34666         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34667         * lib/se-context.in.h: Likewise.
34668
34669 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34670
34671         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34672
34673 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34674
34675         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34676
34677 2008-10-22  Eric Blake  <ebb9@byu.net>
34678
34679         glthread/thread: avoid compiler warning
34680         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34681         Add unreachable abort to silence compiler.
34682
34683 2008-10-22  Eric Blake  <ebb9@byu.net>
34684
34685         netdb: also supply struct addrinfo for cygwin 1.5.x
34686         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34687         older cygwin.
34688         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34689         cygwin.
34690         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34691
34692 2008-10-22  Bruno Haible  <bruno@clisp.org>
34693
34694         * users.txt: Update entry about pspp.
34695
34696 2008-10-21  Bruno Haible  <bruno@clisp.org>
34697
34698         Simplification.
34699         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34700         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34701
34702         Simplification.
34703         * lib/ioctl.c (ioctl): Don't undefine.
34704         * lib/socket.c (socket): Don't undefine.
34705
34706         Remove unused module indicator macros.
34707         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34708         GNULIB_$1 as a C macro.
34709
34710         * doc/posix-functions/close.texi: Undo last change.
34711         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34712         Windows platforms.
34713
34714 2008-10-21  Bruno Haible  <bruno@clisp.org>
34715
34716         Add gethostname() declaration to <unistd.h>.
34717         * lib/unistd.in.h (gethostname): New declaration.
34718         * lib/gethostname.c: Include <unistd.h>.
34719         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34720         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34722         and HAVE_GETHOSTNAME.
34723         * modules/gethostname (Depends-on): Add unistd.
34724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34725         (Include): Specify <unistd.h>.
34726         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34727         HAVE_GETHOSTNAME.
34728         * tests/test-gethostname.c: Include <unistd.h> first.
34729
34730 2008-10-21  Bruno Haible  <bruno@clisp.org>
34731
34732         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34733         * modules/select-tests (Depends-on): Likewise.
34734         Reported by Simon Josefsson.
34735
34736 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34737
34738         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34739         * lib/accept.c: New file, based on winsock.c.
34740         * lib/bind.c: New file, based on winsock.c.
34741         * lib/connect.c: New file, based on winsock.c.
34742         * lib/getpeername.c: New file, based on winsock.c.
34743         * lib/getsockname.c: New file, based on winsock.c.
34744         * lib/getsockopt.c: New file, based on winsock.c.
34745         * lib/ioctl.c: New file, based on winsock.c.
34746         * lib/listen.c: New file, based on winsock.c.
34747         * lib/recv.c: New file, based on winsock.c.
34748         * lib/recvfrom.c: New file, based on winsock.c.
34749         * lib/send.c: New file, based on winsock.c.
34750         * lib/sendto.c: New file, based on winsock.c.
34751         * lib/setsockopt.c: New file, based on winsock.c.
34752         * lib/shutdown.c: New file, based on winsock.c.
34753         * lib/socket.c: New file, based on winsock.c.
34754         * lib/w32sock.h: New file, based on winsock.c.
34755         * lib/winsock.c: Remove file.
34756         * modules/accept: Likewise.
34757         * modules/bind: Likewise.
34758         * modules/connect: Likewise.
34759         * modules/getpeername: Likewise.
34760         * modules/getsockname: Likewise.
34761         * modules/getsockopt: Likewise.
34762         * modules/ioctl: Likewise.
34763         * modules/listen: Likewise.
34764         * modules/recv: Likewise.
34765         * modules/recvfrom: Likewise.
34766         * modules/send: Likewise.
34767         * modules/sendto: Likewise.
34768         * modules/setsockopt: Likewise.
34769         * modules/shutdown: Likewise.
34770         * modules/socket: Use socket.c instead of winsock.c.
34771         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34772         * doc/posix-functions/accept.texi: Doc fix.
34773         * doc/posix-functions/bind.texi: Doc fix.
34774         * doc/posix-functions/close.texi: Doc fix.
34775         * doc/posix-functions/connect.texi: Doc fix.
34776         * doc/posix-functions/getpeername.texi: Doc fix.
34777         * doc/posix-functions/getsockname.texi: Doc fix.
34778         * doc/posix-functions/getsockopt.texi: Doc fix.
34779         * doc/posix-functions/ioctl.texi: Doc fix.
34780         * doc/posix-functions/listen.texi: Doc fix.
34781         * doc/posix-functions/recv.texi: Doc fix.
34782         * doc/posix-functions/recvfrom.texi: Doc fix.
34783         * doc/posix-functions/send.texi: Doc fix.
34784         * doc/posix-functions/sendto.texi: Doc fix.
34785         * doc/posix-functions/setsockopt.texi: Doc fix.
34786         * doc/posix-functions/shutdown.texi: Doc fix.
34787         * doc/posix-functions/socket.texi: Doc fix.
34788
34789 2008-10-20  Bruno Haible  <bruno@clisp.org>
34790
34791         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34792         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34793         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34794         as an alias for SIGABRT.
34795         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34796         (sigaction): Map it to SIGABRT.
34797         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34798
34799 2008-10-20  Bruno Haible  <bruno@clisp.org>
34800
34801         * lib/fts.c: Don't include lstat.h.
34802         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34803
34804         Move the lstat() declaration to <sys/stat.h>.
34805         * lib/lstat.h: Remove file.
34806         * lib/sys_stat.in.h: Add special invocation convention.
34807         (lstat): New declaration.
34808         * lib/lstat.c (orig_lstat): New function.
34809         (rpl_lstat): Use orig_lstat instead of lstat.
34810         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34811         AC_C_INLINE. Set REPLACE_LSTAT.
34812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34813         and REPLACE_LSTAT.
34814         * modules/lstat (Files): Remove lib/lstat.h.
34815         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34816         (Include): Specify <sys/stat.h> instead of lstat.h.
34817         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34818         REPLACE_LSTAT.
34819         * NEWS: Mention the change.
34820
34821 2008-10-20  Bruno Haible  <bruno@clisp.org>
34822
34823         * modules/posix_spawn-tests: New file.
34824         * tests/test-posix_spawn3.c: New file.
34825
34826 2008-10-20  Bruno Haible  <bruno@clisp.org>
34827
34828         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34829         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34830         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34831         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34832         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34833
34834 2008-10-20  Bruno Haible  <bruno@clisp.org>
34835
34836         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34837         of posix_spawn on AIX 5.3.
34838
34839 2008-10-20  Bruno Haible  <bruno@clisp.org>
34840
34841         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34842
34843 2008-10-20  Bruno Haible  <bruno@clisp.org>
34844
34845         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34846         of AC_LANG_PROGRAM.
34847
34848 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34849
34850         * lib/netdb.in.h: Don't define GNU specific constants until they
34851         are supported or needed.  Reported by Bruno Haible
34852         <bruno@clisp.org>.
34853
34854 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34855
34856         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34857
34858 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34859
34860         * lib/getaddrinfo.h: Remove file.
34861         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34862         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34863         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34864         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34865         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34866         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34867         * tests/test-getaddrinfo.c: Likewise.
34868         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34869         * NEWS: Mention change.
34870
34871 2008-10-19  Bruno Haible  <bruno@clisp.org>
34872
34873         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34874
34875 2008-10-19  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/wait-process.c: Include simply <sys/wait.h>.
34878         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34879         WIFSTOPPED): Remove fallback definitions.
34880         * modules/wait-process (Depends-on): Add sys_wait.
34881
34882         New module 'sys_wait'.
34883         * modules/sys_wait: New file.
34884         * lib/sys_wait.in.h: New file, partially copied from
34885         lib/wait-process.c.
34886         * m4/sys_wait_h.m4: New file.
34887         * doc/posix-headers/sys_wait.texi: Mention the new module.
34888
34889 2008-10-19  Bruno Haible  <bruno@clisp.org>
34890
34891         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34892
34893 2008-10-19  Bruno Haible  <bruno@clisp.org>
34894
34895         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34896         * lib/wait-process.c (WAIT_T): Remove type.
34897         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34898         (wait_subprocess): Update.
34899
34900 2008-10-19  Bruno Haible  <bruno@clisp.org>
34901
34902         New module 'atoll'.
34903         * modules/atoll: New file.
34904         * lib/stdlib.in.h (atoll): New declaration.
34905         * lib/atoll.c: New file, from glibc with modifications.
34906         * m4/atoll.m4: New file.
34907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34908         HAVE_ATOLL.
34909         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34910         * doc/posix-functions/atoll.texi: Mention the new module.
34911
34912 2008-10-19  Bruno Haible  <bruno@clisp.org>
34913
34914         Add strtoull() declaration to <stdlib.h>.
34915         * lib/stdlib.in.h (strtoull): New declaration.
34916         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34917         Set HAVE_STRTOULL.
34918         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34919         HAVE_STRTOULL.
34920         * modules/strtoull (Depends-on): Add stdlib.
34921         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34922         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34923         HAVE_STRTOULL.
34924
34925 2008-10-19  Bruno Haible  <bruno@clisp.org>
34926
34927         Add strtoll() declaration to <stdlib.h>.
34928         * lib/stdlib.in.h (strtoll): New declaration.
34929         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34930         Set HAVE_STRTOLL.
34931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34932         HAVE_STRTOLL.
34933         * modules/strtoll (Depends-on): Add stdlib.
34934         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34935         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34936
34937 2008-10-19  Bruno Haible  <bruno@clisp.org>
34938
34939         * modules/bcopy (Depends-on): Add strings.
34940         (Include): Specify <strings.h>.
34941
34942 2008-10-19  Bruno Haible  <bruno@clisp.org>
34943
34944         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34945
34946 2008-10-19  Bruno Haible  <bruno@clisp.org>
34947
34948         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34949         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34950         mingw.
34951
34952 2008-10-19  Bruno Haible  <bruno@clisp.org>
34953
34954         * lib/atanl.c: Don't include isnanl.h.
34955         * lib/cosl.c: Likewise.
34956         * lib/ldexpl.c: Likewise.
34957         * lib/logl.c: Likewise.
34958         * lib/sinl.c: Likewise.
34959         * lib/sqrtl.c: Likewise.
34960         * lib/tanl.c: Likewise.
34961
34962         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34963         * lib/isnanf.h: Remove file.
34964         * lib/isnand.h: Remove file.
34965         * lib/isnanl.h: Remove file.
34966         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34967         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34968         macros.
34969         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34970         HAVE_ISNANF, don't define it as a C macro.
34971         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34972         HAVE_ISNAND, don't define it as a C macro.
34973         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34974         HAVE_ISNANL, don't define it as a C macro.
34975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34976         HAVE_ISNAN[FDL].
34977         * modules/isnanf (Files): Remove lib/isnanf.h.
34978         (Depends-on): Add math.
34979         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34980         (Include): Specify <math.h> instead of isnanf.h.
34981         * modules/isnand (Files): Remove lib/isnand.h.
34982         (Depends-on): Add math.
34983         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34984         (Include): Specify <math.h> instead of isnand.h.
34985         * modules/isnanl (Files): Remove lib/isnanl.h.
34986         (Depends-on): Add math.
34987         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34988         (Include): Specify <math.h> instead of isnanl.h.
34989         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34990         HAVE_ISNAN[FDL].
34991         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34992         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34993         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34994         * NEWS: Mention the change.
34995
34996 2008-10-18  Bruno Haible  <bruno@clisp.org>
34997
34998         Add getusershell(), setusershell(), endusershell() declarations to
34999         <unistd.h>.
35000         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
35001         declarations.
35002         * lib/getusershell.c: Include unistd.h.
35003         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
35004         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35005         HAVE_GETUSERSHELL.
35006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
35007         and HAVE_GETUSERSHELL.
35008         * modules/getusershell (Depends-on): Add unistd, extensions.
35009         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35010         (Include): Specify <unistd.h>.
35011         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
35012         HAVE_GETUSERSHELL.
35013
35014 2008-10-18  Bruno Haible  <bruno@clisp.org>
35015
35016         Add a getloadavg() declaration to <stdlib.h>.
35017         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
35018         getloadavg declaration.
35019         (getloadavg): New declaration.
35020         * lib/getloadavg.c: Include <stdlib.h> first.
35021         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
35022         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
35023         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
35024         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
35025         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35026         * modules/getloadavg (Depends-on): Add stdlib, extensions.
35027         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35028         (Include): Specify <stdlib.h>.
35029         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
35030         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
35031
35032 2008-10-18  Bruno Haible  <bruno@clisp.org>
35033
35034         * lib/dirchownmod.c: Don't include lchmod.h.
35035
35036         Move the lchmod() declaration to <sys/stat.h>.
35037         * lib/lchmod.h: Remove file.
35038         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
35039         (lchmod): New declaration, moved here from lib/lchown.h.
35040         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
35041         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
35042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
35043         and HAVE_LCHMOD.
35044         * modules/lchmod (Files): Remove lib/lchmod.h.
35045         (Depends-on): Add sys_stat, extensions.
35046         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
35047         (Include): Specify <sys/stat.h> instead of lchmod.h.
35048         * modules/sys_stat (Depends-on): Add link-warning.
35049         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
35050         definition of GL_LINK_WARNING.
35051         * NEWS: Mention the change.
35052
35053 2008-10-18  Bruno Haible  <bruno@clisp.org>
35054
35055         * lib/fchdir.c: Don't include dirfd.h.
35056         * lib/fts.c: Likewise.
35057         * lib/getcwd.c: Likewise.
35058         * lib/glob.c: Likewise.
35059
35060         Move the dirfd() declaration to <dirent.h>.
35061         * lib/dirfd.h: Remove file.
35062         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35063         (dirfd): New declaration.
35064         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35065         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35066         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35067         HAVE_DECL_DIRFD.
35068         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35069         HAVE_DECL_DIRFD.
35070         * modules/dirfd (Files): Remove lib/dirfd.h.
35071         (Depends-on): Add dirent, extensions.
35072         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35073         (Include): Specify <dirent.h> instead of dirfd.h.
35074         * modules/dirent (Depends-on): Add link-warning.
35075         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35076         definition of GL_LINK_WARNING.
35077         * NEWS: Mention the change.
35078
35079 2008-10-18  Bruno Haible  <bruno@clisp.org>
35080
35081         Move the euidaccess() declaration to <unistd.h>.
35082         * lib/euidaccess.h: Remove file.
35083         * lib/unistd.in.h (euidaccess): New declaration.
35084         * lib/euidaccess.c: Don't include euidaccess.h.
35085         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35086         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35087         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35088         and HAVE_EUIDACCESS.
35089         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35090         (Depends-on): Add unistd.
35091         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35092         (Include): Specify <unistd.h> instead of euidaccess.h.
35093         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35094         HAVE_EUIDACCESS.
35095         * NEWS: Mention the change.
35096
35097 2008-10-18  Bruno Haible  <bruno@clisp.org>
35098
35099         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35100
35101         Move the getdomainname() declaration to <unistd.h>.
35102         * lib/getdomainname.h: Remove file.
35103         * lib/unistd.in.h (getdomainname): New declaration.
35104         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35105         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35106         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35107         HAVE_GETDOMAINNAME.
35108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35109         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35110         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35111         (Depends-on): Add unistd, extensions.
35112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35113         (Includes): Specify <unistd.h> instead of getdomainname.h.
35114         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35115         HAVE_GETDOMAINNAME.
35116         * NEWS: Mention the change.
35117
35118 2008-10-18  Bruno Haible  <bruno@clisp.org>
35119
35120         * modules/dirent: New file.
35121         * m4/dirent_h.m4: New file.
35122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35123         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35124         * modules/fchdir (Files): Remove lib/dirent.in.h.
35125         (Depends-on): Add dirent.
35126         (Makefile.am): Move rules to modules/dirent.
35127         * doc/posix-headers/dirent.texi: Mention the new module.
35128
35129 2008-10-18  Bruno Haible  <bruno@clisp.org>
35130
35131         Avoid -Wunused-parameter warnings in public gnulib header files.
35132         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35133         macro.
35134         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35135
35136 2008-10-18  Bruno Haible  <bruno@clisp.org>
35137
35138         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35139         * doc/glibc-functions/error.texi: Mention the module 'error'.
35140         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35141         * doc/glibc-functions/getdomainname.texi: Mention the module
35142         'getdomainname'.
35143         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35144         * doc/glibc-functions/getpagesize.texi: Mention the module
35145         'getpagesize'.
35146         * doc/glibc-functions/getusershell.texi: Mention the module
35147         'getusershell'.
35148         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35149         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35150         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35151         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35152         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35153         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35154         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35155         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35156         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35157         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35158         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35159         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35160         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35161         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35162
35163 2008-10-17  Bruno Haible  <bruno@clisp.org>
35164
35165         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35166         HP-UX and IRIX, use -0.0L.
35167         * tests/test-ceill.c (minus_zero): Likewise.
35168         * tests/test-floorl.c (minus_zero): Likewise.
35169         * tests/test-frexpl.c (minus_zero): Likewise.
35170         * tests/test-isnan.c (minus_zerol): Likewise.
35171         * tests/test-isnanl.h (minus_zero): Likewise.
35172         * tests/test-ldexpl.c (minus_zero): Likewise.
35173         * tests/test-roundl.c (minus_zero): Likewise.
35174         * tests/test-signbit.c (minus_zerol): Likewise.
35175         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35176         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35177         * tests/test-truncl.c (minus_zero): Likewise.
35178         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35179         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35180         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35181         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35182
35183 2008-10-17  Bruno Haible  <bruno@clisp.org>
35184
35185         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35186         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35187         that it gets activated only for gcc >= 3.0.
35188         * lib/dirent.in.h: Likewise.
35189         * lib/errno.in.h: Likewise.
35190         * lib/fcntl.in.h: Likewise.
35191         * lib/float.in.h: Likewise.
35192         * lib/iconv.in.h: Likewise.
35193         * lib/inttypes.in.h: Likewise.
35194         * lib/locale.in.h: Likewise.
35195         * lib/math.in.h: Likewise.
35196         * lib/netdb.in.h: Likewise.
35197         * lib/netinet_in.in.h: Likewise.
35198         * lib/search.in.h: Likewise.
35199         * lib/signal.in.h: Likewise.
35200         * lib/spawn.in.h: Likewise.
35201         * lib/stdarg.in.h: Likewise.
35202         * lib/stdint.in.h: Likewise.
35203         * lib/stdio.in.h: Likewise.
35204         * lib/stdlib.in.h: Likewise.
35205         * lib/string.in.h: Likewise.
35206         * lib/strings.in.h: Likewise.
35207         * lib/sys_file.in.h: Likewise.
35208         * lib/sys_ioctl.in.h: Likewise.
35209         * lib/sys_select.in.h: Likewise.
35210         * lib/sys_socket.in.h: Likewise.
35211         * lib/sys_stat.in.h: Likewise.
35212         * lib/sys_time.in.h: Likewise.
35213         * lib/sysexits.in.h: Likewise.
35214         * lib/time.in.h: Likewise.
35215         * lib/unistd.in.h: Likewise.
35216         * lib/wchar.in.h: Likewise.
35217         * lib/wctype.in.h: Likewise.
35218         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35219
35220 2008-10-17  Jim Meyering  <meyering@redhat.com>
35221
35222         ignore-value: don't depend on inline module
35223         * modules/ignore-value (Depends-on): Remove 'inline'.
35224         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35225         Suggestion from Bruno Haible.
35226
35227 2008-10-17  Bruno Haible  <bruno@clisp.org>
35228
35229         New implementation of condition variables for Win32.
35230         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35231         (gl_linked_waitqueue_t): New type.
35232         (gl_cond_t): Use it.
35233         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35234         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35235         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35236         (glthread_cond_init_func, glthread_cond_wait_func,
35237         glthread_cond_timedwait_func, glthread_cond_signal_func,
35238         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35239         Reimplemented on the basis of gl_linked_waitqueue_t.
35240         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35241         gl_waitqueue_t.
35242         (gl_rwlock_t): Update.
35243         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35244
35245 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35246
35247         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35248         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35249
35250 2008-10-17  Jim Meyering  <meyering@redhat.com>
35251
35252         ignore-value: new module
35253         * modules/ignore-value: New file.
35254         * lib/ignore-value.h: New file.
35255         * MODULES.html.sh (Compiler warning management): New section,
35256         just for this module.  More to come.
35257
35258 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35259
35260         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35261         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35262         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35263
35264 2008-10-16  Jim Meyering  <meyering@redhat.com>
35265
35266         openat-die.c: avoid 'no previous prototype' warning
35267         * lib/openat-die.c: Include "openat.h".
35268         Reported by Reuben Thomas <rrt@sc3d.org>.
35269
35270 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35271
35272         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35273         * lib/netdb.in.h: Fix typo.
35274         Reported by Bruno Haible  <bruno@clisp.org>
35275
35276         * lib/netdb.in.h: Include sys/socket.h for platforms without
35277         netdb.h, to get structures like hostent on MinGW.
35278         * modules/netdb (Depends-on): Add sys_socket.
35279
35280 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35281
35282         * modules/netdb, modules/netdb-tests: New file.
35283         * m4/netdb_h.m4: New file.
35284         * lib/netdb.in.h: Add, currently just an empty file pending
35285         definitions.
35286         * tests/test-netdb.c: New file.
35287         * doc/posix-headers/netdb.texi: Mention that we replace it if
35288         needed.
35289         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35290         netdb.
35291
35292 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35293
35294         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35295         with code.
35296
35297 2008-10-13  Bruno Haible  <bruno@clisp.org>
35298
35299         * lib/glthread/cond.c (glthread_cond_wait_func,
35300         glthread_cond_timedwait_func): Add a comment.
35301
35302 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35303
35304         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35305         * tests/test-select.c: Likewise,
35306
35307 2008-10-13  Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/glthread/cond.c (glthread_cond_wait_func,
35310         glthread_cond_timedwait_func): Fix variable name.
35311         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35312
35313 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35314
35315         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35316         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35317         struct sockaddr.sa_len.
35318         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35319
35320 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35321
35322         * build-aux/pmccabe2html: Add css and css_url parameters.
35323
35324 2008-10-12  Bruno Haible  <bruno@clisp.org>
35325
35326         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35327         calling aclx_get.
35328         Reported by Rainer Tammer <tammer@tammer.net>.
35329
35330 2008-10-12  Bruno Haible  <bruno@clisp.org>
35331
35332         Use msvcrt aware primitives for creation/termination of Win32 threads.
35333         * lib/glthread/thread.c: Include <process.h>.
35334         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35335         (wrapper_func): Update signature.
35336         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35337
35338 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35339             Bruno Haible  <bruno@clisp.org>
35340
35341         Provide a Win32 implementation of the 'cond' module.
35342         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35343         * lib/glthread/cond.c (glthread_cond_init_func,
35344         glthread_cond_wait_func, glthread_cond_timedwait_func,
35345         glthread_cond_signal_func, glthread_cond_broadcast_func,
35346         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35347         * modules/cond (Dependencies): Add gettimeofday.
35348
35349 2008-10-11  Bruno Haible  <bruno@clisp.org>
35350
35351         Make sleep work on older versions of mingw.
35352         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35353         only whether it exists.
35354         * doc/posix-functions/sleep.texi: Mention the problem with older
35355         versions of mingw.
35356
35357 2008-10-11  Bruno Haible  <bruno@clisp.org>
35358
35359         New module 'shutdown'.
35360         * modules/shutdown: New file.
35361         * lib/sys_socket.in.h (shutdown): New declaration.
35362         * lib/winsock.c (shutdown): New function.
35363         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35364         GNULIB_SHUTDOWN.
35365         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35366         * doc/posix-functions/shutdown.texi: Document the new module.
35367
35368 2008-10-11  Jim Meyering  <meyering@redhat.com>
35369
35370         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35371
35372 2008-10-11  Bruno Haible  <bruno@clisp.org>
35373
35374         New module 'fclose'.
35375         * modules/fclose: New file.
35376         * lib/stdio.in.h (fclose): New declaration.
35377         * lib/fclose.c: New file.
35378         * m4/fclose.m4: New file.
35379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35380         REPLACE_FCLOSE.
35381         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35382         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35383         REPLACE_FCLOSE.
35384         * modules/close (Depends-on): fclose.
35385         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35386
35387 2008-10-11  Bruno Haible  <bruno@clisp.org>
35388
35389         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35390         set errno and don't call _close.
35391
35392 2008-10-10  Bruno Haible  <bruno@clisp.org>
35393
35394         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35395         ACL, not afterwards. Fixes test failure on Cygwin.
35396
35397 2008-10-09  Ben Pfaff  <blp@gnu.org>
35398
35399         * build-aux/announce-gen: Fix gnulib version related part of usage
35400         message.  Die with a useful error message if no tarballs are
35401         found.
35402
35403 2008-10-10  Jim Meyering  <meyering@redhat.com>
35404
35405         bootstrap: use git's --depth=N option only if it's supported
35406         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35407         recognize the --depth option.  Reported by Pádraig Brady.
35408
35409 2008-10-09  Bruno Haible  <bruno@clisp.org>
35410
35411         New module 'ioctl'.
35412         * modules/ioctl: New file.
35413         * lib/sys_socket.in.h (ioctl): Remove declaration.
35414         * lib/winsock.c: Include <sys/ioctl.h>.
35415         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35416         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35417         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35418         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35419         * doc/posix-functions/ioctl.texi: Mention the new module.
35420
35421 2008-10-09  Bruno Haible  <bruno@clisp.org>
35422
35423         New module 'sys_ioctl'.
35424         * lib/sys_ioctl.in.h: New file.
35425         * m4/sys_ioctl_h.m4: New file.
35426         * modules/sys_ioctl: New file.
35427         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35428
35429 2008-10-09  Bruno Haible  <bruno@clisp.org>
35430
35431         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35432         * lib/winsock.c: Include <stdarg.h>.
35433         (rpl_ioctl): Change to second argument 'int' and then varargs.
35434
35435 2008-10-09  Bruno Haible  <bruno@clisp.org>
35436
35437         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35438         when the sys_socket module is present and the system has <winsock2.h>.
35439
35440 2008-10-09  Bruno Haible  <bruno@clisp.org>
35441
35442         * doc/posix-functions/close.texi: Mention module 'close' instead of
35443         module 'sys_socket'.
35444
35445 2008-10-09  Bruno Haible  <bruno@clisp.org>
35446
35447         * doc/glibc-headers/sys_ioctl.texi: New file.
35448         * doc/gnulib.texi: Include it.
35449
35450 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35451             Bruno Haible  <bruno@clisp.org>
35452
35453         Combine the two replacements of 'close'.
35454         * lib/sys_socket.in.h (close): Define to a reminder to include
35455         <unistd.h>.
35456         (_gl_close_fd_maybe_socket): New declaration.
35457         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35458         * lib/winsock.c (close): Remove undefinition.
35459         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35460         needed for the gnulib module 'close'.
35461         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35462         define to an error symbol or to a warning, if suitable.
35463         * lib/close.c: Include <sys/socket.h>.
35464         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35465         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35466         UNISTD_H_HAVE_WINSOCK2_H.
35467         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35469         UNISTD_H_HAVE_WINSOCK2_H.
35470         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35471         (configure.ac): Set a module indicator.
35472         (Makefile.am): Substitute GNULIB_CLOSE.
35473         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35474         * modules/poll-tests (Depends-on): Add close.
35475         * modules/select-tests (Depends-on): Likewise.
35476
35477 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35478             Bruno Haible  <bruno@clisp.org>
35479
35480         New module 'close'.
35481         * modules/close: New file.
35482         * lib/unistd.in.h (close): Move declaration out of the
35483         FCHDIR_REPLACEMENT scope.
35484         (_gl_unregister_fd): New declaration.
35485         * lib/close.c: New file.
35486         * lib/fchdir.c (rpl_close): Remove function.
35487         * m4/close.m4: New file.
35488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35489         close.
35490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35491         REPLACE_CLOSE.
35492         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35493         REPLACE_CLOSE.
35494         * modules/fchdir (Depends-on): Add close.
35495
35496 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35497             Bruno Haible  <bruno@clisp.org>
35498
35499         * lib/fcntl.in.h (open): Simplify conditionals.
35500         (_gl_register_fd): New declaration.
35501         * lib/fchdir.c (rpl_open): Remove function.
35502         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35503         also.
35504         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35506         open.
35507
35508 2008-10-09  Jim Meyering  <meyering@redhat.com>
35509
35510         GNUmakefile: use the more name-space-friendly "_version"
35511         * top/GNUmakefile (_dummy): Update.
35512         (_version): Rename from "version".
35513
35514 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35515             Bruno Haible  <bruno@clisp.org>
35516
35517         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35518         rpl_close.
35519         (_gl_register_fd): New function, extracted from rpl_open.
35520         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35521         (rpl_open, rpl_opendir): Use _gl_register_fd.
35522
35523 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35524
35525         Fix organization of 'open' replacement.
35526         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35527         (gl_FUNC_OPEN): Use it.
35528         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35529
35530 2008-10-08  Bruno Haible  <bruno@clisp.org>
35531
35532         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35533
35534 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35535
35536         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35537         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35538         listen).
35539
35540 2008-10-08  Eric Blake  <ebb9@byu.net>
35541
35542         GNUmakefile: add 'make version' target
35543         * top/GNUmakefile (_curr-ver): Split version update rules...
35544         (version): ...into a target.
35545
35546 2008-10-07  Bruno Haible  <bruno@clisp.org>
35547
35548         Use a more portable replacement expression for -0.0L.
35549         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35550         instead of -0.0L. Fix m4 quotation.
35551
35552         * tests/test-signbit.c: Include <float.h>.
35553         (minus_zero): New variable.
35554         (test_signbitl): Use minus_zero instead of -zero.
35555         * modules/signbit-tests (Depends-on): Add float.
35556
35557         * tests/test-ceill.c: Include <float.h>.
35558         (zero): Remove variable.
35559         (minus_zero): New variable.
35560         (main): Use minus_zero instead of -zero.
35561         * modules/ceill-tests (Depends-on): Add float.
35562
35563         * tests/test-floorl.c: Include <float.h>.
35564         (zero): Remove variable.
35565         (minus_zero): New variable.
35566         (main): Use minus_zero instead of -zero.
35567         * modules/floorl-tests (Depends-on): Add float.
35568
35569         * tests/test-roundl.c: Include <float.h>.
35570         (zero): Remove variable.
35571         (minus_zero): New variable.
35572         (main): Use minus_zero instead of -zero.
35573         * modules/roundl-tests (Depends-on): Add float.
35574
35575         * tests/test-truncl.c: Include <float.h>.
35576         (zero): Remove variable.
35577         (minus_zero): New variable.
35578         (main): Use minus_zero instead of -zero.
35579         * modules/truncl-tests (Depends-on): Add float.
35580
35581         * tests/test-frexpl.c (zero): Remove variable.
35582         (minus_zero): New variable.
35583         (main): Use minus_zero instead of -zero.
35584         * modules/frexpl-tests (Depends-on): Add float.
35585
35586         * tests/test-isnan.c (zerol): Remove variable.
35587         (minus_zerol): New variable.
35588         (test_long_double): Use minus_zerol instead of -zerol.
35589         * modules/isnan-tests (Depends-on): Add float.
35590
35591         * tests/test-isnanl.h (zero): Remove variable.
35592         (minus_zero): New variable.
35593         (main): Use minus_zero instead of -zero.
35594         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35595         * modules/isnanl-tests (Depends-on): Add float.
35596
35597         * tests/test-ldexpl.c (zero): Remove variable.
35598         (minus_zero): New variable.
35599         (main): Use minus_zero instead of -zero.
35600         * modules/ldexpl-tests (Depends-on): Add float.
35601
35602         * tests/test-snprintf-posix.h (zerol): Remove variable.
35603         (minus_zerol): New variable.
35604         (test_function): Use minus_zerol instead of -zerol.
35605         * modules/snprintf-posix-tests (Depends-on): Add float.
35606         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35607
35608         * tests/test-sprintf-posix.h (zerol): Remove variable.
35609         (minus_zerol): New variable.
35610         (test_function): Use minus_zerol instead of -zerol.
35611         * modules/sprintf-posix-tests (Depends-on): Add float.
35612         * modules/vsprintf-posix-tests (Depends-on): Add float.
35613
35614         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35615         (minus_zerol): New variable.
35616         (test_function): Use minus_zerol instead of -zerol.
35617         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35618
35619         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35620         (minus_zerol): New variable.
35621         (test_function): Use minus_zerol instead of -zerol.
35622         * modules/vasprintf-posix-tests (Depends-on): Add float.
35623
35624 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35625
35626         * MODULES.html.sh (Support for building documentation): Mention
35627         pmccabe2html.  Sort entries.
35628
35629         Add pmccabe2html module, from gnupdf.
35630         * build-aux/pmccabe.css: New file.
35631         * build-aux/pmccabe2html: New file.
35632         * m4/pmccabe2html.m4: New file.
35633         * modules/pmccabe2html: New file.
35634
35635 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35636
35637         flock: new module
35638         * MODULES.html.sh: Add to list of modules.
35639         * lib/flock.c: flock implementation for Windows and Unix systems
35640         which have fcntl.
35641         * doc/glibc-functions/flock.texi: Update documentation.
35642         * lib/sys_file.in.h: <sys/file.h> header file.
35643         * m4/flock.m4: M4 macros.
35644         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35645         * modules/flock: flock module.
35646         * modules/flock-tests: flock tests module.
35647         * modules/sys_file: sys/file.h module.
35648         * tests/test-flock.c: test suite for flock.
35649
35650 2008-10-06  Jim Meyering  <meyering@redhat.com>
35651
35652         bootstrap: check for LT_INIT more portably still ;-)
35653         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35654         Spotted by Bruno Haible.
35655
35656 2008-10-06  Eric Blake  <ebb9@byu.net>
35657
35658         test-signbit: avoid tripping Irix cc bug on -0.0L
35659         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35660         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35661         entire testsuite consistent and avoids an Irix 6.2 bug.
35662
35663 2008-10-05  Bruno Haible  <bruno@clisp.org>
35664             Jim Meyering  <jim@meyering.net>
35665
35666         Add an option for ignoring EPIPE during close_stdout.
35667         * lib/closeout.h: Include <stdbool.h>.
35668         (close_stdout_set_ignore_EPIPE): New declaration.
35669         * lib/closeout.c: Include <stdbool.h>.
35670         (ignore_EPIPE): New variable.
35671         (close_stdout_set_ignore_EPIPE): New function.
35672         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35673         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35674         failure.
35675         * modules/closeout (Depends-on): Add stdbool.
35676
35677 2008-10-05  Bruno Haible  <bruno@clisp.org>
35678
35679         * modules/accept: New file.
35680         * modules/bind: New file.
35681         * modules/connect: New file.
35682         * modules/getpeername: New file.
35683         * modules/getsockname: New file.
35684         * modules/getsockopt: New file.
35685         * modules/listen: New file.
35686         * modules/recv: New file.
35687         * modules/recvfrom: New file.
35688         * modules/send: New file.
35689         * modules/sendto: New file.
35690         * modules/setsockopt: New file.
35691         * modules/socket: New file.
35692         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35693         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35694         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35695         the particular module is requested. Add a link warning when the
35696         particular module is not requested.
35697         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35698         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35699         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35700         the particular module is requested.
35701         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35702         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35703         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35704         * modules/sys_socket (Depends-on): Add link-warning.
35705         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35706         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35707         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35708         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35709         GL_LINK_WARNING.
35710         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35711         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35712         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35713         * doc/posix-functions/getpeername.texi: Mention the new module
35714         'getpeername'.
35715         * doc/posix-functions/getsockname.texi: Mention the new module
35716         'getsockname'.
35717         * doc/posix-functions/getsockopt.texi: Mention the new module
35718         'getsockopt'.
35719         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35720         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35721         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35722         * doc/posix-functions/send.texi: Mention the new module 'send'.
35723         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35724         * doc/posix-functions/setsockopt.texi: Mention the new module
35725         'setsockopt'.
35726         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35727         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35728         listen, connect, accept.
35729         * modules/select-tests (Depends-on): Likewise.
35730
35731 2008-10-05  Bruno Haible  <bruno@clisp.org>
35732
35733         * lib/winsock.c (strerror): Remove unused #undef.
35734         (rpl_close): Remove unused local variable.
35735
35736         * modules/sys_socket (Depends-on); Add errno.
35737
35738 2008-10-05  Bruno Haible  <bruno@clisp.org>
35739
35740         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35741         (select): Add a link warning when the 'select' module is not used.
35742         * modules/sys_select (Depends-on): Add link-warning.
35743         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35744         Suggested by Paolo Bonzini.
35745
35746 2008-10-05  Jim Meyering  <meyering@redhat.com>
35747
35748         bootstrap: check for LT_INIT more portably
35749         * build-aux/bootstrap: Avoid using grep -E, since it's not
35750         portable enough.  Suggestion from Bruno Haible.
35751
35752 2008-10-05  Bruno Haible  <bruno@clisp.org>
35753
35754         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35755         as being fixed by gnulib.
35756
35757 2008-10-05  Bruno Haible  <bruno@clisp.org>
35758
35759         * modules/select-tests: New file, mostly copied from
35760         modules/sys_select-tests.
35761         * tests/test-select.c: New file, mostly copied from
35762         tests/test-sys_select.c.
35763         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35764         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35765         (Makefile.am): Remove test_sys_select_LDADD.
35766
35767         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35768         to an undefined symbol, for an error message.
35769         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35770         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35771         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35772         winsock-select.c here.
35773         * modules/sys_select (Files): Remove lib/winsock-select.c.
35774         (Depends-on): Remove alloca.
35775         (Makefile.am): Substitute GNULIB_SELECT.
35776         * modules/select: New file.
35777         * doc/posix-functions/select.texi: Update.
35778
35779 2008-10-05  Bruno Haible  <bruno@clisp.org>
35780
35781         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35782         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35783         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35784         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35785         getdtablesize.
35786         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35787         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35788
35789 2008-10-05  Bruno Haible  <bruno@clisp.org>
35790
35791         * modules/getdtablesize-tests: New file.
35792         * tests/test-getdtablesize.c: New file.
35793
35794         New module 'getdtablesize'.
35795         * lib/unistd.in.h (getdtablesize): New declaration.
35796         * lib/getdtablesize.c: New file.
35797         * m4/getdtablesize.m4: New file.
35798         * modules/getdtablesize: New file.
35799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35800         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35801         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35802         HAVE_GETDTABLESIZE.
35803         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35804
35805 2008-10-05  Bruno Haible  <bruno@clisp.org>
35806
35807         * modules/sched (Makefile.am): Fix typo.
35808         Reported by Simon Josefsson.
35809
35810 2008-10-05  Jim Meyering  <meyering@redhat.com>
35811
35812         bootstrap: check for LT_INIT, too
35813         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35814         are deprecated.  Suggestion from Ralf Wildenhues.
35815
35816 2008-10-05  Bruno Haible  <bruno@clisp.org>
35817
35818         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35819         overriding them by ours.
35820         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35821
35822 2008-10-05  Jim Meyering  <meyering@redhat.com>
35823
35824         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35825         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35826         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35827
35828 2008-10-04  Bruno Haible  <bruno@clisp.org>
35829
35830         * modules/dup2 (License): Change to LGPLv2+.
35831         * modules/sleep (License): Likewise.
35832         * modules/perror (License): Likewise.
35833         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35834         Blake.
35835         * modules/signal (License): Likewise.
35836         * modules/sigprocmask (License): Likewise.
35837         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35838         Meyering.
35839
35840 2008-10-04  Bruno Haible  <bruno@clisp.org>
35841
35842         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35843         Reported by Rainer Tammer <tammer@tammer.net>.
35844
35845 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35846             Bruno Haible  <bruno@clisp.org>
35847
35848         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35849         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35850         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35851
35852 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35853
35854         filevercmp: new module
35855         * lib/filevercmp.h: New function filevercmp comparing version strings.
35856         * lib/filevercmp.c: Implementation of filevercmp function.
35857         * modules/filevercmp: Module metadata.
35858         * tests/test-filevercmp.c: Unit test for new module.
35859         * modules/filevercmp-tests: Unit test metadata.
35860         * MODULES.html.sh: Add filevercmp module.
35861
35862 2008-10-03  Bruno Haible  <bruno@clisp.org>
35863
35864         * lib/c-ctype.h: Add comment.
35865         Reported by Jim Meyering.
35866
35867 2008-10-02  Bruno Haible  <bruno@clisp.org>
35868
35869         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35870
35871 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35872
35873         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35874         name of bootstrap.conf accordingly.
35875
35876 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35877
35878         * build-aux/bootstrap: Install git-merge-changelog configuration
35879         items into .gitconfig if needed.
35880
35881 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35882
35883         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35884         git repository, and initialize/update it accordingly.
35885
35886 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35887
35888         * modules/fsync-tests: New file.
35889         * tests/test-fsync.c: New file.
35890
35891         New module 'fsync'.
35892         * lib/fsync.c: New file.
35893         * m4/fsync.m4: New file.
35894         * modules/fsync: New file.
35895         * lib/unistd.in.h (fsync): New declaration.
35896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35897         GNULIB_FSYNC and HAVE_FSYNC.
35898         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35899         * MODULES.html.sh (posix_functions): Add fsync.
35900         * doc/posix-functions/fsync.texi: Mention the new module.
35901
35902 2008-10-02  Jim Meyering  <meyering@redhat.com>
35903
35904         fts.c: sync with similar code from coreutils' remove.c
35905         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35906         Guard also with "#if defined __linux__", since for now at least,
35907         this code is Linux-kernel-specific.
35908
35909 2008-10-02  Jim Meyering  <meyering@redhat.com>
35910
35911         fts: bug fixes
35912         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35913         Include <sys/vfs.h>, not <sys/statfs.h>.
35914
35915         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35916         Include <sys/vfs.h>, not <sys/statfs.h>.
35917
35918 2008-10-01  Bruno Haible  <bruno@clisp.org>
35919
35920         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35921         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35922         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35923         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35924         * doc/posix-functions/posix_spawnp.texi: Likewise.
35925         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35926         whether posix_spawn actually works.
35927         * m4/pipe.m4 (gl_PIPE): Likewise.
35928         * modules/execute (Files): Add m4/posix_spawn.m4.
35929         * modules/pipe (Files): Add m4/posix_spawn.m4.
35930         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35931
35932 2008-10-01  Jim Meyering  <meyering@redhat.com>
35933
35934         remove trailing spaces
35935         * NEWS: Likewise.
35936         * lib/poll.c (poll): Likewise.
35937         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35938         * lib/winsock.c (rpl_close): Likewise.
35939         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35940         * modules/yield: Likewise.
35941         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35942         * tests/test-sys_select.c (connect_to_socket): Likewise.
35943
35944         fts.c: adjust a new interface to be more generally useful
35945         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35946         (fts_build): Adjust caller.
35947
35948 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35949
35950         * modules/cond-tests: New file.
35951         * tests/test-cond.c: New file.
35952
35953 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35954             Bruno Haible  <bruno@clisp.org>
35955
35956         * modules/cond (Dependencies): Add errno, time.
35957         * lib/glthread/cond.h: Include <time.h>.
35958         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35959         across platforms.
35960
35961 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35962             Bruno Haible  <bruno@clisp.org>
35963
35964         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35965
35966 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35967             Bruno Haible  <bruno@clisp.org>
35968
35969         * modules/tls-tests (Depends-on): Add thread, yield.
35970         (configure.ac): Remove all checks.
35971         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35972         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35973         gl_thread_self): Remove definitions. Include glthread/thread.h and
35974         glthread/yield.h instead.
35975         (test_tls): Pass an additional NULL argument to gl_thread_join.
35976
35977 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35978             Bruno Haible  <bruno@clisp.org>
35979
35980         * modules/lock-tests (Depends-on): Add thread, yield.
35981         (configure.ac): Remove all checks.
35982         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35983         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35984         gl_thread_self): Remove definitions. Include glthread/thread.h and
35985         glthread/yield.h instead.
35986         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35987         additional NULL argument to gl_thread_join.
35988
35989 2008-09-30  Bruno Haible  <bruno@clisp.org>
35990
35991         Fix the Win32 implementation of the 'thread' module.
35992         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35993         pointer type.
35994         (gl_thread_self): Invoke gl_thread_self_func.
35995         (gl_thread_self_func): New declaration.
35996         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35997         (do_init_self_key, init_self_key): New functions.
35998         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35999         Remove some fields.
36000         (running_threads, running_lock): Remove variables.
36001         (get_current_thread_handle): New function.
36002         (gl_thread_self_func, wrapper_func, glthread_create_func,
36003         glthread_join_func, gl_thread_exit_func): Largely rewritten and
36004         simplified.
36005
36006 2008-09-30  Bruno Haible  <bruno@clisp.org>
36007
36008         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
36009         files.
36010
36011 2008-09-30  Jim Meyering  <meyering@redhat.com>
36012
36013         fts.m4: correct the test for statfs.f_type
36014         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
36015         when checking for statfs.f_type.
36016
36017 2008-09-15  Simon Josefsson  <simon@josefsson.org>
36018
36019         tests: avoid some compiler warnings
36020         * tests/test-memchr.c (main): Pass NULL indirectly.
36021         * tests/test-getdate.c (main): Remove unused variable 'ret'.
36022
36023 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
36024
36025         getdate.y: disallow countable dayshifts like "4 yesterday ago"
36026         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
36027         exactly specified dayshifts.
36028         (dayshift): New rule.
36029         (rel): Add dayshift.
36030         (relative_time_table) [tomorrow, yesterday, today, now]:
36031         Use tDAY_SHIFT in place of tDAY_UNIT.
36032         * tests/test-getdate.c: Add tests for now-disallowed countable
36033         dayshifts, e.g., "4 yesterday ago".
36034
36035 2008-09-29  Bruno Haible  <bruno@clisp.org>
36036
36037         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
36038         * tests/test-posix_spawn1.in.sh: Renamed from
36039         tests/test-posix_spawn.in.sh.
36040         * tests/test-posix_spawn2.c: New file.
36041         * tests/test-posix_spawn2.in.sh: New file.
36042         * modules/posix_spawnp-tests (Files): Update.
36043         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
36044
36045 2008-09-29  Bruno Haible  <bruno@clisp.org>
36046
36047         Propagate effects of putenv/setenv/unsetenv to child processes.
36048         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
36049         * lib/pipe.c (create_pipe): Likewise.
36050
36051 2008-09-29  Bruno Haible  <bruno@clisp.org>
36052
36053         Enable use of shell scripts as executables in mingw.
36054         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36055         run the program as a shell script.
36056         * lib/pipe.c (create_pipe): Likewise.
36057         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36058         resulting array.
36059
36060 2008-09-29  Eric Blake  <ebb9@byu.net>
36061
36062         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36063
36064 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36065
36066         * doc/posix-functions/accept.texi: Update mingw problems.
36067         * doc/posix-functions/bind.texi: Update mingw problems.
36068         * doc/posix-functions/close.texi: Update mingw problems.
36069         * doc/posix-functions/connect.texi: Update mingw problems.
36070         * doc/posix-functions/getpeername.texi: Update mingw problems.
36071         * doc/posix-functions/getsockname.texi: Update mingw problems.
36072         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36073         * doc/posix-functions/ioctl.texi: Update mingw problems.
36074         * doc/posix-functions/listen.texi: Update mingw problems.
36075         * doc/posix-functions/recv.texi: Update mingw problems.
36076         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36077         * doc/posix-functions/select.texi: Update mingw problems.
36078         * doc/posix-functions/send.texi: Update mingw problems.
36079         * doc/posix-functions/sendto.texi: Update mingw problems.
36080         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36081         * doc/posix-functions/socket.texi: Update mingw problems.
36082
36083 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36084             Bruno Haible  <bruno@clisp.org>
36085
36086         * lib/sys_select.in.h: Include sys/time.h.
36087         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36088         * modules/sys_select: Depend on sys_time.
36089         * tests/test-sys_select.c: Test that sys/select.h defines struct
36090         timeval fully.
36091
36092 2008-09-29  Bruno Haible  <bruno@clisp.org>
36093
36094         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36095         * lib/sys_select.in.h: Likewise.
36096
36097 2008-09-29  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36100
36101 2008-09-29  Bruno Haible  <bruno@clisp.org>
36102
36103         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36104         Set LIBSOCKET instead of augmenting LIBS.
36105         * modules/sockets (Link): New section.
36106         * modules/sockets-tests (test_sockets_LDADD): New variable.
36107         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36108         * modules/poll-tests (test_poll_LDADD): New variable.
36109         * NEWS: Document the change.
36110
36111 2008-09-29  Bruno Haible  <bruno@clisp.org>
36112
36113         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36114         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36115         ARPA_INET_H directly.
36116         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36117
36118 2008-09-28  Bruno Haible  <bruno@clisp.org>
36119
36120         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36121         from gl_HEADER_SYS_SOCKET.
36122         (gl_HEADER_SYS_SOCKET): Invoke it.
36123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36124
36125 2008-09-28  Bruno Haible  <bruno@clisp.org>
36126
36127         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36128         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36129         Needed on OSF/1 4.0.
36130
36131 2008-09-28  Bruno Haible  <bruno@clisp.org>
36132
36133         Override open more carefully.
36134         * lib/open.c (orig_open): New function.
36135         (rpl_open): Use orig_open instead of open.
36136         * lib/fcntl.in.h: Add special invocation convention.
36137         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36138         (gl_FUNC_OPEN): Invoke it.
36139
36140         Override freopen more carefully.
36141         * lib/freopen.c (orig_freopen): New function.
36142         (rpl_freopen): Use orig_freopen instead of freopen.
36143         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36144         (gl_FUNC_FREOPEN): Invoke it.
36145
36146         Override fopen more carefully.
36147         * lib/fopen.c (orig_fopen): New function.
36148         (rpl_fopen): Use orig_fopen instead of fopen.
36149         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36150         (gl_FUNC_FOPEN): Invoke it.
36151         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36152
36153 2008-09-28  Bruno Haible  <bruno@clisp.org>
36154
36155         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36156         SIGPIPE.
36157
36158 2008-09-28  Bruno Haible  <bruno@clisp.org>
36159
36160         * tests/test-sigaction.c (handler, main): Disable the check whether
36161         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36162         glibc systems with LinuxThreads.
36163
36164 2008-09-28  Bruno Haible  <bruno@clisp.org>
36165
36166         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36167
36168         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36169         with AIX xlc.
36170         * lib/fcntl.in.h (open): Likewise.
36171         Reported by Rainer Tammer <tammer@tammer.net>.
36172
36173 2008-09-28  Bruno Haible  <bruno@clisp.org>
36174
36175         * modules/posix_spawnp-tests: New file.
36176         * tests/test-posix_spawn.c: New file.
36177         * tests/test-posix_spawn.in.sh: New file.
36178
36179         New module 'posix_spawnp'.
36180         * modules/posix_spawnp: New file.
36181         * lib/spawnp.c: New file, from GNU libc with modifications.
36182         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36183
36184         New module 'posix_spawn'.
36185         * modules/posix_spawn: New file.
36186         * lib/spawn.c: New file, from GNU libc with modifications.
36187         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36188
36189         New module 'posix_spawnattr_destroy'.
36190         * modules/posix_spawnattr_destroy: New file.
36191         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36192         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36193         module.
36194
36195         New module 'posix_spawnattr_setsigmask'.
36196         * modules/posix_spawnattr_setsigmask: New file.
36197         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36198         modifications.
36199         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36200         new module.
36201
36202         New module 'posix_spawnattr_getsigmask'.
36203         * modules/posix_spawnattr_getsigmask: New file.
36204         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36205         modifications.
36206         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36207         new module.
36208
36209         New module 'posix_spawnattr_setsigdefault'.
36210         * modules/posix_spawnattr_setsigdefault: New file.
36211         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36212         modifications.
36213         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36214         new module.
36215
36216         New module 'posix_spawnattr_getsigdefault'.
36217         * modules/posix_spawnattr_getsigdefault: New file.
36218         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36219         modifications.
36220         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36221         new module.
36222
36223         New module 'posix_spawnattr_setschedpolicy'.
36224         * modules/posix_spawnattr_setschedpolicy: New file.
36225         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36226         modifications.
36227         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36228         new module.
36229
36230         New module 'posix_spawnattr_getschedpolicy'.
36231         * modules/posix_spawnattr_getschedpolicy: New file.
36232         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36233         modifications.
36234         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36235         new module.
36236
36237         New module 'posix_spawnattr_setschedparam'.
36238         * modules/posix_spawnattr_setschedparam: New file.
36239         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36240         modifications.
36241         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36242         new module.
36243
36244         New module 'posix_spawnattr_getschedparam'.
36245         * modules/posix_spawnattr_getschedparam: New file.
36246         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36247         modifications.
36248         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36249         new module.
36250
36251         New module 'posix_spawnattr_setpgroup'.
36252         * modules/posix_spawnattr_setpgroup: New file.
36253         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36254         modifications.
36255         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36256         module.
36257
36258         New module 'posix_spawnattr_getpgroup'.
36259         * modules/posix_spawnattr_getpgroup: New file.
36260         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36261         modifications.
36262         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36263         module.
36264
36265         New module 'posix_spawnattr_setflags'.
36266         * modules/posix_spawnattr_setflags: New file.
36267         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36268         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36269         module.
36270
36271         New module 'posix_spawnattr_getflags'.
36272         * modules/posix_spawnattr_getflags: New file.
36273         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36274         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36275         module.
36276
36277         New module 'posix_spawnattr_init'.
36278         * modules/posix_spawnattr_init: New file.
36279         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36280         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36281         module.
36282
36283         New module 'posix_spawn_file_actions_destroy'.
36284         * modules/posix_spawn_file_actions_destroy: New file.
36285         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36286         modifications.
36287         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36288         the new module.
36289
36290         New module 'posix_spawn_file_actions_addopen'.
36291         * modules/posix_spawn_file_actions_addopen: New file.
36292         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36293         modifications.
36294         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36295         the new module.
36296
36297         New module 'posix_spawn_file_actions_adddup2'.
36298         * modules/posix_spawn_file_actions_adddup2: New file.
36299         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36300         modifications.
36301         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36302         the new module.
36303
36304         New module 'posix_spawn_file_actions_addclose'.
36305         * modules/posix_spawn_file_actions_addclose: New file.
36306         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36307         modifications.
36308         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36309         the new module.
36310
36311         New module 'posix_spawn_file_actions_init'.
36312         * modules/posix_spawn_file_actions_init: New file.
36313         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36314         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36315         new module.
36316
36317         New module 'posix_spawn-internal'.
36318         * modules/posix_spawn-internal: New file.
36319         * lib/spawn_int.h: New file, from GNU libc with modifications.
36320         * lib/spawni.c: New file, from GNU libc with modifications.
36321         * m4/posix_spawn.m4: New file.
36322
36323         New module 'spawn'.
36324         * modules/spawn: New file.
36325         * lib/spawn.in.h: New file, from GNU libc with modifications.
36326         * m4/spawn_h.m4: New file.
36327         * doc/posix-headers/spawn.texi: Mention the new module.
36328
36329 2008-09-28  Bruno Haible  <bruno@clisp.org>
36330
36331         * modules/sched-tests: New file.
36332         * tests/test-sched.c: New file.
36333
36334         New module 'sched'.
36335         * modules/sched: New file.
36336         * lib/sched.in.h: New file.
36337         * m4/sched_h.m4: New file.
36338         * doc/posix-headers/sched.texi: Mention the new module.
36339
36340 2008-09-27  Eric Blake  <ebb9@byu.net>
36341
36342         Fix previous patch, and tweak references to $0.
36343         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36344         (func_version, func_gnulib_dir): Don't call this program
36345         gnulib-tool.
36346         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36347         with using $0 in function.
36348         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36349         (func_fatal_error): Reuse the name the user invoked us with.
36350
36351 2008-09-27  Bruno Haible  <bruno@clisp.org>
36352
36353         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36354         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36355         (gl_ICONV_H): Not here.
36356         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36357         instead of assigning ICONV_H directly.
36358
36359         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36361         WCHAR_H directly.
36362
36363 2008-09-27  Bruno Haible  <bruno@clisp.org>
36364
36365         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36366         * modules/arpa_inet (Depends-on): Add link-warning.
36367         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36368         * modules/unistd (Makefile.am): Likewise.
36369
36370 2008-09-26  Bruno Haible  <bruno@clisp.org>
36371
36372         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36373         variables.
36374         (func_version): Essentially copied from gnulib-tool.
36375         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36376         func_readlink): Copied from gnulib-tool.
36377
36378 2008-09-26  Bruno Haible  <bruno@clisp.org>
36379
36380         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36381         invoking git-version-gen.
36382
36383 2008-09-26  Bruno Haible  <bruno@clisp.org>
36384
36385         * posix-modules: Update to directory names changed on 2008-01-19.
36386         Remove commas in output before splitting into words. No more need to
36387         avoid 'ftruncate' since 2007-02-19.
36388
36389 2008-09-26  Bruno Haible  <bruno@clisp.org>
36390
36391         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36392
36393 2008-09-26  Bruno Haible  <bruno@clisp.org>
36394
36395         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36396         * modules/fwriteerror (Depends-on): Add errno.
36397
36398 2008-09-26  Bruno Haible  <bruno@clisp.org>
36399
36400         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36401         * tests/test-vc-list-files-cvs.sh: Likewise.
36402
36403 2008-09-26  Bruno Haible  <bruno@clisp.org>
36404
36405         * doc/posix-headers/sys_resource.texi: Reorder items.
36406
36407 2008-09-26  Jim Meyering  <meyering@redhat.com>
36408
36409         fts: tweak inode comparison function
36410         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36411         inode numbers, as documented.
36412
36413         fts: sort dirent entries on inode number before traversing
36414         This avoids a quadratic, seek-related performance penalty when
36415         operating on a directory containing many entries (measurable at 10k;
36416         3.5 hours at 2 million entries with a cold cache) on certain types
36417         of file systems, including ext3 and ext4, but not tmpfs.
36418         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36419         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36420         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36421         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36422         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36423         (fts_build): Set the stat.st_ino member from D_INO.
36424         If it is likely to be useful, sort dirent entries on inode number.
36425
36426         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36427         and the struct statfs.f_type member.
36428         * modules/fts (Depends-on): Add d-ino.
36429
36430 2008-09-26  Bruno Haible  <bruno@clisp.org>
36431
36432         * modules/sigpipe-die (Depends-on): Add sigpipe.
36433
36434         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36435         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36436         and GNULIB_STDIO_H_SIGPIPE are set.
36437         * lib/stdio-write.c: New file.
36438         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36439         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36440         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36441         REPLACE_STDIO_WRITE_FUNCS.
36442         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36443         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36444         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36445         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36446         * modules/stdio (Files): Add lib/stdio-write.c.
36447         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36448         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36449         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36450         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36451         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36452         REPLACE_FPRINTF_POSIX.
36453         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36454         REPLACE_PRINTF_POSIX.
36455         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36456         REPLACE_VFPRINTF_POSIX.
36457         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36458         REPLACE_VPRINTF_POSIX.
36459         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36460         SIGPIPE issue.
36461         * doc/posix-functions/fputc.texi: Likewise.
36462         * doc/posix-functions/fputs.texi: Likewise.
36463         * doc/posix-functions/fwrite.texi: Likewise.
36464         * doc/posix-functions/printf.texi: Likewise.
36465         * doc/posix-functions/putc.texi: Likewise.
36466         * doc/posix-functions/putchar.texi: Likewise.
36467         * doc/posix-functions/puts.texi: Likewise.
36468         * doc/posix-functions/vfprintf.texi: Likewise.
36469         * doc/posix-functions/vprintf.texi: Likewise.
36470
36471         * modules/safe-write (Depends-on): Add write.
36472
36473         * modules/sigpipe-tests: New file.
36474         * tests/test-sigpipe.c: New file.
36475         * tests/test-sigpipe.sh: New file.
36476
36477         * modules/write: New file.
36478         * lib/unistd.in.h: Include <sys/types.h>.
36479         (write): New declaration.
36480         * lib/write.c: New file.
36481         * m4/write.m4: New file.
36482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36483         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36484         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36485         GNULIB_WRITE, REPLACE_WRITE.
36486         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36487         and the SIGPIPE issue.
36488
36489         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36490         (raise): New declaration.
36491         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36492         (ext_signal): New function.
36493         (rpl_raise): New function.
36494         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36495         GNULIB_SIGNAL_H_SIGPIPE.
36496         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36497         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36498
36499         * modules/sigpipe: New file.
36500         * m4/sigpipe.m4: New file.
36501
36502 2008-09-25  Derek Price  <derek@ximbiot.com>
36503             Bruno Haible  <bruno@clisp.org>
36504
36505         * gnulib-tool (func_import): Report all license incompatibilities, not
36506         just the first one.
36507
36508 2008-09-25  Bruno Haible  <bruno@clisp.org>
36509
36510         * gnulib-tool (func_import): When computing the edits, consider not
36511         only the Makefile.ams that exist but also those that will be generated.
36512
36513 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36514
36515         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36516         fixes gnulib-tool --test warning about duplicate dependency.
36517
36518 2008-09-25  Bruno Haible  <bruno@clisp.org>
36519
36520         * gnulib-tool: Don't ask the user to perform edits in the generated
36521         Makefile.ams.
36522         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36523         apply to the Makefile.am being generated.
36524         (func_emit_tests_Makefile_am): Execute edits that apply to the
36525         Makefile.am being generated.
36526         (func_import): Setup list of Makefile.am edits before emitting the
36527         Makefile.ams, not at the end.
36528         (func_create_testdir): Update.
36529         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36530
36531 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36532
36533         * gnulib-tool (func_import): Store the --tests-base option in the
36534         comment in gnulib-cache.m4.
36535
36536 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36537
36538         * NEWS: Document increased portability that sys_select now provides.
36539
36540         * lib/sys_select.in.h: Install select wrapper.
36541         * lib/sys_socket.in.h: Use more descriptive name when there is no
36542         select wrapper.
36543         * lib/winsock-select.c: New.
36544         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36545         Require gl_HEADER_SYS_SOCKET.
36546         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36547         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36548         * tests/test-sys_select.c: Add functional tests.
36549
36550 2008-09-24  Eric Blake  <ebb9@byu.net>
36551
36552         open, fopen: close fd leak in last patch
36553         * lib/open.c (rpl_open): Close fd before returning error.
36554         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36555         * doc/posix-functions/open.texi (open): Document that Irix also
36556         has the bug.
36557         * doc/posix-functions/fopen.texi (fopen): Likewise.
36558         Reported by Paolo Bonzini.
36559
36560 2008-09-24  Bruno Haible  <bruno@clisp.org>
36561
36562         Ensure that a filename ending in a slash cannot be used to access a
36563         non-directory.
36564         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36565         to check whether it's really a directory.
36566         * lib/fopen.c: Include fcntl.h, unistd.h.
36567         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36568         and fdopen().
36569         * modules/fopen (Depends-on): Add unistd.
36570         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36571         * tests/test-fopen.c (main): Likewise.
36572         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36573         * doc/posix-functions/fopen.texi: Likewise.
36574         Reported by Eric Blake.
36575
36576 2008-09-23  Eric Blake  <ebb9@byu.net>
36577
36578         c-stack: avoid compiler optimizations when provoking overflow
36579         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36580         recursion harder to optimize, to ensure a stack overflow occurs.
36581         * tests/test-c-stack.c (recurse): Likewise.
36582         Borrowed from libsigsegv.
36583
36584         c-stack: work around Irix sigaltstack bug
36585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36586         whether sigaltstack uses wrong end of stack_t (copied in part from
36587         libsigsegv).
36588         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36589         Irix bug, without requiring an over-allocation.
36590         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36591         bug.
36592
36593         fopen: document mingw bug on directories
36594         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36595         not allowing a stream visiting a directory, even though reading
36596         from such a stream is not portable.
36597
36598 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36599
36600         * lib/poll.c: Rewrite.
36601         * modules/poll: Depend on alloca.
36602
36603 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36604
36605         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36606         instead define prototypes for a full set of wrappers.  Ensure
36607         that Cygwin does not use the compatibility code, which is only
36608         for MinGW.
36609         * lib/winsock.c: New.
36610         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36611         * modules/sys_socket: Add lib/winsock.c.
36612
36613         * modules/poll-tests: Add errno and perror.
36614         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36615
36616 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36617
36618         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36619
36620 2008-09-23  Bruno Haible  <bruno@clisp.org>
36621
36622         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36623         * doc/glibc-functions/*: Likewise.
36624
36625 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36626
36627         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36628         success.
36629
36630 2008-09-22  Eric Blake  <ebb9@byu.net>
36631             Bruno Haible  <bruno@clisp.org>
36632
36633         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36634         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36635         supply %A but mishandle pseudo-NaN.
36636         Reported by Simon Josefsson.
36637
36638 2008-09-21  Bruno Haible  <bruno@clisp.org>
36639
36640         * tests/test-lock.c (main): Tweak skip message.
36641         * tests/test-tls.c (main): Likewise.
36642
36643 2008-09-21  Bruno Haible  <bruno@clisp.org>
36644
36645         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36646         whether 'struct sigaction' has sa_sigaction here...
36647         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36648         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36649
36650 2008-09-21  Bruno Haible  <bruno@clisp.org>
36651
36652         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36653         section.
36654         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36655         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36656         the new section.
36657         (Support for obsolete systems lacking POSIX:2001): New section.
36658         (String handling <string.h>): Move strdup to the new section.
36659         Suggested by Simon Josefsson and Paolo Bonzini.
36660
36661 2008-09-21  Bruno Haible  <bruno@clisp.org>
36662
36663         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36664         exponents in %e and %g results on 'long double'. Needed for mingw's
36665         improved *printf functions.
36666         * tests/test-vasprintf-posix.c (test_function): Likewise.
36667         * tests/test-snprintf-posix.h (test_function): Likewise.
36668         * tests/test-sprintf-posix.h (test_function): Likewise.
36669         Reported by Eric Blake.
36670
36671 2008-09-21  Bruno Haible  <bruno@clisp.org>
36672
36673         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36674         * tests/test-sprintf-posix.h (test_function): Likewise.
36675
36676 2008-09-21  Bruno Haible  <bruno@clisp.org>
36677
36678         * modules/getpass (Depends-on): Add strdup-posix.
36679
36680         New module 'strdup-posix'.
36681         * modules/strdup-posix: New file.
36682         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36683         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36685         REPLACE_STRDUP.
36686         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36687         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36688         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36689         strdup-posix.
36690
36691         * modules/strdup (Depends-on): Remove malloc-posix.
36692
36693 2008-09-20  Bruno Haible  <bruno@clisp.org>
36694
36695         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36696         Wildenhues.
36697
36698 2008-09-20  Bruno Haible  <bruno@clisp.org>
36699
36700         Ensure that wint_t gets defined on IRIX 5.3.
36701         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36702         * lib/wctype.in.h (wint_t): Likewise.
36703         (__wctype_wint_t): Remove type.
36704         (isw*): Use wint_t instead of __wctype_wint_t.
36705         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36706         * modules/wchar (Files): Add m4/wint_t.m4.
36707         (Makefile.am): Substitute HAVE_WINT_T.
36708         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36709         * tests/test-wctype.c: Check that wint_t is defined.
36710         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36711         * doc/posix-headers/wctype.texi: Likewise.
36712         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36713
36714 2008-09-18  Bruno Haible  <bruno@clisp.org>
36715
36716         * gnulib-tool (func_exit): Update comment.
36717
36718 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36719
36720         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36721         assumes strdup exists and does not depend on strdup to return
36722         ENOMEM on out of memory conditions.
36723
36724 2008-09-18  Bruno Haible  <bruno@clisp.org>
36725
36726         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
36727         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36728         digits for the exponent.
36729
36730 2008-09-18  Jim Meyering  <meyering@redhat.com>
36731             Bruno Haible  <bruno@clisp.org>
36732
36733         * lib/vasnprintf.c (decimal_point_char): Define also if
36734         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36735
36736 2008-09-16  Bruno Haible  <bruno@clisp.org>
36737         and Eric Blake  <ebb9@byu.net>
36738
36739         vasnprintf: support Irix 5.3
36740         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36741         that mishandle long double infinity.
36742         Reported by Tom G. Christensen.
36743
36744 2008-09-16  Bruno Haible  <bruno@clisp.org>
36745
36746         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36747         Solaris 9.
36748         * doc/glibc-functions/alphasort.texi: Likewise.
36749         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36750
36751 2008-09-16  Jim Meyering  <meyering@redhat.com>
36752
36753         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36754         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36755         a umask modification leak out of a subshell.  Otherwise, the
36756         opensolaris /bin/sh would be accepted and thus cause unwarranted
36757         failures in the coreutils test suite.
36758
36759 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36760
36761         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36762         to succeed.
36763
36764 2008-09-16  Jim Meyering  <meyering@redhat.com>
36765
36766         avoid spurious test failure when library is built without ACL support
36767         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36768         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36769         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36770         * tests/test-copy-acl.sh: Likewise.
36771
36772 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36773
36774         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36775         based on character occurrence counts.
36776
36777 2008-09-15  Eric Blake  <ebb9@byu.net>
36778
36779         tests: avoid some compiler warnings
36780         * tests/test-memchr.c (main): Pass NULL indirectly.
36781         * tests/test-closein.c (main): Avoid unused variable.
36782
36783 2008-09-15  Bruno Haible  <bruno@clisp.org>
36784
36785         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36786         are missing on OpenBSD 4.0 individually.
36787         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36788
36789 2008-09-15  Bruno Haible  <bruno@clisp.org>
36790
36791         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36792         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36793         * doc/posix-functions/perror.texi: Likewise.
36794         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36795         is missing.
36796         Reported by Eric Blake.
36797
36798         * lib/errno.in.h: Use replacement values >= 2000.
36799         Reported by Eric Blake.
36800
36801 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36802
36803         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36804         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36805         limit.
36806         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36807         compareseq was aborted.
36808
36809 2008-09-14  Bruno Haible  <bruno@clisp.org>
36810
36811         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36812         yvec_edit_count.
36813         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36814         (fstrcmp_bounded): Simplify result computation accordingly.
36815
36816 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36817
36818         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36819         (fstrcmp): Define in terms of fstrcmp_bounded.
36820         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36821         lower_bound argument.
36822         Return quickly if the result is certainly < lower_bound.
36823         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36824
36825 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36826
36827         * lib/diffseq.h (EARLY_ABORT): New macro.
36828         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36829         evaluates to true.
36830
36831 2008-09-14  Bruno Haible  <bruno@clisp.org>
36832
36833         * modules/perror-tests: New file.
36834         * tests/test-perror.sh: New file.
36835         * tests/test-perror.c: New file.
36836
36837         New module 'perror'.
36838         * lib/stdio.in.h (perror): New declaration.
36839         * lib/perror.c: New file.
36840         * m4/perror.m4: New file.
36841         * modules/perror: New file.
36842         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36843         * doc/posix-functions/perror.texi: Mention the perror module.
36844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36845         REPLACE_PERROR.
36846         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36847         REPLACE_PERROR.
36848
36849 2008-09-14  Bruno Haible  <bruno@clisp.org>
36850
36851         * modules/stdio (Makefile.am): Reorder to match the order in
36852         lib/stdio.in.h.
36853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36854
36855 2008-09-13  Bruno Haible  <bruno@clisp.org>
36856
36857         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36858
36859 2008-09-13  Bruno Haible  <bruno@clisp.org>
36860
36861         Extend strerror to cover the added errno values.
36862         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36863         (rpl_strerror): Provide error messages for the added errno values and
36864         for the WSA* values.
36865         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36866         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36867         strerror.
36868         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36869         * modules/strerror (Depends-on): Add errno.
36870         * doc/posix-functions/strerror.texi: Document the change.
36871         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36872         and EOVERFLOW.
36873
36874 2008-09-13  Bruno Haible  <bruno@clisp.org>
36875
36876         * modules/EOVERFLOW: Remove file.
36877         * m4/eoverflow.m4: Remove file.
36878         * modules/EOVERFLOW-tests: Remove file.
36879         * tests/test-EOVERFLOW.c: Remove file.
36880         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36881         * modules/ftell (Depends-on): Likewise.
36882         * modules/getdelim (Depends-on): Likewise.
36883         * modules/getugroups (Depends-on): Likewise.
36884         * modules/poll (Depends-on): Likewise.
36885         * modules/snprintf (Depends-on): Likewise.
36886         * modules/sprintf-posix (Depends-on): Likewise.
36887         * modules/vasnprintf (Depends-on): Likewise.
36888         * modules/vasprintf (Depends-on): Likewise.
36889         * modules/vfprintf-posix (Depends-on): Likewise.
36890         * modules/vsnprintf (Depends-on): Likewise.
36891         * modules/vsprintf-posix (Depends-on): Likewise.
36892         * modules/xvasprintf (Depends-on): Likewise.
36893         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36894         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36895         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36896         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36897         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36898         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36899         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36900         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36901         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36902         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36903         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36904         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36905         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36906         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36907         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36908         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36909         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36910         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36911         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36912         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36913         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36914         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36915         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36916         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36917         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36918         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36919         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36920         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36921         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36922         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36923         * MODULES.html.sh: Remove EOVERFLOW.
36924         * NEWS: Mention the change.
36925
36926 2008-09-13  Bruno Haible  <bruno@clisp.org>
36927
36928         * modules/errno-tests: New file.
36929         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36930
36931         * lib/errno.in.h: New file.
36932         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36933         * modules/errno: New file.
36934         * doc/posix-headers/errno.texi: Update documentation.
36935         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36936
36937 2008-09-13  Bruno Haible  <bruno@clisp.org>
36938
36939         * tests/test-poll.c: Use #if for native Windows, rather than testing
36940         __MSVCRT__.
36941
36942 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36943             Bruno Haible  <bruno@clisp.org>
36944
36945         * lib/glob.c: Don't include <pwd.h> on native Windows.
36946         (WINDOWS32): New macro.
36947         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36948
36949 2008-09-13  Bruno Haible  <bruno@clisp.org>
36950
36951         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36952         (ETIMEDOUT): Remove macro.
36953         (glthread_cond_timedwait_multithreaded): New declaration.
36954         (glthread_cond_timedwait): Use it.
36955         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36956         (glthread_cond_timedwait_multithreaded): New function.
36957
36958 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36959
36960         * modules/poll-tests: Do not check for io.h.
36961         * tests/test-poll.c: Check for __MSVCRT__ instead.
36962
36963 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36964
36965         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36966         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36967         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36968
36969 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36970
36971         * modules/poll-tests: New.
36972         * tests/test-poll.c: New.
36973
36974 2008-09-12  Eric Blake  <ebb9@byu.net>
36975
36976         frexp: test for NetBSD failure on -0.0
36977         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36978         not all, bugs from NetBSD 3.0 have been fixed.
36979         * doc/posix-functions/frexp.texi (frexp): Document bug.
36980         Reported by Thomas Klausner.
36981
36982         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36983         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36984         literal -0.0.
36985         Reported by Jonathan C. Patschke <jp@centtech.com>.
36986
36987 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36988
36989         * lib/glthread/cond.h: Use dummy implementation also if
36990         USE_WIN32_THREADS.
36991
36992 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36993
36994         * modules/fnmatch-posix (License): Change to LGPLv2+.
36995         * modules/fnmatch-gnu (License): Likewise.
36996
36997 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36998
36999         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
37000
37001 2008-09-11  Jim Meyering  <meyering@redhat.com>
37002
37003         * users.txt: Add gtk-vnc.
37004
37005 2008-09-08  Simon Josefsson  <simon@josefsson.org>
37006
37007         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
37008         rotate amounts.
37009
37010         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
37011         required for 16-bit and 8-bit rotates.
37012         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
37013         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
37014         UINT8_MAX instead of hard-coded constants.
37015         Suggested by Paul Eggert.
37016
37017 2008-09-07  Bruno Haible  <bruno@clisp.org>
37018
37019         * tests/test-striconveh.c (main): Check behaviour when converting from
37020         UTF-7.
37021
37022         Make striconveh work better with stateful encodings.
37023         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
37024         that iconv does not increment the inptr when returning -1/EINVAL.
37025
37026 2008-09-07  Bruno Haible  <bruno@clisp.org>
37027
37028         * build-aux/config.rpath: Update according to libtool-2.2.6.
37029         * build-aux/config.libpath: Likewise.
37030
37031 2008-09-06  Bruno Haible  <bruno@clisp.org>
37032
37033         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
37034         * lib/freadptr.c (freadptr): Likewise.
37035         * lib/freadseek.c (freadptrinc): Likewise.
37036         Reported by Simon Josefsson.
37037
37038 2008-09-06  Bruno Haible  <bruno@clisp.org>
37039
37040         * modules/freadptr (License): Change to LGPLv2+.
37041         * modules/freadseek (License): Likewise.
37042         Suggested by Eric Blake.
37043
37044         * modules/memchr2 (License): Change to LGPLv2+.
37045         Approved by Eric Blake.
37046
37047 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37048             Bruno Haible  <bruno@clisp.org>
37049
37050         Make gnulib-tool work with native 'sed' on AIX.
37051         * gnulib-tool (sed_noop): New variable.
37052         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
37053         func_add_or_update, func_create_testdir): Use it to initialize sed
37054         script variables.
37055         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37056
37057 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37058             Bruno Haible  <bruno@clisp.org>
37059
37060         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37061         also works after #include directives.
37062
37063 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
37064
37065         getdate.y: reject an out-of-range timezone value
37066         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37067         the range [-24...+24].  When specified with only one or two digits,
37068         * tests/test-getdate.c: Tests for the fix.
37069         * doc/getdate.texi: Document this change.
37070
37071 2008-09-03  Bruno Haible  <bruno@clisp.org>
37072
37073         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37074
37075 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37076
37077         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37078         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37079         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37080         Blake <ebb9@byu.net>.
37081
37082         * tests/test-bitrotate.c: Add more test vectors.
37083
37084 2008-09-02  Eric Blake  <ebb9@byu.net>
37085
37086         vasnprintf-posix: handle large precision via %.*d
37087         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37088         when handling it ourselves.
37089         * tests/test-vasnprintf-posix.c (test_function): Add test.
37090         * tests/test-snprintf-posix.h (test_function): Likewise.
37091         * tests/test-sprintf-posix.h (test_function): Likewise.
37092         * tests/test-vasprintf-posix.c (test_function): Likewise.
37093         Reported by Alain Guibert.
37094
37095 2008-09-01  Eric Blake  <ebb9@byu.net>
37096
37097         c-stack: make configure-time check more robust
37098         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37099         successful sigaction call.
37100         Reported by Tom G. Christensen.
37101
37102 2008-09-01  Bruno Haible  <bruno@clisp.org>
37103
37104         New module 'findprog-lgpl'.
37105         * modules/findprog-lgpl: New file.
37106         * lib/findprog-lgpl.c: New file.
37107         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37108         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37109         to decide whether to use strdup or xstrdup, concatenated_filename or
37110         xconcatenated_filename.
37111
37112 2008-09-01  Bruno Haible  <bruno@clisp.org>
37113
37114         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37115         'xconcat-filename' (GPL).
37116         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37117         (License): Change to LGPLv2+.
37118         * modules/xconcat-filename: New file.
37119         * lib/concat-filename.h (concatenated_filename): Change specification.
37120         (xconcatenated_filename): New declaration.
37121         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37122         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37123         memory situations.
37124         * lib/xconcat-filename.c: New file.
37125         * NEWS: Mention the change.
37126         * lib/findprog.c: Include concat-filename.h, not filename.h.
37127         (find_in_path): Use xconcatenated_filename instead of
37128         concatenated_filename.
37129         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37130         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37131         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37132         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37133         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37134         instead of concatenated_filename.
37135         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37136         (execute_java_class): Use xconcatenated_filename instead of
37137         concatenated_filename.
37138         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37139         * modules/javacomp (Depends-on): Likewise.
37140         * modules/javaexec (Depends-on): Likewise.
37141
37142 2008-09-01  Bruno Haible  <bruno@clisp.org>
37143
37144         Split module 'filename' into 'filename' and 'concat-filename'.
37145         * modules/filename: Keep only lib/filename.h.
37146         (License): Change to LGPLv2+.
37147         * modules/concat-filename: New file, extracted from modules/filename.
37148         * lib/filename.h (concatenated_filename): Remove declaration.
37149         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37150         * lib/concat-filename.c: Include concat-filename.h.
37151         * NEWS: Mention the change.
37152
37153 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37154
37155         * lib/bitrotate.h (rotl8, rotr8): Add.
37156
37157         * modules/bitrotate (configure.ac): Need
37158         AC_REQUIRE([AC_C_INLINE]).
37159         (Description): Mention stdint.h.  Reported by Bruno Haible
37160         <bruno@clisp.org>.
37161
37162         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37163         Paolo Bonzini <bonzini@gnu.org>.
37164
37165 2008-08-31  Bruno Haible  <bruno@clisp.org>
37166
37167         Assume Solaris specific bi-arch conventions on Solaris systems.
37168         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37169         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37170         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37171         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37172         like acl_libdirstem.
37173         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37174         acl_libdirstem.
37175         * NEWS: Mention the change.
37176         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37177
37178 2008-08-31  Jim Meyering  <meyering@redhat.com>
37179
37180         * lib/strftime.h: Add comments describing the two added arguments.
37181
37182         remove duplicate #include directives
37183         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37184         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37185
37186 2008-08-31  Bruno Haible  <bruno@clisp.org>
37187
37188         New module 'sigpipe-die'.
37189         * modules/sigpipe-die: New file.
37190         * lib/sigpipe-die.h: New file.
37191         * lib/sigpipe-die.c: New file.
37192         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37193
37194 2008-08-31  Bruno Haible  <bruno@clisp.org>
37195
37196         Don't override previously installed signal handlers.
37197         * lib/fatal-signal.c (saved_sigactions): New variable.
37198         (uninstall_handlers): Reset the signal to the saved handler, not
37199         to SIG_DFL (except when ignored).
37200         (install_handlers): Save the previous handlers.
37201
37202 2008-08-30  Bruno Haible  <bruno@clisp.org>
37203
37204         * gnulib-tool (func_reset_sigpipe): New function.
37205         (func_get_automake_snippet, func_modules_transitive_closure,
37206         func_import): Invoke it before a join command that reads from stdin,
37207         to avoid "echo: write error: Broken pipe" error messages on stderr.
37208         Reported by Sam Steingold <sds@gnu.org>.
37209
37210 2008-08-30  Bruno Haible  <bruno@clisp.org>
37211
37212         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37213         Code copied from m4/open.m4.
37214         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37215         access and the filename ends in a slash. Code copied from lib/open.c.
37216         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37217         * tests/test-fopen.c (main): Check against bug with trailing slash.
37218
37219 2008-08-29  Bruno Haible  <bruno@clisp.org>
37220
37221         Avoid some "gcc -pedantic" warnings.
37222         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37223         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37224         * lib/dirent.in.h: Likewise.
37225         * lib/fcntl.in.h: Likewise.
37226         * lib/float.in.h: Likewise.
37227         * lib/iconv.in.h: Likewise.
37228         * lib/inttypes.in.h: Likewise.
37229         * lib/locale.in.h: Likewise.
37230         * lib/math.in.h: Likewise.
37231         * lib/netinet_in.in.h: Likewise.
37232         * lib/search.in.h: Likewise.
37233         * lib/signal.in.h: Likewise.
37234         * lib/stdarg.in.h: Likewise.
37235         * lib/stdint.in.h: Likewise.
37236         * lib/stdio.in.h: Likewise.
37237         * lib/stdlib.in.h: Likewise.
37238         * lib/string.in.h: Likewise.
37239         * lib/strings.in.h: Likewise.
37240         * lib/sys_select.in.h: Likewise.
37241         * lib/sys_socket.in.h: Likewise.
37242         * lib/sys_stat.in.h: Likewise.
37243         * lib/sys_time.in.h: Likewise.
37244         * lib/sysexits.in.h: Likewise.
37245         * lib/time.in.h: Likewise.
37246         * lib/unistd.in.h: Likewise.
37247         * lib/wchar.in.h: Likewise.
37248         * lib/wctype.in.h: Likewise.
37249         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37250         * modules/fchdir (Makefile.am): Likewise.
37251         * modules/fcntl (Makefile.am): Likewise.
37252         * modules/float (Makefile.am): Likewise.
37253         * modules/iconv_open (Makefile.am): Likewise.
37254         * modules/inttypes (Makefile.am): Likewise.
37255         * modules/locale (Makefile.am): Likewise.
37256         * modules/math (Makefile.am): Likewise.
37257         * modules/netinet_in (Makefile.am): Likewise.
37258         * modules/search (Makefile.am): Likewise.
37259         * modules/signal (Makefile.am): Likewise.
37260         * modules/stdarg (Makefile.am): Likewise.
37261         * modules/stdint (Makefile.am): Likewise.
37262         * modules/stdio (Makefile.am): Likewise.
37263         * modules/stdlib (Makefile.am): Likewise.
37264         * modules/string (Makefile.am): Likewise.
37265         * modules/strings (Makefile.am): Likewise.
37266         * modules/sys_select (Makefile.am): Likewise.
37267         * modules/sys_socket (Makefile.am): Likewise.
37268         * modules/sys_stat (Makefile.am): Likewise.
37269         * modules/sys_time (Makefile.am): Likewise.
37270         * modules/sysexits (Makefile.am): Likewise.
37271         * modules/time (Makefile.am): Likewise.
37272         * modules/unistd (Makefile.am): Likewise.
37273         * modules/wchar (Makefile.am): Likewise.
37274         * modules/wctype (Makefile.am): Likewise.
37275         Reported by Reuben Thomas <rrt@sc3d.org>.
37276
37277 2008-08-29  Bruno Haible  <bruno@clisp.org>
37278
37279         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37280         any more.
37281
37282 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37283
37284         * MODULES.html.sh (Misc): Add bitrotate.
37285
37286         * modules/bitrotate: New file.
37287
37288         * lib/bitrotate.h: New file.
37289
37290         * modules/bitrotate-tests: New file.
37291
37292         * tests/test-bitrotate.c: New file.
37293
37294         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37295         on the bitrotate module.
37296
37297         * lib/arctwo.c: Use new bitrotate module.
37298
37299 2008-08-29  Jim Meyering  <meyering@redhat.com>
37300
37301         bootstrap: merge changes from coreutils
37302         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37303         of copied files.  Remove a kludge, now that this is fixed.
37304         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37305         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37306         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37307
37308 2008-08-29  Bruno Haible  <bruno@clisp.org>
37309
37310         * MODULES.html.sh: Remove --cvs-urls option.
37311
37312 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37313
37314         maint.mk: adjust to file name change
37315         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37316
37317 2008-08-28  Jim Meyering  <meyering@redhat.com>
37318
37319         * modules/getndelim2 (License): Relicense to LGPLv2+.
37320         Approved by Richard Stallman for the version of 1995, and by
37321         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37322
37323 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37324
37325         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37326         dummy if one is not available.  Do not touch them if
37327         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37328         (getc_maybe_unlocked): New.
37329         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37330
37331 2008-08-26  Eric Blake  <ebb9@byu.net>
37332
37333         doc/INSTALL: resync from autoconf
37334         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37335         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37336         moving...
37337         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37338         * INSTALL: Regenerate.
37339         * INSTALL.ISO: New file.
37340         * INSTALL.UTF-8: Likewise.
37341
37342 2008-08-26  Jim Meyering  <meyering@redhat.com>
37343
37344         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37345         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37346         these definitions conditional, so that they may be overridden, too.
37347
37348 2008-08-26  Bruno Haible  <bruno@clisp.org>
37349
37350         Generate INSTALL file variants with prettier quotes.
37351         * doc/Makefile (INSTALL_PRELUDE): New macro.
37352         (INSTALL): Use it.
37353         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37354
37355 2008-08-26  Bruno Haible  <bruno@clisp.org>
37356
37357         Run makeinfo in an English locale.
37358         * doc/Makefile (MAKEINFO): New variable.
37359
37360 2008-08-26  Bruno Haible  <bruno@clisp.org>
37361
37362         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37363         Suggested by Eric Blake.
37364
37365 2008-08-25  Bruno Haible  <bruno@clisp.org>
37366
37367         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37368
37369 2008-08-25  Eric Blake  <ebb9@byu.net>
37370
37371         c-stack: test that stack overflow can be caught
37372         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37373         that platform allows handling stack overflow; at least OS/2 EMX
37374         has sigaltstack, but crashes before transferring control to
37375         handler on stack overflow.
37376         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37377         check for HAVE_STACK_OVERFLOW_HANDLING.
37378         Reported by Elbert Pol.
37379
37380 2008-08-25  Bruno Haible  <bruno@clisp.org>
37381
37382         * doc/posix-functions/strftime.texi: Fix description of strftime
37383         module.
37384
37385 2008-08-24  Bruno Haible  <bruno@clisp.org>
37386
37387         * tests/uniwidth/test-uc_width2.c: New file.
37388         * tests/uniwidth/test-uc_width2.sh: New file.
37389         * modules/uniwidth/width-tests (Files): Add the new files.
37390         (TESTS): Add uniwidth/test-uc_width2.sh.
37391         (TESTS_ENVIRONMENT): New variable.
37392         (check_PROGRAMS): Add test-uc_width2.
37393         (test_uc_width2_SOURCES): New variable.
37394
37395         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37396         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37397         not 0x00AB.
37398         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37399
37400 2008-08-22  Eric Blake  <ebb9@byu.net>
37401
37402         test-lock, test-tls: mention why a test is skipped
37403         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37404         skipped.
37405         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37406
37407         count-one-bits: relax license
37408         * modules/count-one-bits (License): Relicense to LGPLv2+.
37409         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37410
37411 2008-08-22  Andreas Schwab  <schwab@suse.de>
37412
37413         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37414         Remove spurious space in assignment.
37415
37416 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37417
37418         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37419         Paul Eggert <eggert@CS.UCLA.EDU>.
37420
37421 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37422
37423         * modules/gettext: Add m4/threadlib.m4.
37424
37425 2008-08-19  Eric Blake  <ebb9@byu.net>
37426
37427         test-c-stack: fix compilation failure on FreeBSD 5.0
37428         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37429         headers before <sys/resource.h>.
37430         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37431         the bug.
37432         Reported by Nelson H. F. Beebe.
37433
37434         strverscmp: migrate from "strverscmp.h" to <string.h>
37435         * modules/string (Makefile.am): Add new hooks.
37436         * modules/strverscmp (Files): Remove strverscmp.h.
37437         (Depends-on): Add string.
37438         (configure.ac): Add indicator.
37439         (Include): Mention new header.
37440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37441         defaults.
37442         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37443         results.
37444         * lib/strverscmp.h: Delete.
37445         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37446         * tests/test-strverscmp.c (includes): Adjust client.
37447         * lib/check-version.c (includes): Likewise.
37448         * NEWS: Document the change.
37449
37450         strverscmp: add unit test
37451         * modules/strverscmp-tests: New file.
37452         * tests/test-strverscmp.c: Likewise.
37453
37454 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37455
37456         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37457         regarding Windows crypto stuff, from Mono.
37458
37459 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37460
37461         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37462         if present, for intel RND.  Return error on failures.
37463
37464 2008-08-18  Ben Pfaff  <blp@gnu.org>
37465
37466         gitlog-to-changelog: give better diagnostic for failed pipe-open
37467         * build-aux/gitlog-to-changelog: Improve error message: suggest
37468         that the version of Git may be too old.
37469
37470 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37471
37472         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37473         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37474
37475 2008-08-18  Bruno Haible  <bruno@clisp.org>
37476
37477         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37478         pthread_in_use().
37479
37480 2008-08-18  Bruno Haible  <bruno@clisp.org>
37481
37482         * lib/glthread/threadlib.c: Include <pthread.h>.
37483
37484 2008-08-18  Bruno Haible  <bruno@clisp.org>
37485
37486         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37487         glthread_recursive_lock_* macros.
37488         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37489         Fix syntax error.
37490
37491 2008-08-18  Bruno Haible  <bruno@clisp.org>
37492
37493         * lib/glthread/thread.c: Avoid forcing a context switch right after
37494         thread creation.
37495
37496 2008-08-17  Bruno Haible  <bruno@clisp.org>
37497
37498         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37499         * lib/glthread/thread.h: Provide Win32 specific implementation.
37500         * modules/thread (Files): Add lib/glthread/thread.c.
37501         (Depends-on): Add lock.
37502         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37503
37504 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37505
37506         New module 'yield'.
37507         * modules/yield: New file.
37508         * lib/glthread/yield.h: New file.
37509         * m4/yield.m4: New file.
37510         * MODULES.html.sh (Multithreading): Add yield.
37511
37512 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37513
37514         New module 'thread'.
37515         * modules/thread: New file.
37516         * lib/glthread/thread.h: New file.
37517         * m4/thread.m4: New file.
37518         * MODULES.html.sh (Multithreading): Add thread.
37519
37520 2008-08-17  Bruno Haible  <bruno@clisp.org>
37521
37522         * lib/glthread/lock.h: Include <stdlib.h> always.
37523         * lib/glthread/tls.h: Likewise.
37524         * lib/glthread/cond.h: Likewise.
37525
37526 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37527
37528         New module 'cond'.
37529         * modules/cond: New file.
37530         * lib/glthread/cond.h: New file.
37531         * lib/glthread/cond.c: New file.
37532         * m4/cond.m4: New file.
37533         * MODULES.html.sh (Multithreading): Add cond.
37534
37535 2008-08-16  Eric Blake  <ebb9@byu.net>
37536
37537         c-stack: fix regression on Irix 5.3 from 2008-06-21
37538         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37539         sa_sigaction...
37540         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37541         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37542         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37543         * modules/signal (Makefile.am): Use the value.
37544         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37545         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37546         * doc/posix-headers/signal.texi (signal.h): Document this
37547         portability issue.
37548         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37549         Reported by Tom G. Christensen.
37550
37551 2008-08-17  Bruno Haible  <bruno@clisp.org>
37552
37553         New module 'threadlib'.
37554         * modules/threadlib: New file.
37555         * lib/glthread/threadlib.c: New file, extracted from
37556         lib/glthread/lock.c.
37557         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37558         functions.
37559         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37560         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37561         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37562         macros.
37563         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37564         (gl_DISABLE_THREADS): Remove macro.
37565         * modules/lock (Files): Remove build-aux/config.rpath.
37566         (Depends-on): Remove havelib. Add threadlib.
37567         (configure.ac-early): Remove section.
37568         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37569         * modules/tls (Depends-on): Remove lock. Add threadlib.
37570         (Link): New section, copied from threadlib.
37571         * MODULES.html.sh (Multithreading): Add threadlib.
37572
37573 2008-08-14  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37576         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37577         glthread_rwlock_unlock, glthread_rwlock_destroy,
37578         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37579         glthread_recursive_lock_destroy): Define as macros always.
37580         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37581         glthread_lock_lock.
37582         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37583         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37584         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37585         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37586         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37587         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37588         (glthread_recursive_lock_lock_func): Renamed from
37589         glthread_recursive_lock_lock.
37590         (glthread_recursive_lock_unlock_func): Renamed from
37591         glthread_recursive_lock_unlock.
37592         (glthread_recursive_lock_destroy_func): Renamed from
37593         glthread_recursive_lock_destroy.
37594
37595 2008-08-14  Bruno Haible  <bruno@clisp.org>
37596
37597         * lib/glthread/lock.h: Renamed from lib/lock.h.
37598         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37599         * lib/glthread/tls.h: Renamed from lib/tls.h.
37600         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37601         * lib/fstrcmp.c: Update includes.
37602         * lib/strsignal.c: Update includes.
37603         * modules/lock (Files, Makefile.am): Update.
37604         (Include): Change to "glthread/lock.h".
37605         * modules/tls (Files, Makefile.am): Update.
37606         (Include): Change to "glthread/tls.h".
37607         * tests/test-lock.c: Update includes.
37608         * tests/test-tls.c: Update includes.
37609         * NEWS: Mention the renamed header files.
37610
37611 2008-08-11  Jim Meyering  <meyering@redhat.com>
37612
37613         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37614
37615 2008-08-11  Eric Blake  <ebb9@byu.net>
37616
37617         test-c-stack: avoid C99-ism
37618         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37619         before statement.
37620         Reported by Alain Guibert.
37621
37622 2008-08-10  Jim Meyering  <meyering@redhat.com>
37623
37624         ensure that return value of uinttostr et al are not ignored
37625         * lib/inttostr.h (__GNUC_PREREQ): Define.
37626         (__attribute_warn_unused_result__): Define.
37627         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37628
37629 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37630
37631         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37632         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37633
37634 2008-08-07  Jim Meyering  <meyering@redhat.com>
37635
37636         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37637
37638         * modules/mkstemp (License): Relicense under LGPLv2+.
37639         * modules/tempname (License): Likewise.
37640
37641 2008-08-06  Bruno Haible  <bruno@clisp.org>
37642
37643         * lib/poll.c (poll): Further micro-optimization.
37644
37645 2008-08-06  Jim Meyering  <meyering@redhat.com>
37646
37647         inet_pton.c: use locale-independent tolower
37648         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37649         (inet_pton6): Use c_tolower rather than tolower.
37650         * modules/inet_pton (Depends-on): Add c-ctype.
37651
37652 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37653
37654         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37655         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37656
37657 2008-08-06  Jim Meyering  <meyering@redhat.com>
37658
37659         * modules/inet_pton (License): Relicense under LGPLv2+.
37660
37661 2008-08-03  Bruno Haible  <bruno@clisp.org>
37662
37663         Additional non-aborting API for lock and tls.
37664         * lib/lock.h: Include <errno.h>.
37665         (glthread_lock_init): New macro/function.
37666         (gl_lock_init): Define as wrapper around glthread_lock_init.
37667         (glthread_lock_lock): New macro/function.
37668         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37669         (glthread_lock_unlock): New macro/function.
37670         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37671         (glthread_lock_destroy): New macro/function.
37672         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37673         (glthread_rwlock_init): New macro/function.
37674         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37675         (glthread_rwlock_rdlock): New macro/function.
37676         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37677         (glthread_rwlock_wrlock): New macro/function.
37678         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37679         (glthread_rwlock_unlock): New macro/function.
37680         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37681         (glthread_rwlock_destroy): New macro/function.
37682         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37683         (glthread_recursive_lock_init): New macro/function.
37684         (gl_recursive_lock_init): Define as wrapper around
37685         glthread_recursive_lock_init.
37686         (glthread_recursive_lock_lock): New macro/function.
37687         (gl_recursive_lock_lock): Define as wrapper around
37688         glthread_recursive_lock_lock.
37689         (glthread_recursive_lock_unlock): New macro/function.
37690         (gl_recursive_lock_unlock): Define as wrapper around
37691         glthread_recursive_lock_unlock.
37692         (glthread_recursive_lock_destroy): New macro/function.
37693         (gl_recursive_lock_destroy): Define as wrapper around
37694         glthread_recursive_lock_destroy.
37695         (glthread_once): New macro/function.
37696         (gl_once): Define as wrapper around glthread_once.
37697         Update function declarations.
37698         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37699         glthread_rwlock_init. Return error code.
37700         (glthread_rwlock_rdlock_multithreaded): Renamed from
37701         glthread_rwlock_rdlock. Return error code.
37702         (glthread_rwlock_wrlock_multithreaded): Renamed from
37703         glthread_rwlock_wrlock. Return error code.
37704         (glthread_rwlock_unlock_multithreaded): Renamed from
37705         glthread_rwlock_unlock. Return error code.
37706         (glthread_rwlock_destroy_multithreaded): Renamed from
37707         glthread_rwlock_destroy. Return error code.
37708         (glthread_recursive_lock_init_multithreaded): Renamed from
37709         glthread_recursive_lock_init. Return error code.
37710         (glthread_recursive_lock_lock_multithreaded): Renamed from
37711         glthread_recursive_lock_lock. Return error code.
37712         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37713         glthread_recursive_lock_unlock. Return error code.
37714         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37715         glthread_recursive_lock_destroy. Return error code.
37716         (glthread_once_call): Make static.
37717         (glthread_once_multithreaded): Renamed from glthread_once.
37718         * lib/tls.h: Include <errno.h>.
37719         (glthread_tls_key_init): New macro/function.
37720         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37721         (glthread_tls_set): New macro/function.
37722         (gl_tls_set): Define as wrapper around glthread_tls_set.
37723         (glthread_tls_key_destroy): New macro/function.
37724         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37725         Update function declarations.
37726         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37727         glthread_tls_get.
37728         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37729
37730 2008-08-04  Eric Blake  <ebb9@byu.net>
37731
37732         gnumakefile: use space, not TAB, outside of targets
37733         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37734
37735 2008-08-02  Jim Meyering  <meyering@redhat.com>
37736
37737         getdate.y: avoid locale-dependent date parsing failure
37738         In Turkish locales, getdate would fail to recognize keywords
37739         containing a lowercase "i".  The solution is not to rely on
37740         locale-sensitive case-conversion.
37741         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37742         (lookup_word): Use c_toupper in place of toupper.
37743         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37744         Reported by Vefa Bicakci <bicave@superonline.com> in
37745         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37746         * modules/getdate (Depends-on): Add c-ctype.
37747
37748 2008-08-02  Bruno Haible  <bruno@clisp.org>
37749
37750         * gnulib-tool (func_import): When updating or creating a .gitignore
37751         file, prepend each added line with a slash, and ignore leading slashes
37752         from the existing lines.
37753         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37754
37755 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37756
37757         Portability fix for GNU make 3.79.1.
37758         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37759         versions do not understand.
37760
37761 2008-08-01  Bruno Haible  <bruno@clisp.org>
37762
37763         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37764         * tests/test-isnanf.h (zero): New variable.
37765         (main): Avoid literal -0.0f.
37766         * tests/test-isnand.h (zero): New variable.
37767         (main): Avoid literal -0.0.
37768         * tests/test-isnanl.h (zero): New variable.
37769         (main): Avoid literal -0.0L.
37770         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37771         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37772         -0.0, -0.0L.
37773         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37774         (test_signbitd): Avoid literal -0.0.
37775         (test_signbitl): Avoid literal -0.0L.
37776         * tests/test-ceilf1.c (zero): New variable.
37777         (main): Avoid literal -0.0f.
37778         * tests/test-ceill.c (zero): New variable.
37779         (main): Avoid literal -0.0L.
37780         * tests/test-floorf1.c (zero): New variable.
37781         (main): Avoid literal -0.0f.
37782         * tests/test-floorl.c (zero): New variable.
37783         (main): Avoid literal -0.0L.
37784         * tests/test-roundf1.c (zero): New variable.
37785         (main): Avoid literal -0.0f.
37786         * tests/test-round1.c (zero): New variable.
37787         (main): Avoid literal -0.0.
37788         * tests/test-roundl.c (zero): New variable.
37789         (main): Avoid literal -0.0L.
37790         * tests/test-truncf1.c (zero): New variable.
37791         (main): Avoid literal -0.0f.
37792         * tests/test-trunc1.c (zero): New variable.
37793         (main): Avoid literal -0.0.
37794         * tests/test-truncl.c (zero): New variable.
37795         (main): Avoid literal -0.0L.
37796         * tests/test-frexp.c (zero): New variable.
37797         (main): Avoid literal -0.0.
37798         * tests/test-frexpl.c (zero): New variable.
37799         (main): Avoid literal -0.0L.
37800         * tests/test-ldexpl.c (zero): New variable.
37801         (main): Avoid literal -0.0L.
37802         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37803         (zerod, zerol): New variables.
37804         (test_function): Avoid literals -0.0, -0.0L.
37805         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37806         (zerod, zerol): New variables.
37807         (test_function): Avoid literals -0.0, -0.0L.
37808         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37809         (zerod, zerol): New variables.
37810         (test_function): Avoid literals -0.0, -0.0L.
37811         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37812         (zerod, zerol): New variables.
37813         (test_function): Avoid literals -0.0, -0.0L.
37814         * tests/test-strtod.c (zero): New variable.
37815         (main): Avoid literal -0.0.
37816         Reported by Jonathan C. Patschke <jp@centtech.com>.
37817
37818 2008-07-31  Jim Meyering  <meyering@redhat.com>
37819
37820         sha256.h: correct definition of SHA224_DIGEST_SIZE
37821         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37822         Reported by Paulie Pena IV <paulie4@gmail.com>.
37823         Define as 224 / 8, rather than as a literal.
37824         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37825         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37826         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37827
37828 2008-07-31  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37831         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37832         Reported by Jonathan Patschke <jp@centtech.com>.
37833
37834 2008-07-31  Bruno Haible  <bruno@clisp.org>
37835
37836         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37837         Reported by Paolo Bonzini <bonzini@gnu.org>.
37838
37839 2008-07-30  Eric Blake  <ebb9@byu.net>
37840
37841         test-strtod: allow compilation without -lm
37842         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37843         Reported by Dennis Clarke <blastwave@gmail.com>.
37844
37845 2008-07-28  Jim Meyering  <meyering@redhat.com>
37846
37847         bootstrap: work also when there are no .po files in po/
37848         * build-aux/bootstrap (update_po_files): Complete the change
37849         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37850
37851 2008-07-27  Jim Meyering  <meyering@redhat.com>
37852
37853         * users.txt: Add zile.
37854
37855 2008-07-26  Ben Pfaff  <blp@gnu.org>
37856
37857         Add missing dependencies on new m4/exponent[fdl].m4 files.
37858         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37859         * modules/isnand-nolibm: Add m4/exponentd.m4.
37860         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37861         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37862         m4/isnan[fdl].m4, because the macros actually used moved.
37863         Reported by Jim Meyering.
37864
37865 2008-07-14  Ben Pfaff  <blp@gnu.org>
37866
37867         Add isinf module.
37868         * lib/isinf.c: New file.
37869         * lib/math.in.h: Define isinf macro if we have decided to replace
37870         it.
37871         * m4/isinf.m4: New file.
37872         * m4/math_h.m4: Initialize and substitute variables for isinf
37873         module.
37874         * modules/isinf: New file.
37875         * modules/isinf-tests: New file.
37876         * modules/math: Add substitutions for new module.
37877         * tests/test-isinf.c: New file.
37878         * doc/posix-functions/isinf.texi: Mention new module.
37879         * MODULES.html.sh: Mention new module.
37880
37881 2008-07-14  Ben Pfaff  <blp@gnu.org>
37882
37883         Factor out some macros for use by additional modules.
37884         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37885         exponentf.m4.
37886         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37887         exponentd.m4.
37888         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37889         file exponentl.m4.
37890         * m4/exponentf.m4: New file.
37891         * m4/exponentd.m4: New file.
37892         * m4/exponentl.m4: New file.
37893         * modules/isnanf: Use new file m4/exponentf.m4.
37894         * modules/isnand: Use new file m4/exponentd.m4.
37895         * modules/isnanl: Use new file m4/exponentl.m4.
37896
37897 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37898
37899         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37900         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37901         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37902         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37903
37904         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37905         readlink on platforms without PATH_MAX.
37906
37907 2008-07-21  Eric Blake  <ebb9@byu.net>
37908
37909         Warn, not fail, on stale version.
37910         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37911
37912         Don't allow installation with stale devel version number.
37913         * top/GNUmakefile (_is-install-target): New macro.
37914         (_curr-ver): Forbid installation with stale version number.
37915
37916 2008-07-20  Bruno Haible  <bruno@clisp.org>
37917
37918         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37919         TESTS_ENVIRONMENT.
37920         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37921
37922 2008-07-20  Bruno Haible  <bruno@clisp.org>
37923
37924         * lib/c-stack.h (c_stack_action): Add documentation.
37925         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37926
37927 2008-07-20  Bruno Haible  <bruno@clisp.org>
37928
37929         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37930         * modules/readlink (License): Likewise.
37931
37932 2008-07-17  Eric Blake  <ebb9@byu.net>
37933
37934         * modules/c-stack (Link): Fix typo.
37935
37936         Make c-stack use libsigsegv, when available.
37937         * modules/c-stack (Depends-on): Add libsigsegv.
37938         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37939         needed.
37940         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37941         (segv_handler, overflow_handler, c_stack_action)
37942         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37943         implementation when libsigsegv is available, but only when using
37944         the library is necessary.
37945         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37946         comment, explaining why XSI check fails on Linux.
37947         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37948         * tests/test-c-stack2.sh: Tweak skip message.
37949         * NEWS: Document new link-time requirements.
37950
37951 2008-07-16  Eric Blake  <ebb9@byu.net>
37952
37953         c-stack: Expose false positives when not using libsigsegv.
37954         * modules/c-stack-tests (Files): Expand test.
37955         * tests/test-c-stack.c (main): Add means to conditionally trigger
37956         non-overflow SIGSEGV.
37957         * tests/test-c-stack2.sh: New file.
37958
37959 2008-07-14  Bruno Haible  <bruno@clisp.org>
37960
37961         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37962         Reported by Eric Blake.
37963
37964 2008-07-14  Sam Steingold  <sds@gnu.org>
37965             Bruno Haible  <bruno@clisp.org>
37966
37967         New module libsigsegv.
37968         * modules/libsigsegv: New file.
37969         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37970         modifications.
37971         * MODULES.html.sh (Signal handling): New section.
37972
37973 2008-07-14  Bruno Haible  <bruno@clisp.org>
37974
37975         * modules/unictype/ctype-* (Description): Add the word "function".
37976         Improves the resulting doc in MODULES.html.
37977
37978 2008-07-12  Ben Pfaff  <blp@gnu.org>
37979
37980         Add longlong module.
37981         * modules/longlong: New file.
37982
37983 2008-07-12  Bruno Haible  <bruno@clisp.org>
37984
37985         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37986         to empty.
37987
37988 2008-07-10  Ben Pfaff  <blp@gnu.org>
37989
37990         Add isnan module.
37991         * doc/posix-functions/isnan.texi: Mention new module.
37992         * lib/math.in.h: Define isnan macro if we have decided to replace
37993         it.
37994         * m4/isnan.m4: New file.
37995         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37996         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37997         also.
37998         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37999         redundancy.
38000         * m4/math_h.m4: Initialize and substitute variables for isnan
38001         module.
38002         * modules/isnan: New file.
38003         * modules/isnan-tests: New file.
38004         * modules/math: Add substitutions for new module.
38005         * tests/test-isnan.c: New file.
38006         * MODULES.html.sh: Mention new module.
38007
38008 2008-07-10  Ben Pfaff  <blp@gnu.org>
38009
38010         Add isnanf module.
38011         * lib/isnanf.m4: New file.
38012         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
38013         (gl_HAVE_ISNANF_IN_LIBM): New macro.
38014         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
38015         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
38016         * modules/isnanf: New file.
38017         * modules/isnanf-tests: New file.
38018         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
38019         files.
38020         * tests/test-isnanf-nolibm.c: factored most of its contents into
38021         new file tests/test-isnanf.h.
38022         * tests/test-isnanf.h: New file.
38023         * tests/test-isnanf.c: New file.
38024         * MODULES.html.sh: Mention new module.
38025         * doc/glibc-functions/isnanf.texi: Mention new module.
38026
38027 2008-07-10  Ben Pfaff  <blp@gnu.org>
38028
38029         Add isnand module.
38030         * lib/isnand.h: New file.
38031         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
38032         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
38033         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
38034         functionality also.
38035         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
38036         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
38037         (gl_HAVE_ISNAND_IN_LIBM): New macro.
38038         * modules/isnand: New file.
38039         * modules/isnand-tests: New file.
38040         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
38041         files.
38042         * tests/test-isnand-nolibm.c: factored most of its contents into
38043         new file tests/test-isnand.h.
38044         * tests/test-isnand.h: New file.
38045         * tests/test-isnand.c: New file.
38046         * MODULES.html.sh: Mention new module.
38047
38048 2008-07-10  Ben Pfaff  <blp@gnu.org>
38049
38050         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
38051         * lib/isnand.h: Rename lib/isnand-nolibm.h.
38052         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
38053         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38054         * modules/isnanf-nolibm: Update references to renamed files.
38055         * modules/isnand-nolibm: Likewise.
38056         * modules/isnanf-nolibm-tests: Likewise.
38057         * modules/isnand-nolibm-tests: Likewise.
38058         * lib/frexp.c: Likewise.
38059         * lib/isfinite.c: Likewise.
38060         * lib/signbitd.c: Likewise.
38061         * lib/signbitf.c: Likewise.
38062         * lib/vasnprintf.c: Likewise.
38063         * tests/test-ceilf1.c: Likewise.
38064         * tests/test-ceilf2.c: Likewise.
38065         * tests/test-floorf1.c: Likewise.
38066         * tests/test-floorf2.c: Likewise.
38067         * tests/test-frexp.c: Likewise.
38068         * tests/test-round1.c: Likewise.
38069         * tests/test-round2.c: Likewise.
38070         * tests/test-roundf1.c: Likewise.
38071         * tests/test-strtod.c: Likewise.
38072         * tests/test-trunc1.c: Likewise.
38073         * tests/test-trunc2.c: Likewise.
38074         * tests/test-truncf1.c: Likewise.
38075         * tests/test-truncf2.c: Likewise.
38076         * NEWS: Mention the renamed header files.
38077
38078 2008-07-11  Jim Meyering  <meyering@redhat.com>
38079
38080         vc-list-files: make the last-resort awk code more portable
38081         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38082         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38083         does not support it.
38084
38085 2008-07-10  Eric Blake  <ebb9@byu.net>
38086
38087         Work with tar's bootstrap.
38088         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38089         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38090         an m4 comment.
38091
38092 2008-07-09  Jim Meyering  <meyering@redhat.com>
38093
38094         posix-shell.m4: fix typo that made this test malfunction
38095         * m4/posix-shell.m4: Remove capitalization in variable name.
38096
38097 2008-07-08  Bruno Haible  <bruno@clisp.org>
38098
38099         * m4/onceonly.m4: Update comments.
38100         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38101
38102 2008-07-04  Jim Meyering  <meyering@redhat.com>
38103
38104         * users.txt: Add vc-dwim.
38105         (bison, coreutils): Use the gitweb URL.
38106
38107 2008-07-03  Jim Meyering  <meyering@redhat.com>
38108
38109         * users.txt: Add libffcall.  From Sam Steingold.
38110
38111 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
38112
38113         getdate.y: do not ignore TZ with relative day, month or year offset
38114         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38115         relative-date-handling, since otherwise, the latter would clobber the
38116         sole output (an updated Start value) of the tz-handling block.
38117         * tests/test-getdate.c: Tests for the fix
38118
38119 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38120
38121         Recognize 'foo_LIBRARIES += libgnu.a'.
38122         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38123         makefile snippet has already specified an installation location,
38124         also using '+='.
38125
38126 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
38127
38128         getdate.y: factor out common actions
38129         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38130         Use them in place of open-coded actions.
38131
38132 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38133
38134         Add self-test for getdate module.
38135         * modules/getdate-tests: New file.
38136         * tests/test-getdate.c: New file.
38137
38138 2008-06-29  Bruno Haible  <bruno@clisp.org>
38139
38140         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38141         .gitignore.
38142         Reported by Sylvain Beucler <beuc@beuc.net>.
38143
38144 2008-06-29  Bruno Haible  <bruno@clisp.org>
38145
38146         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38147         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38148
38149 2008-06-29  Bruno Haible  <bruno@clisp.org>
38150
38151         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38152         EXTRA_DIST.
38153         Reported by Sylvain Beucler <beuc@beuc.net>.
38154
38155 2008-06-26  Jim Meyering  <meyering@redhat.com>
38156
38157         make several modules depend on the "open" module
38158         This provides slightly increased consistency when opening-for-write
38159         the name of a non-directory spelled with a trailing slash.
38160         * modules/chdir-safer: Likewise.
38161         * modules/chown: Likewise.
38162         * modules/clean-temp: Likewise.
38163         * modules/copy-file: Likewise.
38164         * modules/fchdir: Likewise.
38165         * modules/fcntl-safer: Likewise.
38166         * modules/pipe: Likewise.
38167         * modules/utime: Likewise.
38168         Prompted by Eric Blake and Bruno Haible.
38169
38170 2008-06-24  Andreas Schwab  <schwab@suse.de>
38171
38172         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38173         literals can be used as initializers for global variables.
38174
38175 2008-06-23  Eric Blake  <ebb9@byu.net>
38176
38177         Make gnulib-cache.m4 easier to diff.
38178         * gnulib-tool (func_import): Allow newlines when reading cached
38179         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38180
38181 2008-06-23  Bruno Haible  <bruno@clisp.org>
38182
38183         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38184         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38185         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38186         m4/signalblocking.m4.
38187         (gl_PREREQ_SIGACTION): Don't invoke it.
38188         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38189         gl_PREREQ_SIG_HANDLER_H.
38190         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38191         Don't check for sigaction here.
38192
38193 2008-06-23  Bruno Haible  <bruno@clisp.org>
38194
38195         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38196         (install_handlers): Don't set the SA_RESETHAND flag.
38197
38198 2008-06-23  Bruno Haible  <bruno@clisp.org>
38199
38200         * m4/sigaction.m4: Comment fixes.
38201         * lib/signal.in.h: Likewise.
38202
38203 2008-06-23  Eric Blake  <ebb9@byu.net>
38204
38205         Fix typo.
38206         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38207
38208         Avoid SA_ namespace.
38209         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38210         Reported by Ralf Wildenhues.
38211
38212         Avoid test failure due to SA_RESTORER.
38213         * tests/test-sigaction.c (SA_MASK): New macro.
38214         (main): Avoid failing due to extension flags being set.
38215         Reported by Jim Meyering.
38216
38217         Revert use of sig-handler.h in sigprocmask.c.
38218         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38219         it requires the existence of struct sigaction.
38220         * lib/sigprocmask.c (handler_t): Restore typedef.
38221         (rpl_signal, old_handlers): Use local type.
38222
38223 2008-06-22  Bruno Haible  <bruno@clisp.org>
38224
38225         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38226         conditionally.
38227         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38228
38229 2008-06-22  Bruno Haible  <bruno@clisp.org>
38230
38231         * doc/posix-functions/siginterrupt.texi: Move note.
38232
38233         * lib/signal.in.h (SA_RESTART): New macro.
38234         * lib/sigaction.c: Update comment.
38235
38236         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38237
38238         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38239         (gl_PREREQ_SIGPROCMASK): Invoke it.
38240         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38241
38242         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38243
38244         * lib/sigprocmask.c: Update a comment.
38245
38246 2008-06-21  Eric Blake  <ebb9@byu.net>
38247
38248         Use sigaction module rather than signal().
38249         * modules/c-stack (Depends-on): Add sigaction.
38250         * modules/fatal-signal (Depends-on): Likewise.
38251         * modules/nanosleep (Depends-on): Likewise.
38252         * modules/sigprocmask (Files): Add sig-handler.h.
38253         * modules/sigaction (Files): Likewise.
38254         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38255         Eggert.
38256         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38257         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38258         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38259         (init_fatal_signals): Likewise.
38260         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38261         (siginterrupt): Delete fallback.
38262         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38263         instead.
38264         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38265         siginterrupt.
38266
38267         New module sigaction, for mingw.
38268         * modules/sigaction: New module...
38269         * modules/sigaction-tests: ...and its test.
38270         * m4/sigaction.m4: New file.
38271         * lib/sigaction.c: Likewise.
38272         * tests/test-sigaction.c: Likewise.
38273         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38274         * modules/signal (Makefile.am): Likewise.
38275         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38276         needed.
38277         * doc/posix-headers/signal.texi (signal.h): Mention provided
38278         types.
38279         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38280         that sigaction is preferable.
38281         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38282         module.
38283         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38284         sigaction.
38285
38286         Improve robustness of sigprocmask by overriding signal.
38287         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38288         is in use.
38289         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38290         (SIGKILL, SIGSTOP): Provide fallbacks.
38291         (rpl_signal): Implement.
38292         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38293         signal can be called inside handlers.
38294
38295         Fix nanosleep module on mingw.
38296         * modules/nanosleep (Depends-on): Add sys_select.
38297         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38298
38299         Fix licensing of sigprocmask.
38300         * modules/raise (License): Relicense as LGPL.
38301
38302 2008-06-21  Bruno Haible  <bruno@clisp.org>
38303
38304         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38305         result if it contains question marks.
38306         Reported by Michael Geng <linux@michaelgeng.de>.
38307
38308 2008-06-19  Bruno Haible  <bruno@clisp.org>
38309
38310         Fix CVS-ism.
38311         * doc/gnulib.texi: Include updated-stamp.texi.
38312         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38313         (updated-stamp.texi): New rule.
38314         (gnulib.info): Depend on it.
38315         * doc/.gitignore: Add updated-stamp.texi.
38316         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38317
38318 2008-06-19  Bruno Haible  <bruno@clisp.org>
38319
38320         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38321         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38322
38323 2008-06-19  Eric Blake  <ebb9@byu.net>
38324
38325         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38326         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38327         Reported by Stepan Kasal.
38328
38329 2008-06-18  Bruno Haible  <bruno@clisp.org>
38330
38331         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38332         Reported by Eric Blake.
38333
38334 2008-06-18  Eric Blake  <ebb9@byu.net>
38335
38336         Work around cygwin 1.5.25 strsignal bug.
38337         * tests/test-strsignal.c: Allow for const char *.
38338         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38339
38340 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38341
38342         * users.txt: Update URL to article and add author/date
38343         information.
38344
38345 2008-06-17  Bruno Haible  <bruno@clisp.org>
38346
38347         New macro gl_DISABLE_THREADS.
38348         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38349         if the user did not pass --enable-threads or --disable-threads option.
38350         (gl_DISABLE_THREADS): New macro.
38351         Reported by Eric Blake <ebb9@byu.net>.
38352
38353 2008-06-17  Bruno Haible  <bruno@clisp.org>
38354
38355         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38356         when the macro ignores it.
38357         Based on a patch by Eric Blake <ebb9@byu.net>.
38358
38359 2008-06-17  Bruno Haible  <bruno@clisp.org>
38360
38361         * modules/tls (License): Change to LGPLv2+.
38362         Reported by Eric Blake.
38363
38364 2008-06-17  Eric Blake  <ebb9@byu.net>
38365
38366         Simplify c-stack prerequisites.
38367         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38369         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38370         check.
38371         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38372         <sys/resource.h>.
38373
38374         Move c-stack test into testsuite.
38375         * modules/c-stack-tests: New file.
38376         * lib/c-stack.c [DEBUG]: Move test program...
38377         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38378         fail test if sigaltstack is lacking.
38379         * tests/test-c-stack.sh: New driver file.
38380
38381 2008-06-16  Eric Blake  <ebb9@byu.net>
38382
38383         Use raise module consistently.
38384         * modules/fatal-signal (Depends-on): Add raise.
38385         * modules/sigprocmask (Depends-on): Likewise.
38386         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38387         * lib/sigprocmask.c (sigprocmask): Likewise.
38388         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38389         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38390
38391         Fix compliance bug in sigpending.
38392         * lib/sigprocmask.c (sigpending): Return pending array via
38393         parameter, not return value.
38394
38395 2008-06-14  Eric Blake  <ebb9@byu.net>
38396
38397         Improve obstack-printf test code.
38398         * tests/test-obstack-printf.c (test_function): Fix comment, and
38399         simplify usage of obstack_* in macros.  Add a test for coverage.
38400         Reported by Bruno Haible.
38401
38402 2008-06-14  Bruno Haible  <bruno@clisp.org>
38403
38404         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38405         array size as a constant, not as a const variable.
38406         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38407         AC_USE_SYSTEM_EXTENSIONS.
38408         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38409         Test whether the obstack_printf function actually exists.
38410         * modules/obstack-printf (Depends-on): Add extensions.
38411         (Include): Remove obstack.h.
38412         * modules/obstack-printf-posix (Depends-on): Add extensions.
38413         (Include): Remove obstack.h.
38414
38415 2008-06-13  Eric Blake  <ebb9@byu.net>
38416
38417         Add obstack-printf and obstack-printf-posix modules.
38418         * modules/obstack-printf: New file.
38419         * modules/obstack-printf-posix: Likewise.
38420         * MODULES.html.sh (Misc): Mention them.
38421         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38422         Likewise.
38423         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38424         Likewise.
38425         * modules/stdio (Makefile.am): Accomodate new modules.
38426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38427         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38428         Declare.
38429         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38430         functions.
38431         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38432         (gl_REPLACE_OBSTACK_PRINTF): New macros
38433         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38434         * tests/test-obstack-printf.c: New file.
38435         * modules/obstack-printf-tests: Likewise.
38436         * modules/obstack-printf-posix-tests: Likewise.
38437
38438 2008-06-11  Bruno Haible  <bruno@clisp.org>
38439
38440         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38441         * lib/open.c: Include errno.h.
38442         (open): Fail when attempting to write to a file that has a trailing
38443         slash.
38444         * tests/test-open.c (main): Test against trailing slash bug.
38445         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38446
38447 2008-06-10  Bruno Haible  <bruno@clisp.org>
38448
38449         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38450         for $? to work inside the trap command, with various /bin/sh-s.
38451         * tests/test-vc-list-files-cvs.sh: Likewise.
38452
38453 2008-06-10  Bruno Haible  <bruno@clisp.org>
38454
38455         * lib/acl-internal.h: Don't include gettext.h here.
38456         * lib/set-mode-acl.c: Include gettext.h here.
38457         * lib/copy-acl.c: Likewise.
38458
38459 2008-06-10  Bruno Haible  <bruno@clisp.org>
38460
38461         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38462         * lib/wait-process.c (wait_subprocess): Likewise.
38463         * lib/execute.h (execute): Add termsigp argument.
38464         * lib/execute.c (execute): Likewise.
38465         * lib/csharpcomp.c (compile_csharp_using_pnet,
38466         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38467         * lib/csharpexec.c (execute_csharp_using_pnet,
38468         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38469         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38470         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38471         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38472         is_jikes_present): Update.
38473         * lib/javaexec.c (execute_java_class): Update.
38474         * lib/javaversion.c (execute_and_read_line): Update.
38475         * NEWS: Document the changes.
38476         Reported by Eric Blake.
38477
38478 2008-06-10  Eric Blake  <ebb9@byu.net>
38479
38480         Add missing include.
38481         * tests/test-strstr.c (includes): Add <signal.h>.
38482         * tests/test-strcasestr.c (includes): Likewise.
38483         * tests/test-memmem.c (includes): Likewise.
38484
38485 2008-06-10  Bruno Haible  <bruno@clisp.org>
38486
38487         * lib/wait-process.c (wait_subprocess): Add an assertion.
38488
38489 2008-06-10  Bruno Haible  <bruno@clisp.org>
38490
38491         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38492
38493 2008-06-10  Bruno Haible  <bruno@clisp.org>
38494
38495         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38496         using alarm().
38497         * tests/test-strcasestr.c (main): Likewise.
38498         * tests/test-strstr.c (main): Likewise.
38499
38500 2008-06-09  Bruno Haible  <bruno@clisp.org>
38501
38502         Work around the Solaris 10 ACE ACLs ABI change.
38503         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38504         declare if ACL_NO_TRIVIAL is present.
38505         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38506         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38507         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38508         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38509         define if ACL_NO_TRIVIAL is present.
38510         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38511         and use the current ABI.
38512         (file_has_acl): Use same #if condition as elsewhere.
38513         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38514         in use, and use the current ABI.
38515         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38516         Reported by Jim Meyering.
38517
38518 2008-06-09  Eric Blake  <ebb9@byu.net>
38519
38520         Work around environments that (stupidly) ignore SIGALRM.
38521         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38522         before using alarm().
38523         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38524         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38525         Reported by Ian Beckwith <ianb@erislabs.net>.
38526
38527         Produce autobuild blurb earlier in log.
38528         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38529
38530 2008-06-09  Jim Meyering  <meyering@redhat.com>
38531         and Ondřej Vašík  <ovasik@redhat.com>
38532
38533         utimens.c: correct kernel bug work-around
38534         Ondřej Vašík found that the invalid return value of 280 indicates
38535         failure, not success, and the kernel bug we're trying to work
38536         around affects not just the utimensat call, but also the fallback
38537         futimens call.
38538         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38539         not success.
38540         [HAVE_FUTIMENS]: Use the same work-around, here.
38541
38542 2008-06-09  Jim Meyering  <meyering@redhat.com>
38543
38544         add more guards around definition of ACE_-related code
38545         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38546         ALLOW and ACE_OWNER are also defined.
38547
38548 2008-06-08  Bruno Haible  <bruno@clisp.org>
38549
38550         * lib/acl-internal.h: Add me as co-author.
38551         * lib/file-has-acl.c: Likewise.
38552         * lib/set-mode-acl.c: Likewise.
38553         * lib/copy-acl.c: Likewise.
38554
38555 2008-06-08  Bruno Haible  <bruno@clisp.org>
38556
38557         Add support for AIX ACLs.
38558         * lib/acl-internal.h (acl_nontrivial): New declaration.
38559         * lib/file-has-acl.c (acl_nontrivial): New function.
38560         (file_has_acl): Add implementation using AIX 4 ACL API.
38561         * lib/set-mode-acl.c (qset_acl): Likewise.
38562         * lib/copy-acl.c (qcopy_acl): Likewise.
38563
38564 2008-06-08  Bruno Haible  <bruno@clisp.org>
38565
38566         Add support for HP-UX ACLs.
38567         * lib/acl-internal.h (acl_nontrivial): New declaration.
38568         * lib/file-has-acl.c (acl_nontrivial): New function.
38569         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38570         * lib/set-mode-acl.c (qset_acl): Likewise.
38571         * lib/copy-acl.c (qcopy_acl): Likewise.
38572
38573 2008-06-08  Bruno Haible  <bruno@clisp.org>
38574
38575         Add support for Cygwin ACLs.
38576         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38577         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38578         the chmod_or_fchmod call.
38579         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38580
38581 2008-06-08  Bruno Haible  <bruno@clisp.org>
38582
38583         Fix bug with setuid modes in Solaris 10+ code.
38584         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38585         succeeded, when the mode contains some special bits.
38586
38587 2008-06-08  Bruno Haible  <bruno@clisp.org>
38588
38589         Add support for Solaris 7..10 ACLs.
38590         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38591         declarations.
38592         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38593         functions.
38594         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38595         * lib/set-mode-acl.c (qset_acl): Likewise.
38596         * lib/copy-acl.c (qcopy_acl): Likewise.
38597
38598 2008-06-08  Bruno Haible  <bruno@clisp.org>
38599
38600         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38601         declaration.
38602         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38603         (acl_access_nontrivial): Remove MacOS X case.
38604         (file_has_acl): Use acl_extended_nontrivial.
38605         * lib/copy-acl.c (qcopy_acl): Likewise.
38606
38607 2008-06-08  Bruno Haible  <bruno@clisp.org>
38608
38609         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38610
38611 2008-06-08  Jim Meyering  <meyering@redhat.com>
38612
38613         * modules/acl (Maintainer): Add Bruno Haible.
38614
38615 2008-06-07  Bruno Haible  <bruno@clisp.org>
38616
38617         Improve support for Tru64 ACLs.
38618         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38619         ACL on OSF/1.
38620
38621 2008-06-07  Bruno Haible  <bruno@clisp.org>
38622
38623         Add support for MacOS X ACLs.
38624         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38625         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38626         * lib/set-mode-acl.c (qset_acl): Likewise.
38627         * lib/copy-acl.c (qcopy_acl): Likewise.
38628
38629 2008-06-07  Bruno Haible  <bruno@clisp.org>
38630
38631         Fix memory leak introduced on 2008-05-22.
38632         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38633         use.
38634
38635 2008-06-07  Bruno Haible  <bruno@clisp.org>
38636
38637         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38638         to construct an empty ACL.
38639
38640 2008-06-07  Bruno Haible  <bruno@clisp.org>
38641
38642         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38643         precisely.
38644         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38645
38646 2008-06-07  Bruno Haible  <bruno@clisp.org>
38647
38648         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38649         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38650
38651 2008-06-07  Bruno Haible  <bruno@clisp.org>
38652
38653         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38654         regardless of POSIX.
38655         * doc/posix-functions/_longjmp.texi: Likewise.
38656         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38657         SystemV platform in this case.
38658
38659 2008-06-06  Eric Blake  <ebb9@byu.net>
38660
38661         Document abort() bugs.
38662         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38663
38664         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38665         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38666         sigsetjmp.
38667         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38668         siglongjmp, but only as a macro.
38669         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38670         is obsolete.
38671         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38672
38673         Tweak documentation to cover cygwin argz bugs.
38674         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38675         argz bug fix; no code change needed since no cygwin releases
38676         occurred between the last fix and the bug being tested.
38677         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38678         module and recently fixed cygwin bugs.
38679         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38680         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38681         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38682         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38683         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38684         Likewise.
38685         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38686         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38687         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38688         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38689         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38690         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38691         Likewise.
38692
38693         Avoid gcc warning on cygwin.
38694         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38695         !ACL_NO_TRIVIAL]: Avoid unused variable.
38696
38697 2008-06-05  Eric Blake  <ebb9@byu.net>
38698
38699         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38700         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38701         git-version-gen fails to come up with a version.
38702         Reported by Simon Josefsson.
38703
38704 2008-06-05  Jim Meyering  <meyering@redhat.com>
38705             Paul Eggert  <eggert@cs.ucla.edu>
38706
38707         utimens.c: work around a probable Linux kernel bug
38708         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38709         appears to be a kernel bug that causes utimensat to return 280
38710         instead of 0, indicating success.
38711
38712 2008-06-04  Bruno Haible  <bruno@clisp.org>
38713
38714         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38715         2008-06-01 commit.
38716
38717 2008-06-04  Bruno Haible  <bruno@clisp.org>
38718
38719         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38720         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38721         (file_has_acl): Use it. Save errno afterwards.
38722         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38723
38724 2008-06-03  Bruno Haible  <bruno@clisp.org>
38725
38726         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38727         draft code. Simplify #ifs.
38728         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38729         Put Solaris code after POSIX-draft code. Fix comments regarding
38730         Solaris 10, HP-UX. Mention Cygwin.
38731         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38732
38733 2008-06-03  Eric Blake  <ebb9@byu.net>
38734
38735         Provide fallback for older kernels.
38736         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38737         Provide runtime fallback if kernel lacks support.
38738         Reported by Mike Frysinger.
38739
38740 2008-06-02  Bruno Haible  <bruno@clisp.org>
38741
38742         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38743         it exists.
38744
38745 2008-06-02  Bruno Haible  <bruno@clisp.org>
38746
38747         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38748         * lib/copy-acl.c (qcopy_acl): Update comment.
38749
38750 2008-06-02  Bruno Haible  <bruno@clisp.org>
38751
38752         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38753         like ACL APIs.
38754
38755 2008-06-02  Bruno Haible  <bruno@clisp.org>
38756
38757         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38758         * tests/test-set-mode-acl.sh: Likewise.
38759         * tests/test-copy-acl.sh: Likewise.
38760         * tests/test-copy-file.sh: Likewise.
38761
38762 2008-06-02  Bruno Haible  <bruno@clisp.org>
38763
38764         * tests/test-file-has-acl.sh: Remove unused code.
38765
38766 2008-06-01  Bruno Haible  <bruno@clisp.org>
38767
38768         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38769         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38770         messages.
38771         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38772
38773 2008-06-01  Bruno Haible  <bruno@clisp.org>
38774
38775         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38776         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38777         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38778         APIs.
38779         * modules/acl-tests (configure.ac): Remove tests now contained in
38780         m4/acl.m4.
38781
38782 2008-06-02  Jim Meyering  <meyering@redhat.com>
38783
38784         announce-gen: use a better key-server host name
38785         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38786         it may be more consistently reliable.  Suggested by Werner Koch
38787         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38788
38789 2008-06-01  Bruno Haible  <bruno@clisp.org>
38790
38791         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38792         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38793
38794 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38795
38796         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38797
38798 2008-06-01  Bruno Haible  <bruno@clisp.org>
38799
38800         New ACL tests.
38801         * tests/test-file-has-acl.sh: New file.
38802         * tests/test-file-has-acl.c: New file.
38803         * tests/test-set-mode-acl.sh: New file.
38804         * tests/test-set-mode-acl.c: New file.
38805         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38806         * tests/test-copy-acl.c: New file.
38807         * modules/acl-tests: New file, based on modules/copy-file-tests.
38808         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38809         (Depends-on): Add acl-tests.
38810         (configure.ac): Remove checks.
38811         (Makefile.am): Don't create test-sameacls program here any more.
38812
38813 2008-06-01  Bruno Haible  <bruno@clisp.org>
38814
38815         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38816         * tests/test-sameacls.c: Include progname.h.
38817         (main): Invoke set_program_name. Portability fixes for MacOS X,
38818         Solaris, HP-UX.
38819
38820 2008-06-01  Bruno Haible  <bruno@clisp.org>
38821
38822         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38823         function.
38824         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38825
38826 2008-06-01  Bruno Haible  <bruno@clisp.org>
38827
38828         * modules/rpmatch (Depends-on): Add strdup.
38829
38830 2008-06-01  Bruno Haible  <bruno@clisp.org>
38831
38832         * lib/pipe.c: Include unistd-safer.h.
38833         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38834         * modules/pipe (Depends-on): Add unistd-safer.
38835
38836 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38837
38838         * modules/autobuild (configure.ac): Call AB_INIT.
38839
38840 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38841
38842         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38843         Suggested by Bruno Haible <bruno@clisp.org>.
38844
38845 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38846
38847         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38848         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38849         <bruno@clisp.org>.
38850
38851 2008-05-29  Eric Blake  <ebb9@byu.net>
38852
38853         Prefer new POSIX 200x interfaces over futimesat.
38854         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38855         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38856         when available.
38857         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38858
38859 2008-05-28  Bruno Haible  <bruno@clisp.org>
38860
38861         * modules/stpcpy (License): Change to LGPLv2+.
38862         Requested by David Lutterkort <dlutter@redhat.com>.
38863
38864 2008-05-27  Bruno Haible  <bruno@clisp.org>
38865
38866         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38867         current mingw.
38868         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38869
38870 2008-05-27  Bruno Haible  <bruno@clisp.org>
38871
38872         * modules/iconv_open (Link): New section, from module 'iconv'.
38873         * modules/striconv (Link): Likewise.
38874         * modules/striconveh (Link): Likewise.
38875         * modules/xstriconv (Link): Likewise.
38876         * modules/unicodeio (Link): Likewise.
38877         * modules/propername (Link): Likewise.
38878         Reported by Jim Meyering.
38879
38880 2008-05-26  Jim Meyering  <meyering@redhat.com>
38881
38882         sha256: do not artificially restrict buffer length to be < 2^32
38883         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38884         uint32_t to size_t.
38885         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38886         to match.
38887
38888         avoid unaligned access errors, e.g., on sparc
38889         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38890         direct access through a possibly-unaligned uint64* pointer.
38891         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38892         direct access through a possibly-unaligned uint32* pointer.
38893         Prompted by this patch from Tom "spot" Callaway:
38894         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38895
38896         sha512.c: fix typo in comment
38897         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38898
38899 2008-05-25  Bruno Haible  <bruno@clisp.org>
38900
38901         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38902         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38903         (Makefile.am): Update lib_SOURCES.
38904
38905 2008-05-25  Bruno Haible  <bruno@clisp.org>
38906
38907         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38908
38909 2008-05-25  Jim Meyering  <meyering@redhat.com>
38910
38911         useless-if-before-free: freed expr may have white-space differences
38912         * build-aux/useless-if-before-free: Recognize cases in which the
38913         freed expression differs from the tested one in embedded white
38914         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38915         $1 was used, so we can't make any regexp shy.  Improved tests now
38916         detect this.
38917
38918         useless-if-before-free: accept white space in the expression.
38919         * build-aux/useless-if-before-free: For now, any white space
38920         in the expression must be identical in the free argument.
38921
38922         useless-if-before-free: efficiency tweak
38923         * build-aux/useless-if-before-free: Make the expression-matching
38924         regexp "shy".
38925         Make the *outer* regexp shy, not the expr-matching one.
38926
38927         update code-in-comment to accept cast of free arg
38928         * build-aux/useless-if-before-free: Update regexp.
38929
38930 2008-05-25  Bruno Haible  <bruno@clisp.org>
38931
38932         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38933         * modules/copy-file-tests (Files, Makefile.am): Update.
38934         * tests/test-copy-file.c (func_test_copy): Update.
38935
38936 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38937
38938         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38939
38940 2008-05-23  Bruno Haible  <bruno@clisp.org>
38941
38942         Improve support for ACLs on OSF/1.
38943         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38944         Remove fallback for unknown flavors of ACLs.
38945
38946 2008-05-22  Bruno Haible  <bruno@clisp.org>
38947
38948         Add support for ACLs on OSF/1.
38949         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38950         replacements.
38951         (acl_free_text): New macro fallback.
38952         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38953         acl_free.
38954         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38955         acl_free_text function. Require AC_C_INLINE.
38956
38957 2008-05-22  Bruno Haible  <bruno@clisp.org>
38958
38959         Make copy_acl work on MacOS X 10.5.
38960         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38961         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38962         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38963         If MODE_INSIDE_ACL, don't assume that every system has the same text
38964         representation for ACLs as FreeBSD.
38965         * lib/copy-acl.c (copy_acl): Add support for platforms with
38966         !MODE_INSIDE_ACL.
38967         * lib/file-has-acl.c (file_has_acl): Likewise.
38968         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38969         FreeBSD, MacOS X, or IRIX, respectively.
38970
38971 2008-05-22  Bruno Haible  <bruno@clisp.org>
38972
38973         * lib/acl.h: Don't include <sys/acl.h>.
38974         (GETACLCNT): Move fallback to lib/acl-internal.h.
38975         * lib/acl-internal.h: Include <sys/acl.h> here.
38976         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38977
38978 2008-05-22  Bruno Haible  <bruno@clisp.org>
38979
38980         Split off copy_acl function to separate file.
38981         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38982         * lib/acl.c (copy_acl): Moved function to separate file.
38983         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38984         * modules/acl (Files): Add lib/copy-acl.c.
38985         (Makefiles.am): Augment lib_SOURCES.
38986
38987 2008-05-22  Bruno Haible  <bruno@clisp.org>
38988
38989         * modules/copy-file-tests: New file.
38990         * tests/test-copy-file.sh: New file.
38991         * tests/test-copy-file.c: New file.
38992         * tests/test-copy-file-sameacls.c: New file.
38993
38994 2008-05-22  Eric Blake  <ebb9@byu.net>
38995
38996         Avoid gcc warning.
38997         * tests/test-memcmp.c (main): Pass NULL indirectly.
38998
38999 2008-05-21  Bruno Haible  <bruno@clisp.org>
39000
39001         Add reference doc about ACLs.
39002         * doc/acl-resources.txt: New file.
39003         * doc/acl-cygwin.txt: New file.
39004
39005 2008-05-21  Bruno Haible  <bruno@clisp.org>
39006
39007         Avoid one more warning from gcc.
39008         * lib/vasnprintf.c (IF_LINT): Update comments.
39009         (VASNPRINTF): Use it also for the 'prefix' array initializer.
39010
39011 2008-05-21  Jim Meyering  <meyering@redhat.com>
39012
39013         avoid a warning from gcc
39014         * lib/vasnprintf.c (IF_LINT): Define.
39015         (scale10_round_decimal_long_double):
39016         Use it to avoid a "may be used uninitialized" warning.
39017         (scale10_round_decimal_double): Likewise.
39018
39019 2008-05-21  Simon Josefsson  <simon@josefsson.org>
39020
39021         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
39022         declared.
39023
39024 2008-05-20  Bruno Haible  <bruno@clisp.org>
39025
39026         * tests/test-memcmp.c (main): Test also the sign of the result. Test
39027         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
39028
39029 2008-05-20  Simon Josefsson  <simon@josefsson.org>
39030
39031         * modules/memcmp-tests: New file.
39032         * tests/test-memcmp.c: New file.
39033
39034 2008-05-19  Bruno Haible  <bruno@clisp.org>
39035
39036         * modules/propername (Notice, configure.ac): Put quoted "..." into
39037         --keyword option.
39038         * lib/propername.h: Update comments accordingly.
39039         Reported by Eric Blake.
39040
39041 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
39042
39043         * modules/getpass-gnu (Depends-on): Add fseeko.
39044
39045 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39046
39047         * modules/base64-tests: New file.
39048
39049 2008-05-19  Bo Borgerson <gigabo@gmail.com>
39050
39051         * lib/base64.c (base64_decode_ctx): If a decode context structure
39052         was passed in use it to ignore newlines.  If a context structure
39053         was _not_ passed in, continue to treat newlines as garbage (this
39054         is the historical behavior).  Formerly base64_decode.
39055         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39056         takes a decode context structure.
39057         * lib/base64.h (base64_decode): Macro for four-argument calls.
39058         (base64_decode_alloc): Likewise.
39059         * lib/base64.c (base64_decode_ctx): If a decode context structure
39060         was passed in use it to ignore newlines.  If a context structure
39061         was _not_ passed in, continue to treat newlines as garbage (this
39062         is the historical behavior).  Formerly base64_decode.
39063         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39064         takes a decode context structure.
39065         * lib/base64.h (base64_decode): Macro for four-argument calls.
39066         (base64_decode_alloc): Likewise.
39067
39068 2008-05-19  Jim Meyering  <meyering@redhat.com>
39069
39070         avoid a warning from gcc
39071         * lib/trim.c (IF_LINT): Define.
39072         (trim2): Use it to avoid a "may be used uninitialized" warning.
39073
39074         Fix doc typo.
39075         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39076
39077 2008-05-19  Bruno Haible  <bruno@clisp.org>
39078
39079         * doc/glibc-functions/getpass.texi: Document limits of other
39080         implementations.
39081
39082 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39083             Bruno Haible <bruno@clisp.org>
39084
39085         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39086
39087 2008-05-18  Bruno Haible  <bruno@clisp.org>
39088
39089         * modules/propername: New file, from GNU gettext.
39090         * lib/propername.h: New file, from GNU gettext.
39091         * lib/propername.c: New file, from GNU gettext.
39092         * MODULES.html.sh (Internationalization functions): Add propername.
39093
39094 2008-05-16  Jim Meyering  <meyering@redhat.com>
39095             Bruno Haible  <bruno@clisp.org>
39096
39097         Avoid some warnings from "gcc -Wshadow".
39098         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39099
39100 2008-05-15  Eric Blake  <ebb9@byu.net>
39101
39102         Extend previous patch to cygwin 1.7.0.
39103         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39104         fast implementation in cygwin >= 1.7.0.
39105         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39107
39108 2008-05-15  Bruno Haible  <bruno@clisp.org>
39109
39110         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39111         implementation in glibc >= 2.9.
39112         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39113         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39114
39115 2008-05-15  Bruno Haible  <bruno@clisp.org>
39116
39117         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39118         (Unicode string functions): Add unilbrk/*.
39119         Reported by Karl Berry.
39120
39121 2008-05-15  Eric Blake  <ebb9@byu.net>
39122
39123         Fix violation of <stdbool.h> replacement in regex.
39124         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39125         * lib/regexec.c (re_search_internal): Likewise.
39126         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39127
39128 2008-05-15  Jim Meyering  <meyering@redhat.com>
39129
39130         avoid distracting test output when git or cvs is not found
39131         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39132         * tests/test-vc-list-files-git.sh: Likewise.
39133
39134 2008-05-15  Eric Blake  <ebb9@byu.net>
39135
39136         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39137         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39138         glibc version.
39139         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39140         * doc/posix-functions/strstr.texi (strstr): Likewise.
39141         * lib/str-two-way.h (MAX): Sychronize with glibc.
39142
39143 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39144
39145         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39146         opr.ctx_type.
39147         (calc_first): Initialize constraint field.
39148         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39149         Fix grammar.
39150         (duplicate_node): Merge constraint field for all node types.
39151         (calc_eclosure_iter): Look at constraint field for all node types.
39152         * lib/regex_internal.c (create_cd_newstate): Don't look at
39153         opr.ctx_type.
39154
39155 2008-05-14  Bruno Haible  <bruno@clisp.org>
39156
39157         Help GCC to do better code generation.
39158         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39159         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39160         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39161         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39162         Declare with attribute 'malloc' if supported.
39163
39164 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39165
39166         use "echo STR|wc -c" rather than unportable "expr length STR"
39167         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39168         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39169
39170 2008-05-14  Jim Meyering  <meyering@redhat.com>
39171
39172         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39173         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39174         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39175         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39176         via Collin Lasse.
39177
39178 2008-05-14  Eric Blake  <ebb9@byu.net>
39179
39180         Avoid quadratic growth in gl_LIBSOURCES.
39181         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39182         Suggested by Bruno Haible.
39183
39184         Test xmemdup0.
39185         * modules/xmemdup0-tests: New file.
39186         * tests/test-xmemdup0.c: Likewise.
39187
39188 2008-05-13  Eric Blake  <ebb9@byu.net>
39189
39190         Split xmemdup0 into its own module.
39191         * modules/xmemdup0: New file.
39192         * lib/xmemdup0.h: Likewise.
39193         * lib/xmemdup0.c: Likewise.
39194         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39195         * lib/xalloc.h (xmemdup0): Remove.
39196         * lib/xmalloc.c (xmemdup0): Likewise.
39197
39198 2008-05-13  Eric Blake  <ebb9@byu.net>
39199             Bruno Haible  <bruno@clisp.org>
39200
39201         Reduce number of forks required during autoconf.
39202         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39203         and gl_LIBSOURCES_DIR.
39204         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39205         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39206         m4_syscmd per file.
39207         <m4_foreach_w>: Move...
39208         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39209
39210 2008-05-13  Eric Blake  <ebb9@byu.net>
39211
39212         * gnulib-tool: Fix various comment typos.
39213
39214 2008-05-12  Bruno Haible  <bruno@clisp.org>
39215
39216         Tailor the linebreaking algorithm.
39217         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39218
39219 2008-05-12  Bruno Haible  <bruno@clisp.org>
39220
39221         Update to Unicode 5.0.0.
39222         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39223         LBP_JV, LBP_JT. Redistribute values.
39224         (unilbrk_table): Change size.
39225         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39226         Unicode TR#14 rev. 22.
39227         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39228         LBP_JV, LBP_JT. Redistribute values.
39229         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39230         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39231         Update.
39232         * lib/unilbrk/lbrkprop1.h: Regenerated.
39233         * lib/unilbrk/lbrkprop2.h: Regenerated.
39234         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39235         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39236         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39237         Likewise.
39238         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39239         Likewise.
39240         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39241         result.
39242         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39243         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39244         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39245         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39246         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39247         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39248
39249 2008-05-11  Bruno Haible  <bruno@clisp.org>
39250
39251         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39252
39253 2008-05-11  Bruno Haible  <bruno@clisp.org>
39254
39255         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39256         * modules/unilbrk/gen-lbrk: New file.
39257
39258 2008-05-11  Bruno Haible  <bruno@clisp.org>
39259
39260         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39261         * m4/sha512.m4 (gl_SHA512): Likewise.
39262
39263 2008-05-11  Jim Meyering  <meyering@redhat.com>
39264
39265         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39266         * modules/crypto/sha256: New file.
39267         * modules/crypto/sha512: Likewise.
39268         * lib/sha256.c: Likewise.
39269         * lib/sha256.h: Likewise.
39270         * lib/sha512.c: Likewise.
39271         * lib/sha512.h: Likewise.
39272         * lib/u64.h: Likewise.
39273         * m4/sha256.m4: Likewise.
39274         * m4/sha512.m4: Likewise.
39275         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39276
39277 2008-05-10  Bruno Haible  <bruno@clisp.org>
39278
39279         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39280         (Input/Output <stdio.h>): Add xprintf.
39281         (Signal handling <signal.h>): Add strsignal.
39282         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39283         (Core language properties): Add func.
39284         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39285         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39286         strings.
39287         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39288         (Input/output): New section.
39289         (File system functions): Add openat-die, stat-macros.
39290         (Networking functions): Add sockets.
39291         (Unicode string functions): Add unictype/*.
39292         (Support for building libraries and executables): Add gperf.
39293         (Support for building documentation): Add agpl-3.0.
39294         (Misc): Add nocrash.
39295
39296 2008-05-10  Bruno Haible  <bruno@clisp.org>
39297
39298         * modules/unictype/gen-ctype: New file.
39299
39300 2008-05-10  Jim Meyering  <meyering@redhat.com>
39301
39302         Make chdir-safer.c more efficient on a system with no symlinks.
39303         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39304         also if ELOOP is zero.  Suggested by Bruno Haible.
39305
39306         Make chdir-safer.c slightly safer.
39307         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39308         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39309
39310         Avoid compile failure on systems without ELOOP (like mingw).
39311         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39312         Reported by Bruno Haible.
39313
39314 2008-05-10  Bruno Haible  <bruno@clisp.org>
39315
39316         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39317         (is_utf8_encoding): Use a case-insensitive comparison.
39318         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39319         streq.
39320
39321 2008-05-10  Bruno Haible  <bruno@clisp.org>
39322
39323         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39324         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39325         * lib/unilbrk/ulc-common.h (iconv_string_length,
39326         iconv_string_keeping_offsets): Remove declarations.
39327         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39328         Don't include <iconv.h>, streq.h, xsize.h.
39329         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39330         conversion.
39331         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39332         <iconv.h>, streq.h, xsize.h.
39333         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39334         conversion.
39335         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39336         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39337         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39338         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39339
39340 2008-05-10  Bruno Haible  <bruno@clisp.org>
39341
39342         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39343         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39344
39345         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39346         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39347
39348         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39349         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39350
39351         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39352         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39353
39354         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39355         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39356
39357         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39358         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39359
39360         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39361         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39362
39363         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39364         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39365
39366 2008-05-10  Bruno Haible  <bruno@clisp.org>
39367
39368         Split up 'linebreak' module.
39369         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39370         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39371         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39372         modifications.
39373         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39374         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39375         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39376         lib/linebreak.c.
39377         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39378         lib/linebreak.c.
39379         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39380         lib/linebreak.c.
39381         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39382         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39383         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39384         lib/linebreak.c.
39385         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39386         lib/linebreak.c.
39387         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39388         lib/linebreak.c.
39389         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39390         lib/linebreak.c.
39391         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39392         lib/linebreak.c.
39393         * modules/unilbrk/base: New file.
39394         * modules/unilbrk/tables: New file.
39395         * modules/unilbrk/u8-possible-linebreaks: New file.
39396         * modules/unilbrk/u16-possible-linebreaks: New file.
39397         * modules/unilbrk/u32-possible-linebreaks: New file.
39398         * modules/unilbrk/ulc-common: New file.
39399         * modules/unilbrk/ulc-possible-linebreaks: New file.
39400         * modules/unilbrk/u8-width-linebreaks: New file.
39401         * modules/unilbrk/u16-width-linebreaks: New file.
39402         * modules/unilbrk/u32-width-linebreaks: New file.
39403         * modules/unilbrk/ulc-width-linebreaks: New file.
39404         * lib/linebreak.h: Remove file.
39405         * lib/linebreak.c: Remove file.
39406         * m4/linebreak.m4: Remove file.
39407         * modules/linebreak: Remove file.
39408         * NEWS: Mention the changes.
39409
39410 2008-05-09  Eric Blake  <ebb9@byu.net>
39411
39412         Add xmemdup0.
39413         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39414         implementation.
39415         * lib/xmalloc.c (xmemdup0): New C implementation.
39416
39417 2008-05-08  Bruno Haible  <bruno@clisp.org>
39418
39419         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39420
39421 2008-05-07  Eric Blake  <ebb9@byu.net>
39422
39423         Support cross-compilation of <wctype.h>.
39424         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39425         AC_CACHE_CHECK.
39426
39427 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39428
39429         * build-aux/vc-list-files: Add support for bzr.
39430
39431 2008-05-03  Jim Meyering  <meyering@redhat.com>
39432
39433         avoid failed assertion with tight malloc
39434         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39435
39436 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39437
39438         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39439         are needed from arpa/inet.h.
39440         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39441         Reported by Bruno Haible.
39442
39443 2008-05-02  Jim Meyering  <meyering@redhat.com>
39444
39445         avoid compilation error on FreeBSD 6
39446         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39447
39448 2008-05-01  Jim Meyering  <meyering@redhat.com>
39449
39450         useless-if-before-free: correct --help's exit status description
39451         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39452         for one or more matches, etc.  Reported by Bruno Haible.
39453
39454         vc-list-files: make the stand-alone gnulib test work
39455         * modules/vc-list-files-tests (configure.ac):
39456         Define and AC_SUBST abs_aux_dir.
39457         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39458         $(abs_top_srcdir) to each script and having each of them
39459         duplicate the work of setting PATH, set PATH here, using
39460         the new variable, abs_aux_dir instead.
39461         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39462         * tests/test-vc-list-files-git.sh: Likewise.
39463         Reported by Bruno Haible.
39464
39465 2008-05-01  Bruno Haible  <bruno@clisp.org>
39466
39467         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39468         reallocation. Rename 'done' to 'found_delimiter'.
39469
39470 2008-05-01  Jim Meyering  <meyering@redhat.com>
39471
39472         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39473         * build-aux/vc-list-files: Use `...`, not $(...).
39474
39475 2008-04-30  Jim Meyering  <meyering@redhat.com>
39476
39477         add tests for vc-list-files
39478         * modules/vc-list-files-tests: New module.
39479         * tests/test-vc-list-files-cvs.sh: New file.
39480         * tests/test-vc-list-files-git.sh: New file.
39481
39482         avoid a warning from gcc
39483         * lib/getndelim2.c (IF_LINT): Define.
39484         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39485
39486         vc-list-files: work properly with build-aux/cvsu, too
39487         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39488         to all cvs-based clauses.
39489
39490         vc-list-files: work properly in the CVS+awk case, too
39491         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39492
39493         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39494         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39495         take more than one file argument, so .  Add quotes, just in case $dir
39496         ever contains a shell meta-character.  Prompted by Soren Hansen in
39497         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39498
39499 2008-04-29  Eric Blake  <ebb9@byu.net>
39500
39501         Optimize getndelim2 to use block operations when possible.
39502         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39503         freadseek, and memchr2.
39504         * lib/getndelim2.c (getndelim2): Use them for block reads.
39505
39506 2008-04-29  Bruno Haible  <bruno@clisp.org>
39507
39508         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39509         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39510         * modules/inet_ntop (Depends-on): Add extensions.
39511         * modules/inet_pton (Depends-on): Likewise.
39512         Reported by Simon Josefsson.
39513
39514 2008-04-29  Jim Meyering  <meyering@redhat.com>
39515
39516         When the is more than one match in a block, match all of them.
39517         * build-aux/useless-if-before-free: Iterate through each block
39518         until there are no more matches.
39519
39520         Fix broken useless-if-before-free script.
39521         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39522         the expression to match cast of argument to free-like function.
39523
39524 2008-04-29  Eric Blake  <ebb9@byu.net>
39525
39526         Use new header.
39527         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39528
39529 2008-04-29  Jim Meyering  <meyering@redhat.com>
39530
39531         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39532         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39533         by gnulib to exist and to declare e.g., inet_ntop.
39534         Don't include "inet_ntop.h", now removed.
39535
39536         * m4/arpa_inet_h.m4: Remove trailing blanks.
39537
39538 2008-04-29  Eric Blake  <ebb9@byu.net>
39539
39540         Silence valgrind on safe reads beyond potential array bounds.
39541         * lib/rawmemchr.valgrind: New file.
39542         * lib/strchrnul.valgrind: Likewise.
39543         * modules/rawmemchr (Files): Distribute new file.
39544         * modules/strchrnul (Files): Likewise.
39545         Suggested by Bruno Haible.
39546
39547 2008-04-29  Bruno Haible  <bruno@clisp.org>
39548
39549         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39550         (inet_ntop, inet_pton): Change portability warning's wording.
39551         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39552         Invoke gl_CHECK_NEXT_HEADERS.
39553         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39554         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39555         set ARPA_INET_H.
39556         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39557         * modules/arpa_inet (Description): No longer only for systems that
39558         lack it.
39559         (Depends-on): Add include_next.
39560         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39561         HAVE_ARPA_INET_H.
39562
39563 2008-04-29  Jim Meyering  <meyering@redhat.com>
39564
39565         * modules/mkdir (License): Re-license as LGPLv2+.
39566
39567 2008-04-29  Bruno Haible  <bruno@clisp.org>
39568
39569         * modules/rawmemchr (Maintainer): Set to Eric.
39570         * modules/strchrnul (Maintainer): Likewise.
39571
39572 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39573
39574         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39575         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39576
39577         * modules/arpa_inet (arpa/inet.h): Use them.
39578
39579 2008-04-28  Eric Blake  <ebb9@byu.net>
39580
39581         Test getndelim2.
39582         * modules/getndelim2-tests: New file.
39583         * tests/test-getndelim2.c: Likewise.
39584         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39585         stream.
39586         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39587
39588         * MODULES.html.sh: Document new module.
39589
39590 2008-04-20  Bruno Haible  <bruno@clisp.org>
39591
39592         * lib/c-stack.c (die): Use raise.
39593         * modules/c-stack (Depends-on): Add raise.
39594
39595 2008-04-28  Bruno Haible  <bruno@clisp.org>
39596
39597         Expect rpmatch to be declared.
39598         * lib/yesno.c (rpmatch): Remove declaration.
39599
39600         Declare rpmatch.
39601         * lib/stdlib.in.h (rpmatch): New declaration.
39602         * lib/rpmatch.c: Include <stdlib.h> first.
39603         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39604         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39606         HAVE_RPMATCH.
39607         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39608         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39609         (Include): Set to <stdlib.h>.
39610         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39611         HAVE_RPMATCH.
39612         * NEWS: Document the change.
39613
39614 2008-04-28  Bruno Haible  <bruno@clisp.org>
39615
39616         Change rpmatch to use nl_langinfo when appropriate.
39617         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39618         (N_): New macro.
39619         (localized_pattern): New function/macro.
39620         (try): Remove match, nomatch arguments. Copy the pattern into safe
39621         memory before caching it.
39622         (rpmatch): Use localized_pattern. Add translator comments.
39623         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39624         Suggested by Eric Blake.
39625         * modules/rpmatch (Depends-on): Add stdbool.
39626
39627 2008-04-28  Eric Blake  <ebb9@byu.net>
39628
39629         Add rawmemchr module, matching glibc.
39630         * modules/string (Makefile.am): New indicator.
39631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39632         * lib/string.in.h (rawmemchr): Declare when appropriate.
39633         * modules/rawmemchr: New file.
39634         * m4/rawmemchr.m4: Likewise.
39635         * lib/rawmemchr.c: Likewise.
39636         * modules/rawmemchr-tests: Likewise.
39637         * tests/test-rawmemchr.c: Likewise.
39638         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39639         module.
39640         * modules/strchrnul (Depends-on): Add rawmemchr.
39641         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39642
39643         Whitespace cleanup.
39644         * tests/test-strchrnul.c: Reindent.
39645         * lib/strchrnul.c: Likewise.
39646
39647         Optimize and test strchrnul.
39648         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39649         * modules/strchrnul-tests: New file.
39650         * tests/test-strchrnul.c: Likewise.
39651
39652         Remove intprops dependency.
39653         * modules/memchr (Depends-on): Remove intprops.
39654         * modules/memrchr (Depends-on): Likewise.
39655         * modules/memchr2 (Depends-on): Likewise.
39656         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39657         * lib/memrchr.c (__memrchr): Likewise.
39658         * lib/memrchr2.c (memchr2): Likewise.
39659         Reported by Simon Josefsson.
39660
39661 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39662
39663         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39664         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39665
39666 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39667
39668         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39669
39670         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39671
39672         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39673
39674         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39675         declarations.
39676         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39677
39678         * m4/inet_pton.m4: Don't check for header files.
39679
39680         * m4/inet_ntop.m4: Don't check for header files.
39681
39682 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39683
39684         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39685         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39686         trigger for cygwin).
39687         Reported by Bruno Haible  <bruno@clisp.org>.
39688
39689 2008-04-28  Bruno Haible  <bruno@clisp.org>
39690
39691         * doc/posix-functions/strdup.texi: Mention mingw problem.
39692
39693 2008-04-27  Bruno Haible  <bruno@clisp.org>
39694
39695         * modules/stat-time-tests (Depends-on): Add sleep.
39696         * tests/test-stat-time.c (force_unlink): New function.
39697         (cleanup): Use it.
39698         (test_mtime): Remove the ctime related tests.
39699         (test_ctime): New function, containing the ctime related tests.
39700         (main): Call test_ctime, except on native Windows platforms.
39701
39702 2008-04-27  Bruno Haible  <bruno@clisp.org>
39703
39704         * lib/rpmatch.c (rpmatch): Add some comments.
39705         Reported by James Youngman <jay@gnu.org>.
39706
39707 2008-04-27  Bruno Haible  <bruno@clisp.org>
39708
39709         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39710         quiet NaNs.
39711
39712 2008-04-27  Bruno Haible  <bruno@clisp.org>
39713
39714         Make test-yesno.sh work on mingw.
39715         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39716         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39717         (main): Set stdin to binary mode.
39718         * modules/yesno-tests (Depends-on): Add binary-io.
39719
39720 2008-04-27  Bruno Haible  <bruno@clisp.org>
39721
39722         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39723         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39724         argument that lie outside the IEEE 854 domain.
39725         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39726         (gl_ISFINITE): Use it.
39727         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39728
39729 2008-04-27  Bruno Haible  <bruno@clisp.org>
39730
39731         Allow local renaming in config.h.
39732         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39733
39734 2008-04-27  Bruno Haible  <bruno@clisp.org>
39735
39736         * lib/memchr.c (__memchr): Change type of 'i'.
39737         * lib/memchr2.c (memchr2): Likewise.
39738
39739 2008-04-26  Eric Blake  <ebb9@byu.net>
39740         and Bruno Haible  <bruno@clisp.org>
39741
39742         Optimize and test memrchr.
39743         * modules/memrchr (Depends-on): Add intprops.
39744         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39745         * modules/memrchr-tests: New file.
39746         * tests/test-memrchr.c: New file.
39747
39748 2008-04-26  Bruno Haible  <bruno@clisp.org>
39749
39750         Add tentative support for DragonFly BSD.
39751         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39752         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39753         fp.
39754         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39755         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39756         * lib/fpurge.c (fpurge): Likewise.
39757         * lib/freadable.c (freaadable): Likewise.
39758         * lib/freadahead.c (freadahead): Likewise.
39759         * lib/freading.c (freading): Likewise.
39760         * lib/freadptr.c (freadptr): Likewise.
39761         * lib/freadseek.c (freadptrinc): Likewise.
39762         * lib/fseeko.c (fseeko): Likewise.
39763         * lib/fseterr.c (fseterr): Likewise.
39764         * lib/fwritable.c (fwritable): Likewise.
39765         * lib/fwriting.c (fwriting): Likewise.
39766
39767 2008-04-26  Bruno Haible  <bruno@clisp.org>
39768
39769         * lib/stdio-impl.h: New file.
39770         * lib/fbufmode.c: Include stdio-impl.h.
39771         (fbufmode): Use fp_, remove redundant #defines.
39772         * lib/fflush.c: Include stdio-impl.h.
39773         (clear_ungetc_buffer): Remove redundant #defines.
39774         * lib/fpurge.c: Include stdio-impl.h.
39775         (fpurge): Remove redundant #defines.
39776         * lib/freadable.c: Include stdio-impl.h.
39777         (freadable): Remove redundant #defines.
39778         * lib/freadahead.c: Include stdio-impl.h.
39779         (freadahead): Remove redundant #defines.
39780         * lib/freading.c: Include stdio-impl.h.
39781         (freading): Remove redundant #defines.
39782         * lib/freadptr.c: Include stdio-impl.h.
39783         (freadptr): Remove redundant #defines.
39784         * lib/freadseek.c: Include stdio-impl.h.
39785         (freadptrinc): Remove redundant #defines.
39786         * lib/fseeko.c: Include stdio-impl.h.
39787         (rpl_fseeko): Remove redundant #defines.
39788         * lib/fseterr.c: Include stdio-impl.h.
39789         (fseterr): Remove redundant #defines.
39790         * lib/fwritable.c: Include stdio-impl.h.
39791         (fwritable: Remove redundant #defines.
39792         * lib/fwriting.c: Include stdio-impl.h.
39793         (fwriting): Remove redundant #defines.
39794         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39795         * modules/fflush (Files): Likewise.
39796         * modules/fpurge (Files): Likewise.
39797         * modules/freadable (Files): Likewise.
39798         * modules/freadahead (Files): Likewise.
39799         * modules/freading (Files): Likewise.
39800         * modules/freadptr (Files): Likewise.
39801         * modules/freadseek (Files): Likewise.
39802         * modules/fseeko (Files): Likewise.
39803         * modules/fseterr (Files): Likewise.
39804         * modules/fwritable (Files): Likewise.
39805         * modules/fwriting (Files): Likewise.
39806
39807 2008-04-26  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39810         restore_seek_optimization, update_fpos_cache): New functions, extracted
39811         from rpl_fflush.
39812         (rpl_fflush): Use them.
39813         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39814         (gl_REPLACE_FFLUSH): Use it.
39815
39816 2008-04-26  Bruno Haible  <bruno@clisp.org>
39817
39818         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39819         on Solaris.
39820         * tests/test-xstrtoimax.sh: Likewise.
39821         * tests/test-xstrtoumax.sh: Likewise.
39822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39823
39824 2008-04-26  Bruno Haible  <bruno@clisp.org>
39825
39826         * modules/memchr-tests: New file.
39827         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39828
39829 2008-04-26  Eric Blake  <ebb9@byu.net>
39830             Bruno Haible  <bruno@clisp.org>
39831
39832         * lib/memchr.c: Include intprops.h.
39833         (__memchr): Optimize parallel detection of matching bytes. Rename local
39834         variables. Add explanatory comments.
39835
39836 2008-04-26  Bruno Haible  <bruno@clisp.org>
39837
39838         Fix module 'memchr', broken since 2000-10-28.
39839         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39840
39841 2008-04-26  Bruno Haible  <bruno@clisp.org>
39842
39843         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39844         comments.
39845
39846 2008-04-25  Eric Blake  <ebb9@byu.net>
39847
39848         Use native fstatat on cygwin 1.7.0.
39849         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39850         first.
39851
39852 2008-04-23  Eric Blake  <ebb9@byu.net>
39853
39854         Improve memchr2 performance.
39855         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39856         NUL bytes.
39857         * modules/memchr2 (Depends-on): Use intprops.h.
39858
39859 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39860
39861         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39862         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39863         <blp@cs.stanford.edu>.
39864
39865 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39866
39867         * lib/arpa_inet.in.h: New file.
39868
39869         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39870         (Makefile.am): Sed in substitute header file.
39871
39872         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39873         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39874
39875         * modules/inet_ntop (configure.ac): Use
39876         gl_ARPA_INET_MODULE_INDICATOR.
39877
39878         * modules/inet_pton (configure.ac): Use
39879         gl_ARPA_INET_MODULE_INDICATOR.
39880
39881 2008-04-22  Jim Meyering  <meyering@redhat.com>
39882
39883         * modules/verify (License): Re-license as LGPLv2+.
39884
39885 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39886
39887         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39888         parameter to void* as per POSIX standard (MinGW uses char*).
39889
39890 2008-04-21  Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39893         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39894         Define to replacements if REPLACE_ISWCNTRL is 1.
39895         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39896         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39897         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39898         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39899         what it fixes.
39900         * doc/posix-functions/iswalpha.texi: Likewise.
39901         * doc/posix-functions/iswblank.texi: Likewise.
39902         * doc/posix-functions/iswcntrl.texi: Likewise.
39903         * doc/posix-functions/iswdigit.texi: Likewise.
39904         * doc/posix-functions/iswgraph.texi: Likewise.
39905         * doc/posix-functions/iswlower.texi: Likewise.
39906         * doc/posix-functions/iswprint.texi: Likewise.
39907         * doc/posix-functions/iswpunct.texi: Likewise.
39908         * doc/posix-functions/iswspace.texi: Likewise.
39909         * doc/posix-functions/iswupper.texi: Likewise.
39910         * doc/posix-functions/iswxdigit.texi: Likewise.
39911         Reported by Alain Guibert.
39912
39913 2008-04-21  Bruno Haible  <bruno@clisp.org>
39914
39915         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39916         Patch by Alain Guibert.
39917
39918 2008-04-21  Bruno Haible  <bruno@clisp.org>
39919
39920         Fix test failures on mingw.
39921         * tests/test-xstrtol.c (print_no_progname): New function.
39922         (main): Install it in error_print_progname hook.
39923         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39924         * tests/test-xstrtoimax.sh: Likewise.
39925         * tests/test-xstrtoumax.sh: Likewise.
39926
39927 2008-04-21  Bruno Haible  <bruno@clisp.org>
39928
39929         Fix test failure on mingw.
39930         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39931
39932 2008-04-21  Bruno Haible  <bruno@clisp.org>
39933
39934         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39935         Actually assign a value.
39936
39937 2008-04-20  Bruno Haible  <bruno@clisp.org>
39938
39939         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39940         take 2.
39941         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39942         'canonicalize-lgpl' module is also used.
39943         * lib/canonicalize-lgpl.c: Undo last change.
39944         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39945
39946 2008-04-20  Bruno Haible  <bruno@clisp.org>
39947
39948         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39949         config.h. Provide _mkdir based fallback for mingw.
39950         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39951         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39952         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39953         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39954         rather than defining mkdir in config.h.
39955         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39956         (gl_SYS_STAT_H_DEFAULTS): New macro.
39957         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39958         HAVE_IO_H any more.
39959         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39960         HAVE_DECL_MKDIR and HAVE_IO_H.
39961
39962 2008-04-20  Bruno Haible  <bruno@clisp.org>
39963
39964         * lib/isapipe.c: Port to native Windows platforms.
39965
39966 2008-04-20  Bruno Haible  <bruno@clisp.org>
39967
39968         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39969
39970 2008-04-21  Eric Blake  <ebb9@byu.net>
39971
39972         Work around preprocessors that don't handle UINTMAX_MAX.
39973         * lib/memchr2.c (memchr2): Avoid embedded #if.
39974         Reported by Alain Guibert, fix suggested by Bruno Haible.
39975
39976 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39977
39978         * doc/posix-functions/strftime.texi (strftime): Explain better
39979         Windows incompatibility.  Suggested by Micah Cowan
39980         <micah@cowan.name>.
39981
39982 2008-04-20  Bruno Haible  <bruno@clisp.org>
39983
39984         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39985         unistr/u8-mblen.
39986
39987 2008-04-20  Bruno Haible  <bruno@clisp.org>
39988
39989         Fix test failure on platforms with non-GNU iconv.
39990         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39991         (U_TO_U8): Use it, rather than u16_to_u8.
39992         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39993         units at the end of the input string.
39994         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39995
39996 2008-04-20  Bruno Haible  <bruno@clisp.org>
39997
39998         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39999         when the resulting length is 0.
40000         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
40001
40002 2008-04-20  Bruno Haible  <bruno@clisp.org>
40003
40004         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
40005         works.
40006         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
40007
40008 2008-04-20  Bruno Haible  <bruno@clisp.org>
40009
40010         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
40011         * modules/tsearch-tests (configure.ac): Test for initstate function.
40012
40013 2008-04-20  Bruno Haible  <bruno@clisp.org>
40014
40015         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
40016         for nlink_t if missing.
40017         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
40018
40019 2008-04-19  Bruno Haible  <bruno@clisp.org>
40020
40021         Work around snprintf bug on Linux libc5.
40022         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
40023         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40024         gl_SNPRINTF_SIZE1.
40025         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40026         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
40027         that test failed.
40028         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
40029         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
40030         * modules/snprintf (Files): Add m4/printf.m4.
40031         * modules/vsnprintf (Files): Likewise.
40032         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
40033         * doc/posix-functions/vsnprintf.texi: Likewise.
40034
40035 2008-04-19  Bruno Haible  <bruno@clisp.org>
40036
40037         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
40038         from 0.0058 to less than 10^-7.
40039
40040 2008-04-19  Bruno Haible  <bruno@clisp.org>
40041
40042         Fix rounding when a precision is given.
40043         * lib/vasnprintf.c (is_borderline): New function.
40044         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
40045         9...9x.
40046         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
40047         %e, %g.
40048         * tests/test-vasprintf-posix.c (test_function): Likewise.
40049         * tests/test-snprintf-posix.h (test_function): Likewise.
40050         * tests/test-sprintf-posix.h (test_function): Likewise.
40051         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
40052         * tests/test-printf-posix.h (test_function): Likewise.
40053         * tests/test-printf-posix.output: Update.
40054         Reported by John Darrington <john@darrington.wattle.id.au> via
40055         Ben Pfaff <blp@cs.stanford.edu>.
40056
40057 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40058
40059         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40060         Suggested by Bruno Haible <bruno@clisp.org>.
40061
40062 2008-04-17  Bruno Haible  <bruno@clisp.org>
40063
40064         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40065         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40066         implementation.
40067         Patch by Bruce Merry <bmerry@gmail.com>.
40068
40069 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40070
40071         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40072         doesn't work under Windows.
40073
40074 2008-04-16  Bruno Haible  <bruno@clisp.org>
40075
40076         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40077         New macros.
40078         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40079         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40080         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40081         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40082         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40083         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40084         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40085         macros.
40086         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40087         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40088         Northern Sotho, Uighur.
40089
40090 2008-04-16  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40093         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40094         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40095         Reported by Daniel Bergström <daniel@octocode.com>.
40096
40097 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40098             Bruno Haible  <bruno@clisp.org>
40099
40100         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40101         function.
40102         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40103         New functions, mostly extracted from gl_locale_name_default.
40104         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40105
40106 2008-04-16  Eric Blake  <ebb9@byu.net>
40107
40108         Adjust strtod detection to catch glibc 2.7 bug.
40109         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40110         Reported by John Gatewood Ham.
40111
40112 2008-04-16  Bruno Haible  <bruno@clisp.org>
40113
40114         Add tentative support for Linux libc5.
40115         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40116         * lib/fpurge.c (fpurge): Likewise.
40117         * lib/freadable.c (freadable): Likewise.
40118         * lib/freadahead.c (freadahead): Likewise.
40119         * lib/freading.c (freading): Likewise.
40120         * lib/freadptr.c (freadptr): Likewise.
40121         * lib/freadseek.c (freadptrinc): Likewise.
40122         * lib/fseeko.c (rpl_fseeko): Likewise.
40123         * lib/fseterr.c (fseterr): Likewise.
40124         * lib/fwritable.c (fwritable): Likewise.
40125         * lib/fwriting.c (fwriting): Likewise.
40126         Reported by Alain Guibert <alguibert+bts@free.fr>.
40127
40128 2008-04-15  Bruno Haible  <bruno@clisp.org>
40129
40130         * modules/mathl (configure.ac): Define module indicator.
40131
40132 2008-04-15  Bruno Haible  <bruno@clisp.org>
40133
40134         * lib/logl.c (logl): Remove unused variables.
40135
40136 2008-04-15  Bruno Haible  <bruno@clisp.org>
40137
40138         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40139         fails.
40140
40141 2008-04-15  Bruno Haible  <bruno@clisp.org>
40142
40143         * lib/trim.c (trim2): Fix argument of isspace() macro.
40144
40145 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40146
40147         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40148         to 0.
40149         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40150
40151 2008-04-14  Bruno Haible  <bruno@clisp.org>
40152
40153         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40154         AC_LANG_PROGRAM argument.
40155         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40156         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40157         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40158         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40159         * m4/math_h.m4 (gl_MATH_H): Likewise.
40160         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40161         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40162         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40163         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40164         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40165         * m4/regex.m4 (gl_REGEX): Likewise.
40166         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40167         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40168         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40169         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40170         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40171         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40172         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40173         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40174
40175 2008-04-14  Jim Meyering  <meyering@redhat.com>
40176
40177         test-strtod: fix typos: s/abs/fabs/
40178         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40179
40180 2008-04-13  Bruno Haible  <bruno@clisp.org>
40181
40182         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40183         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40184         module is also used and while not building the reloc-wrapper.
40185
40186 2008-04-13  Bruno Haible  <bruno@clisp.org>
40187
40188         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40189
40190 2008-04-13  Bruno Haible  <bruno@clisp.org>
40191
40192         Fix AIX compilation failure introduced on 2008-04-02.
40193         * tests/test-frexp.c (exp): Undefine before redefining.
40194         * tests/test-frexpl.c (exp): Likewise.
40195
40196 2008-04-13  Bruno Haible  <bruno@clisp.org>
40197
40198         Work around a HP-UX stdio bug.
40199         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40200         * tests/test-ftello.c (main): Likewise.
40201         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40202         * doc/posix-functions/ftello.texi: Likewise.
40203
40204 2008-04-13  Bruno Haible  <bruno@clisp.org>
40205
40206         Make test-signbit pass on HP-UX/hppa.
40207         * tests/test-signbit.c (minus_zerol): New variable.
40208         (test_signbitl): Use it.
40209
40210 2008-04-13  Bruno Haible  <bruno@clisp.org>
40211
40212         Make truncl work on OSF/1 4.0.
40213         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40214         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40215         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40217         HAVE_DECL_TRUNCL.
40218         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40219         HAVE_DECL_TRUNCL.
40220         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40221
40222 2008-04-13  Bruno Haible  <bruno@clisp.org>
40223
40224         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40225
40226 2008-04-13  Bruno Haible  <bruno@clisp.org>
40227
40228         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40229         expression, so as to avoid HP-UX 11 cc compiler bug.
40230
40231 2008-04-13  Bruno Haible  <bruno@clisp.org>
40232
40233         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40234
40235 2008-04-13  Bruno Haible  <bruno@clisp.org>
40236
40237         * lib/git-merge-changelog.c: Remove empty declaration outside of
40238         functions.
40239
40240 2008-04-13  Bruno Haible  <bruno@clisp.org>
40241
40242         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40243
40244 2008-04-13  Bruno Haible  <bruno@clisp.org>
40245
40246         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40247         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40249         also if it exists but lacks definitions of the SHUT_* macros.
40250         * modules/sys_socket (Description): Update.
40251         Reported by Elbert Pol <e.pol@chello.nl>.
40252
40253 2008-04-13  Bruno Haible  <bruno@clisp.org>
40254
40255         * lib/localcharset.c (OS2): Don't redefine if already defined.
40256         Reported by Elbert Pol <e.pol@chello.nl>.
40257
40258 2008-04-13  Bruno Haible  <bruno@clisp.org>
40259
40260         * lib/binary-io.h [__EMX__]: Include <io.h>.
40261         Reported by Elbert Pol <e.pol@chello.nl>.
40262
40263 2008-04-12  Bruno Haible  <bruno@clisp.org>
40264
40265         * lib/fpucw.h: Enable the definitions also for x86_64.
40266         Needed for NetBSD/x86_64.
40267         Reported by Thomas Klausner <tk@giga.or.at>.
40268
40269 2008-04-12  Bruno Haible  <bruno@clisp.org>
40270
40271         * tests/test-strtod.c: Include isnand.h.
40272         (main): Use isnand instead of isnan.
40273         Reported by Jim Meyering.
40274
40275 2008-04-12  Bruno Haible  <bruno@clisp.org>
40276
40277         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40278         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40279
40280 2008-04-12  Jim Meyering  <meyering@redhat.com>
40281
40282         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40283
40284 2008-04-12  Bruno Haible  <bruno@clisp.org>
40285
40286         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40287         Reported by Elbert Pol <e.pol@chello.nl>.
40288
40289 2008-04-12  Eric Blake  <ebb9@byu.net>
40290
40291         Work around Solaris 10 math.h bug.
40292         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40293         (gl_MATH_H_DEFAULTS): Set up default.
40294         * modules/math (Makefile.am): Replace new indicators.
40295         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40296         * tests/test-math.c (main): Test this.
40297         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40298         * doc/posix-headers/math.texi (math.h): Mention bug.
40299         Reported by Nelson H. F. Beebe and Jim Meyering.
40300
40301 2008-04-11  Bruno Haible  <bruno@clisp.org>
40302
40303         Adapt to future versions of Apple GCC.
40304         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40305         Reported by Peter O'Gorman <peter@pogma.com>.
40306
40307 2008-04-11  Bruno Haible  <bruno@clisp.org>
40308
40309         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40310
40311 2008-04-11  Bruno Haible  <bruno@clisp.org>
40312
40313         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40314
40315         * modules/getaddrinfo-tests (Makefile.am): Define
40316         test_getaddrinfo_LDADD.
40317
40318 2008-04-11  Bruno Haible  <bruno@clisp.org>
40319
40320         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40321         (init): Fix syntax error.
40322         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40323         is declared.
40324
40325 2008-04-11  Bruno Haible  <bruno@clisp.org>
40326
40327         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40328         * modules/glob (Depends-on): Add stdbool.
40329
40330 2008-04-11  Bruno Haible  <bruno@clisp.org>
40331
40332         * lib/trim.c: Include <string.h>.
40333
40334 2008-04-11  Eric Blake  <ebb9@byu.net>
40335
40336         Avoid compile failure on OS/2.
40337         * lib/regex_internal.h (internal_function): Disable optimization
40338         on OS/2 (__EMX__), where it caused compiler error.
40339         Reported by Elbert Pol.
40340
40341 2008-04-11  Bruno Haible  <bruno@clisp.org>
40342
40343         Flush the standard error stream before aborting. Needed on mingw.
40344         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40345         * tests/test-array_list.c (ASSERT): Likewise.
40346         * tests/test-array_oset.c (ASSERT): Likewise.
40347         * tests/test-avltree_list.c (ASSERT): Likewise.
40348         * tests/test-avltree_oset.c (ASSERT): Likewise.
40349         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40350         * tests/test-binary-io.c (ASSERT): Likewise.
40351         * tests/test-byteswap.c (ASSERT): Likewise.
40352         * tests/test-c-ctype.c (ASSERT): Likewise.
40353         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40354         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40355         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40356         * tests/test-c-strstr.c (ASSERT): Likewise.
40357         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40358         * tests/test-canonicalize.c (ASSERT): Likewise.
40359         * tests/test-carray_list.c (ASSERT): Likewise.
40360         * tests/test-ceilf1.c (ASSERT): Likewise.
40361         * tests/test-ceilf2.c (ASSERT): Likewise.
40362         * tests/test-ceill.c (ASSERT): Likewise.
40363         * tests/test-count-one-bits.c (ASSERT): Likewise.
40364         * tests/test-fbufmode.c (ASSERT): Likewise.
40365         * tests/test-fflush2.c (ASSERT): Likewise.
40366         * tests/test-floorf1.c (ASSERT): Likewise.
40367         * tests/test-floorf2.c (ASSERT): Likewise.
40368         * tests/test-floorl.c (ASSERT): Likewise.
40369         * tests/test-fopen.c (ASSERT): Likewise.
40370         * tests/test-fpending.c (ASSERT): Likewise.
40371         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40372         * tests/test-fpurge.c (ASSERT): Likewise.
40373         * tests/test-freadable.c (ASSERT): Likewise.
40374         * tests/test-freadahead.c (ASSERT): Likewise.
40375         * tests/test-freading.c (ASSERT): Likewise.
40376         * tests/test-freadptr.c (ASSERT): Likewise.
40377         * tests/test-freadptr2.c (ASSERT): Likewise.
40378         * tests/test-freadseek.c (ASSERT): Likewise.
40379         * tests/test-freopen.c (ASSERT): Likewise.
40380         * tests/test-frexp.c (ASSERT): Likewise.
40381         * tests/test-frexpl.c (ASSERT): Likewise.
40382         * tests/test-fseek.c (ASSERT): Likewise.
40383         * tests/test-fseeko.c (ASSERT): Likewise.
40384         * tests/test-fstrcmp.c (ASSERT): Likewise.
40385         * tests/test-ftell.c (ASSERT): Likewise.
40386         * tests/test-ftello.c (ASSERT): Likewise.
40387         * tests/test-func.c (ASSERT): Likewise.
40388         * tests/test-fwritable.c (ASSERT): Likewise.
40389         * tests/test-fwriting.c (ASSERT): Likewise.
40390         * tests/test-getdelim.c (ASSERT): Likewise.
40391         * tests/test-getline.c (ASSERT): Likewise.
40392         * tests/test-i-ring.c (ASSERT): Likewise.
40393         * tests/test-iconv-utf.c (ASSERT): Likewise.
40394         * tests/test-iconv.c (ASSERT): Likewise.
40395         * tests/test-isfinite.c (ASSERT): Likewise.
40396         * tests/test-isnand.c (ASSERT): Likewise.
40397         * tests/test-isnanf.c (ASSERT): Likewise.
40398         * tests/test-isnanl.h (ASSERT): Likewise.
40399         * tests/test-ldexpl.c (ASSERT): Likewise.
40400         * tests/test-linked_list.c (ASSERT): Likewise.
40401         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40402         * tests/test-localename.c (ASSERT): Likewise.
40403         * tests/test-lseek.c (ASSERT): Likewise.
40404         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40405         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40406         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40407         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40408         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40409         * tests/test-mbschr.c (ASSERT): Likewise.
40410         * tests/test-mbscspn.c (ASSERT): Likewise.
40411         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40412         * tests/test-mbspbrk.c (ASSERT): Likewise.
40413         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40414         * tests/test-mbsrchr.c (ASSERT): Likewise.
40415         * tests/test-mbsspn.c (ASSERT): Likewise.
40416         * tests/test-mbsstr1.c (ASSERT): Likewise.
40417         * tests/test-mbsstr2.c (ASSERT): Likewise.
40418         * tests/test-mbsstr3.c (ASSERT): Likewise.
40419         * tests/test-memchr2.c (ASSERT): Likewise.
40420         * tests/test-memmem.c (ASSERT): Likewise.
40421         * tests/test-open.c (ASSERT): Likewise.
40422         * tests/test-printf-frexp.c (ASSERT): Likewise.
40423         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40424         * tests/test-printf-posix.c (ASSERT): Likewise.
40425         * tests/test-quotearg.c (ASSERT): Likewise.
40426         * tests/test-rbtree_list.c (ASSERT): Likewise.
40427         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40428         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40429         * tests/test-round1.c (ASSERT): Likewise.
40430         * tests/test-roundf1.c (ASSERT): Likewise.
40431         * tests/test-roundl.c (ASSERT): Likewise.
40432         * tests/test-signbit.c (ASSERT): Likewise.
40433         * tests/test-sleep.c (ASSERT): Likewise.
40434         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40435         * tests/test-snprintf.c (ASSERT): Likewise.
40436         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40437         * tests/test-stat-time.c (ASSERT): Likewise.
40438         * tests/test-strcasestr.c (ASSERT): Likewise.
40439         * tests/test-strerror.c (ASSERT): Likewise.
40440         * tests/test-striconv.c (ASSERT): Likewise.
40441         * tests/test-striconveh.c (ASSERT): Likewise.
40442         * tests/test-striconveha.c (ASSERT): Likewise.
40443         * tests/test-strsignal.c (ASSERT): Likewise.
40444         * tests/test-strstr.c (ASSERT): Likewise.
40445         * tests/test-strtod.c (ASSERT): Likewise.
40446         * tests/test-trunc1.c (ASSERT): Likewise.
40447         * tests/test-trunc2.c (ASSERT): Likewise.
40448         * tests/test-truncf1.c (ASSERT): Likewise.
40449         * tests/test-truncf2.c (ASSERT): Likewise.
40450         * tests/test-truncl.c (ASSERT): Likewise.
40451         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40452         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40453         * tests/test-vasnprintf.c (ASSERT): Likewise.
40454         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40455         * tests/test-vasprintf.c (ASSERT): Likewise.
40456         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40457         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40458         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40459         * tests/test-vsnprintf.c (ASSERT): Likewise.
40460         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40461         * tests/test-wcwidth.c (ASSERT): Likewise.
40462         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40463         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40464         * tests/test-xvasprintf.c (ASSERT): Likewise.
40465         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40466         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40467         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40468         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40469         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40470         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40471         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40472         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40473         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40474         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40475         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40476         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40477         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40478         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40479         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40480         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40481         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40482         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40483         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40484         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40485         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40486         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40487         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40488         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40489         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40490         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40491         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40492         * tests/unictype/test-combining.c (ASSERT): Likewise.
40493         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40494         * tests/unictype/test-digit.c (ASSERT): Likewise.
40495         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40496         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40497         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40498         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40499         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40500         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40501         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40502         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40503         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40504         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40505         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40506         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40507         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40508         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40509         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40510         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40511         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40512         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40513         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40514         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40515         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40516         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40517         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40518         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40519         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40520         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40521         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40522         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40523         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40524         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40525         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40526         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40527         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40528         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40529         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40530         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40531         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40532         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40533         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40534         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40535         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40536         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40537         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40538         Reported by Eric Blake.
40539
40540 2008-04-11  Bruno Haible  <bruno@clisp.org>
40541
40542         * lib/wchar.in.h: Tweak comment.
40543
40544 2008-04-11  Bruno Haible  <bruno@clisp.org>
40545
40546         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40547         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40548         gl_COMMON.
40549         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40550
40551 2008-04-11  Bruno Haible  <bruno@clisp.org>
40552
40553         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40554
40555 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40556
40557         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40558         of attempting to use non-existing /dev/*random.  Based on patch
40559         from Adam Strzelecki <ono@java.pl> in
40560         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40561
40562 2008-04-08  Bruno Haible  <bruno@clisp.org>
40563
40564         Add tentative support for emx+gcc.
40565         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40566         * lib/fpurge.c (fpurge): Likewise.
40567         * lib/freadable.c (freadable): Likewise.
40568         * lib/freadahead.c (freadahead): Likewise.
40569         * lib/freading.c (freading): Likewise.
40570         * lib/freadptr.c (freadptr): Likewise.
40571         * lib/freadseek.c (freadptrinc): Likewise.
40572         * lib/fseeko.c (rpl_fseeko): Likewise.
40573         * lib/fseterr.c (fseterr): Likewise.
40574         * lib/fwritable.c (fwritable): Likewise.
40575         * lib/fwriting.c (fwriting): Likewise.
40576         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40577
40578 2008-04-09  Eric Blake  <ebb9@byu.net>
40579
40580         Avoid some autoconf warnings.
40581         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40582         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40583         * m4/afs.m4 (gl_AFS): Likewise.
40584         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40585         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40587         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40588         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40589         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40590         (AC_CHECK_DECLS_ONCE): Likewise.
40591         Rename file...
40592         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40593         gnulib-tool requires autoconf 2.59 or better.
40594         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40595
40596 2008-04-08  Eric Blake  <ebb9@byu.net>
40597
40598         Use 'git describe --match' if present (added in git 1.5.5).
40599         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40600         if possible.
40601
40602 2008-04-08  Bruno Haible  <bruno@clisp.org>
40603
40604         Add tentative support for OpenServer.
40605         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40606         _ptr, _cnt.
40607         * lib/fpurge.c (fpurge): Likewise.
40608         * lib/freadable.c (freadable): Likewise.
40609         * lib/freadahead.c (freadahead): Likewise.
40610         * lib/freading.c (freading): Likewise.
40611         * lib/freadptr.c (freadptr): Likewise.
40612         * lib/freadseek.c (freadptrinc): Likewise.
40613         * lib/fseeko.c (rpl_fseeko): Likewise.
40614         * lib/fseterr.c (fseterr): Likewise.
40615         * lib/fwritable.c (fwritable): Likewise.
40616         * lib/fwriting.c (fwriting): Likewise.
40617         Reported by Roger Cornelius <rac@tenzing.org> and
40618         Brian K. White <brian@aljex.com>.
40619
40620 2008-04-06  Jim Meyering  <meyering@redhat.com>
40621
40622         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40623
40624 2008-04-06  Bruno Haible  <bruno@clisp.org>
40625
40626         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40627         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40628         * tests/test-printf-posix.sh: Likewise.
40629         * tests/test-vfprintf-posix.sh: Likewise.
40630         * tests/test-vprintf-posix.sh: Likewise.
40631         * tests/test-xprintf-posix.sh: Likewise.
40632
40633 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40634
40635         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40636         hide error from 'ls', needed on OS/2.
40637         Report by Elbert Pol <elbert.pol@gmail.com>.
40638
40639 2008-04-04  Eric Blake  <ebb9@byu.net>
40640
40641         Make test-fseeko.c failures meaningful.
40642         * tests/test-fseeko.c: Print line number on failure.
40643         * tests/test-fseek.c: Likewise.
40644         Reported by Nelson H. F. Beebe.
40645
40646         Improve strtod bug detection check.
40647         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40648         required for Solaris 10.
40649         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40650
40651 2008-04-04  Bruno Haible  <bruno@clisp.org>
40652
40653         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40654         by m4/setenv.m4.
40655
40656 2008-04-03  Eric Blake  <ebb9@byu.net>
40657
40658         Ensure sane .version contents.
40659         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40660         version string.
40661         * build-aux/git-version-gen: Improve documentation.
40662
40663         Make GNU make output nicer.
40664         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40665         MAKECMDGOALS to enforce message for all command line targets.  Set
40666         srcdir for use in maint.mk.
40667
40668         Another maintainer tweak.
40669         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40670         a target that regenerates version.
40671
40672 2008-04-03  Jim Meyering  <meyering@redhat.com>
40673
40674         vc-list-files: don't cause coreutils "make po-check" failure
40675         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40676
40677 2008-04-03  Eric Blake  <ebb9@byu.net>
40678
40679         Allow VPATH usage of vc-list-files.
40680         * build-aux/vc-list-files (scriptversion): Add timestamp.
40681         (options): Add --help, --version, -C.
40682         (CVS): Support installed cvsu.
40683
40684 2008-04-02  Bruno Haible  <bruno@clisp.org>
40685
40686         Avoid some "statement with no effect" warnings from gcc.
40687         * tests/test-wctype.c (main): Explicitly ignore unused values.
40688         Reported by Jim Meyering.
40689
40690 2008-04-02  Jim Meyering  <meyering@redhat.com>
40691
40692         Avoid some warnings from "gcc -Wshadow".
40693         * tests/test-frexp.c (exp): Define to a different identifier.
40694         * tests/test-frexpl.c (exp): Likewise.
40695
40696 2008-04-03  Jim Meyering  <meyering@redhat.com>
40697
40698         bootstrap: remove dangling *.[ch] symlinks from lib
40699         * build-aux/bootstrap [dangling symlink removal]: Move find's
40700         -depth option to precede all others, to avoid a warning.
40701         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40702
40703 2008-04-02  Bruno Haible  <bruno@clisp.org>
40704
40705         Avoid some warnings from "gcc -Wshadow".
40706         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40707         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40708         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40709         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40710         Reported by Jim Meyering.
40711
40712 2008-04-01  Bruno Haible  <bruno@clisp.org>
40713
40714         Fix test to work on IRIX 6.5 with cc.
40715         * tests/test-math.c (numeric_equal): New function.
40716         (main): Use it.
40717
40718 2008-04-01  Bruno Haible  <bruno@clisp.org>
40719
40720         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40721
40722 2008-04-01  Bruno Haible  <bruno@clisp.org>
40723
40724         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40725         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40726         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40727         (Depends-on): Remove math.
40728
40729         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40730         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40731         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40732         (Depends-on): Remove math.
40733
40734         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40735         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40736         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40737         (Depends-on): Remove math.
40738         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40739         (Depends-on): Remove math.
40740
40741         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40742         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40743         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40744         (Depends-on): Remove math.
40745         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40746         (Depends-on): Remove math.
40747
40748         * tests/test-round1.c: Include nan.h.
40749         (main): Use NaNd instead of NAN.
40750         * modules/round-tests (Files): Add tests/nan.h.
40751
40752         * tests/test-trunc1.c: Include nan.h.
40753         (main): Use NaNd instead of NAN.
40754         * modules/trunc-tests (Files): Add tests/nan.h.
40755
40756         * tests/test-roundf1.c: Include nan.h.
40757         (main): Use NaNf instead of NAN.
40758         * modules/roundf-tests (Files): Add tests/nan.h.
40759
40760         * tests/test-truncf1.c: Include nan.h.
40761         (main): Use NaNf instead of NAN.
40762         * modules/truncf-tests (Files): Add tests/nan.h.
40763
40764         * tests/test-ceilf1.c: Include nan.h.
40765         (main): Use NaNf instead of NAN.
40766         * modules/ceilf-tests (Files): Add tests/nan.h.
40767
40768         * tests/test-floorf1.c: Include nan.h.
40769         (main): Use NaNf instead of NAN.
40770         * modules/floorf-tests (Files): Add tests/nan.h.
40771
40772         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40773         (main): Use NaNf instead of NAN.
40774         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40775
40776         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40777         (main): Use NaNd instead of NAN.
40778         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40779
40780         * tests/test-frexp.c: Include nan.h.
40781         (main): Use NaNd instead of NAN.
40782         * modules/frexp-tests (Files): Add tests/nan.h.
40783
40784         * lib/isnan.c: Don't include <math.h>.
40785         (FUNC): Don't use NAN macro.
40786         * modules/isnand-nolibm (Depends-on): Remove math.
40787         * modules/isnanf-nolibm (Depends-on): Remove math.
40788         * modules/isnanl (Depends-on): Remove math.
40789         * modules/isnanl-nolibm (Depends-on): Remove math.
40790
40791         * tests/nan.h: New file.
40792
40793 2008-04-01  Eric Blake  <ebb9@byu.net>
40794
40795         Fix typos.
40796         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40797         values to be the right type.
40798
40799         For now, cater to gnulib strtod inaccuracies.
40800         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40801         fractional results.  While not as nice from a QoI perspective, it
40802         is a quicker patch than correctly implementing decimal to binary
40803         rounding.
40804
40805 2008-03-31  Eric Blake  <ebb9@byu.net>
40806
40807         Guarantee a definition of NAN.
40808         * lib/math.in.h (NAN): Define if missing.
40809         * tests/test-math.c (main): Test it.
40810         * doc/posix-headers/math.texi (math.h): Document this.
40811         * lib/isnan.c (rpl_isnand): Use it.
40812         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40813         * tests/test-floorf1.c (NaN): Likewise.
40814         * tests/test-frexp.c (NaN): Likewise.
40815         * tests/test-isnand.c (NaN): Likewise.
40816         * tests/test-isnanf.c (NaN): Likewise.
40817         * tests/test-round1.c (NaN): Likewise.
40818         * tests/test-roundf1.c (NaN): Likewise.
40819         * tests/test-snprintf-posix.h (NaN): Likewise.
40820         * tests/test-sprintf-posix.h (NaN): Likewise.
40821         * tests/test-trunc1.c (NaN): Likewise.
40822         * tests/test-truncf1.c (NaN): Likewise.
40823         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40824         * tests/test-vasprintf-posix.c (NaN): Likewise.
40825         * modules/isnand-nolibm (Depends-on): Add math.
40826         * modules/isnanf-nolibm (Depends-on): Likewise.
40827         * modules/isnanl (Depends-on): Likewise.
40828         * modules/isnanl-nolibm (Depends-on): Likewise.
40829         * modules/snprintf-posix-tests (Depends-on): Likewise.
40830         * modules/sprintf-posix-tests (Depends-on): Likewise.
40831         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40832         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40833         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40834         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40835
40836 2008-03-31  Bruno Haible  <bruno@clisp.org>
40837
40838         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40839         * doc/posix-functions/strtod.texi: Likewise.
40840
40841 2008-03-31  Bruno Haible  <bruno@clisp.org>
40842
40843         * tests/test-strtod.c (main): Don't use C99 syntax.
40844
40845 2008-03-31  Bruno Haible  <bruno@clisp.org>
40846
40847         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40848         Reported by Eric Blake.
40849
40850 2008-03-31  Jim Meyering  <meyering@redhat.com>
40851
40852         Don't compare actual signbit return values.
40853         * tests/test-strtod.c (main): Rather, compare only their
40854         zero/non-zero nature.
40855
40856 2008-03-31  Eric Blake  <ebb9@byu.net>
40857
40858         More strtod documentation.
40859         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40860         failures as distinct bugs.
40861
40862 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40863
40864         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40865         Problem reported by Erik Benada in
40866         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40867
40868 2008-03-30  Bruno Haible  <bruno@clisp.org>
40869
40870         * tests/test-strtod.c: Add comments about which assertion fails on which
40871         platform.
40872         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40873
40874 2008-03-30  Eric Blake  <ebb9@byu.net>
40875
40876         Test signbit behavior on zeros.
40877         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40878         (test_signbitd, test_signbitl): Likewise.
40879
40880         More strtod touchups.
40881         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40882         sign of negative underflow, for now.  Use .5, not .1.
40883         * doc/posix-functions/strtod.texi (strtod): Mention these
40884         limitations.
40885         Reported by Jim Meyering.
40886
40887 2008-03-30  Bruno Haible  <bruno@clisp.org>
40888
40889         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40890         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40891
40892 2008-03-30  Bruno Haible  <bruno@clisp.org>
40893
40894         Avoid failure when attempting to return empty iconv results on some
40895         platforms.
40896         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40897         allocation, don't report ENOMEM when the resulting string is empty.
40898
40899 2008-03-30  Bruno Haible  <bruno@clisp.org>
40900
40901         Fix buffer overrun.
40902         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40903         Don't consider the width for tmp_length. Check count against tmp_length
40904         before doing the padding. Ensure enough allocation during padding.
40905
40906 2008-03-30  Eric Blake  <ebb9@byu.net>
40907
40908         strtod touchups.
40909         * lib/strtod.c (strtod): Avoid compiler warnings.
40910         Reported by Jim Meyering.
40911
40912 2008-03-30  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40915         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40916         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40917         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40918         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40919         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40920         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40921         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40922
40923         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40924         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40925         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40926         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40927         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40928         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40929         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40930         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40931
40932         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40933         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40934         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40935         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40936         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40937         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40938         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40939         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40940
40941         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40942         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40943
40944         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40945         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40946
40947         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40948         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40949
40950         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40951         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40952         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40953
40954         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40956         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40957
40958         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40960         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40961
40962         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40963         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40964         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40965
40966         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40967         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40968         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40969         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40970         (Depends-on): Add EOVERFLOW.
40971         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40972         (Depends-on): Add EOVERFLOW.
40973         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40974         (Depends-on): Add EOVERFLOW.
40975         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40976         (Depends-on): Add EOVERFLOW.
40977         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40978         (Depends-on): Add EOVERFLOW.
40979         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40980         (Depends-on): Add EOVERFLOW.
40981         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40982         (Depends-on): Add EOVERFLOW.
40983         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40984         (Depends-on): Add EOVERFLOW.
40985
40986         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40987         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40988         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40989
40990         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40991         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40992         * modules/snprintf (Depends-on): Add EOVERFLOW.
40993
40994         * lib/poll.c (EOVERFLOW): Remove fallback.
40995         * modules/poll (Depends-on): Add EOVERFLOW.
40996
40997         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40998         * modules/getugroups (Depends-on): Add EOVERFLOW.
40999
41000         * lib/getdelim.c (EOVERFLOW): Remove fallback.
41001         * modules/getdelim (Depends-on): Add EOVERFLOW.
41002
41003         * lib/ftell.c (EOVERFLOW): Remove fallback.
41004         * modules/ftell (Depends-on): Add EOVERFLOW.
41005
41006         * lib/fprintf.c (EOVERFLOW): Remove fallback.
41007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
41008         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
41009
41010         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
41011
41012         * modules/EOVERFLOW-tests: New file.
41013         * tests/test-EOVERFLOW.c: New file.
41014
41015         * modules/EOVERFLOW: New file.
41016         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
41017
41018 2008-03-30  Bruno Haible  <bruno@clisp.org>
41019
41020         Fix bug introduced on 2007-06-10.
41021         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
41022         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
41023
41024 2008-03-30  Bruno Haible  <bruno@clisp.org>
41025
41026         Improve freadseek's efficiency after ungetc.
41027         * lib/freadseek.c: Include freadahead.h.
41028         (freadptrinc): New function, extracted from freadseek.
41029         (freadseek): Use it in a loop. Use freadahead to determine the number
41030         of loop iterations.
41031         * modules/freadseek (Depends-on): Add freadahead.
41032         (configure.ac): Require AC_C_INLINE.
41033
41034 2008-03-30  Bruno Haible  <bruno@clisp.org>
41035
41036         * lib/freadseek.c (freadseek): Don't ignore the return value of
41037         freadptr.
41038
41039 2008-03-29  Eric Blake  <ebb9@byu.net>
41040
41041         Add hex float support.
41042         * modules/strtod (Depends-on): Add c-ctype.
41043         (Link): Mention POW_LIB.
41044         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
41045         whitespace between 'e' and exponent.
41046         * tests/test-strtod.c (main): Enable hex float tests.
41047         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
41048         now provides.
41049
41050         Document various strtod bugs, with some fixes.
41051         * doc/posix-functions/strtod.texi (strtod): Document bugs with
41052         "-0x", "inf", "nan", and hex constants.
41053         * doc/posix-functions/atof.texi (atof): Likewise.
41054         * modules/stdlib (Makefile.am): Support strtod.
41055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41056         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41057         detect additional strtod bugs.
41058         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41059         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41060         bool where appropriate.  Parse 'inf' and 'nan'.
41061         * tests/test-strtod.c: New file.
41062         * modules/strtod (Depends-on): Add stdbool, stdlib.
41063         (configure.ac): Turn on module indicator.
41064         * modules/strtod-tests: New module.
41065
41066 2008-03-29  Eric Blake  <ebb9@byu.net>
41067
41068         Fix ftell on mingw.
41069         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41070         * modules/ftell-tests (Depends-on): Add binary-io.
41071         * modules/ftello-tests (Depends-on): Likewise.
41072         * tests/test-ftell.c (main): Enhance test to cover behavior after
41073         ungetc.  Enforce binary mode.
41074         * tests/test-ftello.c (main): Likewise.
41075
41076         Pass test-freadseek on cygwin.
41077         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41078         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41079         ungetc buffer.
41080
41081         * tests/test-fflush2.c (main): Fix typo.
41082
41083 2008-03-29  Bruno Haible  <bruno@clisp.org>
41084
41085         * tests/test-fflush2.c (main): Temporarily disable the contents of
41086         this test.
41087         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41088         Reported by Eric Blake.
41089
41090 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41091
41092         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41093         (GC_SHA224_DIGEST_SIZE): Add.
41094
41095         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41096         (gc_hash_digest_length): Likewise.
41097         (gc_hash_buffer): Likewise.
41098
41099 2008-03-25  Bruno Haible  <bruno@clisp.org>
41100
41101         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41102         detail which gettext release to use.
41103         Reported by Simon Josefsson.
41104
41105 2008-03-26  Jim Meyering  <meyering@redhat.com>
41106
41107         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41108         * modules/gnumakefile (clean-GNUmakefile): Also, use
41109         test ... && ... || : syntax rather than if-then ... fi.
41110
41111         gnumakefile: Don't double-quote-expand $(VPATH) value.
41112         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41113
41114 2008-03-24  Eric Blake  <ebb9@byu.net>
41115
41116         Alter GNUmakefile to install into top directory.
41117         * modules/maintainer-makefile: Split, and add dependency...
41118         * modules/gnumakefile: to this new module.
41119         * build-aux/GNUmakefile: Move...
41120         * top/GNUmakefile: ...here.
41121         * build-aux/maint.mk: Move...
41122         * top/maint.mk: ...here.
41123         * MODULES.html.sh (Support for maintaining...): Document new
41124         module.
41125
41126 2008-03-23  Bruno Haible  <bruno@clisp.org>
41127
41128         * gnulib-tool: New options --vc-files, --no-vc-files.
41129         (func_usage): Document them.
41130         (vc_files): New variable.
41131         (func_import): Consider vc_files.
41132         (func_create_testdir): Set vc_files to empty.
41133         Suggested by Jim Meyering and Karl Berry.
41134
41135 2008-03-23  Bruno Haible  <bruno@clisp.org>
41136
41137         Fix regex compilation error on HP-UX 11.
41138         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41139         * modules/regex (Files): Add m4/mbstate_t.m4.
41140         Reported by Ton Voon <ton.voon@altinity.com>.
41141
41142 2008-03-23  Bruno Haible  <bruno@clisp.org>
41143
41144         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41145
41146 2008-03-23  Eric Blake  <ebb9@byu.net>
41147             Bruno Haible  <bruno@clisp.org>
41148
41149         Install files from top/ in the destination directory.
41150         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41151         augmentation also for the files from top/.
41152         (func_import, func_create_testdir): Rewrite file names:
41153         top/filename -> filename.
41154
41155 2008-03-23  Bruno Haible  <bruno@clisp.org>
41156
41157         Tweak "gnulib --version" output.
41158         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41159
41160 2008-03-23  Bruno Haible  <bruno@clisp.org>
41161
41162         Tweak "gnulib --version" output.
41163         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41164         rather than contents of ChangeLog, when possible.
41165
41166 2008-03-21  Eric Blake  <ebb9@byu.net>
41167
41168         More --version tweaks.
41169         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41170         date of last ChangeLog entry.
41171
41172 2008-03-21  Jim Meyering  <meyering@redhat.com>
41173
41174         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41175
41176 2008-03-20  Eric Blake  <ebb9@byu.net>
41177
41178         VPATH fix.
41179         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41180
41181 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41182
41183         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41184         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41185
41186 2008-03-20  Eric Blake  <ebb9@byu.net>
41187
41188         Sync GNUmakefile with coreutils.
41189         * build-aux/GNUmakefile (have-Makefile): Rename...
41190         (_have-Makefile): ...to this, for namespace consideration.
41191         (GNUmakefile.cfg): Include, if present.
41192         (_autoreconf): Define a default.
41193         (_is-dist-target): New rule for rebuilds to pick up intra-release
41194         version.
41195         (maint-cfg.mk): Rename...
41196         (cfg.mk): ...to this.
41197
41198 2008-03-18  Jim Meyering  <meyering@redhat.com>
41199
41200         New script and module: mktempd
41201         * MODULES.html.sh (maint+release support): Add mktempd.
41202         * build-aux/mktempd: New file.
41203         * modules/mktempd: New file.
41204
41205 2008-03-15  Jim Meyering  <meyering@redhat.com>
41206
41207         Undo last change.
41208         * lib/sha1.c, lib/md5.c: 63 != ~63.
41209         Reported by Andreas Schwab.
41210
41211         sha1.c, md5.c: Hoist a redundant expression.
41212         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41213         "ctx->buflen" only once, before calling *_process_block.
41214         * lib/md5.c (md5_process_bytes): Likewise.
41215
41216 2008-03-14  Eric Blake  <ebb9@byu.net>
41217
41218         Bump copyright year in files generated by gnulib-tool.
41219         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41220         gnulib-tool, rather than hard-coding it.
41221
41222         Fix 'gnulib-tool --version' output to work with git.
41223         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41224         (startup): ...here.
41225         (func_version): Use it to invoke git-version-gen, rather than
41226         relying on CVS keyword expansion.  Modernize wording.
41227         (cvsdatestamp, last_checkin_date, version): Kill unused
41228         variables.
41229
41230 2008-03-12  Jim Meyering  <meyering@redhat.com>
41231
41232         Recognize optional cast of the argument to free.
41233         * build-aux/useless-if-before-free: Update regexps.
41234
41235         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41236
41237 2008-03-11  Bruno Haible  <bruno@clisp.org>
41238
41239         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41240         by a single package.
41241         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41242         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41243         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41244         Reported by Sam Steingold <sds@gnu.org>.
41245
41246 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41247
41248         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41249         repositories.
41250
41251 2008-03-11  Bruno Haible  <bruno@clisp.org>
41252
41253         Avoid conflicts between local macro definitions.
41254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41255         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41256
41257 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41258             Bruno Haible  <bruno@clisp.org>
41259
41260         Make va_copy work with some version of xlc on AIX 5.1.
41261         * lib/stdarg.in.h: New file.
41262         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41263         On AIX, use a <stdarg.h> file substitute.
41264         * modules/stdarg (Files): Add lib/stdarg.in.h.
41265         (Depends-on): Add include_next.
41266         (Makefile.am): Build a stdarg.h substitute if requested.
41267         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41268
41269 2008-03-10  Bruno Haible  <bruno@clisp.org>
41270
41271         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41273         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41274
41275 2008-03-10  Bruno Haible  <bruno@clisp.org>
41276
41277         * modules/stdlib (Depends-on): Add include_next, remove
41278         absolute-header.
41279
41280 2008-03-09  Bruno Haible  <bruno@clisp.org>
41281
41282         * lib/freadahead.h (freadahead): Document more precisely.
41283         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41284         the sum of both buffer sizes.
41285         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41286         * NEWS: Document the change.
41287
41288 2008-03-09  Bruno Haible  <bruno@clisp.org>
41289
41290         Extend freadptr to return also the buffer size.
41291         * lib/freadptr.h (freadptr): Add sizep argument.
41292         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41293         (freadptr): Add sizep argument. Determine buffer size like freadahead
41294         does.
41295         * tests/test-freadptr.c: Don't include freadahead.h.
41296         (main): Adapt for new calling convention of freadptr.
41297         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41298         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41299         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41300         tests/test-freadptr2.sh.
41301         (Depends): Remove freadahead.
41302         (TESTS): Add test-freadptr2.sh.
41303         (check_PROGRAMS): Add test-freadptr2.
41304
41305 2008-03-09  Bruno Haible  <bruno@clisp.org>
41306
41307         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41308         Report and solution by Simon Josefsson.
41309
41310 2008-03-06  Bruno Haible  <bruno@clisp.org>
41311
41312         Make fflush after ungetc work on BSD platforms.
41313         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41314         * tests/test-fflush2.c: New file.
41315         * tests/test-fflush2.sh: New file.
41316         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41317         tests/test-fflush2.c.
41318         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41319         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41320
41321 2008-03-06  Eric Blake  <ebb9@byu.net>
41322
41323         Likewise for ftello.
41324         * modules/ftello (Dependencies): Add extensions.
41325         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41326
41327 2008-03-06  Bruno Haible  <bruno@clisp.org>
41328
41329         * modules/fseeko (Dependencies): Add extensions.
41330         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41331         Needed on glibc systems.
41332
41333 2008-03-06  Bruno Haible  <bruno@clisp.org>
41334
41335         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41336         email address.
41337         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41338
41339 2008-03-06  Bruno Haible  <bruno@clisp.org>
41340
41341         * users.txt: Add libgnupdf.
41342
41343 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41344
41345         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41346         (Header File Substitutes, Function Substitutes,
41347         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41348         (Build robot for gnulib): Fix typo.
41349
41350 2008-03-06  Bruno Haible  <bruno@clisp.org>
41351
41352         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41353         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41354
41355 2008-03-06  Bruno Haible  <bruno@clisp.org>
41356
41357         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41358         * doc/gnulib.texi: Include it.
41359
41360 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41361
41362         * modules/func (License): Change license to unlimited; there was
41363         no LGPL parts in the module anyway.
41364
41365 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41366
41367         * modules/__func__: Renamed to modules/func.
41368         * modules/__func__-tests: Renamed to modules/func-tests.
41369         * tests/test-__func__.c: Renamed to tests/test-func.c.
41370         * m4/__func__.m4: Renamed to m4/func.m4.
41371         * doc/gnulib.texi (__func__): Section renamed to func.
41372         Suggested by Eric Blake <ebb9@byu.net>.
41373
41374 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41375
41376         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41377         about __func__.  Make example self-contained.  Suggested by Eric
41378         Blake <ebb9@byu.net>.
41379
41380         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41381         Suggested by Eric Blake <ebb9@byu.net>.
41382
41383 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41384
41385         * modules/__func__: New file.
41386         * modules/__func__-tests: New file.
41387         * tests/test-__func__.c: New file.
41388         * m4/__func__.m4: New file.
41389         * doc/gnulib.texi (__func__): Document __func__ module.
41390
41391 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41392
41393         * modules/byteswap (License): Re-license as LGPLv2+.
41394
41395 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41396
41397         * doc/Makefile: Add pdf target.
41398
41399 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41400
41401         * modules/inline (License): Use 'unlimited', since there are only
41402         *.m4 files in this module.
41403
41404 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41405             Bruno Haible  <bruno@clisp.org>
41406
41407         Add support for HP C 7.1 on OpenVMS 8.3.
41408         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41409
41410 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41411
41412         Update VMS specifics.
41413         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41414
41415 2008-03-02  Jim Meyering  <meyering@redhat.com>
41416
41417         Remove the last dependency on the "free" module.
41418         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41419         Reported by Bob Proulx.
41420
41421         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41422
41423         Remove useless "if" tests before free.  Deprecate "free" module.
41424         * doc/posix-functions/free.texi: Mention that this
41425         module is no longer useful.
41426         * modules/free (Notice): Say this module is obsolete.
41427         * modules/readutmp (Depends-on): Remove free.
41428         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41429         * lib/putenv.c (putenv): Likewise.
41430         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41431         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41432         * tests/test-c-strcasestr.c (main): Likewise.
41433         * tests/test-c-strstr.c (main): Likewise.
41434         * tests/test-mbscasestr1.c (main): Likewise.
41435         * tests/test-mbscasestr2.c (main): Likewise.
41436         * tests/test-mbsstr1.c (main): Likewise.
41437         * tests/test-mbsstr2.c (main): Likewise.
41438         * tests/test-memmem.c (main): Likewise.
41439         * tests/test-strcasestr.c (main): Likewise.
41440         * tests/test-striconv.c (main): Likewise.
41441         * tests/test-striconveh.c (main): Likewise.
41442         * tests/test-striconveha.c (main): Likewise.
41443         * tests/test-strstr.c (main): Likewise.
41444
41445         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41446
41447         bootstrap: sync from coreutils again
41448         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41449
41450 2008-03-01  Jim Meyering  <meyering@redhat.com>
41451
41452         bootstrap: sync from coreutils
41453         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41454         also when the target doesn't exist.
41455
41456 2008-03-01  Eric Blake  <ebb9@byu.net>
41457
41458         Fix bugs in last patch.
41459         * lib/memchr2.c (memchr2): Fix typo.
41460         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41461         extension.
41462         Reported by Bruce Korb.
41463
41464         New module 'memchr2'.
41465         * modules/memchr2: New file.
41466         * modules/memchr2-tests: Likewise.
41467         * lib/memchr2.h: Likewise.
41468         * lib/memchr2.c: Likewise, based on memchr.c.
41469         * tests/test-memchr2.c: New test.
41470         * MODULES.html.sh (String handling): Add memchr2.
41471
41472 2008-02-29  Bruno Haible  <bruno@clisp.org>
41473
41474         * modules/freadseek-tests: New file.
41475         * tests/test-freadseek.sh: New file.
41476         * tests/test-freadseek.c: New file.
41477
41478         New module 'freadseek'.
41479         * modules/freadseek: New file.
41480         * lib/freadseek.h: New file.
41481         * lib/freadseek.c: New file.
41482         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41483
41484 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41485
41486         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41487         wydawca.
41488
41489         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41490         program_invocation_name and program_invocation_short_name are
41491         present.
41492
41493 2008-02-28  Bruno Haible  <bruno@clisp.org>
41494
41495         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41496         * tests/test-freadptr.sh: Also test non-seekable stdin.
41497
41498 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41499
41500         * build-aux/bootstrap (source_base, m4_base)
41501         (doc_base, tests_base): New variables.
41502         (gnulib_tool_options): Do not hardcode base directories, use
41503         the above variables instead.
41504
41505 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41506
41507         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41508
41509 2008-02-28  Bruno Haible  <bruno@clisp.org>
41510
41511         * modules/freadptr-tests: New file.
41512         * tests/test-freadptr.sh: New file.
41513         * tests/test-freadptr.c: New file.
41514
41515         New module 'freadptr'.
41516         * modules/freadptr: New file.
41517         * lib/freadptr.h: New file.
41518         * lib/freadptr.c: New file.
41519         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41520
41521 2008-02-26  Karl Berry  <karl@freefriends.org>
41522
41523         Sync from Libtool:
41524         * libltdl/argz.c (argz_add, argz_count): New functions.
41525         * libltdl/argz.in.h: Declare them.
41526         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41527
41528 2008-02-22  Bruno Haible  <bruno@clisp.org>
41529
41530         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41531         is a pointer type.  Needed for HP-UX 10.
41532         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41533         * doc/posix-functions/gmtime_r.texi: Likewise.
41534         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41535
41536 2008-02-24  Bruno Haible  <bruno@clisp.org>
41537
41538         * modules/environ-tests: New file.
41539         * tests/test-environ.c: New file.
41540
41541         New module 'environ'.
41542         * modules/environ: New file.
41543         * lib/unistd.in.h (environ): New declaration.
41544         * m4/environ.m4: New file.
41545         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41546         after use.
41547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41548         HAVE_DECL_ENVIRON.
41549         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41550         HAVE_DECL_ENVIRON.
41551         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41552         wrong claim that 'environ' is missing on some systems.
41553         * modules/execute (Depends-on): Add environ.
41554         * lib/execute.c (environ): Remove fallback declaration.
41555         * modules/pipe (Depends-on): Add environ.
41556         * lib/pipe.c (environ): Remove fallback declaration.
41557         * modules/setenv (Depends-on): Add environ.
41558         * lib/setenv.c (environ): Remove fallback declaration.
41559         * modules/unsetenv (Depends-on): Add environ.
41560         * lib/unsetenv.c (environ): Remove fallback declaration.
41561         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41562         m4/environ.m4.
41563         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41564         (gl_PREREQ_UNSETENV): Likewise.
41565
41566 2008-02-24  Bruno Haible  <bruno@clisp.org>
41567
41568         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41569
41570 2008-02-20  Bob Proulx  <bob@proulx.com>
41571
41572         Enable use of older two part flavor 'git describe'.
41573         * build-aux/git-version-gen: If using the older two part flavor of
41574         git version then recreate the third part now present in the
41575         newer three part flavor of git describe.
41576
41577 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41578
41579         * lib/fts.c (fts_build): Typo correction to comment.
41580
41581 2008-02-17  Bruno Haible  <bruno@clisp.org>
41582
41583         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41584         generating no-op conflicts.
41585
41586 2008-02-17  Bruno Haible  <bruno@clisp.org>
41587
41588         Speed up by 10%.
41589         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41590         result_entries, rather than an index-based loop.
41591
41592 2008-02-17  Bruno Haible  <bruno@clisp.org>
41593
41594         Speed up by 25%.
41595         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41596         'hashcode_cached'.
41597         (entry_create): New function.
41598         (entry_hashcode): Use the cached hashcode if possible.
41599         (read_changelog_file, try_split_merged_entry): Use entry_create.
41600
41601 2008-02-17  Bruno Haible  <bruno@clisp.org>
41602
41603         Speed up from O(n^2) to O(n) for long ChangeLog files.
41604         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41605         (read_changelog_file): Change implementation of entries_reversed list
41606         to rbtreehash.
41607         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41608
41609 2008-02-17  Bruno Haible  <bruno@clisp.org>
41610
41611         New option --split-merged-entry.
41612         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41613         (find_paragraph_end, try_split_merged_entry): New functions.
41614         (long_options): Add option --split-merged-entry.
41615         (usage): Document option --split-merged-entry.
41616         (main): Implement option --split-merged-entry.
41617         Reported by Eric Blake.
41618
41619 2008-02-17  Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/git-merge-changelog.c: Include c-strstr.h.
41622         (main): Support the "git pull --rebase" situation.
41623         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41624         Reported by Eric Blake.
41625
41626 2008-02-16  Eric Blake  <ebb9@byu.net>
41627
41628         Avoid doubling \ in common case of "c-maybe" quoting style.
41629         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41630         eliding outer quotes.
41631         * lib/quotearg.h: Document this.
41632         * tests/test-quotearg.c (result_strings, inputs, results_g)
41633         (flag_results, locale_results): Test it by adding a new string to
41634         each test group.
41635         (compare_strings): Test new string.
41636
41637 2008-02-13  Eric Blake  <ebb9@byu.net>
41638
41639         Avoid trigraph quoting in default output.
41640         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41641         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41642         unless explicitly requested.
41643         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41644
41645 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41646
41647         Don't rely on signed integer overflowing to negative value.
41648         * lib/getugroups.c (getugroups): Include <limits.h>.
41649         Instead, compare against INT_MAX, and increment only if the test passes.
41650
41651 2008-02-13  Jim Meyering  <meyering@redhat.com>
41652         and Eric Blake  <ebb9@byu.net>
41653
41654         Avoid shadowing warning and compile errors on Linux.
41655         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41656         forwarding macros on Linux.
41657         (dcgettext): Define a stub, for Linux.
41658         (results_g, main): Avoid warnings.
41659
41660 2008-02-12  Eric Blake  <ebb9@byu.net>
41661
41662         Silence warning in last patch.
41663         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41664
41665         Quotearg part 4: add tests, fix c-maybe colon quoting.
41666         * lib/quotearg.h: Improve documentation.
41667         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41668         escapes when adding outer quotes.  When quoting trigraphs, use
41669         valid C notation.  When quoting NUL, omit extra characters if next
41670         character is not digit.  Alter prototype.
41671         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41672         callers.
41673         * modules/quotearg-tests: New module.
41674         * tests/test-quotearg.c: New test.
41675
41676 2008-02-07  Eric Blake  <ebb9@byu.net>
41677
41678         Quotearg part 3: add flag to control outer quote elision.
41679         * lib/quotearg.h (c_maybe_quoting_style): New style.
41680         (enum quoting_flags): Better documentation of flags.
41681         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41682         c-maybe style.
41683         (quotearg_buffer_restyled): Handle new flag to elide outer
41684         quotes.
41685
41686         Quotearg part 2: add flag that can control NUL elision.
41687         * lib/quotearg.h (set_quoting_flags): New prototype.
41688         * lib/quotearg.c (struct quoting_options): Add flag field.
41689         (set_quoting_flags): New function.
41690         (quotearg_buffer_restyled): Add flags parameter.
41691         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41692         (quotearg_n_options): Set the flag, since length cannot be
41693         returned.
41694         (quoting_options_from_style): Default flags correctly.
41695
41696         Quotearg part 1: more wrappers, restore quotearg_char state.
41697         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41698         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41699         (quotearg_colon_mem): New wrappers.
41700         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41701         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41702         functions.
41703         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41704         (quotearg_colon_mem): New functions.
41705
41706 2008-02-11  Bruno Haible  <bruno@clisp.org>
41707
41708         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41709         library in the current directory: it does not work with parallel make.
41710         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41711
41712 2008-02-11  Bruno Haible  <bruno@clisp.org>
41713
41714         * .gitattributes: New file.
41715
41716 2008-02-11  Jim Meyering  <meyering@redhat.com>
41717
41718         useless-if-before-free: Fix reversed exit values.
41719         * build-aux/useless-if-before-free: Use correct values
41720         for EXIT_MATCH and EXIT_NO_MATCH.
41721
41722         * build-aux/useless-if-before-free: Close stdout carefully.
41723
41724 2008-02-10  Bruno Haible  <bruno@clisp.org>
41725
41726         New module 'git-merge-changelog'.
41727         * modules/git-merge-changelog: New file.
41728         * lib/git-merge-changelog.c: New file.
41729
41730 2008-02-10  Jim Meyering  <meyering@redhat.com>
41731
41732         useless-if-before-free: New option: --list (-l).
41733
41734         useless-if-before-free: Don't exit immediately upon open failure.
41735         * build-aux/useless-if-before-free: Exit 2 for errors.
41736         Upon failure to open a file, don't exit immediately.
41737         Rather, just warn and continue with any remaining files.
41738
41739 2008-02-10  Bruno Haible  <bruno@clisp.org>
41740
41741         New abstract list operation 'node_set_value'.
41742         * lib/gl_list.h (gl_list_node_set_value): New function.
41743         (struct gl_list_implementation): New field node_set_value.
41744         * lib/gl_list.c (gl_list_node_set_value): New function.
41745         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41746         (gl_array_list_implementation): Update.
41747         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41748         (gl_carray_list_implementation): Update.
41749         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41750         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41751         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41752         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41753         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41754         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41755         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41756         Update.
41757         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41758         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41759         (gl_sublist_list_implementation): Update.
41760
41761 2008-02-10  Bruno Haible  <bruno@clisp.org>
41762
41763         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41764         Needed when ELEMENT is #defined to 'some_type *'.
41765
41766 2008-02-10  Jim Meyering  <meyering@redhat.com>
41767
41768         New script and module: useless-if-before-free
41769         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41770         * build-aux/useless-if-before-free: New file.
41771         * modules/useless-if-before-free: New file.
41772
41773         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41774
41775         xstrtol_error: Fix typo.
41776         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41777         s/exit_failure/exit_status/.
41778
41779 2008-02-09  Jim Meyering  <meyering@redhat.com>
41780
41781         New script and module: gitlog-to-changelog
41782         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41783         * modules/gitlog-to-changelog: New file.
41784         * build-aux/gitlog-to-changelog: New file.
41785
41786 2008-02-08  Jim Meyering  <meyering@redhat.com>
41787
41788         Avoid two "parameter unused" warnings.
41789         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41790         Mark "st" as used.
41791
41792         Use "git COMMAND", not "git-COMMAND".
41793         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41794         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41795         * build-aux/git-version-gen: Use "git status", not "git-status".
41796
41797 2008-02-07  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41800         Avoids a crash on Windows Vista.
41801         Reported by Adam Strzelecki <ono@java.pl> via
41802         Simon Josefsson <simon@josefsson.org>.
41803
41804 2008-02-06  Bruno Haible  <bruno@clisp.org>
41805
41806         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41807         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41808         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41810         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41811         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41812         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41813         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41814         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41815         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41816         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41818         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41819         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41820         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41821         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41822         left-adjust flag.
41823         * tests/test-snprintf-posix.h (test_function): Likewise.
41824         * tests/test-sprintf-posix.h (test_function): Likewise.
41825         * tests/test-vasprintf-posix.c (test_function): Likewise.
41826         * doc/posix-functions/fprintf.texi: Update.
41827         * doc/posix-functions/printf.texi: Update.
41828         * doc/posix-functions/snprintf.texi: Update.
41829         * doc/posix-functions/sprintf.texi: Update.
41830         * doc/posix-functions/vfprintf.texi: Update.
41831         * doc/posix-functions/vprintf.texi: Update.
41832         * doc/posix-functions/vsnprintf.texi: Update.
41833         * doc/posix-functions/vsprintf.texi: Update.
41834         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41835
41836 2008-02-06  Bruno Haible  <bruno@clisp.org>
41837
41838         Fix bug introduced on 2008-01-26.
41839         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41840
41841 2008-02-06  Bruno Haible  <bruno@clisp.org>
41842
41843         Fix bug introduced on 2007-06-10.
41844         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41845         !NEED_PRINTF_FLAG_ZERO.
41846
41847 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41848
41849         getloadavg: use libperfstat on AIX5
41850         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41851
41852 2008-02-03  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/diffseq.h: Add comments about required #includes.
41855         Reported by Michael Biggs <gnulib@doubleplum.net>.
41856
41857 2008-02-01  Bruno Haible  <bruno@clisp.org>
41858
41859         * users.txt: Add gnuit.
41860
41861 2008-01-31  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/md4.c (set_uint32): Mark as inline.
41864         * lib/md5.c (set_uint32): Likewise.
41865         * lib/sha1.c (set_uint32): Likewise.
41866         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41867         * m4/md5.m4 (gl_MD5): Likewise.
41868         * m4/sha1.m4 (gl_SHA1): Likewise.
41869
41870 2008-01-31  Jim Meyering  <meyering@redhat.com>
41871
41872         Use "sizeof VAR", rather than a literal "4".
41873         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41874         * lib/md4.c (md4_read_ctx): Likewise.
41875         * lib/sha1.c (sha1_read_ctx): Likewise.
41876
41877 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41878
41879         * tests/test-sha1.c: New file, based on test-md5.c.
41880
41881         * modules/crypto/sha1-tests: New file.
41882
41883 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41884
41885         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41886
41887 2008-01-31  Jim Meyering  <meyering@redhat.com>
41888
41889         Prefer "sizeof v" over the equivalent "4".
41890         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41891         * lib/md5.c (set_uint32): Likewise.
41892         * lib/sha1.c (set_uint32): Likewise.
41893
41894 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41895
41896         * lib/sha1.c (set_uint32): Mark function as static.
41897
41898 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41899
41900         md2: clarify comments to say that alignment is not required.
41901         * lib/md2.h: Remove warning about alignment in comment.
41902         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41903         never been required.
41904
41905 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41906
41907         md4: adapt alignment constraint fix from sha1.
41908         * lib/md4.c (set_uint32): New function, from sha1.c
41909         (md4_read_ctx): Use it.
41910         (md4_finish_ctx): Doc fix.
41911         * lib/md4.h: Doc fix.
41912
41913 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41914
41915         md5: adapt alignment constraint fix from sha1.
41916         * lib/md5.c (set_uint32): New function, from sha1.c
41917         (md5_read_ctx): Use it.
41918         (md5_finish_ctx): Doc fix.
41919         * lib/md5.h: Doc fix.
41920
41921 2008-01-30  Peter Palfrader  <weasel@debian.org>
41922
41923         sha1: remove the result buffer alignment constraint
41924         * lib/sha1.c (set_uint32): New function.
41925         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41926         constraint.
41927         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41928         * lib/sha1.h: Likewise.
41929
41930 2008-01-30  Andreas Schwab  <schwab@suse.de>
41931             Bruno Haible  <bruno@clisp.org>
41932
41933         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41934         correct definition of LDBL_MIN_EXP.
41935
41936 2008-01-30  Karl Berry  <karl@gnu.org>
41937
41938         * config/srclist-update: try to preserve x bit on updates.
41939         * config/srclistvars.sh: update for karl.
41940
41941 2008-01-29  Jim Meyering  <meyering@redhat.com>
41942
41943         vasnprintf.c: Avoid warning about unused label
41944         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41945         "overflow" label definition and associated code with the
41946         same cpp condition that guards the sole use of that label.
41947
41948 2008-01-26  Bruno Haible  <bruno@clisp.org>
41949
41950         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41951         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41952         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41953         * lib/isnanl-nolibm.h (isnanl): Likewise.
41954         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41955
41956 2008-01-26  Bruno Haible  <bruno@clisp.org>
41957
41958         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41959         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41960
41961 2008-01-26  Bruno Haible  <bruno@clisp.org>
41962
41963         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41964         GCC >= 4.0 built-in.
41965         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41966
41967 2008-01-26  Bruno Haible  <bruno@clisp.org>
41968
41969         Rename isnan, applicable to 'double' only, to isnand.
41970         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41971         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41972         (configure.ac): Update.
41973         (Include): Replace "isnan.h" with "isnand.h".
41974         * m4/isnand.m4: Renamed from m4/isnan.m4.
41975         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41976         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41977         instead of isnan.c.
41978         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41979         instead of HAVE_ISNAN_IN_LIBC.
41980         (isnand): Renamed from isnan.
41981         * lib/isnand.c: New file.
41982         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41983         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41984         (Makefile.am): Update.
41985         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41986         Include isnand.h instead of isnan.h.
41987         (main): Test isnand instead of isnan.
41988         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41989         isnan-nolibm.
41990         * modules/frexp (Depends-on): Likewise.
41991         * modules/frexp-tests (Depends-on): Likewise.
41992         * modules/frexp-nolibm (Depends-on): Likewise.
41993         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41994         * modules/isfinite (Depends-on): Likewise.
41995         * modules/round-tests (Depends-on): Likewise.
41996         * modules/signbit (Depends-on): Likewise.
41997         * modules/signbit-tests (Depends-on): Likewise.
41998         * modules/snprintf-posix (Depends-on): Likewise.
41999         * modules/sprintf-posix (Depends-on): Likewise.
42000         * modules/trunc-tests (Depends-on): Likewise.
42001         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
42002         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42003         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42004         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42005         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42006         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42007         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42008         * modules/vasnprintf-posix (Depends-on): Likewise.
42009         * modules/vasprintf-posix (Depends-on): Likewise.
42010         * modules/vfprintf-posix (Depends-on): Likewise.
42011         * modules/vsnprintf-posix (Depends-on): Likewise.
42012         * modules/vsprintf-posix (Depends-on): Likewise.
42013         * lib/frexp.c: Include isnand.h instead of isnan.h.
42014         (ISNAN): Set to isnand instead of isnan.
42015         * lib/isfinite.c: Include isnand.h instead of isnan.h.
42016         (gl_isfinited): Use isnand instead of isnan.
42017         * lib/signbitd.c: Include isnand.h instead of isnan.h.
42018         (gl_signbitd): Use isnand instead of isnan.
42019         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
42020         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
42021         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
42022         (main): Use isnand instead of isnan.
42023         * tests/test-round1.c: Include isnand.h.
42024         (main): Use isnand instead of isnan.
42025         * tests/test-round2.c: Include isnand.h instead of isnan.h.
42026         (ISNAN): Set to isnand instead of isnan.
42027         * tests/test-trunc1.c: Include isnand.h.
42028         (main): Use isnand instead of isnan.
42029         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
42030         (equal): Use isnand instead of isnan.
42031         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
42032         isnand-nolibm.
42033         * NEWS: Mention the change.
42034
42035 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42036             Bruno Haible  <bruno@clisp.org>
42037
42038         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
42039         the GCC builtins for signbits are present and set
42040         REPLACE_SIGNBIT_USING_GCC if so.
42041         * lib/math.in.h (signbit): Define using GCC builtins if
42042         REPLACE_SIGNBIT_USING_GCC is set.
42043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
42044         REPLACE_SIGNBIT_USING_GCC.
42045         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
42046
42047 2008-01-25  Jim Meyering  <meyering@redhat.com>
42048
42049         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
42050         * lib/poll.c: Include <config.h>, not "config.h".
42051         * tests/test-getaddrinfo.c: Likewise.
42052
42053 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42054
42055         * modules/sockets-tests: New file.
42056
42057 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42058
42059         * modules/sockets: New module, can be used to call WSA_Startup and
42060         WSA_Cleanup when needed.
42061
42062         * lib/sockets.h, lib/sockets.c: New files.
42063
42064         * m4/sockets.m4: New file.
42065
42066         * tests/test-sockets.c: New file.
42067
42068 2008-01-19  Bruno Haible  <bruno@clisp.org>
42069
42070         * doc/posix-headers: Renamed from doc/headers.
42071         * doc/posix-functions: Renamed from doc/functions.
42072         * doc/gnulib.texi: Update.
42073
42074 2008-01-19  Bruno Haible  <bruno@clisp.org>
42075
42076         * doc/glibc-functions/strcasestr.texi: Include contents of
42077         doc/functions/strcasestr.texi, fixing the list of platforms.
42078         * doc/functions/strcasestr.texi: Remove file.
42079
42080 2008-01-19  Bruno Haible  <bruno@clisp.org>
42081
42082         * doc/glibc-functions/memmem.texi: Include contents of
42083         doc/functions/memmem.texi.
42084         * doc/functions/memmem.texi: Remove file.
42085
42086 2008-01-18  Bruno Haible  <bruno@clisp.org>
42087
42088         * doc/glibc-functions/*.texi: New files.
42089         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42090         to use the new files.
42091
42092 2008-01-17  Bruno Haible  <bruno@clisp.org>
42093
42094         * tests/test-gethostname.c (main): Fix printf statement.
42095
42096 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42097
42098         * modules/gethostname-tests: New file.
42099
42100         * tests/test-gethostname.c: New file.
42101
42102 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42103
42104         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42105         used by the UNAME case.  Reported by Bruno Haible
42106         <bruno@clisp.org>.
42107
42108 2008-01-17  Eric Blake  <ebb9@byu.net>
42109
42110         Convert c-strcasestr to be more efficient.
42111         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42112         (Depends-on): Add c-strcase, remove malloca, strnlen.
42113         * tests/test-c-strcasestr.c (main): Enhance test.
42114         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42115
42116 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42117
42118         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42119         Use it in creating po/Makevars.
42120
42121 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42122
42123         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42124         Applications that requires it should initialize libgcrypt
42125         manually.
42126
42127 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42128
42129         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42130
42131 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42132
42133         Fix problem with getdate on mingw32 reported by Simon Josefsson
42134         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42135         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42136         tzname", when deciding whether to declare tzname.
42137         * lib/strftime.c (tzname): Likewise.
42138
42139 2008-01-15  Bruno Haible  <bruno@clisp.org>
42140
42141         Work around a MacOS X 10.5 bug in frexpl().
42142         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42143         * doc/functions/frexpl.texi: Document the bug.
42144         Reported by Elias Pipping <pipping@gentoo.org>.
42145
42146 2008-01-14  Eric Blake  <ebb9@byu.net>
42147
42148         Touch up previous patch.
42149         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42150         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42151
42152         Convert strcasestr module to use Two-Way algorithm.
42153         * modules/strcasestr-simple: New module, based on the old
42154         strcasestr, but with Two-Way rather than KMP.
42155         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42156         * lib/string.in.h (rpl_strcasestr): Declare.
42157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42158         performance.
42159         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42160         * modules/string (Makefile.am): Support strcasestr.
42161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42162         * modules/strcasestr-tests (Depends-on): Check for alarm.
42163         * tests/test-strcasestr.c: Augment test.
42164         * lib/str-two-way.h: Clean up stray macro.
42165         * NEWS: Document new module.
42166         * MODULES.html.sh (string handling): Likewise.
42167         * doc/functions/strcasestr.texi: New file.
42168         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42169         here, since it is not a POSIX function.
42170
42171 2008-01-14  Colin Watson  <cjwatson@debian.org>
42172             Bruno Haible  <bruno@clisp.org>
42173
42174         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42175         works fine; if not, set REPLACE_STRSIGNAL.
42176         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42178         REPLACE_STRSIGNAL.
42179         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42180         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42181         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42182
42183 2008-01-14  Bruno Haible  <bruno@clisp.org>
42184
42185         * modules/strsignal (Include): Change to <string.h>.
42186
42187 2008-01-14  Colin Watson  <cjwatson@debian.org>
42188
42189         * modules/argp (Notice): Add a notice recommending to change
42190         XGETTEXT_OPTIONS.
42191         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42192
42193 2008-01-13  Colin Watson  <cjwatson@debian.org>
42194
42195         * modules/strsignal-tests: New file.
42196         * tests/test-strsignal.c: New file.
42197
42198         * lib/strsignal.c: New file, from glibc with modifications.
42199         * lib/siglist.h: New file, from glibc with modifications.
42200         * lib/string.in.h (strsignal): New declaration.
42201         * m4/strsignal.m4: New file.
42202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42203         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42204         * modules/strsignal: New file.
42205         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42206         HAVE_DECL_STRSIGNAL.
42207
42208 2008-01-13  Bruno Haible  <bruno@clisp.org>
42209
42210         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42211         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42212         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42213         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42214
42215 2008-01-13  Bruno Haible  <bruno@clisp.org>
42216
42217         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42218         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42219         * lib/argp.h (__attribute__): Likewise.
42220         * lib/c-stack.c (__attribute__): Likewise.
42221         * lib/error.h (__attribute__): Likewise.
42222         * lib/fts.c (__attribute__): Likewise.
42223         * lib/openat.h (__attribute__): Likewise.
42224         * lib/stdio.in.h (__attribute__): Likewise.
42225         * lib/string.in.h (__attribute__): Likewise.
42226         * lib/utimens.c (__attribute__): Likewise.
42227         * lib/vasnprintf.h (__attribute__): Likewise.
42228         * lib/xalloc.h (__attribute__): Likewise.
42229         * lib/xprintf.h (__attribute__): Likewise.
42230         * lib/xstrtol.h (__attribute__): Likewise.
42231         * lib/xvasprintf.h (__attribute__): Likewise.
42232
42233 2008-01-12  Bruno Haible  <bruno@clisp.org>
42234
42235         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42236         * doc/glibc-headers/a.out.texi: New file.
42237         * doc/glibc-headers/aliases.texi: New file.
42238         * doc/glibc-headers/alloca.texi: New file.
42239         * doc/glibc-headers/ar.texi: New file.
42240         * doc/glibc-headers/argp.texi: New file.
42241         * doc/glibc-headers/argz.texi: New file.
42242         * doc/glibc-headers/byteswap.texi: New file.
42243         * doc/glibc-headers/crypt.texi: New file.
42244         * doc/glibc-headers/endian.texi: New file.
42245         * doc/glibc-headers/envz.texi: New file.
42246         * doc/glibc-headers/err.texi: New file.
42247         * doc/glibc-headers/error.texi: New file.
42248         * doc/glibc-headers/execinfo.texi: New file.
42249         * doc/glibc-headers/fpu_control.texi: New file.
42250         * doc/glibc-headers/fstab.texi: New file.
42251         * doc/glibc-headers/fts.texi: New file.
42252         * doc/glibc-headers/getopt.texi: New file.
42253         * doc/glibc-headers/ieee754.texi: New file.
42254         * doc/glibc-headers/ifaddrs.texi: New file.
42255         * doc/glibc-headers/libintl.texi: New file.
42256         * doc/glibc-headers/mcheck.texi: New file.
42257         * doc/glibc-headers/mntent.texi: New file.
42258         * doc/glibc-headers/obstack.texi: New file.
42259         * doc/glibc-headers/paths.texi: New file.
42260         * doc/glibc-headers/printf.texi: New file.
42261         * doc/glibc-headers/pty.texi: New file.
42262         * doc/glibc-headers/resolv.texi: New file.
42263         * doc/glibc-headers/shadow.texi: New file.
42264         * doc/glibc-headers/sysexits.texi: New file.
42265         * doc/glibc-headers/ttyent.texi: New file.
42266
42267 2008-01-12  Jim Meyering  <meyering@redhat.com>
42268
42269         announce-gen: emit Gnulib's git-based version string.
42270         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42271         New option --gnulib-version=V, where V is expected to be
42272         the output of running git describe in the gnulib directory.
42273         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42274         not useful, and plan to stop publishing an xdelta file with each
42275         coreutils release.
42276
42277         * build-aux/announce-gen: Also check for lzma-compressed files.
42278
42279 2008-01-11  Bruno Haible  <bruno@clisp.org>
42280
42281         * tests/test-memmem.c (main): Increase maximum allowed time.
42282         * tests/test-strstr.c (main): Likewise.
42283
42284 2008-01-11  Bruno Haible  <bruno@clisp.org>
42285
42286         * doc/functions/memmem.texi: Add more precisions about platforms.
42287         * doc/functions/strstr.texi: Likewise.
42288
42289 2008-01-10  Eric Blake  <ebb9@byu.net>
42290
42291         * m4/strstr.m4: Delete cruft from copy-n-paste.
42292         Reported by Bruno Haible.
42293
42294 2008-01-10  Bruno Haible  <bruno@clisp.org>
42295
42296         Make c-strstr rely on strstr.
42297         * lib/c-strstr.c: Don't include str-kmp.h.
42298         (c_strstr): Define in terms of strstr.
42299         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42300         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42301
42302 2008-01-10  Bruno Haible  <bruno@clisp.org>
42303
42304         * doc/gnulib.texi (String Functions in C Locale): New section.
42305         * doc/c-ctype.texi: New file.
42306         * doc/c-strcase.texi: New file.
42307         * doc/c-strcaseeq.texi: New file.
42308         * doc/c-strcasestr.texi: New file.
42309         * doc/c-strstr.texi: New file.
42310         * doc/c-strtod.texi: New file.
42311         * doc/c-strtold.texi: New file.
42312
42313 2008-01-10  Eric Blake  <ebb9@byu.net>
42314
42315         * lib/relocatable.h: Fix a comment.
42316
42317 2008-01-10  Eric Blake  <ebb9@byu.net>
42318
42319         Share two-way algorithm.
42320         * lib/str-two-way.h: New file, merged from...
42321         * lib/memmem.c: ...here...
42322         * lib/strstr.c: ...and here.
42323         * modules/memmem (Files): Use it.
42324         * modules/strstr (Files): Likewise.
42325
42326         Avoid quadratic strstr implementations.
42327         * lib/strstr.c: New file.
42328         * m4/strstr.m4: Likewise.
42329         * modules/strstr: Likewise.
42330         * modules/strstr-tests: Likewise.
42331         * tests/test-strstr.c: Likewise.
42332         * lib/string.in.h (rpl_strstr): Declare.
42333         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42334         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42335         * modules/string (Makefile.am): Likewise.
42336         * MODULES.html.sh (string handling): Mention new module.
42337         * doc/functions/strstr.texi (strstr): Document the bug.
42338
42339 2008-01-10  Bruno Haible  <bruno@clisp.org>
42340
42341         * lib/relocatable.h (relocate): State whether result is freshly
42342         allocated or not.
42343         * lib/relocatable.c (relocate): Return a freshly allocated string
42344         instead of a pointer to a privately held string.
42345         Reported by Sylvain Beucler <beuc@gnu.org>.
42346
42347 2008-01-10  Colin Watson  <cjwatson@debian.org>
42348
42349         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42350         s/S_ISNLK/S_ISLNK/.
42351
42352 2008-01-09  Bruno Haible  <bruno@clisp.org>
42353
42354         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42355         and other files.
42356         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42357         if it's only a guess.
42358         * modules/memmem: Simplify by depending on memmem-simple.
42359
42360 2008-01-09  Bruno Haible  <bruno@clisp.org>
42361
42362         Work around OpenBSD 4.0 tdelete() bug.
42363         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42364         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42365         macros and don't redefine the enum values.
42366         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42367         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42368         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42369
42370 2008-01-09  Bruno Haible  <bruno@clisp.org>
42371
42372         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42373         (main): Don't perform the tests if setlocale did not install a UTF-8
42374         locale. Needed on OpenBSD 4.0.
42375         * modules/wcwidth-tests (Depends-on): Add localcharset.
42376
42377 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42378
42379         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42380         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42381         * NEWS: announce this.
42382         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42383
42384 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42385         and Eric Blake  <ebb9@byu.net>
42386
42387         Add memmem-simple module.
42388         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42389         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42390         * modules/memmem-simple: New file.
42391         * modules/memmem (Description): Tweak.
42392         * MODULES.html.sh (string handling): Mention new module.
42393         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42394         addressed by memmem-simple.
42395         * NEWS: Document the difference.
42396
42397 2008-01-09  Eric Blake  <ebb9@byu.net>
42398
42399         Give gcc some memmem optimization hints.
42400         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42401         (strcasestr): Declare as pure.
42402         * modules/memmem (Maintainer): Claim my implementation.
42403
42404 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42405
42406         Support AIX 6.1 and higher.
42407         * build-aux/config.libpath: Likewise.
42408         * build-aux/config.rpath: Likewise.
42409
42410 2008-01-08  Jim Meyering  <meyering@redhat.com>
42411             Bruno Haible  <bruno@clisp.org>
42412
42413         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42414         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42415         Reported by Peter Fales in
42416         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42417
42418 2008-01-08  Bruno Haible  <bruno@clisp.org>
42419
42420         * modules/unictype/category-of (Depends-on): Add
42421         unictype/category-none.
42422         * modules/unictype/category-and-tests (Depends-on): Add
42423         unictype/category-{L,N,Lu,Nd}.
42424         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42425         * modules/unictype/category-or-tests (Depends-on): Add
42426         unictype/category-{L,N}.
42427         * modules/unictype/category-name-tests (Depends-on): Add
42428         unictype/category-{Z,Nl}.
42429         Reported by Simon Josefsson.
42430
42431 2008-01-08  Bruno Haible  <bruno@clisp.org>
42432
42433         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42434         convention better.
42435         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42436         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42437         Reported by Peter Miller <millerp@canb.auug.org.au>.
42438
42439 2008-01-08  Eric Blake  <ebb9@byu.net>
42440
42441         Rewrite memmem to guarantee linear complexity without malloc.
42442         * lib/memmem.c (memmem): Use Two-Way rather than
42443         Knuth-Morris-Pratt, to allow O(1) space usage.
42444         (critical_factorization, two_way_short_needle)
42445         (two_way_long_needle): New functions.
42446         (knuth_morris_pratt): Delete.
42447         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42448         Add stdint.
42449         * tests/test-memmem.c (main): Add tests for periodic needle and
42450         sublinear performance.
42451         * doc/functions/memmem.texi (memmem): Document other deficiencies
42452         in cygwin and older glibc.
42453
42454 2008-01-08  Bruno Haible  <bruno@clisp.org>
42455
42456         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42457         augmentation.
42458
42459 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42460
42461         Add a configure time option: --disable-acl.
42462         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42463         AC_ARG_ENABLE(acl).
42464
42465 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42466
42467         * tests/test-localename.c: Don't include obsolete "setenv.h".
42468
42469         * modules/localename-tests (Depends-on): Need unsetenv.
42470
42471 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42472
42473         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42474
42475 2008-01-06  Colin Watson  <cjwatson@debian.org>
42476
42477         * users.txt: Add man-db.
42478
42479 2008-01-07  Bruno Haible  <bruno@clisp.org>
42480
42481         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42482         previous section name.
42483
42484 2008-01-07  Bruno Haible  <bruno@clisp.org>
42485
42486         * lib/progname.c (set_program_name): Don't strip off a leading
42487         "lt-" prefix outside a .libs directory.
42488         Suggested by Paul Eggert.
42489
42490 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42491             Bruno Haible  <bruno@clisp.org>
42492
42493         Improve memory cleanup in 'relocatable' module.
42494         * lib/relocatable.h (compute_curr_prefix): Change return type to
42495         'char *'.
42496         * lib/relocatable.c (compute_curr_prefix): Change return type to
42497         'char *'. Free curr_installdir after use.
42498         (relocate): Free curr_prefix_better after use.
42499         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42500
42501 2008-01-01  Bruno Haible  <bruno@clisp.org>
42502
42503         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42504         failure on older glibc systems.
42505         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42506
42507 2008-01-05  Eric Blake  <ebb9@byu.net>
42508
42509         Avoid quadratic system memmem.
42510         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42511         Reported by Ralf Wildenhues.
42512
42513         Fix memmem test for mingw.
42514         * modules/memmem-tests (configure.ac): Check for alarm.
42515         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42516         it.
42517         * doc/functions/memmem.texi: New file.
42518         * doc/gnulib.texi (Function Substitutes): Add memmem.
42519         Reported by Bruno Haible.
42520
42521 2008-01-04  Bruno Haible  <bruno@clisp.org>
42522
42523         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42524         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42525         gl_HEADER_STRING_H_DEFAULTS.
42526
42527 2008-01-04  Eric Blake  <ebb9@byu.net>
42528
42529         Shorten duration of memmem test.
42530         * tests/test-memmem.c (main): Use alarm to declare failure if test
42531         is taking too long.
42532         Reported by Ralf Wildenhues.
42533
42534 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42535
42536         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42537         string, needed by strerror.
42538
42539 2008-01-03  Colin Watson  <cjwatson@debian.org>
42540             Bruno Haible  <bruno@clisp.org>
42541
42542         * doc/gnulib-tool.texi (Localization): New section.
42543
42544 2008-01-02  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42547         variables to 'unsigned char *' type.
42548         Reported by Paul Eggert.
42549
42550 2008-01-02  Jim Meyering  <jim@meyering.net>
42551
42552         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42553
42554 2007-12-31  Jim Meyering  <jim@meyering.net>
42555
42556         Avoid use of private FTS type name.
42557         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42558
42559 2007-12-30  Karl Berry  <karl@gnu.org>
42560
42561         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42562         work around defect in Texinfo and/or the standalone Info browser.
42563
42564 2007-12-30  Bruno Haible  <bruno@clisp.org>
42565
42566         Unify 5 copies of the KMP code.
42567         * lib/str-kmp.h: New file.
42568         * lib/c-strcasestr.c: Include str-kmp.h.
42569         (knuth_morris_pratt): Remove function.
42570         (c_strcasestr): Update.
42571         * lib/c-strstr.c: Include str-kmp.h.
42572         (knuth_morris_pratt): Remove function.
42573         (c_strcasestr): Update.
42574         * lib/mbscasestr.c: Include str-kmp.h.
42575         (knuth_morris_pratt_unibyte): Remove function.
42576         * lib/mbsstr.c: Include str-kmp.h.
42577         (knuth_morris_pratt_unibyte): Remove function.
42578         * lib/strcasestr.c: Include str-kmp.h.
42579         (knuth_morris_pratt): Remove function.
42580         (strcasestr): Update.
42581         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42582         * modules/c-strstr (Files): Likewise.
42583         * modules/mbscasestr (Files): Likewise.
42584         * modules/mbsstr (Files): Likewise.
42585         * modules/strcasestr (Files): Likewise.
42586         Suggested by Paul Eggert.
42587
42588 2007-12-30  Bruno Haible  <bruno@clisp.org>
42589
42590         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42591         defined.
42592
42593 2007-12-30  Bruno Haible  <bruno@clisp.org>
42594
42595         * lib/xmalloca.h: Include xalloc.h.
42596         (xnmalloca): New macro.
42597
42598 2007-12-30  Bruno Haible  <bruno@clisp.org>
42599
42600         * lib/malloca.h (nmalloca): New macro.
42601         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42602         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42603         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42604         knuth_morris_pratt_multibyte): Likewise.
42605         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42606         knuth_morris_pratt_multibyte): Likewise.
42607         * lib/memmem.c (knuth_morris_pratt): Likewise.
42608         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42609
42610 2007-12-25  Bruno Haible  <bruno@clisp.org>
42611
42612         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42613         * lib/glob.c: Don't include openat.h.
42614         (link_exists2_p): Add back the code that deals with the
42615         !GLOB_ALTDIRFUNC case.
42616         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42617         let it do the filename concatenation.
42618         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42619         * modules/glob (Depends-on): Remove openat.
42620
42621 2007-12-31  Bruno Haible  <bruno@clisp.org>
42622
42623         * modules/dirfd (License): Change to LGPLv2+.
42624         Approved by Jim Meyering.
42625
42626 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42627
42628         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42629         when multiplying M by sizeof (size_t).
42630
42631 2007-12-10  Martin Lambers  <marlam@marlam.de>
42632
42633         Override getpagesize on mingw.
42634         * lib/getpagesize.c: New file.
42635         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42636         * modules/getpagesize (Files): Add lib/getpagesize.c.
42637         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42639         REPLACE_GETPAGESIZE.
42640         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42641
42642 2007-12-25  Bruno Haible  <bruno@clisp.org>
42643
42644         * modules/localcharset (Notice): New field.
42645         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42646         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42647
42648 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42649             Bruno Haible  <bruno@clisp.org>
42650
42651         Avoid using the syntax symbol() in formatted documentation.
42652         * MODULES.html.sh (func_module): When replacing symbol() with a
42653         hyperlink, remove the parentheses. Show an error if some remain.
42654         Recognize and render the '...' syntax.
42655         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42656         Rework. Add paragraph about GCC's inlining.
42657         * doc/alloca.texi: Likewise.
42658         * doc/error.texi: Remove parentheses from symbol reference.
42659         * doc/gnulib-intro.texi: Likewise.
42660         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42661         * modules/fnmatch (Description): Reword to say "the ... function".
42662         * modules/full-read (Description): Likewise.
42663         * modules/full-write (Description): Likewise.
42664         * modules/safe-read (Description): Likewise.
42665         * modules/safe-write (Description): Likewise.
42666         * modules/strchrnul (Description): Likewise.
42667         * modules/trim (Description): Likewise.
42668         * modules/error (Description): Remove parentheses from symbol
42669         references.
42670         * modules/verror (Description): Likewise.
42671         Reported by Karl Berry.
42672
42673 2007-12-25  Bruno Haible  <bruno@clisp.org>
42674
42675         Fixup after 2007-10-16 commit.
42676         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42677
42678 2007-12-24  Bruno Haible  <bruno@clisp.org>
42679
42680         Make --enable-relocatable work with DESTDIR.
42681         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42682         to compute installdir from destprog.
42683         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42684         also set the RELOC_DESTDIR variable.
42685         Reported by Левашев Иван <octagram@bluebottle.com>.
42686
42687 2007-12-24  Bruno Haible  <bruno@clisp.org>
42688
42689         Fix link error due to xalloc_die().
42690         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42691         of xreadlink.
42692         * lib/relocwrapper.c: Update comments.
42693         * build-aux/install-reloc: Remove xreadlink.c from file list.
42694         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42695         xreadlink.c.
42696         Reported by Левашев Иван <octagram@bluebottle.com>.
42697
42698 2007-12-24  Bruno Haible  <bruno@clisp.org>
42699
42700         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42701         * lib/setenv.h: Remove file.
42702         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42703         lib/setenv.h.
42704         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42705         (Depends-on): Add stdlib.
42706         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42707         gl_FUNC_UNSETENV.
42708         (Include): Replace setenv.h with <stdlib.h>.
42709         * modules/unsetenv: New file.
42710         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42711         * lib/unsetenv.c: Include <stdlib.h> first.
42712         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42713         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42714         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42715         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42716         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42717         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42719         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42720         * doc/functions/unsetenv.texi: Update.
42721         * modules/xsetenv (Depends-on): Add unsetenv.
42722         * modules/getdate (Depends-on): Likewise.
42723         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42724         * lib/xsetenv.c: Don't include setenv.h.
42725         * lib/getdate.y: Likewise.
42726         * lib/relocwrapper.c: Likewise.
42727         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42728         (Depends-on): Add stdlib.
42729         * NEWS: Mention the changes.
42730         Reported by Левашев Иван <octagram@bluebottle.com>.
42731
42732 2007-12-23  Bruno Haible  <bruno@clisp.org>
42733
42734         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42735         indentation.
42736
42737 2007-12-23  Bruno Haible  <bruno@clisp.org>
42738
42739         * lib/c-strcasestr.c: Add more comments.
42740         * lib/c-strstr.c: Likewise.
42741         * lib/mbscasestr.c: Likewise.
42742         * lib/mbsstr.c: Likewise.
42743         * lib/strcasestr.c: Likewise.
42744         * lib/memmem.c: Likewise.
42745
42746 2007-12-23  Bruno Haible  <bruno@clisp.org>
42747
42748         * tests/test-memmem.c: Include <string.h> first.
42749
42750 2007-12-22  Bruno Haible  <bruno@clisp.org>
42751
42752         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42753         the contents of $testsbase.
42754         Reported by Ralf Wildenhues.
42755
42756 2007-12-22  Bruno Haible  <bruno@clisp.org>
42757
42758         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42759         two variables local_ldadd_before, local_ldadd_last.
42760
42761 2007-12-20  Eric Blake  <ebb9@byu.net>
42762
42763         Work around circular library issue when cross-compiling.
42764         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42765         that progname.o does not need to pull in rpl_memcmp.
42766
42767 2007-12-19  Eric Blake  <ebb9@byu.net>
42768
42769         Fix memmem to avoid O(n^2) worst-case complexity.
42770         * lib/memmem.c (knuth_morris_pratt): New function.
42771         (memmem): Use it if first few naive iterations fail.
42772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42773         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42774         * modules/memchr (License): Likewise.
42775         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42776         malloca.
42777         * tests/test-memmem.c: Rewrite, borrowing ideas from
42778         test-mbsstr1.c; the old version wouldn't even compile!
42779         * modules/memmem-tests: New file.
42780         * lib/string.in.h (rpl_memmem): Add declaration.
42781         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42783         REPLACE_MEMMEM.
42784
42785 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42786
42787         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42788         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42789         before any system include files, and undef after them all.  This
42790         should fix a problem on VMS reported by John E. Malmberg in
42791         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42792
42793 2007-12-17  Eric Blake  <ebb9@byu.net>
42794
42795         Revert addition of verify, for BSD/OS.
42796         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42797         can't handle large files, for the sake of obsolete platforms.
42798         * modules/fseeko (Depends-on): Remove verify.
42799         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42800         * doc/functions/ftello.texi (ftello): Likewise.
42801         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42802         Reported by Larry Jones.
42803
42804 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42805
42806         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42807         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42808
42809 2007-12-17  Jim Meyering  <meyering@redhat.com>
42810
42811         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42812         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42813         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42814         * modules/getcwd (Depends-on): Add openat.
42815         Reported by Petr Salinger.
42816
42817 2007-12-17  Bruno Haible  <bruno@clisp.org>
42818
42819         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42820         avoid a segmentation fault of the configure test on x86_64 systems.
42821
42822 2007-12-15  Jim Meyering  <meyering@redhat.com>
42823
42824         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42825
42826 2007-12-13  Eric Blake  <ebb9@byu.net>
42827
42828         Another fseek test.
42829         * tests/test-fseek.c (main): Also test ungetc handling.
42830         * tests/test-fseeko.c (main): Likewise.
42831         * modules/fseeko (Depends-on): Add verify.
42832         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42833         large.
42834         Reported by Larry Jones.
42835
42836         Fix fseeko on mingw.
42837         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42838         seek.
42839
42840         Beef up fseek tests.
42841         * tests/test-fseek.c (main): Also test eof handling.
42842         * tests/test-fseeko.c (main): Likewise.
42843         Reported by Larry Jones.
42844
42845 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42846
42847         Fix fseeko on BSD-based platforms.
42848         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42849         successful seek.
42850
42851 2007-12-12  Eric Blake  <ebb9@byu.net>
42852
42853         Allow circular dependency of separate libtests.a
42854         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42855         when use_libtests.
42856
42857 2007-12-11  Eric Blake  <ebb9@byu.net>
42858
42859         Fix bug with -0.0L in previous patch.
42860         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42861         * tests/test-isnan.c (main): Also test on zeroes.
42862         * tests/test-isnanf.c (main): Likewise.
42863         * tests/test-isnanl.h (main): Likewise.
42864
42865         Detect pseudo-denormals on x86 even when cross-compiling.
42866         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42867         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42868         invalid bit patterns that happen to satisfy ==.
42869
42870         Avoid link failures with separate libtests.a.
42871         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42872         last, to satisfy circular dependencies.
42873
42874 2007-12-11  Eric Blake  <ebb9@byu.net>
42875         and Bruno Haible  <bruno@clisp.org>
42876
42877         Fix OpenBSD 4.0 <float.h> handling of long double.
42878         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42879         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42880         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42881
42882 2007-12-11  Jim Meyering  <meyering@redhat.com>
42883
42884         * users.txt: Add libvirt.
42885
42886         Support versions of autoconf prior to 2.59c.
42887         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42888         if it is not already defined.
42889
42890 2007-12-09  Bruno Haible  <bruno@clisp.org>
42891
42892         Let 'gnulib-tool --import' collect sources needed for the tests in
42893         tests/ rather than in lib/.
42894         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42895         argument. If true, add rules to generate libtests.a, and put libtests.a
42896         into $(LDADD). Consider source files in subdirectories and set
42897         uses_subdirs.
42898         (func_emit_initmacro_start, func_emit_initmacro_end,
42899         func_emit_initmacro_done): Pass all arguments explicitly.
42900         (func_import): Determine two module lists main_modules,
42901         testsrelated_modules. Determine use_libtests. Determine two variables
42902         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42903         instead of just sed_transform_lib_file. Determine two variables
42904         main_files and testsrelated_files. Compute 'files' as the union of
42905         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42906         func_add_or_update. In the generated gnulib-comp.m4, collect the
42907         object files for tests/ in different variables than those for lib/.
42908         Substitute LIBTESTS_LIBDEPS.
42909         (func_create_testdir): Combine the uses_subdirs results from
42910         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42911
42912 2007-12-09  Bruno Haible  <bruno@clisp.org>
42913
42914         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42915         the build-aux directory.
42916
42917 2007-12-09  Bruno Haible  <bruno@clisp.org>
42918
42919         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42920         introduced on 2006-09-09.
42921
42922 2007-12-07  Jim Meyering  <meyering@redhat.com>
42923
42924         Let these macros work also with autoconf-2.59.
42925         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42926         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42927         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42928
42929 2007-12-06  Jim Meyering  <meyering@redhat.com>
42930
42931         Avoid a configure-time syntax error in gl_FUNC_ACL.
42932         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42933         function in each branch, before testing the cache variable.
42934
42935 2007-12-04  Eric Blake  <ebb9@byu.net>
42936
42937         Make scripts executable.
42938         * build-aux/config.guess: Add execute permissions.
42939         * build-aux/config.sub: Likewise.
42940         * build-aux/gendocs.sh: Likewise.
42941
42942         Fix frexp on mingw.
42943         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42944         cross-compiling.
42945         * doc/functions/frexp.texi (frexp): Document the bug.
42946
42947         Make cygwin fseeko check more reliable.
42948         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42949         version numbers, rather than unrelated feature check.
42950         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42951         * doc/functions/ftello.texi (ftello): Likewise.
42952         Reported by Bruno Haible.
42953
42954         * m4/strerror.m4: Bump version number.
42955
42956 2007-12-03  Bruno Haible  <bruno@clisp.org>
42957
42958         * doc/functions/mprotect.texi: Mention the mingw problem.
42959
42960 2007-12-03  Eric Blake  <ebb9@byu.net>
42961
42962         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42963         REPLACE_STRERROR is initialized before this macro.
42964
42965 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42966
42967         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42968         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42969         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42970         put -lsec in even for programs other than 'ls'.  This fixes a problem
42971         for gettext reported by Bruno Haible in
42972         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42973         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42974         Add support for Solaris 10.  This isn't efficient, but should get the
42975         job done for now.
42976
42977 2007-12-03  James Youngman  <jay@gnu.org>
42978
42979         * doc/regexprops-generic.texi: change "an close-group" to "a
42980         close-group" and "illegal" to "not allowed".
42981
42982 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42983
42984         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42985         pr_byname.h. Needed for the rare case when the maintainer has done
42986         "make maintainer-clean" in the source directory and then attempts a
42987         build outside the source directory.
42988         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42989         scripts_byname.h.
42990
42991 2007-12-02  Martin Lambers <marlam@marlam.de>
42992             Bruno Haible  <bruno@clisp.org>
42993
42994         * lib/getpagesize.h: Remove file.
42995         * lib/unistd.in.h: Include declaration of getpagesize here.
42996         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42997         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42998         HAVE_SYS_PARAM_H.
42999         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
43000         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43001         * modules/getpagesize (Files): Remove lib/getpagesize.h.
43002         (Depends-on): Add unistd.
43003         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43004         (Include): Use <unistd.h> instead of getpagesize.h.
43005         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
43006         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
43007         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
43008         gl_GETPAGESIZE invocation, already handled by module dependency.
43009         * lib/pagealign_alloc.c: Don't include getpagesize.h.
43010
43011 2007-12-02  Bruno Haible  <bruno@clisp.org>
43012
43013         * modules/strings-tests: New file.
43014         * tests/test-strings.c: New file.
43015
43016         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
43017         * lib/strings.in.h: New file.
43018         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
43019         * m4/strings_h.m4: New file.
43020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
43021         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
43022         * modules/strings: New file.
43023         * modules/string (Makefile.am): Update.
43024         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
43025         Reported by Karl Berry.
43026
43027 2007-12-01  Eric Blake  <ebb9@byu.net>
43028
43029         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
43030         accomodate fix in cygwin 1.5.25.
43031
43032 2007-12-01  Jim Meyering  <meyering@redhat.com>
43033
43034         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
43035         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
43036         that would inhibit utf8-optimization of a regexp containing line-
43037         or buffer-anchors, e.g., `^', `$'.
43038
43039 2007-11-30  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
43042         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
43043         glthread_recursive_lock_init.
43044         * lib/lock.c (glthread_recursive_lock_init)
43045         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
43046         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43047
43048 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
43049
43050         New function qset_acl, like set_acl but with syscall semantics.
43051         * lib/acl.h (qset_acl): New decl.
43052         * lib/acl.c (qset_acl): New function.
43053         (set_acl): Use new function.  Use more-consistent diagnostics.
43054
43055 2007-11-28  Jim Meyering  <meyering@redhat.com>
43056
43057         * modules/physmem (License): Change from GPL to LGPLv2+.
43058
43059 2007-11-26  Bruno Haible  <bruno@clisp.org>
43060
43061         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43062         'long double' type has excess precision.
43063         Reported by Jim Meyering in
43064         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43065
43066 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43067
43068         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43069         Sync from <http://gnu.org/licenses>.
43070         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43071         with license text from same location.
43072         * doc/maintain.texi, doc/standards.texi:  Sync from
43073         <http://savannah.gnu.org/projects/gnustandards>.
43074
43075 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
43076         and Jim Meyering  <meyering@redhat.com>
43077
43078         Adjust getdate' grammar to accept a slightly more regular language.
43079         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43080         Before, the former was rejected.
43081         * lib/getdate.y (digits_to_date_time): New function, factored
43082         out of ...
43083         (number): ...here.  Just call digits_to_date_time.
43084         (hybrid): New non-terminal to handle an <unsigned number,
43085         signed relative offset> sequence consistently.
43086
43087 2007-11-18  Jim Meyering  <meyering@redhat.com>
43088
43089         Pull my changes from coreutils:
43090         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43091         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43092         use of $gnulib_tool_option_extras, so that it's separated from the
43093         preceding argument.
43094
43095         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43096         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43097         parent destination directories before copying a file into place.
43098
43099 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43100
43101         bootstrap: work also with 4-argument variant of AC_INIT
43102         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43103
43104 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43105
43106         Port test-getaddrinfo to Solaris.
43107         Problem reported by Bruno Haible in
43108         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43109         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43110         explanation of setting 'hints'.
43111         Don't reject an implementation merely because it returns EAI_SERVICE.
43112         (EAI_SERVICE): Define to 0 if not defined.
43113
43114 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43115
43116         The license of gnu-make and posix-shell is now "GPLed build tool".
43117         * modules/gnu-make (License): Likewise.
43118         * modules/posix-shell (License): Likewise.
43119
43120         New module posix-shell, for determining a POSIX shell
43121         or perhaps something that is close enough to a POSIX shell.
43122         * m4/posix-shell.m4: New file.
43123         * modules/posix-shell: New file.
43124
43125         * MODULES.html.sh: Mention new module.
43126
43127         New module gnu-make, for determining whether we're using GNU Make.
43128         * m4/gnu-make.m4: New file.
43129         * modules/gnu-make: New file.
43130         * MODULES.html.sh: Mention new module.
43131
43132 2007-11-14  Jim Meyering  <meyering@redhat.com>
43133
43134         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43135         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43136         use this macro to create a function _definition_.
43137         Remove useless "#undef ARGMATCH_DIE".
43138
43139 2007-11-14  Bruno Haible  <bruno@clisp.org>
43140
43141         * lib/config.charset: Update for OpenBSD 4.1.
43142         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43143
43144 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43145
43146         Document 64-bit #if problems in stdint.texi.
43147         * doc/headers/stdint.texi (stdint.h): Mention problems with
43148         64-bit-#if, and how to work around them.
43149
43150         Don't insist on 'long long int' support in the preprocessor.  It
43151         breaks too many things.  For example, PRIdMAX still uses a 'long
43152         long int' format with the latest Sun compiler, even though
43153         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43154         preprocessor problem.  This causes the latest coreutils to dump
43155         core on Solaris 10 sparc with the Sun C compiler.
43156         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43157         the troublesome expressions at configure-time, not at #if-time.
43158         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43159         preprocessor.
43160         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43161         compile-time C checks, done at 'configure'-time.
43162         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43163         * modules/inttypes (Makefile): Substitute the new symbols that
43164         gl_INTTYPES_H now generates.
43165         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43166
43167 2007-11-12  Bruno Haible  <bruno@clisp.org>
43168
43169         Tests for Unicode character classification functions.
43170
43171         * modules/unictype/bidicategory-byname-tests: New file.
43172         * modules/unictype/bidicategory-name-tests: New file.
43173         * modules/unictype/bidicategory-of-tests: New file.
43174         * modules/unictype/bidicategory-test-tests: New file.
43175         * modules/unictype/block-list-tests: New file.
43176         * modules/unictype/block-of-tests: New file.
43177         * modules/unictype/block-test-tests: New file.
43178         * modules/unictype/category-C-tests: New file.
43179         * modules/unictype/category-Cc-tests: New file.
43180         * modules/unictype/category-Cf-tests: New file.
43181         * modules/unictype/category-Cn-tests: New file.
43182         * modules/unictype/category-Co-tests: New file.
43183         * modules/unictype/category-Cs-tests: New file.
43184         * modules/unictype/category-L-tests: New file.
43185         * modules/unictype/category-Ll-tests: New file.
43186         * modules/unictype/category-Lm-tests: New file.
43187         * modules/unictype/category-Lo-tests: New file.
43188         * modules/unictype/category-Lt-tests: New file.
43189         * modules/unictype/category-Lu-tests: New file.
43190         * modules/unictype/category-M-tests: New file.
43191         * modules/unictype/category-Mc-tests: New file.
43192         * modules/unictype/category-Me-tests: New file.
43193         * modules/unictype/category-Mn-tests: New file.
43194         * modules/unictype/category-N-tests: New file.
43195         * modules/unictype/category-Nd-tests: New file.
43196         * modules/unictype/category-Nl-tests: New file.
43197         * modules/unictype/category-No-tests: New file.
43198         * modules/unictype/category-P-tests: New file.
43199         * modules/unictype/category-Pc-tests: New file.
43200         * modules/unictype/category-Pd-tests: New file.
43201         * modules/unictype/category-Pe-tests: New file.
43202         * modules/unictype/category-Pf-tests: New file.
43203         * modules/unictype/category-Pi-tests: New file.
43204         * modules/unictype/category-Po-tests: New file.
43205         * modules/unictype/category-Ps-tests: New file.
43206         * modules/unictype/category-S-tests: New file.
43207         * modules/unictype/category-Sc-tests: New file.
43208         * modules/unictype/category-Sk-tests: New file.
43209         * modules/unictype/category-Sm-tests: New file.
43210         * modules/unictype/category-So-tests: New file.
43211         * modules/unictype/category-Z-tests: New file.
43212         * modules/unictype/category-Zl-tests: New file.
43213         * modules/unictype/category-Zp-tests: New file.
43214         * modules/unictype/category-Zs-tests: New file.
43215         * modules/unictype/category-and-not-tests: New file.
43216         * modules/unictype/category-and-tests: New file.
43217         * modules/unictype/category-byname-tests: New file.
43218         * modules/unictype/category-name-tests: New file.
43219         * modules/unictype/category-none-tests: New file.
43220         * modules/unictype/category-of-tests: New file.
43221         * modules/unictype/category-or-tests: New file.
43222         * modules/unictype/category-test-withtable-tests: New file.
43223         * modules/unictype/combining-class-tests: New file.
43224         * modules/unictype/ctype-alnum-tests: New file.
43225         * modules/unictype/ctype-alpha-tests: New file.
43226         * modules/unictype/ctype-blank-tests: New file.
43227         * modules/unictype/ctype-cntrl-tests: New file.
43228         * modules/unictype/ctype-digit-tests: New file.
43229         * modules/unictype/ctype-graph-tests: New file.
43230         * modules/unictype/ctype-lower-tests: New file.
43231         * modules/unictype/ctype-print-tests: New file.
43232         * modules/unictype/ctype-punct-tests: New file.
43233         * modules/unictype/ctype-space-tests: New file.
43234         * modules/unictype/ctype-upper-tests: New file.
43235         * modules/unictype/ctype-xdigit-tests: New file.
43236         * modules/unictype/decimal-digit-tests: New file.
43237         * modules/unictype/digit-tests: New file.
43238         * modules/unictype/mirror-tests: New file.
43239         * modules/unictype/numeric-tests: New file.
43240         * modules/unictype/property-alphabetic-tests: New file.
43241         * modules/unictype/property-ascii-hex-digit-tests: New file.
43242         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43243         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43244         * modules/unictype/property-bidi-block-separator-tests: New file.
43245         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43246         * modules/unictype/property-bidi-common-separator-tests: New file.
43247         * modules/unictype/property-bidi-control-tests: New file.
43248         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43249         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43250         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43251         * modules/unictype/property-bidi-european-digit-tests: New file.
43252         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43253         * modules/unictype/property-bidi-left-to-right-tests: New file.
43254         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43255         * modules/unictype/property-bidi-other-neutral-tests: New file.
43256         * modules/unictype/property-bidi-pdf-tests: New file.
43257         * modules/unictype/property-bidi-segment-separator-tests: New file.
43258         * modules/unictype/property-bidi-whitespace-tests: New file.
43259         * modules/unictype/property-byname-tests: New file.
43260         * modules/unictype/property-combining-tests: New file.
43261         * modules/unictype/property-composite-tests: New file.
43262         * modules/unictype/property-currency-symbol-tests: New file.
43263         * modules/unictype/property-dash-tests: New file.
43264         * modules/unictype/property-decimal-digit-tests: New file.
43265         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43266         * modules/unictype/property-deprecated-tests: New file.
43267         * modules/unictype/property-diacritic-tests: New file.
43268         * modules/unictype/property-extender-tests: New file.
43269         * modules/unictype/property-format-control-tests: New file.
43270         * modules/unictype/property-grapheme-base-tests: New file.
43271         * modules/unictype/property-grapheme-extend-tests: New file.
43272         * modules/unictype/property-grapheme-link-tests: New file.
43273         * modules/unictype/property-hex-digit-tests: New file.
43274         * modules/unictype/property-hyphen-tests: New file.
43275         * modules/unictype/property-id-continue-tests: New file.
43276         * modules/unictype/property-id-start-tests: New file.
43277         * modules/unictype/property-ideographic-tests: New file.
43278         * modules/unictype/property-ids-binary-operator-tests: New file.
43279         * modules/unictype/property-ids-trinary-operator-tests: New file.
43280         * modules/unictype/property-ignorable-control-tests: New file.
43281         * modules/unictype/property-iso-control-tests: New file.
43282         * modules/unictype/property-join-control-tests: New file.
43283         * modules/unictype/property-left-of-pair-tests: New file.
43284         * modules/unictype/property-line-separator-tests: New file.
43285         * modules/unictype/property-logical-order-exception-tests: New file.
43286         * modules/unictype/property-lowercase-tests: New file.
43287         * modules/unictype/property-math-tests: New file.
43288         * modules/unictype/property-non-break-tests: New file.
43289         * modules/unictype/property-not-a-character-tests: New file.
43290         * modules/unictype/property-numeric-tests: New file.
43291         * modules/unictype/property-other-alphabetic-tests: New file.
43292         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43293         * modules/unictype/property-other-grapheme-extend-tests: New file.
43294         * modules/unictype/property-other-id-continue-tests: New file.
43295         * modules/unictype/property-other-id-start-tests: New file.
43296         * modules/unictype/property-other-lowercase-tests: New file.
43297         * modules/unictype/property-other-math-tests: New file.
43298         * modules/unictype/property-other-uppercase-tests: New file.
43299         * modules/unictype/property-paired-punctuation-tests: New file.
43300         * modules/unictype/property-paragraph-separator-tests: New file.
43301         * modules/unictype/property-pattern-syntax-tests: New file.
43302         * modules/unictype/property-pattern-white-space-tests: New file.
43303         * modules/unictype/property-private-use-tests: New file.
43304         * modules/unictype/property-punctuation-tests: New file.
43305         * modules/unictype/property-quotation-mark-tests: New file.
43306         * modules/unictype/property-radical-tests: New file.
43307         * modules/unictype/property-sentence-terminal-tests: New file.
43308         * modules/unictype/property-soft-dotted-tests: New file.
43309         * modules/unictype/property-space-tests: New file.
43310         * modules/unictype/property-terminal-punctuation-tests: New file.
43311         * modules/unictype/property-test-tests: New file.
43312         * modules/unictype/property-titlecase-tests: New file.
43313         * modules/unictype/property-unassigned-code-value-tests: New file.
43314         * modules/unictype/property-unified-ideograph-tests: New file.
43315         * modules/unictype/property-uppercase-tests: New file.
43316         * modules/unictype/property-variation-selector-tests: New file.
43317         * modules/unictype/property-white-space-tests: New file.
43318         * modules/unictype/property-xid-continue-tests: New file.
43319         * modules/unictype/property-xid-start-tests: New file.
43320         * modules/unictype/property-zero-width-tests: New file.
43321         * modules/unictype/scripts-tests: New file.
43322         * modules/unictype/syntax-c-ident-tests: New file.
43323         * modules/unictype/syntax-c-whitespace-tests: New file.
43324         * modules/unictype/syntax-java-ident-tests: New file.
43325         * modules/unictype/syntax-java-whitespace-tests: New file.
43326         * tests/unictype/test-bidi_byname.c: New file.
43327         * tests/unictype/test-bidi_name.c: New file.
43328         * tests/unictype/test-bidi_of.c: New file.
43329         * tests/unictype/test-bidi_test.c: New file.
43330         * tests/unictype/test-block_list.c: New file.
43331         * tests/unictype/test-block_of.c: New file.
43332         * tests/unictype/test-block_test.c: New file.
43333         * tests/unictype/test-categ_and.c: New file.
43334         * tests/unictype/test-categ_and_not.c: New file.
43335         * tests/unictype/test-categ_byname.c: New file.
43336         * tests/unictype/test-categ_name.c: New file.
43337         * tests/unictype/test-categ_none.c: New file.
43338         * tests/unictype/test-categ_of.c: New file.
43339         * tests/unictype/test-categ_or.c: New file.
43340         * tests/unictype/test-categ_test_withtable.c: New file.
43341         * tests/unictype/test-combining.c: New file.
43342         * tests/unictype/test-decdigit.c: New file.
43343         * tests/unictype/test-digit.c: New file.
43344         * tests/unictype/test-mirror.c: New file.
43345         * tests/unictype/test-numeric.c: New file.
43346         * tests/unictype/test-pr_byname.c: New file.
43347         * tests/unictype/test-pr_test.c: New file.
43348         * tests/unictype/test-predicate-part1.h: New file.
43349         * tests/unictype/test-predicate-part2.h: New file.
43350         * tests/unictype/test-scripts.c: New file.
43351         * tests/unictype/test-sy_c_ident.c: New file.
43352         * tests/unictype/test-sy_java_ident.c: New file.
43353
43354         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43355         for Unicode 5.0.0.
43356         * tests/unictype/test-categ_Cc.c: Likewise.
43357         * tests/unictype/test-categ_Cf.c: Likewise.
43358         * tests/unictype/test-categ_Cn.c: Likewise.
43359         * tests/unictype/test-categ_Co.c: Likewise.
43360         * tests/unictype/test-categ_Cs.c: Likewise.
43361         * tests/unictype/test-categ_L.c: Likewise.
43362         * tests/unictype/test-categ_Ll.c: Likewise.
43363         * tests/unictype/test-categ_Lm.c: Likewise.
43364         * tests/unictype/test-categ_Lo.c: Likewise.
43365         * tests/unictype/test-categ_Lt.c: Likewise.
43366         * tests/unictype/test-categ_Lu.c: Likewise.
43367         * tests/unictype/test-categ_M.c: Likewise.
43368         * tests/unictype/test-categ_Mc.c: Likewise.
43369         * tests/unictype/test-categ_Me.c: Likewise.
43370         * tests/unictype/test-categ_Mn.c: Likewise.
43371         * tests/unictype/test-categ_N.c: Likewise.
43372         * tests/unictype/test-categ_Nd.c: Likewise.
43373         * tests/unictype/test-categ_Nl.c: Likewise.
43374         * tests/unictype/test-categ_No.c: Likewise.
43375         * tests/unictype/test-categ_P.c: Likewise.
43376         * tests/unictype/test-categ_Pc.c: Likewise.
43377         * tests/unictype/test-categ_Pd.c: Likewise.
43378         * tests/unictype/test-categ_Pe.c: Likewise.
43379         * tests/unictype/test-categ_Pf.c: Likewise.
43380         * tests/unictype/test-categ_Pi.c: Likewise.
43381         * tests/unictype/test-categ_Po.c: Likewise.
43382         * tests/unictype/test-categ_Ps.c: Likewise.
43383         * tests/unictype/test-categ_S.c: Likewise.
43384         * tests/unictype/test-categ_Sc.c: Likewise.
43385         * tests/unictype/test-categ_Sk.c: Likewise.
43386         * tests/unictype/test-categ_Sm.c: Likewise.
43387         * tests/unictype/test-categ_So.c: Likewise.
43388         * tests/unictype/test-categ_Z.c: Likewise.
43389         * tests/unictype/test-categ_Zl.c: Likewise.
43390         * tests/unictype/test-categ_Zp.c: Likewise.
43391         * tests/unictype/test-categ_Zs.c: Likewise.
43392         * tests/unictype/test-ctype_alnum.c: Likewise.
43393         * tests/unictype/test-ctype_alpha.c: Likewise.
43394         * tests/unictype/test-ctype_blank.c: Likewise.
43395         * tests/unictype/test-ctype_cntrl.c: Likewise.
43396         * tests/unictype/test-ctype_digit.c: Likewise.
43397         * tests/unictype/test-ctype_graph.c: Likewise.
43398         * tests/unictype/test-ctype_lower.c: Likewise.
43399         * tests/unictype/test-ctype_print.c: Likewise.
43400         * tests/unictype/test-ctype_punct.c: Likewise.
43401         * tests/unictype/test-ctype_space.c: Likewise.
43402         * tests/unictype/test-ctype_upper.c: Likewise.
43403         * tests/unictype/test-ctype_xdigit.c: Likewise.
43404         * tests/unictype/test-decdigit.h: Likewise.
43405         * tests/unictype/test-digit.h: Likewise.
43406         * tests/unictype/test-numeric.h: Likewise.
43407         * tests/unictype/test-pr_alphabetic.c: Likewise.
43408         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43409         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43410         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43411         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43412         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43413         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43414         * tests/unictype/test-pr_bidi_control.c: Likewise.
43415         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43416         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43417         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43418         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43419         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43420         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43421         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43422         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43423         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43424         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43425         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43426         * tests/unictype/test-pr_combining.c: Likewise.
43427         * tests/unictype/test-pr_composite.c: Likewise.
43428         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43429         * tests/unictype/test-pr_dash.c: Likewise.
43430         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43431         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43432         * tests/unictype/test-pr_deprecated.c: Likewise.
43433         * tests/unictype/test-pr_diacritic.c: Likewise.
43434         * tests/unictype/test-pr_extender.c: Likewise.
43435         * tests/unictype/test-pr_format_control.c: Likewise.
43436         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43437         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43438         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43439         * tests/unictype/test-pr_hex_digit.c: Likewise.
43440         * tests/unictype/test-pr_hyphen.c: Likewise.
43441         * tests/unictype/test-pr_id_continue.c: Likewise.
43442         * tests/unictype/test-pr_id_start.c: Likewise.
43443         * tests/unictype/test-pr_ideographic.c: Likewise.
43444         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43445         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43446         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43447         * tests/unictype/test-pr_iso_control.c: Likewise.
43448         * tests/unictype/test-pr_join_control.c: Likewise.
43449         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43450         * tests/unictype/test-pr_line_separator.c: Likewise.
43451         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43452         * tests/unictype/test-pr_lowercase.c: Likewise.
43453         * tests/unictype/test-pr_math.c: Likewise.
43454         * tests/unictype/test-pr_non_break.c: Likewise.
43455         * tests/unictype/test-pr_not_a_character.c: Likewise.
43456         * tests/unictype/test-pr_numeric.c: Likewise.
43457         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43458         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43459         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43460         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43461         * tests/unictype/test-pr_other_id_start.c: Likewise.
43462         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43463         * tests/unictype/test-pr_other_math.c: Likewise.
43464         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43465         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43466         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43467         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43468         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43469         * tests/unictype/test-pr_private_use.c: Likewise.
43470         * tests/unictype/test-pr_punctuation.c: Likewise.
43471         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43472         * tests/unictype/test-pr_radical.c: Likewise.
43473         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43474         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43475         * tests/unictype/test-pr_space.c: Likewise.
43476         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43477         * tests/unictype/test-pr_titlecase.c: Likewise.
43478         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43479         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43480         * tests/unictype/test-pr_uppercase.c: Likewise.
43481         * tests/unictype/test-pr_variation_selector.c: Likewise.
43482         * tests/unictype/test-pr_white_space.c: Likewise.
43483         * tests/unictype/test-pr_xid_continue.c: Likewise.
43484         * tests/unictype/test-pr_xid_start.c: Likewise.
43485         * tests/unictype/test-pr_zero_width.c: Likewise.
43486         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43487         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43488
43489 2007-11-12  Bruno Haible  <bruno@clisp.org>
43490
43491         Unicode character classification functions.
43492         * lib/unictype.h: New file.
43493         * modules/unictype/base: New file.
43494         * modules/unictype/category-L: New file.
43495         * modules/unictype/category-Lu: New file.
43496         * modules/unictype/category-Ll: New file.
43497         * modules/unictype/category-Lt: New file.
43498         * modules/unictype/category-Lm: New file.
43499         * modules/unictype/category-Lo: New file.
43500         * modules/unictype/category-M: New file.
43501         * modules/unictype/category-Mn: New file.
43502         * modules/unictype/category-Mc: New file.
43503         * modules/unictype/category-Me: New file.
43504         * modules/unictype/category-N: New file.
43505         * modules/unictype/category-Nd: New file.
43506         * modules/unictype/category-Nl: New file.
43507         * modules/unictype/category-No: New file.
43508         * modules/unictype/category-P: New file.
43509         * modules/unictype/category-Pc: New file.
43510         * modules/unictype/category-Pd: New file.
43511         * modules/unictype/category-Ps: New file.
43512         * modules/unictype/category-Pe: New file.
43513         * modules/unictype/category-Pi: New file.
43514         * modules/unictype/category-Pf: New file.
43515         * modules/unictype/category-Po: New file.
43516         * modules/unictype/category-S: New file.
43517         * modules/unictype/category-Sm: New file.
43518         * modules/unictype/category-Sc: New file.
43519         * modules/unictype/category-Sk: New file.
43520         * modules/unictype/category-So: New file.
43521         * modules/unictype/category-Z: New file.
43522         * modules/unictype/category-Zs: New file.
43523         * modules/unictype/category-Zl: New file.
43524         * modules/unictype/category-Zp: New file.
43525         * modules/unictype/category-C: New file.
43526         * modules/unictype/category-Cc: New file.
43527         * modules/unictype/category-Cf: New file.
43528         * modules/unictype/category-Cs: New file.
43529         * modules/unictype/category-Co: New file.
43530         * modules/unictype/category-Cn: New file.
43531         * modules/unictype/category-or: New file.
43532         * modules/unictype/category-of: New file.
43533         * modules/unictype/category-test: New file.
43534         * modules/unictype/category-test-withtable: New file.
43535         * modules/unictype/category-byname: New file.
43536         * modules/unictype/category-none: New file.
43537         * modules/unictype/category-and: New file.
43538         * modules/unictype/category-and-not: New file.
43539         * modules/unictype/category-name: New file.
43540         * modules/unictype/combining-class: New file.
43541         * modules/unictype/category-all: New file.
43542         * modules/unictype/bidicategory-all: New file.
43543         * modules/unictype/bidicategory-byname: New file.
43544         * modules/unictype/bidicategory-name: New file.
43545         * modules/unictype/bidicategory-of: New file.
43546         * modules/unictype/bidicategory-test: New file.
43547         * modules/unictype/decimal-digit: New file.
43548         * modules/unictype/digit: New file.
43549         * modules/unictype/numeric: New file.
43550         * modules/unictype/mirror: New file.
43551         * modules/unictype/property-white-space: New file.
43552         * modules/unictype/property-alphabetic: New file.
43553         * modules/unictype/property-other-alphabetic: New file.
43554         * modules/unictype/property-not-a-character: New file.
43555         * modules/unictype/property-default-ignorable-code-point: New file.
43556         * modules/unictype/property-other-default-ignorable-code-point: New
43557         file.
43558         * modules/unictype/property-deprecated: New file.
43559         * modules/unictype/property-logical-order-exception: New file.
43560         * modules/unictype/property-variation-selector: New file.
43561         * modules/unictype/property-private-use: New file.
43562         * modules/unictype/property-unassigned-code-value: New file.
43563         * modules/unictype/property-uppercase: New file.
43564         * modules/unictype/property-other-uppercase: New file.
43565         * modules/unictype/property-lowercase: New file.
43566         * modules/unictype/property-other-lowercase: New file.
43567         * modules/unictype/property-titlecase: New file.
43568         * modules/unictype/property-soft-dotted: New file.
43569         * modules/unictype/property-id-start: New file.
43570         * modules/unictype/property-other-id-start: New file.
43571         * modules/unictype/property-id-continue: New file.
43572         * modules/unictype/property-other-id-continue: New file.
43573         * modules/unictype/property-xid-start: New file.
43574         * modules/unictype/property-xid-continue: New file.
43575         * modules/unictype/property-pattern-white-space: New file.
43576         * modules/unictype/property-pattern-syntax: New file.
43577         * modules/unictype/property-join-control: New file.
43578         * modules/unictype/property-grapheme-base: New file.
43579         * modules/unictype/property-grapheme-extend: New file.
43580         * modules/unictype/property-other-grapheme-extend: New file.
43581         * modules/unictype/property-grapheme-link: New file.
43582         * modules/unictype/property-bidi-control: New file.
43583         * modules/unictype/property-bidi-left-to-right: New file.
43584         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43585         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43586         * modules/unictype/property-bidi-european-digit: New file.
43587         * modules/unictype/property-bidi-eur-num-separator: New file.
43588         * modules/unictype/property-bidi-eur-num-terminator: New file.
43589         * modules/unictype/property-bidi-arabic-digit: New file.
43590         * modules/unictype/property-bidi-common-separator: New file.
43591         * modules/unictype/property-bidi-block-separator: New file.
43592         * modules/unictype/property-bidi-segment-separator: New file.
43593         * modules/unictype/property-bidi-whitespace: New file.
43594         * modules/unictype/property-bidi-non-spacing-mark: New file.
43595         * modules/unictype/property-bidi-boundary-neutral: New file.
43596         * modules/unictype/property-bidi-pdf: New file.
43597         * modules/unictype/property-bidi-embedding-or-override: New file.
43598         * modules/unictype/property-bidi-other-neutral: New file.
43599         * modules/unictype/property-hex-digit: New file.
43600         * modules/unictype/property-ascii-hex-digit: New file.
43601         * modules/unictype/property-ideographic: New file.
43602         * modules/unictype/property-unified-ideograph: New file.
43603         * modules/unictype/property-radical: New file.
43604         * modules/unictype/property-ids-binary-operator: New file.
43605         * modules/unictype/property-ids-trinary-operator: New file.
43606         * modules/unictype/property-zero-width: New file.
43607         * modules/unictype/property-space: New file.
43608         * modules/unictype/property-non-break: New file.
43609         * modules/unictype/property-iso-control: New file.
43610         * modules/unictype/property-format-control: New file.
43611         * modules/unictype/property-dash: New file.
43612         * modules/unictype/property-hyphen: New file.
43613         * modules/unictype/property-punctuation: New file.
43614         * modules/unictype/property-line-separator: New file.
43615         * modules/unictype/property-paragraph-separator: New file.
43616         * modules/unictype/property-quotation-mark: New file.
43617         * modules/unictype/property-sentence-terminal: New file.
43618         * modules/unictype/property-terminal-punctuation: New file.
43619         * modules/unictype/property-currency-symbol: New file.
43620         * modules/unictype/property-math: New file.
43621         * modules/unictype/property-other-math: New file.
43622         * modules/unictype/property-paired-punctuation: New file.
43623         * modules/unictype/property-left-of-pair: New file.
43624         * modules/unictype/property-combining: New file.
43625         * modules/unictype/property-composite: New file.
43626         * modules/unictype/property-decimal-digit: New file.
43627         * modules/unictype/property-numeric: New file.
43628         * modules/unictype/property-diacritic: New file.
43629         * modules/unictype/property-extender: New file.
43630         * modules/unictype/property-ignorable-control: New file.
43631         * modules/unictype/property-test: New file.
43632         * modules/unictype/property-byname: New file.
43633         * modules/unictype/property-all: New file.
43634         * modules/unictype/scripts: New file.
43635         * modules/unictype/scripts-all: New file.
43636         * modules/unictype/block-of: New file.
43637         * modules/unictype/block-test: New file.
43638         * modules/unictype/block-list: New file.
43639         * modules/unictype/block-all: New file.
43640         * modules/unictype/syntax-c-whitespace: New file.
43641         * modules/unictype/syntax-java-whitespace: New file.
43642         * modules/unictype/syntax-c-ident: New file.
43643         * modules/unictype/syntax-java-ident: New file.
43644         * modules/unictype/ctype-alnum: New file.
43645         * modules/unictype/ctype-alpha: New file.
43646         * modules/unictype/ctype-cntrl: New file.
43647         * modules/unictype/ctype-digit: New file.
43648         * modules/unictype/ctype-graph: New file.
43649         * modules/unictype/ctype-lower: New file.
43650         * modules/unictype/ctype-print: New file.
43651         * modules/unictype/ctype-punct: New file.
43652         * modules/unictype/ctype-space: New file.
43653         * modules/unictype/ctype-upper: New file.
43654         * modules/unictype/ctype-xdigit: New file.
43655         * modules/unictype/ctype-blank: New file.
43656         * lib/unictype/bidi_byname.c: New file.
43657         * lib/unictype/bidi_name.c: New file.
43658         * lib/unictype/bidi_of.c: New file.
43659         * lib/unictype/bidi_test.c: New file.
43660         * lib/unictype/bitmap.h: New file.
43661         * lib/unictype/block_test.c: New file.
43662         * lib/unictype/blocks.c: New file.
43663         * lib/unictype/categ_C.c: New file.
43664         * lib/unictype/categ_Cc.c: New file.
43665         * lib/unictype/categ_Cf.c: New file.
43666         * lib/unictype/categ_Cn.c: New file.
43667         * lib/unictype/categ_Co.c: New file.
43668         * lib/unictype/categ_Cs.c: New file.
43669         * lib/unictype/categ_L.c: New file.
43670         * lib/unictype/categ_Ll.c: New file.
43671         * lib/unictype/categ_Lm.c: New file.
43672         * lib/unictype/categ_Lo.c: New file.
43673         * lib/unictype/categ_Lt.c: New file.
43674         * lib/unictype/categ_Lu.c: New file.
43675         * lib/unictype/categ_M.c: New file.
43676         * lib/unictype/categ_Mc.c: New file.
43677         * lib/unictype/categ_Me.c: New file.
43678         * lib/unictype/categ_Mn.c: New file.
43679         * lib/unictype/categ_N.c: New file.
43680         * lib/unictype/categ_Nd.c: New file.
43681         * lib/unictype/categ_Nl.c: New file.
43682         * lib/unictype/categ_No.c: New file.
43683         * lib/unictype/categ_P.c: New file.
43684         * lib/unictype/categ_Pc.c: New file.
43685         * lib/unictype/categ_Pd.c: New file.
43686         * lib/unictype/categ_Pe.c: New file.
43687         * lib/unictype/categ_Pf.c: New file.
43688         * lib/unictype/categ_Pi.c: New file.
43689         * lib/unictype/categ_Po.c: New file.
43690         * lib/unictype/categ_Ps.c: New file.
43691         * lib/unictype/categ_S.c: New file.
43692         * lib/unictype/categ_Sc.c: New file.
43693         * lib/unictype/categ_Sk.c: New file.
43694         * lib/unictype/categ_Sm.c: New file.
43695         * lib/unictype/categ_So.c: New file.
43696         * lib/unictype/categ_Z.c: New file.
43697         * lib/unictype/categ_Zl.c: New file.
43698         * lib/unictype/categ_Zp.c: New file.
43699         * lib/unictype/categ_Zs.c: New file.
43700         * lib/unictype/categ_and.c: New file.
43701         * lib/unictype/categ_and_not.c: New file.
43702         * lib/unictype/categ_byname.c: New file.
43703         * lib/unictype/categ_name.c: New file.
43704         * lib/unictype/categ_none.c: New file.
43705         * lib/unictype/categ_of.c: New file.
43706         * lib/unictype/categ_or.c: New file.
43707         * lib/unictype/categ_test.c: New file.
43708         * lib/unictype/combining.c: New file.
43709         * lib/unictype/ctype_alnum.c: New file.
43710         * lib/unictype/ctype_alpha.c: New file.
43711         * lib/unictype/ctype_blank.c: New file.
43712         * lib/unictype/ctype_cntrl.c: New file.
43713         * lib/unictype/ctype_digit.c: New file.
43714         * lib/unictype/ctype_graph.c: New file.
43715         * lib/unictype/ctype_lower.c: New file.
43716         * lib/unictype/ctype_print.c: New file.
43717         * lib/unictype/ctype_punct.c: New file.
43718         * lib/unictype/ctype_space.c: New file.
43719         * lib/unictype/ctype_upper.c: New file.
43720         * lib/unictype/ctype_xdigit.c: New file.
43721         * lib/unictype/decdigit.c: New file.
43722         * lib/unictype/digit.c: New file.
43723         * lib/unictype/identsyntaxmap.h: New file.
43724         * lib/unictype/mirror.c: New file.
43725         * lib/unictype/numeric.c: New file.
43726         * lib/unictype/pr_alphabetic.c: New file.
43727         * lib/unictype/pr_ascii_hex_digit.c: New file.
43728         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43729         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43730         * lib/unictype/pr_bidi_block_separator.c: New file.
43731         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43732         * lib/unictype/pr_bidi_common_separator.c: New file.
43733         * lib/unictype/pr_bidi_control.c: New file.
43734         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43735         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43736         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43737         * lib/unictype/pr_bidi_european_digit.c: New file.
43738         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43739         * lib/unictype/pr_bidi_left_to_right.c: New file.
43740         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43741         * lib/unictype/pr_bidi_other_neutral.c: New file.
43742         * lib/unictype/pr_bidi_pdf.c: New file.
43743         * lib/unictype/pr_bidi_segment_separator.c: New file.
43744         * lib/unictype/pr_bidi_whitespace.c: New file.
43745         * lib/unictype/pr_byname.c: New file.
43746         * lib/unictype/pr_byname.gperf: New file.
43747         * lib/unictype/pr_combining.c: New file.
43748         * lib/unictype/pr_composite.c: New file.
43749         * lib/unictype/pr_currency_symbol.c: New file.
43750         * lib/unictype/pr_dash.c: New file.
43751         * lib/unictype/pr_decimal_digit.c: New file.
43752         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43753         * lib/unictype/pr_deprecated.c: New file.
43754         * lib/unictype/pr_diacritic.c: New file.
43755         * lib/unictype/pr_extender.c: New file.
43756         * lib/unictype/pr_format_control.c: New file.
43757         * lib/unictype/pr_grapheme_base.c: New file.
43758         * lib/unictype/pr_grapheme_extend.c: New file.
43759         * lib/unictype/pr_grapheme_link.c: New file.
43760         * lib/unictype/pr_hex_digit.c: New file.
43761         * lib/unictype/pr_hyphen.c: New file.
43762         * lib/unictype/pr_id_continue.c: New file.
43763         * lib/unictype/pr_id_start.c: New file.
43764         * lib/unictype/pr_ideographic.c: New file.
43765         * lib/unictype/pr_ids_binary_operator.c: New file.
43766         * lib/unictype/pr_ids_trinary_operator.c: New file.
43767         * lib/unictype/pr_ignorable_control.c: New file.
43768         * lib/unictype/pr_iso_control.c: New file.
43769         * lib/unictype/pr_join_control.c: New file.
43770         * lib/unictype/pr_left_of_pair.c: New file.
43771         * lib/unictype/pr_line_separator.c: New file.
43772         * lib/unictype/pr_logical_order_exception.c: New file.
43773         * lib/unictype/pr_lowercase.c: New file.
43774         * lib/unictype/pr_math.c: New file.
43775         * lib/unictype/pr_non_break.c: New file.
43776         * lib/unictype/pr_not_a_character.c: New file.
43777         * lib/unictype/pr_numeric.c: New file.
43778         * lib/unictype/pr_other_alphabetic.c: New file.
43779         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43780         * lib/unictype/pr_other_grapheme_extend.c: New file.
43781         * lib/unictype/pr_other_id_continue.c: New file.
43782         * lib/unictype/pr_other_id_start.c: New file.
43783         * lib/unictype/pr_other_lowercase.c: New file.
43784         * lib/unictype/pr_other_math.c: New file.
43785         * lib/unictype/pr_other_uppercase.c: New file.
43786         * lib/unictype/pr_paired_punctuation.c: New file.
43787         * lib/unictype/pr_paragraph_separator.c: New file.
43788         * lib/unictype/pr_pattern_syntax.c: New file.
43789         * lib/unictype/pr_pattern_white_space.c: New file.
43790         * lib/unictype/pr_private_use.c: New file.
43791         * lib/unictype/pr_punctuation.c: New file.
43792         * lib/unictype/pr_quotation_mark.c: New file.
43793         * lib/unictype/pr_radical.c: New file.
43794         * lib/unictype/pr_sentence_terminal.c: New file.
43795         * lib/unictype/pr_soft_dotted.c: New file.
43796         * lib/unictype/pr_space.c: New file.
43797         * lib/unictype/pr_terminal_punctuation.c: New file.
43798         * lib/unictype/pr_test.c: New file.
43799         * lib/unictype/pr_titlecase.c: New file.
43800         * lib/unictype/pr_unassigned_code_value.c: New file.
43801         * lib/unictype/pr_unified_ideograph.c: New file.
43802         * lib/unictype/pr_uppercase.c: New file.
43803         * lib/unictype/pr_variation_selector.c: New file.
43804         * lib/unictype/pr_white_space.c: New file.
43805         * lib/unictype/pr_xid_continue.c: New file.
43806         * lib/unictype/pr_xid_start.c: New file.
43807         * lib/unictype/pr_zero_width.c: New file.
43808         * lib/unictype/scripts.c: New file.
43809         * lib/unictype/sy_c_ident.c: New file.
43810         * lib/unictype/sy_c_whitespace.c: New file.
43811         * lib/unictype/sy_java_ident.c: New file.
43812         * lib/unictype/sy_java_whitespace.c: New file.
43813
43814         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43815         Unicode 5.0.0.
43816         * lib/unictype/blocks.h: Likewise.
43817         * lib/unictype/categ_C.h: Likewise.
43818         * lib/unictype/categ_Cc.h: Likewise.
43819         * lib/unictype/categ_Cf.h: Likewise.
43820         * lib/unictype/categ_Cn.h: Likewise.
43821         * lib/unictype/categ_Co.h: Likewise.
43822         * lib/unictype/categ_Cs.h: Likewise.
43823         * lib/unictype/categ_L.h: Likewise.
43824         * lib/unictype/categ_Ll.h: Likewise.
43825         * lib/unictype/categ_Lm.h: Likewise.
43826         * lib/unictype/categ_Lo.h: Likewise.
43827         * lib/unictype/categ_Lt.h: Likewise.
43828         * lib/unictype/categ_Lu.h: Likewise.
43829         * lib/unictype/categ_M.h: Likewise.
43830         * lib/unictype/categ_Mc.h: Likewise.
43831         * lib/unictype/categ_Me.h: Likewise.
43832         * lib/unictype/categ_Mn.h: Likewise.
43833         * lib/unictype/categ_N.h: Likewise.
43834         * lib/unictype/categ_Nd.h: Likewise.
43835         * lib/unictype/categ_Nl.h: Likewise.
43836         * lib/unictype/categ_No.h: Likewise.
43837         * lib/unictype/categ_P.h: Likewise.
43838         * lib/unictype/categ_Pc.h: Likewise.
43839         * lib/unictype/categ_Pd.h: Likewise.
43840         * lib/unictype/categ_Pe.h: Likewise.
43841         * lib/unictype/categ_Pf.h: Likewise.
43842         * lib/unictype/categ_Pi.h: Likewise.
43843         * lib/unictype/categ_Po.h: Likewise.
43844         * lib/unictype/categ_Ps.h: Likewise.
43845         * lib/unictype/categ_S.h: Likewise.
43846         * lib/unictype/categ_Sc.h: Likewise.
43847         * lib/unictype/categ_Sk.h: Likewise.
43848         * lib/unictype/categ_Sm.h: Likewise.
43849         * lib/unictype/categ_So.h: Likewise.
43850         * lib/unictype/categ_Z.h: Likewise.
43851         * lib/unictype/categ_Zl.h: Likewise.
43852         * lib/unictype/categ_Zp.h: Likewise.
43853         * lib/unictype/categ_Zs.h: Likewise.
43854         * lib/unictype/categ_of.h: Likewise.
43855         * lib/unictype/combining.h: Likewise.
43856         * lib/unictype/ctype_alnum.h: Likewise.
43857         * lib/unictype/ctype_alpha.h: Likewise.
43858         * lib/unictype/ctype_blank.h: Likewise.
43859         * lib/unictype/ctype_cntrl.h: Likewise.
43860         * lib/unictype/ctype_digit.h: Likewise.
43861         * lib/unictype/ctype_graph.h: Likewise.
43862         * lib/unictype/ctype_lower.h: Likewise.
43863         * lib/unictype/ctype_print.h: Likewise.
43864         * lib/unictype/ctype_punct.h: Likewise.
43865         * lib/unictype/ctype_space.h: Likewise.
43866         * lib/unictype/ctype_upper.h: Likewise.
43867         * lib/unictype/ctype_xdigit.h: Likewise.
43868         * lib/unictype/decdigit.h: Likewise.
43869         * lib/unictype/digit.h: Likewise.
43870         * lib/unictype/mirror.h: Likewise.
43871         * lib/unictype/numeric.h: Likewise.
43872         * lib/unictype/pr_alphabetic.h: Likewise.
43873         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43874         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43875         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43876         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43877         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43878         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43879         * lib/unictype/pr_bidi_control.h: Likewise.
43880         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43881         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43882         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43883         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43884         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43885         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43886         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43887         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43888         * lib/unictype/pr_bidi_pdf.h: Likewise.
43889         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43890         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43891         * lib/unictype/pr_combining.h: Likewise.
43892         * lib/unictype/pr_composite.h: Likewise.
43893         * lib/unictype/pr_currency_symbol.h: Likewise.
43894         * lib/unictype/pr_dash.h: Likewise.
43895         * lib/unictype/pr_decimal_digit.h: Likewise.
43896         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43897         * lib/unictype/pr_deprecated.h: Likewise.
43898         * lib/unictype/pr_diacritic.h: Likewise.
43899         * lib/unictype/pr_extender.h: Likewise.
43900         * lib/unictype/pr_format_control.h: Likewise.
43901         * lib/unictype/pr_grapheme_base.h: Likewise.
43902         * lib/unictype/pr_grapheme_extend.h: Likewise.
43903         * lib/unictype/pr_grapheme_link.h: Likewise.
43904         * lib/unictype/pr_hex_digit.h: Likewise.
43905         * lib/unictype/pr_hyphen.h: Likewise.
43906         * lib/unictype/pr_id_continue.h: Likewise.
43907         * lib/unictype/pr_id_start.h: Likewise.
43908         * lib/unictype/pr_ideographic.h: Likewise.
43909         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43910         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43911         * lib/unictype/pr_ignorable_control.h: Likewise.
43912         * lib/unictype/pr_iso_control.h: Likewise.
43913         * lib/unictype/pr_join_control.h: Likewise.
43914         * lib/unictype/pr_left_of_pair.h: Likewise.
43915         * lib/unictype/pr_line_separator.h: Likewise.
43916         * lib/unictype/pr_logical_order_exception.h: Likewise.
43917         * lib/unictype/pr_lowercase.h: Likewise.
43918         * lib/unictype/pr_math.h: Likewise.
43919         * lib/unictype/pr_non_break.h: Likewise.
43920         * lib/unictype/pr_not_a_character.h: Likewise.
43921         * lib/unictype/pr_numeric.h: Likewise.
43922         * lib/unictype/pr_other_alphabetic.h: Likewise.
43923         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43924         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43925         * lib/unictype/pr_other_id_continue.h: Likewise.
43926         * lib/unictype/pr_other_id_start.h: Likewise.
43927         * lib/unictype/pr_other_lowercase.h: Likewise.
43928         * lib/unictype/pr_other_math.h: Likewise.
43929         * lib/unictype/pr_other_uppercase.h: Likewise.
43930         * lib/unictype/pr_paired_punctuation.h: Likewise.
43931         * lib/unictype/pr_paragraph_separator.h: Likewise.
43932         * lib/unictype/pr_pattern_syntax.h: Likewise.
43933         * lib/unictype/pr_pattern_white_space.h: Likewise.
43934         * lib/unictype/pr_private_use.h: Likewise.
43935         * lib/unictype/pr_punctuation.h: Likewise.
43936         * lib/unictype/pr_quotation_mark.h: Likewise.
43937         * lib/unictype/pr_radical.h: Likewise.
43938         * lib/unictype/pr_sentence_terminal.h: Likewise.
43939         * lib/unictype/pr_soft_dotted.h: Likewise.
43940         * lib/unictype/pr_space.h: Likewise.
43941         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43942         * lib/unictype/pr_titlecase.h: Likewise.
43943         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43944         * lib/unictype/pr_unified_ideograph.h: Likewise.
43945         * lib/unictype/pr_uppercase.h: Likewise.
43946         * lib/unictype/pr_variation_selector.h: Likewise.
43947         * lib/unictype/pr_white_space.h: Likewise.
43948         * lib/unictype/pr_xid_continue.h: Likewise.
43949         * lib/unictype/pr_xid_start.h: Likewise.
43950         * lib/unictype/pr_zero_width.h: Likewise.
43951         * lib/unictype/scripts.h: Likewise.
43952         * lib/unictype/scripts_byname.gperf: Likewise.
43953         * lib/unictype/sy_c_ident.h: Likewise.
43954         * lib/unictype/sy_c_whitespace.h: Likewise.
43955         * lib/unictype/sy_java_ident.h: Likewise.
43956         * lib/unictype/sy_java_whitespace.h: Likewise.
43957
43958         * lib/unictype/Makefile: New file.
43959         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43960         glibc.
43961         * lib/unictype/3level.h: New file, copied from glibc.
43962         * lib/unictype/3levelbit.h: New file.
43963
43964 2007-11-11  Bruno Haible  <bruno@clisp.org>
43965
43966         * modules/gperf: New file.
43967         * modules/iconv_open (Depends-on): Add it.
43968         (Makefile.am): Remove the GPERF definition.
43969
43970 2007-11-11  Bruno Haible  <bruno@clisp.org>
43971
43972         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43973         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43974
43975 2007-11-11  Bruno Haible  <bruno@clisp.org>
43976
43977         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43978         (usage): Remove function.
43979
43980 2007-11-11  Bruno Haible  <bruno@clisp.org>
43981
43982         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43983         gl_FUNC_CEILF_LIBS.
43984         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43985         gl_FUNC_CEIL_LIBS.
43986         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43987         gl_FUNC_CEILL_LIBS.
43988         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43989         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43990         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43991
43992 2007-11-11  Bruno Haible  <bruno@clisp.org>
43993
43994         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43995         roundf were declared but do not exist on functions.
43996         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43997         roundl were declared but do not exist on functions.
43998         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43999         HAVE_FLOORL_AND_CEILL, respectively.
44000         Needed for Sun C on Solaris 10.
44001
44002 2007-11-11  Bruno Haible  <bruno@clisp.org>
44003
44004         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
44005         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
44006         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
44007         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
44008         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
44009         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
44010         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
44011         HAVE_DECL_ROUNDF.
44012         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
44013         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
44014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
44015         of HAVE_DECL_ROUND*.
44016         * modules/math (Makefile.am): Update.
44017
44018 2007-11-10  Bruno Haible  <bruno@clisp.org>
44019
44020         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
44021         ptrdiff_t as m4/intl.m4.
44022
44023 2007-11-10  Jim Meyering  <meyering@redhat.com>
44024
44025         Avoid link failure for the argmatch test.
44026         * tests/test-argmatch.c (usage): Define function to avoid a link
44027         failure: argmatch_die requires a usage function.
44028
44029 2007-11-09  Bruno Haible  <bruno@clisp.org>
44030
44031         * doc/functions/snprintf.texi: Mention BeOS deficiency.
44032         * doc/functions/vsnprintf.texi: Likewise.
44033         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
44034         with a size argument < 2.
44035
44036 2007-11-09  Bruno Haible  <bruno@clisp.org>
44037
44038         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
44039         buffer. Fixes an inefficiency introduced on 2007-11-03.
44040
44041 2007-11-09  Bruno Haible  <bruno@clisp.org>
44042
44043         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
44044         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
44045
44046 2007-11-08  Jim Meyering  <meyering@redhat.com>
44047
44048         Change cache variable name prefix "jm_" to "gl_" everywhere.
44049         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
44050         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
44051         * m4/uptime.m4: s/gl_/jm_/
44052
44053 2007-11-07  Bruno Haible  <bruno@clisp.org>
44054
44055         Update to GNU gettext 0.17.
44056         * m4/intl.m4: Update to GNU gettext 0.17.
44057         * m4/po.m4: Likewise.
44058         * modules/gettext (Files): Remove m4/ulonglong.m4.
44059         (configure.ac): Require gettext infrastructure from version 0.17.
44060
44061 2007-11-06  Bruno Haible  <bruno@clisp.org>
44062
44063         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44064         symbolic values are not defined in a public header.
44065         * lib/freadable.c (freadable) [QNX]: Likewise.
44066         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44067         * lib/freading.c (freading) [QNX]: Likewise.
44068         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44069         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44070         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44071         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44072         Reported by Alain Magloire.
44073
44074         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44075
44076 2007-11-05  Bruno Haible  <bruno@clisp.org>
44077
44078         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44079         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44080         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44081         Reported by Eric Blake.
44082
44083 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44084             Bruno Haible  <bruno@clisp.org>
44085
44086         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44087         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44088         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44089         (malloc): Undefine also before including <stdlib.h>.
44090         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44091         Needed on OSF/1 4.0.
44092
44093 2007-11-05  Jim Meyering  <meyering@redhat.com>
44094
44095         git-version-gen: sync from coreutils.
44096         * build-aux/git-version-gen: Add comments.
44097         Change the first '-' to '.' in the snapshot version string,
44098         e.g., 6.9-377-08144 -> 6.9.377-08144
44099         Remove first parameter.
44100         Don't declare a version "-dirty" merely because a time
44101         stamp has changed.
44102
44103 2007-11-04  Bruno Haible  <bruno@clisp.org>
44104
44105         * lib/lock.h: Protect all macro definitions containing an 'if'
44106         statement through a "do { ... } while (0)".
44107         * lib/tls.h: Likewise.
44108
44109 2007-11-04  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44112
44113 2007-11-04  Bruno Haible  <bruno@clisp.org>
44114
44115         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44116         * modules/fprintf-posix (Depends-on): Add nocrash.
44117         * modules/snprintf-posix (Depends-on): Likewise.
44118         * modules/sprintf-posix (Depends-on): Likewise.
44119         * modules/vasnprintf-posix (Depends-on): Likewise.
44120         * modules/vasprintf-posix (Depends-on): Likewise.
44121         * modules/vfprintf-posix (Depends-on): Likewise.
44122         * modules/vsnprintf-posix (Depends-on): Likewise.
44123         * modules/vsprintf-posix (Depends-on): Likewise.
44124         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44125         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44126         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44127         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44128         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44129         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44130         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44131
44132 2007-11-04  Bruno Haible  <bruno@clisp.org>
44133
44134         * modules/nocrash: New file.
44135         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44136         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44137
44138 2007-11-04  Bruno Haible  <bruno@clisp.org>
44139
44140         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44141         precision handling.
44142         * tests/test-vasprintf-posix.c (test_function): Likewise.
44143         * tests/test-snprintf-posix.h (test_function): Likewise.
44144         * tests/test-sprintf-posix.h (test_function): Likewise.
44145
44146         Fix *printf behaviour for large precisions on mingw and BeOS.
44147         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44148         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44150         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44151         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44152         gl_PRINTF_PRECISION and test its result. Invoke
44153         gl_PREREQ_VASNPRINTF_PRECISION.
44154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44155         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44156         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44157         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44158         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44161         * doc/functions/fprintf.texi: Update.
44162         * doc/functions/printf.texi: Update.
44163         * doc/functions/snprintf.texi: Update.
44164         * doc/functions/sprintf.texi: Update.
44165         * doc/functions/vfprintf.texi: Update.
44166         * doc/functions/vprintf.texi: Update.
44167         * doc/functions/vsnprintf.texi: Update.
44168         * doc/functions/vsprintf.texi: Update.
44169
44170 2007-11-04  Bruno Haible  <bruno@clisp.org>
44171
44172         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44173
44174 2007-11-04  Bruno Haible  <bruno@clisp.org>
44175
44176         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44177         Reported by Sylvain Beucler <beuc@gnu.org>.
44178
44179 2007-11-03  Bruno Haible  <bruno@clisp.org>
44180
44181         * tests/test-fprintf-posix2.sh: New file.
44182         * tests/test-fprintf-posix2.c: New file.
44183         * modules/fprintf-posix-tests (Files): Add them.
44184         (TESTS): Add test-fprintf-posix2.sh.
44185         (configure.ac): Check for getrlimit and setrlimit.
44186         (check_PROGRAMS): Add test-fprintf-posix2.
44187
44188         * tests/test-printf-posix2.sh: New file.
44189         * tests/test-printf-posix2.c: New file.
44190         * modules/printf-posix-tests (Files): Add them.
44191         (TESTS): Add test-printf-posix2.sh.
44192         (configure.ac): Check for getrlimit and setrlimit.
44193         (check_PROGRAMS): Add test-printf-posix2.
44194
44195         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44196         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44197         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44198         (decode_double): New function, copied from decode_long_double.
44199         (scale10_round_decimal_decoded): New function, extracted from
44200         scale10_round_decimal_long_double.
44201         (scale10_round_decimal_long_double): Use it.
44202         (scale10_round_decimal_double): New function.
44203         (floorlog10): New function.
44204         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44205         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44206         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44207         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44208         gl_PRINTF_ENOMEM and test its result. Invoke
44209         gl_PREREQ_VASNPRINTF_ENOMEM.
44210         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44211         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44212         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44214         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44216         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44217         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44218         * modules/snprintf-posix (Depends-on): Likewise.
44219         * modules/sprintf-posix (Depends-on): Likewise.
44220         * modules/vasnprintf-posix (Depends-on): Likewise.
44221         * modules/vasprintf-posix (Depends-on): Likewise.
44222         * modules/vfprintf-posix (Depends-on): Likewise.
44223         * modules/vsnprintf-posix (Depends-on): Likewise.
44224         * modules/vsprintf-posix (Depends-on): Likewise.
44225         * doc/functions/fprintf.texi: Update.
44226         * doc/functions/printf.texi: Update.
44227         * doc/functions/snprintf.texi: Update.
44228         * doc/functions/sprintf.texi: Update.
44229         * doc/functions/vfprintf.texi: Update.
44230         * doc/functions/vprintf.texi: Update.
44231         * doc/functions/vsnprintf.texi: Update.
44232         * doc/functions/vsprintf.texi: Update.
44233
44234 2007-11-03  Bruno Haible  <bruno@clisp.org>
44235
44236         * modules/frexp-nolibm-tests: New file.
44237
44238         * modules/frexp-nolibm: New file.
44239         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44240
44241 2007-11-03  Bruno Haible  <bruno@clisp.org>
44242
44243         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44244         value is C99 compliant.
44245         Needed for OSF/1 5.1.
44246
44247 2007-11-03  Bruno Haible  <bruno@clisp.org>
44248
44249         Fix out-of-memory handling of vasnprintf.
44250         * lib/printf-parse.c: Include <errno.h>.
44251         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44252         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44253         is already set.
44254
44255 2007-11-02  Eric Blake  <ebb9@byu.net>
44256
44257         Fix tests on cygwin.
44258         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44259
44260 2007-11-01  Bruno Haible  <bruno@clisp.org>
44261
44262         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44263         warning.
44264         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44265         needed for POSIX compatibility.
44266
44267 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44268
44269         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44270         for compatibility with GNU.
44271
44272 2007-11-01  Bruno Haible  <bruno@clisp.org>
44273
44274         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44275         (putenv): Renamed from rpl_putenv. Change argument type from
44276         'const char *' to 'char *'.
44277         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44278         of defining putenv in config.h, just set REPLACE_PUTENV.
44279         * modules/putenv (Depends-on): Add stdlib.
44280         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44281         (Include): Use <stdlib.h>.
44282         * lib/stdlib.in.h (putenv): New declaration.
44283         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44284         REPLACE_PUTENV.
44285         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44286         REPLACE_PUTENV.
44287         Needed for MacOS X 10.5.0.
44288         Reported by Peter O'Gorman <peter@pogma.com>.
44289
44290 2007-11-01  Jim Meyering  <meyering@redhat.com>
44291
44292         Treat an empty date string exactly like "0".
44293         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44294         if the remaining date string (to be parsed) is empty, use "0".
44295         Reported by Mischa Molhoek and discussed in this thread:
44296         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44297
44298 2007-10-31  Bruno Haible  <bruno@clisp.org>
44299
44300         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44301         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44302         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44303         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44304         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44305         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44306
44307 2007-10-31  Bruno Haible  <bruno@clisp.org>
44308
44309         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44310         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44311         (AC_TYPE_LONG_LONG_INT): Use it.
44312         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44313         it as well.
44314         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44315         to m4/longlong.m4.
44316         * modules/stdint (Files): Remove m4/ulonglong.m4.
44317         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44318         m4/ulonglong.m4.
44319         * modules/strtoumax (Files): Likewise.
44320
44321 2007-10-30  Bruno Haible  <bruno@clisp.org>
44322
44323         * modules/xvasprintf-posix: New file.
44324         Suggested by Eric Blake.
44325
44326 2007-10-30  Bruno Haible  <bruno@clisp.org>
44327
44328         * modules/xprintf-posix-tests: New file.
44329         * tests/test-xprintf-posix.sh: New file.
44330         * tests/test-xprintf-posix.c: New file.
44331         * tests/test-xfprintf-posix.c: New file.
44332
44333         * modules/xprintf-posix: New file.
44334
44335 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44336
44337         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44338         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44339         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44340
44341 2007-10-29  Bruno Haible  <bruno@clisp.org>
44342
44343         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44344         contain the special marker '_cv_'.
44345         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44346         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44347         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44348         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44349         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44350         Reported by Ralf Wildenhues.
44351
44352 2007-10-29  Bruno Haible  <bruno@clisp.org>
44353
44354         * gnulib-tool (func_import): When --lgpl is not specified, set
44355         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44356         GPLv3.
44357         Reported by Simon Josefsson.
44358
44359 2007-10-28  Bruno Haible  <bruno@clisp.org>
44360
44361         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44362         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44363         HAVE_DECL_ISFINITE.
44364         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44365         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44366         HAVE_DECL_ISFINITE.
44367
44368 2007-10-28  Bruno Haible  <bruno@clisp.org>
44369
44370         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44371         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44372
44373 2007-10-28  Bruno Haible  <bruno@clisp.org>
44374
44375         Fix link errors with Sun C 5.0 on Solaris 10.
44376         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44377         function is declared but not present in the compiler's libm.
44378         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44379         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44380         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44381         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44382         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44383         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44384         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44385         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44386         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44387         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44388         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44389         HAVE_DECL_FLOORL.
44390
44391 2007-10-28  Bruno Haible  <bruno@clisp.org>
44392
44393         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44394         gl_FUNC_FLOORL. Cache the result.
44395         (gl_FUNC_FLOORL): Use it.
44396         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44397         gl_FUNC_CEILL. Cache the result.
44398         (gl_FUNC_CEILL): Use it.
44399
44400         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44401         gl_FUNC_FLOOR. Cache the result.
44402         (gl_FUNC_FLOOR): Use it.
44403         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44404         gl_FUNC_CEIL. Cache the result.
44405         (gl_FUNC_CEIL): Use it.
44406
44407         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44408         gl_FUNC_FLOORF. Cache the result.
44409         (gl_FUNC_FLOORF): Use it.
44410         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44411         gl_FUNC_CEILF. Cache the result.
44412         (gl_FUNC_CEILF): Use it.
44413
44414 2007-10-28  Bruno Haible  <bruno@clisp.org>
44415
44416         * gnulib-tool: Allow specifying the LGPL version number through
44417         --lgpl=2 or --lgpl=3.
44418         (func_usage): Document --lgpl with argument.
44419         Handle --lgpl=... arguments.
44420         (func_import): Recognize also gl_LGPL calls with an argument. When
44421         --lgpl=2 is used and the module's license is just LGPL, report an
44422         error. Set sed_transform_lib_file according to the lgpl variable. In
44423         the generated files, use --lgpl or gl_LGPL invocations with argument,
44424         if necessary.
44425         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44426         an LGPv2+ license.
44427         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44428         gl_LGPL macro.
44429
44430 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44431             Bruno Haible  <bruno@clisp.org>
44432
44433         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44434         (u16_uctomb_aux): Likewise.
44435         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44436         !HAVE_INLINE.
44437         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44438
44439 2007-10-28  Bruno Haible  <bruno@clisp.org>
44440
44441         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44442         Invoke AM_GETTEXT_OPTION if it exists.
44443         * modules/vasprintf: Likewise.
44444         * modules/verror: Likewise.
44445         * modules/xprintf: Likewise.
44446         * modules/xvasprintf: Likewise.
44447
44448 2007-10-27  Ben Pfaff  <blp@gnu.org>
44449
44450         * lib/math.in.h: Define isfinite macro and prototypes for
44451         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44452         implementations.
44453         * m4/math_h.m4: New substitutions for isfinite module.
44454         * lib/isfinite.c: New file.
44455         * m4/isfinite.m4: New file.
44456         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44457         * modules/isfinite: New file.
44458         * modules/isfinite-tests: New file.
44459         * tests/tests-isfinite.c: New file.
44460         * doc/functions/isfinite.texi: Mention isfinite module.
44461         * MODULES.html.sh: Mention new module.
44462
44463 2007-10-27  Ben Pfaff  <blp@gnu.org>
44464
44465         Ralf Wildenhues reported that Tru64 4.0D declares the round
44466         functions but does not have definitions.
44467         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44468         cannot be found in any library, set the output variable to
44469         "missing" instead of "".
44470         * m4/round.m4: Also use our substitute if we cannot find round in
44471         any library, even if it is declared.
44472         * m4/roundf.m4: Likewise for roundf.
44473         * m4/roundl.m4: Likewise for roundl.
44474         * lib/math.in.h: Undefine roundf, round, roundl before defining
44475         their replacements, to allow for hypothetical systems where these
44476         may be defined as macros but not available in libraries.
44477
44478 2007-10-27  Bruno Haible  <bruno@clisp.org>
44479
44480         * doc/gnulib.texi: Invoke @firstparagraphindent.
44481         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44482         changes in gnulib.
44483         (Source changes): New section.
44484
44485 2007-10-26  Bruno Haible  <bruno@clisp.org>
44486
44487         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44488         borrowed from autoconf.
44489
44490 2007-10-26  Bruno Haible  <bruno@clisp.org>
44491
44492         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44493         strerror returned the empty string. Needed on HP-UX 11.00.
44494
44495 2007-10-24  Micah Cowan  <micah@cowan.name>
44496
44497         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44498         * build-aux/bootstrap: Remove support for now-unnecessary option,
44499         --cvs-user, and envvars CVS_USER, CVS_RSH.
44500
44501 2007-10-24  Jim Meyering  <meyering@redhat.com>
44502
44503         Avoid diagnostics from sha1sum when there is no cached checksum.
44504         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44505         if the po.s1 file hasn't been created yet.
44506
44507         * build-aux/bootstrap: Sync from coreutils:
44508         2007-10-24  Jim Meyering  <meyering@redhat.com>
44509         Get gnulib from the git repository, not from an obsolete cvs one.
44510         * build-aux/bootstrap: Suggestion from Micah Cowan.
44511         2007-10-04  Jim Meyering  <jim@meyering.net>
44512         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44513         (update_po_files): Work also when there are no .po files in po/.
44514
44515 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44516
44517         * README: Append ".git" to git and cg examples.
44518         Problem reported by Benoit Sigoure.
44519
44520 2007-10-23  Micah Cowan  <micah@cowan.name>
44521
44522         * users.txt: Add wget.
44523
44524 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44525
44526         Fix linking of some unistdio tests on FreeBSD.
44527         * modules/unistdio/u16-vsnprintf-tests
44528         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44529         * modules/unistdio/u16-vsprintf-tests
44530         (test_u16_vsnprintf1_LDADD): Likewise.
44531         * modules/unistdio/u32-vsnprintf-tests
44532         (test_u32_vsnprintf1_LDADD): Likewise.
44533         * modules/unistdio/u32-vsprintf-tests
44534         (test_u32_vsprintf1_LDADD): Likewise.
44535         * modules/unistdio/u8-vsnprintf-tests
44536         (test_u8_vsnprintf1_LDADD): Likewise.
44537         * modules/unistdio/u8-vsprintf-tests
44538         (test_u8_vsprintf1_LDADD): Likewise.
44539         * modules/unistdio/ulc-vsnprintf-tests
44540         (test_ulc_vsnprintf1_LDADD): Likewise.
44541         * modules/unistdio/ulc-vsprintf-tests
44542         (test_ulc_vsprintf1_LDADD): Likewise.
44543
44544         Fix linking of some uniconv tests on FreeBSD.
44545         * modules/uniconv/u16-conv-from-enc-tests
44546         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44547         * modules/uniconv/u16-conv-to-enc-tests
44548         (test_u16_conv_to_enc_LDADD): Likewise.
44549         * modules/uniconv/u16-strconv-from-enc-tests
44550         (test_u16_strconv_from_enc_LDADD): Likewise.
44551         * modules/uniconv/u16-strconv-to-enc-tests
44552         (test_u16_strconv_to_enc_LDADD): Likewise.
44553         * modules/uniconv/u32-conv-from-enc-tests
44554         (test_u32_conv_from_enc_LDADD): Likewise.
44555         * modules/uniconv/u32-conv-to-enc-tests
44556         (test_u32_conv_to_enc_LDADD): Likewise.
44557         * modules/uniconv/u32-strconv-from-enc-tests
44558         (test_u32_strconv_from_enc_LDADD): Likewise.
44559         * modules/uniconv/u32-strconv-to-enc-tests
44560         (test_u32_strconv_to_enc_LDADD): Likewise.
44561         * modules/uniconv/u8-conv-from-enc-tests
44562         (test_u8_conv_from_enc_LDADD): Likewise.
44563         * modules/uniconv/u8-conv-to-enc-tests
44564         (test_u8_conv_to_enc_LDADD): Likewise.
44565         * modules/uniconv/u8-strconv-from-enc-tests
44566         (test_u8_strconv_from_enc_LDADD): Likewise.
44567         * modules/uniconv/u8-strconv-to-enc-tests
44568         (test_u8_strconv_to_enc_LDADD): Likewise.
44569
44570 2007-10-22  Bruno Haible  <bruno@clisp.org>
44571
44572         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44573         size.
44574
44575 2007-10-22  Eric Blake  <ebb9@byu.net>
44576
44577         Tweak x*printf documentation.
44578         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44579         variable name and comments.
44580         Suggested by Bruno Haible.
44581
44582 2007-10-22  Bruno Haible  <bruno@clisp.org>
44583
44584         * lib/acl.c (copy_acl): Fix file name in comment.
44585
44586 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44587
44588         Fix Tru64 problem with stdbool.h.
44589         * lib/stdbool.in.h (false, true):
44590         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44591         Don't declare as an enum in this situation; it runs afoul of Tru64.
44592         Problem reported by Steven M. Schweda in
44593         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44594
44595 2007-10-22  Eric Blake  <ebb9@byu.net>
44596
44597         Also wrap vf?printf.
44598         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44599         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44600         (xvprintf, xvfprintf): New functions.
44601
44602 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44603
44604         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44605         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44606
44607         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44608         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44609
44610 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44611
44612         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44613         by Bruno Haible.
44614
44615 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44616
44617         * lib/getloadavg.c
44618         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44619         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44620
44621         * tests/test-i-ring.c: Work for C89.
44622
44623 2007-10-22  Bruno Haible  <bruno@clisp.org>
44624
44625         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44626         -1u, in preprocessor expression, so that we don't test for the bug
44627         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44629
44630 2007-10-22  Eric Blake  <ebb9@byu.net>
44631
44632         * tests/test-yesno.sh: Silence stderr during test.
44633
44634 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44635
44636         * modules/crypto/gc-camellia: New file.
44637
44638         * m4/gc-camellia.m4: New file.
44639
44640         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44641
44642         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44643
44644 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44645
44646         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44647         --help to stdout.  Reported by sms@antinode.org (Steven
44648         M. Schweda).
44649
44650 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44651
44652         * users.txt: Fix link to libksba.
44653
44654 2007-10-21  Ben Pfaff  <blp@gnu.org>
44655
44656         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44657         round.c roundf implementation that depends on floorf and ceilf to
44658         be tested unconditionally.
44659
44660 2007-10-21  Ben Pfaff  <blp@gnu.org>
44661
44662         * m4/check-libm-func.m4: Removed.
44663         * m4/check-math-lib.m4: New file.
44664         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44665         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44666         definition and lack of AC_LIBOBJ([roundf]).
44667         * m4/roundl.m4: Ditto, and similarly for roundl.
44668         * modules/round: Reference new m4 file.
44669         * modules/roundf: Ditto.
44670         * modules/roundl: Ditto.
44671         * tests/test-round2.c (main): Use ROUND instead of round.
44672         Bug report from Bruno Haible.
44673
44674 2007-10-21  Bruno Haible  <bruno@clisp.org>
44675
44676         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44677         context.
44678
44679 2007-10-21  Bruno Haible  <bruno@clisp.org>
44680
44681         * tests/test-wcwidth.c (main): Allow negative result for some control
44682         characters.
44683
44684         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44685         Needed on OSF/1 5.1.
44686
44687 2007-10-21  Bruno Haible  <bruno@clisp.org>
44688
44689         * tests/test-floorf1.c: Include isnanf.h.
44690         (main): Use isnanf() instead of isnan().
44691         * tests/test-ceilf1.c: Include isnanf.h.
44692         (main): Use isnanf() instead of isnan().
44693         * tests/test-truncf1.c: Include isnanf.h.
44694         (main): Use isnanf() instead of isnan().
44695         * tests/test-roundf1.c: Include isnanf.h.
44696         (main): Use isnanf() instead of isnan().
44697
44698 2007-10-21  Eric Blake  <ebb9@byu.net>
44699
44700         * users.txt: Update URL for m4.
44701
44702 2007-10-21  Bruno Haible  <bruno@clisp.org>
44703
44704         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44705
44706 2007-10-21  Bruno Haible  <bruno@clisp.org>
44707
44708         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44709         Git's management files if the CVS files are not present.
44710
44711 2007-10-20  Bruno Haible  <bruno@clisp.org>
44712
44713         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44714         gcc-3.4.x.
44715
44716 2007-10-20  Ben Pfaff  <blp@gnu.org>
44717
44718         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44719         implementations.
44720         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44721         * lib/round.c: New file.
44722         * lib/roundf.c: New file.
44723         * lib/roundl.c: New file.
44724         * m4/round.m4: New file.
44725         * m4/roundf.m4: New file.
44726         * m4/roundl.m4: New file.
44727         * m4/check-libm-func-m4: New file.
44728         * modules/math: Replace round, roundf, roundl related @VARS@ in
44729         math.in.h.
44730         * modules/round: New file.
44731         * modules/round-tests: New file.
44732         * modules/roundf: New file.
44733         * modules/roundf-tests: New file.
44734         * modules/roundl: New file.
44735         * modules/roundl-tests: New file.
44736         * tests/test-round1.c: New file.
44737         * tests/test-round2.c: New file.
44738         * tests/test-roundf1.c: New file.
44739         * tests/test-roundf2.c: New file.
44740         * tests/test-roundl.c: New file.
44741         * doc/functions/round.texi: Mention round module.
44742         * doc/functions/roundf.texi: Mention roundf module.
44743         * doc/functions/roundl.texi: Mention roundl module.
44744         * MODULES.html.sh: Mention new modules.
44745         Thanks to Bruno Haible for suggestions.
44746
44747 2007-10-20  Jim Meyering  <meyering@redhat.com>
44748
44749         * lib/xprintf.c: Include <config.h> unconditionally.
44750
44751         Change xprintf's license to GPL.
44752         * modules/xprintf (License): s/LGPL/GPL/, since this module
44753         depends on modules (exit and exitfail) which are GPL.
44754         Suggestion from Bruno Haible.
44755
44756         xprintf fixes.
44757         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44758         Use a clearer diagnostic.
44759         Patch from Bruno Haible.
44760
44761 2007-10-20  Bruno Haible  <bruno@clisp.org>
44762
44763         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44764         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44765         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44766
44767 2007-10-20  Bruno Haible  <bruno@clisp.org>
44768
44769         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44770         precision in the comparison result > x - 1 or similar.
44771         * tests/test-ceilf2.c (correct_result_p): Likewise.
44772         * tests/test-truncf2.c (correct_result_p): Likewise.
44773         * tests/test-trunc2.c (correct_result_p): Likewise.
44774         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44775
44776 2007-10-20  Bruno Haible  <bruno@clisp.org>
44777
44778         * modules/ceil: New file.
44779         * m4/ceil.m4: New file.
44780         * doc/functions/ceil.texi: Mention the 'ceil' module.
44781
44782 2007-10-20  Bruno Haible  <bruno@clisp.org>
44783
44784         * modules/floor: New file.
44785         * m4/floor.m4: New file.
44786         * doc/functions/floor.texi: Mention the 'floor' module.
44787
44788 2007-10-20  Bruno Haible  <bruno@clisp.org>
44789
44790         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44791         of %a.
44792         * modules/floorf-tests (Depends-on): Likewise.
44793         * modules/truncf-tests (Depends-on): Likewise.
44794         * modules/trunc-tests (Depends-on): Likewise.
44795         Reported by Ben Pfaff.
44796
44797 2007-10-19  Jim Meyering  <meyering@redhat.com>
44798
44799         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44800         Don't bother testing specific errno values.  Just test ferror.
44801
44802         New module: xprintf
44803         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44804
44805 2007-10-19  Bruno Haible  <bruno@clisp.org>
44806
44807         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44808         syntax.
44809         * modules/javaexec (Makefile.am): Likewise.
44810         * modules/relocatable-prog (Makefile.am): Likewise.
44811         Suggested by Jim Meyering.
44812
44813 2007-10-18  Bruno Haible  <bruno@clisp.org>
44814
44815         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44816         Reported by Jim Meyering.
44817
44818 2007-10-18  Eric Blake  <ebb9@byu.net>
44819
44820         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44821
44822 2007-10-18  Bruno Haible  <bruno@clisp.org>
44823
44824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44825         the format string into writable memory. Needed in Fortify conditions.
44826
44827 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44828             Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44831         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44832         * modules/trim (Depends-on): Add mbchar.
44833         (configure.ac): Add gl_FUNC_MBRTOWC.
44834         (Makefile.am): Augment lib_SOURCES.
44835
44836 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44837
44838         Modify glob.c to use fstatat and dirfd, to simplify it.
44839         Suggested by Eric Blake.
44840         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44841         Don't include <stdbool.h>; not used.
44842         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44843         (link_exists_p): Simplify implementation, since we can now assume
44844         dirfd and fstatat.
44845         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44846
44847 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44848
44849         * gnulib-tool (func_get_dependencies): Fix sed script to
44850         match only tests.
44851
44852 2007-10-17  Bruno Haible  <bruno@clisp.org>
44853
44854         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44855         allow locale names without encoding suffix.
44856         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44857         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44858
44859 2007-10-16  Bruno Haible  <bruno@clisp.org>
44860
44861         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44862         * lib/getgroups.c (getgroups): Likewise.
44863         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44864
44865 2007-10-16  Bruno Haible  <bruno@clisp.org>
44866
44867         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44868         * modules/malloc-posix (License): Likewise.
44869         * modules/realloc-posix (License): Likewise.
44870         * modules/calloc-posix (License): Likewise.
44871         * modules/intprops (License): Change from GPL to LGPL, with
44872         Paul Eggert's approval.
44873
44874 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44875
44876         Merge glibc changes into lib/glob.c.
44877
44878         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44879         2007-10-15 04:59:03 UTC.  Here are the changes:
44880
44881         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44882
44883         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44884
44885         * lib/glob.c: Add some branch prediction throughout.
44886
44887         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44888
44889         [BZ #5103]
44890         * lib/glob.c (glob): Recognize patterns starting \/.
44891
44892         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44893
44894         [BZ #3996]
44895         * lib/glob.c (attribute_hidden): Define if not defined.
44896         (glob): Unescape dirname, filename or username when needed and not
44897         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44898         is NULL.  Handle unescaped [ in pattern without closing ].
44899         Don't pass GLOB_CHECK down to recursive glob for directories.
44900         (__glob_pattern_type): New function.
44901         (__glob_pattern_p): Implement using __glob_pattern_type.
44902         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44903         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44904         Remove unreachable code.
44905
44906         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44907
44908         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44909         explain why there are no leaks.
44910
44911         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44912
44913         [BZ #3253]
44914         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44915         time, rather allocate increasingly bigger arrays of pointers, if
44916         possible with alloca, if too large with malloc.
44917
44918 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44919
44920         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44921         Problem reported by H.Merijn Brand in
44922         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44923         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44924         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44925
44926 2007-10-15  Bruno Haible  <bruno@clisp.org>
44927
44928         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44929         with explicit rpl_ prefix.
44930         * lib/fopen.c (fopen): Likewise.
44931         * lib/freopen.c (freopen): Likewise.
44932         * lib/iconv.c (iconv): Likewise.
44933         * lib/iconv_close.c (iconv_close): Likewise.
44934
44935 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44936
44937         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44938
44939 2007-10-15  Bruno Haible  <bruno@clisp.org>
44940
44941         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44942         <stddef.h> instead of <stdlib.h> since we only need NULL.
44943         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44944
44945 2007-10-15  Bruno Haible  <bruno@clisp.org>
44946
44947         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44948         Replace paragraph talking about LIBOBJS.
44949         Reported by Colin Watson <cjwatson@debian.org>.
44950
44951 2007-10-15  Bruno Haible  <bruno@clisp.org>
44952
44953         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44954         <stdlib.h> before using NULL.
44955
44956 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44957
44958         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44959         Reported by Albert Chin <china@thewrittenword.com>.
44960
44961 2007-10-14  Bruno Haible  <bruno@clisp.org>
44962
44963         * modules/iconv_open-utf-tests: New file.
44964         * tests/test-iconv-utf.c: New file.
44965
44966         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44967         * modules/iconv_open-utf: New file.
44968         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44969         (iconv, iconv_close): New declarations.
44970         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44971         be defined.
44972         (iconv_open): Add special handling of conversion between UTF-8 and
44973         UTF-{16,32}{BE,LE}.
44974         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44975         * lib/iconv_close.c: New file.
44976         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44977         gl_FUNC_ICONV_OPEN.
44978         (gl_FUNC_ICONV_OPEN): Use it.
44979         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44980         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44981         and REPLACE_ICONV_UTF.
44982         * modules/iconv_open (Depends-on): Add c-strcase.
44983         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44984         ICONV_CONST.
44985         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44986
44987 2007-10-13  Albert Chin  <china@thewrittenword.com>
44988             Bruno Haible  <bruno@clisp.org>
44989
44990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44991         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44992
44993 2007-10-13  Bruno Haible  <bruno@clisp.org>
44994
44995         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44996         defined, use the ISO C99 inline semantics.
44997         * lib/argp.h (ARGP_EI): Likewise.
44998
44999 2007-10-13  Bruno Haible  <bruno@clisp.org>
45000
45001         Handle 'inline' change in gcc 4.3.0.
45002         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
45003         argp_fmtstream_write, argp_fmtstream_set_lmargin,
45004         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
45005         argp_fmtstream_point): Disable 'extern' declaration if the function
45006         definition is going to be provided inline.
45007         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
45008         semantics, not the ISO C99 inline semantics.
45009         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
45010         'extern' declaration if the function definition is going to be provided
45011         inline.
45012         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
45013         the GNU C inline semantics, not the ISO C99 inline semantics. With
45014         GCC 4.2, avoid a warning.
45015
45016 2007-10-13  Bruno Haible  <bruno@clisp.org>
45017
45018         * lib/freading.h (freading): Enable the use of __freading for
45019         glibc >= 2.7.
45020         * lib/freading.c (freading): Likewise.
45021
45022 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
45023
45024         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
45025         "warning: C99 inline functions are not supported; using GNU89".
45026
45027 2007-10-12  Bruno Haible  <bruno@clisp.org>
45028
45029         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
45030         of 2.
45031         * tests/test-ceilf2.c: New file.
45032         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
45033
45034         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
45035         * modules/ceilf-tests: Update.
45036
45037 2007-10-12  Bruno Haible  <bruno@clisp.org>
45038
45039         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
45040         of 2.
45041         * tests/test-floorf2.c: New file.
45042         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
45043
45044         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
45045         * modules/floorf-tests: Update.
45046
45047 2007-10-12  Bruno Haible  <bruno@clisp.org>
45048
45049         * tests/test-trunc2.c: New file.
45050         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
45051
45052         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
45053         * modules/trunc-tests: Update.
45054
45055 2007-10-12  Bruno Haible  <bruno@clisp.org>
45056
45057         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45058         of 2.
45059         * tests/test-truncf2.c: New file.
45060         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45061
45062         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45063         * modules/truncf-tests: Update.
45064
45065 2007-10-11  Eric Blake  <ebb9@byu.net>
45066
45067         Don't claim strerror is broken on Interix.
45068         * doc/functions/strerror.texi (strerror): Known broken systems are
45069         now Solaris 8, and not Interix.
45070         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45071         Interix on cross-compile.
45072         Reported by Martin Koeppe in
45073         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45074
45075 2007-10-11  Bruno Haible  <bruno@clisp.org>
45076
45077         * modules/i-ring-tests: New file.
45078         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45079         instead of assert.
45080
45081 2007-10-11  Bruno Haible  <bruno@clisp.org>
45082
45083         * modules/filenamecat-tests: New file.
45084         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45085         * lib/filenamecat.c: Remove test code.
45086
45087 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45088
45089         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45090
45091         * lib/strerror.c: Include <string.h> always, to test interface,
45092         and to remove the need for the dummy.
45093         Include intprops.h to compute width instead of doing it ourselves
45094         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45095         (strerror): Define it to return NULL if there's no system strerror.
45096         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45097         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45098         ancient pre-strerror Unix systems well any more.  Saying "unknown
45099         system error" is enough.
45100         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45101         simpler strerror.c implementation.
45102         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45103         Simplify the tests to reflect the simpler strerror implementation.
45104         * modules/strerror (Depends-on): Add intprops.
45105
45106 2007-10-09  Eric Blake  <ebb9@byu.net>
45107
45108         Silence test-fpending.
45109         * modules/fpending-tests (Files): Add wrapper script.
45110         * tests/test-fpending.sh: New file.
45111
45112 2007-10-09  Bruno Haible  <bruno@clisp.org>
45113
45114         * MODULES.html.sh (func_module): Don't create a hyperlink for
45115         function names like 'printf_frexp'.
45116         (Misc): Add crc, memxor.
45117         (Characteristics of floating types): New section.
45118         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45119         isnanf-nolibm, signbit, trunc, truncf, truncl.
45120         (Enhancements for ISO C 99 functions): New subsection Input/output.
45121         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45122         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45123         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45124         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45125         (Enhancements for POSIX:2001 functions): Add chdir-long.
45126         (File system functions): Add areadlink, chdir-safer, read-file.
45127         Remove cycle-check.
45128         (File system as inode set): New section.
45129         (Date and time): Add gethrxtime.
45130         (Multithreading): Add openmp.
45131         (Internationalization functions): Add localename.
45132         (Unicode string functions): Add unistr/u*-mbsnlen.
45133         (Support for maintaining and releasing projects): Add git-version-gen.
45134         (Lone files): Remove directories.
45135
45136 2007-10-08  Ben Pfaff  <blp@gnu.org>
45137
45138         * lib/xmalloca.h: Fix typo in comment.
45139
45140 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45141
45142         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45143         when avoiding problems with integer overflow.  Use a portable test
45144         instead.
45145
45146 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45147
45148         * modules/dummy (License): Change to LGPLv2+.
45149         * modules/float (License): Likewise
45150         * modules/realloc (License): Likewise
45151         * modules/stdlib (License): Likewise
45152
45153 2007-10-07  Bruno Haible  <bruno@clisp.org>
45154
45155         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45156         * floor.c (TWO_MANT_DIG): Likewise.
45157         * ceil.c (TWO_MANT_DIG): Likewise.
45158         Reported by Ben Pfaff.
45159
45160 2007-10-07  Bruno Haible  <bruno@clisp.org>
45161
45162         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45163         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45164         * lib/frexp.c (FUNC): Likewise.
45165         * lib/printf-frexp.h (printf_frexp): Likewise.
45166         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45167         * lib/printf-frexp.c (FUNC): Likewise.
45168         Suggested by Jim Meyering.
45169
45170 2007-10-07  Jim Meyering  <meyering@redhat.com>
45171
45172         Make xnanosleep's integer overflow test more robust.
45173         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45174         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45175
45176 2007-10-07  Bruno Haible  <bruno@clisp.org>
45177
45178         * NEWS: Mention the license change.
45179
45180         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45181         abbreviations in the modules files.
45182
45183         Change copyright notice from GPLv2+ to GPLv3+.
45184         * README: Change copyright notice.
45185         * MODULES.html.sh: Likewise.
45186         * build-aux/bootstrap.conf: Likewise.
45187         * build-aux/config.libpath: Likewise.
45188         * build-aux/csharpcomp.sh.in: Likewise.
45189         * build-aux/csharpexec.sh.in: Likewise.
45190         * build-aux/install-reloc: Likewise.
45191         * build-aux/javacomp.sh.in: Likewise.
45192         * build-aux/javaexec.sh.in: Likewise.
45193         * build-aux/ldd.sh.in: Likewise.
45194         * build-aux/reloc-ldflags: Likewise.
45195         * build-aux/relocatable.sh.in: Likewise.
45196         * build-aux/x-to-1.in: Likewise.
45197         * check-module: Likewise.
45198         * config/srclistvars.sh: Likewise.
45199         * gnulib-tool: Likewise.
45200         * lib/acl-internal.h: Likewise.
45201         * lib/acl.c: Likewise.
45202         * lib/acl.h: Likewise.
45203         * lib/acl_entries.c: Likewise.
45204         * lib/areadlink-with-size.c: Likewise.
45205         * lib/areadlink.c: Likewise.
45206         * lib/areadlink.h: Likewise.
45207         * lib/argmatch.c: Likewise.
45208         * lib/argmatch.h: Likewise.
45209         * lib/argp-ba.c: Likewise.
45210         * lib/argp-eexst.c: Likewise.
45211         * lib/argp-fmtstream.c: Likewise.
45212         * lib/argp-fmtstream.h: Likewise.
45213         * lib/argp-fs-xinl.c: Likewise.
45214         * lib/argp-help.c: Likewise.
45215         * lib/argp-namefrob.h: Likewise.
45216         * lib/argp-parse.c: Likewise.
45217         * lib/argp-pin.c: Likewise.
45218         * lib/argp-pv.c: Likewise.
45219         * lib/argp-pvh.c: Likewise.
45220         * lib/argp-xinl.c: Likewise.
45221         * lib/argp.h: Likewise.
45222         * lib/at-func.c: Likewise.
45223         * lib/atanl.c: Likewise.
45224         * lib/backupfile.c: Likewise.
45225         * lib/backupfile.h: Likewise.
45226         * lib/basename.c: Likewise.
45227         * lib/binary-io.h: Likewise.
45228         * lib/byteswap.in.h: Likewise.
45229         * lib/c-stack.c: Likewise.
45230         * lib/c-stack.h: Likewise.
45231         * lib/c-strcasestr.c: Likewise.
45232         * lib/c-strcasestr.h: Likewise.
45233         * lib/c-strstr.c: Likewise.
45234         * lib/c-strstr.h: Likewise.
45235         * lib/c-strtod.c: Likewise.
45236         * lib/calloc.c: Likewise.
45237         * lib/canon-host.c: Likewise.
45238         * lib/canon-host.h: Likewise.
45239         * lib/canonicalize-lgpl.c: Likewise.
45240         * lib/canonicalize.c: Likewise.
45241         * lib/canonicalize.h: Likewise.
45242         * lib/ceil.c: Likewise.
45243         * lib/ceilf.c: Likewise.
45244         * lib/ceill.c: Likewise.
45245         * lib/chdir-long.c: Likewise.
45246         * lib/chdir-long.h: Likewise.
45247         * lib/chdir-safer.c: Likewise.
45248         * lib/chdir-safer.h: Likewise.
45249         * lib/chown.c: Likewise.
45250         * lib/classpath.c: Likewise.
45251         * lib/classpath.h: Likewise.
45252         * lib/clean-temp.c: Likewise.
45253         * lib/clean-temp.h: Likewise.
45254         * lib/cloexec.c: Likewise.
45255         * lib/close-stream.c: Likewise.
45256         * lib/closein.c: Likewise.
45257         * lib/closein.h: Likewise.
45258         * lib/closeout.c: Likewise.
45259         * lib/closeout.h: Likewise.
45260         * lib/concat-filename.c: Likewise.
45261         * lib/copy-file.c: Likewise.
45262         * lib/copy-file.h: Likewise.
45263         * lib/count-one-bits.h: Likewise.
45264         * lib/crc.c: Likewise.
45265         * lib/crc.h: Likewise.
45266         * lib/creat-safer.c: Likewise.
45267         * lib/csharpcomp.c: Likewise.
45268         * lib/csharpcomp.h: Likewise.
45269         * lib/csharpexec.c: Likewise.
45270         * lib/csharpexec.h: Likewise.
45271         * lib/cycle-check.c: Likewise.
45272         * lib/cycle-check.h: Likewise.
45273         * lib/diacrit.c: Likewise.
45274         * lib/diacrit.h: Likewise.
45275         * lib/diffseq.h: Likewise.
45276         * lib/dirchownmod.c: Likewise.
45277         * lib/dirent.in.h: Likewise.
45278         * lib/dirfd.c: Likewise.
45279         * lib/dirfd.h: Likewise.
45280         * lib/dirname.c: Likewise.
45281         * lib/dirname.h: Likewise.
45282         * lib/dummy.c: Likewise.
45283         * lib/dup-safer.c: Likewise.
45284         * lib/dup2.c: Likewise.
45285         * lib/eealloc.h: Likewise.
45286         * lib/error.c: Likewise.
45287         * lib/error.h: Likewise.
45288         * lib/euidaccess.c: Likewise.
45289         * lib/exclude.c: Likewise.
45290         * lib/exclude.h: Likewise.
45291         * lib/execute.c: Likewise.
45292         * lib/execute.h: Likewise.
45293         * lib/exitfail.c: Likewise.
45294         * lib/exitfail.h: Likewise.
45295         * lib/expl.c: Likewise.
45296         * lib/fatal-signal.c: Likewise.
45297         * lib/fatal-signal.h: Likewise.
45298         * lib/fbufmode.c: Likewise.
45299         * lib/fbufmode.h: Likewise.
45300         * lib/fchdir.c: Likewise.
45301         * lib/fchmodat.c: Likewise.
45302         * lib/fchownat.c: Likewise.
45303         * lib/fcntl--.h: Likewise.
45304         * lib/fcntl-safer.h: Likewise.
45305         * lib/fcntl.in.h: Likewise.
45306         * lib/fd-safer.c: Likewise.
45307         * lib/fflush.c: Likewise.
45308         * lib/file-has-acl.c: Likewise.
45309         * lib/file-set.c: Likewise.
45310         * lib/file-type.c: Likewise.
45311         * lib/file-type.h: Likewise.
45312         * lib/fileblocks.c: Likewise.
45313         * lib/filemode.c: Likewise.
45314         * lib/filemode.h: Likewise.
45315         * lib/filename.h: Likewise.
45316         * lib/filenamecat.c: Likewise.
45317         * lib/filenamecat.h: Likewise.
45318         * lib/findprog.c: Likewise.
45319         * lib/findprog.h: Likewise.
45320         * lib/float.in.h: Likewise.
45321         * lib/floor.c: Likewise.
45322         * lib/floorf.c: Likewise.
45323         * lib/floorl.c: Likewise.
45324         * lib/fopen-safer.c: Likewise.
45325         * lib/fopen.c: Likewise.
45326         * lib/fpending.c: Likewise.
45327         * lib/fpending.h: Likewise.
45328         * lib/fprintf.c: Likewise.
45329         * lib/fprintftime.h: Likewise.
45330         * lib/fpucw.h: Likewise.
45331         * lib/fpurge.c: Likewise.
45332         * lib/fpurge.h: Likewise.
45333         * lib/freadable.c: Likewise.
45334         * lib/freadable.h: Likewise.
45335         * lib/freadahead.c: Likewise.
45336         * lib/freadahead.h: Likewise.
45337         * lib/freading.c: Likewise.
45338         * lib/freading.h: Likewise.
45339         * lib/free.c: Likewise.
45340         * lib/freopen.c: Likewise.
45341         * lib/frexp.c: Likewise.
45342         * lib/frexpl.c: Likewise.
45343         * lib/fseek.c: Likewise.
45344         * lib/fseterr.c: Likewise.
45345         * lib/fseterr.h: Likewise.
45346         * lib/fstatat.c: Likewise.
45347         * lib/fstrcmp.c: Likewise.
45348         * lib/fstrcmp.h: Likewise.
45349         * lib/fsusage.c: Likewise.
45350         * lib/fsusage.h: Likewise.
45351         * lib/ftell.c: Likewise.
45352         * lib/ftello.c: Likewise.
45353         * lib/fts-cycle.c: Likewise.
45354         * lib/fts.c: Likewise.
45355         * lib/fts_.h: Likewise.
45356         * lib/full-read.c: Likewise.
45357         * lib/full-read.h: Likewise.
45358         * lib/full-write.c: Likewise.
45359         * lib/full-write.h: Likewise.
45360         * lib/fwritable.c: Likewise.
45361         * lib/fwritable.h: Likewise.
45362         * lib/fwriteerror.c: Likewise.
45363         * lib/fwriteerror.h: Likewise.
45364         * lib/fwriting.c: Likewise.
45365         * lib/fwriting.h: Likewise.
45366         * lib/gcd.c: Likewise.
45367         * lib/gcd.h: Likewise.
45368         * lib/getcwd.c: Likewise.
45369         * lib/getdate.h: Likewise.
45370         * lib/getdate.y: Likewise.
45371         * lib/getdomainname.c: Likewise.
45372         * lib/getdomainname.h: Likewise.
45373         * lib/getgroups.c: Likewise.
45374         * lib/gethostname.c: Likewise.
45375         * lib/gethrxtime.c: Likewise.
45376         * lib/gethrxtime.h: Likewise.
45377         * lib/getloadavg.c: Likewise.
45378         * lib/getndelim2.c: Likewise.
45379         * lib/getndelim2.h: Likewise.
45380         * lib/getnline.c: Likewise.
45381         * lib/getnline.h: Likewise.
45382         * lib/getopt.c: Likewise.
45383         * lib/getopt.in.h: Likewise.
45384         * lib/getopt1.c: Likewise.
45385         * lib/getopt_int.h: Likewise.
45386         * lib/getpagesize.h: Likewise.
45387         * lib/getsubopt.c: Likewise.
45388         * lib/gettime.c: Likewise.
45389         * lib/getugroups.c: Likewise.
45390         * lib/getugroups.h: Likewise.
45391         * lib/getusershell.c: Likewise.
45392         * lib/gl_anyavltree_list1.h: Likewise.
45393         * lib/gl_anyavltree_list2.h: Likewise.
45394         * lib/gl_anyhash_list1.h: Likewise.
45395         * lib/gl_anyhash_list2.h: Likewise.
45396         * lib/gl_anylinked_list1.h: Likewise.
45397         * lib/gl_anylinked_list2.h: Likewise.
45398         * lib/gl_anyrbtree_list1.h: Likewise.
45399         * lib/gl_anyrbtree_list2.h: Likewise.
45400         * lib/gl_anytree_list1.h: Likewise.
45401         * lib/gl_anytree_list2.h: Likewise.
45402         * lib/gl_anytree_oset.h: Likewise.
45403         * lib/gl_anytreehash_list1.h: Likewise.
45404         * lib/gl_anytreehash_list2.h: Likewise.
45405         * lib/gl_array_list.c: Likewise.
45406         * lib/gl_array_list.h: Likewise.
45407         * lib/gl_array_oset.c: Likewise.
45408         * lib/gl_array_oset.h: Likewise.
45409         * lib/gl_avltree_list.c: Likewise.
45410         * lib/gl_avltree_list.h: Likewise.
45411         * lib/gl_avltree_oset.c: Likewise.
45412         * lib/gl_avltree_oset.h: Likewise.
45413         * lib/gl_avltreehash_list.c: Likewise.
45414         * lib/gl_avltreehash_list.h: Likewise.
45415         * lib/gl_carray_list.c: Likewise.
45416         * lib/gl_carray_list.h: Likewise.
45417         * lib/gl_linked_list.c: Likewise.
45418         * lib/gl_linked_list.h: Likewise.
45419         * lib/gl_linkedhash_list.c: Likewise.
45420         * lib/gl_linkedhash_list.h: Likewise.
45421         * lib/gl_list.c: Likewise.
45422         * lib/gl_list.h: Likewise.
45423         * lib/gl_oset.c: Likewise.
45424         * lib/gl_oset.h: Likewise.
45425         * lib/gl_rbtree_list.c: Likewise.
45426         * lib/gl_rbtree_list.h: Likewise.
45427         * lib/gl_rbtree_oset.c: Likewise.
45428         * lib/gl_rbtree_oset.h: Likewise.
45429         * lib/gl_rbtreehash_list.c: Likewise.
45430         * lib/gl_rbtreehash_list.h: Likewise.
45431         * lib/gl_sublist.c: Likewise.
45432         * lib/gl_sublist.h: Likewise.
45433         * lib/group-member.c: Likewise.
45434         * lib/group-member.h: Likewise.
45435         * lib/hard-locale.c: Likewise.
45436         * lib/hard-locale.h: Likewise.
45437         * lib/hash-pjw.c: Likewise.
45438         * lib/hash-pjw.h: Likewise.
45439         * lib/hash-triple.c: Likewise.
45440         * lib/hash.c: Likewise.
45441         * lib/hash.h: Likewise.
45442         * lib/human.c: Likewise.
45443         * lib/human.h: Likewise.
45444         * lib/i-ring.c: Likewise.
45445         * lib/i-ring.h: Likewise.
45446         * lib/idcache.c: Likewise.
45447         * lib/imaxabs.c: Likewise.
45448         * lib/imaxdiv.c: Likewise.
45449         * lib/inet_pton.c: Likewise.
45450         * lib/inet_pton.h: Likewise.
45451         * lib/intprops.h: Likewise.
45452         * lib/inttostr.c: Likewise.
45453         * lib/inttostr.h: Likewise.
45454         * lib/inttypes.in.h: Likewise.
45455         * lib/isapipe.c: Likewise.
45456         * lib/isdir.c: Likewise.
45457         * lib/isnan.c: Likewise.
45458         * lib/isnan.h: Likewise.
45459         * lib/isnanf.c: Likewise.
45460         * lib/isnanf.h: Likewise.
45461         * lib/isnanl-nolibm.h: Likewise.
45462         * lib/isnanl.c: Likewise.
45463         * lib/isnanl.h: Likewise.
45464         * lib/javacomp.c: Likewise.
45465         * lib/javacomp.h: Likewise.
45466         * lib/javaexec.c: Likewise.
45467         * lib/javaexec.h: Likewise.
45468         * lib/javaversion.c: Likewise.
45469         * lib/javaversion.h: Likewise.
45470         * lib/javaversion.java: Likewise.
45471         * lib/lbrkprop.h: Likewise.
45472         * lib/lchmod.h: Likewise.
45473         * lib/lchown.c: Likewise.
45474         * lib/ldexpl.c: Likewise.
45475         * lib/linebreak.c: Likewise.
45476         * lib/linebreak.h: Likewise.
45477         * lib/linebuffer.c: Likewise.
45478         * lib/linebuffer.h: Likewise.
45479         * lib/locale.in.h: Likewise.
45480         * lib/logl.c: Likewise.
45481         * lib/long-options.c: Likewise.
45482         * lib/long-options.h: Likewise.
45483         * lib/lstat.c: Likewise.
45484         * lib/lstat.h: Likewise.
45485         * lib/math.in.h: Likewise.
45486         * lib/mbchar.c: Likewise.
45487         * lib/mbchar.h: Likewise.
45488         * lib/mbfile.h: Likewise.
45489         * lib/mbiter.h: Likewise.
45490         * lib/mbscasecmp.c: Likewise.
45491         * lib/mbscasestr.c: Likewise.
45492         * lib/mbschr.c: Likewise.
45493         * lib/mbscspn.c: Likewise.
45494         * lib/mbslen.c: Likewise.
45495         * lib/mbsncasecmp.c: Likewise.
45496         * lib/mbsnlen.c: Likewise.
45497         * lib/mbspbrk.c: Likewise.
45498         * lib/mbspcasecmp.c: Likewise.
45499         * lib/mbsrchr.c: Likewise.
45500         * lib/mbssep.c: Likewise.
45501         * lib/mbsspn.c: Likewise.
45502         * lib/mbsstr.c: Likewise.
45503         * lib/mbstok_r.c: Likewise.
45504         * lib/mbswidth.c: Likewise.
45505         * lib/mbswidth.h: Likewise.
45506         * lib/mbuiter.h: Likewise.
45507         * lib/memcasecmp.c: Likewise.
45508         * lib/memcasecmp.h: Likewise.
45509         * lib/memchr.c: Likewise.
45510         * lib/memcmp.c: Likewise.
45511         * lib/memcoll.c: Likewise.
45512         * lib/memcoll.h: Likewise.
45513         * lib/memcpy.c: Likewise.
45514         * lib/memrchr.c: Likewise.
45515         * lib/mkancesdirs.c: Likewise.
45516         * lib/mkdir-p.c: Likewise.
45517         * lib/mkdir-p.h: Likewise.
45518         * lib/mkdir.c: Likewise.
45519         * lib/mkdirat.c: Likewise.
45520         * lib/mkdtemp.c: Likewise.
45521         * lib/mkstemp-safer.c: Likewise.
45522         * lib/mkstemp.c: Likewise.
45523         * lib/modechange.c: Likewise.
45524         * lib/modechange.h: Likewise.
45525         * lib/mountlist.c: Likewise.
45526         * lib/mountlist.h: Likewise.
45527         * lib/mpsort.c: Likewise.
45528         * lib/nanosleep.c: Likewise.
45529         * lib/obstack.c: Likewise.
45530         * lib/obstack.h: Likewise.
45531         * lib/open-safer.c: Likewise.
45532         * lib/open.c: Likewise.
45533         * lib/openat-die.c: Likewise.
45534         * lib/openat-priv.h: Likewise.
45535         * lib/openat-proc.c: Likewise.
45536         * lib/openat.c: Likewise.
45537         * lib/openat.h: Likewise.
45538         * lib/pagealign_alloc.c: Likewise.
45539         * lib/pagealign_alloc.h: Likewise.
45540         * lib/physmem.c: Likewise.
45541         * lib/physmem.h: Likewise.
45542         * lib/pipe-safer.c: Likewise.
45543         * lib/pipe.c: Likewise.
45544         * lib/pipe.h: Likewise.
45545         * lib/posixtm.c: Likewise.
45546         * lib/posixtm.h: Likewise.
45547         * lib/posixver.c: Likewise.
45548         * lib/printf-frexp.c: Likewise.
45549         * lib/printf-frexp.h: Likewise.
45550         * lib/printf-frexpl.c: Likewise.
45551         * lib/printf-frexpl.h: Likewise.
45552         * lib/printf.c: Likewise.
45553         * lib/progname.c: Likewise.
45554         * lib/progname.h: Likewise.
45555         * lib/progreloc.c: Likewise.
45556         * lib/putenv.c: Likewise.
45557         * lib/quote.c: Likewise.
45558         * lib/quote.h: Likewise.
45559         * lib/quotearg.c: Likewise.
45560         * lib/quotearg.h: Likewise.
45561         * lib/raise.c: Likewise.
45562         * lib/readline.c: Likewise.
45563         * lib/readline.h: Likewise.
45564         * lib/readlink.c: Likewise.
45565         * lib/readtokens.c: Likewise.
45566         * lib/readtokens.h: Likewise.
45567         * lib/readtokens0.c: Likewise.
45568         * lib/readtokens0.h: Likewise.
45569         * lib/readutmp.c: Likewise.
45570         * lib/readutmp.h: Likewise.
45571         * lib/realloc.c: Likewise.
45572         * lib/relocwrapper.c: Likewise.
45573         * lib/rename-dest-slash.c: Likewise.
45574         * lib/rename.c: Likewise.
45575         * lib/rmdir.c: Likewise.
45576         * lib/rpmatch.c: Likewise.
45577         * lib/safe-read.c: Likewise.
45578         * lib/safe-read.h: Likewise.
45579         * lib/safe-write.c: Likewise.
45580         * lib/safe-write.h: Likewise.
45581         * lib/same-inode.h: Likewise.
45582         * lib/same.c: Likewise.
45583         * lib/same.h: Likewise.
45584         * lib/save-cwd.c: Likewise.
45585         * lib/save-cwd.h: Likewise.
45586         * lib/savedir.c: Likewise.
45587         * lib/savedir.h: Likewise.
45588         * lib/savewd.c: Likewise.
45589         * lib/savewd.h: Likewise.
45590         * lib/search.in.h: Likewise.
45591         * lib/setenv.c: Likewise.
45592         * lib/setenv.h: Likewise.
45593         * lib/settime.c: Likewise.
45594         * lib/sh-quote.c: Likewise.
45595         * lib/sh-quote.h: Likewise.
45596         * lib/sig2str.c: Likewise.
45597         * lib/sig2str.h: Likewise.
45598         * lib/signal.in.h: Likewise.
45599         * lib/signbitd.c: Likewise.
45600         * lib/signbitf.c: Likewise.
45601         * lib/signbitl.c: Likewise.
45602         * lib/sigprocmask.c: Likewise.
45603         * lib/sincosl.c: Likewise.
45604         * lib/sleep.c: Likewise.
45605         * lib/sprintf.c: Likewise.
45606         * lib/sqrtl.c: Likewise.
45607         * lib/stat-time.h: Likewise.
45608         * lib/stdio--.h: Likewise.
45609         * lib/stdio-safer.h: Likewise.
45610         * lib/stdlib--.h: Likewise.
45611         * lib/stdlib-safer.h: Likewise.
45612         * lib/stdlib.in.h: Likewise.
45613         * lib/stpcpy.c: Likewise.
45614         * lib/stpncpy.c: Likewise.
45615         * lib/strchrnul.c: Likewise.
45616         * lib/strcspn.c: Likewise.
45617         * lib/strerror.c: Likewise.
45618         * lib/strftime.c: Likewise.
45619         * lib/strftime.h: Likewise.
45620         * lib/striconveh.c: Likewise.
45621         * lib/striconveh.h: Likewise.
45622         * lib/striconveha.c: Likewise.
45623         * lib/striconveha.h: Likewise.
45624         * lib/stripslash.c: Likewise.
45625         * lib/strnlen1.c: Likewise.
45626         * lib/strnlen1.h: Likewise.
45627         * lib/strtod.c: Likewise.
45628         * lib/strtoimax.c: Likewise.
45629         * lib/strtok_r.c: Likewise.
45630         * lib/strtol.c: Likewise.
45631         * lib/strtoll.c: Likewise.
45632         * lib/strtoul.c: Likewise.
45633         * lib/strtoull.c: Likewise.
45634         * lib/sysexits.in.h: Likewise.
45635         * lib/tempname.c: Likewise.
45636         * lib/tempname.h: Likewise.
45637         * lib/timespec.h: Likewise.
45638         * lib/tls.c: Likewise.
45639         * lib/tls.h: Likewise.
45640         * lib/tmpdir.c: Likewise.
45641         * lib/tmpdir.h: Likewise.
45642         * lib/tmpfile-safer.c: Likewise.
45643         * lib/tmpfile.c: Likewise.
45644         * lib/trigl.c: Likewise.
45645         * lib/trigl.h: Likewise.
45646         * lib/trim.c: Likewise.
45647         * lib/trim.h: Likewise.
45648         * lib/trunc.c: Likewise.
45649         * lib/truncf.c: Likewise.
45650         * lib/truncl.c: Likewise.
45651         * lib/tsearch.c: Likewise.
45652         * lib/unicodeio.c: Likewise.
45653         * lib/unicodeio.h: Likewise.
45654         * lib/unistd--.h: Likewise.
45655         * lib/unistd-safer.h: Likewise.
45656         * lib/unistdio/ulc-fprintf.c: Likewise.
45657         * lib/unistdio/ulc-vfprintf.c: Likewise.
45658         * lib/unlinkdir.c: Likewise.
45659         * lib/unlinkdir.h: Likewise.
45660         * lib/unlocked-io.h: Likewise.
45661         * lib/unsetenv.c: Likewise.
45662         * lib/userspec.c: Likewise.
45663         * lib/utime.c: Likewise.
45664         * lib/utimecmp.c: Likewise.
45665         * lib/utimecmp.h: Likewise.
45666         * lib/utimens.c: Likewise.
45667         * lib/verify.h: Likewise.
45668         * lib/verror.c: Likewise.
45669         * lib/verror.h: Likewise.
45670         * lib/version-etc-fsf.c: Likewise.
45671         * lib/version-etc.c: Likewise.
45672         * lib/version-etc.h: Likewise.
45673         * lib/vfprintf.c: Likewise.
45674         * lib/vprintf.c: Likewise.
45675         * lib/vsprintf.c: Likewise.
45676         * lib/w32spawn.h: Likewise.
45677         * lib/wait-process.c: Likewise.
45678         * lib/wait-process.h: Likewise.
45679         * lib/wcwidth.c: Likewise.
45680         * lib/write-any-file.c: Likewise.
45681         * lib/xalloc-die.c: Likewise.
45682         * lib/xalloc.h: Likewise.
45683         * lib/xasprintf.c: Likewise.
45684         * lib/xgetcwd.c: Likewise.
45685         * lib/xgetcwd.h: Likewise.
45686         * lib/xgetdomainname.c: Likewise.
45687         * lib/xgetdomainname.h: Likewise.
45688         * lib/xgethostname.c: Likewise.
45689         * lib/xmalloc.c: Likewise.
45690         * lib/xmalloca.c: Likewise.
45691         * lib/xmalloca.h: Likewise.
45692         * lib/xmemcoll.c: Likewise.
45693         * lib/xnanosleep.c: Likewise.
45694         * lib/xreadlink.c: Likewise.
45695         * lib/xreadlink.h: Likewise.
45696         * lib/xsetenv.c: Likewise.
45697         * lib/xsetenv.h: Likewise.
45698         * lib/xstriconv.c: Likewise.
45699         * lib/xstriconv.h: Likewise.
45700         * lib/xstrndup.c: Likewise.
45701         * lib/xstrndup.h: Likewise.
45702         * lib/xstrtod.c: Likewise.
45703         * lib/xstrtod.h: Likewise.
45704         * lib/xstrtol-error.c: Likewise.
45705         * lib/xstrtol.c: Likewise.
45706         * lib/xstrtol.h: Likewise.
45707         * lib/xtime.h: Likewise.
45708         * lib/xvasprintf.c: Likewise.
45709         * lib/xvasprintf.h: Likewise.
45710         * lib/yesno.c: Likewise.
45711         * lib/yesno.h: Likewise.
45712         * posix-modules: Likewise.
45713         * tests/test-alloca-opt.c: Likewise.
45714         * tests/test-arcfour.c: Likewise.
45715         * tests/test-arctwo.c: Likewise.
45716         * tests/test-argmatch.c: Likewise.
45717         * tests/test-argp-2.sh: Likewise.
45718         * tests/test-argp.c: Likewise.
45719         * tests/test-arpa_inet.c: Likewise.
45720         * tests/test-array_list.c: Likewise.
45721         * tests/test-array_oset.c: Likewise.
45722         * tests/test-atexit.c: Likewise.
45723         * tests/test-avltree_list.c: Likewise.
45724         * tests/test-avltree_oset.c: Likewise.
45725         * tests/test-avltreehash_list.c: Likewise.
45726         * tests/test-base64.c: Likewise.
45727         * tests/test-binary-io.c: Likewise.
45728         * tests/test-byteswap.c: Likewise.
45729         * tests/test-c-ctype.c: Likewise.
45730         * tests/test-c-strcasecmp.c: Likewise.
45731         * tests/test-c-strcasestr.c: Likewise.
45732         * tests/test-c-strncasecmp.c: Likewise.
45733         * tests/test-c-strstr.c: Likewise.
45734         * tests/test-canonicalize-lgpl.c: Likewise.
45735         * tests/test-canonicalize.c: Likewise.
45736         * tests/test-carray_list.c: Likewise.
45737         * tests/test-ceilf.c: Likewise.
45738         * tests/test-ceill.c: Likewise.
45739         * tests/test-count-one-bits.c: Likewise.
45740         * tests/test-crc.c: Likewise.
45741         * tests/test-dirname.c: Likewise.
45742         * tests/test-fbufmode.c: Likewise.
45743         * tests/test-fcntl.c: Likewise.
45744         * tests/test-fflush.c: Likewise.
45745         * tests/test-floorf.c: Likewise.
45746         * tests/test-floorl.c: Likewise.
45747         * tests/test-fopen.c: Likewise.
45748         * tests/test-fprintf-posix.c: Likewise.
45749         * tests/test-fprintf-posix.h: Likewise.
45750         * tests/test-fpurge.c: Likewise.
45751         * tests/test-freadable.c: Likewise.
45752         * tests/test-freadahead.c: Likewise.
45753         * tests/test-freading.c: Likewise.
45754         * tests/test-freopen.c: Likewise.
45755         * tests/test-frexp.c: Likewise.
45756         * tests/test-frexpl.c: Likewise.
45757         * tests/test-fseek.c: Likewise.
45758         * tests/test-fseeko.c: Likewise.
45759         * tests/test-fseterr.c: Likewise.
45760         * tests/test-fstrcmp.c: Likewise.
45761         * tests/test-ftell.c: Likewise.
45762         * tests/test-ftello.c: Likewise.
45763         * tests/test-fwritable.c: Likewise.
45764         * tests/test-fwriting.c: Likewise.
45765         * tests/test-getaddrinfo.c: Likewise.
45766         * tests/test-getpass.c: Likewise.
45767         * tests/test-gettimeofday.c: Likewise.
45768         * tests/test-hmac-md5.c: Likewise.
45769         * tests/test-hmac-sha1.c: Likewise.
45770         * tests/test-iconv.c: Likewise.
45771         * tests/test-iconvme.c: Likewise.
45772         * tests/test-inttypes.c: Likewise.
45773         * tests/test-isnan.c: Likewise.
45774         * tests/test-isnanf.c: Likewise.
45775         * tests/test-isnanl-nolibm.c: Likewise.
45776         * tests/test-isnanl.c: Likewise.
45777         * tests/test-isnanl.h: Likewise.
45778         * tests/test-ldexpl.c: Likewise.
45779         * tests/test-linked_list.c: Likewise.
45780         * tests/test-linkedhash_list.c: Likewise.
45781         * tests/test-locale.c: Likewise.
45782         * tests/test-localename.c: Likewise.
45783         * tests/test-lock.c: Likewise.
45784         * tests/test-lseek.c: Likewise.
45785         * tests/test-malloca.c: Likewise.
45786         * tests/test-math.c: Likewise.
45787         * tests/test-mbscasecmp.c: Likewise.
45788         * tests/test-mbscasestr1.c: Likewise.
45789         * tests/test-mbscasestr2.c: Likewise.
45790         * tests/test-mbscasestr3.c: Likewise.
45791         * tests/test-mbscasestr4.c: Likewise.
45792         * tests/test-mbschr.c: Likewise.
45793         * tests/test-mbscspn.c: Likewise.
45794         * tests/test-mbsncasecmp.c: Likewise.
45795         * tests/test-mbspbrk.c: Likewise.
45796         * tests/test-mbspcasecmp.c: Likewise.
45797         * tests/test-mbsrchr.c: Likewise.
45798         * tests/test-mbsspn.c: Likewise.
45799         * tests/test-mbsstr1.c: Likewise.
45800         * tests/test-mbsstr2.c: Likewise.
45801         * tests/test-mbsstr3.c: Likewise.
45802         * tests/test-md5.c: Likewise.
45803         * tests/test-memmem.c: Likewise.
45804         * tests/test-netinet_in.c: Likewise.
45805         * tests/test-open.c: Likewise.
45806         * tests/test-printf-frexp.c: Likewise.
45807         * tests/test-printf-frexpl.c: Likewise.
45808         * tests/test-printf-posix.c: Likewise.
45809         * tests/test-printf-posix.h: Likewise.
45810         * tests/test-rbtree_list.c: Likewise.
45811         * tests/test-rbtree_oset.c: Likewise.
45812         * tests/test-rbtreehash_list.c: Likewise.
45813         * tests/test-read-file.c: Likewise.
45814         * tests/test-rijndael.c: Likewise.
45815         * tests/test-search.c: Likewise.
45816         * tests/test-signbit.c: Likewise.
45817         * tests/test-sleep.c: Likewise.
45818         * tests/test-snprintf-posix.c: Likewise.
45819         * tests/test-snprintf-posix.h: Likewise.
45820         * tests/test-snprintf.c: Likewise.
45821         * tests/test-sprintf-posix.c: Likewise.
45822         * tests/test-sprintf-posix.h: Likewise.
45823         * tests/test-stat-time.c: Likewise.
45824         * tests/test-stdbool.c: Likewise.
45825         * tests/test-stdint.c: Likewise.
45826         * tests/test-stdio.c: Likewise.
45827         * tests/test-stdlib.c: Likewise.
45828         * tests/test-stpncpy.c: Likewise.
45829         * tests/test-strcasestr.c: Likewise.
45830         * tests/test-striconv.c: Likewise.
45831         * tests/test-striconveh.c: Likewise.
45832         * tests/test-striconveha.c: Likewise.
45833         * tests/test-string.c: Likewise.
45834         * tests/test-sys_select.c: Likewise.
45835         * tests/test-sys_socket.c: Likewise.
45836         * tests/test-sys_stat.c: Likewise.
45837         * tests/test-sys_time.c: Likewise.
45838         * tests/test-sysexits.c: Likewise.
45839         * tests/test-time.c: Likewise.
45840         * tests/test-tls.c: Likewise.
45841         * tests/test-trunc.c: Likewise.
45842         * tests/test-truncf.c: Likewise.
45843         * tests/test-truncl.c: Likewise.
45844         * tests/test-unistd.c: Likewise.
45845         * tests/test-vasnprintf-posix.c: Likewise.
45846         * tests/test-vasnprintf-posix2.c: Likewise.
45847         * tests/test-vasnprintf.c: Likewise.
45848         * tests/test-vasprintf-posix.c: Likewise.
45849         * tests/test-vasprintf.c: Likewise.
45850         * tests/test-verify.c: Likewise.
45851         * tests/test-vfprintf-posix.c: Likewise.
45852         * tests/test-vprintf-posix.c: Likewise.
45853         * tests/test-vsnprintf-posix.c: Likewise.
45854         * tests/test-vsnprintf.c: Likewise.
45855         * tests/test-vsprintf-posix.c: Likewise.
45856         * tests/test-wchar.c: Likewise.
45857         * tests/test-wctype.c: Likewise.
45858         * tests/test-wcwidth.c: Likewise.
45859         * tests/test-xstrtol.c: Likewise.
45860         * tests/test-xvasprintf.c: Likewise.
45861         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45862         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45863         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45864         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45865         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45866         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45867         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45868         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45869         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45870         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45871         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45872         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45873         * tests/uniname/test-uninames.c: Likewise.
45874         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45875         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45876         * tests/unistdio/test-u16-printf1.h: Likewise.
45877         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45878         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45879         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45880         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45881         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45882         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45883         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45884         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45885         * tests/unistdio/test-u32-printf1.h: Likewise.
45886         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45887         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45888         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45889         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45890         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45891         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45892         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45893         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45894         * tests/unistdio/test-u8-printf1.h: Likewise.
45895         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45896         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45897         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45898         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45899         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45900         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45901         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45902         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45903         * tests/unistdio/test-ulc-printf1.h: Likewise.
45904         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45905         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45906         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45907         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45908         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45909         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45910         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45911         * tests/uniwidth/test-u16-width.c: Likewise.
45912         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45913         * tests/uniwidth/test-u32-width.c: Likewise.
45914         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45915         * tests/uniwidth/test-u8-width.c: Likewise.
45916         * tests/uniwidth/test-uc_width.c: Likewise.
45917         * config/srclist-update: Likewise.
45918         (fixlicense): Update to GPLv3+.
45919
45920         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45921         * tests/test-tsearch.c: Change copyright notice.
45922
45923         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45924         * lib/c-strcaseeq.h: Change copyright notice.
45925         * lib/streq.h: Likewise.
45926         * lib/uniconv.h: Likewise.
45927         * lib/uniconv/u-conv-from-enc.h: Likewise.
45928         * lib/uniconv/u-conv-to-enc.h: Likewise.
45929         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45930         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45931         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45932         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45933         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45934         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45935         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45936         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45937         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45938         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45939         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45940         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45941         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45942         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45943         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45944         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45945         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45946         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45947         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45948         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45949         * lib/uniname.h: Likewise.
45950         * lib/uniname/uniname.c: Likewise.
45951         * lib/unistdio.h: Likewise.
45952         * lib/unistdio/u-asnprintf.h: Likewise.
45953         * lib/unistdio/u-asprintf.h: Likewise.
45954         * lib/unistdio/u-printf-args.c: Likewise.
45955         * lib/unistdio/u-printf-args.h: Likewise.
45956         * lib/unistdio/u-printf-parse.h: Likewise.
45957         * lib/unistdio/u-snprintf.h: Likewise.
45958         * lib/unistdio/u-sprintf.h: Likewise.
45959         * lib/unistdio/u-vasprintf.h: Likewise.
45960         * lib/unistdio/u-vsnprintf.h: Likewise.
45961         * lib/unistdio/u-vsprintf.h: Likewise.
45962         * lib/unistdio/u16-asnprintf.c: Likewise.
45963         * lib/unistdio/u16-asprintf.c: Likewise.
45964         * lib/unistdio/u16-printf-parse.c: Likewise.
45965         * lib/unistdio/u16-snprintf.c: Likewise.
45966         * lib/unistdio/u16-sprintf.c: Likewise.
45967         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45968         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45969         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45970         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45971         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45972         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45973         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45974         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45975         * lib/unistdio/u16-vasnprintf.c: Likewise.
45976         * lib/unistdio/u16-vasprintf.c: Likewise.
45977         * lib/unistdio/u16-vsnprintf.c: Likewise.
45978         * lib/unistdio/u16-vsprintf.c: Likewise.
45979         * lib/unistdio/u32-asnprintf.c: Likewise.
45980         * lib/unistdio/u32-asprintf.c: Likewise.
45981         * lib/unistdio/u32-printf-parse.c: Likewise.
45982         * lib/unistdio/u32-snprintf.c: Likewise.
45983         * lib/unistdio/u32-sprintf.c: Likewise.
45984         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45985         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45986         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45987         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45988         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45989         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45990         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45991         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45992         * lib/unistdio/u32-vasnprintf.c: Likewise.
45993         * lib/unistdio/u32-vasprintf.c: Likewise.
45994         * lib/unistdio/u32-vsnprintf.c: Likewise.
45995         * lib/unistdio/u32-vsprintf.c: Likewise.
45996         * lib/unistdio/u8-asnprintf.c: Likewise.
45997         * lib/unistdio/u8-asprintf.c: Likewise.
45998         * lib/unistdio/u8-printf-parse.c: Likewise.
45999         * lib/unistdio/u8-snprintf.c: Likewise.
46000         * lib/unistdio/u8-sprintf.c: Likewise.
46001         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
46002         * lib/unistdio/u8-u8-asprintf.c: Likewise.
46003         * lib/unistdio/u8-u8-snprintf.c: Likewise.
46004         * lib/unistdio/u8-u8-sprintf.c: Likewise.
46005         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
46006         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
46007         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
46008         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
46009         * lib/unistdio/u8-vasnprintf.c: Likewise.
46010         * lib/unistdio/u8-vasprintf.c: Likewise.
46011         * lib/unistdio/u8-vsnprintf.c: Likewise.
46012         * lib/unistdio/u8-vsprintf.c: Likewise.
46013         * lib/unistdio/ulc-asnprintf.c: Likewise.
46014         * lib/unistdio/ulc-asprintf.c: Likewise.
46015         * lib/unistdio/ulc-printf-parse.c: Likewise.
46016         * lib/unistdio/ulc-snprintf.c: Likewise.
46017         * lib/unistdio/ulc-sprintf.c: Likewise.
46018         * lib/unistdio/ulc-vasnprintf.c: Likewise.
46019         * lib/unistdio/ulc-vasprintf.c: Likewise.
46020         * lib/unistdio/ulc-vsnprintf.c: Likewise.
46021         * lib/unistdio/ulc-vsprintf.c: Likewise.
46022         * lib/unistr.h: Likewise.
46023         * lib/unistr/u-cpy-alloc.h: Likewise.
46024         * lib/unistr/u-cpy.h: Likewise.
46025         * lib/unistr/u-endswith.h: Likewise.
46026         * lib/unistr/u-move.h: Likewise.
46027         * lib/unistr/u-set.h: Likewise.
46028         * lib/unistr/u-startswith.h: Likewise.
46029         * lib/unistr/u-stpcpy.h: Likewise.
46030         * lib/unistr/u-stpncpy.h: Likewise.
46031         * lib/unistr/u-strcat.h: Likewise.
46032         * lib/unistr/u-strcpy.h: Likewise.
46033         * lib/unistr/u-strcspn.h: Likewise.
46034         * lib/unistr/u-strdup.h: Likewise.
46035         * lib/unistr/u-strlen.h: Likewise.
46036         * lib/unistr/u-strncat.h: Likewise.
46037         * lib/unistr/u-strncpy.h: Likewise.
46038         * lib/unistr/u-strnlen.h: Likewise.
46039         * lib/unistr/u-strpbrk.h: Likewise.
46040         * lib/unistr/u-strspn.h: Likewise.
46041         * lib/unistr/u-strstr.h: Likewise.
46042         * lib/unistr/u-strtok.h: Likewise.
46043         * lib/unistr/u16-check.c: Likewise.
46044         * lib/unistr/u16-chr.c: Likewise.
46045         * lib/unistr/u16-cmp.c: Likewise.
46046         * lib/unistr/u16-cpy-alloc.c: Likewise.
46047         * lib/unistr/u16-cpy.c: Likewise.
46048         * lib/unistr/u16-endswith.c: Likewise.
46049         * lib/unistr/u16-mblen.c: Likewise.
46050         * lib/unistr/u16-mbsnlen.c: Likewise.
46051         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46052         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46053         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46054         * lib/unistr/u16-mbtouc.c: Likewise.
46055         * lib/unistr/u16-mbtoucr.c: Likewise.
46056         * lib/unistr/u16-move.c: Likewise.
46057         * lib/unistr/u16-next.c: Likewise.
46058         * lib/unistr/u16-prev.c: Likewise.
46059         * lib/unistr/u16-set.c: Likewise.
46060         * lib/unistr/u16-startswith.c: Likewise.
46061         * lib/unistr/u16-stpcpy.c: Likewise.
46062         * lib/unistr/u16-stpncpy.c: Likewise.
46063         * lib/unistr/u16-strcat.c: Likewise.
46064         * lib/unistr/u16-strchr.c: Likewise.
46065         * lib/unistr/u16-strcmp.c: Likewise.
46066         * lib/unistr/u16-strcpy.c: Likewise.
46067         * lib/unistr/u16-strcspn.c: Likewise.
46068         * lib/unistr/u16-strdup.c: Likewise.
46069         * lib/unistr/u16-strlen.c: Likewise.
46070         * lib/unistr/u16-strmblen.c: Likewise.
46071         * lib/unistr/u16-strmbtouc.c: Likewise.
46072         * lib/unistr/u16-strncat.c: Likewise.
46073         * lib/unistr/u16-strncmp.c: Likewise.
46074         * lib/unistr/u16-strncpy.c: Likewise.
46075         * lib/unistr/u16-strnlen.c: Likewise.
46076         * lib/unistr/u16-strpbrk.c: Likewise.
46077         * lib/unistr/u16-strrchr.c: Likewise.
46078         * lib/unistr/u16-strspn.c: Likewise.
46079         * lib/unistr/u16-strstr.c: Likewise.
46080         * lib/unistr/u16-strtok.c: Likewise.
46081         * lib/unistr/u16-to-u32.c: Likewise.
46082         * lib/unistr/u16-to-u8.c: Likewise.
46083         * lib/unistr/u16-uctomb-aux.c: Likewise.
46084         * lib/unistr/u16-uctomb.c: Likewise.
46085         * lib/unistr/u32-check.c: Likewise.
46086         * lib/unistr/u32-chr.c: Likewise.
46087         * lib/unistr/u32-cmp.c: Likewise.
46088         * lib/unistr/u32-cpy-alloc.c: Likewise.
46089         * lib/unistr/u32-cpy.c: Likewise.
46090         * lib/unistr/u32-endswith.c: Likewise.
46091         * lib/unistr/u32-mblen.c: Likewise.
46092         * lib/unistr/u32-mbsnlen.c: Likewise.
46093         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46094         * lib/unistr/u32-mbtouc.c: Likewise.
46095         * lib/unistr/u32-mbtoucr.c: Likewise.
46096         * lib/unistr/u32-move.c: Likewise.
46097         * lib/unistr/u32-next.c: Likewise.
46098         * lib/unistr/u32-prev.c: Likewise.
46099         * lib/unistr/u32-set.c: Likewise.
46100         * lib/unistr/u32-startswith.c: Likewise.
46101         * lib/unistr/u32-stpcpy.c: Likewise.
46102         * lib/unistr/u32-stpncpy.c: Likewise.
46103         * lib/unistr/u32-strcat.c: Likewise.
46104         * lib/unistr/u32-strchr.c: Likewise.
46105         * lib/unistr/u32-strcmp.c: Likewise.
46106         * lib/unistr/u32-strcpy.c: Likewise.
46107         * lib/unistr/u32-strcspn.c: Likewise.
46108         * lib/unistr/u32-strdup.c: Likewise.
46109         * lib/unistr/u32-strlen.c: Likewise.
46110         * lib/unistr/u32-strmblen.c: Likewise.
46111         * lib/unistr/u32-strmbtouc.c: Likewise.
46112         * lib/unistr/u32-strncat.c: Likewise.
46113         * lib/unistr/u32-strncmp.c: Likewise.
46114         * lib/unistr/u32-strncpy.c: Likewise.
46115         * lib/unistr/u32-strnlen.c: Likewise.
46116         * lib/unistr/u32-strpbrk.c: Likewise.
46117         * lib/unistr/u32-strrchr.c: Likewise.
46118         * lib/unistr/u32-strspn.c: Likewise.
46119         * lib/unistr/u32-strstr.c: Likewise.
46120         * lib/unistr/u32-strtok.c: Likewise.
46121         * lib/unistr/u32-to-u16.c: Likewise.
46122         * lib/unistr/u32-to-u8.c: Likewise.
46123         * lib/unistr/u32-uctomb.c: Likewise.
46124         * lib/unistr/u8-check.c: Likewise.
46125         * lib/unistr/u8-chr.c: Likewise.
46126         * lib/unistr/u8-cmp.c: Likewise.
46127         * lib/unistr/u8-cpy-alloc.c: Likewise.
46128         * lib/unistr/u8-cpy.c: Likewise.
46129         * lib/unistr/u8-endswith.c: Likewise.
46130         * lib/unistr/u8-mblen.c: Likewise.
46131         * lib/unistr/u8-mbsnlen.c: Likewise.
46132         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46133         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46134         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46135         * lib/unistr/u8-mbtouc.c: Likewise.
46136         * lib/unistr/u8-mbtoucr.c: Likewise.
46137         * lib/unistr/u8-move.c: Likewise.
46138         * lib/unistr/u8-next.c: Likewise.
46139         * lib/unistr/u8-prev.c: Likewise.
46140         * lib/unistr/u8-set.c: Likewise.
46141         * lib/unistr/u8-startswith.c: Likewise.
46142         * lib/unistr/u8-stpcpy.c: Likewise.
46143         * lib/unistr/u8-stpncpy.c: Likewise.
46144         * lib/unistr/u8-strcat.c: Likewise.
46145         * lib/unistr/u8-strchr.c: Likewise.
46146         * lib/unistr/u8-strcmp.c: Likewise.
46147         * lib/unistr/u8-strcpy.c: Likewise.
46148         * lib/unistr/u8-strcspn.c: Likewise.
46149         * lib/unistr/u8-strdup.c: Likewise.
46150         * lib/unistr/u8-strlen.c: Likewise.
46151         * lib/unistr/u8-strmblen.c: Likewise.
46152         * lib/unistr/u8-strmbtouc.c: Likewise.
46153         * lib/unistr/u8-strncat.c: Likewise.
46154         * lib/unistr/u8-strncmp.c: Likewise.
46155         * lib/unistr/u8-strncpy.c: Likewise.
46156         * lib/unistr/u8-strnlen.c: Likewise.
46157         * lib/unistr/u8-strpbrk.c: Likewise.
46158         * lib/unistr/u8-strrchr.c: Likewise.
46159         * lib/unistr/u8-strspn.c: Likewise.
46160         * lib/unistr/u8-strstr.c: Likewise.
46161         * lib/unistr/u8-strtok.c: Likewise.
46162         * lib/unistr/u8-to-u16.c: Likewise.
46163         * lib/unistr/u8-to-u32.c: Likewise.
46164         * lib/unistr/u8-uctomb-aux.c: Likewise.
46165         * lib/unistr/u8-uctomb.c: Likewise.
46166         * lib/unitypes.h: Likewise.
46167         * lib/uniwidth.h: Likewise.
46168         * lib/uniwidth/cjk.h: Likewise.
46169         * lib/uniwidth/u16-strwidth.c: Likewise.
46170         * lib/uniwidth/u16-width.c: Likewise.
46171         * lib/uniwidth/u32-strwidth.c: Likewise.
46172         * lib/uniwidth/u32-width.c: Likewise.
46173         * lib/uniwidth/u8-strwidth.c: Likewise.
46174         * lib/uniwidth/u8-width.c: Likewise.
46175         * lib/uniwidth/width.c: Likewise.
46176
46177 2007-10-07  Bruno Haible  <bruno@clisp.org>
46178
46179         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46180         The file is still under LGPL (see modules/inttypes).
46181
46182 2007-10-06  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/trunc (Dependencies): Add 'extensions'.
46185         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46186         Reported by Ben Pfaff <blp@gnu.org>.
46187
46188 2007-10-06  Bruno Haible  <bruno@clisp.org>
46189
46190         * modules/freopen-tests: New file.
46191         * tests/test-freopen.c: New file.
46192
46193         * modules/fopen-tests: New file.
46194         * tests/test-fopen.c: New file.
46195
46196         * modules/fopen: New file.
46197         * lib/fopen.c: New file.
46198         * m4/fopen.m4: New file.
46199         * modules/freopen: New file.
46200         * lib/freopen.c: New file.
46201         * m4/freopen.m4: New file.
46202         * lib/stdio.in.h (fopen, freopen): New declarations.
46203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46204         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46205         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46206         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46207         * doc/functions/fopen.texi: Mention the 'fopen' module.
46208         * doc/functions/freopen.texi: Mention the 'freopen' module.
46209
46210 2007-10-06  Bruno Haible  <bruno@clisp.org>
46211
46212         * modules/open-tests: New file.
46213         * tests/test-open.c: New file.
46214
46215         * modules/open: New file.
46216         * lib/open.c: New file.
46217         * m4/open.m4: New file.
46218         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46219         lib/open.c does.
46220         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46221         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46222         macros.
46223         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46224         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46225         REPLACE_OPEN.
46226         * doc/functions/open.texi: Mention the 'open' module.
46227
46228 2007-10-04  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/ceill-tests: New file.
46231         * tests/test-ceill.c: New file.
46232
46233         * modules/ceill: New file.
46234         * lib/ceill.c: Replace entire file.
46235         * m4/ceill.m4: New file.
46236         * lib/math.in.h (ceill): Replace declaration.
46237         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46238         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46239         * doc/functions/ceill.texi: Mention the 'ceill' module.
46240         * modules/mathl (Files): Remove lib/ceill.c.
46241         (Depends-on): Add ceill.
46242
46243 2007-10-04  Bruno Haible  <bruno@clisp.org>
46244
46245         * modules/ceilf-tests: New file.
46246         * tests/test-ceilf.c: New file.
46247
46248         * modules/ceilf: New file.
46249         * lib/ceil.c: New file.
46250         * lib/ceilf.c: New file.
46251         * m4/ceilf.m4: New file.
46252         * lib/math.in.h (ceilf): New declaration.
46253         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46254         HAVE_DECL_CEILF.
46255         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46256         HAVE_DECL_CEILF.
46257         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46258
46259 2007-10-04  Bruno Haible  <bruno@clisp.org>
46260
46261         * modules/floorl-tests: New file.
46262         * tests/test-floorl.c: New file.
46263
46264         * modules/floorl: New file.
46265         * lib/floorl.c: Replace entire file.
46266         * m4/floorl.m4: New file.
46267         * lib/math.in.h (floorl): Replace declaration.
46268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46269         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46270         * doc/functions/floorl.texi: Mention the 'floorl' module.
46271         * modules/mathl (Files): Remove lib/floorl.c.
46272         (Depends-on): Add floorl.
46273
46274 2007-10-04  Bruno Haible  <bruno@clisp.org>
46275
46276         * modules/floorf-tests: New file.
46277         * tests/test-floorf.c: New file.
46278
46279         * modules/floorf: New file.
46280         * lib/floor.c: New file.
46281         * lib/floorf.c: New file.
46282         * m4/floorf.m4: New file.
46283         * lib/math.in.h (floorf): New declaration.
46284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46285         HAVE_DECL_FLOORF.
46286         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46287         HAVE_DECL_FLOORF.
46288         * doc/functions/floorf.texi: Mention the 'floorf' module.
46289
46290 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46291             Bruno Haible  <bruno@clisp.org>
46292
46293         Advertise for the Git server instead of the CVS server.
46294         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46295         repository instead of the CVS one.
46296         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46297         about all VCS systems generically.
46298         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46299
46300 2007-10-04  Bruno Haible  <bruno@clisp.org>
46301
46302         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46303         means.
46304         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46305
46306 2007-10-04  Bruno Haible  <bruno@clisp.org>
46307
46308         * modules/truncl-tests: New file.
46309         * tests/test-truncl.c: New file.
46310
46311         * modules/truncl: New file.
46312         * lib/truncl.c: New file.
46313         * m4/truncl.m4: New file.
46314         * lib/math.in.h (truncl): New declaration.
46315         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46316         HAVE_DECL_TRUNCL.
46317         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46318         HAVE_DECL_TRUNCL.
46319         * doc/functions/truncl.texi: Mention the 'truncl' module.
46320
46321 2007-10-04  Bruno Haible  <bruno@clisp.org>
46322
46323         * modules/truncf-tests: New file.
46324         * tests/test-truncf.c: New file.
46325
46326         * modules/truncf: New file.
46327         * lib/trunc.c: Make paramerizable through USE_* macros.
46328         * lib/truncf.c: New file.
46329         * m4/truncf.m4: New file.
46330         * lib/math.in.h (truncf): New declaration.
46331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46332         HAVE_DECL_TRUNCF.
46333         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46334         HAVE_DECL_TRUNCF.
46335         * doc/functions/truncf.texi: Mention the 'truncf' module.
46336
46337 2007-10-03  Bruno Haible  <bruno@clisp.org>
46338
46339         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46340         augmentation also for tests modules.
46341         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46342         * modules/atexit-tests (Makefile.am): Likewise.
46343         * modules/binary-io-tests (Makefile.am): Likewise.
46344         * modules/c-strcase-tests (Makefile.am): Likewise.
46345         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46346         * modules/canonicalize-tests (Makefile.am): Likewise.
46347         * modules/closein-tests (Makefile.am): Likewise.
46348         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46349         * modules/freadahead-tests (Makefile.am): Likewise.
46350         * modules/fseek-tests (Makefile.am): Likewise.
46351         * modules/fseeko-tests (Makefile.am): Likewise.
46352         * modules/ftell-tests (Makefile.am): Likewise.
46353         * modules/ftello-tests (Makefile.am): Likewise.
46354         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46355         * modules/isnanl-tests (Makefile.am): Likewise.
46356         * modules/lseek-tests (Makefile.am): Likewise.
46357         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46358         * modules/mbscasestr-tests (Makefile.am): Likewise.
46359         * modules/mbschr-tests (Makefile.am): Likewise.
46360         * modules/mbscspn-tests (Makefile.am): Likewise.
46361         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46362         * modules/mbspbrk-tests (Makefile.am): Likewise.
46363         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46364         * modules/mbsrchr-tests (Makefile.am): Likewise.
46365         * modules/mbsspn-tests (Makefile.am): Likewise.
46366         * modules/mbsstr-tests (Makefile.am): Likewise.
46367         * modules/printf-posix-tests (Makefile.am): Likewise.
46368         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46369         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46370         * modules/tsearch-tests (Makefile.am): Likewise.
46371         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46372         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46373         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46374         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46375         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46376         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46377         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46378         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46379         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46380         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46381         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46382         * modules/xstrtol-tests (Makefile.am): Likewise.
46383         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46384         * modules/yesno-tests (Makefile.am): Likewise.
46385
46386 2007-10-03  Bruno Haible  <bruno@clisp.org>
46387
46388         * modules/trunc-tests: New file.
46389         * tests/test-trunc.c: New file.
46390
46391         * modules/trunc: New file.
46392         * lib/trunc.c: New file.
46393         * m4/trunc.m4: New file.
46394         * lib/math.in.h (trunc): New declaration.
46395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46396         HAVE_DECL_TRUNC.
46397         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46398         HAVE_DECL_TRUNC.
46399         * doc/functions/trunc.texi: Mention the 'trunc' module.
46400
46401 2007-10-03  Bruno Haible  <bruno@clisp.org>
46402
46403         * tests/test-fpending.c: New file, mostly copied
46404         from coreutils/lib/t-fpending.c.
46405         * modules/fpending-tests: New file.
46406
46407 2007-10-03  Bruno Haible  <bruno@clisp.org>
46408
46409         Port the stdio extensions to QNX (untested).
46410         * lib/fseterr.c (fseterr): Add support for QNX.
46411         * lib/fbufmode.c (fbufmode): Likewise.
46412         * lib/freadable.c (freadable): Likewise.
46413         * lib/fwritable.c (fwritable): Likewise.
46414         * lib/freading.c (freading): Likewise.
46415         * lib/fwriting.c (fwriting): Likewise.
46416         * lib/freadahead.c (freadahed): Likewise.
46417         * lib/fpurge.c (fpurge): Likewise.
46418         * lib/fseeko.c (rpl_fseeko): Likewise.
46419
46420 2007-10-03  Bruno Haible  <bruno@clisp.org>
46421             Jim Meyering  <jim@meyering.net>
46422             Eric Blake  <ebb9@byu.net>
46423
46424         * doc/relocatable.texi: Use @command instead of @program.
46425
46426 2007-10-02  Jim Meyering  <jim@meyering.net>
46427
46428         Perform one more "_.h" -> ".in.h" substitution.
46429         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46430         instead of unistd_.h here, too.
46431
46432 2007-10-01  Bruno Haible  <bruno@clisp.org>
46433
46434         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46435         Needed for the alloca-opt module.
46436
46437 2007-09-30  Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46440         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46441         alloca_.h.
46442         * lib/argz.in.h: Renamed from lib/argz_.h.
46443         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46444         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46445         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46446         byteswap_.h.
46447         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46448         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46449         dirent_.h.
46450         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46451         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46452         fcntl_.h.
46453         * lib/float.in.h: Renamed from lib/float_.h.
46454         * modules/float (Files, Makefile.am): Use float.in.h instead of
46455         float_.h.
46456         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46457         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46458         fnmatch_.h.
46459         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46460         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46461         getopt_.h.
46462         * lib/glob.in.h: Renamed from lib/glob_.h.
46463         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46464         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46465         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46466         iconv_.h.
46467         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46468         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46469         inttypes_.h.
46470         * lib/locale.in.h: Renamed from lib/locale_.h.
46471         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46472         locale_.h.
46473         * lib/math.in.h: Renamed from lib/math_.h.
46474         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46475         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46476         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46477         of netinet_in_.h. Add dependency.
46478         * lib/poll.in.h: Renamed from lib/poll_.h.
46479         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46480         * lib/search.in.h: Renamed from lib/search_.h.
46481         * modules/search (Files, Makefile.am): Use search.in.h instead of
46482         search_.h.
46483         * lib/signal.in.h: Renamed from lib/signal_.h.
46484         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46485         _signal.h.
46486         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46487         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46488         stdbool_.h.
46489         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46490         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46491         stdint_.h.
46492         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46493         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46494         stdio_.h.
46495         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46496         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46497         stdlib_.h.
46498         * lib/string.in.h: Renamed from lib/string_.h.
46499         * modules/string (Files, Makefile.am): Use string.in.h instead of
46500         string_.h.
46501         * doc/gnulib-tool.texi (Initial import): Update.
46502         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46503         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46504         of sys_select_.h. Add dependency.
46505         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46506         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46507         of sys_socket_.h.
46508         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46509         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46510         sys_stat_.h.
46511         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46512         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46513         sys_time_.h.
46514         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46515         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46516         sysexits_.h.
46517         * lib/time.in.h: Renamed from lib/time_.h.
46518         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46519         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46520         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46521         unistd_.h.
46522         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46523         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46524         wchar_.h.
46525         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46526         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46527         wctype_.h.
46528         * build-aux/bootstrap (slurp): Update.
46529         * lib/.cppi-disable: Update.
46530
46531 2007-09-30  Bruno Haible  <bruno@clisp.org>
46532
46533         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46534         Needed on BeOS.
46535
46536 2007-09-30  Bruno Haible  <bruno@clisp.org>
46537
46538         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46539
46540 2007-09-29  Bruno Haible  <bruno@clisp.org>
46541
46542         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46543
46544 2007-09-29  Bruno Haible  <bruno@clisp.org>
46545
46546         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46547         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46548         * build-aux/install-reloc: Compile also areadlink.c.
46549         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46550
46551 2007-09-29  Bruno Haible  <bruno@clisp.org>
46552
46553         * gnulib-tool (func_emit_initmacro_done): Indentation.
46554
46555 2007-09-29  Bruno Haible  <bruno@clisp.org>
46556
46557         * README: Add CVS checkout update instructions.
46558         Info from Bob Proulx <bob@proulx.com>.
46559
46560 2007-09-28  Eric Blake  <ebb9@byu.net>
46561
46562         Provide move-if-change.
46563         * build-aux/move-if-change: New file, based on best practice
46564         rather than any canonical upstream location.
46565
46566 2007-09-28  Jim Meyering  <jim@meyering.net>
46567
46568         Fix canonicalize loop-detection corner case.
46569         Do not attempt to stat the symlink values stored via seen_triple.
46570         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46571         on linux-2.6.18, (but not 2.6.22).
46572         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46573         triple_compare.  The former compares dev,ino,filename, while the latter
46574         would actually stat dirname(filename) when dev and ino were equal.
46575         * lib/hash-triple.c: Install <string.h>.
46576         (STREQ): Define.
46577         (triple_compare_ino_str): New function.
46578         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46579
46580 2007-09-28  Eric Blake  <ebb9@byu.net>
46581
46582         Enforce that AC_REPLACE_FUNCS files exist.
46583         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46584         override check for typos.
46585
46586         Fix test-closein on Solaris 10.
46587         * tests/test-closein.c (main): Don't assume stdin can be inherited
46588         closed on all systems.
46589         * tests/test-closein.sh: Likewise.
46590         Reported by Piotr Tarnowski.
46591
46592 2007-09-28  Jim Meyering  <jim@meyering.net>
46593
46594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46595
46596 2007-09-27  Jim Meyering  <jim@meyering.net>
46597
46598         canonicalize: Avoid a false-positive cycle failure.
46599         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46600         Sort.  Remove cycle-check.
46601         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46602         not cycle-check.h.
46603         (seen_triple): New function.
46604         (canonicalize_filename_mode): Use it instead of cycle-check.
46605         * tests/test-canonicalize.c: Add a test for this bug.
46606         * tests/test-canonicalize.sh: Set up and run the test.
46607
46608         New module, file-set, from coreutils.
46609         * modules/file-set: Define it.
46610         * lib/file-set.c, lib/file-set.h: Implement.
46611
46612         New module, hash-triple, from coreutils.
46613         * modules/hash-triple: Define it.
46614         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46615
46616 2007-09-25  Eric Blake  <ebb9@byu.net>
46617
46618         Fix strerror on Interix.
46619         * lib/string_.h (strerror): Declare replacement.
46620         * doc/functions/strerror.texi (strerror): Document the Interix
46621         shortcoming.
46622         * modules/string (Makefile.am): Support new hooks.
46623         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46624         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46625         gl_FUNC_STRERROR_SEPARATE.
46626         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46627         * lib/strerror.c (rpl_strerror): Provide replacement.
46628         * modules/strerror (Depends-on): Add string.
46629         (configure.ac): Detect use of module.
46630         * tests/test-strerror.c: New file.
46631         * modules/strerror-tests: New test module.
46632         * modules/argp (Depends-on): Add strerror.
46633         * modules/error (Depends-on): Likewise.
46634         Reported by Martin Koeppe.
46635
46636 2007-09-24  Bruno Haible  <bruno@clisp.org>
46637
46638         * README: Update git instructions.
46639
46640 2007-09-24  Eric Blake  <ebb9@byu.net>
46641
46642         Revert fpending breakage from 2007-09-08.
46643         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46644         __fpending.c.
46645
46646 2007-09-24  Jim Meyering  <jim@meyering.net>
46647
46648         filenamecat.c: Add a test.
46649         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46650         showing how the function works when DIR is the empty string.
46651
46652 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46653
46654         * tests/test-canonicalize.sh: Turn on executable bit.
46655
46656 2007-09-19  Eric Blake  <ebb9@byu.net>
46657
46658         * README: Update CVS instructions.
46659
46660 2007-09-18  Bruno Haible  <bruno@clisp.org>
46661
46662         * modules/areadlink: New file.
46663         * lib/areadlink.h (areadlink): New declaration.
46664         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46665
46666 2007-09-17  Jim Meyering  <jim@meyering.net>
46667
46668         * lib/savewd.c (ESTALE) [!defined]: Define.
46669         Reported to be required on Interix by Martin Koeppe.
46670
46671 2007-09-17  Bruno Haible  <bruno@clisp.org>
46672
46673         * gnulib-tool (func_version): Use $version.
46674
46675 2007-09-16  Bruno Haible  <bruno@clisp.org>
46676
46677         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46678         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46679         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46680         Reported by Greg Schafer <gschafer@zip.com.au>.
46681
46682 2007-09-15  Bruno Haible  <bruno@clisp.org>
46683
46684         * gnulib-tool (sed): Try a little harder to make bash understand the
46685         alias.
46686         Reported by Bruce Korb <bruce.korb@gmail.com>.
46687
46688 2007-09-13  Eric Blake  <ebb9@byu.net>
46689
46690         * ChangeLog: Remove conflict markers.
46691
46692 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46693
46694         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46695         Reported by Bruno Haible <bruno@clisp.org>.
46696
46697 2007-09-12  Bruno Haible  <bruno@clisp.org>
46698
46699         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46700         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46701         is not defined.
46702
46703 2007-09-12  Eric Blake  <ebb9@byu.net>
46704
46705         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46706         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46707         Autoconf definition.
46708         * modules/euidaccess (Depends-on): Add extensions, for
46709         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46710         * modules/fnmatch (Depends-on): Likewise.
46711         * modules/getaddrinfo (Depends-on): Likewise.
46712         * modules/getdelim (Depends-on): Likewise.
46713         * modules/getline (Depends-on): Likewise.
46714         * modules/getsubopt (Depends-on): Likewise.
46715         * modules/gettext (Depends-on): Likewise.
46716         * modules/group-member (Depends-on): Likewise.
46717         * modules/mbchar (Depends-on): Likewise.
46718         * modules/memmem (Depends-on): Likewise.
46719         * modules/mempcpy (Depends-on): Likewise.
46720         * modules/memrchr (Depends-on): Likewise.
46721         * modules/pagealign_alloc (Depends-on): Likewise.
46722         * modules/readutmp (Depends-on): Likewise.
46723         * modules/stpcpy (Depends-on): Likewise.
46724         * modules/stpncpy (Depends-on): Likewise.
46725         * modules/strchrnul (Depends-on): Likewise.
46726         * modules/strndup (Depends-on): Likewise.
46727         * modules/strsep (Depends-on): Likewise.
46728         * modules/strverscmp (Depends-on): Likewise.
46729         * modules/vasprintf (Depends-on): Likewise.
46730         * modules/wcwidth (Depends-on): Likewise.
46731         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46732         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46733         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46734         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46736         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46737         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46738         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46739         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46740         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46741         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46742         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46743         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46744         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46745         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46746         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46747         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46748         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46749         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46750         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46751         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46752         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46753         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46754         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46755         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46757         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46758         so that lock.m4 can be used in gettext without extensions module.
46759
46760 2007-09-11  Bruno Haible  <bruno@clisp.org>
46761
46762         * m4/isc-posix.m4: Remove file.
46763         Suggested by Eric Blake.
46764
46765 2007-09-11  Eric Blake  <ebb9@byu.net>
46766
46767         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46768
46769 2007-09-10  Bruno Haible  <bruno@clisp.org>
46770
46771         * posix-modules: Fix typo in error message.
46772         Reported by Matt <mkraai@beckman.com>.
46773
46774 2007-09-09  Bruno Haible  <bruno@clisp.org>
46775
46776         * doc/functions/getdelim.texi: Update list of platforms lacking the
46777         function.
46778         * doc/functions/getline.texi: Likewise.
46779
46780 2007-09-09  Jim Meyering  <jim@meyering.net>
46781
46782         * lib/hash.c (hash_initialize): Detect calloc failure.
46783         Reported by Bruno Haible.
46784
46785 2007-09-09  Bruno Haible  <bruno@clisp.org>
46786
46787         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46788         malloc or realloc fails.
46789
46790 2007-09-09  Bruno Haible  <bruno@clisp.org>
46791
46792         * modules/getcwd (Depends-on): Add malloc-posix.
46793         * modules/glob (Depends-on): Likewise.
46794         * modules/putenv (Depends-on): Likewise.
46795         * modules/strdup (Depends-on): Likewise.
46796         * modules/getdelim (Depends-on): Add realloc-posix.
46797         * modules/read-file (Depends-on): Likewise.
46798
46799 2007-09-09  Bruno Haible  <bruno@clisp.org>
46800
46801         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46802         (gl_FUNC_MALLOC_POSIX): Require it.
46803         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46804         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46805         * modules/realloc (Files): Add m4/malloc.m4.
46806         * modules/calloc (Files): Likewise.
46807
46808 2007-09-09  Bruno Haible  <bruno@clisp.org>
46809
46810         * modules/malloc-posix: New file.
46811         * modules/malloc (Depends-on): Add malloc-posix.
46812         * lib/malloc.c: Include errno.h.
46813         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46814         and a POSIX-compatible malloc into a single function. Set ENOMEM
46815         when returning NULL.
46816         * m4/malloc.m4: New file.
46817         * doc/functions/malloc.texi: Mention the malloc-posix module.
46818         * lib/stdlib_.h (malloc): New declaration.
46819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46820         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46821         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46822         and HAVE_MALLOC_POSIX.
46823
46824 2007-09-09  Bruno Haible  <bruno@clisp.org>
46825
46826         * modules/realloc-posix: New file.
46827         * modules/realloc (Depends-on): Add realloc-posix.
46828         * lib/realloc.c: Include errno.h.
46829         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46830         and a POSIX-compatible realloc into a single function. Set ENOMEM
46831         when returning NULL.
46832         * m4/realloc.m4: New file.
46833         * doc/functions/realloc.texi: Mention the realloc-posix module.
46834         * lib/stdlib_.h (realloc): New declaration.
46835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46836         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46837         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46838         and HAVE_REALLOC_POSIX.
46839
46840 2007-09-09  Bruno Haible  <bruno@clisp.org>
46841
46842         * modules/calloc-posix: New file.
46843         * modules/calloc (Depends-on): Add calloc-posix.
46844         * lib/calloc.c: Include errno.h.
46845         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46846         and a POSIX-compatible calloc into a single function. Set ENOMEM
46847         when returning NULL.
46848         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46849         * doc/functions/calloc.texi: Mention the calloc-posix module.
46850         * lib/stdlib_.h (calloc): New declaration.
46851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46852         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46853         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46854         and HAVE_CALLOC_POSIX.
46855
46856 2007-09-09  Bruno Haible  <bruno@clisp.org>
46857
46858         Allow for modules to show an arbitrary notice.
46859         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46860         * gnulib-tool: New option --extract-notice.
46861         (func_usage): Document it.
46862         (sed_extract_prog): Update.
46863         (func_get_notice): New function.
46864         (func_modules_notice): New function.
46865         (func_import, func_create_testdir): Invoke it.
46866         Suggested by Jim Meyering.
46867
46868 2007-09-09  Bruno Haible  <bruno@clisp.org>
46869
46870         * gnulib-tool: New options --verbose, --quiet.
46871         (func_usage): Document them.
46872         (verbose): New variable.
46873         (func_execute_command): New function.
46874         (func_import): Don't show the module list and the file list if
46875         $verbose < 0.
46876         (func_create_testdir): Likewise. Use func_execute_command.
46877         (func_create_megatestdir): Use func_execute_command.
46878
46879 2007-09-08  Bruno Haible  <bruno@clisp.org>
46880
46881         * gnulib-tool (func_import): Prefer rsync over wget when available,
46882         for fetching the PO files.
46883
46884 2007-09-08  Bruno Haible  <bruno@clisp.org>
46885
46886         * posix-modules: New file. Portions copied from gnulib-tool.
46887         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46888
46889 2007-09-08  Jim Meyering  <jim@meyering.net>
46890
46891         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46892         * lib/fpending.h: Rename from __fpending.h.
46893         * lib/fpending.c: Rename from __fpending.c.
46894         Include "fpending.h", not "__fpending.h".
46895         * lib/__fpending.h, lib/__fpending.c: Remove files.
46896         * modules/fpending (Files): Reflect new file names.
46897         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46898
46899 2007-09-08  Bruno Haible  <bruno@clisp.org>
46900
46901         * m4/inttypes-h.m4: Remove stub file.
46902
46903 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46904
46905         * doc/headers/stdint.texi: Discuss #include_next issue.
46906
46907 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46908
46909         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46910
46911 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46912
46913         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46914         in variable name.
46915
46916 2007-09-03  Jim Meyering  <jim@meyering.net>
46917
46918         New module: git-version-gen.
46919         * modules/git-version-gen: New file.
46920
46921         Import changes from coreutils for bootstrap script.
46922
46923         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46924
46925         bootstrap: uses rsync to download the .po files
46926         * build-aux/bootstrap (po_download_command_format): New global.
46927         (download_po_files): Use rsync.
46928         (update_po_files): Don't remove .po files after download,
46929         so future rsync runs can take advantage of the copies.
46930
46931         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46932
46933         Solve the unnecessary-.po-file-regeneration problem once and for all.
46934         * build-aux/bootstrap (download_po_files): New function, renamed from
46935         get_translations.  Now, downloads, but doesn't update LINGUAS.
46936         (update_po_files): New function.
46937
46938         bootstrap: Ignore more.
46939         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46940         uniwidth to e.g., lib/.gitignore.
46941         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46942
46943         * build-aux/bootstrap: New setting: vc_ignore.
46944         (insert_sorted_if_absent): Create $file if absent.
46945         Adapt to new, possibly empty, list: $vc_ignore.
46946
46947         bootstrap: generate more ignorable names
46948         * build-aux/bootstrap (slurp): When generating ignorable names,
46949         also map .sin to .sed, .gperf to .c, and .y to .c.
46950
46951 2007-09-03  Jim Meyering  <jim@meyering.net>
46952
46953         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46954         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46955
46956 2007-09-02  Bruno Haible  <bruno@clisp.org>
46957
46958         Fix mis-recognition of 'mcs' on QNX 6.
46959         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46960         output contains the string "Mono".
46961         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46962         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46963
46964 2007-09-01  Bruno Haible  <bruno@clisp.org>
46965
46966         Fix collision between uniwidth/* and linebreak modules.
46967         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46968         u32_width): Remove declarations.
46969         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46970         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46971         streq3, streq2, streq1, streq0): Remove functions.
46972         (STREQ): Remove macro.
46973         (is_cjk_encoding): Remove function.
46974         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46975         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46976         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46977         * NEWS: Document the change.
46978
46979 2007-09-01  Bruno Haible  <bruno@clisp.org>
46980
46981         * lib/streq.h: Add double-inclusion guard.
46982
46983 2007-09-01  Karl Berry  <karl@gnu.org>
46984
46985         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46986
46987 2007-08-28  Jim Meyering  <jim@meyering.net>
46988
46989         Rename mreadlink_with_size to areadlink_with_size.
46990         * NEWS: Document the change.
46991         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46992         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46993         * lib/mreadlink.h: Rename this to...
46994         * lib/areadlink.h: ...this.
46995         * modules/mreadlink-with-size: Rename this to...
46996         * modules/areadlink-with-size: ...this.
46997         * lib/canonicalize.c: Reflect the renaming.
46998         * modules/canonicalize: Likewise.
46999
47000 2007-08-26  Bruno Haible  <bruno@clisp.org>
47001
47002         * gnulib-tool (func_import): When deciding which files to remove,
47003         consider also dangling symbolic links.
47004         Reported by Eric Blake.
47005
47006 2007-08-26  Bruno Haible  <bruno@clisp.org>
47007
47008         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
47009
47010 2007-08-23  Simon Josefsson  <simon@josefsson.org>
47011
47012         * lib/readline.c: Don't include getline.h, the prototype is now
47013         found in stdio.h.
47014
47015 2007-08-23  Jim Meyering  <jim@meyering.net>
47016
47017         Getdelim touchup.
47018         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
47019         around the funlockfile call, since funlockfile never sets errno.
47020         Don't set errno upon failed realloc.
47021
47022 2007-08-22  Eric Blake  <ebb9@byu.net>
47023
47024         Getline touchups.
47025         * lib/getdelim.c (getdelim): Revert regression that required *n to
47026         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
47027         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
47028         getdelim, rather than whether implementation is missing.
47029         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
47030         * lib/stdio_.h (getline): Also declare if replacement is
47031         required.
47032         * doc/functions/getdelim.texi: New file.
47033         * doc/functions/getline.texi: Likewise.
47034         * doc/gnulib.texi (Function Substitutes): Add new files.
47035         Reported by Bruno Haible.
47036
47037 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
47038
47039         * users.txt: Add Guile.
47040
47041 2007-08-22  Eric Blake  <ebb9@byu.net>
47042
47043         * tests/test-getdelim.c (main): Use remove, not unlink.
47044         * tests/test-getline.c (main): Likewise.
47045
47046         Move getline and getdelim into stdio.h, per POSIX 200x.
47047         * modules/getline (Files): Remove getline.h.
47048         (Depends-on): Add stdio.
47049         (configure.ac): Add module indicator.
47050         * modules/getdelim (Files): Remove getdelim.h.
47051         (Depends-on): Add stdio.
47052         (configure.ac): Add module indicator.
47053         * modules/stdio (Makefile.am): Work with new indicators.
47054         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47055         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47056         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47057         * lib/getdelim.h: Delete.
47058         * lib/getline.h: Delete.
47059         * lib/stdio_.h (getdelim, getline): Declare.
47060         * modules/getdelim-tests: New module.
47061         * modules/getline-tests: Likewise.
47062         * tests/test-getdelim.c: New file.
47063         * tests/test-getline.c: Likewise.
47064         * NEWS: Document the change.
47065         * lib/getline.c: Update choice of header.
47066         * lib/csharpcomp.c: Likewise.
47067         * lib/getpass.c: Likewise.
47068         * lib/javacomp.c: Likewise.
47069         * lib/javaversion.c: Likewise.
47070         * lib/yesno.c: Likewise.
47071         * lib/getdelim.c: Likewise.
47072         (getdelim): Set errno on failure, and avoid memory leak.
47073
47074 2007-08-19  Bruno Haible  <bruno@clisp.org>
47075
47076         * modules/closein (Depends-on): Add freadahead.
47077         * lib/closein.c: Include freadahead.h.
47078         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47079         is zero.
47080
47081 2007-08-19  Bruno Haible  <bruno@clisp.org>
47082
47083         * modules/freadahead-tests: New file.
47084         * tests/test-freadahead.sh: New file.
47085         * tests/test-freadahead.c: New file.
47086
47087         * modules/freadahead: New file.
47088         * lib/freadahead.h: New file.
47089         * lib/freadahead.c: New file.
47090         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47091         fbufmode, fpurge, freadable, fwritable.
47092
47093 2007-08-19  Eric Blake  <ebb9@byu.net>
47094
47095         Test yesno in combination with closein.
47096         * lib/yesno.c (yesno): Document use of stdin.
47097         * modules/yesno-tests (Files): New module.
47098         * tests/test-yesno.c (main): New file.
47099         * tests/test-yesno.sh: Likewise.
47100
47101 2007-08-19  Bruno Haible  <bruno@clisp.org>
47102
47103         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47104         * lib/fseeko.c (rpl_fseeko): Likewise.
47105         * lib/fseterr.c (fseterr): Likewise.
47106
47107 2007-08-19  Bruno Haible  <bruno@clisp.org>
47108
47109         * tests/test-lseek.c (main): Disable a test for BeOS.
47110         * doc/functions/lseek.texi: Document the BeOS bug.
47111
47112 2007-08-19  Bruno Haible  <bruno@clisp.org>
47113             Eric Blake  <ebb9@byu.net>
47114
47115         * lib/lseek.c: Include <sys/stat.h>.
47116         (rpl_lseek): Add workaround code also for Unix platforms.
47117         Needed for BeOS.
47118         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47119         * doc/functions/lseek.texi: Document BeOS definiency.
47120
47121 2007-08-18  Bruno Haible  <bruno@clisp.org>
47122
47123         * modules/fstrcmp-tests: New file.
47124         * tests/test-fstrcmp.c: New file.
47125
47126 2007-08-18  Bruno Haible  <bruno@clisp.org>
47127
47128         * modules/fstrcmp: New file, from GNU gettext with modifications.
47129         * lib/fstrcmp.h: New file, from GNU gettext.
47130         * lib/fstrcmp.c: New file, from GNU gettext.
47131         * MODULES.html.sh (String handling): Add fstrcmp.
47132
47133 2007-08-18  Bruno Haible  <bruno@clisp.org>
47134
47135         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47136         'bool'.
47137         (diag, compareseq): Remove const from the ctxt argument.
47138         (USE_HEURISTIC): Undefine at the end.
47139
47140 2007-08-18  Jim Meyering  <jim@meyering.net>
47141
47142         New file: lib/idcache.h
47143         * NEWS: Mention the addition.
47144         * modules/idcache (Files): Add lib/idcache.h
47145         * lib/idcache.c: Include "idcache.h".
47146         Don't include <sys/types.h>.
47147         Add a FIXME comment.
47148         Move file-scoped "static" declarations to the top.
47149         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47150
47151 2007-08-17  Bruno Haible  <bruno@clisp.org>
47152         and Paul Eggert  <eggert@cs.ucla.edu>
47153
47154         * MODULES.html.sh: Add diffseq.
47155         * modules/diffseq: New file.
47156         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47157         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47158
47159 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47160
47161         Import changes from coreutils for bootstrap script.
47162
47163         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47164
47165         * build-aux/bootstrap (slurp): Work even in environments where
47166         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47167         current code does not slurp files whose names start with ".", and
47168         this looks like it might be a troublesome area.
47169
47170         2007-07-11  Jim Meyering  <jim@meyering.net>
47171
47172         If there's a GPL vN copyright comment, require that N == 3.
47173
47174         2007-07-08  Jim Meyering  <jim@meyering.net>
47175
47176         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47177         * build-aux/bootstrap (mam_template): Move definition out of loop.
47178
47179         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47180
47181         * build-aux/bootstrap (symlink_to_dir): Rename function from
47182         symlink_to_gnulib.  Add a directory parameter.  Update all
47183         callers.
47184         (cp_mark_as_generated): Also check for -- and link to -- files in
47185         gl/.
47186
47187         2007-07-08  Jim Meyering  <jim@meyering.net>
47188
47189         Adapt to deeper hierarchy in gnulib.
47190         * build-aux/bootstrap (symlink_to_dir): If the destination
47191         directory doesn't exist, create it. This is required at least for
47192         "lib/uniwidth/cjk.h".
47193
47194         2007-05-15  Jim Meyering  <jim@meyering.net>
47195
47196         * build-aux/bootstrap: Now that generated Makefile.am files
47197         are no longer under version control, they must be created at
47198         bootstrap time.
47199
47200 2007-08-14  Ben Pfaff  <blp@gnu.org>
47201
47202         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47203
47204 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47205
47206         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47207         given the changes below.
47208         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47209         even on hosts that have padding bits beyond the supported 64.
47210
47211 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47212
47213         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47214         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47215         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47216         depends on it.
47217         (xstrtol_error): Remove.
47218         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47219         but with a different signature.
47220         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47221         * lib/xstrtol-error.c: Include exitfail.h.
47222         (xstrtol_fatal): New function, with a different signature from the
47223         old xstrtol_error, so that the caller need not worry about passing
47224         in an exit status, or about storage management of the option argument.
47225         (xstrtol_error): Now a static function.  Redo signature to
47226         implement xstrtol_fatal.  Output the correct number of hyphens in
47227         front of the option so that the caller need not worry about
47228         storage management.
47229         (N_): New macro.
47230         (_): Remove; not used now.
47231         * modules/xstrtol: Depend on getopt.
47232         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47233         of old STRTOL_FATAL_ERROR macro.
47234         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47235         of test program.
47236         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47237         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47238
47239 2007-08-08  Eric Blake  <ebb9@byu.net>
47240
47241         * lib/xstrtol-error.c: Add missing include.
47242
47243         Move xstrtol messages into gnulib domain, when --pobase is used.
47244         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47245         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47246         * modules/xstrtol (Files): Distribute new file.
47247         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47248         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47249         * tests/test-xstrtol.c: ...into new file.
47250         * tests/test-xstrtoul.c: Also test xstrtoul.
47251         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47252         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47253         * tests/test-xstrtol.sh: Drive the tests.
47254         * tests/test-xstrtoimax.sh: Likewise.
47255         * tests/test-xstrtoumax.sh: Likewise.
47256         * modules/xstrtol-tests: New module.
47257         * modules/xstrtoimax-tests: Likewise.
47258         * modules/xstrtoumax-tests: Likewise.
47259
47260 2007-08-08  Jim Meyering  <jim@meyering.net>
47261
47262         New function: mfile_name_concat.
47263         * lib/filenamecat.c (mfile_name_concat): New function, just like
47264         file_name_concat, but return NULL upon failure rather than exiting
47265         with a diagnostic.
47266         * lib/filenamecat.h: Declare it.
47267
47268 2007-08-07  Bruno Haible  <bruno@clisp.org>
47269
47270         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47271         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47272         warning from gcc.
47273         Reported by Eric Blake.
47274
47275 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47276
47277         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47278         * modules/crypto/arcfour (License): Likewise.
47279         * modules/crypto/des-tests (License): Likewise.
47280         * modules/crypto/gc-arctwo-tests (License): Likewise.
47281         * modules/crypto/gc-des-tests (License): Likewise.
47282         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47283         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47284         * modules/crypto/gc-md2-tests (License): Likewise.
47285         * modules/crypto/gc-md4-tests (License): Likewise.
47286         * modules/crypto/gc-md5-tests (License): Likewise.
47287         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47288         * modules/crypto/gc-rijndael-tests (License): Likewise.
47289         * modules/crypto/gc-sha1-tests (License): Likewise.
47290         * modules/crypto/gc-tests (License): Likewise.
47291         * modules/crypto/hmac-md5 (License): Likewise.
47292         * modules/crypto/hmac-sha1 (License): Likewise.
47293         * modules/crypto/md2-tests (License): Likewise.
47294         * modules/crypto/md4-tests (License): Likewise.
47295         * modules/crypto/md5 (License): Likewise.
47296         * modules/crypto/rijndael (License): Likewise.
47297         * modules/crypto/sha1 (License): Likewise.
47298         * modules/memxor (License): Likewise.
47299
47300 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47301         and Bruno Haible  <bruno@clisp.org>
47302
47303         * NEWS: Describe interface changes to human, xstrtol.
47304         * lib/human.h: Include <xstrtol.h>.
47305         (human_options): Return enum strtol_error, not int.  Remove
47306         bool arg; take int * instead.
47307         * lib/human.c: Don't include "gettext.h".
47308         (_): Remove; no longer used.
47309         Don't include <xstrtol.h>, since human.h does it.
47310         (human_options): Adjust to abovementioned interface changes.
47311         Do not report error to stderr; that's now the caller's
47312         responsibility.
47313         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47314         interface change.
47315         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47316         Str, Argument_type_string.  All uses changed.  Put " argument"
47317         in diagnostics to make them clearer.  Change wording of suffix
47318         message for clarity.
47319         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47320         Argument_type_string.
47321         (STRTOL_FATAL_WARN): Remove; no longer used.
47322         * modules/human (Depends-on): Remove gettext-h.
47323
47324 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47325
47326         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47327
47328 2007-07-31  Bruno Haible  <bruno@clisp.org>
47329
47330         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47331         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47332         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47333
47334 2007-07-31  Bruno Haible  <bruno@clisp.org>
47335
47336         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47337         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47338
47339 2007-07-30  Bruno Haible  <bruno@clisp.org>
47340
47341         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47342         * modules/c-ctype (License): Likewise.
47343         * modules/c-strcase (License): Likewise.
47344         * modules/check-version (License): Likewise.
47345         * modules/iconv (License): Likewise.
47346         * modules/iconv_open (License): Likewise.
47347         * modules/read-file (License): Likewise.
47348         * modules/striconv (License): Likewise.
47349         * modules/strverscmp (License): Likewise.
47350         * modules/vasprintf (License): Likewise.
47351         * modules/crypto/des (License): Likewise.
47352         * modules/crypto/gc (License): Likewise.
47353         * modules/crypto/gc-arcfour (License): Likewise.
47354         * modules/crypto/gc-arctwo (License): Likewise.
47355         * modules/crypto/gc-des (License): Likewise.
47356         * modules/crypto/gc-hmac-md5 (License): Likewise.
47357         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47358         * modules/crypto/gc-md2 (License): Likewise.
47359         * modules/crypto/gc-md4 (License): Likewise.
47360         * modules/crypto/gc-md5 (License): Likewise.
47361         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47362         * modules/crypto/gc-random (License): Likewise.
47363         * modules/crypto/gc-rijndael (License): Likewise.
47364         * modules/crypto/gc-sha1 (License): Likewise.
47365         * modules/crypto/md2 (License): Likewise.
47366         * modules/crypto/md4 (License): Likewise.
47367
47368 2007-07-30  Jim Meyering  <jim@meyering.net>
47369
47370         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47371         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47372         it has valid stat data.  This bug would cause du not to count the
47373         sizes of inaccessible directories.
47374         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47375         in <http://bugzilla.redhat.com/250077>.
47376
47377 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47378             Bruno Haible  <bruno@clisp.org>
47379
47380         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47381         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47382         #include_next, gives a diagnostic about it, but reports no error in
47383         the exit code.
47384         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47385
47386 2007-07-24  Ben Pfaff  <blp@gnu.org>
47387
47388         Improve name: "count-one-bits" is better than "popcount".
47389         * MODULES.html.sh: Update name.
47390         * lib/popcount.h: Renamed lib/count-one-bits.h.
47391         (popcount): Renamed count_one_bits.
47392         (popcountl): Renamed count_one_bits_l.
47393         (popcountll): Renamed count_one_bits_ll.
47394         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47395         * modules/popcount: Renamed module/count-one-bits.
47396         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47397         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47398
47399 2007-07-23  Ben Pfaff  <blp@gnu.org>
47400
47401         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47402         better code generation, and add U to large constants to avoid
47403         warnings, in non-GCC case.
47404         Suggested by Bruno Haible.
47405
47406 2007-07-23  Ben Pfaff  <blp@gnu.org>
47407
47408         * lib/popcount.h: Use verify_true instead of if...abort.
47409         * modules/popcount: Depend on verify module.
47410         Suggested by Jim Meyering.
47411
47412 2007-07-23  Bruno Haible  <bruno@clisp.org>
47413
47414         * gnulib-tool (func_import): Create a .cvsignore file also when the
47415         directory is not yet in CVS but the toplevel directory is. When
47416         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47417         Reported by Karl Berry.
47418
47419 2007-07-22  Ben Pfaff  <blp@gnu.org>
47420
47421         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47422         case.
47423         Suggested by Eric Blake.
47424
47425 2007-07-22  Ben Pfaff  <blp@gnu.org>
47426
47427         New module: popcount.
47428         * MODULES.html.sh: Add popcount.
47429         * modules/popcount: New file.
47430         * modules/popcount-tests: New file.
47431         * tests/test-popcount.c: New file.
47432         * lib/popcount.h: New file.
47433         * m4/popcount.m4: New file.
47434
47435 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47436
47437         * build-aux/announce-gen: Update to GPLv3.
47438
47439         * build-aux/config.guess: Update from config.
47440
47441 2007-07-21  Bruno Haible  <bruno@clisp.org>
47442
47443         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47444         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47445
47446 2007-07-20  Jim Meyering  <jim@meyering.net>
47447
47448         * check-module: Diagnose a self-dependency.
47449
47450 2007-07-19  Bruno Haible  <bruno@clisp.org>
47451
47452         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47453         empty.
47454         Reported by Eric Blake.
47455
47456 2007-07-18  Bruno Haible  <bruno@clisp.org>
47457
47458         * gnulib-tool: New options --po-base, --po-domain.
47459         (func_usage): Document them.
47460         (pobase, po_domain): New variables.
47461         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47462         DEFAULT_TEXT_DOMAIN.
47463         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47464         (func_import): Consider pobase and po_domain. Create a po/ directory.
47465         (func_create_testdir): Set pobase and po_domain to empty.
47466         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47467         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47468
47469 2007-07-18  Bruno Haible  <bruno@clisp.org>
47470
47471         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47472         EXTRA_DIST augmentation for files in build-aux/.
47473
47474 2007-07-16  Bruno Haible  <bruno@clisp.org>
47475
47476         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47477         * modules/getdelim (License): Likewise.
47478
47479 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47480
47481         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47482         * modules/d-type (License): Likewise.
47483         * modules/extensions (License): Likewise.
47484         * modules/fnmatch (License): Likewise.
47485         * modules/fseeko (License): Likewise.
47486         * modules/getaddrinfo (License): Likewise.
47487         * modules/getline (License): Likewise.
47488         * modules/getlogin_r (License): Likewise.
47489         * modules/getpass (License): Likewise.
47490         * modules/gettimeofday (License): Likewise.
47491         * modules/glob (License): Likewise.
47492         * modules/inet_ntop (License): Likewise.
47493         * modules/malloc (License): Likewise.
47494         * modules/malloca (License): Likewise.
47495         * modules/memmem (License): Likewise.
47496         * modules/mempcpy (License): Likewise.
47497         * modules/memset (License): Likewise.
47498         * modules/minmax (License): Likewise.
47499         * modules/mktime (License): Likewise.
47500         * modules/netinet_in (License): Likewise.
47501         * modules/pathmax (License): Likewise.
47502         * modules/poll (License): Likewise.
47503         * modules/regex (License): Likewise.
47504         * modules/snprintf (License): Likewise.
47505         * modules/stdbool (License): Likewise.
47506         * modules/stdint (License): Likewise.
47507         * modules/stdio (License): Likewise.
47508         * modules/strcase (License): Likewise.
47509         * modules/strcasestr (License): Likewise.
47510         * modules/strdup (License): Likewise.
47511         * modules/string (License): Likewise.
47512         * modules/strndup (License): Likewise.
47513         * modules/strnlen (License): Likewise.
47514         * modules/strpbrk (License): Likewise.
47515         * modules/strptime (License): Likewise.
47516         * modules/strsep (License): Likewise.
47517         * modules/sys_select (License): Likewise.
47518         * modules/sys_socket (License): Likewise.
47519         * modules/sys_stat (License): Likewise.
47520         * modules/sys_time (License): Likewise.
47521         * modules/time (License): Likewise.
47522         * modules/time_r (License): Likewise.
47523         * modules/timegm (License): Likewise.
47524         * modules/unistd (License): Likewise.
47525         * modules/vsnprintf (License): Likewise.
47526         * modules/wctype (License): Likewise.
47527
47528 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47529
47530         * modules/argz (License): LGPLv2+.
47531
47532 2007-07-15  Karl Berry  <karl@gnu.org>
47533
47534         * doc/gnulib.texi: revise node structure per new fdl.texi.
47535
47536 2007-07-14  Bruno Haible  <bruno@clisp.org>
47537
47538         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47539         the output file.
47540         * lib/uniname/uninames.h: Regenerated.
47541
47542 2007-07-14  Karl Berry  <karl@gnu.org>
47543
47544         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47545         omitting sectioning and index commands.
47546
47547 2007-07-13  Bruno Haible  <bruno@clisp.org>
47548
47549         New gnulib-tool option --more-symlinks.
47550         * gnulib-tool (func_usage): Document --more-symlinks.
47551         (do_copyrights): New variable.
47552         Recognize option --more-symlinks.
47553         (func_import): Don't add a copyright notice transform to
47554         sed_transform_lib_file if do_copyrights is empty.
47555
47556 2007-07-13  Bruno Haible  <bruno@clisp.org>
47557
47558         * lib/vasnprintf.c (decimal_point_char): Define also if
47559         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47560         && !NEED_PRINTF_DIRECTIVE_A.
47561         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47562         Gary V. Vaughan <gary@gnu.org>.
47563
47564 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47565
47566         * lib/inttypes_.h: Undo previous change, since it was fixed
47567         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47568
47569 2007-07-13  Bruno Haible  <bruno@clisp.org>
47570
47571         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47572         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47573
47574 2007-07-13  Jim Meyering  <jim@meyering.net>
47575
47576         df: Don't fail for Tru64's "file-on-file mount".
47577         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47578         so we fall through and use statfs instead.  Details here:
47579         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47580         Reported by Albert Chin.
47581
47582 2007-07-13  Bruno Haible  <bruno@clisp.org>
47583
47584         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47585         * modules/configmake (License): Likewise.
47586         * modules/gettext (License): Likewise.
47587         * modules/gettext-h (License): Likewise.
47588         * modules/include_next (License): Likewise.
47589         * modules/link-warning (License): Likewise.
47590         * modules/localcharset (License): Likewise.
47591         * modules/localename (License): Likewise.
47592         * modules/lock (License): Likewise.
47593         * modules/relocatable-lib-lgpl (License): Likewise.
47594         * modules/size_max (License): Likewise.
47595         * modules/vasnprintf (License): Likewise.
47596         * modules/wchar (License): Likewise.
47597         * modules/xsize (License): Likewise.
47598
47599 2007-07-13  Bruno Haible  <bruno@clisp.org>
47600
47601         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47602         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47603
47604 2007-07-12  Bruno Haible  <bruno@clisp.org>
47605
47606         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47607         in the modules files.
47608
47609 2007-07-11  Karl Berry  <karl@gnu.org>
47610
47611         * MODULES.html.sh (func_module): use
47612          sed -e '\|^'"${includefile}"'$|d'
47613          instead of /.../d, to avoid errors on $includefile's containing /.
47614
47615 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47616
47617         * gnulib-tool (func_import): Avoid duplication of --avoid
47618         statements
47619         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47620         names to `_' in variable names.
47621
47622 2007-07-10  Eric Blake  <ebb9@byu.net>
47623
47624         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47625         * NEWS: Document this change.
47626
47627 2007-07-08  Bruno Haible  <bruno@clisp.org>
47628
47629         Update to Unicode 5.0.
47630         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47631         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47632         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47633         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47634         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47635         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47636         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47637         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47638         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47639         U+10A3F, U+1D242..U+1D244.
47640         (nonspacing_table_ind): Update.
47641         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47642         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47643
47644 2007-07-08  Bruno Haible  <bruno@clisp.org>
47645
47646         Update to Unicode 5.0.
47647         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47648         code transform. Extend the name index field of unicode_name_to_code and
47649         unicode_code_to_name from 16 to 24 bits.
47650         * lib/uniname/uniname.c (unicode_character_name,
47651         unicode_name_character): Add the range 0x12xxx to the code transform.
47652         * lib/uniname/uninames.h: Regenerated.
47653         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47654
47655 2007-07-07  Bruno Haible  <bruno@clisp.org>
47656
47657         * modules/wcwidth-tests: New file.
47658         * tests/test-wcwidth.c: New file.
47659
47660         Work around MacOS X wcwidth() bug.
47661         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47662         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47663         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47664         original wcwidth in non-UTF-8 locales.
47665         * modules/wcwidth (Depends-on): Add localcharset, streq,
47666         uniwidth/width.
47667         * doc/functions/wcwidth.texi: Update.
47668
47669 2007-07-07  Bruno Haible  <bruno@clisp.org>
47670
47671         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47672         (wcwidth): New declaration.
47673         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47674         macros.
47675         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47676         here. Prepare for creating <wchar.h> unconditionally.
47677         * modules/wchar (Depends-on): Add link-warning.
47678         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47679         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47680         * lib/wcwidth.h: Remove file.
47681         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47682         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47683         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47684         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47685         (Include): Replace wcwidth.h with <wchar.h>.
47686         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47687         * lib/mbchar.h: Don't include wcwidth.h.
47688         * lib/mbswidth.c: Likewise.
47689         * NEWS: Mention the change.
47690
47691 2007-07-07  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47694         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47695         definition with an external declaration.
47696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47697         defined as a function. Remove AC_C_INLINE requirement.
47698         * modules/wcwidth (Files): Add lib/wcwidth.c.
47699         (Makefile.am): Remove redundant statement.
47700
47701 2007-07-07  Bruno Haible  <bruno@clisp.org>
47702
47703         * MODULES.html.sh (Unicode string functions): Add the new modules.
47704
47705         * tests/uniwidth/test-u32-strwidth.c: New file.
47706         * modules/uniwidth/u32-strwidth-tests: New file.
47707
47708         * lib/uniwidth/u32-strwidth.c: New file.
47709         * modules/uniwidth/u32-strwidth: New file.
47710
47711         * tests/uniwidth/test-u16-strwidth.c: New file.
47712         * modules/uniwidth/u16-strwidth-tests: New file.
47713
47714         * lib/uniwidth/u16-strwidth.c: New file.
47715         * modules/uniwidth/u16-strwidth: New file.
47716
47717         * tests/uniwidth/test-u8-strwidth.c: New file.
47718         * modules/uniwidth/u8-strwidth-tests: New file.
47719
47720         * lib/uniwidth/u8-strwidth.c: New file.
47721         * modules/uniwidth/u8-strwidth: New file.
47722
47723         * tests/uniwidth/test-u32-width.c: New file.
47724         * modules/uniwidth/u32-width-tests: New file.
47725
47726         * lib/uniwidth/u32-width.c: New file.
47727         * modules/uniwidth/u32-width: New file.
47728
47729         * tests/uniwidth/test-u16-width.c: New file.
47730         * modules/uniwidth/u16-width-tests: New file.
47731
47732         * lib/uniwidth/u16-width.c: New file.
47733         * modules/uniwidth/u16-width: New file.
47734
47735         * tests/uniwidth/test-u8-width.c: New file.
47736         * modules/uniwidth/u8-width-tests: New file.
47737
47738         * lib/uniwidth/u8-width.c: New file.
47739         * modules/uniwidth/u8-width: New file.
47740
47741         * tests/uniwidth/test-uc_width.c: New file.
47742         * modules/uniwidth/width-tests: New file.
47743
47744         * lib/uniwidth/width.c: New file, from GNU libiconv.
47745         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47746         * modules/uniwidth/width: New file.
47747
47748         * lib/uniwidth.h: New file, from GNU libiconv.
47749         * modules/uniwidth/base: New file.
47750
47751 2007-07-07  Bruno Haible  <bruno@clisp.org>
47752
47753         * lib/uniname.h: New file, from GNU gettext.
47754         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47755         * lib/uniname/uninames.h: New file, from GNU gettext.
47756         * lib/uniname/uniname.c: New file, from GNU gettext.
47757         * tests/uniname/test-uninames.sh: New file.
47758         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47759         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47760         * modules/uniname/base: New file.
47761         * modules/uniname/uniname: New file.
47762         * modules/uniname/uniname-tests: New file.
47763         * MODULES.html.sh (Unicode string functions): Add the new modules.
47764
47765 2007-07-06  Bruno Haible  <bruno@clisp.org>
47766
47767         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47768
47769 2007-07-06  Bruno Haible  <bruno@clisp.org>
47770
47771         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47772         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47773         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47774         include <sys/time.h>.
47775         Reported by Eric Blake.
47776
47777 2007-07-06  Eric Blake  <ebb9@byu.net>
47778
47779         Fix testing canonicalize on cygwin.
47780         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47781         Revert patch from 2007-06-19.
47782         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47783         canonicalize module is also in use.
47784         * tests/test-canonicalize.c: New file.
47785         * tests/test-canonicalize.sh: Likewise.
47786         * modules/canonicalize-tests: Likewise.
47787
47788 2007-07-06  Jim Meyering  <jim@meyering.net>
47789
47790         * lib/getugroups.c (getugroups): Detect getgrent failure.
47791         Adjust comment to reflect reality: this function may return -1.
47792
47793 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47794
47795         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47796         the new TP address.
47797         (usage): Fix typo
47798         (gnulib_mk): New variable.
47799
47800 2007-07-05  Jim Meyering  <jim@meyering.net>
47801
47802         Don't let endgrent clobber errno, no matter how improbable.
47803         * lib/getugroups.c (getugroups): Save and restore errno around
47804         endgrent call.
47805
47806         Close the group DB even when failing with 2^31 or more members.
47807         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47808
47809 2007-07-04  Jim Meyering  <jim@meyering.net>
47810
47811         * lib/getugroups.h: New file.
47812         * lib/getugroups.c: Include "getugroups.h".
47813         Remove uses of "register" keyword.
47814         Move local variable, "cp", down into scope where used.
47815         Give "username" parameter the "const" attribute.
47816         * modules/getugroups (Files): Add lib/getugroups.h
47817
47818 2007-07-04  Karl Berry  <karl@gnu.org>
47819
47820         * MODULES.html.sh (func_all_modules): Complete rename of
47821         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47822
47823 2007-07-02  Bruno Haible  <bruno@clisp.org>
47824
47825         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47826         mode, when inttypes.h comes from gnulib.
47827         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47828
47829 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47830
47831         * NEWS: Mention lgpl module name change.
47832
47833         * modules/lgpl-2.1: Renamed from lgpl.
47834
47835         * NEWS: Mention gpl module name change.
47836
47837         * modules/gpl-3.0: New file, based on gpl-2.0.
47838
47839         * modules/gpl-2.0: Renamed from gpl.
47840
47841         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47842         doc/gpl-2.0.texi.
47843
47844 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47845
47846         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47847         #define __STDC_LIMIT_MACROS temporarily while including
47848         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47849         Problem reported by Joel E. Denny in
47850         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47851
47852 2007-07-01  Bruno Haible  <bruno@clisp.org>
47853
47854         * lib/unistdio.h: New file.
47855         * lib/unistdio/u-asnprintf.h: New file.
47856         * lib/unistdio/u-asprintf.h: New file.
47857         * lib/unistdio/u-printf-args.c: New file.
47858         * lib/unistdio/u-printf-args.h: New file.
47859         * lib/unistdio/u-printf-parse.h: New file.
47860         * lib/unistdio/u-snprintf.h: New file.
47861         * lib/unistdio/u-sprintf.h: New file.
47862         * lib/unistdio/u-vasprintf.h: New file.
47863         * lib/unistdio/u-vsnprintf.h: New file.
47864         * lib/unistdio/u-vsprintf.h: New file.
47865         * lib/unistdio/ulc-asnprintf.c: New file.
47866         * lib/unistdio/ulc-asprintf.c: New file.
47867         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47868         * lib/unistdio/ulc-printf-parse.c: New file.
47869         * lib/unistdio/ulc-snprintf.c: New file.
47870         * lib/unistdio/ulc-sprintf.c: New file.
47871         * lib/unistdio/ulc-vasnprintf.c: New file.
47872         * lib/unistdio/ulc-vasprintf.c: New file.
47873         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47874         * lib/unistdio/ulc-vsnprintf.c: New file.
47875         * lib/unistdio/ulc-vsprintf.c: New file.
47876         * lib/unistdio/u8-asnprintf.c: New file.
47877         * lib/unistdio/u8-asprintf.c: New file.
47878         * lib/unistdio/u8-printf-parse.c: New file.
47879         * lib/unistdio/u8-snprintf.c: New file.
47880         * lib/unistdio/u8-sprintf.c: New file.
47881         * lib/unistdio/u8-vasnprintf.c: New file.
47882         * lib/unistdio/u8-vasprintf.c: New file.
47883         * lib/unistdio/u8-vsnprintf.c: New file.
47884         * lib/unistdio/u8-vsprintf.c: New file.
47885         * lib/unistdio/u8-u8-asnprintf.c: New file.
47886         * lib/unistdio/u8-u8-asprintf.c: New file.
47887         * lib/unistdio/u8-u8-snprintf.c: New file.
47888         * lib/unistdio/u8-u8-sprintf.c: New file.
47889         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47890         * lib/unistdio/u8-u8-vasprintf.c: New file.
47891         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47892         * lib/unistdio/u8-u8-vsprintf.c: New file.
47893         * lib/unistdio/u16-asnprintf.c: New file.
47894         * lib/unistdio/u16-asprintf.c: New file.
47895         * lib/unistdio/u16-printf-parse.c: New file.
47896         * lib/unistdio/u16-snprintf.c: New file.
47897         * lib/unistdio/u16-sprintf.c: New file.
47898         * lib/unistdio/u16-vasnprintf.c: New file.
47899         * lib/unistdio/u16-vasprintf.c: New file.
47900         * lib/unistdio/u16-vsnprintf.c: New file.
47901         * lib/unistdio/u16-vsprintf.c: New file.
47902         * lib/unistdio/u16-u16-asnprintf.c: New file.
47903         * lib/unistdio/u16-u16-asprintf.c: New file.
47904         * lib/unistdio/u16-u16-snprintf.c: New file.
47905         * lib/unistdio/u16-u16-sprintf.c: New file.
47906         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47907         * lib/unistdio/u16-u16-vasprintf.c: New file.
47908         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47909         * lib/unistdio/u16-u16-vsprintf.c: New file.
47910         * lib/unistdio/u32-asnprintf.c: New file.
47911         * lib/unistdio/u32-asprintf.c: New file.
47912         * lib/unistdio/u32-printf-parse.c: New file.
47913         * lib/unistdio/u32-snprintf.c: New file.
47914         * lib/unistdio/u32-sprintf.c: New file.
47915         * lib/unistdio/u32-vasnprintf.c: New file.
47916         * lib/unistdio/u32-vasprintf.c: New file.
47917         * lib/unistdio/u32-vsnprintf.c: New file.
47918         * lib/unistdio/u32-vsprintf.c: New file.
47919         * lib/unistdio/u32-u32-asnprintf.c: New file.
47920         * lib/unistdio/u32-u32-asprintf.c: New file.
47921         * lib/unistdio/u32-u32-snprintf.c: New file.
47922         * lib/unistdio/u32-u32-sprintf.c: New file.
47923         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47924         * lib/unistdio/u32-u32-vasprintf.c: New file.
47925         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47926         * lib/unistdio/u32-u32-vsprintf.c: New file.
47927         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47928         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47929         * tests/unistdio/test-ulc-printf1.h: New file.
47930         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47931         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47932         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47933         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47934         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47935         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47936         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47937         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47938         * tests/unistdio/test-u8-asnprintf1.c: New file.
47939         * tests/unistdio/test-u8-asnprintf1.h: New file.
47940         * tests/unistdio/test-u8-printf1.h: New file.
47941         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47942         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47943         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47944         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47945         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47946         * tests/unistdio/test-u8-vasprintf1.c: New file.
47947         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47948         * tests/unistdio/test-u8-vsprintf1.c: New file.
47949         * tests/unistdio/test-u16-asnprintf1.c: New file.
47950         * tests/unistdio/test-u16-asnprintf1.h: New file.
47951         * tests/unistdio/test-u16-printf1.h: New file.
47952         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47953         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47954         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47955         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47956         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47957         * tests/unistdio/test-u16-vasprintf1.c: New file.
47958         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47959         * tests/unistdio/test-u16-vsprintf1.c: New file.
47960         * tests/unistdio/test-u32-asnprintf1.c: New file.
47961         * tests/unistdio/test-u32-asnprintf1.h: New file.
47962         * tests/unistdio/test-u32-printf1.h: New file.
47963         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47964         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47965         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47966         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47967         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47968         * tests/unistdio/test-u32-vasprintf1.c: New file.
47969         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47970         * tests/unistdio/test-u32-vsprintf1.c: New file.
47971         * modules/unistdio/base: New file.
47972         * modules/unistdio/u-printf-args: New file.
47973         * modules/unistdio/ulc-asnprintf: New file.
47974         * modules/unistdio/ulc-asprintf: New file.
47975         * modules/unistdio/ulc-fprintf: New file.
47976         * modules/unistdio/ulc-printf-parse: New file.
47977         * modules/unistdio/ulc-snprintf: New file.
47978         * modules/unistdio/ulc-sprintf: New file.
47979         * modules/unistdio/ulc-vasnprintf: New file.
47980         * modules/unistdio/ulc-vasprintf: New file.
47981         * modules/unistdio/ulc-vfprintf: New file.
47982         * modules/unistdio/ulc-vsnprintf: New file.
47983         * modules/unistdio/ulc-vsprintf: New file.
47984         * modules/unistdio/u8-asnprintf: New file.
47985         * modules/unistdio/u8-asprintf: New file.
47986         * modules/unistdio/u8-printf-parse: New file.
47987         * modules/unistdio/u8-snprintf: New file.
47988         * modules/unistdio/u8-sprintf: New file.
47989         * modules/unistdio/u8-vasnprintf: New file.
47990         * modules/unistdio/u8-vasprintf: New file.
47991         * modules/unistdio/u8-vsnprintf: New file.
47992         * modules/unistdio/u8-vsprintf: New file.
47993         * modules/unistdio/u8-u8-asnprintf: New file.
47994         * modules/unistdio/u8-u8-asprintf: New file.
47995         * modules/unistdio/u8-u8-snprintf: New file.
47996         * modules/unistdio/u8-u8-sprintf: New file.
47997         * modules/unistdio/u8-u8-vasnprintf: New file.
47998         * modules/unistdio/u8-u8-vasprintf: New file.
47999         * modules/unistdio/u8-u8-vsnprintf: New file.
48000         * modules/unistdio/u8-u8-vsprintf: New file.
48001         * modules/unistdio/u16-asnprintf: New file.
48002         * modules/unistdio/u16-asprintf: New file.
48003         * modules/unistdio/u16-printf-parse: New file.
48004         * modules/unistdio/u16-snprintf: New file.
48005         * modules/unistdio/u16-sprintf: New file.
48006         * modules/unistdio/u16-vasnprintf: New file.
48007         * modules/unistdio/u16-vasprintf: New file.
48008         * modules/unistdio/u16-vsnprintf: New file.
48009         * modules/unistdio/u16-vsprintf: New file.
48010         * modules/unistdio/u16-u16-asnprintf: New file.
48011         * modules/unistdio/u16-u16-asprintf: New file.
48012         * modules/unistdio/u16-u16-snprintf: New file.
48013         * modules/unistdio/u16-u16-sprintf: New file.
48014         * modules/unistdio/u16-u16-vasnprintf: New file.
48015         * modules/unistdio/u16-u16-vasprintf: New file.
48016         * modules/unistdio/u16-u16-vsnprintf: New file.
48017         * modules/unistdio/u16-u16-vsprintf: New file.
48018         * modules/unistdio/u32-asnprintf: New file.
48019         * modules/unistdio/u32-asprintf: New file.
48020         * modules/unistdio/u32-printf-parse: New file.
48021         * modules/unistdio/u32-snprintf: New file.
48022         * modules/unistdio/u32-sprintf: New file.
48023         * modules/unistdio/u32-vasnprintf: New file.
48024         * modules/unistdio/u32-vasprintf: New file.
48025         * modules/unistdio/u32-vsnprintf: New file.
48026         * modules/unistdio/u32-vsprintf: New file.
48027         * modules/unistdio/u32-u32-asnprintf: New file.
48028         * modules/unistdio/u32-u32-asprintf: New file.
48029         * modules/unistdio/u32-u32-snprintf: New file.
48030         * modules/unistdio/u32-u32-sprintf: New file.
48031         * modules/unistdio/u32-u32-vasnprintf: New file.
48032         * modules/unistdio/u32-u32-vasprintf: New file.
48033         * modules/unistdio/u32-u32-vsnprintf: New file.
48034         * modules/unistdio/u32-u32-vsprintf: New file.
48035         * modules/unistdio/ulc-asnprintf-tests: New file.
48036         * modules/unistdio/ulc-vasnprintf-tests: New file.
48037         * modules/unistdio/ulc-vasprintf-tests: New file.
48038         * modules/unistdio/ulc-vsnprintf-tests: New file.
48039         * modules/unistdio/ulc-vsprintf-tests: New file.
48040         * modules/unistdio/u8-asnprintf-tests: New file.
48041         * modules/unistdio/u8-vasnprintf-tests: New file.
48042         * modules/unistdio/u8-vasprintf-tests: New file.
48043         * modules/unistdio/u8-vsnprintf-tests: New file.
48044         * modules/unistdio/u8-vsprintf-tests: New file.
48045         * modules/unistdio/u16-asnprintf-tests: New file.
48046         * modules/unistdio/u16-vasnprintf-tests: New file.
48047         * modules/unistdio/u16-vasprintf-tests: New file.
48048         * modules/unistdio/u16-vsnprintf-tests: New file.
48049         * modules/unistdio/u16-vsprintf-tests: New file.
48050         * modules/unistdio/u32-asnprintf-tests: New file.
48051         * modules/unistdio/u32-vasnprintf-tests: New file.
48052         * modules/unistdio/u32-vasprintf-tests: New file.
48053         * modules/unistdio/u32-vsnprintf-tests: New file.
48054         * modules/unistdio/u32-vsprintf-tests: New file.
48055         * MODULES.html.sh (Unicode string functions): Add the new modules.
48056
48057 2007-07-01  Bruno Haible  <bruno@clisp.org>
48058
48059         * lib/sprintf.c (sprintf): Limit the available length estimation,
48060         to avoid address wraparound.
48061         * lib/vsprintf.c (vsprintf): Likewise.
48062         * modules/sprintf-posix (Dependencies): Add stdint.
48063         * modules/vsprintf-posix (Dependencies): Likewise.
48064
48065 2007-07-01  Bruno Haible  <bruno@clisp.org>
48066
48067         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48068         Windows PATH as well. Conservative double-quoting. Comments.
48069
48070 2007-07-01  Bruno Haible  <bruno@clisp.org>
48071             Eric Blake  <ebb9@byu.net>
48072             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48073
48074         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48075         empty components in $PATH, denoting '.'.
48076
48077 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48078
48079         * gnulib-tool: Fix indentation.
48080         (func_create_megatestdir): Likewise.
48081         Report by Bruno Haible.
48082
48083 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48084
48085         Sync from Automake.
48086         * build-aux/gnupload: Fix shell portability issues with for loops.
48087         Report by Karl Berry.
48088
48089 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48090
48091         * build-aux/maint.mk (POURL): Use translationproject.org.
48092
48093 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48094             Bruno Haible  <bruno@clisp.org>
48095
48096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48097         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48098         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48099         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48100         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48101
48102 2007-06-27  Bruno Haible  <bruno@clisp.org>
48103
48104         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48105         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48106
48107 2007-06-26  Karl Berry  <karl@gnu.org>
48108
48109         * MODULES.html.sh: remove xreadlink-with-size.
48110
48111 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48112
48113         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48114         method that I hope also handles the double-include problem noted
48115         by Bruno Haible in
48116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48117
48118 2007-06-23  Bruno Haible  <bruno@clisp.org>
48119
48120         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48121         Don't let the 'mostlyclean' target fail if the last subdirectory could
48122         not be removed.
48123         Reported by Karl Berry.
48124
48125 2007-06-23  Bruno Haible  <bruno@clisp.org>
48126
48127         * gnulib-tool (echo): Add a speedier workaround for ksh.
48128         * tests/test-echo.sh: Likewise.
48129
48130 2007-06-23  Bruno Haible  <bruno@clisp.org>
48131
48132         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48133         * tests/test-echo.sh: Likewise.
48134
48135 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48136
48137         * gnulib-tool (IFS): Initialize early, so we don't set it to
48138         empty later.
48139         (self_abspathname): Rewrite algorithm to set it, reindent.
48140         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48141         (func_create_megatestdir): Merge some sed scripts.
48142
48143 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48144
48145         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48146         exposed by Sun Studio 11 cc on Solaris 8.
48147
48148 2007-06-22  Bruno Haible  <bruno@clisp.org>
48149
48150         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48151         backslashes.
48152         * tests/test-echo.sh: New file.
48153
48154 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48155
48156         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48157         simplify `sed_replace_build_aux' scripts, they are portable but
48158         echoing them with `echo' is not.
48159         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48160
48161 2007-06-21  Karl Berry  <karl@gnu.org>
48162
48163         * config/srclist.txt: guess we can't handle the licenses via
48164         srclist at the moment.
48165
48166 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48167
48168         * MODULES.html.sh: Add include_next.
48169         * modules/include_next: New file.
48170
48171 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48172
48173         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48174         INCLUDE_NEXT.
48175         (gl_CHECK_NEXT_HEADERS): New macro.
48176         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48177         the obsolescent gl_ABSOLUTE_HEADER.
48178         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48179         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48180         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48181         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48182         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48183         * m4/math_h.m4 (gl_MATH_H): Likewise.
48184         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48185         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48186         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48187         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48188         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48189         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48190         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48191         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48192         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48194         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48195         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48196         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48197         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48198         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48199         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48200         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48201         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48202         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48203         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48204         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48205         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48206         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48207         * lib/float_.h: Likewise.
48208         * lib/inttypes_.h: Likewise.
48209         * lib/math_.h: Likewise.
48210         * lib/search_.h: Likewise.
48211         * lib/signal_.h: Likewise.
48212         * lib/stdint_.h: Likewise.
48213         * lib/stdio_.h: Likewise.
48214         * lib/stdlib_.h: Likewise.
48215         * lib/string_.h: Likewise.
48216         * lib/sys_stat_.h: Likewise.
48217         * lib/sys_time_.h: Likewise.
48218         * lib/time_.h: Likewise.
48219         * lib/unistd_.h: Likewise.
48220         * lib/wchar_.h: Likewise.
48221         * lib/wctype_.h: Likewise.
48222         * lib/dirent_.h: Likewise.
48223         * lib/iconv_.h: Likewise.
48224         * lib/locale_.h: Likewise.
48225         * lib/netinet_in_.h: Likewise.
48226         * lib/sys_select_.h: Likewise.
48227         * lib/sys_socket_.h: Likewise.
48228         * lib/sysexits_.h: Likewise.
48229         * modules/fcntl (Depends-on): Depend on include_next, not
48230         absolute_header.
48231         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48232         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48233         * modules/fchdir: Likewise.
48234         * modules/float: Likewise.
48235         * modules/iconv_open: Likewise.
48236         * modules/inttypes: Likewise.
48237         * modules/locale: Likewise.
48238         * modules/math: Likewise.
48239         * modules/netinet_in: Likewise.
48240         * modules/search: Likewise.
48241         * modules/signal: Likewise.
48242         * modules/stdint: Likewise.
48243         * modules/stdio: Likewise.
48244         * modules/stdlib: Likewise.
48245         * modules/string: Likewise.
48246         * modules/sys_select: Likewise.
48247         * modules/sys_socket: Likewise.
48248         * modules/sys_stat: Likewise.
48249         * modules/sys_time: Likewise.
48250         * modules/sysexits: Likewise.
48251         * modules/time: Likewise.
48252         * modules/unistd: Likewise.
48253         * modules/wchar: Likewise.
48254         * modules/wctype: Likewise.
48255         * modules/sys_stat: Change maintainer to "all".
48256         * modules/unistd: Likewise.
48257
48258 2007-06-20  Karl Berry  <karl@gnu.org>
48259
48260         * config/srclist.txt: track www changes in license files.
48261
48262 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48263
48264         * build-aux/bootstrap: Remove stray dot.
48265         Make sure build_aux settings are honored when linking
48266         gnulib_extra_files.
48267
48268 2007-06-19  Eric Blake  <ebb9@byu.net>
48269
48270         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48271         Allow compilation on cygwin.
48272
48273 2007-06-19  Jim Meyering  <jim@meyering.net>
48274
48275         xreadlink-with-size: Remove module.  No longer used.
48276         Ex-callers now use xreadlink or mreadlink-with-size.
48277         * modules/xreadlink-with-size: Remove module.
48278         * lib/xreadlink-with-size.c: Remove file.
48279         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48280         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48281         just before the function definition *is* accurate.
48282
48283         Eliminate one way canonicalize_filename_mode could exit.
48284         * lib/canonicalize.c (canonicalize_filename_mode):
48285         Use mreadlink_with_size, not xreadlink_with_size.
48286
48287 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48288
48289         Detect porting problems to FreeBSD/arm, which has time_t wider than
48290         long int.  Original problem reported for GNU diff by Xin Li in
48291         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48292         * modules/getdate (Depends-on): Add intprops, verify.
48293         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48294         is an integer type no wider than long int.
48295
48296 2007-06-18  Jim Meyering  <jim@meyering.net>
48297
48298         New module: mreadlink-with-size.
48299         * MODULES.html.sh: Add mreadlink-with-size.
48300         * modules/mreadlink-with-size: New module
48301         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48302         not xreadlink-with-size.
48303         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48304
48305 2007-06-16  Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48308         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48309         Reported by Gary V. Vaughan <gary@gnu.org>.
48310
48311 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         Revamp lchown so that it lives in unistd.h where it belongs.
48314         * lib/lchown.h: Remove.
48315         * lib/dirchownmod.c: Don't include lib/lchown.h.
48316         * lib/fchownat.c: Likewise.
48317         * lib/openat.c: Likewise.
48318         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48319         does not follow symlinks.
48320         (EOPNOTSUPP): Define if not defined.
48321         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48322         is defined to 0.
48323         (lchown): New decl.
48324         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48325         Do not check for lchown decl.
48326         Set REPLACE_LCHOWN.
48327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48328         REPLACE_LCHOWN.
48329         * modules/chown: Make it clear it follows symlinks.
48330         * modules/lchown: Make it clear it doesn't follow symlinks.
48331         (Files): Remove lib/lchown.h
48332         (Depends-on): Add unistd.
48333         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48334         (Include): Include <unistd.h>, not "lchown.h".
48335         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48336         REPLACE_LCHOWN.
48337
48338 2007-06-15  Jim Meyering  <jim@meyering.net>
48339
48340         Change license (GPL to LGPL) of fsusage and dependents.
48341         * modules/fsusage (License): Change to LGPL.
48342         * modules/full-read (License): Likewise.
48343         * modules/full-write (License): Likewise.
48344         * modules/safe-read (License): Likewise.
48345         * modules/safe-write (License): Likewise.
48346
48347 2007-06-14  Ben Pfaff  <blp@gnu.org>
48348
48349         Missing part of allocsa -> malloca transition.
48350         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48351         gl_MALLOCA.
48352
48353 2007-06-12  Bruno Haible  <bruno@clisp.org>
48354
48355         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48356         to ia64, x86_64, i386.
48357         Reported by Eric Blake.
48358
48359 2007-06-12  Bruno Haible  <bruno@clisp.org>
48360
48361         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48362         cross-compiling to x86_64.
48363
48364 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48365
48366         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48367         glitch reported by Ralf Wildenhues in
48368         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48369
48370         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48371         Vin Shelton.
48372
48373 2007-06-11  Bruno Haible  <bruno@clisp.org>
48374
48375         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48376         replacement string.
48377         Reported by Eric Blake.
48378
48379 2007-06-10  Bruno Haible  <bruno@clisp.org>
48380
48381         Prepare vasnprintf code for use with Unicode strings.
48382         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48383         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48384         TYPE_U32_STRING.
48385         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48386         a_u32_string variants.
48387         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48388         * lib/printf-args.c: Don't include config.h and the specification
48389         header if PRINTF_FETCHARGS is already defined.
48390         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48391         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48392         TYPE_U16_STRING, TYPE_U32_STRING.
48393         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48394         u16_directive, u16_directives, u32_directive, u32_directives): New
48395         types.
48396         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48397         New declarations.
48398         * lib/printf-parse.c: Don't include config.h and the specification
48399         header if PRINTF_PARSE is already defined. Eliminate the set of
48400         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48401         them now. Include c-ctype.h.
48402         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48403         directive and CHAR_T_ONLY_ASCII.
48404         * lib/vasnprintf.c: Don't include config.h and the specification header
48405         if VASNPRINTF is already defined.
48406         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48407         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48408         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48409         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48410         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48411         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48412         code accordingly.
48413         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48414         pad_ourselves also in this case, with the 'c' and 's' directives, and
48415         with a different notion of "width".
48416         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48417
48418 2007-06-10  Bruno Haible  <bruno@clisp.org>
48419
48420         * modules/unistr/u32-mbsnlen: New file.
48421         * lib/unistr/u32-mbsnlen.c: New file.
48422
48423         * modules/unistr/u16-mbsnlen: New file.
48424         * lib/unistr/u16-mbsnlen.c: New file.
48425
48426         * modules/unistr/u8-mbsnlen: New file.
48427         * lib/unistr/u8-mbsnlen.c: New file.
48428
48429         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48430         declarations.
48431
48432 2007-06-10  Bruno Haible  <bruno@clisp.org>
48433
48434         * lib/string_.h (mbsnlen): New declaration.
48435         * lib/mbsnlen.c: New file.
48436         * m4/mbsnlen.m4: New file.
48437         * modules/mbsnlen: New file.
48438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48439         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48440         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48441
48442 2007-06-10  Bruno Haible  <bruno@clisp.org>
48443
48444         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48445
48446 2007-06-10  Bruno Haible  <bruno@clisp.org>
48447
48448         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48449         * lib/mbuiter.h: Likewise.
48450
48451 2007-06-10  Bruno Haible  <bruno@clisp.org>
48452
48453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48454         declaration.
48455
48456 2007-06-10  Karl Berry  <karl@gnu.org>
48457
48458         * config/srclist.txt: remove gettext entries, Bruno prefers
48459         to update individually.
48460
48461 2007-06-10  Bruno Haible  <bruno@clisp.org>
48462
48463         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48464         'maxlen'. Ensure only length + width bytes are allocated, not
48465         length + 1 + width.
48466
48467 2007-06-09  Bruno Haible  <bruno@clisp.org>
48468
48469         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48470         (CHAR_T): Remove macro.
48471         (VASNPRINTF): Update.
48472
48473 2007-06-09  Bruno Haible  <bruno@clisp.org>
48474
48475         * MODULES.html.sh (Unicode string functions): Add the new modules.
48476
48477         * modules/uniconv/u32-conv-to-enc: New file.
48478         * lib/uniconv/u32-conv-to-enc.c: New file.
48479         * modules/uniconv/u32-conv-to-enc-tests: New file.
48480         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48481
48482         * modules/uniconv/u16-conv-to-enc: New file.
48483         * lib/uniconv/u16-conv-to-enc.c: New file.
48484         * lib/uniconv/u-conv-to-enc.h: New file.
48485         * modules/uniconv/u16-conv-to-enc-tests: New file.
48486         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48487
48488         * modules/uniconv/u8-conv-to-enc: New file.
48489         * lib/uniconv/u8-conv-to-enc.c: New file.
48490         * modules/uniconv/u8-conv-to-enc-tests: New file.
48491         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48492
48493         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48494         u32_conv_to_encoding): New declarations.
48495
48496 2007-06-09  Bruno Haible  <bruno@clisp.org>
48497
48498         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48499
48500 2007-06-09  Bruno Haible  <bruno@clisp.org>
48501
48502         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48503         * modules/malloca: Renamed from modules/allocsa, updated.
48504         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48505         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48506         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48507         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48508         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48509         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48510         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48511         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48512         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48513         * modules/c-strcasestr (Depends-on): Update.
48514         * lib/c-strcasestr.c: Update.
48515         * modules/c-strstr (Depends-on): Update.
48516         * lib/c-strstr.c: Update.
48517         * modules/canonicalize-lgpl (Depends-on): Update.
48518         * lib/canonicalize-lgpl.c: Update.
48519         * modules/clean-temp (Depends-on): Update.
48520         * lib/clean-temp.c: Update.
48521         * modules/csharpcomp (Depends-on): Update.
48522         * lib/csharpcomp.c: Update.
48523         * modules/csharpexec (Depends-on): Update.
48524         * lib/csharpexec.c: Update.
48525         * modules/javacomp (Depends-on): Update.
48526         * lib/javacomp.c: Update.
48527         * modules/javaexec (Depends-on): Update.
48528         * lib/javaexec.c: Update.
48529         * modules/mbscasestr (Depends-on): Update.
48530         * lib/mbscasestr.c: Update.
48531         * modules/mbsstr (Depends-on): Update.
48532         * lib/mbsstr.c: Update.
48533         * modules/setenv (Depends-on): Update.
48534         * lib/setenv.c: Update.
48535         * modules/strcasestr (Depends-on): Update.
48536         * lib/strcasestr.c: Update.
48537         * modules/striconveha (Depends-on): Update.
48538         * lib/striconveha.c: Update.
48539         * modules/relocatable-prog-wrapper (Files): Update.
48540         * lib/relocwrapper.c: Update.
48541         * build-aux/install-reloc: Update.
48542         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48543
48544 2007-06-08  Bruno Haible  <bruno@clisp.org>
48545
48546         Port to uClibc.
48547         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48548         * lib/fpurge.c (fpurge): Likewise.
48549         * lib/freading.c (freading): Likewise.
48550         * lib/fseeko.c (rpl_fseeko): Likewise.
48551         * lib/fseterr.c (fseterr): Likewise.
48552         * lib/fwriting.c (fwriting): Likewise.
48553         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48554
48555 2007-06-08  Bruno Haible  <bruno@clisp.org>
48556
48557         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48558         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48559         * modules/gettext (Files): Add m4/intlmacosx.m4.
48560
48561 2007-06-07  Bruno Haible  <bruno@clisp.org>
48562
48563         * modules/localename-tests: New file.
48564         * tests/test-localename.c: New file.
48565
48566         New module 'localename'.
48567         * lib/localename.h: New file.
48568         * lib/localename.c: New file, from GNU gettext.
48569         * m4/localename.m4: New file.
48570         * modules/localename: New file.
48571
48572 2007-06-07  Bruno Haible  <bruno@clisp.org>
48573
48574         Work around the lack of <wchar.h> on some builds of uClibc.
48575         * doc/headers/wchar.texi: Update.
48576         * lib/wchar_.h: Include <wchar.h> only if it exists.
48577         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48578         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48579         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48580         doesn't exist.
48581         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48582         * modules/mbfile (Depends-on): Add wchar.
48583         * modules/mbiter (Depends-on): Likewise.
48584         * modules/mbuiter (Depends-on): Likewise.
48585         Reported by Simon Josefsson.
48586
48587 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48588
48589         Work around problem reported by Steven M. Schweda in
48590         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48591         Tru64 5.1B with the Compaq compiler environment installed declares
48592         an 'isblank' function but does not define it in the C library.
48593         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48594         * lib/regex_internal.h (isblank): Likewise.
48595         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48596         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48597
48598 2007-06-05  Bruno Haible  <bruno@clisp.org>
48599
48600         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48601         ia64.
48602         * modules/printf-safe: New file.
48603         * modules/fprintf-posix (Depends-on): Add printf-safe.
48604         * modules/printf-posix (Depends-on): Likewise.
48605         * modules/snprintf-posix (Depends-on): Likewise.
48606         * modules/sprintf-posix (Depends-on): Likewise.
48607         * modules/vasnprintf-posix (Depends-on): Likewise.
48608         * modules/vasprintf-posix (Depends-on): Likewise.
48609         * modules/vfprintf-posix (Depends-on): Likewise.
48610         * modules/vprintf-posix (Depends-on): Likewise.
48611         * modules/vsnprintf-posix (Depends-on): Likewise.
48612         * modules/vsprintf-posix (Depends-on): Likewise.
48613         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48614         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48615         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48616         "no" on i386, x86_64, ia64.
48617         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48618         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48619         on i386, x86_64, ia64.
48620         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48621         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48622         on i386, x86_64, ia64.
48623         * tests/test-vasnprintf-posix.c: Include float.h.
48624         (LDBL80_WORDS): New macro.
48625         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48626         on i386, x86_64, ia64.
48627         * tests/test-vasprintf-posix.c: Include float.h.
48628         (LDBL80_WORDS): New macro.
48629         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48630         on i386, x86_64, ia64.
48631         * tests/test-snprintf-posix.c: Include float.h.
48632         * tests/test-sprintf-posix.c: Likewise.
48633         * tests/test-vsnprintf-posix.c: Likewise.
48634         * tests/test-vsprintf-posix.c: Likewise.
48635
48636 2007-06-05  Bruno Haible  <bruno@clisp.org>
48637
48638         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48639         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48640         non-IEEE numbers on i386, x86_64, ia64.
48641         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48642         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48643         * tests/test-isnanl.h: Include float.h.
48644         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48645
48646 2007-06-05  Bruno Haible  <bruno@clisp.org>
48647
48648         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48649         also the %a / %A. Handle the %a / %A code before this extra handling.
48650
48651 2007-06-05  Bruno Haible  <bruno@clisp.org>
48652
48653         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48654         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48655
48656 2007-06-05  Bruno Haible  <bruno@clisp.org>
48657
48658         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48659         typo in variable name.
48660
48661 2007-06-05  Eric Blake  <ebb9@byu.net>
48662
48663         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48664         Reported by Simon Josefsson.
48665
48666 2007-06-04  Bruno Haible  <bruno@clisp.org>
48667
48668         Avoid test failures on some PowerPC platforms.
48669         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48670         Define differently for PowerPC.
48671         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48672         Reported by Gary V. Vaughan <gary@gnu.org>.
48673
48674 2007-06-02  Bruno Haible  <bruno@clisp.org>
48675
48676         Fix test-stdint failure on FreeBSD/ia64.
48677         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48678         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48679         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48680         * doc/headers/stdint.texi: Update.
48681
48682 2007-06-01  Bruno Haible  <bruno@clisp.org>
48683
48684         * tests/test-binary-io.c (main): Pass a third argument to open().
48685         Reported by Gary V. Vaughan <gary@gnu.org>.
48686
48687 2007-06-01  Bruno Haible  <bruno@clisp.org>
48688
48689         * doc/functions/frexpl.texi: Update for mingw.
48690
48691 2007-06-01  Bruno Haible  <bruno@clisp.org>
48692
48693         * tests/test-lseek.c (main): Disable test of errno for invalid third
48694         argument.
48695         * doc/functions/lseek.texi: Update.
48696         Reported by Gary V. Vaughan <gary@gnu.org>.
48697
48698 2007-05-28  Bruno Haible  <bruno@clisp.org>
48699
48700         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48701
48702 2007-05-31  Eric Blake  <ebb9@byu.net>
48703
48704         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48705         cross compiling.
48706
48707 2007-05-30  Eric Blake  <ebb9@byu.net>
48708         and Bruno Haible  <bruno@clisp.org>
48709
48710         Work around mingw test failures exposed by m4-1.4.9b.
48711         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48712         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48713         moment.
48714
48715 2007-05-30  Bruno Haible  <bruno@clisp.org>
48716
48717         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48718         assuming that they are closed. Needed on HP-UX 11.
48719
48720 2007-05-29  Bruno Haible  <bruno@clisp.org>
48721
48722         Fix a problem with #include_next.
48723         * lib/dirent_.h: Split the double-inclusion guard.
48724         * lib/fcntl_.h: Likewise.
48725         * lib/float_.h: Likewise.
48726         * lib/iconv_.h: Likewise.
48727         * lib/inttypes_.h: Likewise.
48728         * lib/locale_.h: Likewise.
48729         * lib/math_.h: Likewise.
48730         * lib/netinet_in_.h: Likewise.
48731         * lib/search_.h: Likewise.
48732         * lib/signal_.h: Likewise.
48733         * lib/stdint_.h: Likewise.
48734         * lib/stdio_.h: Likewise.
48735         * lib/stdlib_.h: Likewise.
48736         * lib/string_.h: Likewise.
48737         * lib/sys_select_.h: Likewise.
48738         * lib/sys_socket_.h: Likewise.
48739         * lib/sys_stat_.h: Likewise.
48740         * lib/sys_time_.h: Likewise.
48741         * lib/sysexits_.h: Likewise.
48742         * lib/time_.h: Likewise.
48743         * lib/unistd_.h: Likewise.
48744         * lib/wchar_.h: Likewise.
48745         * lib/wctype_.h: Likewise.
48746
48747 2007-05-29  Bruno Haible  <bruno@clisp.org>
48748
48749         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48750         for the moment.
48751
48752 2007-05-29  Bruno Haible  <bruno@clisp.org>
48753
48754         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48755         invocation.
48756         Reported by Eric Blake.
48757
48758 2007-05-29  Bruno Haible  <bruno@clisp.org>
48759
48760         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48761         compiling case.
48762
48763 2007-05-29  Eric Blake  <ebb9@byu.net>
48764             Bruno Haible  <bruno@clisp.org>
48765
48766         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48767         cross compiles.
48768
48769 2007-05-28  Eric Blake  <ebb9@byu.net>
48770
48771         * modules/closein-tests (test_closein_LDADD): Support test on
48772         cygwin with libtool.
48773
48774 2007-05-28  Bruno Haible  <bruno@clisp.org>
48775
48776         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48777         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48778         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48779         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48780         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48781         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48782         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48783         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48784         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48785
48786 2007-05-28  Eric Blake  <ebb9@byu.net>
48787
48788         Unconditionally include <config.h> in unit tests.
48789         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48790         * tests/test-allocsa.c, tests/test-arcfour.c,
48791         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48792         tests/test-array_list.c, tests/test-array_oset.c,
48793         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48794         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48795         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48796         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48797         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48798         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48799         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48800         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48801         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48802         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48803         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48804         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48805         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48806         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48807         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48808         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48809         test-md5.c, test-memmem.c, test-printf-posix.c,
48810         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48811         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48812         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48813         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48814         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48815         test-vasnprintf-posix2.c, test-vasnprintf.c,
48816         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48817         test-vfprintf-posix.c, test-vprintf-posix.c,
48818         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48819         test-xvasprintf.c: Likewise.
48820
48821 2007-05-28  Bruno Haible  <bruno@clisp.org>
48822
48823         * gnulib-tool (func_import): Remember the --with-tests command-line
48824         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48825         Reported by Eric Blake.
48826
48827 2007-05-28  Bruno Haible  <bruno@clisp.org>
48828
48829         * modules/ftell-tests: New file.
48830         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48831         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48832
48833         * lib/ftell.c: New file.
48834         * modules/ftell: New file.
48835         * m4/ftell.m4: New file.
48836         * doc/functions/ftell.texi: Update.
48837         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48838         REPLACE_FTELL.
48839         * lib/stdio_.h (rpl_ftell): New declaration.
48840         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48841         REPLACE_FTELL.
48842
48843 2007-05-28  Eric Blake  <ebb9@byu.net>
48844
48845         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48846
48847 2007-05-28  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/fseek-tests: New file.
48850         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48851         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48852
48853         * lib/fseek.c: New file.
48854         * modules/fseek: New file.
48855         * m4/fseek.m4: New file.
48856         * doc/functions/fseek.texi: Update.
48857         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48858         REPLACE_FSEEK.
48859         * lib/stdio_.h (rpl_fseek): New declaration.
48860         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48861         REPLACE_FSEEK.
48862
48863 2007-05-28  Bruno Haible  <bruno@clisp.org>
48864
48865         * lib/stdio_.h (fflush): More comments.
48866
48867 2007-05-28  Bruno Haible  <bruno@clisp.org>
48868
48869         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48870         runtime test.
48871
48872 2007-05-28  Eric Blake  <ebb9@byu.net>
48873
48874         Improve lseek module.
48875         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48876         * lib/unistd_.h (lseek): Scale back link warning message.
48877         * tests/test-lseek.c: Beef up test.
48878         * tests/test-lseek.sh: Exercise more facets of lseek.
48879         Reported by Bruno Haible.
48880
48881 2007-05-28  Bruno Haible  <bruno@clisp.org>
48882
48883         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48884         to define.
48885
48886 2007-05-27  Bruno Haible  <bruno@clisp.org>
48887
48888         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48889
48890 2007-05-27  Bruno Haible  <bruno@clisp.org>
48891
48892         * modules/openmp: New file.
48893         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48894         Noah Misch.
48895
48896 2007-05-26  Bruno Haible  <bruno@clisp.org>
48897
48898         * modules/chdir-long (Depends-on): Add fchdir.
48899         * modules/chdir-safer (Depends-on): Likewise.
48900         * modules/fts (Depends-on): Likewise.
48901         * modules/fts-lgpl (Depends-on): Likewise.
48902         * modules/openat (Depends-on): Likewise.
48903         * modules/savewd (Depends-on): Likewise.
48904
48905 2007-05-24  Eric Blake  <ebb9@byu.net>
48906
48907         Fix lseek on mingw.
48908         * modules/lseek: New module.
48909         * m4/lseek.m4: New file.
48910         * lib/lseek.c: New file.
48911         * modules/lseek-tests: New file.
48912         * tests/test-lseek.c: New file.
48913         * tests/test-lseek.sh: New file.
48914         * MODULES.html.sh: Document lseek module.
48915         * modules/fflush (Depends-on): Add lseek, fseeko.
48916         * modules/fseeko (Depends-on): Likewise.
48917         * modules/ftello (Depends-on): Likewise.
48918         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48919         broken.
48920         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48921         broken.
48922         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48923         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48924         * lib/ftello.c (rpl_ftello): Likewise.
48925         * tests/test-fseeko.c (main): Test this.
48926         * tests/test-fseeko.sh: Likewise.
48927         * tests/test-ftello.c (main): Likewise.
48928         * tests/test-ftello.sh: Likewise.
48929         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48930         implies replacing fseek.
48931         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48932         HAVE_FTELLO.
48933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48934         * modules/unistd (Makefile.am): Likewise.
48935         * lib/unistd_.h (lseek): Declare a replacement.
48936         * doc/functions/lseek.texi (lseek): Document this fix.
48937         * doc/functions/fseek.texi (fseek): Likewise.
48938         * doc/functions/ftell.texi (ftell): Likewise.
48939
48940 2007-05-24  Bruno Haible  <bruno@clisp.org>
48941
48942         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48943         in the printed representation of a NaN.
48944         * tests/test-vasprintf-posix.c (test_function): Likewise.
48945         * tests/test-snprintf-posix.h (test_function): Likewise.
48946         * tests/test-sprintf-posix.h (test_function): Likewise.
48947         Reported by Eric Blake.
48948
48949 2007-05-23  Eric Blake  <ebb9@byu.net>
48950
48951         Fix fseeko/ftello on cygwin 1.5.24.
48952         * doc/functions/fseeko.texi (fseeko): Document the fix.
48953         * doc/functions/ftello.texi (ftello): Document the fix.
48954         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48955         * doc/functions/stdout.text (stdout): New file.
48956         * doc/functions/stderr.text (stderr): New file.
48957         * doc/gnulib.texi (Function Substitutes): Use new files.
48958         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48959         prior to 1.7.0.
48960         * tests/test-ftello.c (main): Likewise for ftello.
48961         * tests/test-fseeko.sh: New file.
48962         * tests/test-ftello.sh: New file.
48963         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48964         with seekable stdin.
48965         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48966         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48967         (gl_REPLACE_FSEEKO): New macro.
48968         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48969         * modules/fseeko (Files): Distribute fseeko.c.
48970         * modules/ftello (Files): Distribute ftello.c.
48971         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48972         mode.
48973         * lib/ftello.c (rpl_ftello): New file.
48974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48975         fseeko, ftello.
48976         (gl_STDIN_LARGE_OFFSET): New macro.
48977         * modules/stdio (Makefile.am): Perform the replacement.
48978         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48979
48980 2007-05-23  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48983         GNULIB_POSIXCHECK is defined.
48984
48985 2007-05-21  Bruno Haible  <bruno@clisp.org>
48986
48987         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48988         Check also the output for NaN arguments. When cross-compiling, guess
48989         no on IRIX.
48990         * lib/vasnprintf.c: Update comments.
48991         * tests/test-vasnprintf-posix.c (strisnan): New function.
48992         (test_function): Use it.
48993         * tests/test-vasprintf-posix.c (strisnan): New function.
48994         (test_function): Use it.
48995         * tests/test-snprintf-posix.h (strisnan): New function.
48996         (test_function): Use it.
48997         * tests/test-sprintf-posix.h (strisnan): New function.
48998         (test_function): Use it.
48999         Reported by Eric Blake.
49000
49001 2007-05-20  Bruno Haible  <bruno@clisp.org>
49002
49003         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
49004         numbers that fails on BeOS.
49005         * doc/functions/frexpl.texi: Update.
49006
49007 2007-05-20  Jim Meyering  <jim@meyering.net>
49008
49009         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
49010         forced upon us by glibc-2.6.
49011
49012 2007-05-20  Bruno Haible  <bruno@clisp.org>
49013
49014         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
49015         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
49016         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
49017         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
49018         NEED_PRINTF_INFINITE.
49019         (is_infinitel): New function.
49020         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
49021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
49022         gl_PREREQ_VASNPRINTF_INFINITE.
49023         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
49024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49025         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
49026         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
49027         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
49028         gl_PREREQ_VASNPRINTF_INFINITE.
49029         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49030         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49031         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49032         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49033         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49034         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49035         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49036         * doc/functions/fprintf.texi: Update.
49037         * doc/functions/printf.texi: Update.
49038         * doc/functions/snprintf.texi: Update.
49039         * doc/functions/sprintf.texi: Update.
49040         * doc/functions/vfprintf.texi: Update.
49041         * doc/functions/vprintf.texi: Update.
49042         * doc/functions/vsnprintf.texi: Update.
49043         * doc/functions/vsprintf.texi: Update.
49044
49045 2007-05-20  Bruno Haible  <bruno@clisp.org>
49046
49047         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
49048         was not found in libc.
49049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49050
49051 2007-05-20  Bruno Haible  <bruno@clisp.org>
49052
49053         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49054         printed as "-nan" instead of "nan".
49055         * tests/test-vasprintf-posix.c (test_function): Likewise.
49056         * tests/test-snprintf-posix.h (test_function): Likewise.
49057         * tests/test-sprintf-posix.h (test_function): Likewise.
49058         Needed for HP-UX 11.
49059
49060 2007-05-20  Jim Meyering  <jim@meyering.net>
49061
49062         Fix buggy test for the fchownat-deref bug.
49063         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49064         symlink required for the run-test.  Without it, this test would
49065         always declare that fchownat doesn't work, and client code would
49066         unnecessarily use the replacement function with fixed libc.
49067         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49068         Reported by Greg Schafer.
49069
49070 2007-05-19  Bruno Haible  <bruno@clisp.org>
49071
49072         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49073         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49074         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49075         Needed for IRIX 6.5 and Solaris 2.5.1.
49076
49077 2007-05-19  Bruno Haible  <bruno@clisp.org>
49078
49079         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49080         (test_function): Skip tests involving -0.0 on platforms where
49081         -0.0 = 0.0.
49082         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49083         (test_function): Skip tests involving -0.0 on platforms where
49084         -0.0 = 0.0.
49085         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49086         (test_function): Skip tests involving -0.0 on platforms where
49087         -0.0 = 0.0.
49088         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49089         (test_function): Skip tests involving -0.0 on platforms where
49090         -0.0 = 0.0.
49091         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49092         tests.
49093         * tests/test-printf-posix.h (test_function): Likewise.
49094         * tests/test-printf-posix.output: Remove all -0.0 related results.
49095         Needed for IRIX 6.5.
49096
49097 2007-05-19  Bruno Haible  <bruno@clisp.org>
49098
49099         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49100         printed as "nan0x7fffffff" instead of "nan".
49101         * tests/test-vasprintf-posix.c (test_function): Likewise.
49102         * tests/test-snprintf-posix.h (test_function): Likewise.
49103         * tests/test-sprintf-posix.h (test_function): Likewise.
49104         * tests/test-fprintf-posix.h (NaN): Remove macro.
49105         (test_function): Remove all NaN related tests.
49106         * tests/test-printf-posix.h (NaN): Remove macro.
49107         (test_function): Remove all NaN related tests.
49108         * tests/test-printf-posix.output: Remove all NaN related results.
49109         Needed for IRIX 6.5.
49110
49111 2007-05-19  Bruno Haible  <bruno@clisp.org>
49112
49113         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49114         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49115
49116 2007-05-19  Bruno Haible  <bruno@clisp.org>
49117
49118         * lib/float_.h: New file.
49119         * m4/float_h.m4: New file.
49120         * modules/float: New file.
49121         * modules/isnanl (Dependencies): Add float.
49122         * modules/isnanl-nolibm (Dependencies): Likewise.
49123         * modules/mathl (Dependencies): Likewise.
49124         * modules/printf-frexpl (Dependencies): Likewise.
49125         * modules/signbit (Dependencies): Likewise.
49126         * modules/vasnprintf (Dependencies): Likewise.
49127         * doc/headers/float.texi: Update.
49128
49129 2007-05-19  Jim Meyering  <jim@meyering.net>
49130
49131         * lib/utimens.c (gl_futimens): Rename from futimens,
49132         now that glibc-2.6 declares futimens.
49133         * lib/utimens.h: Likewise.
49134
49135 2007-05-19  Bruno Haible  <bruno@clisp.org>
49136
49137         Avoid test failures on mingw.
49138         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49139         * tests/test-printf-posix.sh: Likewise.
49140         * tests/test-vfprintf-posix.sh: Likewise.
49141         * tests/test-vprintf-posix.sh: Likewise.
49142
49143 2007-05-19  Bruno Haible  <bruno@clisp.org>
49144
49145         Fix *printf result for NaN, Inf, -0.0 on mingw.
49146         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49147         * lib/vasnprintf.c: Include math.h and isnan.h.
49148         (is_infinite_or_zero): New function.
49149         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49150         values in the %f, %F, %e, %E, %g, %G directives.
49151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49153         gl_PRINTF_INFINITE and test its result. Invoke
49154         gl_PREREQ_VASNPRINTF_INFINITE.
49155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49162         * doc/functions/fprintf.texi: Update.
49163         * doc/functions/printf.texi: Update.
49164         * doc/functions/snprintf.texi: Update.
49165         * doc/functions/sprintf.texi: Update.
49166         * doc/functions/vfprintf.texi: Update.
49167         * doc/functions/vprintf.texi: Update.
49168         * doc/functions/vsnprintf.texi: Update.
49169         * doc/functions/vsprintf.texi: Update.
49170
49171 2007-05-19  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49174         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49175         Instead of multiplying with 10^k, set extra_zeroes to k.
49176         (scale10_round_long_double): Remove function.
49177
49178 2007-05-18  Bruno Haible  <bruno@clisp.org>
49179
49180         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49181         introduced on 2007-05-06.
49182
49183 2007-05-18  Bruno Haible  <bruno@clisp.org>
49184
49185         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49186         %g directives.
49187         * tests/test-vasprintf-posix.c (test_function): Likewise.
49188         * tests/test-snprintf-posix.h (test_function): Likewise.
49189         * tests/test-sprintf-posix.h (test_function): Likewise.
49190
49191 2007-05-18  Bruno Haible  <bruno@clisp.org>
49192
49193         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49194         (strmatch): New function.
49195         (test_function): Test the %f directive on numbers of various exponents.
49196         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49197         (strmatch): New function.
49198         (test_function): Test the %f directive on numbers of various exponents.
49199         * tests/test-snprintf-posix.h (strmatch): New function.
49200         (test_function): Test the %f directive on numbers of various exponents.
49201         * tests/test-sprintf-posix.h (strmatch): New function.
49202         (test_function): Test the %f directive on numbers of various exponents.
49203         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49204         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49205         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49206         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49207
49208 2007-05-18  Bruno Haible  <bruno@clisp.org>
49209
49210         Add support for 'long double' number output.
49211         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49212         * lib/vasnprintf.c: Include math.h and float+.h.
49213         (mp_limb_t): New type.
49214         (GMP_LIMB_BITS): New macro.
49215         (mp_twolimb_t): New type.
49216         (GMP_TWOLIMB_BITS): New macro.
49217         (mpn_t): New type.
49218         (multiply, divide, convert_to_decimal, decode_long_double,
49219         scale10_round_long_double, scale10_round_decimal_long_double,
49220         floorlog10l): New functions.
49221         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49222         for the %f, %F, %e, %E, %g, %G directives.
49223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49224         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49225         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49226         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49228         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49234         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49235         * modules/snprintf-posix (Depends-on): Likewise.
49236         * modules/sprintf-posix (Depends-on): Likewise.
49237         * modules/vasnprintf-posix (Depends-on): Likewise.
49238         * modules/vasprintf-posix (Depends-on): Likewise.
49239         * modules/vfprintf-posix (Depends-on): Likewise.
49240         * modules/vsnprintf-posix (Depends-on): Likewise.
49241         * modules/vsprintf-posix (Depends-on): Likewise.
49242         * modules/vasnprintf (Files): Add lib/float+.h.
49243         * doc/functions/fprintf.texi: Update.
49244         * doc/functions/printf.texi: Update.
49245         * doc/functions/snprintf.texi: Update.
49246         * doc/functions/sprintf.texi: Update.
49247         * doc/functions/vfprintf.texi: Update.
49248         * doc/functions/vprintf.texi: Update.
49249         * doc/functions/vsnprintf.texi: Update.
49250         * doc/functions/vsprintf.texi: Update.
49251
49252 2007-05-18  Bruno Haible  <bruno@clisp.org>
49253
49254         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49255
49256 2007-05-18  Bruno Haible  <bruno@clisp.org>
49257
49258         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49259         for printing 64-bit integers. Needed for mingw.
49260
49261 2007-05-18  Bruno Haible  <bruno@clisp.org>
49262
49263         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49264         gl_FUNC_FREXPL_WORKS.
49265         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49266
49267 2007-05-18  Bruno Haible  <bruno@clisp.org>
49268
49269         * modules/frexpl-nolibm-tests: New file.
49270
49271         * modules/frexpl-nolibm: New file.
49272         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49273
49274 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49275
49276         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49277         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49278         GCC 4.2, which otherwise issues a lot of warnings.
49279         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49280         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49281         Likewise.
49282         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49283         * modules/iconv_open (iconv.h): Likewise.
49284         * modules/locale (locale.h): Likewise.
49285         * modules/netinet_in (netinet/in.h): Likewise.
49286         * modules/sys_select (sys_select.h): Likewise.
49287         * modules/sys_socket (sys/socket.h): Likewise.
49288         * modules/sys_stat (sys/stat.h): Likewise.
49289         * modules/sysexits (sysexits.h): Likewise.
49290         * modules/unistd (unistd.h): Likewise.
49291
49292 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49293
49294         * modules/closein-tests (Makefile.am): Distribute
49295         `test-closein.sh'.
49296
49297 2007-05-17  Bruno Haible  <bruno@clisp.org>
49298
49299         * tests/test-printf-posix.output: Renamed from
49300         tests/test-fprintf-posix.out.
49301         * modules/fprintf-posix-tests: Update.
49302         * modules/printf-posix-tests: Update.
49303         * modules/vfprintf-posix-tests: Update.
49304         * modules/vprintf-posix-tests: Update.
49305         * tests/test-fprintf-posix.sh: Update.
49306         * tests/test-printf-posix.sh: Update.
49307         * tests/test-vfprintf-posix.sh: Update.
49308         * tests/test-vprintf-posix.sh: Update.
49309         Reported by Ralf Wildenhues.
49310
49311 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49312
49313         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49314         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49315         GCC 4.2, which otherwise issues a lot of warnings.
49316         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49317         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49318         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49319         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49320         it should no longer be needed.
49321         * lib/string_.h: Likewise.
49322         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49323         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49324         * modules/inttypes (inttypes.h): Likewise.
49325         * modules/math (math.h): Likewise.
49326         * modules/search (search.h): Likewise.
49327         * modules/signal (signal.h): Likewise.
49328         * modules/stdint (stdint.h): Likewise.
49329         * modules/stdio (stdio.h): Likewise.
49330         * modules/stdlib (stdlib.h): Likewise.
49331         * modules/string (string.h): Likewise.
49332         * modules/sys_time (sys/time.h): Likewise.
49333         * modules/time (time.h): Likewise.
49334         * modules/wchar (wchar.h): Likewise.
49335         * modules/wctype (wtype.h): Likewise.
49336
49337 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49338
49339         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49340
49341 2007-05-13  Bruno Haible  <bruno@clisp.org>
49342
49343         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49344         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49345         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49346         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49347         (gl_PREREQ_STRTOK_R): Don't require it here.
49348
49349 2007-05-13  Bruno Haible  <bruno@clisp.org>
49350
49351         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49352         when used in C++ mode.
49353
49354 2007-05-12  Bruno Haible  <bruno@clisp.org>
49355
49356         * lib/linebuffer.h: Tweak doc.
49357         * lib/linebuffer.c: Likewise.
49358
49359 2007-05-12  James Youngman  <jay@gnu.org>
49360
49361         * lib/linebuffer.c (readlinebuffer_delim): New function,
49362         like readlinebuffer, but use a caller-specified delimiter.
49363         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49364         as the delimiter.
49365         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49366
49367 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49368
49369         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49370         * modules/openat (Files): Remove openat-die.c.
49371         (Depends-on): Add openat-die.
49372         * modules/openat-die: New module.
49373
49374 2007-05-06  Bruno Haible  <bruno@clisp.org>
49375
49376         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49377         Update with info about Cygwin.
49378         * doc/functions/fprintf.texi: Update.
49379         * doc/functions/printf.texi: Update.
49380         * doc/functions/snprintf.texi: Update.
49381         * doc/functions/sprintf.texi: Update.
49382         * doc/functions/vfprintf.texi: Update.
49383         * doc/functions/vprintf.texi: Update.
49384         * doc/functions/vsnprintf.texi: Update.
49385         * doc/functions/vsprintf.texi: Update.
49386         Reported by Eric Blake.
49387
49388 2007-05-06  Bruno Haible  <bruno@clisp.org>
49389
49390         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49391         padding ourselves for the floating-point directives.
49392         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49394         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49395         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49396         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49397         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49398         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49399         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49400         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49401         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49402         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49403         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49404         * tests/test-snprintf-posix.h (test_function): Also check the width
49405         and some flags in the %f directive.
49406         * tests/test-sprintf-posix.h (test_function): Likewise.
49407         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49408         * tests/test-vasprintf-posix.c (test_function): Likewise.
49409         * doc/functions/fprintf.texi: Update.
49410         * doc/functions/printf.texi: Update.
49411         * doc/functions/snprintf.texi: Update.
49412         * doc/functions/sprintf.texi: Update.
49413         * doc/functions/vfprintf.texi: Update.
49414         * doc/functions/vprintf.texi: Update.
49415         * doc/functions/vsnprintf.texi: Update.
49416         * doc/functions/vsprintf.texi: Update.
49417
49418 2007-05-06  Bruno Haible  <bruno@clisp.org>
49419
49420         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49421         pass the ' flag character to sprintf or snprintf.
49422         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49425         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49426         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49427         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49428         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49431         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49432         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49433         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49434         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49435         flag.
49436         * tests/test-sprintf-posix.h (test_function): Likewise.
49437         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49438         * tests/test-vasprintf-posix.c (test_function): Likewise.
49439         * doc/functions/fprintf.texi: Update.
49440         * doc/functions/printf.texi: Update.
49441         * doc/functions/snprintf.texi: Update.
49442         * doc/functions/sprintf.texi: Update.
49443         * doc/functions/vfprintf.texi: Update.
49444         * doc/functions/vprintf.texi: Update.
49445         * doc/functions/vsnprintf.texi: Update.
49446         * doc/functions/vsprintf.texi: Update.
49447
49448 2007-05-01  Bruno Haible  <bruno@clisp.org>
49449
49450         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49451
49452 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49453
49454         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49455         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49456
49457 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49458
49459         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49460         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49462
49463 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49464
49465         * lib/argp-help.c (struct hol_entry): New member `ord'.
49466         (HOL_ENTRY_PTRCMP): Use ord for comparison
49467         (hol_sort): Initialize ord.
49468
49469 2007-05-01  Bruno Haible  <bruno@clisp.org>
49470
49471         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49472         Reported by Eric Blake.
49473         * doc/gnulib.texi (Function Substitutes): Update.
49474
49475 2007-05-01  Bruno Haible  <bruno@clisp.org>
49476
49477         * doc/functions.texi: Remove file, now redundant through
49478         doc/functions/*.texi.
49479
49480 2007-05-01  Bruno Haible  <bruno@clisp.org>
49481
49482         * modules/argp (Depends-on): Add sleep.
49483
49484 2007-05-01  Bruno Haible  <bruno@clisp.org>
49485
49486         * modules/sleep-tests: New file.
49487         * tests/test-sleep.c: New file.
49488
49489         * modules/sleep: New file.
49490         * lib/sleep.c: New file.
49491         * m4/sleep.m4: New file.
49492         * lib/unistd_.h (sleep): New declaration.
49493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49494         HAVE_SLEEP.
49495         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49496         * doc/functions/sleep.texi: Document the sleep module.
49497
49498 2007-05-01  Bruno Haible  <bruno@clisp.org>
49499
49500         * lib/sigprocmask.h: Remove file.
49501         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49502         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49503         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49504         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49505         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49506         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49507         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49508         HAVE_SIGSET_T as a shell variable.
49509         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49510         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49511         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49512         (Depends-on): Add signal. Remove verify.
49513         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49514         (Include): Mention <signal.h> instead of sigprocmask.h.
49515         * NEWS: Mention the change.
49516         * lib/fatal-signal.c: Don't include sigprocmask.h.
49517
49518 2007-05-01  Bruno Haible  <bruno@clisp.org>
49519
49520         * modules/signal: New file.
49521         * lib/signal_.h: New file.
49522         * m4/signal_h.m4: New file.
49523
49524 2007-05-01  Bruno Haible  <bruno@clisp.org>
49525
49526         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49527         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49528         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49529         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49530
49531 2007-05-01  Bruno Haible  <bruno@clisp.org>
49532
49533         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49534         configure time.
49535         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49536         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49537         * modules/sys_stat (Makefile.am): Substitute their values into
49538         sys/stat.h.
49539
49540 2007-05-01  Bruno Haible  <bruno@clisp.org>
49541
49542         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49543         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49544         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49545
49546 2007-05-01  Bruno Haible  <bruno@clisp.org>
49547
49548         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49549         'assert' module here.
49550
49551 2007-05-01  Bruno Haible  <bruno@clisp.org>
49552
49553         * doc/functions/*.texi: New files.
49554         * doc/functions/google-ranking.txt: New file.
49555         * doc/gnulib.texi (Function Substitutes): New chapter.
49556         (ctime, inet_ntoa): Remove sections.
49557         * doc/ctime.texi: Remove file.
49558         * doc/inet_ntoa.texi: Remove file.
49559         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49560         dependencies.
49561         (%.info): New rule, specifying a --reference-limit.
49562
49563 2007-05-01  Bruno Haible  <bruno@clisp.org>
49564
49565         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49566
49567 2007-05-01  Bruno Haible  <bruno@clisp.org>
49568
49569         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49570         the portability of 'mkdir' to mingw systems.
49571
49572 2007-05-01  Bruno Haible  <bruno@clisp.org>
49573
49574         * doc/headers/google-ranking.txt: New file.
49575
49576 2007-04-30  Eric Blake  <ebb9@byu.net>
49577
49578         Prefer fseeko to fseek.
49579         * modules/getpass (Depends-on): Add fseeko.
49580         * lib/getpass.c (getpass): Use fseeko, not fseek.
49581
49582 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49583
49584         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49585         assumes the sorting is stable, while most qsort implementations
49586         are not.  Use argument addresses to ensure they never compare as
49587         equal.
49588
49589         * tests/test-argp-2.sh (usage-indent test): Fix output
49590         (func_compare): Restore diff options
49591         * tests/test-argp.c: Restore #include "progname.h"
49592
49593 2007-04-29  Bruno Haible  <bruno@clisp.org>
49594
49595         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49597         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49598         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49599         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49600         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49601         (TESTS, check_PROGRAMS): Add test-snprintf.
49602         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49603         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49604         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49605         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49606         assertions that fail on HP-UX, OSF/1, or IRIX.
49607         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49608
49609 2007-04-29  Bruno Haible  <bruno@clisp.org>
49610
49611         * MODULES.html.sh (posix_functions): Remove 'contents'.
49612
49613 2007-04-29  Karl Berry  <karl@gnu.org>
49614
49615         * config/srclist.txt (gendocs_template_min): new entry.
49616
49617 2007-04-29  Bruno Haible  <bruno@clisp.org>
49618
49619         Work around fpurge bug on BSD systems.
49620         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49621         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49622         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49623         fpurge to rpl_fpurge if the system already has this function.
49624         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49625         the case where the system already has this function. Correct invariants
49626         on BSD systems.
49627         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49628         BSD systems.
49629
49630 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49631
49632         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49633         proposed by Sven Verdoolaege.
49634
49635         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49636         options.
49637         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49638         (usage and help tests): Update
49639
49640 2007-04-29  Bruno Haible  <bruno@clisp.org>
49641
49642         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49643         Print more information in case of failure. Disable a test on BeOS.
49644
49645 2007-04-29  Bruno Haible  <bruno@clisp.org>
49646
49647         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49648         This helps debugging on systems on which no gdb is available.
49649
49650 2007-04-29  Bruno Haible  <bruno@clisp.org>
49651
49652         * lib/freading.h: Improve comments.
49653         * lib/fwriting.h: Likewise.
49654         * tests/test-freading.c (main): Don't check freading immediately after
49655         repositioning. Needed for glibc.
49656
49657 2007-04-29  Bruno Haible  <bruno@clisp.org>
49658
49659         * lib/freading.c (freading): Trivial simplification.
49660
49661 2007-04-28  Bruno Haible  <bruno@clisp.org>
49662
49663         * tests/test-fwriting.c (main): Also test the interaction between
49664         fflush and fwriting.
49665         * modules/fwriting-tests (Depends-on): Add fflush.
49666
49667         * tests/test-freading.c (main): Also test the interaction between
49668         fflush and freading.
49669         * modules/freading-tests (Depends-on): Add fflush.
49670
49671 2007-04-28  Bruno Haible  <bruno@clisp.org>
49672
49673         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49674         fseeko and ftello.
49675         Suggested by Eric Blake.
49676
49677 2007-04-28  Jim Meyering  <jim@meyering.net>
49678
49679         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49680         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49681         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49682
49683 2007-04-27  Eric Blake  <ebb9@byu.net>
49684
49685         * doc/headers/assert.texi (assert.h): Document assert module use.
49686
49687 2007-04-27  Bruno Haible  <bruno@clisp.org>
49688
49689         * doc/headers/*.texi: New files.
49690         * doc/gnulib.texi (Header File Substitutes): New chapter.
49691         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49692         dependencies.
49693         (standards.info ,standards.html, standards.dvi): Update dependencies.
49694         (mostlyclean, clean): New targets.
49695
49696 2007-04-27  Bruno Haible  <bruno@clisp.org>
49697
49698         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49699         * modules/sysexits (Files, Makefile.am): Update.
49700
49701         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49702         * modules/sys_socket (Files, Makefile.am): Update.
49703
49704         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49705         * modules/sys_stat (Files, Makefile.am): Update.
49706
49707 2007-04-27  Eric Blake  <ebb9@byu.net>
49708
49709         * lib/freading.h: Improve comments.
49710         * lib/fwriting.h: Likewise.
49711         * lib/fflush.c: Likewise.
49712
49713         Fix closein for mingw.
49714         * modules/closein-tests: Add tests for closein.
49715         * tests/test-closein.c: New file.
49716         * tests/test-closein.sh: Likewise.
49717         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49718         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49719
49720 2007-04-27  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49723         version is < 6.
49724         * lib/math_.h [__DECC]: Likewise.
49725         * lib/stdio_.h [__DECC]: Likewise.
49726         * lib/stdlib_.h [__DECC]: Likewise.
49727         * lib/string_.h [__DECC]: Likewise.
49728         * lib/time_.h [__DECC]: Likewise.
49729         * lib/wchar_.h [__DECC]: Likewise.
49730         * lib/wctype_.h [__DECC]: Likewise.
49731
49732 2007-04-27  Bruno Haible  <bruno@clisp.org>
49733
49734         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49735
49736 2007-04-27  Bruno Haible  <bruno@clisp.org>
49737
49738         * lib/fflush.c: Add comments.
49739         * modules/fpurge-tests (Depends-on): Add fflush.
49740         * modules/freadable-tests (Depends-on): Likewise.
49741         * modules/fwritable-tests (Depends-on): Likewise.
49742
49743 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49744
49745         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49746         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49747         Report by Bruno Haible <bruno@clisp.org>.
49748
49749 2007-04-26  Eric Blake  <ebb9@byu.net>
49750
49751         Fix fflush on mingw.
49752         * modules/fflush (Depends-on): Add freading.
49753         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49754         but unread data.
49755
49756 2007-04-26  Eric Blake  <ebb9@byu.net>
49757         and Bruno Haible  <bruno@clisp.org>
49758
49759         Implement freading and fwriting.
49760         * lib/freading.c: New file.
49761         * lib/freading.h: Likewise.
49762         * m4/freading.m4: Likewise.
49763         * modules/freading: Likewise.
49764         * modules/freading-tests: Likewise.
49765         * tests/test-freading.c: Likewise.
49766         * lib/fwriting.c: New file.
49767         * lib/fwriting.h: Likewise.
49768         * m4/fwriting.m4: Likewise.
49769         * modules/fwriting: Likewise.
49770         * modules/fwriting-tests: Likewise.
49771         * tests/test-fwriting.c: Likewise.
49772         * MODULES.html.sh (File stream based Input/Output): Mention them.
49773
49774 2007-04-26  Bruno Haible  <bruno@clisp.org>
49775
49776         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49777         'long' when we assume it.
49778         Suggested by Eric Blake.
49779
49780 2007-04-26  Bruno Haible  <bruno@clisp.org>
49781
49782         Ensure fseeko, ftello are declared on glibc systems.
49783         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49784         * modules/fseeko (configure.ac-early): Likewise.
49785         * modules/ftello (configure.ac-early): Likewise.
49786         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49787         AC_FUNC_FSEEKO for this.
49788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49789         (gl_CHECK_FSEEKO): Remove macro.
49790
49791 2007-04-26  Bruno Haible  <bruno@clisp.org>
49792
49793         * tests/test-fflush.c (main): Also check the ftell result after
49794         fflush and fseek/fseeko.
49795         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49796         file descriptor position cache in the stream.
49797         * lib/fseeko.c (rpl_fseeko): Likewise.
49798
49799 2007-04-26  Bruno Haible  <bruno@clisp.org>
49800
49801         * modules/fflush-tests (Depends-on): Add fseeko.
49802
49803 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49804             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49805
49806         * lib/argz_.h: ensure error_t definition is obtained in same
49807         mechanism system argz.h would have.
49808         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49809         argz facilities are known bad.  Err on the side of caution if
49810         cross-compiling.
49811
49812 2007-04-25  Eric Blake  <ebb9@byu.net>
49813
49814         * lib/fpurge.c (includes): Use stdlib.h for free.
49815         * tests/test-fflush.c (main): Also test fflush-fseeko.
49816
49817 2007-04-25  Bruno Haible  <bruno@clisp.org>
49818
49819         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49820         * lib/fseeko.c: New file.
49821         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49822         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49823         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49824         gl_FUNC_FSEEKO.
49825         (gl_FUNC_FSEEKO): Invoke it.
49826         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49827         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49828         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49829
49830 2007-04-25  Bruno Haible  <bruno@clisp.org>
49831
49832         * modules/fflush (Depends-on): Add ftello.
49833
49834 2007-04-25  Bruno Haible  <bruno@clisp.org>
49835
49836         * modules/ftello-tests: New file.
49837         * tests/test-ftello.c: New file.
49838
49839         * modules/ftello: New file.
49840         * m4/ftello.m4: New file.
49841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49842         HAVE_FTELLO.
49843         * lib/stdio_.h (ftello): New declaration.
49844         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49845         HAVE_FTELLO.
49846
49847 2007-04-25  Bruno Haible  <bruno@clisp.org>
49848
49849         * modules/fseeko-tests: New file.
49850         * tests/test-fseeko.c: New file.
49851
49852         * modules/fseeko: New file.
49853         * m4/fseeko.m4: New file.
49854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49855         HAVE_FSEEKO.
49856         * lib/stdio_.h (fseeko): New declaration.
49857         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49858         HAVE_FSEEKO.
49859
49860 2007-04-25  Bruno Haible  <bruno@clisp.org>
49861
49862         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49863
49864 2007-04-25  Bruno Haible  <bruno@clisp.org>
49865
49866         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49867         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49868         * tests/test-unistd.c: Likewise.
49869         * tests/test-fcntl.c: Likewise.
49870
49871 2007-04-23  Eric Blake  <ebb9@byu.net>
49872
49873         * lib/fflush.c: Fix missing include.
49874         Reported by Bruno Haible.
49875
49876 2007-04-23  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49879         Reported by Eric Blake.
49880
49881 2007-04-23  Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49884
49885 2007-04-23  Bruno Haible  <bruno@clisp.org>
49886
49887         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49888
49889 2007-04-23  Bruno Haible  <bruno@clisp.org>
49890
49891         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49892         Needed on HP-UX 11.
49893
49894 2007-04-16  Eric Blake  <ebb9@byu.net>
49895
49896         Make fflush rely on fpurge.
49897         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49898         open coding all variants.
49899         * modules/fflush (Depends-on): Add fpurge and unistd.
49900         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49901         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49902
49903         Fix --with-tests compilation on cygwin.
49904         * modules/argmatch-tests (Makefile.am): List gnulib library first
49905         in LDADD.
49906         * modules/argp-tests (Makefile.am): Likewise.
49907         * modules/array-list-tests (Makefile.am): Likewise.
49908         * modules/array-oset-tests (Makefile.am): Likewise.
49909         * modules/avltree-list-tests (Makefile.am): Likewise.
49910         * modules/avltree-oset-tests (Makefile.am): Likewise.
49911         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49912         * modules/carray-list-tests (Makefile.am): Likewise.
49913         * modules/dirname-tests (Makefile.am): Likewise.
49914         * modules/frexp-tests (Makefile.am): Likewise.
49915         * modules/isnanl-tests (Makefile.am): Likewise.
49916         * modules/linked-list-tests (Makefile.am): Likewise.
49917         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49918         * modules/lock-tests (Makefile.am): Likewise.
49919         * modules/rbtree-list-tests (Makefile.am): Likewise.
49920         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49921         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49922         * modules/tls-tests (Makefile.am): Likewise.
49923         * modules/tsearch-tests (Makefile.am): Likewise.
49924         * modules/xvasprintf-tests (Makefile.am): Likewise.
49925
49926         Fix fpurge for cygwin.
49927         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49928         value.
49929         * modules/fpurge-tests (Depends-on): Clean up trash.
49930
49931 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49932
49933         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49934
49935         * m4/autobuild.m4: Re-indent.
49936
49937 2007-04-13  Bruno Haible  <bruno@clisp.org>
49938
49939         * modules/fpurge-tests: New file.
49940         * tests/test-fpurge.c: New file.
49941
49942         * modules/fpurge: New file.
49943         * lib/fpurge.h: New file.
49944         * lib/fpurge.c: New file.
49945         * m4/fpurge.m4: New file.
49946
49947 2007-04-13  Bruno Haible  <bruno@clisp.org>
49948
49949         * modules/fbufmode-tests: New file.
49950         * tests/test-fbufmode.c: New file.
49951
49952         * modules/fbufmode: New file.
49953         * lib/fbufmode.h: New file.
49954         * lib/fbufmode.c: New file.
49955         * m4/fbufmode.m4: New file.
49956
49957 2007-04-13  Bruno Haible  <bruno@clisp.org>
49958
49959         * modules/fwritable-tests: New file.
49960         * tests/test-fwritable.c: New file.
49961
49962         * modules/fwritable: New file.
49963         * lib/fwritable.h: New file.
49964         * lib/fwritable.c: New file.
49965         * m4/fwritable.m4: New file.
49966
49967 2007-04-13  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/freadable-tests: New file.
49970         * tests/test-freadable.c: New file.
49971
49972         * modules/freadable: New file.
49973         * lib/freadable.h: New file.
49974         * lib/freadable.c: New file.
49975         * m4/freadable.m4: New file.
49976
49977 2007-04-13  Bruno Haible  <bruno@clisp.org>
49978
49979         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49980         MOSTLYCLEANFILES.
49981
49982 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49983
49984         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49985         gzip bootstrap.conf to avoid dragging in i18n machinery.
49986         (gnulib_tool_option): Use it.
49987
49988 2007-04-13  Bruno Haible  <bruno@clisp.org>
49989
49990         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49991         %F directives.
49992         * tests/test-vasprintf-posix.c (test_function): Likewise.
49993         * tests/test-snprintf-posix.h (test_function): Likewise.
49994         * tests/test-sprintf-posix.h (test_function): Likewise.
49995         * tests/test-fprintf-posix.h (test_function): Likewise.
49996         * tests/test-printf-posix.h (test_function): Likewise.
49997         * tests/test-fprintf-posix.out: Likewise.
49998
49999 2007-04-13  Bruno Haible  <bruno@clisp.org>
50000
50001         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
50002         * modules/tls-tests (configure.ac): Likewise.
50003         Reported by Arto C. Nirkko <anirkko@insel.ch>.
50004
50005 2007-04-13  Bruno Haible  <bruno@clisp.org>
50006
50007         * lib/tls.c (glthread_tls_get): Fix return type.
50008         Patch by Arto C. Nirkko <anirkko@insel.ch>.
50009
50010 2007-04-12  Eric Blake  <ebb9@byu.net>
50011
50012         * modules/gettime (Depends-on): Remove gettime.
50013         Reported by Dmitry V. Levin.
50014
50015 2007-04-12  Bruno Haible  <bruno@clisp.org>
50016
50017         * modules/fflush (Include): Mention <stdio.h>.
50018         * modules/strtoimax (Include): Mention <inttypes.h>.
50019         * modules/strtoumax (Include): Likewise.
50020
50021 2007-04-12  Eric Blake  <ebb9@byu.net>
50022
50023         * .cvsignore: New file.
50024         * .gitignore: Likewise.
50025
50026 2007-04-12  Bruno Haible  <bruno@clisp.org>
50027
50028         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
50029         not before, since $(LDADD) often contains libgnu.a.
50030         * modules/striconv-tests (test_striconv_LDADD): Likewise.
50031         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
50032         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
50033         Needed on Cygwin.
50034
50035 2007-04-12  Eric Blake  <ebb9@byu.net>
50036
50037         Work around glibc's failure to flush stdin on fclose.
50038         * lib/closein.c (close_stdin): Flush stdin before closing.
50039
50040         Work around glibc's failure to reset seekable stdin on exit.
50041         * modules/closein: New module.
50042         * lib/closein.c: New file.
50043         * lib/closein.h: Likewise.
50044         * m4/closein.m4: Likewise.
50045         * MODULES.html.sh (File stream based Input/Output): Document it.
50046
50047 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50048
50049         * gnulib-tool: Rename generated 'autobuild' script to
50050         'do-autobuild' in --create-megatestdir output.
50051
50052         * doc/gnulib.texi (Build robot for gnulib): Fix.
50053
50054 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50055
50056         * modules/sysexits (Depends-on): Add absolute-header.
50057
50058 2007-04-12  Eric Blake  <ebb9@byu.net>
50059
50060         No need to preserve errno on success.
50061         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50062         Reported by Bruno Haible.
50063
50064 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50065
50066         * MODULES.html.sh (Support for maintaining and releasing
50067         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50068
50069 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50070
50071         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50072
50073 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50074
50075         * modules/autobuild: New module.
50076
50077         * m4/autobuild.m4: New file.
50078
50079 2007-04-11  Bruno Haible  <bruno@clisp.org>
50080
50081         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50082         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50083         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50085         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50086         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50087         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50089         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50090         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50092         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50093         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50095         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50096         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50097         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50098         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50099         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50100         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50101         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50102         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50104         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50105         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50107         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50108         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50109         Reported by Eric Blake.
50110
50111 2007-04-11  Bruno Haible  <bruno@clisp.org>
50112
50113         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50114
50115 2007-04-10  Bruno Haible  <bruno@clisp.org>
50116
50117         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50118         for NaN and Infinity. Needed on FreeBSD 6.1.
50119         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50120         regarding results for "%010a" of Infinity and NaN.
50121         * tests/test-vasprintf-posix.c (test_function): Likewise.
50122         * tests/test-snprintf-posix.h (test_function): Likewise.
50123         * tests/test-sprintf-posix.h (test_function): Likewise.
50124         * tests/test-fprintf-posix.h (test_function): Likewise.
50125         * tests/test-printf-posix.h (test_function): Likewise.
50126         * tests/test-fprintf-posix.out: Likewise.
50127
50128 2007-04-10  Bruno Haible  <bruno@clisp.org>
50129
50130         * modules/locale-tests: New file.
50131         * tests/test-locale.c: New file.
50132
50133         * modules/locale: New file.
50134         * lib/locale_.h: New file.
50135         * m4/locale_h.m4: New file.
50136
50137 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50138             Bruno Haible  <bruno@clisp.org>
50139
50140         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50141         be determined, test for availability of the copysignf, copysign,
50142         copysignl functions.
50143         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50144         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50145         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50146
50147 2007-04-09  Eric Blake  <ebb9@byu.net>
50148
50149         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50150         * modules/stdio (Makefile.am): Support fflush.
50151         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50152         * modules/fflush: New file.
50153         * lib/fflush.c: Likewise.
50154         * m4/fflush.m4: Likewise.
50155         * modules/fflush-tests: New test.
50156         * tests/test-fflush.c: Likewise.
50157         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50158
50159 2007-04-06  Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50162         (VASNPRINTF): Use signbit for faster determination whether to print a
50163         minus sign.
50164         * modules/vasnprintf (Files): Remove lib/float+.h.
50165         * modules/fprintf-posix (Depends-on): Add signbit.
50166         * modules/snprintf-posix (Depends-on): Likewise.
50167         * modules/sprintf-posix (Depends-on): Likewise.
50168         * modules/vasnprintf-posix (Depends-on): Likewise.
50169         * modules/vasprintf-posix (Depends-on): Likewise.
50170         * modules/vfprintf-posix (Depends-on): Likewise.
50171         * modules/vsnprintf-posix (Depends-on): Likewise.
50172         * modules/vsprintf-posix (Depends-on): Likewise.
50173
50174 2007-04-06  Bruno Haible  <bruno@clisp.org>
50175
50176         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50177         * tests/test-frexpl.c (main): Likewise.
50178         * tests/test-ldexpl.c (main): Likewise.
50179         * modules/frexp-tests (Depends-on): Add signbit.
50180         * modules/frexpl-tests (Depdends-on): Likewise.
50181         * modules/ldexpl-tests (Depdends-on): Likewise.
50182
50183 2007-04-06  Bruno Haible  <bruno@clisp.org>
50184
50185         * modules/signbit-tests: New file.
50186         * tests/test-signbit.c: New file.
50187
50188         * modules/signbit: New file.
50189         * lib/signbitf.c: New file.
50190         * lib/signbitd.c: New file.
50191         * lib/signbitl.c: New file.
50192         * m4/signbit.m4: New file.
50193         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50194         (signbit): New macro.
50195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50196         REPLACE_SIGNBIT.
50197         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
50198         REPLACE_FREXPL into math.h.
50199
50200 2007-04-06  Bruno Haible  <bruno@clisp.org>
50201
50202         * modules/isnanf-nolibm-tests: New file.
50203         * tests/test-isnanf.c: New file.
50204
50205         * modules/isnanf-nolibm: New file.
50206         * lib/isnanf.h: New file.
50207         * lib/isnanf.c: New file.
50208         * lib/isnan.c: Consider the USE_FLOAT macro.
50209         * m4/isnanf.m4: New file.
50210
50211 2007-04-06  Bruno Haible  <bruno@clisp.org>
50212
50213         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50214         (Link): New section.
50215
50216         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50217
50218 2007-04-06  Bruno Haible  <bruno@clisp.org>
50219
50220         Assume the 'long double' type.
50221         * m4/longdouble.m4: Remove file.
50222         * config/srclist.txt: Don't mention longdouble.m4.
50223         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50224         * lib/float+.h: Likewise.
50225         * lib/frexp.c: Likewise.
50226         * lib/printf-args.h: Likewise.
50227         * lib/printf-args.c: Likewise.
50228         * lib/printf-frexp.c: Likewise.
50229         * lib/printf-parse.c: Likewise.
50230         * lib/vasnprintf.c: Likewise.
50231         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50232         * m4/intl.m4: Likewise.
50233         * m4/isnanl.m4: Likewise.
50234         * m4/printf.m4: Likewise.
50235         * m4/printf-frexpl.m4: Likewise.
50236         * m4/vasnprintf.m4: Likewise.
50237         * modules/allocsa (Files): Remove m4/longdouble.m4.
50238         * modules/gettext (Files): Likewise.
50239         * modules/relocatable-prog-wrapper (Files): Likewise.
50240         * modules/vasnprintf (Files): Likewise.
50241         * modules/isnanl (Files): Likewise.
50242         (Include): Simplify.
50243         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50244         (Include): Simplify.
50245         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50246         (Include): Simplify.
50247         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50248         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50249         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50250         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50251         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50252         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50253         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50254         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50255         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50256         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50257         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50258         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50259         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50260         * tests/test-isnanl.c: Likewise.
50261         * tests/test-snprintf-posix.h: Likewise.
50262         * tests/test-sprintf-posix.h: Likewise.
50263         * tests/test-vasnprintf-posix.c: Likewise.
50264         * tests/test-vasnprintf-posix2.c: Likewise.
50265         * tests/test-vasprintf-posix.c: Likewise.
50266
50267 2007-04-06  Bruno Haible  <bruno@clisp.org>
50268
50269         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50270         * lib/math_.h [__DECC]: Include the overridden include file through
50271         #include_next, outside the double-inclusion guard.
50272         * lib/stdio_.h [__DECC]: Likewise.
50273         * lib/stdlib_.h [__DECC]: Likewise.
50274         * lib/string_.h [__DECC]: Likewise.
50275         * lib/time_.h [__DECC]: Likewise.
50276         * lib/wchar_.h [__DECC]: Likewise.
50277         * lib/wctype_.h [__DECC]: Likewise.
50278         * lib/inttypes_.h [__DECC]: Likewise.
50279         Reported by Albert Chin <china@thewrittenword.com> in
50280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50281
50282 2007-04-04  Eric Blake  <ebb9@byu.net>
50283
50284         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50285         1.5.x.
50286
50287 2007-04-04  Bruno Haible  <bruno@clisp.org>
50288
50289         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50290         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50291
50292 2007-04-04  Bruno Haible  <bruno@clisp.org>
50293
50294         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50295         results for "%010a" of Infinity and NaN.
50296         * tests/test-vasprintf-posix.c (test_function): Likewise.
50297         * tests/test-snprintf-posix.h (test_function): Likewise.
50298         * tests/test-sprintf-posix.h (test_function): Likewise.
50299         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50300         * tests/test-printf-posix.h (test_function): Likewise.
50301         * tests/test-fprintf-posix.out: Update.
50302         Needed for FreeBSD 6.1.
50303
50304 2007-04-04  Bruno Haible  <bruno@clisp.org>
50305
50306         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50307         directly used by the gnulib modules nor by gnulib-tool.
50308
50309 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50310
50311         * DEPENDENCIES: Give overall description of version dependency
50312         desirability.  Use more-typical names for apps.
50313         Add shell, coreutils, diffutils, grep, tar, gzip.
50314
50315 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50316
50317         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50318
50319 2007-04-04  Karl Berry  <karl@gnu.org>
50320
50321         * MODULES.html.sh (func_module): missing '.
50322
50323 2007-04-03  Bruno Haible  <bruno@clisp.org>
50324
50325         * modules/argmatch-tests (Makefile.am): New variable
50326         test_argmatch_LDADD.
50327         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50328         * modules/array-list-tests (Makefile.am): New variable
50329         test_array_list_LDADD.
50330         * modules/array-oset-tests (Makefile.am): New variable
50331         test_array_oset_LDADD.
50332         * modules/avltree-list-tests (Makefile.am): New variable
50333         test_avltree_list_LDADD.
50334         * modules/avltree-oset-tests (Makefile.am): New variable
50335         test_avltree_oset_LDADD.
50336         * modules/avltreehash-list-tests (Makefile.am): New variable
50337         test_avltreehash_list_LDADD.
50338         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50339         test_canonicalize_lgpl_LDADD.
50340         * modules/carray-list-tests (Makefile.am): New variable
50341         test_carray_list_LDADD.
50342         * modules/dirname-tests (Makefile.am): New variable
50343         test_dirname_LDADD.
50344         * modules/linked-list-tests (Makefile.am): New variable
50345         test_linked_list_LDADD.
50346         * modules/linkedhash-list-tests (Makefile.am): New variable
50347         test_linkedhash_list_LDADD.
50348         * modules/rbtree-list-tests (Makefile.am): New variable
50349         test_rbtree_list_LDADD.
50350         * modules/rbtree-oset-tests (Makefile.am): New variable
50351         test_rbtree_oset_LDADD.
50352         * modules/rbtreehash-list-tests (Makefile.am): New variable
50353         test_rbtreehash_list_LDADD.
50354         * modules/xvasprintf-tests (Makefile.am): New variable
50355         test_xvasprintf_LDADD.
50356         Reported by Eric Blake.
50357
50358 2007-04-03  Eric Blake  <ebb9@byu.net>
50359
50360         * DEPENDENCIES: Weaken m4 requirements.
50361
50362 2007-04-03  Bruno Haible  <bruno@clisp.org>
50363
50364         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50365         * modules/isnanl-tests (configure.ac): Likewise.
50366
50367 2007-04-03  Ben Pfaff  <blp@gnu.org>
50368
50369         * modules/iconv_open: Add $(srcdir)/ to source directory
50370         references in Makefile fragments that call gperf, to fix VPATH
50371         builds.
50372
50373 2007-04-03  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50376         * lib/ldexpl.c: Undo last change.
50377
50378 2007-04-03  Bruno Haible  <bruno@clisp.org>
50379
50380         * modules/printf-frexpl (Depends-on): Undo last change.
50381         (Files): Add m4/ldexpl.m4.
50382
50383 2007-04-03  Bruno Haible  <bruno@clisp.org>
50384
50385         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50386         * modules/isnanl (Link): New section.
50387
50388         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50389         * modules/frexp (Link): New section.
50390
50391         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50392         * modules/frexpl (Link): New section.
50393
50394         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50395         * modules/ldexpl (Link): New section.
50396
50397 2007-04-03  Bruno Haible  <bruno@clisp.org>
50398
50399         * modules/TEMPLATE-EXTENDED: New file.
50400         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50401
50402 2007-04-03  Bruno Haible  <bruno@clisp.org>
50403
50404         * DEPENDENCIES: New file.
50405         Suggested by Simon Josefsson.
50406
50407 2007-04-03  Bruno Haible  <bruno@clisp.org>
50408
50409         * doc/gnulib.texi: Escape @.
50410
50411 2007-04-03  James Youngman  <jay@gnu.org>
50412         and Paul Eggert  <eggert@cs.ucla.edu>
50413
50414         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50415         birthtime on all systems that have birthtime, not just those which
50416         use st_birthtimensec rather than st_birthtim.  Putting zero in
50417         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50418         that the birth time is not available for files on an NFS mount.
50419
50420 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50421
50422         * modules/memxor: Move back from crypto/, suggested by Bruno.
50423         * modules/crypto/hmac-sha1: Fix memxor dependency.
50424
50425         * modules/crypto/gc: Moved from ../.
50426
50427 2007-04-02  Eric Blake  <ebb9@byu.net>
50428
50429         * lib/ldexpl.c (includes): Avoid libm.
50430
50431         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50432
50433 2007-04-02  Bruno Haible  <bruno@clisp.org>
50434
50435         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50436         on IRIX.
50437
50438 2007-04-02  Bruno Haible  <bruno@clisp.org>
50439
50440         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50441         x86 or x86_64 platforms running MacOS X.
50442         Reported by Ryan Schmidt <@ryandesign.com>.
50443
50444 2007-04-02  Bruno Haible  <bruno@clisp.org>
50445
50446         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50447         i386.
50448
50449 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50450
50451         * modules/crypto/arcfour: Moved from ../.
50452         * modules/crypto/arcfour-tests: Moved from ../.
50453         * modules/crypto/arctwo: Moved from ../.
50454         * modules/crypto/arctwo-tests: Moved from ../.
50455         * modules/crypto/des: Moved from ../.
50456         * modules/crypto/des-tests: Moved from ../.
50457         * modules/crypto/gc-arcfour: Moved from ../.
50458         * modules/crypto/gc-arcfour-tests: Moved from ../.
50459         * modules/crypto/gc-arctwo: Moved from ../.
50460         * modules/crypto/gc-arctwo-tests: Moved from ../.
50461         * modules/crypto/gc-des: Moved from ../.
50462         * modules/crypto/gc-des-tests: Moved from ../.
50463         * modules/crypto/gc-hmac-md5: Moved from ../.
50464         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50465         * modules/crypto/gc-hmac-sha1: Moved from ../.
50466         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50467         * modules/crypto/gc-md2: Moved from ../.
50468         * modules/crypto/gc-md2-tests: Moved from ../.
50469         * modules/crypto/gc-md4: Moved from ../.
50470         * modules/crypto/gc-md4-tests: Moved from ../.
50471         * modules/crypto/gc-md5: Moved from ../.
50472         * modules/crypto/gc-md5-tests: Moved from ../.
50473         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50474         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50475         * modules/crypto/gc-random: Moved from ../.
50476         * modules/crypto/gc-rijndael: Moved from ../.
50477         * modules/crypto/gc-rijndael-tests: Moved from ../.
50478         * modules/crypto/gc-sha1: Moved from ../.
50479         * modules/crypto/gc-sha1-tests: Moved from ../.
50480         * modules/crypto/gc-tests: Moved from ../.
50481         * modules/crypto/hmac-md5: Moved from ../.
50482         * modules/crypto/hmac-md5-tests: Moved from ../.
50483         * modules/crypto/hmac-sha1: Moved from ../.
50484         * modules/crypto/hmac-sha1-tests: Moved from ../.
50485         * modules/crypto/md2: Moved from ../.
50486         * modules/crypto/md2-tests: Moved from ../.
50487         * modules/crypto/md4: Moved from ../.
50488         * modules/crypto/md4-tests: Moved from ../.
50489         * modules/crypto/md5: Moved from ../.
50490         * modules/crypto/md5-tests: Moved from ../.
50491         * modules/crypto/memxor: Moved from ../.
50492         * modules/crypto/rijndael: Moved from ../.
50493         * modules/crypto/rijndael-tests: Moved from ../.
50494         * modules/crypto/sha1: Moved from ../.
50495
50496 2007-03-30  James Youngman  <jay@gnu.org>
50497
50498         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50499         rename() to change the ctime of a file (because ctime is unaffected
50500         by rename on jfs2 on AIX 5.1).
50501         (main): Start by doing cleanup, in case a previous run failed leaving
50502         test files behind.
50503
50504 2007-03-31  Bruno Haible  <bruno@clisp.org>
50505
50506         Support old proprietary implementations of iconv.
50507         * modules/iconv_open: New file.
50508         * lib/iconv_.h: New file.
50509         * m4/iconv_h.m4: New file.
50510         * lib/iconv_open.c: New file.
50511         * lib/iconv_open-aix.gperf: New file.
50512         * lib/iconv_open-hpux.gperf: New file.
50513         * lib/iconv_open-irix.gperf: New file.
50514         * lib/iconv_open-osf.gperf: New file.
50515         * m4/iconv_open.m4: New file.
50516         * modules/linebreak (Depends-on): Add iconv_open.
50517         * modules/striconv (Depends-on): Likewise.
50518         * modules/striconveh (Depends-on): Likewise.
50519         * modules/unicodeio (Depends-on): Likewise.
50520         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50521         (iconv_t)(-1).
50522         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50523         conversion if cd is (iconv_t)(-1).
50524         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50525         is not possible.
50526
50527 2007-03-31  Bruno Haible  <bruno@clisp.org>
50528
50529         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50530         work on Solaris either. Protect also second use of "autodetect_jp".
50531
50532 2007-03-31  Bruno Haible  <bruno@clisp.org>
50533
50534         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50535         the function is not present.
50536
50537 2007-03-31  Bruno Haible  <bruno@clisp.org>
50538
50539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50540         the function is not present.
50541
50542 2007-03-31  Bruno Haible  <bruno@clisp.org>
50543
50544         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50545         a bug in HP-UX iconv_open().
50546
50547 2007-03-31  Bruno Haible  <bruno@clisp.org>
50548
50549         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50550         (Mathematics <math.h>): New section, add fpieee.
50551         (Input/output <stdio.h>): Add fseterr.
50552         (Mathematics <math.h>): New section, add printf-frexp.
50553         (Container data structures): Add sublist.
50554         (Core language properties): Add fpucw, inline.
50555         (Functions for greatest-width integer types <inttypes.h>): Add
50556         imaxabs, imaxdiv, inttypes.
50557         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50558         isnanl-nolibm, ldexp.
50559         (Mathematics <math.h>): New section, add printf-frexpl.
50560         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50561         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50562         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50563         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50564         (Unicode string functions): Add unistr/u*-mbtoucr.
50565         (Java): Add javacomp-script, javaexec-script.
50566         (C#): Add csharpcomp-script, csharpexec-script.
50567         (Support for building libraries and executables): Add havelib,
50568         relocatable-*.
50569         (Support for maintaining and releasing projects): Renamed from
50570         'Support for maintaining and release projects'. Add announce-gen.
50571
50572 2007-03-31  Bruno Haible  <bruno@clisp.org>
50573
50574         * README: Talk primarily about git.
50575         (git and CVS): Renamed from CVS.
50576         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50577         gnulib is available through git.
50578         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50579
50580 2007-03-30  Bruno Haible  <bruno@clisp.org>
50581
50582         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50583         * lib/poll_.h: Likewise.
50584         * lib/stat_.h: Likewise.
50585         * lib/sys_time_.h: Likewise.
50586         * lib/sysexit_.h: Likewise.
50587         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50588         * lib/stdbool_.h: Likewise.
50589         * lib/byteswap_.h: Add double-inclusion guard.
50590
50591 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50592
50593         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50594
50595 2007-03-30  Karl Berry  <karl@gnu.org>
50596
50597         * config/srclist-update: double space after USA in the license
50598         substitution, since that's how it's usually (?) written.
50599
50600 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50603         reported by Bruno Haible.
50604
50605 2007-03-29  Bruno Haible  <bruno@clisp.org>
50606
50607         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50608         a bug in AIX iconv().
50609
50610 2007-03-29  Bruno Haible  <bruno@clisp.org>
50611
50612         * modules/ldexpl-tests: New file.
50613         * tests/test-ldexpl.c: New file.
50614
50615 2007-03-29  Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/ldexpl.c: Include fpucw.h.
50618         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50619         multiplication.
50620         * modules/ldexpl (Depends-on): Add fpucw.
50621
50622 2007-03-29  Bruno Haible  <bruno@clisp.org>
50623
50624         * modules/ldexpl: New file.
50625         * m4/ldexpl.m4: New file.
50626         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50627         set.
50628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50629         REPLACE_LDEXPL.
50630         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50631         REPLACE_LDEXPL.
50632         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50633         gl_FUNC_LDEXPL_WORKS.
50634         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50635         * modules/mathl (Files): Remove lib/ldexpl.c.
50636         (Depends-on): Add ldexpl.
50637
50638 2007-03-29  Bruno Haible  <bruno@clisp.org>
50639
50640         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50641
50642 2007-03-29  Bruno Haible  <bruno@clisp.org>
50643
50644         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50645         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50646         and possibly also HP-UX.
50647         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50648         work on AIX, IRIX, HP-UX, OSF/1.
50649         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50650         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50651         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50652         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50653         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50654         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50655
50656 2007-03-29  Bruno Haible  <bruno@clisp.org>
50657
50658         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50659
50660 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50661
50662         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50663         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50664
50665 2007-03-29  Eric Blake  <ebb9@byu.net>
50666
50667         * lib/acl-internal.h: Remove redundant include.
50668         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50669         Cygwin when a file is locked.
50670
50671 2007-03-29  Bruno Haible  <bruno@clisp.org>
50672
50673         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50674         file.
50675         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50676
50677 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50678
50679         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50680         try to remove a parent directory if the child couldn't be removed
50681         (except for the first rmdir, which could fail because the child
50682         doesn't exist).  Problem reported by Jeff Blaine in
50683         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50684
50685 2007-03-28  Bruno Haible  <bruno@clisp.org>
50686
50687         * lib/striconveh.c (utf8conv_carefully): New function.
50688         (mem_cd_iconveh_internal): Invoke it.
50689
50690 2007-03-28  Bruno Haible  <bruno@clisp.org>
50691
50692         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50693         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50694         input.
50695         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50696         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50697         unistr/u8-uctomb.
50698
50699 2007-03-28  Bruno Haible  <bruno@clisp.org>
50700
50701         * modules/unistr/u8-mbtoucr: New file.
50702         * lib/unistr/u8-mbtoucr.c: New file.
50703         * modules/unistr/u16-mbtoucr: New file.
50704         * lib/unistr/u16-mbtoucr.c: New file.
50705         * modules/unistr/u16-mbtoucr: New file.
50706         * lib/unistr/u16-mbtoucr.c: New file.
50707         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50708
50709 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50710             Bruno Haible  <bruno@clisp.org>
50711
50712         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50713         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50714         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50715
50716         * m4/stdio_h.m4: Add stubs for vasprintf too.
50717
50718         * modules/stdio: Support vasprintf in sed command.
50719
50720         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50721         vasprintf.h.  Add stdio module indicator.
50722
50723         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50724         vasprintf.h.
50725
50726         * lib/vasprintf.h: File removed.
50727
50728         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50729         * lib/vasprintf.c: Ditto.
50730         * lib/xvasprintf.c: Ditto.
50731         * tests/test-vasprintf-posix.c: Ditto.
50732         * tests/test-vasprintf.c: Ditto.
50733
50734 2007-03-27  Bruno Haible  <bruno@clisp.org>
50735
50736         Make vasnprintf multithread-safe.
50737         * lib/vasnprintf.c (decimal_point_char): New function.
50738         (VASNPRINTF): Use it.
50739         Suggested by Simon Josefsson.
50740
50741 2007-03-27  Eric Blake  <ebb9@byu.net>
50742
50743         Support sub-second birthtime on cygwin.
50744         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50745         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50746         (get_stat_birthtime): Also work with st_birthtim.
50747
50748 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50749
50750         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50751         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50752         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50753         (get_stat_birthtime_ns): Simplify compile-time tests.
50754         (get_stat_birthtime): Change the API to look like
50755         get_stat_mtime etc., except return a negative tv_nsec on error.
50756         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50757         Don't check for "spare" fields.
50758         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50759         or for struct stat.st_birthtime, as these tests aren't used.
50760         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50761
50762 2007-03-27  Bruno Haible  <bruno@clisp.org>
50763
50764         * lib/stat-time.h: Include <sys/stat.h>.
50765
50766 2007-03-27  James Youngman  <jay@gnu.org>
50767
50768         * lib/stat-time.h (get_stat_birthtime): New function for
50769           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50770         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50771           and its variants.
50772         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50773         * modules/stat-time-test: New file.
50774         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50775
50776 2007-03-26  Bruno Haible  <bruno@clisp.org>
50777
50778         Better support of signalling NaNs.
50779         * lib/atanl.c: Include isnanl.h.
50780         (atanl): Perform test for NaN at the beginning of the function and
50781         through a call to isnanl.
50782         * lib/cosl.c: Include isnanl.h.
50783         (cosl): Perform test for NaN at the beginning of the function and
50784         through a call to isnanl.
50785         * lib/ldexpl.c: Include isnanl.h.
50786         (ldexpl): Perform test for NaN through a call to isnanl.
50787         * lib/logl.c: Include isnanl.h.
50788         (logl): Perform test for NaN at the beginning of the function and
50789         through a call to isnanl.
50790         * lib/sinl.c: Include isnanl.h.
50791         (sinl): Perform test for NaN at the beginning of the function and
50792         through a call to isnanl.
50793         * lib/sqrtl.c: Include isnanl.h.
50794         (sqrtl): Perform test for NaN at the beginning of the function and
50795         through a call to isnanl.
50796         * lib/tanl.c: Include isnanl.h.
50797         (tanl): Perform test for NaN at the beginning of the function and
50798         through a call to isnanl.
50799         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50800         * modules/mathl (Depends-on): Add isnanl.
50801
50802 2007-03-26  Eric Blake  <ebb9@byu.net>
50803
50804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50805         regression in logic sense of previous patch.
50806
50807 2007-03-26  Bruno Haible  <bruno@clisp.org>
50808
50809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50810         unportable shell command "if ! ...".
50811         Reported by Ralf Wildenhues.
50812
50813 2007-03-25  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50816         <sysexits.h> file, and only add EX_CONFIG.
50817         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50818         absolute file name and whether it is sufficient. Substitute also
50819         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50820         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50821         ABSOLUTE_SYSEXITS_H into sysexits.h.
50822
50823 2007-03-25  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50826         hints is NULL.
50827
50828 2007-03-25  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50831         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50832
50833 2007-03-25  Bruno Haible  <bruno@clisp.org>
50834
50835         * lib/vasnprintf.c: Include langinfo.h.
50836         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50837         multithread-safe.
50838         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50839         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50841         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50842         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50843         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50844         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50845         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50846         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50847         Reported by Simon Josefsson.
50848
50849 2007-03-25  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50852         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50853         * modules/vasnprintf (Depends-on): Add stdint.
50854
50855 2007-03-25  Bruno Haible  <bruno@clisp.org>
50856
50857         * modules/fpieee: New file.
50858         * m4/fpieee.m4: New file.
50859         * modules/isnan-nolibm (Depends-on): Add fpieee.
50860         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50861         * modules/isnanl (Depends-on): Add fpieee.
50862
50863 2007-03-25  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50866
50867 2007-03-25  Bruno Haible  <bruno@clisp.org>
50868
50869         Avoid test failures on IRIX 6.5.
50870         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50871         (main): Use it.
50872         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50873         macros.
50874         (main): Use them.
50875
50876 2007-03-25  Bruno Haible  <bruno@clisp.org>
50877
50878         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50879         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50880         exists but doesn't work.
50881         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50882         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50884         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50885
50886 2007-03-25  Bruno Haible  <bruno@clisp.org>
50887
50888         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50889         returns inf. Needed on IRIX 6.5.
50890
50891 2007-03-25  Bruno Haible  <bruno@clisp.org>
50892
50893         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50894         (main): Use isnanl instead of x != x idiom.
50895         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50896
50897         * tests/test-frexp.c: Include isnan.h.
50898         (main): Use isnan instead of x != x idiom.
50899         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50900
50901 2007-03-25  Bruno Haible  <bruno@clisp.org>
50902
50903         * tests/test-frexp.c (NaN): New function/macro.
50904         (main): Use it instead of 0.0 / 0.0.
50905         * tests/test-isnan.c (NaN): New function/macro.
50906         (main): Use it instead of 0.0 / 0.0.
50907         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50908         (test_function): Use it instead of 0.0 / 0.0.
50909         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50910         (test_function): Use it instead of 0.0 / 0.0.
50911         * tests/test-snprintf-posix.h (NaN): New function/macro.
50912         (test_function): Use it instead of 0.0 / 0.0.
50913         * tests/test-sprintf-posix.h (NaN): New function/macro.
50914         (test_function): Use it instead of 0.0 / 0.0.
50915         * tests/test-fprintf-posix.h (NaN): New function/macro.
50916         (test_function): Use it instead of 0.0 / 0.0.
50917         * tests/test-printf-posix.h (NaN): New function/macro.
50918         (test_function): Use it instead of 0.0 / 0.0.
50919
50920         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50921
50922 2007-03-25  Bruno Haible  <bruno@clisp.org>
50923
50924         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50925
50926 2007-03-25  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/regexec.c (merge_state_with_log): Make static.
50929
50930 2007-03-25  Bruno Haible  <bruno@clisp.org>
50931
50932         * lib/trigl.c (kernel_rem_pio2): Make static.
50933
50934 2007-03-25  Bruno Haible  <bruno@clisp.org>
50935
50936         * lib/sincosl.c (sincosl_table): Make static.
50937
50938 2007-03-25  Bruno Haible  <bruno@clisp.org>
50939
50940         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50941         if the compiler does not support C99.
50942
50943 2007-03-25  Bruno Haible  <bruno@clisp.org>
50944
50945         * modules/time (Makefile.am): Ensure all rule action lines start with a
50946         tab.
50947
50948 2007-03-24  Bruno Haible  <bruno@clisp.org>
50949
50950         * modules/tsearch-tests: New file.
50951         * tests/test-tsearch.sh: New file.
50952         * tests/test-tsearch.c: New file, mostly copied from glibc.
50953
50954         * modules/search-tests: New file.
50955         * tests/test-search.c: New file.
50956
50957         * modules/search: New file.
50958         * lib/search_.h: New file, incorporating lib/tsearch.h.
50959         * m4/search_h.m4: New file.
50960         * lib/tsearch.h: Remove file.
50961         * lib/tsearch.c: Include search.h instead of tsearch.h.
50962         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50963         HAVE_TSEARCH.
50964         * modules/tsearch (Files): Remove lib/tsearch.h.
50965         (Depends-on): Add search.
50966         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50967         (Include): Change tsearch.h into search.h.
50968
50969 2007-03-24  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/fpucw: New file.
50972         * lib/fpucw.h: New file.
50973         * lib/frexp.c: Include fpucw.h.
50974         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50975         (FUNC): Use them.
50976         * lib/printf-frexp.c: Include fpucw.h.
50977         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50978         (FUNC): Use them.
50979         * lib/vasnprintf.c: Include fpucw.h.
50980         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50981         'long double' calculations.
50982         * tests/test-frexpl.c: Include fpucw.h.
50983         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50984         * tests/test-printf-frexpl.c: Include fpucw.h.
50985         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50986         * modules/frexpl (Depends-on): Add fpucw.
50987         * modules/printf-frexpl (Depends-on): Likewise.
50988         * modules/fprintf-posix (Depends-on): Likewise.
50989         * modules/snprintf-posix (Depends-on): Likewise.
50990         * modules/sprintf-posix (Depends-on): Likewise.
50991         * modules/vasnprintf-posix (Depends-on): Likewise.
50992         * modules/vasprintf-posix (Depends-on): Likewise.
50993         * modules/vfprintf-posix (Depends-on): Likewise.
50994         * modules/vsnprintf-posix (Depends-on): Likewise.
50995         * modules/vsprintf-posix (Depends-on): Likewise.
50996         * modules/frexpl-tests (Depends-on): Likewise.
50997         * modules/printf-frexpl-tests (Depends-on): Likewise.
50998
50999 2007-03-24  Bruno Haible  <bruno@clisp.org>
51000
51001         * lib/float+.h: New file.
51002         * lib/isnan.c: Include float+.h.
51003         (SIZE): New macro.
51004         (FUNC): Compare only SIZE bytes of the value.
51005         * lib/vasnprintf.c: Include float+.h.
51006         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
51007         SIZEOF_LDBL or SIZEOF_DBL bytes.
51008         * modules/isnan-nolibm (Files): Add lib/float+.h.
51009         * modules/isnanl-nolibm (Files): Add lib/float+.h.
51010         * modules/isnanl (Files): Add lib/float+.h.
51011         * modules/vasnprintf (Files): Add lib/float+.h.
51012
51013 2007-03-24  Bruno Haible  <bruno@clisp.org>
51014
51015         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
51016         include isnanl-nolibm.h.
51017
51018 2007-03-24  Bruno Haible  <bruno@clisp.org>
51019
51020         * tests/test-read-file.c (main): Don't produce spurious output for
51021         expected situations. Make the test fail if it encountered unexpected
51022         results.
51023
51024 2007-03-24  Bruno Haible  <bruno@clisp.org>
51025
51026         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
51027         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
51028
51029 2007-03-24  Bruno Haible  <bruno@clisp.org>
51030
51031         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
51032
51033 2007-03-24  Bruno Haible  <bruno@clisp.org>
51034
51035         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
51036         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
51037
51038         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
51039         * modules/utf8-ucs4: Turn into a symbolic link to module
51040         unistr/u8-mbtouc.
51041
51042         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
51043         utf8-ucs4-unsafe.
51044         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
51045         unistr/u8-mbtouc-unsafe.
51046
51047         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
51048         * modules/utf16-ucs4: Turn into a symbolic link to module
51049         unistr/u16-mbtouc.
51050
51051         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
51052         utf16-ucs4-unsafe.
51053         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51054         unistr/u16-mbtouc-unsafe.
51055
51056         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51057         * modules/ucs4-utf8: Turn into a symbolic link to module
51058         unistr/u8-ubtomb.
51059
51060         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51061         * modules/ucs4-utf16: Turn into a symbolic link to module
51062         unistr/u16-ubtomb.
51063
51064 2007-03-24  Bruno Haible  <bruno@clisp.org>
51065
51066         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51067         Enable the function only if HAVE_INLINE.
51068         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51069         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51070         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51071         Enable the function only if HAVE_INLINE.
51072         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51073         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51074         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51075         Enable the function only if HAVE_INLINE.
51076         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51077         Enable the function only if HAVE_INLINE.
51078         * modules/utf8-ucs4: Update.
51079         * modules/utf8-ucs4-unsafe: Update.
51080         * modules/utf16-ucs4: Update.
51081         * modules/utf16-ucs4-unsafe: Update.
51082         * modules/ucs4-utf8: Update.
51083         * modules/ucs4-utf16: Update.
51084
51085 2007-03-24  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/utf8-ucs4.h: Remove file.
51088         * lib/utf8-ucs4-unsafe.h: Remove file.
51089         * lib/utf16-ucs4.h: Remove file.
51090         * lib/utf16-ucs4-unsafe.h: Remove file.
51091         * lib/ucs4-utf8.h: Remove file.
51092         * lib/ucs4-utf16.h: Remove file.
51093         * lib/unistr.h: Include their previous contents.
51094         * m4/utf-ucs4.m4: Remove file.
51095         * m4/ucs4-utf.m4: Remove file.
51096         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51097         (Depends-on): Add unistr/base.
51098         (configure.ac): Remove gl_UTF_UCS4.
51099         (Makefile.am): Update.
51100         (Include): Change to unistr.h.
51101         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51102         (Depends-on): Add unistr/base.
51103         (configure.ac): Remove gl_UTF_UCS4.
51104         (Makefile.am): Update.
51105         (Include): Change to unistr.h.
51106         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51107         (Depends-on): Add unistr/base.
51108         (configure.ac): Remove gl_UTF_UCS4.
51109         (Makefile.am): Update.
51110         (Include): Change to unistr.h.
51111         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51112         (Depends-on): Add unistr/base.
51113         (configure.ac): Remove gl_UTF_UCS4.
51114         (Makefile.am): Update.
51115         (Include): Change to unistr.h.
51116         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51117         (Depends-on): Add unistr/base.
51118         (configure.ac): Remove gl_UCS4_UTF.
51119         (Makefile.am): Update.
51120         (Include): Change to unistr.h.
51121         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51122         (Depends-on): Add unistr/base.
51123         (configure.ac): Remove gl_UCS4_UTF.
51124         (Makefile.am): Update.
51125         (Include): Change to unistr.h.
51126         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51127         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51128         utf8-ucs4-unsafe.h.
51129         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51130         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51131         utf16-ucs4-unsafe.h.
51132         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51133         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51134         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51135         * lib/unistr/u8-strchr.c: Likewise.
51136         * lib/unistr/u8-strrchr.c: Likewise.
51137         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51138         * lib/unistr/u16-strchr.c: Likewise.
51139         * lib/unistr/u16-strrchr.c: Likewise.
51140         * lib/striconveh.c: Update.
51141         * lib/linebreak.c: Update.
51142
51143 2007-03-24  Bruno Haible  <bruno@clisp.org>
51144
51145         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51146         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51147
51148 2007-03-22  Bruno Haible  <bruno@clisp.org>
51149
51150         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51151
51152 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51153
51154         * MODULES.html.sh (File system functions): New module write-any-file.
51155         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51156         * m4/write-any-file.m4: New files.
51157
51158 2007-03-23  Eric Blake  <ebb9@byu.net>
51159
51160         * gnulib-tool: Rearrange space-tab sequences, since some editors
51161         like to eat them.
51162
51163 2007-03-23  Eric Blake  <ebb9@byu.net>
51164
51165         * lib/version-etc.c (version_etc_va): Update license wording to
51166         be more concise.  Recommended by Richard Stallman.
51167
51168 2007-03-22  Bruno Haible  <bruno@clisp.org>
51169
51170         * lib/poll.c (MSG_PEEK): New fallback definition.
51171
51172 2007-03-22  Bruno Haible  <bruno@clisp.org>
51173
51174         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51175         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51176         (main): Update.
51177         Fixes a compilation error on BeOS.
51178
51179 2007-03-22  Bruno Haible  <bruno@clisp.org>
51180
51181         * modules/frexpl-tests: New file.
51182         * tests/test-frexpl.c: New file.
51183
51184         * modules/frexpl: New file.
51185         * m4/frexpl.m4: New file.
51186         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51187         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51189         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51190         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51191         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51192
51193 2007-03-22  Bruno Haible  <bruno@clisp.org>
51194
51195         * lib/frexpl.c: Share code with lib/frexp.c.
51196         * modules/mathl (Files): Add lib/frexp.c.
51197         (Depends-on): Add isnanl-nolibm.
51198
51199 2007-03-22  Bruno Haible  <bruno@clisp.org>
51200
51201         * modules/printf-frexp (Files): Add m4/frexp.m4.
51202         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51203         only if the found frexp function actually works.
51204
51205 2007-03-22  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/frexp.c: Remove older implementation that uses divisions.
51208
51209 2007-03-21  Bruno Haible  <bruno@clisp.org>
51210
51211         * modules/frexp-tests: New file.
51212         * tests/test-frexp.c: New file.
51213
51214         * modules/frexp: New file.
51215         * lib/frexp.c: New file.
51216         * m4/frexp.m4: New file.
51217         * lib/math_.h (frexp): New declaration.
51218         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51219         REPLACE_FREXP.
51220         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51221
51222 2007-03-21  Bruno Haible  <bruno@clisp.org>
51223
51224         * modules/isnanl-tests: New file.
51225         * tests/test-isnanl.c: New file.
51226
51227         * modules/isnanl: New file.
51228         * lib/isnanl.h: New file.
51229         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51230         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51231         gl_FUNC_ISNANL_WORKS.
51232         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51233         New macros.
51234
51235 2007-03-21  Bruno Haible  <bruno@clisp.org>
51236
51237         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51238         lib/isnanl.h.
51239         (Include): Update.
51240         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51241         * lib/vasnprintf.c: Update.
51242         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51243         tests/test-isnanl.h, remove tests/test-isnanl.c.
51244         (Makefile.am): Update.
51245         * tests/test-isnanl-nolibm.c: New file.
51246         * tests/test-isnanl.h: New file.
51247         * tests/test-isnanl.c: Remove file.
51248
51249 2007-03-21  Jim Meyering  <jim@meyering.net>
51250
51251         When trying to open ".", treat ESTALE like EACCES.
51252         * lib/savewd.c (savewd_save): Resort to forking not just upon
51253         failure with EACCES, but also when errno is ESTALE.
51254
51255 2007-03-20  Bruno Haible  <bruno@clisp.org>
51256
51257         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51258         Needed on AIX 5.1. Reported by Matthew Woehlke.
51259
51260 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51261
51262         Suggestions by Bruno Haible:
51263         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51264         our own.
51265         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51266         * modules/acl (Depends-on): Add gettext.
51267
51268 2007-03-19  Bruno Haible  <bruno@clisp.org>
51269
51270         * modules/iconvme: Remove file.
51271         * lib/iconvme.h: Remove file.
51272         * lib/iconvme.c: Remove file.
51273         * m4/iconvme.m4: Remove file.
51274
51275 2007-03-19  Bruno Haible  <bruno@clisp.org>
51276
51277         * doc/relocatable-maint.texi: Break long shell script line.
51278         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51279
51280 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51281
51282         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51283         handle file_has_acl.
51284         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51285         * lib/acl.c: Move header inclusions and related macro defns into
51286         lib/acl-internal.h.
51287         (S_ISLNK): Remove defn, since that's now done for us.
51288         (file_has_acl): Move to lib/file-has-acl.c.
51289         Call acl_trivial if available.  This is the crucial part of the fix.
51290         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51291         shared within the library.  Rewrite a bit, partly to make it compatible
51292         with the GNU coding style.
51293         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51294         Remove unnecessary double-quotes.
51295         Don't test for acl_to_text; the build will catch that.
51296         Replace acl_entries if it doesn't exist and it is needed.
51297         Check for -lsec and acl_trivial (as used on Solaris 10).
51298         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51299         lib/file-has-acl.c.
51300         (Depends-on): Add sys_stat, for S_ISLNK.
51301
51302 2007-03-19  Ben Pfaff  <blp@gnu.org>
51303
51304         * doc/gnulib.texi: Fix typos.
51305         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51306
51307 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51308
51309         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51310         If size is zero here, buf must be zero.
51311
51312 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51313
51314         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51315         <bruno@clisp.org>.
51316
51317 2007-03-18  Bruno Haible  <bruno@clisp.org>
51318
51319         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51320         Suggested by Eric Blake.
51321
51322 2007-03-18  Ben Pfaff  <blp@gnu.org>
51323
51324         * doc/relocatable.texi: Recommend using as prefix a directory
51325         that does not exist and will never be created.  Based on
51326         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51327         and others.
51328
51329 2007-03-17  Bruno Haible  <bruno@clisp.org>
51330
51331         * lib/fchownat.c: Include lchown.h.
51332
51333 2007-03-17  Bruno Haible  <bruno@clisp.org>
51334
51335         Fix endless loop when the given allocated size was > INT_MAX.
51336         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51337         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51338         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51339         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51340         * lib/sprintf.c (sprintf): Likewise.
51341
51342 2007-03-17  Bruno Haible  <bruno@clisp.org>
51343
51344         * tests/test-argp-2.sh (func_compare): Output a context diff.
51345
51346 2007-03-17  Bruno Haible  <bruno@clisp.org>
51347
51348         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51349         locale's decimal-point character.
51350
51351 2007-03-17  Bruno Haible  <bruno@clisp.org>
51352
51353         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51354         before comparing it. Needed because on some platforms (e.g. x86) a
51355         'long double' occupies less bytes than sizeof (long double).
51356
51357 2007-03-17  Bruno Haible  <bruno@clisp.org>
51358
51359         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51360         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51361         * tests/test-getaddrinfo.c (simple): Likewise.
51362         * tests/test-read-file.c (main): Likewise.
51363
51364 2007-03-17  Bruno Haible  <bruno@clisp.org>
51365
51366         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51367
51368 2007-03-17  Bruno Haible  <bruno@clisp.org>
51369
51370         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51371         unused variable.
51372
51373 2007-03-17  Bruno Haible  <bruno@clisp.org>
51374
51375         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51376         * tests/test-c-strncasecmp.c: Likewise.
51377
51378 2007-03-17  Bruno Haible  <bruno@clisp.org>
51379
51380         * modules/stdlib (Depends-on): Add unistd.
51381         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51382         Needed for MacOS X 10.3.
51383
51384 2007-03-17  Bruno Haible  <bruno@clisp.org>
51385
51386         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51387
51388 2007-03-17  Bruno Haible  <bruno@clisp.org>
51389
51390         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51391
51392 2007-03-17  Bruno Haible  <bruno@clisp.org>
51393
51394         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51395         to reflect files copied from gnulib (with or without modifications).
51396         Suggested by Jim Meyering.
51397
51398 2007-03-17  Eric Blake  <ebb9@byu.net>
51399
51400         * NEWS: Document stdlib change from 2007-02-18.
51401
51402 2007-03-17  Jim Meyering  <jim@meyering.net>
51403
51404         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51405         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51406         someone uses a name containing shell meta-characters.
51407         Reported by Alfred M. Szmidt.
51408
51409         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51410
51411 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51412
51413         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51414         and copy gettext configuration files only if configure.ac contains
51415         a use of AM_GNU_GETTEXT_VERSION.
51416
51417 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51418
51419         * build-aux/bootstrap (gnulib_name): New variable.
51420         (gnulib_tool_options): Use it.
51421
51422 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51423
51424         * tests/test-des.c: Use new namespace.
51425
51426 2007-03-15  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51429         Reported by James Youngman <jay@gnu.org>.
51430
51431 2007-03-15  Bruno Haible  <bruno@clisp.org>
51432
51433         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51434         declared prototype. Needed with cc on OSF/1 5.1.
51435
51436 2007-03-15  Bruno Haible  <bruno@clisp.org>
51437
51438         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51439         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51440         (struct gl_list_implementation): Add dispose_fn argument to the
51441         'create_empty', 'create' methods.
51442         (struct gl_list_impl_base): Add field 'dispose_fn'.
51443         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51444         argument.
51445         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51446         dispose_fn argument.
51447         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51448         dispose_fn on the dropped values.
51449         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51450         dispose_fn argument.
51451         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51452         dropped values.
51453         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51454         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51455         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51456         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51457         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51458         argument.
51459         (gl_tree_list_free): Call dispose_fn on the dropped values.
51460         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51461         the dropped values.
51462         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51463         Add dispose_fn argument.
51464         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51465         Call dispose_fn on the dropped values.
51466         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51467         Add dispose_fn argument.
51468         (gl_sublist_create): Initialize the 'dispose_fn' field.
51469         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51470         * tests/test-array_list.c (main): Update.
51471         * tests/test-carray_list.c (main): Update.
51472         * tests/test-avltree_list.c (main): Update.
51473         * tests/test-rbtree_list.c (main): Update.
51474         * tests/test-avltreehash_list.c (main): Update.
51475         * tests/test-rbtreehash_list.c (main): Update.
51476         * tests/test-linked_list.c (main): Update.
51477         * tests/test-linkedhash_list.c (main): Update.
51478         * tests/test-array_oset.c (main): Update.
51479
51480 2007-03-15  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51483         (gl_oset_create_empty): Add dispose_fn argument.
51484         (struct gl_oset_implementation): Add dispose_fn argument to
51485         'create_empty' method.
51486         (struct gl_oset_impl_base): Add dispose_fn field.
51487         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51488         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51489         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51490         values.
51491         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51492         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51493         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51494         dropped value.
51495         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51496         dropped value.
51497         * tests/test-array_oset.c (main): Update.
51498         * tests/test-avltree_oset.c (main): Update.
51499         * tests/test-rbtree_oset.c (main): Update.
51500         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51501
51502 2007-03-13  Bruno Haible  <bruno@clisp.org>
51503
51504         * tests/test-stdbool.c (i): Update after last patch.
51505
51506 2007-03-12  Bruno Haible  <bruno@clisp.org>
51507
51508         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51509         the iswprint macro. Needed on Solaris 2.5.1.
51510
51511 2007-03-12  Bruno Haible  <bruno@clisp.org>
51512
51513         * tests/test-printf-frexp.c (main): Declare x as volatile.
51514
51515 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51516
51517         * doc/gnulib.texi (Build robot for gnulib): New section.
51518
51519 2007-03-12  Jim Meyering  <jim@meyering.net>
51520
51521         * build-aux/bootstrap: New file.
51522         * build-aux/bootstrap.conf: New file, from coreutils.
51523
51524 2007-03-11  Bruno Haible  <bruno@clisp.org>
51525
51526         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51527
51528 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51529
51530         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51531         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51532         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51533
51534 2007-03-11  Bruno Haible  <bruno@clisp.org>
51535
51536         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51537         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51538
51539 2007-03-11  Bruno Haible  <bruno@clisp.org>
51540
51541         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51542         formula. Needed for SunPRO C 5.0.
51543
51544 2007-03-11  Bruno Haible  <bruno@clisp.org>
51545
51546         * modules/long-options (Depends-on): Add getopt.
51547
51548 2007-03-11  Bruno Haible  <bruno@clisp.org>
51549
51550         * modules/modechange (Depends-on): Add stdbool.
51551
51552 2007-03-11  Bruno Haible  <bruno@clisp.org>
51553
51554         * modules/i-ring (Depends-on): Add stdbool.
51555
51556 2007-03-11  Bruno Haible  <bruno@clisp.org>
51557
51558         * modules/gc-des (Depends-on): Add stdbool.
51559
51560 2007-03-11  Bruno Haible  <bruno@clisp.org>
51561
51562         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51563
51564 2007-03-11  Bruno Haible  <bruno@clisp.org>
51565
51566         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51567
51568 2007-03-11  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51571
51572 2007-03-11  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/vasnprintf.c (sprintf): Undefine.
51575
51576 2007-03-11  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51579         initializers in SunPRO C and Compaq C compilers.
51580
51581 2007-03-11  Bruno Haible  <bruno@clisp.org>
51582
51583         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51584         decrementing code ANSI C compliant.
51585
51586 2007-03-11  Bruno Haible  <bruno@clisp.org>
51587
51588         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51589         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51590
51591 2007-03-11  Bruno Haible  <bruno@clisp.org>
51592
51593         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51594         <stdbool.h> substitute doesn't pass.
51595
51596 2007-03-11  Bruno Haible  <bruno@clisp.org>
51597
51598         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51599
51600 2007-03-11  Bruno Haible  <bruno@clisp.org>
51601
51602         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51603         script, for submission to autobuild.josefsson.org.
51604
51605 2007-03-10  Bruno Haible  <bruno@clisp.org>
51606
51607         * modules/canonicalize-lgpl-tests: New file.
51608         * tests/test-canonicalize-lgpl.sh: New file.
51609         * tests/test-canonicalize-lgpl.c: New file.
51610
51611         * modules/c-strcase-tests: New file.
51612         * tests/test-c-strcase.sh: New file.
51613         * tests/test-c-strcasecmp.c: New file.
51614         * tests/test-c-strncasecmp.c: New file.
51615
51616         * modules/atexit-tests: New file.
51617         * tests/test-atexit.sh: New file.
51618         * tests/test-atexit.c: New file.
51619
51620 2007-03-10  Bruno Haible  <bruno@clisp.org>
51621
51622         * tests/test-binary-io.sh: Use temporary filenames that are not so
51623         likely to clash with those of other tests (in a parallel make).
51624         * tests/test-binary-io.c: Likewise.
51625
51626 2007-03-10  Bruno Haible  <bruno@clisp.org>
51627
51628         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51629         fallback; use #error instead.
51630         Suggested by Simon Josefsson.
51631
51632 2007-03-10  Bruno Haible  <bruno@clisp.org>
51633
51634         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51635         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51636         first and the last.
51637
51638 2007-03-10  Bruno Haible  <bruno@clisp.org>
51639
51640         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51641
51642 2007-03-10  Bruno Haible  <bruno@clisp.org>
51643
51644         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51645         "make distcheck".
51646         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51647         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51648         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51649
51650 2007-03-10  Bruno Haible  <bruno@clisp.org>
51651
51652         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51653         variable.
51654         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51655         variable.
51656
51657 2007-03-09  Eric Blake  <ebb9@byu.net>
51658         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51659
51660         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51661         types are not being provided by gnulib.
51662         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51663         types are supported.
51664
51665 2007-03-10  Bruno Haible  <bruno@clisp.org>
51666
51667         * lib/stdio_.h (__attribute__): New macro.
51668         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51669         vsprintf): Specify __attribute__ __format__ for GCC.
51670         Suggested by Eric Blake.
51671
51672 2007-03-09  Bruno Haible  <bruno@clisp.org>
51673
51674         * modules/printf-posix-tests: New file.
51675         * tests/test-printf-posix.sh: New file.
51676         * tests/test-printf-posix.c: New file.
51677
51678         * modules/printf-posix: New file.
51679         * lib/printf.c: New file.
51680         * m4/printf-posix-rpl.m4: New file.
51681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51682         REPLACE_PRINTF.
51683         * lib/stdio_.h (printf): New declaration.
51684         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51685         ____strfmon____): New macros.
51686         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51687         REPLACE_PRINTF.
51688
51689 2007-03-09  Bruno Haible  <bruno@clisp.org>
51690
51691         * tests/test-vasnprintf-posix2.sh: New file.
51692         * tests/test-vasnprintf-posix2.c: New file.
51693         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51694         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51695         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51696
51697         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51698         a locale dependent decimal point, rather than always '.'.
51699
51700 2007-03-09  Eric Blake  <ebb9@byu.net>
51701
51702         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51703         spite of platforms like Tandem/NSK that define it to -1.
51704
51705 2007-03-08  Bruno Haible  <bruno@clisp.org>
51706
51707         * modules/vprintf-posix-tests: New file.
51708         * tests/test-vprintf-posix.sh: New file.
51709         * tests/test-vprintf-posix.c: New file.
51710         * tests/test-printf-posix.h: New file.
51711
51712         * modules/vprintf-posix: New file.
51713         * lib/vprintf.c: New file.
51714         * m4/vprintf-posix.m4: New file.
51715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51716         REPLACE_VPRINTF.
51717         * lib/stdio_.h (vprintf): New declaration.
51718         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51719         REPLACE_VPRINTF.
51720
51721 2007-03-08  Bruno Haible  <bruno@clisp.org>
51722
51723         * modules/fprintf-posix-tests: New file.
51724         * tests/test-fprintf-posix.sh: New file.
51725         * tests/test-fprintf-posix.c: New file.
51726
51727         * modules/fprintf-posix: New file.
51728         * lib/fprintf.c: New file.
51729         * m4/fprintf-posix.m4: New file.
51730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51731         REPLACE_FPRINTF.
51732         * lib/stdio_.h (fprintf): New declaration.
51733         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51734         REPLACE_FPRINTF.
51735
51736 2007-03-08  Bruno Haible  <bruno@clisp.org>
51737
51738         * modules/vfprintf-posix-tests: New file.
51739         * tests/test-vfprintf-posix.sh: New file.
51740         * tests/test-vfprintf-posix.c: New file.
51741         * tests/test-fprintf-posix.h: New file.
51742         * tests/test-fprintf-posix.out: New file.
51743
51744         * modules/vfprintf-posix: New file.
51745         * lib/vfprintf.c: New file.
51746         * m4/vfprintf-posix.m4: New file.
51747         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51748         REPLACE_VFPRINTF.
51749         * lib/stdio_.h (vfprintf): New declaration.
51750         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51751         REPLACE_VFPRINTF.
51752
51753 2007-03-08  Bruno Haible  <bruno@clisp.org>
51754
51755         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51756
51757 2007-03-08  Bruno Haible  <bruno@clisp.org>
51758
51759         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51760         instead of 'expr' invocations.
51761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51764         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51765         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51766         Suggested by Paul Eggert.
51767
51768 2007-03-08  Bruno Haible  <bruno@clisp.org>
51769
51770         * modules/fseterr-tests: New file.
51771         * tests/test-fseterr.c: New file.
51772
51773         * modules/fseterr: New file.
51774         * lib/fseterr.h: New file.
51775         * lib/fseterr.c: New file.
51776
51777 2007-03-08  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51780         * lib/getopt_.h: Likewise.
51781         * lib/mbswidth.h: Likewise.
51782         * lib/setenv.h: Likewise.
51783         * lib/vasnprintf.h: Likewise.
51784         * lib/vasprintf.h: Likewise.
51785         * lib/verror.h: Likewise.
51786         * lib/xsetenv.h: Likewise.
51787         * lib/xvasprintf.h: Likewise.
51788
51789 2007-03-08  Jim Meyering  <jim@meyering.net>
51790
51791         * users.txt: Add parted.
51792
51793         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51794
51795 2007-03-07  Bruno Haible  <bruno@clisp.org>
51796
51797         * m4/printf.m4: Make the shell script snippets copy&pastable.
51798
51799 2007-03-02  Bruno Haible  <bruno@clisp.org>
51800
51801         * lib/netinet_in_.h: New file.
51802         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51803         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51804         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51805         (Depends-on): Add absolute-header.
51806         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51807         into netinet/in.h.
51808
51809 2007-03-03  Bruno Haible  <bruno@clisp.org>
51810
51811         * lib/sys_select_.h: New file.
51812         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51813         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51814         * modules/sys_select (Files): Add lib/sys_select_.h.
51815         (Depends-on): Add absolute-header.
51816         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51817         into sys/select.h.
51818
51819 2007-03-02  Bruno Haible  <bruno@clisp.org>
51820
51821         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51822         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51823         values.
51824         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51825         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51826         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51827         * modules/sys_socket (Depends-on): Add absolute-header.
51828         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51829         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51830         (Include): Remove requirement of inclusion of <sys/types.h>.
51831
51832 2007-03-02  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/byteswap_.h (bswap_32): Fix formula.
51835
51836 2007-03-06  Bruno Haible  <bruno@clisp.org>
51837
51838         * modules/sprintf-posix-tests: New file.
51839         * tests/test-sprintf-posix.c: New file.
51840
51841         * modules/sprintf-posix: New file.
51842         * lib/sprintf.c: New file.
51843         * m4/sprintf-posix.m4: New file.
51844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51845         REPLACE_SPRINTF.
51846         * lib/stdio_.h (sprintf): New declaration.
51847         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51848         REPLACE_SPRINTF.
51849
51850 2007-03-06  Bruno Haible  <bruno@clisp.org>
51851
51852         * modules/vsprintf-posix-tests: New file.
51853         * tests/test-vsprintf-posix.c: New file.
51854         * tests/test-sprintf-posix.h: New file.
51855
51856         * modules/vsprintf-posix: New file.
51857         * lib/vsprintf.c: New file.
51858         * m4/vsprintf-posix.m4: New file.
51859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51860         REPLACE_VSPRINTF.
51861         * lib/stdio_.h (vsprintf): New declaration.
51862         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51863         REPLACE_VSPRINTF.
51864
51865 2007-03-06  Bruno Haible  <bruno@clisp.org>
51866
51867         * modules/vsnprintf (Depend-on): Remove minmax.
51868
51869 2007-03-06  Bruno Haible  <bruno@clisp.org>
51870
51871         * modules/snprintf-posix-tests: New file.
51872         * tests/test-snprintf-posix.c: New file.
51873
51874         * modules/snprintf-posix: New file.
51875         * m4/snprintf-posix.m4: New file.
51876         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51877         gl_FUNC_SNPRINTF.
51878         (gl_FUNC_SNPRINTF): Invoke it.
51879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51880         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51881         is set.
51882         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51883
51884 2007-03-06  Bruno Haible  <bruno@clisp.org>
51885
51886         * modules/vsnprintf-posix-tests: New file.
51887         * tests/test-vsnprintf-posix.c: New file.
51888         * tests/test-snprintf-posix.h: New file.
51889
51890         * modules/vsnprintf-posix: New file.
51891         * m4/vsnprintf-posix.m4: New file.
51892         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51893         gl_FUNC_VSNPRINTF.
51894         (gl_FUNC_VSNPRINTF): Invoke it.
51895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51896         * lib/stdio_.h (vsnprintf): Define as a replacement if
51897         REPLACE_VSNPRINTF is set.
51898         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51899
51900 2007-03-06  Bruno Haible  <bruno@clisp.org>
51901
51902         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51904
51905 2007-03-06  Bruno Haible  <bruno@clisp.org>
51906
51907         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51908         (asinl): Declare also if HAVE_DECL_ASINL is set.
51909         (atanl): Declare also if HAVE_DECL_ATANL is set.
51910         (ceill): Declare also if HAVE_DECL_CEILL is set.
51911         (cosl): Declare also if HAVE_DECL_COSL is set.
51912         (expl): Declare also if HAVE_DECL_EXPL is set.
51913         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51914         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51915         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51916         (logl): Declare also if HAVE_DECL_LOGL is set.
51917         (sinl): Declare also if HAVE_DECL_SINL is set.
51918         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51919         (tanl): Declare also if HAVE_DECL_TANL is set.
51920         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51922         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51923         declaration of frexpl, ldexpl.
51924         * modules/printf-frexpl (Depends-on): Add math.
51925         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51926
51927 2007-03-05  Bruno Haible  <bruno@clisp.org>
51928
51929         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51930         frexpl and ldexpl are declared.
51931         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51932
51933 2007-03-05  Bruno Haible  <bruno@clisp.org>
51934
51935         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51936         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51937
51938 2007-03-05  Bruno Haible  <bruno@clisp.org>
51939
51940         * lib/stdio_.h: Include <stddef.h>.
51941
51942 2007-03-05  Bruno Haible  <bruno@clisp.org>
51943
51944         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51945
51946 2007-03-05  Bruno Haible  <bruno@clisp.org>
51947
51948         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51949         NetBSD 4, from Ralf Wildenhues.
51950
51951 2007-03-04  Bruno Haible  <bruno@clisp.org>
51952
51953         * lib/vasprintf.h: Update #if logic for the case when the functions
51954         exist but are overridden.
51955
51956 2007-03-04  Bruno Haible  <bruno@clisp.org>
51957
51958         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51959         implementations: glibc-2.4 and MacOS X 10.3.
51960         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51961         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51962         * tests/test-vasprintf-posix.c (test_function): Likewise.
51963
51964 2007-03-04  Bruno Haible  <bruno@clisp.org>
51965
51966         * modules/vasprintf-posix-tests: New file.
51967         * tests/test-vasprintf-posix.c: New file.
51968
51969         * modules/vasprintf-posix: New file.
51970         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51971         defined.
51972         * m4/vasprintf-posix.m4: New file.
51973         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51974         gl_FUNC_VASPRINTF.
51975         (gl_FUNC_VASPRINTF): Invoke it.
51976         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51977         here.
51978         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51979
51980 2007-03-04  Bruno Haible  <bruno@clisp.org>
51981
51982         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51983         REPLACE_GETTIMEOFDAY.
51984         * modules/sys_time (Makefile.am): Likewise.
51985         * m4/sys_time_h.m4: Likewise.
51986         * m4/gettimeofday.m4: Likewise.
51987
51988 2007-03-04  Bruno Haible  <bruno@clisp.org>
51989
51990         * modules/vasnprintf-posix-tests: New file.
51991         * tests/test-vasnprintf-posix.c: New file.
51992
51993         * modules/vasnprintf-posix: New file.
51994         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51995         printf-frexpl.h.
51996         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51997         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51998         REPLACE_VASNPRINTF is defined.
51999         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
52000         gl_FUNC_VASNPRINTF.
52001         (gl_FUNC_VASNPRINTF): Invoke it.
52002         * m4/vasnprintf-posix.m4: New file.
52003         * m4/printf.m4: New file.
52004
52005 2007-03-04  Bruno Haible  <bruno@clisp.org>
52006
52007         Compile progreloc.c only if --enable-relocatable is specified.
52008         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
52009         if --enable-relocatable was specified.
52010         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
52011         lib_SOURCES.
52012
52013 2007-03-04  Jim Meyering  <jim@meyering.net>
52014
52015         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
52016         Use it consistently, rather than enumerating errno constants.
52017
52018 2007-03-04  Bruno Haible  <bruno@clisp.org>
52019
52020         * modules/xvasprintf-tests: New file.
52021         * tests/test-xvasprintf.c: New file.
52022
52023         * modules/vasprintf-tests: New file.
52024         * tests/test-vasprintf.c: New file.
52025
52026         * modules/vasnprintf-tests: New file.
52027         * tests/test-vasnprintf.c: New file.
52028
52029         * modules/vsnprintf-tests: New file.
52030         * tests/test-vsnprintf.c: New file.
52031
52032         * modules/snprintf-tests: New file.
52033         * tests/test-snprintf.c: New file.
52034
52035 2007-03-04  Bruno Haible  <bruno@clisp.org>
52036
52037         Compile relocatable.c only if --enable-relocatable is specified.
52038         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
52039         gl_RELOCATABLE_LIBRARY.
52040         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
52041         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
52042         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
52043         gl_RELOCATABLE_LIBRARY.
52044         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
52045         (Makefile.am): Remove lib_SOURCES.
52046         * modules/relocatable-lib-lgpl (configure.ac): Invoke
52047         gl_RELOCATABLE_LIBRARY.
52048         (Makefile.am): Remove lib_SOURCES.
52049         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
52050         always.
52051         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52052         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
52053
52054 2007-03-04  Bruno Haible  <bruno@clisp.org>
52055
52056         * modules/argmatch-tests: New file.
52057         * tests/test-argmatch.c: New file.
52058
52059         * tests/test-allocsa.c (main): Halve the number of loop runs.
52060
52061         * modules/alloca-opt-tests: New file.
52062         * tests/test-alloca-opt.c: New file.
52063
52064 2007-03-04  Jim Meyering  <jim@meyering.net>
52065
52066         Work around difference between Linux ACLs and Solaris 10 ZFS.
52067         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52068         for EINVAL.
52069
52070 2007-03-03  Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/relocatable-prog (Depends-on): Add back progreloc's
52073         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52074
52075 2007-03-03  Bruno Haible  <bruno@clisp.org>
52076
52077         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52078         * modules/relocatable-lib: New file.
52079
52080 2007-03-03  Bruno Haible  <bruno@clisp.org>
52081
52082         * modules/relocatable-prog: Renamed from modules/relocatable.
52083         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52084
52085 2007-03-03  Bruno Haible  <bruno@clisp.org>
52086
52087         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52088         m4/relocatable-lib.m4.
52089         (Depends-on): Remove 'relocatable'.
52090         (configure.ac): Add gl_RELOCATABLE_NOP.
52091
52092 2007-03-03  Bruno Haible  <bruno@clisp.org>
52093
52094         * modules/relocatable-prog-wrapper: New file.
52095         * modules/relocatable (Depends-on): Add it. Remove all other
52096         dependencies except progname.
52097         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52098
52099         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52100         (gl_FUNC_STRERROR): Nop.
52101         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52102
52103         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52104         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52105
52106         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52107         (gl_FUNC_READLINK): Update.
52108
52109         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52110
52111 2007-03-03  Bruno Haible  <bruno@clisp.org>
52112
52113         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52114         * modules/xreadlink (Depends-on): Add unistd.
52115         * modules/xreadlink-with-size (Depends-on): Likewise.
52116
52117 2007-03-03  Bruno Haible  <bruno@clisp.org>
52118
52119         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52120         extracted from gt_FUNC_SETENV.
52121         (gt_FUNC_SETENV): Remove macro.
52122         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52123         remove gt_FUNC_SETENV.
52124
52125 2007-03-03  Bruno Haible  <bruno@clisp.org>
52126
52127         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52128         ENABLE_RELOCATABLE here.
52129         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52130
52131 2007-03-03  Bruno Haible  <bruno@clisp.org>
52132
52133         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52134         * tests/test-rbtreehash_list.c: Include progname.h.
52135         (main): Call set_program_name.
52136
52137         * modules/rbtree-oset-tests (Depends-on): Add progname.
52138         * tests/test-rbtree_oset.c: Include progname.h.
52139         (main): Call set_program_name.
52140
52141         * modules/rbtree-list-tests (Depends-on): Add progname.
52142         * tests/test-rbtree_list.c: Include progname.h.
52143         (main): Call set_program_name.
52144
52145         * modules/linked-list-tests (Depends-on): Add progname.
52146         * tests/test-linked_list.c: Include progname.h.
52147         (main): Call set_program_name.
52148
52149 2007-03-03  Bruno Haible  <bruno@clisp.org>
52150
52151         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52152         All uses of __restrict changed to _Restrict_.
52153         * lib/glob_.h (__restrict): Remove macro.
52154
52155 2007-03-02  Bruno Haible  <bruno@clisp.org>
52156
52157         * modules/gettext (configure.ac): Require gettext infrastructure
52158         from version 0.16.1.
52159
52160 2007-03-02  Bruno Haible  <bruno@clisp.org>
52161
52162         * modules/linkedhash-list-tests (Depends-on): Add progname.
52163         * tests/test-linkedhash_list.c: Include progname.h.
52164         (main): Call set_program_name.
52165
52166         * modules/carray-list-tests (Depends-on): Add progname.
52167         * tests/test-carray_list.c: Include progname.h.
52168         (main): Call set_program_name.
52169
52170         * modules/avltreehash-list-tests (Depends-on): Add progname.
52171         * tests/test-avltreehash_list.c: Include progname.h.
52172         (main): Call set_program_name.
52173
52174         * modules/avltree-oset-tests (Depends-on): Add progname.
52175         * tests/test-avltree_oset.c: Include progname.h.
52176         (main): Call set_program_name.
52177
52178         * modules/avltree-list-tests (Depends-on): Add progname.
52179         * tests/test-avltree_list.c: Include progname.h.
52180         (main): Call set_program_name.
52181
52182         * modules/array-oset-tests (Depends-on): Add progname.
52183         * tests/test-array_oset.c: Include progname.h.
52184         (main): Call set_program_name.
52185
52186         * modules/array-list-tests (Depends-on): Add progname.
52187         * tests/test-array_list.c: Include progname.h.
52188         (main): Call set_program_name.
52189
52190         * modules/argp-tests (Depends-on): Add progname.
52191         * tests/test-argp.c: Include argp.h first. Include progname.h.
52192         (main): Call set_program_name.
52193
52194 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52195
52196         * doc/gnulib-tool.texi (Initial import): Reword description of
52197         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52198         limited effect even if defined after the first system include.
52199
52200 2007-03-01  Bruno Haible  <bruno@clisp.org>
52201
52202         * build-aux/config.libpath: Update to libtool-1.5.22.
52203         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52204
52205 2007-03-01  Bruno Haible  <bruno@clisp.org>
52206
52207         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52208         foo_CFLAGS.
52209         Reported by Ralf Wildenhues.
52210
52211 2007-03-01  Bruno Haible  <bruno@clisp.org>
52212
52213         * build-aux/install-reloc: Remove object files left over by some
52214         compilers.
52215         Reported by Ralf Wildenhues.
52216
52217 2007-03-01  Bruno Haible  <bruno@clisp.org>
52218
52219         * build-aux/install-reloc: Break long lines.
52220
52221 2007-03-01  Bruno Haible  <bruno@clisp.org>
52222
52223         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52224         Reported by Ralf Wildenhues.
52225
52226 2007-03-01  Bruno Haible  <bruno@clisp.org>
52227
52228         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52229         include ordering constraints.
52230
52231 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52234         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52235         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52236         as another example.
52237         * lib/time_.h: Fix misspelling.
52238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52239         Require gl_HEADER_TIME_H_DEFAULTS.
52240         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52241         * m4/time_r.m4 (gl_TIME_R): Likewise.
52242         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52243
52244 2007-03-01  Bruno Haible  <bruno@clisp.org>
52245
52246         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52247         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52248
52249 2007-03-01  Jim Meyering  <jim@meyering.net>
52250
52251         * modules/xreadlink (Maintainer): Add my name.
52252         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52253
52254 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52255             Bruno Haible  <bruno@clisp.org>
52256
52257         * build-aux/install-reloc: Compile also c-ctype.c.
52258         * build-aux/relocatable.sh.in: New file.
52259         * doc/relocatable.texi: New file.
52260         * doc/relocatable-maint.texi: New file.
52261         * doc/gnulib.texi: Include relocatable-maint.texi.
52262         * lib/progreloc.c: Include unistd.h unconditionally.
52263         * lib/relocwrapper.c: Include unistd.h unconditionally.
52264         Include c-ctype.h.
52265         (add_dotbin): Use c_tolower.
52266         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52267         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52268         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52269         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52270         to m4/relocatable-lib.m4.
52271         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52272         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52273         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52274         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52275         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52276         * modules/relocatable: New file.
52277         * modules/relocatable-lib: New file.
52278         * modules/relocatable-script: New file.
52279
52280 2007-02-28  Bruno Haible  <bruno@clisp.org>
52281
52282         Import --enable-relocatable infrastructure.
52283         * build-aux/config.libpath: New file, from GNU gettext.
52284         * build-aux/install-reloc: New file, from GNU gettext.
52285         * build-aux/reloc-ldflags: New file, from GNU gettext.
52286         * lib/relocatable.h: New file, from GNU gettext.
52287         * lib/relocatable.c: New file, from GNU gettext.
52288         * lib/relocwrapper.c: New file, from GNU gettext.
52289         * m4/relocatable.m4: New file, from GNU gettext.
52290
52291 2007-02-28  Bruno Haible  <bruno@clisp.org>
52292
52293         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52294
52295         * modules/xreadlink: New file, from GNU gettext with modifications.
52296         * lib/xreadlink.c: New file, from GNU gettext.
52297         * lib/xreadlink.h: Add comments.
52298         (xreadlink): New declaration.
52299
52300         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52301         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52302         lib/xreadlink-with-size.c.
52303         (configure.ac): Remove gl_XREADLINK invocation.
52304         (Makefile.am): Augment lib_SOURCES.
52305         * m4/xreadlink.m4: Remove file.
52306         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52307         (xreadlink_with_size): Renamed from xreadink.
52308         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52309         * modules/canonicalize (Depends-on): Replace xreadlink with
52310         xreadlink-with-size.
52311         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52312
52313 2007-02-25  Jim Meyering  <jim@meyering.net>
52314
52315         * build-aux/announce-gen: When complaining about excess arguments,
52316         list them.
52317
52318 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52319
52320         * README: Document signed integer overflow situation more
52321         accurately.
52322
52323 2007-02-25  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52326         'a' or 'A' conversion.
52327
52328 2007-02-25  Bruno Haible  <bruno@clisp.org>
52329
52330         * modules/filename: Renamed from modules/pathname.
52331         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52332         lib/concatpath.c with lib/concat-filename.c.
52333         (Makefile.am): Update.
52334         (Include): Replace pathname.h with filename.h.
52335         * lib/filename.h: Renamed from lib/pathname.h.
52336         (concatenated_filename): Renamed from concatenated_pathname.
52337         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52338         (concatenated_filename): Renamed from concatenated_pathname.
52339         * lib/findprog.c: Include filename.h instead of pathname.h.
52340         (find_in_path): Update.
52341         * lib/javacomp.c: Include filename.h instead of pathname.h.
52342         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52343         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52344         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52345         is_oldgcj_14_13_usable, is_javac_usable): Update.
52346         * lib/javaexec.c: Include filename.h instead of pathname.h.
52347         (execute_java_class): Update.
52348         * modules/findprog: Update.
52349         * modules/javacomp: Update.
52350         * modules/javaexec: Update.
52351         * MODULES.html.sh (File system functions): Add 'filename', remove
52352         'pathname'.
52353
52354 2007-02-25  Bruno Haible  <bruno@clisp.org>
52355
52356         * modules/printf-frexpl-tests: New file.
52357         * tests/test-printf-frexpl.c: New file.
52358
52359         * modules/printf-frexpl: New file.
52360         * lib/printf-frexpl.h: New file.
52361         * lib/printf-frexpl.c: New file.
52362         * m4/printf-frexpl.m4: New file.
52363
52364 2007-02-25  Bruno Haible  <bruno@clisp.org>
52365
52366         * modules/printf-frexp-tests: New file.
52367         * tests/test-printf-frexp.c: New file.
52368
52369         * modules/printf-frexp: New file.
52370         * lib/printf-frexp.h: New file.
52371         * lib/printf-frexp.c: New file.
52372         * m4/printf-frexp.m4: New file.
52373
52374 2007-02-25  Bruno Haible  <bruno@clisp.org>
52375
52376         Assume automake >= 1.10 for the tests.
52377         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52378         * modules/arctwo-tests: Likewise.
52379         * modules/argp-tests: Likewise.
52380         * modules/avltree-list-tests: Likewise.
52381         * modules/avltree-oset-tests: Likewise.
52382         * modules/avltreehash-list-tests: Likewise.
52383         * modules/carray-list-tests: Likewise.
52384         * modules/crc-tests: Likewise.
52385         * modules/des-tests: Likewise.
52386         * modules/gc-arcfour-tests: Likewise.
52387         * modules/gc-arctwo-tests: Likewise.
52388         * modules/gc-des-tests: Likewise.
52389         * modules/gc-hmac-md5-tests: Likewise.
52390         * modules/gc-hmac-sha1-tests: Likewise.
52391         * modules/gc-md2-tests: Likewise.
52392         * modules/gc-md4-tests: Likewise.
52393         * modules/gc-md5-tests: Likewise.
52394         * modules/gc-pbkdf2-sha1-tests: Likewise.
52395         * modules/gc-rijndael-tests: Likewise.
52396         * modules/gc-sha1-tests: Likewise.
52397         * modules/gc-tests: Likewise.
52398         * modules/getaddrinfo-tests: Likewise.
52399         * modules/hmac-md5-tests: Likewise.
52400         * modules/hmac-sha1-tests: Likewise.
52401         * modules/linked-list-tests: Likewise.
52402         * modules/linkedhash-list-tests: Likewise.
52403         * modules/lock-tests: Likewise.
52404         * modules/md2-tests: Likewise.
52405         * modules/md4-tests: Likewise.
52406         * modules/md5-tests: Likewise.
52407         * modules/rbtree-list-tests: Likewise.
52408         * modules/rbtree-oset-tests: Likewise.
52409         * modules/rbtreehash-list-tests: Likewise.
52410         * modules/read-file-tests: Likewise.
52411         * modules/rijndael-tests: Likewise.
52412         * modules/stdint-tests: Likewise.
52413         * modules/tls-tests: Likewise.
52414
52415 2007-02-24  Bruno Haible  <bruno@clisp.org>
52416
52417         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52418         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52419         function; instead check whether isnan with a double argument links.
52420         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52421         function; instead check whether isnan with a 'long double' argument
52422         links.
52423         Reported by Eric Blake <ebb9@byu.net>.
52424
52425 2007-02-24  Bruno Haible  <bruno@clisp.org>
52426
52427         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52428         defined.
52429         * lib/isnanl.c: Remove all code. Just include isnan.c.
52430         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52431
52432 2007-02-25  Jim Meyering  <jim@meyering.net>
52433
52434         Avoid conflicting types for 'unsetenv' on FreeBSD.
52435         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52436         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52437         in stdlib.h.
52438
52439 2007-02-24  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/isnanl-nolibm-tests: New file.
52442         * tests/test-isnanl.c: New file.
52443
52444         * modules/isnanl-nolibm: New file.
52445         * lib/isnanl.h: New file.
52446         * lib/isnanl.c: New file.
52447         * m4/isnanl.m4: New file.
52448
52449 2007-02-24  Bruno Haible  <bruno@clisp.org>
52450
52451         * modules/isnan-nolibm-tests: New file.
52452         * tests/test-isnan.c: New file.
52453
52454         * modules/isnan-nolibm: New file.
52455         * lib/isnan.h: New file.
52456         * lib/isnan.c: New file.
52457         * m4/isnan.m4: New file.
52458
52459 2007-02-24  Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52462         assume that an exponent fits in 20 bits.
52463
52464 2007-02-24  Jim Meyering  <jim@meyering.net>
52465
52466         * m4/regex.m4: Update the description of the configure-time option,
52467         --without-included-regex, to state accurately what the defaults are,
52468         and perhaps to give people an idea why using this option is risky.
52469
52470 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52471
52472         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52473         loops on small arguments.  This attempts to avoid the problem
52474         Bruno Haible reported for AIX 4.3.2 in
52475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52476
52477 2007-02-23  Bruno Haible  <bruno@clisp.org>
52478
52479         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52480         Needed for help2man.
52481
52482 2007-02-23  Karl Berry  <karl@gnu.org>
52483
52484         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52485         exists, foo.h should be cvs-ignored, not committed.
52486
52487 2007-02-23  Eric Blake  <ebb9@byu.net>
52488
52489         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52490         * lib/stat-time.h (includes): Likewise.
52491         * lib/utimecmp.c (includes): Likewise.
52492         * lib/utimens.h (includes): Likewise.
52493         * lib/getdate.y (includes): Also include "timespec.h" for use
52494         internal to the module.
52495         * modules/utimens (Depends-on): Revert yesterday's patch.
52496         * modules/nanosleep (Depends-on): Add missing dependency.
52497
52498 2007-02-22  Bruno Haible  <bruno@clisp.org>
52499
52500         * lib/glob.c: Don't include getlogin_r.h.
52501
52502 2007-02-22  Jim Meyering  <jim@meyering.net>
52503
52504         * modules/utimens (Depends-on): Add timespec, required for
52505         utimens.h's inclusion of timespec.h.
52506
52507 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52508
52509         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52510         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52511         Schwab in
52512         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52513         I'll try to think of a better way to fix the Solaris problem.
52514
52515         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52516         like glibc; on Solaris 10, it fails with errno == EINVAL.
52517         POSIX says the behavior is unspecified if the first argument is NULL,
52518         so play it safe and never pass NULL to the system getcwd.
52519
52520 2007-02-21  Jim Meyering  <jim@meyering.net>
52521
52522         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52523         of gettimeofday.  It would conflict with the one now always
52524         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52525         an IRIX 6.5 build failure.
52526
52527 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52528
52529         Minor fixups to port to Solaris 10 with Sun C 5.8.
52530         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52531         * modules/getcwd (Depends-on): Add dirfd.
52532         * lib/putenv.c (putenv): #undef it.
52533         (rpl_putenv): New decl.
52534         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52535
52536 2007-02-20  Bruno Haible  <bruno@clisp.org>
52537
52538         * modules/stdio-tests: New file.
52539         * tests/test-stdio.c: New file.
52540
52541         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52542         (Depends-on): Add stdio.
52543         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52544         (Include): Use <stdio.h> instead of vsnprintf.h.
52545         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52546         HAVE_DECL_VSNPRINTF.
52547         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52548
52549         * modules/snprintf (Files): Remove lib/snprintf.h.
52550         (Depends-on): Add stdio.
52551         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52552         (Include): Use <stdio.h> instead of snprintf.h.
52553         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52554         HAVE_DECL_SNPRINTF.
52555         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52556         * lib/getaddrinfo.c: Likewise.
52557
52558         * modules/stdio: New file.
52559         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52560         * lib/snprintf.h: Remove file.
52561         * lib/vsnprintf.h: Remove file.
52562         * lib/.cppi-disable: Remove snprintf.h.
52563         * m4/stdio_h.m4: New file.
52564         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52565
52566 2007-02-20  Jim Meyering  <jim@meyering.net>
52567
52568         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52569         used by e.g., mingw.  From Bruno Haible.
52570
52571 2007-02-19  Bruno Haible  <bruno@clisp.org>
52572
52573         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52574         warnings.
52575         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52576
52577 2007-02-19  Bruno Haible  <bruno@clisp.org>
52578
52579         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52580         from mingw users.
52581
52582 2007-02-19  Bruno Haible  <bruno@clisp.org>
52583
52584         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52585         warnings.
52586         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52587
52588 2007-02-19  Jim Meyering  <jim@meyering.net>
52589
52590         Don't use FD after a successful "fdopendir (fd)".
52591         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52592         Reset it by calling dirfd on the just-obtained DIR*.
52593
52594         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52595         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52596
52597 2007-02-18  Bruno Haible  <bruno@clisp.org>
52598
52599         * lib/readlink.c: Include <unistd.h>.
52600         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52601         HAVE_READLINK.
52602         * modules/readlink (Depends-on): Add unistd.
52603         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52604         (Include): Add <unistd.h>.
52605
52606         * lib/getlogin_r.h: Remove file.
52607         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52608         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52609         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52610         HAVE_DECL_GETLOGIN_R.
52611         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52612         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52613         (Include): Use <unistd.h> instead of getlogin_r.h.
52614
52615         * lib/getcwd.h: Remove file.
52616         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52617         * lib/xgetcwd.c: Likewise.
52618         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52619         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52620         * modules/getcwd (Files): Remove lib/getcwd.h.
52621         (Depends-on): Add unistd.
52622         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52623         (Include): Use <unistd.h> instad of getcwd.h.
52624
52625         * lib/ftruncate.c: Include <unistd.h> first.
52626         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52627         Set HAVE_FTRUNCATE.
52628         * modules/ftruncate (Depends-on): Add unistd.
52629         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52630
52631         * lib/fchdir.c: Include <unistd.h> first.
52632         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52634         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52635         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52636         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52637
52638         * lib/dup2.c: Include <unistd.h> first.
52639         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52640         HAVE_DUP2.
52641         * modules/dup2 (Depends-on): Add unistd.
52642         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52643
52644         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52645         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52646         REPLACE_CHOWN. Don't define chown as a macro here.
52647         * modules/chown (Depends-on): Add unistd.
52648         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52649
52650         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52651         Add definition for GL_LINK_WARNING.
52652         (chown, dup2): New declarations.
52653         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52654         link warning.
52655         (ftruncate): New declaration.
52656         (getcwd): New declaration, taken from old getcwd.h.
52657         (getlogin_r): New declaration, taken from old getlogin_r.h.
52658         (readlink): New declaration.
52659         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52660         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52661         (gl_PREREQ_UNISTD): Remove macro.
52662         (gl_UNISTD_MODULE_INDICATOR): New macro.
52663         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52664         many new variables. Don't set UNISTD_H.
52665         * modules/unistd (Description): Change.
52666         (Depends-on): Add link-warning.
52667         (configure.ac): Update.
52668         (Makefile.am): Create unistd.h always. Substitute many new variables
52669         into it.
52670
52671 2007-02-18  Bruno Haible  <bruno@clisp.org>
52672
52673         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52674         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52675         HAVE_GETSUBOPT.
52676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52677         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52678         * lib/getsubopt.h: Remove file.
52679         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52680         (Depends-on): Add stdlib.
52681         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52682         (Includes): Use <stdlib.h> instead of getsubopt.h.
52683         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52684         Set HAVE_GETSUBOPT.
52685         * lib/getsubopt.c: Don't include getsubopt.h.
52686
52687 2007-02-18  Bruno Haible  <bruno@clisp.org>
52688
52689         * modules/fchdir (Depends-on): Add dup2.
52690
52691 2007-02-18  Bruno Haible  <bruno@clisp.org>
52692
52693         * lib/stdlib_.h: Handle glibc's special invocation convention
52694         specially.
52695
52696 2007-02-18  Bruno Haible  <bruno@clisp.org>
52697
52698         * modules/stdlib-tests: New file.
52699         * tests/test-stdlib.c: New file.
52700
52701         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52702         (Depends-on): Add stdlib.
52703         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52704         (Includes): Use <stdlib.h> instead of mkstemp.h.
52705         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52706         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52707         * lib/mkstemp.c: Don't include mkstemp.h.
52708         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52709         * lib/stdlib--.h: Don't include mkstemp.h.
52710
52711         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52712         (Depends-on): Add stdlib.
52713         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52714         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52715         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52716         HAVE_MKDTEMP.
52717         * lib/mkdtemp.c: Don't include mkdtemp.h.
52718         * lib/clean-temp.c: Don't include mkdtemp.h.
52719
52720         * modules/exit (Files): Remove lib/exit.h.
52721         (Depends-on): Add stdlib.
52722         (Makefile.am): Remove lib_SOURCES.
52723         (Include): Use <stdlib.h> instead of exit.h.
52724         * lib/argmatch.c: Don't include exit.h.
52725         * lib/execute.c: Likewise.
52726         * lib/pagealign_alloc.c: Likewise.
52727         * lib/pipe.c: Likewise.
52728         * lib/wait-process.c: Likewise.
52729         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52730         * lib/exitfail.c: Likewise.
52731         * lib/savewd.c: Likewise.
52732         * lib/xsetenv.c: Likewise.
52733
52734         * modules/stdlib: New file.
52735         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52736         and extra comments about mkstemp().
52737         * lib/exit.h: Remove file.
52738         * lib/mkdtemp.h: Remove file.
52739         * lib/mkstemp.h: Remove file.
52740         * m4/stdlib_h.m4: New file.
52741         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52742
52743 2007-02-18  Bruno Haible  <bruno@clisp.org>
52744
52745         * modules/math-tests: New file.
52746         * tests/test-math.c: New file.
52747
52748         * modules/math: New file.
52749         * modules/mathl (Files): Remove lib/mathl.h.
52750         (Depends-on): Add math.
52751         (Makefile.am): Don't mention mathl.h.
52752         (Include): Use <math.h> instead of mathl.h.
52753         * lib/math_.h: New file.
52754         * lib/mathl.h: Remove file.
52755         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52756         mathl.h.
52757         * lib/asinl.c: Likewise.
52758         * lib/atanl.c: Likewise.
52759         * lib/ceill.c: Likewise.
52760         * lib/cosl.c: Likewise.
52761         * lib/expl.c: Likewise.
52762         * lib/floorl.c: Likewise.
52763         * lib/frexpl.c: Likewise.
52764         * lib/ldexpl.c: Likewise.
52765         * lib/logl.c: Likewise.
52766         * lib/sincosl.c: Likewise.
52767         * lib/sinl.c: Likewise.
52768         * lib/sqrtl.c: Likewise.
52769         * lib/tanl.c: Likewise.
52770         * lib/trigl.c: Likewise.
52771         * m4/math_h.m4: New file.
52772         * MODULES.html.sh (Mathematics): Add math.
52773
52774 2007-02-17  Bruno Haible  <bruno@clisp.org>
52775
52776         * modules/wctype-tests: New file.
52777         * tests/test-wctype.c: New file.
52778
52779         * modules/wchar-tests: New file.
52780         * tests/test-wchar.c: New file.
52781
52782         * modules/unistd-tests: New file.
52783         * tests/test-unistd.c: New file.
52784
52785         * modules/time-tests: New file.
52786         * tests/test-time.c: New file.
52787
52788         * modules/sysexits-tests: New file.
52789         * tests/test-sysexits.c: New file.
52790
52791         * modules/sys_time-tests: New file.
52792         * tests/test-sys_time.c: New file.
52793
52794         * modules/sys_stat-tests: New file.
52795         * tests/test-sys_stat.c: New file.
52796
52797         * modules/sys_socket-tests: New file.
52798         * tests/test-sys_socket.c: New file.
52799
52800         * modules/sys_select-tests: New file.
52801         * tests/test-sys_select.c: New file.
52802
52803         * modules/string-tests: New file.
52804         * tests/test-string.c: New file.
52805
52806         * modules/stdbool-tests: New file.
52807         * tests/test-stdbool.c: New file.
52808
52809         * modules/netinet_in-tests: New file.
52810         * tests/test-netinet_in.c: New file.
52811
52812         * modules/inttypes-tests: New file.
52813         * tests/test-inttypes.c: New file.
52814
52815         * modules/fcntl-tests: New file.
52816         * tests/test-fcntl.c: New file.
52817
52818         * modules/byteswap-tests: New file.
52819         * tests/test-byteswap.c: New file.
52820
52821         * modules/arpa_inet-tests: New file.
52822         * tests/test-arpa_inet.c: New file.
52823
52824 2007-02-17  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52827         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52828         if the corresponding module is not enabled. Emit link warnings if
52829         the function is used nevertheless.
52830         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52831         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52832         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52833         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52834         * modules/inttypes (Depends-on): Add link-warning.
52835         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52836         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52837         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52838         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52839         * modules/imaxdiv (configure.ac): Likewise.
52840         * modules/strtoimax (configure.ac): Likewise.
52841         * modules/strtoumax (configure.ac): Likewise.
52842
52843 2007-02-17  Bruno Haible  <bruno@clisp.org>
52844
52845         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52846         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52847         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52848         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52849
52850 2007-02-17  Bruno Haible  <bruno@clisp.org>
52851
52852         * modules/link-warning: New file.
52853         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52854         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52855         * modules/string (Depends-on): Add link-warning.
52856         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52857         string.h.
52858         * MODULES.html.sh (Support for building libraries and executables): Add
52859         link-warning.
52860
52861 2007-02-17  Bruno Haible  <bruno@clisp.org>
52862
52863         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52864         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52865         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52866         long lines.
52867
52868 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52869             Bruno Haible  <bruno@clisp.org>
52870
52871         * modules/tmpfile: New file.
52872         * lib/tmpfile.c: New file.
52873         * m4/tmpfile.m4: New file.
52874         * MODULES.html.sh (func_all_modules): New section "Input/output".
52875
52876 2007-02-15  Bruno Haible  <bruno@clisp.org>
52877
52878         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52879         (supports_delete_on_close): New function.
52880         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52881
52882 2007-02-14  Bruno Haible  <bruno@clisp.org>
52883
52884         * modules/mbspcasecmp-tests: New file.
52885         * tests/test-mbspcasecmp.sh: New file.
52886         * tests/test-mbspcasecmp.c: New file.
52887
52888         New module mbspcasecmp.
52889         * modules/mbspcasecmp: New file.
52890         * lib/mbspcasecmp.c: New file.
52891         * lib/string_.h (strncasecmp): Change warning message.
52892         (mbspcasecmp): New declaration.
52893         * m4/mbspcasecmp.m4: New file.
52894         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52895         GNULIB_MBSPCASECMP.
52896         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52897         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52898
52899 2007-02-14  Bruno Haible  <bruno@clisp.org>
52900
52901         * modules/mbsncasecmp-tests: New file.
52902         * tests/test-mbsncasecmp.sh: New file.
52903         * tests/test-mbsncasecmp.c: New file.
52904
52905         New module mbsncasecmp.
52906         * modules/mbsncasecmp: New file.
52907         * lib/mbsncasecmp.c: New file.
52908         * lib/string_.h (mbsncasecmp): New declaration.
52909         * m4/mbsncasecmp.m4: New file.
52910         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52911         GNULIB_MBSNCASECMP.
52912         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52913         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52914
52915 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52916
52917         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52918         Verify that it doesn't overlap with our flags.
52919         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52920         do not have the desired effect in multibyte locales; instead, use
52921         mbscasecmp.
52922         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52923         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52924         we don't require GNU fnmatch ourselves (if our users require it, they
52925         should do so explicitly).
52926
52927         Fix regex code so it doesn't rely on strcasecmp.
52928         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52929         Otherwise, include gnulib's langinfo.h.
52930         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52931         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52932         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52933         * modules/regex (FILES): Remove m4/codeset.m4.
52934         (Depends-on): Add localcharset.  Remove strcase.
52935
52936 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52937
52938         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52939         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52940
52941 2007-02-13  Bruno Haible  <bruno@clisp.org>
52942
52943         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52944         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52945
52946 2007-02-12  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52949         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52950         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52951         time warning rather than a link error.
52952
52953 2007-02-12  Bruno Haible  <bruno@clisp.org>
52954
52955         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52956         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52957         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52958
52959 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52960
52961         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52962         args, not 2.
52963
52964 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52965
52966         New module 'time', so that apps can include <time.h> as per
52967         POSIX and GNU instead of separate include files like time_r.h
52968         and timegm.h.  This implementation tries out a simpler approach
52969         for replacing decls in standard include files (as compared to
52970         the string module), somewhat as an experiment.
52971
52972         * config/srclist.txt: Comment out mktime.c for now.
52973         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52974         since it doesn't apply any more.  Use generic wording instead.
52975         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52976         'time'.
52977         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52978         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52979         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52980         Don't include <sys/types.h>; no longer needed since we assume C89.
52981         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52982         * lib/strftime.c: Likewise.
52983         * lib/time_r.c: Likewise.
52984         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52985         * lib/nanosleep.c: Include <time.h> first, to check interface.
52986         * lib/strptime.c: Likewise.
52987         * lib/time_r.c: Likewise.
52988         * lib/timegm.c: Likewise.
52989         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52990         needed.
52991         * lib/timegm.c: Don't include timegm.h; no longer needed.
52992         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52993         time.h now handles any problems in that area.
52994         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52995         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52996         that time.h defines struct timespec.
52997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52998         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52999         handles that.
53000         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
53001         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
53002         needed.  Set REPLACE_LOCALTIME.
53003         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
53004         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
53005         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
53006         nanosleep; time_h.m4 now does that.  Don't require
53007         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
53008         module handles this now.
53009         * modules/getdate (Depends-on): Remove timespec.  Add time.
53010         * modules/nanosleep (Depends-on): Likewise.
53011         * modules/stat-time (Depends-on): Likewise.
53012         * modules/nanosleep (Include): Include time.h, not timespec.h.
53013         * modules/strptime (Files): Remove lib/strptime.h.
53014         (Depends-on): Add extensions, time.
53015         (Include): Include time.h, not strptime.h.
53016         * modules/time_r (Files): Remove lib/time_r.h.
53017         (Depends-on): Add time.
53018         (Include): Include time.h, not time_r.h.
53019         * modules/timegm: Likewise.
53020         * modules/timespec (Description): Now does timespec-related decls
53021         of our own, instead of struct timespec itself.
53022         (Depends-on): Add time; remove extensions.
53023         (Maintainer): Add self.
53024         * modules/utimecmp (Depends-on): Add time; remove timespec.
53025         * modules/utimens (Depends-on): Likewise.
53026         * modules/xnanosleep (Depends-on): Likewise.
53027
53028 2007-02-11  Bruno Haible  <bruno@clisp.org>
53029
53030         * lib/c-strstr.c: Include allocsa.h.
53031         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53032         * lib/c-strcasestr.c: Include allocsa.h.
53033         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53034         * lib/strcasestr.c: Include allocsa.h.
53035         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
53036         * lib/mbsstr.c: Include allocsa.h.
53037         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53038         allocsa/freesa instead of malloc/free.
53039         * lib/mbscasestr.c: Include allocsa.h.
53040         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
53041         allocsa/freesa instead of malloc/free.
53042         * modules/c-strstr (Depends-on): Add allocsa.
53043         * modules/c-strcasestr (Depends-on): Likewise.
53044         * modules/strcasestr (Depends-on): Likewise.
53045         * modules/mbsstr (Depends-on): Likewise.
53046         * modules/mbscasestr (Depends-on): Likewise.
53047
53048 2007-02-11  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
53051
53052         * modules/mbsspn-tests: New file.
53053         * tests/test-mbsspn.sh: New file.
53054         * tests/test-mbsspn.c: New file.
53055
53056 2007-02-11  Bruno Haible  <bruno@clisp.org>
53057
53058         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53059
53060         * modules/mbspbrk-tests: New file.
53061         * tests/test-mbspbrk.sh: New file.
53062         * tests/test-mbspbrk.c: New file.
53063
53064 2007-02-11  Bruno Haible  <bruno@clisp.org>
53065
53066         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53067         unneeded cast.
53068
53069         * modules/mbscspn-tests: New file.
53070         * tests/test-mbscspn.sh: New file.
53071         * tests/test-mbscspn.c: New file.
53072
53073 2007-02-11  Bruno Haible  <bruno@clisp.org>
53074
53075         * modules/mbscasecmp-tests: New file.
53076         * tests/test-mbscasecmp.sh: New file.
53077         * tests/test-mbscasecmp.c: New file.
53078
53079 2007-02-11  Bruno Haible  <bruno@clisp.org>
53080
53081         Ensure O(n) worst-case complexity of mbscasestr.
53082         * lib/mbscasestr.c: Include stdbool.h.
53083         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53084         functions.
53085         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53086         the bookkeeping indicates that it's worth it.
53087         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53088
53089         * modules/mbscasestr-tests: New file.
53090         * tests/test-mbscasestr1.c: New file.
53091         * tests/test-mbscasestr2.sh: New file.
53092         * tests/test-mbscasestr2.c: New file.
53093         * tests/test-mbscasestr3.sh: New file.
53094         * tests/test-mbscasestr3.c: New file.
53095         * tests/test-mbscasestr4.sh: New file.
53096         * tests/test-mbscasestr4.c: New file.
53097         * m4/locale-tr.m4: New file.
53098
53099 2007-02-11  Bruno Haible  <bruno@clisp.org>
53100
53101         Ensure O(n) worst-case complexity of mbsstr.
53102         * lib/mbsstr.c: Include stdbool.h.
53103         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53104         functions.
53105         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53106         bookkeeping indicates that it's worth it.
53107         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53108
53109         * modules/mbsstr-tests: New file.
53110         * tests/test-mbsstr1.c: New file.
53111         * tests/test-mbsstr2.sh: New file.
53112         * tests/test-mbsstr2.c: New file.
53113         * tests/test-mbsstr3.sh: New file.
53114         * tests/test-mbsstr3.c: New file.
53115         * m4/locale-fr.m4: New file.
53116
53117 2007-02-11  Bruno Haible  <bruno@clisp.org>
53118
53119         * lib/mbsrchr.c (mbsrchr): Fix bug.
53120
53121         * modules/mbsrchr-tests: New file.
53122         * tests/test-mbsrchr.sh: New file.
53123         * tests/test-mbsrchr.c: New file.
53124
53125 2007-02-11  Bruno Haible  <bruno@clisp.org>
53126
53127         * lib/mbschr.c (mbschr): Fix bug.
53128
53129         * modules/mbschr-tests: New file.
53130         * tests/test-mbschr.sh: New file.
53131         * tests/test-mbschr.c: New file.
53132         * m4/locale-zh.m4: New file.
53133
53134 2007-02-11  Bruno Haible  <bruno@clisp.org>
53135
53136         Support for copying multibyte string iterators.
53137         * lib/mbiter.h: Include <string.h>.
53138         (mbiter_multi_copy): New function.
53139         (mbi_copy): New macro.
53140         * lib/mbuiter.h: Include <string.h>.
53141         (mbuiter_multi_copy): New function.
53142         (mbui_copy): New macro.
53143
53144 2007-02-11  Bruno Haible  <bruno@clisp.org>
53145
53146         New module mbslen.
53147         * modules/mbslen: New file.
53148         * lib/mbslen.c: New file.
53149         * lib/string_.h (mbslen): New declaration.
53150         * m4/mbslen.m4: New file.
53151         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53152         GNULIB_MBSLEN.
53153         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53154         * MODULES.html.sh (Internationalization functions): Add mbslen.
53155
53156 2007-02-11  Bruno Haible  <bruno@clisp.org>
53157
53158         Ensure O(n) worst-case complexity of strcasestr substitute.
53159         * lib/strcasestr.c: Include stdbool.h.
53160         (knuth_morris_pratt): New function.
53161         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53162         bookkeeping indicates that it's worth it.
53163         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53164
53165         * modules/strcasestr-tests: New file.
53166         * tests/test-strcasestr.c: New file.
53167
53168 2007-02-11  Bruno Haible  <bruno@clisp.org>
53169
53170         Ensure O(n) worst-case complexity of c_strcasestr.
53171         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53172         (knuth_morris_pratt): New function.
53173         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53174         the bookkeeping indicates that it's worth it.
53175         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53176
53177         * modules/c-strcasestr-tests: New file.
53178         * tests/test-c-strcasestr.c: New file.
53179
53180 2007-02-11  Bruno Haible  <bruno@clisp.org>
53181
53182         Ensure O(n) worst-case complexity of c_strstr.
53183         * lib/c-strstr.c: Include stdbool.h, string.h.
53184         (knuth_morris_pratt): New function.
53185         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53186         bookkeeping indicates that it's worth it.
53187         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53188
53189         * lib/c-strstr.c: Complete rewrite for maintainability.
53190
53191         * modules/c-strstr-tests: New file.
53192         * tests/test-c-strstr.c: New file.
53193
53194 2007-02-11  Bruno Haible  <bruno@clisp.org>
53195
53196         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53197         5.2.1 and earlier, whereby \055 was treated just like the range
53198         delimiter '-'.
53199         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53200
53201 2007-02-08  Bruno Haible  <bruno@clisp.org>
53202
53203         * modules/regex (Depends-on): Add stdbool.
53204         Reported by Dalibor Topic <robilad@kaffe.org>.
53205
53206 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53207
53208         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53209         Prefer returning from main to exiting from it.
53210         Remove unnecessary parens after sizeof.
53211
53212 2007-02-05  Bruno Haible  <bruno@clisp.org>
53213
53214         New module mbssep.
53215         * modules/mbssep: New file.
53216         * lib/mbssep.c: New file.
53217         * lib/string_.h (strsep): Add a conditional link warning.
53218         (mbssep): New declaration.
53219         * m4/mbssep.m4: New file.
53220         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53221         GNULIB_MBSSEP.
53222         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53223         * MODULES.html.sh (Internationalization functions): Add mbssep.
53224
53225 2007-02-05  Bruno Haible  <bruno@clisp.org>
53226
53227         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53228         Optimize search in case of 1 delimiter.
53229
53230 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53231
53232         * lib/acl.h: Include sys/types.h before sys/acl.h.
53233
53234 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53235
53236         Merge upstream fix for glibc bugzilla #3957:
53237
53238         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53239
53240         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53241         bit for RE_HAT_LISTS_NOT_NEWLINE.
53242         (build_charclass_op): Remove bogus comment.
53243
53244 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53245
53246         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53247
53248 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53249
53250         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53251         * lib/memmem.c [!defined _LIBC]: Include config.h.
53252
53253 2007-02-04  Bruno Haible  <bruno@clisp.org>
53254
53255         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53256         warning message.
53257
53258 2007-02-04  Bruno Haible  <bruno@clisp.org>
53259
53260         New module mbstok_r.
53261         * modules/mbstok_r: New file.
53262         * lib/mbstok_r.c: New file.
53263         * lib/string_.h (strtok_r): Change argument names to match the
53264         comments. Add a conditional link warning.
53265         (mbstok_r): New declaration.
53266         * m4/mbstok_r.m4: New file.
53267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53268         GNULIB_MBSTOK_R.
53269         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53270         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53271
53272 2007-02-04  Bruno Haible  <bruno@clisp.org>
53273
53274         New module mbsspn.
53275         * modules/mbsspn: New file.
53276         * lib/mbsspn.c: New file.
53277         * lib/string_.h (strspn): Add a conditional link warning.
53278         (mbsspn): New declaration.
53279         * m4/mbsspn.m4: New file.
53280         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53281         GNULIB_MBSSPN.
53282         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53283         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53284
53285 2007-02-04  Bruno Haible  <bruno@clisp.org>
53286
53287         New module mbspbrk.
53288         * modules/mbspbrk: New file.
53289         * lib/mbspbrk.c: New file.
53290         * lib/string_.h (strpbrk): Add a conditional link warning.
53291         (mbspbrk): New declaration.
53292         * m4/mbspbrk.m4: New file.
53293         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53294         GNULIB_MBSPBRK.
53295         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53296         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53297
53298 2007-02-04  Bruno Haible  <bruno@clisp.org>
53299
53300         New module mbscspn.
53301         * modules/mbscspn: New file.
53302         * lib/mbscspn.c: New file.
53303         * lib/string_.h (strcspn): Add a conditional link warning.
53304         (mbscspn): New declaration.
53305         * m4/mbscspn.m4: New file.
53306         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53307         GNULIB_MBSCSPN.
53308         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53309         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53310
53311 2007-02-04  Bruno Haible  <bruno@clisp.org>
53312
53313         New module mbscasestr, reduced goal of strcasestr.
53314         * modules/mbscasestr: New file.
53315         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53316         (mbscasestr): Renamed from strcasestr.
53317         * lib/strcasestr.c: Don't include mbuiter.h.
53318         (strcasestr): Remove support for multibyte locales.
53319         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53320         Change the conditional link warning.
53321         (mbscasestr): New declaration.
53322         * m4/mbscasestr.m4: New file.
53323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53324         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53325         REPLACE_STRCASESTR.
53326         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53327         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53328         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53329         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53330         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53331         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53332         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53333         (Depends-on): Remove mbuiter.
53334         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53335
53336 2007-02-04  Bruno Haible  <bruno@clisp.org>
53337
53338         Simplify handling of strncasecmp.
53339         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53340         the conditional link warning.
53341         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53342         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53343         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53344         * modules/strcase (configure.ac): Don't invoke
53345         gl_STRING_MODULE_INDICATOR.
53346         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53347
53348 2007-02-04  Bruno Haible  <bruno@clisp.org>
53349
53350         New module mbscasecmp, reduced goal of strcasecmp.
53351         * modules/mbscasecmp: New file.
53352         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53353         (mbscasecmp): Renamed from strcasecmp.
53354         * lib/strcasecmp.c: Don't include mbuiter.h.
53355         (strcasecmp): Remove support for multibyte locales.
53356         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53357         Change the conditional link warning.
53358         (mbscasecmp): New declaration.
53359         * m4/mbscasecmp.m4: New file.
53360         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53361         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53362         REPLACE_STRCASECMP.
53363         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53364         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53365         GNULIB_MBSCASECMP.
53366         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53367         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53368         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53369         (Depends-on): Remove mbuiter.
53370         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53371
53372 2007-02-04  Bruno Haible  <bruno@clisp.org>
53373
53374         New module mbsstr. Remove module strstr.
53375         * modules/mbsstr: New file.
53376         * modules/strstr: Remove file.
53377         * lib/mbsstr.c: Renamed from lib/strstr.c.
53378         (mbsstr): Renamed from strstr.
53379         * lib/string_.h (strstr): Remove declaration. Change the conditional
53380         link warning.
53381         (mbsstr): New declaration.
53382         * m4/mbsstr.m4: New file.
53383         * m4/strstr.m4: Remove file.
53384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53385         REPLACE_STRSTR.
53386         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53387         Don't initialize GNULIB_STRSTR.
53388         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53389         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53390         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53391         (Support for systems lacking ANSI C 89): Remove strstr.
53392
53393 2007-02-04  Bruno Haible  <bruno@clisp.org>
53394
53395         New module mbsrchr.
53396         * modules/mbsrchr: New file.
53397         * lib/mbsrchr.c: New file.
53398         * lib/string_.h (strrchr): Add a conditional link warning.
53399         (mbsrchr): New declaration.
53400         * m4/mbsrchr.m4: New file.
53401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53402         GNULIB_MBSRCHR.
53403         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53404         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53405
53406 2007-02-04  Bruno Haible  <bruno@clisp.org>
53407
53408         New module mbschr.
53409         * modules/mbschr: New file.
53410         * lib/mbschr.c: New file.
53411         * lib/string_.h (strchr): Add a conditional link warning.
53412         (mbschr): New declaration.
53413         * m4/mbschr.m4: New file.
53414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53415         GNULIB_MBSCHR.
53416         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53417         * MODULES.html.sh (Internationalization functions): Add mbschr.
53418
53419 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53420
53421         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53422
53423         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53424
53425 2007-02-04  Bruno Haible  <bruno@clisp.org>
53426
53427         New module description section 'configure.ac-early'.
53428         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53429         (func_get_autoconf_early_snippet): New function.
53430         (func_import, func_create_testdir): Use it. Remove special cases for
53431         modules 'extensions' and 'lock'.
53432         * modules/extensions (configure.ac-early): Require
53433         gl_USE_SYSTEM_EXTENSIONS.
53434         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53435
53436 2007-02-04  Bruno Haible  <bruno@clisp.org>
53437
53438         Make use of gcj-4.3's -fsource and -ftarget option.
53439         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53440         and if so try the options -fsource and -ftarget.
53441         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53442         source_version, ftarget_option, target_version arguments.
53443         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53444         (is_envjavac_oldgcj_14_14_usable): Renamed from
53445         is_envjavac_gcj_14_14_usable.
53446         (is_envjavac_oldgcj_14_13_usable): Renamed from
53447         is_envjavac_gcj_14_13_usable.
53448         (is_gcj_present): Update.
53449         (is_gcj_43, is_gcj43_usable): New functions.
53450         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53451         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53452         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53453         try the options -fsource and -ftarget.
53454
53455 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53456
53457         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53458         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53459         larger value.
53460
53461 2007-02-03  Jim Meyering  <jim@meyering.net>
53462
53463         Give tools a better chance to allocate space for very large buffers.
53464         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53465
53466         Make pwd and readlink work also when run with an unreadable parent dir
53467         on systems with openat support.
53468         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53469         provided getcwd function, even when we have openat support.
53470         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53471
53472 2007-02-02  Bruno Haible  <bruno@clisp.org>
53473
53474         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53475         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53476         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53477         portability problems if one of these functions is only used on specific
53478         platforms.
53479         Reported by Paul Eggert.
53480
53481 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53484         is causing more trouble than it's curing.
53485         * lib/regex_internal.h (__mempcpy): Remove.
53486         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53487         (and make the code a tad smaller to boot).
53488         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53489
53490 2007-02-02  Jim Meyering  <jim@meyering.net>
53491
53492         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53493         section, not in the Makefile.am: one.
53494
53495 2007-02-02  Eric Blake  <ebb9@byu.net>
53496
53497         * lib/strchrnul.c: Always include config.h first.
53498
53499         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53500         gnulib strstr is not necessary here.
53501
53502 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53503
53504         * m4/socklen.m4: Fix typo.
53505
53506 2007-02-02  Eric Blake  <ebb9@byu.net>
53507
53508         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53509         * modules/netinet_in (Makefile.am): Likewise.
53510
53511 2007-02-01  Bruno Haible  <bruno@clisp.org>
53512
53513         * lib/string_.h (GL_LINK_WARNING): New macro.
53514         (strcasecmp, strstr, strcasestr): If provided by the system,
53515         conditionally define as a macro that leads to a warning instead of to
53516         an error.
53517         (strncasecmp): Conditionally define as a macro that leads to a warning.
53518
53519 2007-02-01  Karl Berry  <karl@gnu.org>
53520
53521         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53522
53523 2007-02-01  Bruno Haible  <bruno@clisp.org>
53524
53525         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53526         renamings.
53527
53528 2007-02-01  Eric Blake  <ebb9@byu.net>
53529
53530         * modules/regex (Depends-on): Revert dependence on mempcpy.
53531         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53532         module's definition of mempcpy.
53533         Reported by Paul Eggert.
53534
53535 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53538         the symbol XYZ before redefining it.  This fixes a problem with
53539         programs that don't use XYZ, when compiled on systems that define
53540         XYZ to something else.
53541
53542 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53543
53544         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53545         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53546         writeable to group or other and (2) is intended to have a special
53547         mode bit that is set or cleared.  In such a case, the directory
53548         should be neither group- nor other-writeable until the special
53549         mode bits are right.
53550
53551 2007-01-31  Eric Blake  <ebb9@byu.net>
53552
53553         * modules/mountlist (Depends-on): Add strstr.
53554
53555         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53556         bug.
53557         * modules/string (Makefile.am): Remove redundant replacement.
53558         * modules/regex (Depends-on): Add mempcpy.
53559
53560 2007-01-31  Bruno Haible  <bruno@clisp.org>
53561
53562         New module description field 'Link'.
53563         * gnulib-tool (func_usage): Document --extract-link-directive.
53564         (sed_extract_prog): Recognize 'Link' directive.
53565         (func_get_link_directive): New function.
53566         (func_import): Show summary of link directives.
53567         Handle --extract-link-directive option.
53568         * modules/acl (Link): New section.
53569         * modules/clock-time (Link): New section.
53570         * modules/euidaccess (Link): New section.
53571         * modules/gettext (Link): New section.
53572         * modules/iconv (Link): New section.
53573         * modules/lock (Link): New section.
53574         * modules/nanosleep (Link): New section.
53575         * modules/readline (Link): New section.
53576
53577 2007-01-27  Bruno Haible  <bruno@clisp.org>
53578
53579         Enforce the use of gnulib modules for unportable <string.h> functions.
53580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53581         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53582         (gl_HEADER_STRING_H_BODY): Require it.
53583         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53584         the symbol XYZ to one that gives a link error.
53585         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53586         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53587         * modules/mempcpy (configure.ac): Likewise.
53588         * modules/memrchr (configure.ac): Likewise.
53589         * modules/stpcpy (configure.ac): Likewise.
53590         * modules/stpncpy (configure.ac): Likewise.
53591         * modules/strcase (configure.ac): Likewise.
53592         * modules/strcasestr (configure.ac): Likewise.
53593         * modules/strchrnul (configure.ac): Likewise.
53594         * modules/strdup (configure.ac): Likewise.
53595         * modules/strndup (configure.ac): Likewise.
53596         * modules/strnlen (configure.ac): Likewise.
53597         * modules/strpbrk (configure.ac): Likewise.
53598         * modules/strsep (configure.ac): Likewise.
53599         * modules/strstr (configure.ac): Likewise.
53600         * modules/strtok_r (configure.ac): Likewise.
53601
53602 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53603
53604         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53605
53606 2007-01-30  Jim Meyering  <jim@meyering.net>
53607
53608         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53609
53610 2007-01-29  Bruno Haible  <bruno@clisp.org>
53611
53612         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53613         * lib/execute.c: Likewise.
53614         * lib/pipe.c: Likewise.
53615         * lib/printf-args.h: Likewise.
53616         * lib/printf-args.c: Likewise.
53617         * lib/printf-parse.c: Likewise.
53618         * lib/vasnprintf.c: Likewise.
53619
53620 2007-01-29  Eric Blake  <ebb9@byu.net>
53621
53622         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53623         declaration.
53624
53625 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53626
53627         * lib/strptime.h (strptime): Use 'restrict' for args where
53628         POSIX requires this.
53629         * lib/strptime.c (strptime): Likewise.
53630         Change license notice from LGPL to GPL, since gnulib-tool will
53631         change this as needed.
53632         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53633         defined.
53634         Include "strptime.h" first, to check interface.
53635         Do not #undef _LIBC and _NL_CURRENT.
53636         Do not include <stdlib.h>; no longer needed.
53637         Include "time_r.h" and declare ptime_locale_status
53638         only if _LIBC is not defined.
53639         (__P): Remove unused macro.
53640         (match_string): Bring back glibc version, but use it only if _LIBC
53641         is defined.
53642         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53643         Remove unnecessary assertion and abort() call.
53644         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53645         * m4/strptime.m4: Fix serial number comment.
53646         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53647         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53648         (Depends-on): Add time_r.
53649
53650 2007-01-29  Bruno Haible  <bruno@clisp.org>
53651
53652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53653         strptime.
53654         * modules/strptime (Depends-on): Add stdbool.
53655         * lib/strptime.h: Include <time.h> always. Add comments.
53656
53657 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53658
53659         * modules/strptime: New file.
53660         * lib/strptime.h: New file.
53661         * lib/strptime.c: New file.
53662         * m4/strptime.m4: New file.
53663
53664 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53665
53666         * MODULES.html.sh: New module mpsort.
53667         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53668
53669         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53670         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53672         All uses changed.
53673         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53674         All uses changed.
53675         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53676         to _Restrict_.
53677         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53678         the parameter matches the prototype.
53679
53680 2007-01-28  Jim Meyering  <jim@meyering.net>
53681
53682         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53683         sys/time.h here, reverting that part of the previous patch:
53684         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53685
53686 2007-01-28  Bruno Haible  <bruno@clisp.org>
53687
53688         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53689         value of $(SYS_TIME_H).
53690         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53691         remove it conditionally, too. [added by Jim Meyering]
53692         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53693         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53694         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53695         GETTIMEOFDAY_REPLACEMENT to 1.
53696
53697 2007-01-28  Bruno Haible  <bruno@clisp.org>
53698
53699         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53700         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53701         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53702         Set UNISTD_H instead of UNISTD_H2.
53703         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53704
53705 2007-01-28  Bruno Haible  <bruno@clisp.org>
53706
53707         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53708         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53709
53710 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53711
53712         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53713         (func_create_testdir): Ensure C locale for `grep' and `tr'
53714         character ranges.
53715         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53716         ACLOCAL_AMFLAGS parsing state machine.
53717
53718 2007-01-27  Bruno Haible  <bruno@clisp.org>
53719
53720         * modules/unistr/base: Update.
53721
53722 2007-01-27  Bruno Haible  <bruno@clisp.org>
53723
53724         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53725         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53726         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53727         modules/unistr/u32-mbtouc.
53728         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53729         * lib/unistr.h: Update.
53730         * lib/linebreak.c: Update.
53731         * modules/unistr/u32-mbtouc: Renamed from
53732         modules/unistr/u32-mbtouc-safe.
53733         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53734         * lib/unistr.h: Update.
53735         * lib/unistr/u32-to-u8.c: Update.
53736         * lib/unistr/u32-to-u16.c: Update.
53737
53738 2007-01-27  Bruno Haible  <bruno@clisp.org>
53739
53740         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53741         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53742         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53743         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53744         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53745         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53746         modules/unistr/u16-mbtouc.
53747         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53748         * lib/unistr.h: Update.
53749         * lib/linebreak.c: Update.
53750         * modules/linebreak: Update.
53751         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53752         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53753         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53754         * modules/unistr/u16-mbtouc: Renamed from
53755         modules/unistr/u16-mbtouc-safe.
53756         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53757         * lib/unistr.h: Update.
53758         * lib/unistr/u16-to-u8.c: Update.
53759         * modules/unistr/u16-to-u8: Update.
53760         * lib/unistr/u16-to-u32.c: Update.
53761         * modules/unistr/u16-to-u32: Update.
53762
53763 2007-01-27  Bruno Haible  <bruno@clisp.org>
53764
53765         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53766         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53767         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53768         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53769         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53770         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53771         modules/unistr/u8-mbtouc.
53772         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53773         * lib/unistr.h: Update.
53774         * lib/striconveh.c: Update.
53775         * modules/striconveh: Update.
53776         * lib/linebreak.c: Update.
53777         * modules/linebreak: Update.
53778         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53779         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53780         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53781         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53782         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53783         * lib/unistr.h: Update.
53784         * lib/striconveh.c: Update.
53785         * modules/striconveh: Update.
53786         * lib/unistr/u8-to-u16.c: Update.
53787         * modules/unistr/u8-to-u16: Update.
53788         * lib/unistr/u8-to-u32.c: Update.
53789         * modules/unistr/u8-to-u32: Update.
53790
53791 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53792
53793         Sync from Libtool.
53794         * lib/argz.c: Do not include strings.h nor memory.h, include
53795         string.h unconditionally.  Patch by Simon Josefsson.
53796
53797 2007-01-27  Bruno Haible  <bruno@clisp.org>
53798
53799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53800         from gl_HEADER_STRING_H_BODY.
53801         (gl_HEADER_STRING_H_BODY): Require it.
53802         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53803         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53804         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53805         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53806         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53807         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53808         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53809         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53810         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53811         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53812         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53813         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53814         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53815         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53816         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53817
53818 2007-01-27  Bruno Haible  <bruno@clisp.org>
53819
53820         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53821         check_PROGRAMS into noinst_PROGRAMS.
53822         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53823         check_PROGRAMS in this case.
53824         (func_import): Set for_test to false.
53825         (func_create_testdir): Set for_test to true.
53826
53827 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53828             Bruno Haible  <bruno@clisp.org>
53829
53830         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53831         (Depends-on): Add string.
53832         (Includes): Use <string.h> instead of strcasestr.h.
53833         * modules/string (Makefile.am): Also substitute the value of
53834         REPLACE_STRCASESTR.
53835         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53836         assume strcasestr is declared in <string.h> not <strings.h>. Also
53837         set REPLACE_STRCASESTR.
53838         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53839         REPLACE_STRCASESTR.
53840         * lib/strcasestr.h: Remove file.
53841         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53842         * lib/string_.h (strcasestr): New declaration.
53843
53844 2007-01-27  Bruno Haible  <bruno@clisp.org>
53845
53846         * lib/string_.h: Use 'extern'.
53847
53848 2007-01-27  Jim Meyering  <jim@meyering.net>
53849
53850         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53851         of set-but-not-used local, "q".
53852
53853         * lib/mempcpy.c: Include <config.h> before <string.h>.
53854         This fixes a compilation error on HP-UX, due to the system's
53855         "restrict"-using mempcpy prototype.
53856
53857 2007-01-26  Bruno Haible  <bruno@clisp.org>
53858
53859         Small optimization.
53860         * lib/javacomp.c: Include c-strstr.h.
53861          (is_envjavac_gcj): Use c_strstr instead of strstr.
53862         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53863
53864 2007-01-26  Bruno Haible  <bruno@clisp.org>
53865
53866         * MODULES.html.sh (Unicode string functions): Add the new modules.
53867
53868         * modules/uniconv/u32-strconv-to-locale: New file.
53869         * lib/uniconv/u32-strconv-to-locale.c: New file.
53870
53871         * modules/uniconv/u16-strconv-to-locale: New file.
53872         * lib/uniconv/u16-strconv-to-locale.c: New file.
53873
53874         * modules/uniconv/u8-strconv-to-locale: New file.
53875         * lib/uniconv/u8-strconv-to-locale.c: New file.
53876
53877         * modules/uniconv/u32-strconv-from-locale: New file.
53878         * lib/uniconv/u32-strconv-from-locale.c: New file.
53879
53880         * modules/uniconv/u16-strconv-from-locale: New file.
53881         * lib/uniconv/u16-strconv-from-locale.c: New file.
53882
53883         * modules/uniconv/u8-strconv-from-locale: New file.
53884         * lib/uniconv/u8-strconv-from-locale.c: New file.
53885
53886         * modules/uniconv/u32-strconv-to-enc: New file.
53887         * lib/uniconv/u32-strconv-to-enc.c: New file.
53888         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53889         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53890
53891         * modules/uniconv/u16-strconv-to-enc: New file.
53892         * lib/uniconv/u16-strconv-to-enc.c: New file.
53893         * lib/uniconv/u-strconv-to-enc.h: New file.
53894         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53895         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53896
53897         * modules/uniconv/u8-strconv-to-enc: New file.
53898         * lib/uniconv/u8-strconv-to-enc.c: New file.
53899         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53900         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53901
53902         * modules/uniconv/u32-strconv-from-enc: New file.
53903         * lib/uniconv/u32-strconv-from-enc.c: New file.
53904         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53905         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53906
53907         * modules/uniconv/u16-strconv-from-enc: New file.
53908         * lib/uniconv/u16-strconv-from-enc.c: New file.
53909         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53910         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53911
53912         * modules/uniconv/u8-strconv-from-enc: New file.
53913         * lib/uniconv/u8-strconv-from-enc.c: New file.
53914         * lib/uniconv/u-strconv-from-enc.h: New file.
53915         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53916         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53917
53918         * modules/uniconv/u32-conv-from-enc: New file.
53919         * lib/uniconv/u32-conv-from-enc.c: New file.
53920         * modules/uniconv/u32-conv-from-enc-tests: New file.
53921         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53922
53923         * modules/uniconv/u16-conv-from-enc: New file.
53924         * lib/uniconv/u16-conv-from-enc.c: New file.
53925         * lib/uniconv/u-conv-from-enc.h: New file.
53926         * modules/uniconv/u16-conv-from-enc-tests: New file.
53927         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53928
53929         * modules/uniconv/u8-conv-from-enc: New file.
53930         * lib/uniconv/u8-conv-from-enc.c: New file.
53931         * modules/uniconv/u8-conv-from-enc-tests: New file.
53932         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53933
53934         * modules/uniconv/base: New file.
53935         * lib/uniconv.h: New file.
53936
53937 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53938
53939         * doc/gnulib-tool.texi (Initial import): Update to match current
53940         behavior with strdup module.
53941         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53942         * lib/memmem.h: Remove; all uses removed.  This is now done
53943         by <string.h>.
53944         * lib/mempcpy.h: Likewise.
53945         * lib/memrchr.h: Likewise.
53946         * lib/stpcpy.h: Likewise.
53947         * lib/stpncpy.h: Likewise.
53948         * lib/strcase.h: Likewise.
53949         * lib/strchrnul.h: Likewise.
53950         * lib/strdup.h: Likewise.
53951         * lib/strndup.h: Likewise.
53952         * lib/strnlen.h: Likewise.
53953         * lib/strpbrk.h: Likewise.
53954         * lib/strsep.h: Likewise.
53955         * lib/strstr.h: Likewise.
53956         * lib/strtok_r.h: Likewise.
53957         * lib/string_.h: New file.
53958         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53959         Rely on <string.h> instead.
53960         * lib/canon-host.c: Likewise.
53961         * lib/chdir-long.c: Likewise.
53962         * lib/concatpath.c: Likewise.
53963         * lib/exclude.c: Likewise.
53964         * lib/fchdir.c: Likewise.
53965         * lib/getaddrinfo.c: Likewise.
53966         * lib/getcwd.c: Likewise.
53967         * lib/getsubopt.c: Likewise.
53968         * lib/glob.c: Likewise.
53969         * lib/hard-locale.c: Likewise.
53970         * lib/iconvme.c: Likewise.
53971         * lib/javacomp.c: Likewise.
53972         * lib/mempcpy.c: Likewise.
53973         * lib/memrchr.c: Likewise.
53974         * lib/regex_internal.h: Likewise.
53975         * lib/stpncpy.c: Likewise.
53976         * lib/strcasecmp.c: Likewise.
53977         * lib/strchrnul.c: Likewise.
53978         * lib/strdup.c: Likewise.
53979         * lib/striconv.c: Likewise.
53980         * lib/striconveh.c: Likewise.
53981         * lib/striconveha.c: Likewise.
53982         * lib/strncasecmp.c: Likewise.
53983         * lib/strndup.c: Likewise.
53984         * lib/strnlen.c: Likewise.
53985         * lib/strsep.c: Likewise.
53986         * lib/strstr.c: Likewise.
53987         * lib/strtok_r.c: Likewise.
53988         * lib/userspec.c: Likewise.
53989         * lib/w32spawn.h: Likewise.
53990         * lib/xstrndup.c: Likewise.
53991         * lib/mountlist.c (strstr): Remove decl.
53992         * m4/string_h.m4: New file.
53993         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53994         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53995         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53996         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53997         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53998         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53999         Set REPLACE_STRCASECMP if necessary.
54000         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
54001         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
54002         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
54003         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
54004         HAVE_DECL_STRDUP if necessary.
54005         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
54006         since gl_FUNC_STRNDUP does that now.
54007         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
54008         Check for decl here...
54009         (gl_PREREQ_STRNLEN): ... not here.
54010         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
54011         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
54012         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
54013         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
54014         necessary.
54015         * modules/string: New file.
54016         * modules/memmem (Files): Remove special-purpose include file.
54017         (Depends-on): Add string.
54018         (Include): Include <string.h>, not the removed file.
54019         * modules/mempcpy: Likewise.
54020         * modules/memrchr: Likewise.
54021         * modules/stpcpy: Likewise.
54022         * modules/stpncpy: Likewise.
54023         * modules/strcase: Likewise.
54024         * modules/strchrnul: Likewise.
54025         * modules/strdup: Likewise.
54026         * modules/strndup: Likewise.
54027         * modules/strnlen: Likewise.
54028         * modules/strpbrk: Likewise.
54029         * modules/strsep: Likewise.
54030         * modules/strstr: Likewise.
54031         * modules/strtok_r: Likewise.
54032         * tests/test-dirname.c: Don't include "strdup.h", since
54033         <string.h> now suffices.
54034         * tests/test-memmem.c: Don't include "memmem.h", since
54035         <string.h> now suffices.
54036
54037 2007-01-25  Bruno Haible  <bruno@clisp.org>
54038
54039         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
54040         *resultp is 0.
54041
54042         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
54043         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
54044         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
54045         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
54046
54047         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
54048         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
54049         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
54050         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
54051         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
54052         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
54053
54054 2007-01-24  Bruno Haible  <bruno@clisp.org>
54055
54056         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54057         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54058         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54059         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54060         gl_FUNC_FTS_CORE.
54061         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54062         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54063         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54064         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54065         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54066         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54067         gl_FUNC_FCHOWNAT.
54068         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54069         gl_FUNC_STRFTIME.
54070         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54071         Reported by Ralf Wildenhues.
54072
54073 2007-01-24  Bruno Haible  <bruno@clisp.org>
54074
54075         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54076         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54077         gl_GETADDRINFO.
54078         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54079         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54080         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54081
54082 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54085         Don't use 'exit'; just return from 'main'.
54086         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54087
54088         * lib/fnmatch_.h: Readjust white space and comments to match
54089         glibc, to avoid spurious diffs.
54090
54091 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54094         2004-12-01 change by Jakub Jelinek, since this code won't compile
54095         if !LIBC.  Problem reported by Bob Proulx.
54096
54097 2007-01-23  Bruno Haible  <bruno@clisp.org>
54098
54099         * lib/striconveh.c: Include c-strcaseeq.h.
54100         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54101         * modules/striconveh (Depends-on): Add c-strcaseeq.
54102
54103 2007-01-23  Bruno Haible  <bruno@clisp.org>
54104
54105         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54106
54107         * modules/c-strcaseeq: New file.
54108         * lib/c-strcaseeq.h: New file.
54109
54110         * modules/streq: New file.
54111         * lib/streq.h: New file.
54112
54113 2007-01-23  Bruno Haible  <bruno@clisp.org>
54114
54115         * modules/striconveha-tests: New file.
54116         * tests/test-striconveha.c: New file.
54117
54118         * lib/striconveha.h: Include <stdbool.h>.
54119         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54120         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54121         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54122         (mem_iconveha): New function.
54123         (str_iconveha_notranslit): Renamed from str_iconveha.
54124         (str_iconveha): New function.
54125         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54126         c-strcase.
54127
54128 2007-01-23  Bruno Haible  <bruno@clisp.org>
54129
54130         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54131         encodings without forgiving before trying any encoding with handler.
54132         (str_iconveha): Try all encodings without forgiving before trying any
54133         encoding with handler.
54134
54135 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         Import the following changes from libc.
54138
54139         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54140
54141         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54142
54143         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54144
54145         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54146         normal_bracket label.
54147
54148         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54149
54150         [BZ #361]
54151         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54152         to normal_bracket after fetching the next character.
54153
54154 2007-01-22  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54157         argument.
54158         * lib/striconveh.c (iconv_carefully_1): New function.
54159         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54160         argument.
54161         (str_cd_iconveh): Update.
54162         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54163         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54164         * tests/test-striconveh.c (MAGIC): New macro.
54165         (new_offsets): New function.
54166         (main): Test call with and without offsets.
54167
54168 2007-01-22  Bruno Haible  <bruno@clisp.org>
54169
54170         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54171         * modules/sys_select (Makefile.am): Likewise.
54172         * modules/sys_socket (Makefile.am): Likewise.
54173         * modules/sys_time (Makefile.am): Likewise.
54174
54175 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54176
54177         * modules/gettimeofday (License): Change from GPL to LGPL, since
54178         gettimeofday is a library function.
54179
54180 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54181
54182         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54183
54184 2007-01-21  Bruno Haible  <bruno@clisp.org>
54185
54186         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54187
54188 2007-01-21  Bruno Haible  <bruno@clisp.org>
54189
54190         * modules/striconveha: New file.
54191         * lib/striconveha.h: New file.
54192         * lib/striconveha.c: New file.
54193         * MODULES.html.sh (Internationalization functions): Add striconveha.
54194         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54195         string.
54196         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54197
54198 2007-01-21  Bruno Haible  <bruno@clisp.org>
54199
54200         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54201         * lib/striconveh.c (str_iconveh): Likewise.
54202
54203 2007-01-21  Bruno Haible  <bruno@clisp.org>
54204
54205         * lib/striconveh.h (mem_iconveh): New declaration.
54206         * lib/striconveh.c (mem_iconveh): New function.
54207         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54208
54209 2007-01-21  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54212
54213         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54214         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54215         original result buffer.
54216         (str_cd_iconveh): Update.
54217         * tests/test-striconveh.c (main): Update.
54218
54219         * lib/striconv.h (mem_cd_iconv): Change specification.
54220         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54221         result buffer.
54222         (str_cd_iconv): Update.
54223         * tests/test-striconv.c (main): Update.
54224
54225 2007-01-21  Bruno Haible  <bruno@clisp.org>
54226
54227         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54228
54229 2007-01-20  Jim Meyering  <jim@meyering.net>
54230
54231         * lib/userspec.c (parse_with_separator): If a user or group string
54232         starts with "+", skip the corresponding name-to-ID look-up, since
54233         such a look-up must fail: user and group names may not include "+".
54234
54235 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54236
54237         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54238         since we now assume the sys_time module.
54239         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54240         check for sys/time.h; no longer needed.
54241         * modules/poll (Depends-on): Depend on sys_time.
54242
54243 2007-01-18  Bruno Haible  <bruno@clisp.org>
54244
54245         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54246         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54247
54248         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54249         gettimeofday.
54250
54251         * tests/test-gettimeofday.c: Include <time.h>.
54252         (dummy): Remove variable.
54253
54254         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54255         gl_HEADER_SYS_TIME_H.
54256         (gl_HEADER_SYS_TIME_H): New macro.
54257
54258         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54259         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54261         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54262         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54263         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54264         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54265         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54266         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54267         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54268         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54269
54270         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54271         last change; it caused a compilation error when cross-compiling to
54272         Cygwin.
54273
54274 2007-01-18  Jim Meyering  <jim@meyering.net>
54275
54276         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54277         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54278         than the race-prone "test -d sys || mkdir sys".
54279         (configure.ac): Use AC_PROG_MKDIR_P.
54280         * modules/sys_select: Likewise.
54281         * modules/sys_socket: Likewise.
54282         * modules/sys_time: Likewise.
54283
54284 2007-01-18  Eric Blake  <ebb9@byu.net>
54285
54286         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54287         replace gettimeofday.
54288         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54289         name, to avoid infinite recursion.
54290
54291 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54292
54293         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54294         module sys_time.
54295         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54296         assume timespec.h defines struct timeval.
54297         * lib/settime.c: Likewise.
54298         * lib/utimens.c: Likewise.
54299         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54300         since we now assume the gettimeofday module.
54301         * lib/tempname.c (__gen_tempname): Likewise.
54302         * lib/gettimeofday.h: Remove.
54303         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54304         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54305         Include <time.h>, for 'time()'.
54306         (localtime_buffer_addr): Also use this workaround if
54307         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54308         to simplify the uses.  All uses changed.
54309         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54310         that #undef is inside {}, and 'const' follows type name consistently.
54311         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54312         (gettimeofday): Do not use the maximum possible value for
54313         tv->tv_usec, since that might break usages other than ls.c.
54314         Instead, we'll leave ls.c alone.  This undoes today's patch
54315         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54316         we've never observed the problem but might as well keep the
54317         canary.
54318         * lib/nanosleep.c: Include timespec.h first, for interface check.
54319         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54320         now assume the sys_time module.
54321         * lib/tempname.c: Likewise.
54322         * lib/timespec.h: Likewise.
54323         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54324         needed.
54325         * lib/strftime.c: Likewise.
54326         * lib/timespec.h: Likewise.
54327         * lib/posixtm.c: Include posixtm.h first, for interface check.
54328         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54329         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54330         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54331         * lib/sys_time_.h: New file.
54332         * lib/timespec.h (struct timespec): Use long int, not long.
54333         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54334         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54335         Remove obsolescent call to AC_HEADER_TIME.
54336         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54338         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54339         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54340         Likewise.
54341         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54342         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54343         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54344         into the sys_time module.  Check for gettimeofday just once.
54345         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54346         for gettimeofday signature to just check the signature.  Merely
54347         compile it, since linking doesn't test signature.  Improve test for
54348         whether gettimeofday.o is actually needed.
54349         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54350         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54351         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54352         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54353         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54354         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54355         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54356         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54357         than worrying about sys/time.h.
54358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54359         Don't bother worrying about TIME_WITH_SYS_TIME.
54360         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54361         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54362         * m4/sys_time_h.m4: New file.
54363         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54364         Don't include sys/time.h.  Return from main rather than exiting.
54365         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54366         all uses changed.
54367         * modules/gethrxtime (Depends-on): Add sys_time.
54368         * modules/gettime (Depends-on): Likewise.
54369         * modules/gettimeofday (Depends-on): Likewise.
54370         * modules/nanosleep (Depends-on): Likewise.
54371         * modules/settime (Depends-on): Likewise.
54372         * modules/tempname (Depends-on): Likewise.
54373         * modules/utimens (Depends-on): Likewise.
54374         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54375         (Include:) Change back to <sys/time.h>.
54376         (Maintainer:) Add self.
54377         * modules/sys_time: New file.
54378         * modules/tempname (Depends-on): Add gettimeofday.
54379         * tests/test-gettimeofday.c: Include <sys/time.h>
54380         rather than gettimeofday.h.
54381
54382 2007-01-17  Bruno Haible  <bruno@clisp.org>
54383
54384         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54385         the license default to GPL.
54386         (func_create_testdir): Don't complain if a module is LGPL and its
54387         tests module depends on GPLed modules.
54388
54389 2007-01-17  Bruno Haible  <bruno@clisp.org>
54390
54391         * lib/gettimeofday.c (gettimeofday): Add code for the case
54392         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54393         maximum possible value for tv->tv_usec, rather than the minimum one.
54394
54395 2005-10-08  Martin Lambers  <marlam@marlam.de>
54396 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54397 2007-01-16  Bruno Haible  <bruno@clisp.org>
54398
54399         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54400         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54401         gl_FUNC_GETTIMEOFDAY.
54402         (Include): Add gettimeofday.h.
54403         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54404         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54405         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54406         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54407         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54408         * lib/gettimeofday.h: New file.
54409         * lib/gettimeofday.c: Include <sys/timeb.h>.
54410         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54411         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54412         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54413         fall back on time().
54414
54415         * tests/test-gettimeofday.c: New file.
54416         * modules/gettimeofday-tests: New file.
54417
54418 2007-01-16  Eric Blake  <ebb9@byu.net>
54419
54420         * modules/fnmatch (Depends-on): Depend on wchar.
54421         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54422         * m4/fnmatch.m4: Likewise.
54423         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54424         * m4/mbchar.m4: Likewise.
54425         * modules/mbswidth (Depends-on): Depend on wchar.
54426         * lib/mbswidth.c: Assume <wchar.h>.
54427         * m4/mbswidth.m4: Likewise.
54428         * modules/quotearg (Depends-on): Depend on wchar.
54429         * lib/quotearg.c: Assume <wchar.h>.
54430         * m4/quotearg.m4: Likewise.
54431         * modules/regex (Depends-on): Depend on wchar.
54432         * lib/regex_internal.h: Assume <wchar.h>.
54433         * m4/regex.m4: Likewise.
54434         * modules/stdint (Depends-on): Depend on wchar.
54435         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54436         * m4/stdint.m4: Likewise.
54437         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54438         * modules/strftime (Depends-on): Depend on wchar.
54439         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54440         * modules/strtol (Depends-on): Depend on wchar.
54441         * lib/strtol.c: Assume <wchar.h>.
54442         * modules/wcwidth (Depends-on): Depend on wchar.
54443         * lib/wcwidth.h: Assume <wchar.h>.
54444         * m4/wcwidth.m4: Likewise.
54445
54446 2007-01-16  Bruno Haible  <bruno@clisp.org>
54447
54448         * modules/csharpexec-script: New, created from...
54449         * modules/csharpexec: ... this.
54450
54451 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54452
54453         * modules/javaexec-script: New, created from...
54454         * modules/javaexec: ... this.
54455
54456 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54457
54458         * modules/poll (Dependencies): Add sys_select.
54459
54460 2007-01-15  Jim Meyering  <jim@meyering.net>
54461
54462         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54463         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54464         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54465         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54466
54467 2007-01-15  Bruno Haible  <bruno@clisp.org>
54468
54469         * modules/striconveh: New file.
54470         * lib/striconveh.h: New file.
54471         * lib/striconveh.c: New file.
54472         * MODULES.html.sh (Internationalization functions): Add striconveh.
54473
54474         * modules/striconveh-tests: New file.
54475         * tests/test-striconveh.c: New file.
54476
54477 2007-01-15  Bruno Haible  <bruno@clisp.org>
54478
54479         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54480         not from GNU libiconv or GNU libc.
54481
54482 2007-01-15  Bruno Haible  <bruno@clisp.org>
54483
54484         * doc/gnulib-intro.texi (Copyright): Explain the different license
54485         terms for module descriptions, autoconf macros, tests, documentation.
54486
54487 2007-01-14  Bruno Haible  <bruno@clisp.org>
54488
54489         * modules/striconv-tests: New file.
54490         * tests/test-striconv.c: New file.
54491
54492 2007-01-14  Bruno Haible  <bruno@clisp.org>
54493
54494         * modules/iconv-tests: New file.
54495         * tests/test-iconv.c: New file.
54496
54497 2007-01-14  Bruno Haible  <bruno@clisp.org>
54498
54499         * gnulib-tool (func_get_license): For test modules, use the license of
54500         the main module.
54501
54502 2007-01-14  Bruno Haible  <bruno@clisp.org>
54503
54504         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54505         if iconv is found to exist.
54506
54507 2007-01-14  Bruno Haible  <bruno@clisp.org>
54508
54509         * modules/c-ctype-tests: New file.
54510         * tests/test-c-ctype.c: New file.
54511
54512 2007-01-14  Bruno Haible  <bruno@clisp.org>
54513
54514         * modules/binary-io-tests: New file.
54515         * tests/test-binary-io.sh: New file.
54516         * tests/test-binary-io.c: New file.
54517
54518 2007-01-14  Bruno Haible  <bruno@clisp.org>
54519
54520         * modules/array-oset-tests: New file.
54521         * tests/test-array_oset.c: New file.
54522
54523 2007-01-14  Bruno Haible  <bruno@clisp.org>
54524
54525         * modules/array-list-tests: New file.
54526         * tests/test-array_list.c: New file.
54527
54528 2007-01-14  Bruno Haible  <bruno@clisp.org>
54529
54530         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54531         and make.
54532         Reported by Simon Josefsson in
54533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54534
54535 2007-01-14  Bruno Haible  <bruno@clisp.org>
54536
54537         * modules/allocsa-tests: New file.
54538         * tests/test-allocsa.c: New file.
54539
54540 2007-01-14  Bruno Haible  <bruno@clisp.org>
54541
54542         * modules/fchdir (Depends-on): Add absolute-header.
54543         * modules/unistd (Depends-on): Likewise.
54544
54545 2006-12-30  Bruno Haible  <bruno@clisp.org>
54546
54547         * modules/fchdir: New file.
54548         * modules/unistd (Files): Add lib/unistd_.h.
54549         (Makefile.am): Generate unistd.h from unistd_.h.
54550         * lib/fchdir.c: New file.
54551         * lib/dirent_.h: New file.
54552         * lib/unistd_.h: New file.
54553         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54554         * m4/fchdir.m4: New file.
54555         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54556         (gl_HEADER_UNISTD): Invoke it.
54557         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54558         function.
54559         * lib/backupfile.c (opendir, closedir): Undefine.
54560         * lib/chown.c (open, close): Undefine.
54561         * lib/clean-temp.c (open, close): Undefine.
54562         * lib/copy-file.c (open, close): Undefine.
54563         * lib/execute.c (open, close): Undefine.
54564         * lib/fsusage.c (open, close): Undefine.
54565         * lib/gc-gnulib.c (open, close): Undefine.
54566         * lib/getcwd.c (opendir, closedir): Undefine.
54567         * lib/glob.c (opendir, closedir): Undefine.
54568         * lib/javacomp.c (open, close): Undefine.
54569         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54570         * lib/openat-proc.c (open, close): Undefine.
54571         * lib/pagealign_alloc.c (open, close): Undefine.
54572         * lib/pipe.c (open, close): Undefine.
54573         * lib/progreloc.c (open, close): Undefine.
54574         * lib/savedir.c (opendir, closedir): Undefine.
54575         * lib/utime.c (open, close): Undefine.
54576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54577
54578 2007-01-10  Bruno Haible  <bruno@clisp.org>
54579
54580         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54581
54582 2007-01-12  Eric Blake  <ebb9@byu.net>
54583
54584         Provide a robust <wchar.h>.  Further simplifications are now
54585         possible in other modules, but not included here.
54586         * modules/wchar: New module.
54587         * m4/wchar.m4: New file.
54588         * lib/wchar_.h: Likewise.
54589         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54590         of the new module.
54591         * MODULES.html.sh (Extended multibyte and wide character utilities):
54592         New section.
54593
54594 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54595
54596         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54597         to a reasonable default for memory allocation.
54598         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54599         file system that reports garbage st_size values for symlinks.
54600         Problem reported by Liyang Hu.
54601
54602 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54603
54604         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54605         Emacs .#* auto-save files).
54606
54607 2007-01-11  Bruno Haible  <bruno@clisp.org>
54608
54609         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54610         directory.
54611
54612 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54613
54614         Use @...@ consistently in lib/wctype_.h.
54615         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54616         on it being set to 1 or 0.
54617         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54618         go back to AC_SUBSTing it.
54619         * modules/wctype (Makefile.am): Undo previous change.
54620
54621 2007-01-10  Eric Blake  <ebb9@byu.net>
54622
54623         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54624         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54625         * modules/wctype (Makefile.am): Likewise.
54626         Reported by Chris McGuire.
54627
54628 2007-01-10  Jim Meyering  <jim@meyering.net>
54629
54630         fts.c: a small readability/maintainability improvement
54631         * lib/fts.c (fts_read): Make this code slightly more readable and
54632         maintainable by hoisting the "sp->fts_cur = p" assignments to
54633         immediately follow the statements that set P.  Derived from
54634         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54635
54636 2007-01-10  Eric Blake  <ebb9@byu.net>
54637
54638         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54639         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54641         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54642         Reported by Chris McGuire.
54643
54644 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54645
54646         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54647         in sed script.
54648
54649 2007-01-09  Bruno Haible  <bruno@clisp.org>
54650
54651         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54652         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54653         variables.
54654         (func_module): Use them.
54655
54656 2007-01-09  Bruno Haible  <bruno@clisp.org>
54657
54658         * modules/unistr/base: New file.
54659         * lib/unistr.h: New file.
54660
54661         * modules/unistr/u8-to-u16: New file.
54662         * lib/unistr/u8-to-u16.c: New file.
54663
54664         * modules/unistr/u8-to-u32: New file.
54665         * lib/unistr/u8-to-u32.c: New file.
54666
54667         * modules/unistr/u16-to-u8: New file.
54668         * lib/unistr/u16-to-u8.c: New file.
54669
54670         * modules/unistr/u16-to-u32: New file.
54671         * lib/unistr/u16-to-u32.c: New file.
54672
54673         * modules/unistr/u32-to-u8: New file.
54674         * lib/unistr/u32-to-u8.c: New file.
54675
54676         * modules/unistr/u32-to-u16: New file.
54677         * lib/unistr/u32-to-u16.c: New file.
54678
54679         * modules/unistr/u8-check: New file.
54680         * modules/unistr/u16-check: New file.
54681         * modules/unistr/u32-check: New file.
54682         * lib/unistr/u8-check.c: New file.
54683         * lib/unistr/u16-check.c: New file.
54684         * lib/unistr/u32-check.c: New file.
54685
54686         * modules/unistr/u8-chr: New file.
54687         * modules/unistr/u16-chr: New file.
54688         * modules/unistr/u32-chr: New file.
54689         * lib/unistr/u8-chr.c: New file.
54690         * lib/unistr/u16-chr.c: New file.
54691         * lib/unistr/u32-chr.c: New file.
54692
54693         * modules/unistr/u8-cmp: New file.
54694         * modules/unistr/u16-cmp: New file.
54695         * modules/unistr/u32-cmp: New file.
54696         * lib/unistr/u8-cmp.c: New file.
54697         * lib/unistr/u16-cmp.c: New file.
54698         * lib/unistr/u32-cmp.c: New file.
54699
54700         * modules/unistr/u8-cpy: New file.
54701         * modules/unistr/u16-cpy: New file.
54702         * modules/unistr/u32-cpy: New file.
54703         * lib/unistr/u8-cpy.c: New file.
54704         * lib/unistr/u16-cpy.c: New file.
54705         * lib/unistr/u32-cpy.c: New file.
54706         * lib/unistr/u-cpy.h: New file.
54707
54708         * modules/unistr/u8-cpy-alloc: New file.
54709         * modules/unistr/u16-cpy-alloc: New file.
54710         * modules/unistr/u32-cpy-alloc: New file.
54711         * lib/unistr/u8-cpy-alloc.c: New file.
54712         * lib/unistr/u16-cpy-alloc.c: New file.
54713         * lib/unistr/u32-cpy-alloc.c: New file.
54714         * lib/unistr/u-cpy-alloc.h: New file.
54715
54716         * modules/unistr/u8-endswith: New file.
54717         * modules/unistr/u16-endswith: New file.
54718         * modules/unistr/u32-endswith: New file.
54719         * lib/unistr/u8-endswith.c: New file.
54720         * lib/unistr/u16-endswith.c: New file.
54721         * lib/unistr/u32-endswith.c: New file.
54722         * lib/unistr/u-endswith.h: New file.
54723
54724         * modules/unistr/u8-mblen: New file.
54725         * modules/unistr/u16-mblen: New file.
54726         * modules/unistr/u32-mblen: New file.
54727         * lib/unistr/u8-mblen.c: New file.
54728         * lib/unistr/u16-mblen.c: New file.
54729         * lib/unistr/u32-mblen.c: New file.
54730
54731         * modules/unistr/u8-mbtouc: New file.
54732         * modules/unistr/u16-mbtouc: New file.
54733         * modules/unistr/u32-mbtouc: New file.
54734         * lib/unistr/u8-mbtouc.c: New file.
54735         * lib/unistr/u16-mbtouc.c: New file.
54736         * lib/unistr/u32-mbtouc.c: New file.
54737
54738         * modules/unistr/u8-mbtouc-safe: New file.
54739         * modules/unistr/u16-mbtouc-safe: New file.
54740         * modules/unistr/u32-mbtouc-safe: New file.
54741         * lib/unistr/u8-mbtouc-safe.c: New file.
54742         * lib/unistr/u16-mbtouc-safe.c: New file.
54743         * lib/unistr/u32-mbtouc-safe.c: New file.
54744
54745         * modules/unistr/u8-move: New file.
54746         * modules/unistr/u16-move: New file.
54747         * modules/unistr/u32-move: New file.
54748         * lib/unistr/u8-move.c: New file.
54749         * lib/unistr/u16-move.c: New file.
54750         * lib/unistr/u32-move.c: New file.
54751         * lib/unistr/u-move.h: New file.
54752
54753         * modules/unistr/u8-next: New file.
54754         * modules/unistr/u16-next: New file.
54755         * modules/unistr/u32-next: New file.
54756         * lib/unistr/u8-next.c: New file.
54757         * lib/unistr/u16-next.c: New file.
54758         * lib/unistr/u32-next.c: New file.
54759
54760         * modules/unistr/u8-prev: New file.
54761         * modules/unistr/u16-prev: New file.
54762         * modules/unistr/u32-prev: New file.
54763         * lib/unistr/u8-prev.c: New file.
54764         * lib/unistr/u16-prev.c: New file.
54765         * lib/unistr/u32-prev.c: New file.
54766
54767         * modules/unistr/u8-set: New file.
54768         * modules/unistr/u16-set: New file.
54769         * modules/unistr/u32-set: New file.
54770         * lib/unistr/u8-set.c: New file.
54771         * lib/unistr/u16-set.c: New file.
54772         * lib/unistr/u32-set.c: New file.
54773         * lib/unistr/u-set.h: New file.
54774
54775         * modules/unistr/u8-startswith: New file.
54776         * modules/unistr/u16-startswith: New file.
54777         * modules/unistr/u32-startswith: New file.
54778         * lib/unistr/u8-startswith.c: New file.
54779         * lib/unistr/u16-startswith.c: New file.
54780         * lib/unistr/u32-startswith.c: New file.
54781         * lib/unistr/u-startswith.h: New file.
54782
54783         * modules/unistr/u8-stpcpy: New file.
54784         * modules/unistr/u16-stpcpy: New file.
54785         * modules/unistr/u32-stpcpy: New file.
54786         * lib/unistr/u8-stpcpy.c: New file.
54787         * lib/unistr/u16-stpcpy.c: New file.
54788         * lib/unistr/u32-stpcpy.c: New file.
54789         * lib/unistr/u-stpcpy.h: New file.
54790
54791         * modules/unistr/u8-stpncpy: New file.
54792         * modules/unistr/u16-stpncpy: New file.
54793         * modules/unistr/u32-stpncpy: New file.
54794         * lib/unistr/u8-stpncpy.c: New file.
54795         * lib/unistr/u16-stpncpy.c: New file.
54796         * lib/unistr/u32-stpncpy.c: New file.
54797         * lib/unistr/u-stpncpy.h: New file.
54798
54799         * modules/unistr/u8-strcat: New file.
54800         * modules/unistr/u16-strcat: New file.
54801         * modules/unistr/u32-strcat: New file.
54802         * lib/unistr/u8-strcat.c: New file.
54803         * lib/unistr/u16-strcat.c: New file.
54804         * lib/unistr/u32-strcat.c: New file.
54805         * lib/unistr/u-strcat.h: New file.
54806
54807         * modules/unistr/u8-strchr: New file.
54808         * modules/unistr/u16-strchr: New file.
54809         * modules/unistr/u32-strchr: New file.
54810         * lib/unistr/u8-strchr.c: New file.
54811         * lib/unistr/u16-strchr.c: New file.
54812         * lib/unistr/u32-strchr.c: New file.
54813
54814         * modules/unistr/u8-strcmp: New file.
54815         * modules/unistr/u16-strcmp: New file.
54816         * modules/unistr/u32-strcmp: New file.
54817         * lib/unistr/u8-strcmp.c: New file.
54818         * lib/unistr/u16-strcmp.c: New file.
54819         * lib/unistr/u32-strcmp.c: New file.
54820
54821         * modules/unistr/u8-strcpy: New file.
54822         * modules/unistr/u16-strcpy: New file.
54823         * modules/unistr/u32-strcpy: New file.
54824         * lib/unistr/u8-strcpy.c: New file.
54825         * lib/unistr/u16-strcpy.c: New file.
54826         * lib/unistr/u32-strcpy.c: New file.
54827         * lib/unistr/u-strcpy.h: New file.
54828
54829         * modules/unistr/u8-strcspn: New file.
54830         * modules/unistr/u16-strcspn: New file.
54831         * modules/unistr/u32-strcspn: New file.
54832         * lib/unistr/u8-strcspn.c: New file.
54833         * lib/unistr/u16-strcspn.c: New file.
54834         * lib/unistr/u32-strcspn.c: New file.
54835         * lib/unistr/u-strcspn.h: New file.
54836
54837         * modules/unistr/u8-strdup: New file.
54838         * modules/unistr/u16-strdup: New file.
54839         * modules/unistr/u32-strdup: New file.
54840         * lib/unistr/u8-strdup.c: New file.
54841         * lib/unistr/u16-strdup.c: New file.
54842         * lib/unistr/u32-strdup.c: New file.
54843         * lib/unistr/u-strdup.h: New file.
54844
54845         * modules/unistr/u8-strlen: New file.
54846         * modules/unistr/u16-strlen: New file.
54847         * modules/unistr/u32-strlen: New file.
54848         * lib/unistr/u8-strlen.c: New file.
54849         * lib/unistr/u16-strlen.c: New file.
54850         * lib/unistr/u32-strlen.c: New file.
54851         * lib/unistr/u-strlen.h: New file.
54852
54853         * modules/unistr/u8-strmblen: New file.
54854         * modules/unistr/u16-strmblen: New file.
54855         * modules/unistr/u32-strmblen: New file.
54856         * lib/unistr/u8-strmblen.c: New file.
54857         * lib/unistr/u16-strmblen.c: New file.
54858         * lib/unistr/u32-strmblen.c: New file.
54859
54860         * modules/unistr/u8-strmbtouc: New file.
54861         * modules/unistr/u16-strmbtouc: New file.
54862         * modules/unistr/u32-strmbtouc: New file.
54863         * lib/unistr/u8-strmbtouc.c: New file.
54864         * lib/unistr/u16-strmbtouc.c: New file.
54865         * lib/unistr/u32-strmbtouc.c: New file.
54866
54867         * modules/unistr/u8-strncat: New file.
54868         * modules/unistr/u16-strncat: New file.
54869         * modules/unistr/u32-strncat: New file.
54870         * lib/unistr/u8-strncat.c: New file.
54871         * lib/unistr/u16-strncat.c: New file.
54872         * lib/unistr/u32-strncat.c: New file.
54873         * lib/unistr/u-strncat.h: New file.
54874
54875         * modules/unistr/u8-strncmp: New file.
54876         * modules/unistr/u16-strncmp: New file.
54877         * modules/unistr/u32-strncmp: New file.
54878         * lib/unistr/u8-strncmp.c: New file.
54879         * lib/unistr/u16-strncmp.c: New file.
54880         * lib/unistr/u32-strncmp.c: New file.
54881
54882         * modules/unistr/u8-strncpy: New file.
54883         * modules/unistr/u16-strncpy: New file.
54884         * modules/unistr/u32-strncpy: New file.
54885         * lib/unistr/u8-strncpy.c: New file.
54886         * lib/unistr/u16-strncpy.c: New file.
54887         * lib/unistr/u32-strncpy.c: New file.
54888         * lib/unistr/u-strncpy.h: New file.
54889
54890         * modules/unistr/u8-strnlen: New file.
54891         * modules/unistr/u16-strnlen: New file.
54892         * modules/unistr/u32-strnlen: New file.
54893         * lib/unistr/u8-strnlen.c: New file.
54894         * lib/unistr/u16-strnlen.c: New file.
54895         * lib/unistr/u32-strnlen.c: New file.
54896         * lib/unistr/u-strnlen.h: New file.
54897
54898         * modules/unistr/u8-strpbrk: New file.
54899         * modules/unistr/u16-strpbrk: New file.
54900         * modules/unistr/u32-strpbrk: New file.
54901         * lib/unistr/u8-strpbrk.c: New file.
54902         * lib/unistr/u16-strpbrk.c: New file.
54903         * lib/unistr/u32-strpbrk.c: New file.
54904         * lib/unistr/u-strpbrk.h: New file.
54905
54906         * modules/unistr/u8-strrchr: New file.
54907         * modules/unistr/u16-strrchr: New file.
54908         * modules/unistr/u32-strrchr: New file.
54909         * lib/unistr/u8-strrchr.c: New file.
54910         * lib/unistr/u16-strrchr.c: New file.
54911         * lib/unistr/u32-strrchr.c: New file.
54912
54913         * modules/unistr/u8-strspn: New file.
54914         * modules/unistr/u16-strspn: New file.
54915         * modules/unistr/u32-strspn: New file.
54916         * lib/unistr/u8-strspn.c: New file.
54917         * lib/unistr/u16-strspn.c: New file.
54918         * lib/unistr/u32-strspn.c: New file.
54919         * lib/unistr/u-strspn.h: New file.
54920
54921         * modules/unistr/u8-strstr: New file.
54922         * modules/unistr/u16-strstr: New file.
54923         * modules/unistr/u32-strstr: New file.
54924         * lib/unistr/u8-strstr.c: New file.
54925         * lib/unistr/u16-strstr.c: New file.
54926         * lib/unistr/u32-strstr.c: New file.
54927         * lib/unistr/u-strstr.h: New file.
54928
54929         * modules/unistr/u8-strtok: New file.
54930         * modules/unistr/u16-strtok: New file.
54931         * modules/unistr/u32-strtok: New file.
54932         * lib/unistr/u8-strtok.c: New file.
54933         * lib/unistr/u16-strtok.c: New file.
54934         * lib/unistr/u32-strtok.c: New file.
54935         * lib/unistr/u-strtok.h: New file.
54936
54937         * modules/unistr/u8-uctomb: New file.
54938         * modules/unistr/u16-uctomb: New file.
54939         * modules/unistr/u32-uctomb: New file.
54940         * lib/unistr/u8-uctomb.c: New file.
54941         * lib/unistr/u16-uctomb.c: New file.
54942         * lib/unistr/u32-uctomb.c: New file.
54943
54944         * MODULES.html.sh (Unicode string functions): Add the new modules.
54945
54946 2007-01-08  Bruno Haible  <bruno@clisp.org>
54947
54948         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54949         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54950         subdirectories.
54951
54952 2007-01-08  Karl Berry  <karl@gnu.org>
54953
54954         * doc/error.texi: mention that main() fns must set program_name
54955         when progname is used.
54956
54957 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54958
54959         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54960         WCTYPE_H is empty, for the benefit of builds from non-distclean
54961         directories.  Problem reported by Eric Blake in
54962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54963
54964 2007-01-08  Bruno Haible  <bruno@clisp.org>
54965
54966         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54967         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54968         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54969         PROVIDE_CANONICALIZE_FILENAME_MODE.
54970         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54971
54972 2007-01-08  Bruno Haible  <bruno@clisp.org>
54973
54974         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54975         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54976         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54977         * lib/fts.c: Likewise.
54978         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54979
54980 2006-12-25  Bruno Haible  <bruno@clisp.org>
54981
54982         * modules/utf8-ucs4-safe: New file.
54983         * lib/utf8-ucs4-safe.h: New file.
54984         * lib/unistr/utf8-ucs4-safe.c: New file.
54985
54986         * modules/utf16-ucs4-safe: New file.
54987         * lib/utf16-ucs4-safe.h: New file.
54988         * lib/unistr/utf16-ucs4-safe.c: New file.
54989
54990         * MODULES.html.sh (Unicode string functions): Add the new modules.
54991
54992 2007-01-08  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54995         (Depends-on): Add unitypes.
54996         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54997         (u8_mbtouc_aux): Move out to separate file.
54998         (u8_mbtouc): Use ucs4_t, uint8_t types.
54999         * lib/unistr/utf8-ucs4.c: New file.
55000
55001         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
55002         (Depends-on): Add unitypes.
55003         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
55004         (u16_mbtouc_aux): Move out to separate file.
55005         (u16_mbtouc): Use ucs4_t, uint16_t types.
55006         * lib/unistr/utf16-ucs4.c: New file.
55007
55008         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
55009         (Depends-on): Add unitypes.
55010         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
55011         (u8_uctomb_aux): Move out to separate file.
55012         (u8_uctomb): Use ucs4_t, uint8_t types.
55013         * lib/unistr/ucs4-utf8.c: New file.
55014
55015         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
55016         (Depends-on): Add unitypes.
55017         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
55018         (u16_uctomb_aux): Move out to separate file.
55019         (u16_uctomb): Use ucs4_t, uint16_t types.
55020         * lib/unistr/ucs4-utf16.c: New file.
55021
55022 2006-12-25  Bruno Haible  <bruno@clisp.org>
55023
55024         * modules/unitypes: New file.
55025         * lib/unitypes.h: New file.
55026         * MODULES.html.sh (func_all_modules): New section "Unicode string
55027         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
55028         this section. Add unitypes.
55029
55030 2007-01-08  Bruno Haible  <bruno@clisp.org>
55031
55032         Avoid variable names that conflict with those from libtool.
55033         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
55034         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
55035         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
55036         library_names_spec to acl_library_names_spec, hardcode_* to
55037         acl_hardcode_*.
55038         Reported by Ralf Wildenhues.
55039
55040 2007-01-08  Bruno Haible  <bruno@clisp.org>
55041
55042         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
55043         definition.
55044         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
55045         definition.
55046         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
55047         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
55048         definition.
55049         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
55050         definition.
55051         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
55052         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
55053         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55054         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55055         definition.
55056         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55057         definition.
55058         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55059         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55060         GC_USE_<algorithm>.
55061         * lib/gc-libgcrypt.c: Likewise.
55062         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55063         * modules/gc-arctwo (configure.ac): Likewise.
55064         * modules/gc-des (configure.ac): Likewise.
55065         * modules/gc-hmac-md5 (configure.ac): Likewise.
55066         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55067         * modules/gc-md2 (configure.ac): Likewise.
55068         * modules/gc-md4 (configure.ac): Likewise.
55069         * modules/gc-md5 (configure.ac): Likewise.
55070         * modules/gc-random (configure.ac): Likewise.
55071         * modules/gc-rijndael (configure.ac): Likewise.
55072         * modules/gc-sha1 (configure.ac): Likewise.
55073
55074 2007-01-08  Bruno Haible  <bruno@clisp.org>
55075
55076         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55077         macro definition.
55078         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55079         definition.
55080         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55081         definition.
55082         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55083         * modules/fcntl-safer (configure.ac): Likewise.
55084         * modules/fopen-safer (configure.ac): Likewise.
55085         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55086         GNULIB_FWRITEERROR macro definition.
55087
55088 2007-01-08  Bruno Haible  <bruno@clisp.org>
55089
55090         * m4/gnulib-common.m4: New file.
55091         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55092         (func_get_filelist): Add m4/gnulib-common.m4.
55093
55094 2007-01-08  Bruno Haible  <bruno@clisp.org>
55095
55096         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55097         command.
55098
55099 2007-01-08  Jim Meyering  <jim@meyering.net>
55100
55101         Use a more robust test for a "can't happen" condition.
55102         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55103         narrowed the st_size value.  Presuming the "can't happen" condition
55104         is true, that narrowing could conceivably convert an invalid st_size
55105         value into a valid one.  Instead, use a change based on Matthew
55106         Woehlke's original patch.
55107
55108         Slight readability improvement: use an assert-like macro
55109         in place of literal "abort ()" uses.
55110         * lib/fts.c (fts_assert): Define.
55111         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55112         Use this macro instead of a bare 'abort'.
55113
55114 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55115
55116         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55117         simply work around them.
55118         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55119         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55120         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55121         declaring.
55122         Don't bother to define as macros, since the standard doesn't require it.
55123         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55124         longer worry about IRIX 5.3.
55125         (HAVE_WCTYPE_CTMP_BUG): Remove.
55126
55127 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55128
55129         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55130         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55131         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55132         Problems reported by Georg Schwarz for IRIX 5.3.
55133
55134         * gnulib-tool (autoconf_minversion): Take the maximum version number
55135         found, not the minimum.  Problem reported by James Youngman.
55136
55137 2007-01-03  Karl Berry  <karl@gnu.org>
55138
55139         * doc/error.texi: new file, explaining interaction with progname.
55140         * doc/gnulib.texi: include it.  Update copyright.
55141
55142 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55143
55144         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55145         AC_CANONICAL_HOST, to improve autobuild outputs.
55146
55147 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55148             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55149
55150         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55151         sockets, server sockets, and other file descriptors.  Count errors
55152         to compute the return value.  Reorder the code a bit to be easier
55153         to follow.  Don't set event bits that were not requested (except
55154         POLLERR and POLLHUP).
55155
55156 2007-01-01  Bruno Haible  <bruno@clisp.org>
55157
55158         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55159
55160 2007-01-03  Jim Meyering  <jim@meyering.net>
55161
55162         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55163
55164 2007-01-02  Bruno Haible  <bruno@clisp.org>
55165
55166         * modules/settime (Include): Require timespec.h.
55167         * modules/nanosleep (Include): Likewise.
55168
55169 2007-01-01  Bruno Haible  <bruno@clisp.org>
55170
55171         * gnulib-tool (func_emit_copyright_notice): Bump year.
55172         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55173
55174 2007-01-01  Bruno Haible  <bruno@clisp.org>
55175
55176         Improve support for OpenBSD.
55177         * build-aux/config.rpath (libname_spec): Export.
55178         (library_names_spec): New variable. Export.
55179         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55180         library_names_spec from the config.rpath output. Locate shared library
55181         through the name pattern in library_names_spec.
55182
55183 2007-01-01  Eric Blake  <ebb9@byu.net>
55184
55185         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55186
55187 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55188
55189         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55190         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55191         assume the C locale, and avoid an "eval" that could cause trouble.
55192         Problem with SORT reported by Bob Proulx.
55193
55194         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55195         Define.  Trivial patch from Henning Nielsen Lund, originally
55196         sent to bug-grep@gnu.org today.
55197
55198 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55199
55200         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55201         struct stat.  Problem reported by Henning Nielsen Lund.
55202         * lib/acl.c: Include acl.h first, to check interface.  Don't
55203         bother to include sys/types.h and sys/stat.h again.
55204
55205 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         Import the following change from libc; problem reported by
55208         Sven Verdoolaege.
55209
55210         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55211
55212         [BZ #1373]
55213         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55214
55215 2006-12-28  Jim Meyering  <jim@meyering.net>
55216
55217         * build-aux/announce-gen: Do not assume that the package
55218         builds any of tar.gz, tar.bz2, and .xdelta files.
55219         Suggestion from Simon Josefsson.
55220
55221 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55222
55223         * modules/announce-gen: New file.
55224
55225 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55228         handles its gotchas now.
55229         * lib/mbswidth.c: Likewise.
55230         * lib/wcwidth.h: Likewise.
55231         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55232         and iswcntrl; the wctype module does this stuff now.
55233         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55235         * modules/mbchar (Depends-on): Add wctype.
55236         * modules/mbswidth (Depends-on): Likewise.
55237         * modules/wcwidth (Depends-on): Likewise.
55238
55239 2006-12-27  Eric Blake  <ebb9@byu.net>
55240
55241         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55242         module uses more than what <wctype.h> is required to provide.
55243
55244 2006-12-26  Eric Blake  <ebb9@byu.net>
55245
55246         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55247
55248 2006-12-26  Eric Blake  <ebb9@byu.net>
55249
55250         * modules/absolute-header: New module.
55251         * modules/fcntl (Depends-on): Depend on it.
55252         * modules/inttypes (Depends-on): Likewise.
55253         * modules/stdint (Depends-on): Likewise.
55254         * modules/sys_stat (Depends-on): Likewise.
55255         * modules/wctype (Depends-on): Likewise.
55256         * MODULES.html.sh (Support for building libraries and
55257         executables): Document it.
55258
55259 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55260
55261         * gnulib-tool (SED): Remove, undoing previous change.
55262         The problem was that it broke coreutils on Solaris, because
55263         "sed --posix" leaked into a makefile.
55264         (sed): New alias, if 'alias' and GNU sed.
55265
55266 2006-12-24  Jim Meyering  <jim@meyering.net>
55267
55268         Work around an fchownat bug in glibc-2.4:
55269         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55270         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55271         in spite of the -P option.
55272         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55273         New macros.
55274         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55275         * modules/openat (Files): Add lib/fchownat.c.
55276         * lib/openat.c (fchownat): Don't define here.  Move to...
55277         * lib/fchownat.c: ...this new file.
55278
55279 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55280
55281         Fix bug reported by Bruno Haible in
55282         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55283         where quotearg.c didn't compile on Mac OS X 10.2 because it
55284         lacks <wchar.h> and wint_t.
55285         * lib/wctype_.h (__wctype_wint_t): New type.
55286         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55287         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55288         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55289         Arg is now of type __wctype_wint_t, not wint_t.
55290         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55291         substitute HAVE_WINT_T.
55292         * modules/wctype (Files): Add m4/wint_t.m4.
55293         (wctype.h): Substitute HAVE_WINT_T.
55294
55295 2006-12-23  Bruno Haible  <bruno@clisp.org>
55296
55297         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55298
55299 2006-12-23  Bruno Haible  <bruno@clisp.org>
55300
55301         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55302         S_ISLNK.
55303         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55304         mingw.
55305
55306 2006-12-22  Bruno Haible  <bruno@clisp.org>
55307
55308         * lib/copy-file.c: Include acl.h.
55309         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55310         Close the file descriptors only after being done with copy_acl.
55311         * modules/copy-file (Depends-on): Add acl.
55312
55313 2006-12-22  Bruno Haible  <bruno@clisp.org>
55314
55315         * gnulib-tool (SED): New variable.
55316         Use $SED instead of sed everywhere.
55317
55318 2006-12-22  Bruno Haible  <bruno@clisp.org>
55319
55320         * modules/no-c++: New file.
55321         * m4/no-c++.m4: New file.
55322         * MODULES.html.sh (Support for building libraries and executables):
55323         Add no-c++.
55324
55325 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55326
55327         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55328         Include <limits.h>, and use its INT_MAX to rewrite the
55329         j loop so that it does not overflow 'int'.  Problem reported by
55330         Ralf Wildenhues in
55331         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55332         Play it safe by shifting left by 1 rather than multiplying by 2,
55333         as GCC is less likely to optimize this away when the value
55334         is signed (when it assumes overflow leads to undefined behavior).
55335         Also, don't assume time_t uses two's complement.
55336
55337 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55338
55339         * MODULES.html.sh: New module wctype.
55340         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55341         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55342         <wctype.h>, since the new wctype module should fix this.
55343         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55344         the wctype module should arrange for it.
55345         * lib/regex_internal.h: Likewise.
55346         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55347         since the wctype module should handle this now.
55348         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55349         * modules/fnmatch (Depends-on): Add wctype.
55350         * modules/quotearg (Depends-on): Likewise.
55351         * modules/regex (Depends-on): Likewise.
55352
55353 2006-12-19  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55356         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55357
55358 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55359
55360         * modules/savewd (Depends-on): Fix dependency on fcntl.
55361
55362 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55363
55364         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55365         conforms to C99, rather than relying on the user's environment
55366         setting of STDINT_H.
55367
55368 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55369         and Eric Blake  <ebb9@byu.net>
55370
55371         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55372         This is more consistent with the other defines here.
55373         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55374         Port to z/OS.  Problem reported by Paul Gilmartin.
55375         Change local vars to use gl_ prefix rather than ac_.
55376         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55377         with other defines.
55378         * modules/double-slash-root: New module.
55379         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55380         (Depends-on): Add double-slash-root.
55381         * MODULES.html.sh (File system functions): Mention new module.
55382
55383 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55384
55385         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55386         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55387         This is for the benefit of gzip, which doesn't do i18n.
55388
55389 2006-12-12  Jim Meyering  <jim@meyering.net>
55390
55391         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55392         Reported by Andreas Schwab <schwab@suse.de>.
55393
55394 2006-12-12  Bruno Haible  <bruno@clisp.org>
55395
55396         Merge these changes.
55397         2006-09-05  Bruno Haible  <bruno@clisp.org>
55398         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55399         iconv_alloc succeeded.
55400         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55401         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55402         test for " && dest " at the end - dest is always != NULL there. Call
55403         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55404         with 2xNULL arguments, also to flush the state storage. Handle the
55405         IRIX iconv behaviour. Realloc the final result, to throw away unused
55406         memory.
55407
55408 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55409
55410         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55411         and fchmodat unconditionally, since glibc 2.4 has them.
55412         Problem reported by Arkadiusz Miskiewicz.
55413
55414 2006-12-10  Bruno Haible  <bruno@clisp.org>
55415
55416         * gnulib-tool (func_import): Show the include files only for those
55417         modules that are copied and specified.
55418         Reported by Karl Berry.
55419
55420 2006-12-08  Jim Meyering  <jim@meyering.net>
55421
55422         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55423         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55424
55425         * build-aux/announce-gen: Add two new options, both optional:
55426         --bootstrap-tools=TOOL_LIST
55427               a comma-separated list of tools, e.g.,
55428               autoconf,automake,bison,gnulib
55429         --gnulib-snapshot-date=DATE
55430               if gnulib is in the bootstrap tool list,
55431               then report this as the snapshot date.
55432               If not specified, use the current date/time.
55433               If you specify a date here, be sure it's UTC.
55434
55435 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55436
55437         * tests/test-argp-2.sh: Fix test to match actual output.
55438         (func_compare): Fix sed script to be portable.
55439
55440 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55443         workaround for this case.  It is not autoconfigured now; offhand
55444         it's hard to see how to autoconfigure it.
55445
55446 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55447
55448         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55449         a directory that is about to be chowned.  Such a directory's
55450         initial file permissions should permit the owner only and this
55451         should not be changed until after the chown, since the group and
55452         other bits would be incorrect if they granted permission before
55453         the chown.
55454
55455         Fix porting problem for iswctype reported by Georg Schwarz in:
55456         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55457         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55458         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55459         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55460         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55461
55462 2006-12-03  Jim Meyering  <jim@meyering.net>
55463
55464         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55465         p->fts_statp may not yet be defined.
55466         (fts_read): Instead, set it in the caller, once p->fts_statp is
55467         sure to be defined, and corresponds to a top-level directory.
55468         This bug made du -x fail.  Here's the coreutils test case:
55469         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55470         Reported by Mike Frysinger.
55471
55472 2006-12-01  Jim Meyering  <jim@meyering.net>
55473
55474         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55475         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55476         Reported by Simon Josefsson.
55477
55478 2006-11-30  Jim Meyering  <jim@meyering.net>
55479
55480         * m4/warning.m4: Use the all-permissive copyright notice
55481         recommended by RMS (rather than LGPL).
55482         * m4/vararrays.m4: Likewise.
55483         * m4/flexmember.m4: Likewise.
55484
55485 2006-11-29  Bruno Haible  <bruno@clisp.org>
55486
55487         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55488         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55489         using +=.
55490         Reported by Simon Josefsson <simon@josefsson.org>.
55491
55492 2006-11-28  James Youngman <jay@gnu.org>
55493
55494         * README: Advise users that they might find the bug-gnulib@gnu.org
55495         and autotools-announce@gnu.org mailing lists useful.
55496
55497 2006-11-28  Bruno Haible  <bruno@clisp.org>
55498
55499         * m4/ptrdiff_max.m4: Remove file.
55500
55501 2006-11-21  Bruno Haible  <bruno@clisp.org>
55502
55503         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55504         _AC_COMPUTE_INT.
55505         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55506         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55507         _AC_COMPUTE_INT.
55508         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55509         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55510         _AC_COMPUTE_INT.
55511         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55512
55513 2006-11-28  Jim Meyering  <jim@meyering.net>
55514
55515         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55516         warning from "gcc -Wshadow" about shadowing the builtin.
55517
55518 2006-11-27  Bruno Haible  <bruno@clisp.org>
55519
55520         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55521         _AC_COMPUTE_INT.
55522         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55523
55524 2006-11-27  Bruno Haible  <bruno@clisp.org>
55525             Paul Eggert  <eggert@cs.ucla.edu>
55526
55527         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55528
55529 2006-11-26  Bruno Haible  <bruno@clisp.org>
55530
55531         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55532         noinst_LTLIBRARIES.
55533
55534 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55535             Bruno Haible  <bruno@clisp.org>
55536
55537         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55538         if compiling with "gcc -ansi".
55539
55540 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55541
55542         Fix some incompatibilities with gcc -ansi -pedantic.
55543         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55544         if compiling pedantically with GCC, unless it's C99 or later.
55545         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55546         it mishandles gcc -ansi -pedantic as well.
55547         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55548         if gcc -pedantic.
55549         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55550         initializers for struct if -pedantic, unless it's C99 or later.
55551
55552 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55553
55554         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55555         Don't close an fd more than once. Identical atimes indicate
55556         success, not failure.
55557
55558 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55559
55560         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55561
55562 2006-11-23  Jim Meyering  <jim@meyering.net>
55563
55564         * build-aux/announce-gen: New file.  From coreutils.
55565
55566 2006-11-22  Jim Meyering  <jim@meyering.net>
55567
55568         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55569         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55570         (fts_read): Use a temporary to narrow the overused st_size member
55571         before using it in a switch statement.  Reported by Matthew Woehlke.
55572
55573         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55574         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55575
55576 2006-11-20  Bruno Haible  <bruno@clisp.org>
55577
55578         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55579         changequote instead of pairs of brackets.
55580         Reported by Andreas Schwab <schwab@suse.de>.
55581
55582 2006-11-21  Jim Meyering  <jim@meyering.net>
55583
55584         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55585         so as to remain compatible with older compilers.
55586         Patch from Michael Deutschmann.
55587
55588 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * MODULES.html.sh (File system functions): Add openat.
55591
55592         * lib/openat.h (rpl_fstatat): New macro, if
55593         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55594         (fstatat): Define to rpl_fstatat under the same conditions,
55595         unless COMPILING_FSTATAT.
55596         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55597         seems to have the bug.
55598         * lib/fstatat.c: New file.
55599         * modules/openat (Files): Add it.
55600
55601 2006-11-20  Bruno Haible  <bruno@clisp.org>
55602
55603         * Makefile: New file.
55604
55605 2006-11-20  Jim Meyering  <jim@meyering.net>
55606
55607         The beginnings of syntax-related checks for gnulib.
55608         * lib/Makefile: New file.
55609         * lib/t-idcache: New script.  Ensure that the two halves of
55610         idcache.c stay in sync.
55611
55612         * lib/idcache.c: Adjust comments in user- and group- portions to
55613         be more accurate, and to be consistent with one another.
55614
55615 2006-11-20  Jim Meyering  <jim@meyering.net>
55616
55617         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55618         continue using the flexible array member (thus, this module performs
55619         half as many malloc calls), with the addition that...
55620         (getgroup, getuser): Consistently record a non-match via an empty
55621         "name" string, and map an empty string match to a NULL return value.
55622         * modules/idcache (Depends-on): Re-add flexmember.
55623
55624         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55625         (getuidbyname, getgroup, getgidbyname): Likewise.
55626
55627         Use cleaner syntax: NULL rather than 0.
55628         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55629
55630 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55631
55632         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55633         It mishandled the case where the group was missing.
55634         Problem reported by Greg Schafer.
55635         * modules/idcache: Likewise.
55636
55637 2006-11-18  Jim Meyering  <jim@meyering.net>
55638
55639         * check-module (%exempt_header): Add exception for some
55640         conditionally-included headers.
55641
55642         * modules/i-ring (Depends-on): Add verify.
55643         (License): Change to LGPL.
55644
55645 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55648         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55649         and inttostr.h.  Use snprintf rather than uinttostr, so that
55650         LGPLed code doesn't depend on GPLed.
55651
55652 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55653
55654         * modules/inline (License): Change from GPL to LGPL.
55655
55656 2006-11-17  Jim Meyering  <jim@meyering.net>
55657
55658         * modules/d-type (License): Switch to LGPL.
55659
55660 2006-11-15  Bruno Haible  <bruno@clisp.org>
55661
55662         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55663
55664 2006-11-15  Eric Blake  <ebb9@byu.net>
55665
55666         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55667         the module dependency.
55668
55669 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55670             Bruno Haible  <bruno@clisp.org>
55671
55672         * gnulib-tool (func_create_testdir): Add license consistency check.
55673
55674 2006-11-15  Eric Blake  <ebb9@byu.net>
55675
55676         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55677         random "(cached)" in configure output.
55678
55679 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55680
55681         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55682         test for conforming inttypes.h is both announced and cached.
55683
55684         * MODULES.html.sh (seen_modules, seen_files): New variables.
55685         (func_module): Rewrite to use a few less gnulib-tool and sed
55686         invocations.  Avoid a couple of quadratic algorithms for ...
55687         (missed_modules, missed_files): ... these, with ...
55688         (func_append, func_tmpdir): ... these new functions, from
55689         gnulib-tool.  Analogously, install traps for cleanup.
55690
55691         * tests/test-gc.c (main): Remove unused variables.
55692         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55693
55694 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55695
55696         * modules/inttostr (License): Change to LGPL.
55697
55698 2006-11-14  Eric Blake  <ebb9@byu.net>
55699
55700         * modules/tempname (License): Change to LGPL.
55701
55702 2006-11-14  Eric Blake  <ebb9@byu.net>
55703
55704         * doc/functions.texi (Function Portability): *printf functions on
55705         Cygwin now understand all POSIX size specifiers.
55706
55707 2006-11-14  Bruno Haible  <bruno@clisp.org>
55708
55709         * modules/c-ctype (License): Change to LGPL.
55710
55711 2006-11-12  Bruno Haible  <bruno@clisp.org>
55712
55713         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55714         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55715         for GNOME libraries, for which the include files are installed in
55716         subdirectories of $prefix/include.
55717
55718 2006-11-12  Bruno Haible  <bruno@clisp.org>
55719
55720         * m4/lib-link.m4: Require at least autoconf-2.54.
55721         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55722         name to underscores for the --with option.
55723
55724 2006-11-13  Bruno Haible  <bruno@clisp.org>
55725
55726         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55727         the tests directory.
55728         Reported by Ralf Wildenhues.
55729
55730 2006-11-13  Bruno Haible  <bruno@clisp.org>
55731
55732         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55733         (func_emit_initmacro_end): Undo the override here.
55734         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55735         Works around the famous automake error in coreutils.
55736
55737 2006-11-13  Eric Blake  <ebb9@byu.net>
55738
55739         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55740         element, not its node.
55741
55742 2006-11-12  Bruno Haible  <bruno@clisp.org>
55743
55744         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55745         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55746
55747 2006-11-12  Bruno Haible  <bruno@clisp.org>
55748
55749         * gnulib-tool: New option --local-symlink.
55750         (func_usage): Document it.
55751         (lsymbolic): New variable.
55752         (func_import, func_create_testdir): If --symlink was not specified,
55753         test whether --local-symlink was specified and the file comes from
55754         the local_gnulib_dir.
55755
55756 2006-11-12  Bruno Haible  <bruno@clisp.org>
55757
55758         * gnulib-tool (func_ln): New function.
55759         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55760
55761 2006-11-12  Bruno Haible  <bruno@clisp.org>
55762
55763         Finish support for source files in subdirectories.
55764         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55765         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55766         AUTOMAKE_OPTIONS.
55767         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55768
55769 2006-11-12  Bruno Haible  <bruno@clisp.org>
55770
55771         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55772         EXTRA_lib_SOURCES augmentation.
55773         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55774
55775 2006-11-12  Jim Meyering  <jim@meyering.net>
55776
55777         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55778         file descriptors.  This also averts a failure on systems with
55779         native openat support when a traversed directory lacks "x" access.
55780         * lib/fts_.h: Include "i-ring.h"
55781         (struct FTS) [fts_fd_ring]: New member.
55782         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55783         (FCHDIR): Add parentheses.
55784         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55785         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55786         When descending, rather than simply closing the previous
55787         fts_cwd_fd value, push that file descriptor onto the ring.
55788         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55789         (fts_open): Initialize the new fd_ring member.
55790         (fts_close): Clear the ring.
55791         (fts_safe_changedir): When possible, use our new fd_ring to skip
55792         the diropen and fstat and dev/ino comparison that would normally
55793         accompany a virtual `chdir ("..")'.
55794
55795         * modules/fts (Depends-on): Add i-ring.
55796         * modules/i-ring: New module.
55797         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55798         * m4/i-ring.m4: New file.
55799
55800 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55801
55802         * gnulib-tool (func_create_testdir): Fix replacement of
55803         `build-aux' in configure.ac.  Run autotools in gltests
55804         subdirectory.
55805         (func_create_testdir, func_create_megatestdir, test): There is
55806         no need for '--force' in most autotool invocations in a new
55807         tree.  Actually fail the whole test if any of the tools, or the
55808         configure or make stages fail.
55809
55810         Sync from Automake.
55811         * build-aux/gnupload: Revert last change.  Add pointer to upload
55812         instructions of the GNU Maintenance Instructions.
55813         Suggestion by Karl Berry.
55814
55815 2006-11-10  Jim Meyering  <jim@meyering.net>
55816
55817         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55818
55819 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55820
55821         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55822         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55823         (bind_textdomain_codeset) [! ENABLE_NLS]:
55824         Evaluate all the arguments.  That way, callers get compatible behavior
55825         if the arguments have side effects.  Also, it avoids some GCC
55826         diagnostics in some cases; Joel E. Denny reported problems when Bison
55827         was configured with --enable-gcc-warnigs.
55828
55829 2006-11-10  Jim Meyering  <jim@meyering.net>
55830
55831         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55832         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55833         account.
55834
55835 2006-11-10  Jim Meyering  <jim@meyering.net>
55836
55837         * modules/inline: New file/module.
55838         * modules/xalloc (Files): Remove m4/inline.m4.
55839         (Depends-on): Add inline, instead.
55840         * modules/oset: Likewise.
55841         * modules/list: Likewise.
55842
55843 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55844
55845         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55846         Problem reported by Matthew Woehlke.
55847
55848 2006-11-09  Bruno Haible  <bruno@clisp.org>
55849
55850         * lib/tempname.c (gen_tempname): Remove variant that invokes
55851         __gen_tempname.
55852         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55853         __gen_tempname.
55854
55855 2006-11-08  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55858         to 'yes' instead of 'cross-compiling'.
55859
55860 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55861
55862         * lib/quotearg.h (quotearg_free): New decl.
55863         * lib/quotearg.c (quotearg_free): New function.
55864         (slot0, nslots, slotvec0, slotvec):
55865         Now file-scope so that quotearg_free can get at them.
55866
55867 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55868
55869         Sync from Automake.
55870         * build-aux/gnupload: Add missing 'gnu' to example URL.
55871         Report by Karl Berry.
55872
55873 2006-11-08  Bruno Haible  <bruno@clisp.org>
55874
55875         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55876         Suggested by Paul Eggert.
55877
55878 2006-11-08  Jim Meyering  <jim@meyering.net>
55879
55880         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55881         It's already included if !_LIBC.
55882         (fts_safe_changedir): Add a comment.
55883
55884 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55885
55886         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55887         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55888         Matthew Woehlke.
55889
55890         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55891         definitions up, to avoid colliding with change below.
55892         (static_inline) [HAVE_INLINE]: New macro.
55893         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55894         Provide extern decls when !HAVE_INLINE.  Do not define unless
55895         static_inline is defined, either by us or by xmalloc.c.  Use
55896         static_inline rather than static inline.
55897         (XCALLOC): Optimize sizeof(T) = 1 case.
55898         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55899
55900 2006-11-07  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55903         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55904         AC_C_INLINE.
55905         * modules/xalloc (Files): Add m4/inline.m4.
55906
55907 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55908
55909         * README: Fix typo.
55910         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55911         (Miscellanous Notes): ...from this.
55912
55913 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55914
55915         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55916         Mention that offsetof should be used instead of sizeof.
55917         From Bruno Haible.
55918
55919 2006-11-07  Bruno Haible  <bruno@clisp.org>
55920
55921         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55922
55923 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55924
55925         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55926         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55927         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55928         (gl_tree_add_before, gl_tree_add_after):
55929         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55930         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55931         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55932         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55933         (gl_linked_add_after, gl_linked_add_at): Likewise.
55934         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55935         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55936         (gl_tree_add_before, gl_tree_add_after): Likewise.
55937         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55938         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55939         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55940
55941 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55942
55943         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55944
55945 2006-11-06  Bruno Haible  <bruno@clisp.org>
55946
55947         * m4/inline.m4: New file.
55948         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55949         * modules/list (Files): Add m4/inline.m4.
55950         * modules/oset (Files): Likewise.
55951
55952 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55953
55954         * lib/idcache.c: Include <stddef.h>, for offsetof.
55955         (struct userid.name): Change from char * to a flexible array member.
55956         All uses changed.
55957         * modules/idcache (Depends-on): Add flexmember.
55958
55959         * MODULES.html.sh (Core language properties): New module flexmember.
55960         * modules/flexmember, m4/flexmember.m4: New files.
55961
55962         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55963         inline functions that are identical with the old xnmalloc_inline,
55964         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55965         that we can avoid some unnecessary integer multiplications and
55966         divisions in the common case where the element size is known at
55967         compile time.
55968         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55969         needed.
55970         (xnboundedmalloc): Remove.
55971         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55972         arguments, for consistency with rest of this header.
55973         (xcharalloc): Rewrite using XNMALLOC.
55974         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55975         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55976         versions have been moved to lib/xalloc.h and renamed to be the
55977         non-*_inline versions.
55978         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55979         and xnrealloc functions, since those functions are now inline and
55980         now call us.
55981         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55982         renaming described above.
55983         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55984         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55985         captures the dependency in AC_C_INLINE.
55986
55987         New module canonicalize-lgpl, proposed by Charles Wilson in
55988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55989         with a few small changes afterwards.
55990         * MODULES.html.sh (File system functions): New module
55991         canonicalize-lgpl.
55992         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55993         and canonicalize_file_name.
55994         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55995         * modules/canonicalize-lgpl: New files.
55996
55997 2006-11-05  Bruno Haible  <bruno@clisp.org>
55998
55999         * gnulib-tool (func_import, func_create_testdir): Create directories
56000         also for files in subdirectories of lib/.
56001
56002 2006-11-05  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
56005         ANSI C compliant.
56006
56007 2006-11-03  Bruno Haible  <bruno@clisp.org>
56008
56009         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
56010         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
56011         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
56012         (xnboundedmalloc): New inline function.
56013         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
56014         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
56015         xmalloc.
56016         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
56017         xmalloc.
56018         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
56019         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
56020         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
56021         xmalloc.
56022         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56023         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
56024         xmalloc.
56025         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
56026         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56027         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
56028         xmalloc.
56029         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
56030         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
56031         gl_tree_add_after): Use XMALLOC instead of xmalloc.
56032         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
56033         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
56034         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
56035         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
56036
56037 2006-11-03  Bruno Haible  <bruno@clisp.org>
56038
56039         * lib/c-ctype.h [C++]: Define functions without name mangling.
56040         * lib/fwriteerror.h [C++]: Likewise.
56041         * lib/gcd.h [C++]: Likewise.
56042         * lib/linebreak.h [C++]: Likewise.
56043
56044 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
56045
56046         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
56047         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
56048         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
56049         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
56050         Check for functions and headers just once.
56051         Check for declaration of canonicalize_file_name.
56052         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
56053
56054 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56055
56056         * gnulib-tool (func_import): Fix typo in actioncmd.
56057
56058 2006-11-02  Bruno Haible  <bruno@clisp.org>
56059
56060         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56061         newline sequence in the Makefile.am snippet as a space, like "make"
56062         does.
56063         Reported by Roger Persson <perrog@gmail.com>.
56064
56065 2006-11-01  Bruno Haible  <bruno@clisp.org>
56066
56067         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56068         already declared in <string.h>.
56069         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56070
56071 2006-11-01  Bruno Haible  <bruno@clisp.org>
56072
56073         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56074         * lib/strcase.h: Include <string.h>.
56075         (strcasecmp): Define to rpl_strcasecmp here.
56076
56077 2006-11-01  Bruno Haible  <bruno@clisp.org>
56078
56079         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56080
56081 2006-11-01  Eric Blake  <ebb9@byu.net>
56082
56083         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56084
56085         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56086
56087 2006-10-29  Bruno Haible  <bruno@clisp.org>
56088
56089         Make it compile in C++ mode.
56090         * lib/full-write.c (full_rw): Add a cast.
56091
56092 2006-11-01  Bruno Haible  <bruno@clisp.org>
56093
56094         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56095         be POSIX compliant.
56096         Reported by Roger Persson <perrog@gmail.com>.
56097
56098 2006-11-01  Eric Blake  <ebb9@byu.net>
56099
56100         * lib/getopt_.h: Fix comments.
56101
56102 2006-10-31  Eric Blake  <ebb9@byu.net>
56103
56104         * modules/tmpdir (Depends-on): Add sys_stat.
56105         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56106         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56107         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56108         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56109         tempname.
56110
56111 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56112
56113         Avoid some C++ diagnostics reported by Bruno Haible.
56114         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56115         xmalloc.
56116         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56117         (struct slotvec): Move to top level.
56118         (quotearg_n_options): Rewrite to avoid xmalloc.
56119         * lib/xalloc.h (xcharalloc): New function.
56120         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56121         [defined __cplusplus]: Add function template that provides result
56122         type propagation.  This part of the change is from Bruno Haible.
56123
56124 2006-10-29  Bruno Haible  <bruno@clisp.org>
56125
56126         Make it compile in C++ mode.
56127         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56128         * lib/strnlen1.c (strnlen1): Cast memchr result.
56129         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56130         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56131         (create_temp_dir): Rename local variable 'template'.
56132         (compile_csharp_using_sscli): Add cast.
56133         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56134         * lib/findprog.c (find_in_path): Likewise.
56135         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56136         * lib/wait-process.c (register_slave_subprocess): Likewise.
56137
56138 2006-10-22  Bruno Haible  <bruno@clisp.org>
56139
56140         * modules/tsearch: New file.
56141         * lib/tsearch.h: New file.
56142         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56143         * m4/tsearch.m4: New file.
56144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56145
56146 2006-10-29  Eric Blake  <ebb9@byu.net>
56147
56148         * lib/arcfour.c: Assume config.h.
56149         * lib/arctwo.c: Likewise.
56150         * lib/base64.c: Likewise.
56151         * lib/check-version.c: Likewise.
56152         * lib/crc.c: Likewise.
56153         * lib/des.c: Likewise.
56154         * lib/gc-gnulib.c: Likewise.
56155         * lib/gc-libgcrypt.c: Likewise.
56156         * lib/gc-pbkdf2-sha1.c: Likewise.
56157         * lib/getaddrinfo.c: Likewise.
56158         * lib/getdelim.c: Likewise.
56159         * lib/getline.c: Likewise.
56160         * lib/hmac-md5.c: Likewise.
56161         * lib/hmac-sha1.c: Likewise.
56162         * lib/iconvme.c: Likewise.
56163         * lib/md2.c: Likewise.
56164         * lib/md4.c: Likewise.
56165         * lib/memxor.c: Likewise.
56166         * lib/read-file.c: Likewise.
56167         * lib/readline.c: Likewise.
56168         * lib/rijndael-alg-fst.c: Likewise.
56169         * lib/rijndael-api-fst.c: Likewise.
56170         * lib/xgetdomainname.c: Likewise.
56171
56172 2006-10-28  Eric Blake  <ebb9@byu.net>
56173
56174         * lib/xstrndup.c: Assume config.h.
56175
56176 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56177
56178         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56179         stat-macros.h is now for our own macros, whereas stat_h is for
56180         macros in the <sys/stat.h> name space.
56181         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56182         (STAT_MACROS_H): Remove.
56183         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56184         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56185         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56186         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56187         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56188         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56189         Move these macros to ...
56190         * lib/stat_.h: here.  Don't include stat-macros.h.
56191         * lib/canonicalize.c: Don't include stat-macros.h.
56192         * lib/chown.c: Likewise.
56193         * lib/euidaccess.c: Likewise.
56194         * lib/file-type.c: Likewise.
56195         * lib/filemode.c: Likewise.
56196         * lib/glob.c: Likewise.
56197         * lib/isapipe.c: Likewise.
56198         * lib/lchown.c: Likewise.
56199         * lib/lstat.c: Likewise.
56200         * lib/mkdir-p.c: Likewise.
56201         * lib/rmdir.c: Likewise.
56202         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56203         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56204         unless mkdir isn't declared, to speed up 'configure'.
56205         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56206         would define all the S_* symbols.
56207         * modules/canonicalize (Depends-on):
56208         Depend on sys_stat, not stat-macros.
56209         * modules/chown: Likewise.
56210         * modules/euidaccess: Likewise.
56211         * modules/filemode: Likewise.
56212         * modules/file-type: Likewise.
56213         * modules/glob: Likewise.
56214         * modules/isapipe: Likewise.
56215         * modules/lchown: Likewise.
56216         * modules/lstat: Likewise.
56217         * modules/mkancesdirs: Likewise.
56218         * modules/rmdir: Likewise.
56219         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56220         * modules/modechange: Likewise.
56221         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56222         (configure.ac): Remove gl_STAT_MACROS.
56223         * modules/sys_stat (Depends-on): Remove stat-macros.
56224
56225 2006-10-27  Bruno Haible  <bruno@clisp.org>
56226
56227         * m4/signed.m4: Remove file.
56228         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56229         invocation.
56230         * modules/vasnprintf (Files): Remove m4/signed.m4.
56231
56232 2006-10-27  Bruno Haible  <bruno@clisp.org>
56233
56234         Update to GNU gettext 0.16.
56235         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56236         m4/inttypes-h.m4, m4/signed.m4.
56237         * m4/gettext.m4: Update to GNU gettext 0.16.
56238         * m4/intl.m4: New file, from GNU gettext.
56239         * m4/intldir.m4: New file, from GNU gettext.
56240         * config/srclist.txt: Update
56241
56242 2006-10-27  Eric Blake  <ebb9@byu.net>
56243
56244         * MODULES.html.sh: Document tempname.
56245         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56246         dependencies.
56247         (Files): Move lib/tempname.c...
56248         * modules/tempname: ...to this new module.
56249         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56250         (gl_PREREQ_TEMPNAME): Move...
56251         * m4/tempname.m4: ...to this new file.
56252         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56253         * modules/sys_stat (Depends-on): Add stat-macros.
56254         * lib/stat_.h (includes): Pick up stat macros.
56255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56256         if stat macros are broken.
56257         * lib/tempname.c (includes): No need to include "stat-macros.h".
56258         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56259         (direxists, __path_search) [!_LIBC]: Don't compile these in
56260         gnulib; the tmpdir module covers that.
56261         * lib/tempname.h: New file.
56262
56263 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56264
56265         * COPYING: Explain how gnulib-tool converts licence headers.
56266         Almost all wording by Eric Blake.
56267
56268 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56269
56270         * lib/mbchar.h (is_basic_table): Make read-only.
56271         * lib/mbchar.c (is_basic_table): Likewise.
56272         Reported by John Darrington.
56273
56274 2006-10-25  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/progname.h (set_program_name): Undefine before defining.
56277
56278 2006-10-25  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56281         false for non-gcc C++ compilers.
56282         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56283
56284 2006-10-24  Bruno Haible  <bruno@clisp.org>
56285
56286         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56287         iconv implementations like Irix iconv.
56288
56289 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56290
56291         * modules/vararrays: New file.
56292         * m4/vararrays.m4: New file, taken from diffutils.
56293         * MODULES.html.sh: New module vararrays.
56294
56295 2006-10-24  Karl Berry  <karl@gnu.org>
56296
56297         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56298         Don't call GNU Unix.
56299
56300 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56301
56302         * users.txt: Add Libtool.
56303
56304         Sync from Libtool:
56305
56306         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56307
56308         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56309         to gnulib's policy of including config.h unconditionally.
56310
56311 2006-10-24  Bruno Haible  <bruno@clisp.org>
56312
56313         * modules/wcwidth (Files): Add m4/wint_t.m4.
56314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56315         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56316
56317 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56318
56319         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56320         to pacify GCC with some -W flags enabled.  Problem reported by
56321         Bruno Haible.
56322
56323 2006-10-24  Jim Meyering  <jim@meyering.net>
56324
56325         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56326         Reported by Karl Berry.
56327
56328 2006-10-23  Bruno Haible  <bruno@clisp.org>
56329
56330         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56331
56332 2006-10-24  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/gl_list.h: Use C comment style, not C++ comment style.
56335
56336 2006-10-23  Eric Blake  <ebb9@byu.net>
56337
56338         * lib/getaddrinfo.c (includes): Add missing include.
56339
56340 2006-10-23  Bruno Haible  <bruno@clisp.org>
56341             Paul Eggert  <eggert@cs.ucla.edu>
56342
56343         Ability to rename obstack_free.
56344         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56345         obstack_free.
56346         (obstack_free): Invoke the __obstack_free macro.
56347         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56348
56349 2006-10-23  Bruno Haible  <bruno@clisp.org>
56350             Paul Eggert  <eggert@cs.ucla.edu>
56351
56352         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56353         __argc, __argv from the declaration. (They are defined as macros on
56354         mingw.)
56355
56356 2006-10-22  Bruno Haible  <bruno@clisp.org>
56357
56358         * doc/gnulib-intro.texi: New file.
56359         * doc/gnulib.texi: Include it.
56360
56361 2006-10-21  Bruno Haible  <bruno@clisp.org>
56362
56363         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56364         "Introduction", "Miscellanous Notes", "Particular Modules".
56365
56366 2006-10-21  Bruno Haible  <bruno@clisp.org>
56367
56368         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56369         Change mostlyclean-local rule to avoid sh syntax error from bash
56370         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56371
56372 2006-10-23  Jim Meyering  <jim@meyering.net>
56373
56374         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56375         in place of snprintf.
56376
56377         * modules/inttostr (Files): Add lib/uinttostr.c.
56378         * lib/uinttostr.c (inttostr): New file/function.
56379         * lib/inttostr.h (uinttostr): Declare.
56380         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56381         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56382         Add uinttostr.
56383         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56384
56385 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56386
56387         * lib/canonicalize.c (ELOOP): Define if not already defined.
56388         Problem reported by Bruno Haible in
56389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56390
56391 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56392
56393         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56394         Problem reported by Perry Smith and Ville Laurikari.
56395
56396         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56397         uses.
56398
56399 2006-10-19  Bruno Haible  <bruno@clisp.org>
56400
56401         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56402         for mingw.
56403
56404 2006-10-19  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56407         Needed for mingw.
56408
56409 2006-10-19  Bruno Haible  <bruno@clisp.org>
56410
56411         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56412
56413 2006-10-19  Bruno Haible  <bruno@clisp.org>
56414
56415         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56416         it.
56417
56418 2006-10-19  Bruno Haible  <bruno@clisp.org>
56419
56420         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56421         invocation.
56422
56423 2006-10-19  Bruno Haible  <bruno@clisp.org>
56424
56425         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56426         mountlist by default.
56427
56428 2006-10-16  Bruno Haible  <bruno@clisp.org>
56429
56430         * lib/c-strstr.c: Include c-strstr.h.
56431
56432 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56433
56434         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56435         in a slash.
56436
56437 2006-10-18  Bruno Haible  <bruno@clisp.org>
56438
56439         * lib/lock.h [C++]: Wrap definitions in extern "C".
56440
56441 2006-10-18  Bruno Haible  <bruno@clisp.org>
56442
56443         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56444         gl_LIBOBJS list.
56445
56446 2006-10-18  Bruno Haible  <bruno@clisp.org>
56447
56448         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56449
56450 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56451
56452         * lib/xstrtol.h: Include gettext.h.
56453         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56454         Problem reported by Eric Blake.
56455         * modules/xstrtol (Depends-on): Add gettext-h.
56456
56457 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56458
56459         * lib/strftime.c (advance): New macro.
56460         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56461         incomplete type, so you can't add 0 to it.  Problem and patch
56462         reported by Eelco Dolstra for dietlibc.
56463
56464 2006-10-18  Jim Meyering  <jim@meyering.net>
56465
56466         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56467         type for a local, and rename it: s/up/user_proc/.
56468
56469 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56470
56471         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56472         READ_UTMP_USER_PROCESS.
56473         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56474
56475 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56476
56477         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56478         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56479
56480 2006-10-17  Eric Blake  <ebb9@byu.net>
56481
56482         * lib/sigprocmask.c (sigprocmask): Fix typo.
56483
56484         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56485
56486         * modules/clean-temp (Makefile.am): Don't add to make output...
56487         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56488         config.h.
56489
56490 2006-10-17  Bruno Haible  <bruno@clisp.org>
56491
56492         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56493         differently if DEFAULT_TEXT_DOMAIN is set.
56494
56495 2006-10-16  Bruno Haible  <bruno@clisp.org>
56496
56497         * lib/clean-temp.c: Include fwriteerror.h.
56498
56499 2006-10-16  Bruno Haible  <bruno@clisp.org>
56500
56501         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56502
56503 2006-10-16  Bruno Haible  <bruno@clisp.org>
56504
56505         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56506         * lib/sigprocmask.h: Include <sys/types.h>.
56507         (sigset_t): Use the system's definition if present.
56508
56509 2006-10-17  Eric Blake  <ebb9@byu.net>
56510
56511         * lib/xvasprintf.c (includes): Assume config.h.
56512         * lib/xasprintf.c (includes): Likewise.
56513
56514 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56515
56516         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56517         at least as wide as intmax_t.
56518
56519 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56520
56521         (Imported from Automake.)
56522         * build-aux/gnupload: Update to version 1.1 of directive file.
56523
56524 2006-10-16  Eric Blake  <ebb9@byu.net>
56525
56526         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56527         match Automake 1.10a.
56528
56529 2006-10-14  Bruno Haible  <bruno@clisp.org>
56530
56531         * modules/sigprocmask: New file.
56532         * lib/sigprocmask.h: New file.
56533         * lib/sigprocmask.c: New file.
56534         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56535         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56536         request sigprocmask.o.
56537         (gl_PREREQ_SIGPROCMASK): New macro.
56538         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56539         (Depends-on): Add sigprocmask.
56540         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56541         gt_SIGNALBLOCKING. Test for 'raise' only once.
56542         * lib/fatal-signal.c: Include sigprocmask.h.
56543         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56544         unblock_fatal_signals): Define always.
56545         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56546         sigprocmask.
56547
56548 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56549
56550         Sync from Automake.
56551         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56552         which incorrectly sets the mode of an existing destination
56553         directory.  In some cases the unpatched install-sh could do the
56554         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56555         system.  We hope this is rare in practice, but it's clearly worth
56556         fixing.  Problem reported by Alex Unleashed in
56557         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56558         Also, don't bother to check for -m bugs unless we're using -m;
56559         suggested by Stepan Kasal.
56560
56561 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56562
56563         Sync from Automake.
56564         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56565         `-c' flag, so they appear at the same position as in %FASTDEP%
56566         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56567         which ignores unknown options only after the first non-option.
56568         Bug report against M4 by Nelson H. F. Beebe.
56569
56570 2006-10-13  Jim Meyering  <jim@meyering.net>
56571
56572         Fix a bug in yesterday's change.
56573         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56574         p->fts_statp->st_dev would be used uninitialized.
56575         Ensures that we always call fts_stat on the very first entry.
56576         Miklos Szeredi reported that find -xdev stopped working.
56577
56578 2006-10-12  Bruno Haible  <bruno@clisp.org>
56579
56580         * gnulib-tool (func_get_automake_snippet): Append an automatically
56581         computed EXTRA_DIST augmentation.
56582         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56583         * modules/alloca-opt (Makefile.am): Likewise.
56584         * modules/allocsa (Makefile.am): Likewise.
56585         * modules/arcfour (Makefile.am): Likewise.
56586         * modules/arctwo (Makefile.am): Likewise.
56587         * modules/argmatch (Makefile.am): Likewise.
56588         * modules/argz (Makefile.am): Likewise.
56589         * modules/atexit (Makefile.am): Likewise.
56590         * modules/backupfile (Makefile.am): Likewise.
56591         * modules/byteswap (Makefile.am): Likewise.
56592         * modules/c-strtod (Makefile.am): Likewise.
56593         * modules/c-strtold (Makefile.am): Likewise.
56594         * modules/calloc (Makefile.am): Likewise.
56595         * modules/canon-host (Makefile.am): Likewise.
56596         * modules/canonicalize (Makefile.am): Likewise.
56597         * modules/chdir-long (Makefile.am): Likewise.
56598         * modules/chdir-safer (Makefile.am): Likewise.
56599         * modules/check-version (Makefile.am): Likewise.
56600         * modules/chown (Makefile.am): Likewise.
56601         * modules/cloexec (Makefile.am): Likewise.
56602         * modules/close-stream (Makefile.am): Likewise.
56603         * modules/closeout (Makefile.am): Likewise.
56604         * modules/crc (Makefile.am): Likewise.
56605         * modules/csharpexec (Makefile.am): Likewise.
56606         * modules/cycle-check (Makefile.am): Likewise.
56607         * modules/des (Makefile.am): Likewise.
56608         * modules/dev-ino (Makefile.am): Likewise.
56609         * modules/dirfd (Makefile.am): Likewise.
56610         * modules/dirname (Makefile.am): Likewise.
56611         * modules/dup2 (Makefile.am): Likewise.
56612         * modules/eealloc (Makefile.am): Likewise.
56613         * modules/error (Makefile.am): Likewise.
56614         * modules/euidaccess (Makefile.am): Likewise.
56615         * modules/exclude (Makefile.am): Likewise.
56616         * modules/exitfail (Makefile.am): Likewise.
56617         * modules/fcntl-safer (Makefile.am): Likewise.
56618         * modules/fcntl (Makefile.am): Likewise.
56619         * modules/file-type (Makefile.am): Likewise.
56620         * modules/fileblocks (Makefile.am): Likewise.
56621         * modules/filemode (Makefile.am): Likewise.
56622         * modules/filenamecat (Makefile.am): Likewise.
56623         * modules/fnmatch (Makefile.am): Likewise.
56624         * modules/fopen-safer (Makefile.am): Likewise.
56625         * modules/fpending (Makefile.am): Likewise.
56626         * modules/fprintftime (Makefile.am): Likewise.
56627         * modules/free (Makefile.am): Likewise.
56628         * modules/fsusage (Makefile.am): Likewise.
56629         * modules/ftruncate (Makefile.am): Likewise.
56630         * modules/fts (Makefile.am): Likewise.
56631         * modules/gc-arcfour (Makefile.am): Likewise.
56632         * modules/gc-des (Makefile.am): Likewise.
56633         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56634         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56635         * modules/gc-md4 (Makefile.am): Likewise.
56636         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56637         * modules/gc-sha1 (Makefile.am): Likewise.
56638         * modules/gc (Makefile.am): Likewise.
56639         * modules/getaddrinfo (Makefile.am): Likewise.
56640         * modules/getcwd (Makefile.am): Likewise.
56641         * modules/getdelim (Makefile.am): Likewise.
56642         * modules/getdomainname (Makefile.am): Likewise.
56643         * modules/getgroups (Makefile.am): Likewise.
56644         * modules/gethostname (Makefile.am): Likewise.
56645         * modules/gethrxtime (Makefile.am): Likewise.
56646         * modules/getline (Makefile.am): Likewise.
56647         * modules/getloadavg (Makefile.am): Likewise.
56648         * modules/getlogin_r (Makefile.am): Likewise.
56649         * modules/getndelim2 (Makefile.am): Likewise.
56650         * modules/getopt (Makefile.am): Likewise.
56651         * modules/getpagesize (Makefile.am): Likewise.
56652         * modules/getpass-gnu (Makefile.am): Likewise.
56653         * modules/getpass (Makefile.am): Likewise.
56654         * modules/getsubopt (Makefile.am): Likewise.
56655         * modules/gettime (Makefile.am): Likewise.
56656         * modules/gettimeofday (Makefile.am): Likewise.
56657         * modules/getugroups (Makefile.am): Likewise.
56658         * modules/getusershell (Makefile.am): Likewise.
56659         * modules/glob (Makefile.am): Likewise.
56660         * modules/group-member (Makefile.am): Likewise.
56661         * modules/hard-locale (Makefile.am): Likewise.
56662         * modules/hash (Makefile.am): Likewise.
56663         * modules/hmac-md5 (Makefile.am): Likewise.
56664         * modules/hmac-sha1 (Makefile.am): Likewise.
56665         * modules/human (Makefile.am): Likewise.
56666         * modules/idcache (Makefile.am): Likewise.
56667         * modules/imaxabs (Makefile.am): Likewise.
56668         * modules/imaxdiv (Makefile.am): Likewise.
56669         * modules/inet_ntop (Makefile.am): Likewise.
56670         * modules/inet_pton (Makefile.am): Likewise.
56671         * modules/intprops (Makefile.am): Likewise.
56672         * modules/inttostr (Makefile.am): Likewise.
56673         * modules/inttypes (Makefile.am): Likewise.
56674         * modules/isapipe (Makefile.am): Likewise.
56675         * modules/javaversion (Makefile.am): Likewise.
56676         * modules/lchmod (Makefile.am): Likewise.
56677         * modules/lchown (Makefile.am): Likewise.
56678         * modules/localcharset (Makefile.am): Likewise.
56679         * modules/long-options (Makefile.am): Likewise.
56680         * modules/lstat (Makefile.am): Likewise.
56681         * modules/malloc (Makefile.am): Likewise.
56682         * modules/mathl (Makefile.am): Likewise.
56683         * modules/mbchar (Makefile.am): Likewise.
56684         * modules/md2 (Makefile.am): Likewise.
56685         * modules/md4 (Makefile.am): Likewise.
56686         * modules/md5 (Makefile.am): Likewise.
56687         * modules/memcasecmp (Makefile.am): Likewise.
56688         * modules/memchr (Makefile.am): Likewise.
56689         * modules/memcmp (Makefile.am): Likewise.
56690         * modules/memcoll (Makefile.am): Likewise.
56691         * modules/memcpy (Makefile.am): Likewise.
56692         * modules/memmem (Makefile.am): Likewise.
56693         * modules/memmove (Makefile.am): Likewise.
56694         * modules/mempcpy (Makefile.am): Likewise.
56695         * modules/memrchr (Makefile.am): Likewise.
56696         * modules/memset (Makefile.am): Likewise.
56697         * modules/memxor (Makefile.am): Likewise.
56698         * modules/mkancesdirs (Makefile.am): Likewise.
56699         * modules/mkdir-p (Makefile.am): Likewise.
56700         * modules/mkdir (Makefile.am): Likewise.
56701         * modules/mkdtemp (Makefile.am): Likewise.
56702         * modules/mkstemp (Makefile.am): Likewise.
56703         * modules/mktime (Makefile.am): Likewise.
56704         * modules/modechange (Makefile.am): Likewise.
56705         * modules/mountlist (Makefile.am): Likewise.
56706         * modules/nanosleep (Makefile.am): Likewise.
56707         * modules/obstack (Makefile.am): Likewise.
56708         * modules/openat (Makefile.am): Likewise.
56709         * modules/pagealign_alloc (Makefile.am): Likewise.
56710         * modules/pathmax (Makefile.am): Likewise.
56711         * modules/physmem (Makefile.am): Likewise.
56712         * modules/poll (Makefile.am): Likewise.
56713         * modules/posixtm (Makefile.am): Likewise.
56714         * modules/posixver (Makefile.am): Likewise.
56715         * modules/putenv (Makefile.am): Likewise.
56716         * modules/quote (Makefile.am): Likewise.
56717         * modules/quotearg (Makefile.am): Likewise.
56718         * modules/raise (Makefile.am): Likewise.
56719         * modules/read-file (Makefile.am): Likewise.
56720         * modules/readline (Makefile.am): Likewise.
56721         * modules/readlink (Makefile.am): Likewise.
56722         * modules/readtokens (Makefile.am): Likewise.
56723         * modules/readutmp (Makefile.am): Likewise.
56724         * modules/realloc (Makefile.am): Likewise.
56725         * modules/regex (Makefile.am): Likewise.
56726         * modules/rename-dest-slash (Makefile.am): Likewise.
56727         * modules/rename (Makefile.am): Likewise.
56728         * modules/rijndael (Makefile.am): Likewise.
56729         * modules/rmdir (Makefile.am): Likewise.
56730         * modules/rpmatch (Makefile.am): Likewise.
56731         * modules/safe-read (Makefile.am): Likewise.
56732         * modules/safe-write (Makefile.am): Likewise.
56733         * modules/same-inode (Makefile.am): Likewise.
56734         * modules/same (Makefile.am): Likewise.
56735         * modules/save-cwd (Makefile.am): Likewise.
56736         * modules/savedir (Makefile.am): Likewise.
56737         * modules/setenv (Makefile.am): Likewise.
56738         * modules/settime (Makefile.am): Likewise.
56739         * modules/sha1 (Makefile.am): Likewise.
56740         * modules/sig2str (Makefile.am): Likewise.
56741         * modules/snprintf (Makefile.am): Likewise.
56742         * modules/stat-macros (Makefile.am): Likewise.
56743         * modules/stat-time (Makefile.am): Likewise.
56744         * modules/stdbool (Makefile.am): Likewise.
56745         * modules/stdint (Makefile.am): Likewise.
56746         * modules/stdlib-safer (Makefile.am): Likewise.
56747         * modules/stpcpy (Makefile.am): Likewise.
56748         * modules/stpncpy (Makefile.am): Likewise.
56749         * modules/strcase (Makefile.am): Likewise.
56750         * modules/strcasestr (Makefile.am): Likewise.
56751         * modules/strchrnul (Makefile.am): Likewise.
56752         * modules/strcspn (Makefile.am): Likewise.
56753         * modules/strdup (Makefile.am): Likewise.
56754         * modules/strerror (Makefile.am): Likewise.
56755         * modules/strftime (Makefile.am): Likewise.
56756         * modules/strndup (Makefile.am): Likewise.
56757         * modules/strnlen (Makefile.am): Likewise.
56758         * modules/strpbrk (Makefile.am): Likewise.
56759         * modules/strsep (Makefile.am): Likewise.
56760         * modules/strstr (Makefile.am): Likewise.
56761         * modules/strtod (Makefile.am): Likewise.
56762         * modules/strtoimax (Makefile.am): Likewise.
56763         * modules/strtok_r (Makefile.am): Likewise.
56764         * modules/strtol (Makefile.am): Likewise.
56765         * modules/strtoll (Makefile.am): Likewise.
56766         * modules/strtoul (Makefile.am): Likewise.
56767         * modules/strtoull (Makefile.am): Likewise.
56768         * modules/strtoumax (Makefile.am): Likewise.
56769         * modules/strverscmp (Makefile.am): Likewise.
56770         * modules/sys_socket (Makefile.am): Likewise.
56771         * modules/sys_stat (Makefile.am): Likewise.
56772         * modules/sysexits (Makefile.am): Likewise.
56773         * modules/time_r (Makefile.am): Likewise.
56774         * modules/timegm (Makefile.am): Likewise.
56775         * modules/timespec (Makefile.am): Likewise.
56776         * modules/tmpfile-safer (Makefile.am): Likewise.
56777         * modules/trim (Makefile.am): Likewise.
56778         * modules/unistd-safer (Makefile.am): Likewise.
56779         * modules/unlinkdir (Makefile.am): Likewise.
56780         * modules/unlocked-io (Makefile.am): Likewise.
56781         * modules/userspec (Makefile.am): Likewise.
56782         * modules/utime (Makefile.am): Likewise.
56783         * modules/utimecmp (Makefile.am): Likewise.
56784         * modules/utimens (Makefile.am): Likewise.
56785         * modules/vasnprintf (Makefile.am): Likewise.
56786         * modules/vasprintf (Makefile.am): Likewise.
56787         * modules/vsnprintf (Makefile.am): Likewise.
56788         * modules/xalloc (Makefile.am): Likewise.
56789         * modules/xgetcwd (Makefile.am): Likewise.
56790         * modules/xnanosleep (Makefile.am): Likewise.
56791         * modules/xreadlink (Makefile.am): Likewise.
56792         * modules/xstrtod (Makefile.am): Likewise.
56793         * modules/xstrtol (Makefile.am): Likewise.
56794         * modules/xstrtold (Makefile.am): Likewise.
56795         * modules/yesno (Makefile.am): Likewise.
56796         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56797
56798 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56799
56800         * modules/error (Makefile.am): Distribute files through
56801         EXTRA_DIST, not lib_SOURCES.
56802
56803 2006-10-12  Eric Blake  <ebb9@byu.net>
56804
56805         * modules/error (Makefile.am): Distribute files in /lib.
56806         * modules/obstack (Makefile.am): Likewise.
56807
56808 2006-10-12  Bruno Haible  <bruno@clisp.org>
56809
56810         * modules/acl (Makefile.am): Distribute all files in lib/ through
56811         EXTRA_DIST.
56812         * modules/arcfour (Makefile.am): Likewise.
56813         * modules/arctwo (Makefile.am): Likewise.
56814         * modules/argmatch (Makefile.am): Likewise.
56815         * modules/argz (Makefile.am): Likewise.
56816         * modules/atexit (Makefile.am): Likewise.
56817         * modules/backupfile (Makefile.am): Likewise.
56818         * modules/c-strtod (Makefile.am): Likewise.
56819         * modules/c-strtold (Makefile.am): Likewise.
56820         * modules/calloc (Makefile.am): Likewise.
56821         * modules/canon-host (Makefile.am): Likewise.
56822         * modules/canonicalize (Makefile.am): Likewise.
56823         * modules/chdir-long (Makefile.am): Likewise.
56824         * modules/chdir-safer (Makefile.am): Likewise.
56825         * modules/check-version (Makefile.am): Likewise.
56826         * modules/chown (Makefile.am): Likewise.
56827         * modules/cloexec (Makefile.am): Likewise.
56828         * modules/close-stream (Makefile.am): Likewise.
56829         * modules/closeout (Makefile.am): Likewise.
56830         * modules/crc (Makefile.am): Likewise.
56831         * modules/cycle-check (Makefile.am): Likewise.
56832         * modules/des (Makefile.am): Likewise.
56833         * modules/dirfd (Makefile.am): Likewise.
56834         * modules/dirname (Makefile.am): Likewise.
56835         * modules/dup2 (Makefile.am): Likewise.
56836         * modules/euidaccess (Makefile.am): Likewise.
56837         * modules/exclude (Makefile.am): Likewise.
56838         * modules/exitfail (Makefile.am): Likewise.
56839         * modules/fcntl-safer (Makefile.am): Likewise.
56840         * modules/file-type (Makefile.am): Likewise.
56841         * modules/fileblocks (Makefile.am): Likewise.
56842         * modules/filemode (Makefile.am): Likewise.
56843         * modules/filenamecat (Makefile.am): Likewise.
56844         * modules/fnmatch (Makefile.am): Likewise.
56845         * modules/fopen-safer (Makefile.am): Likewise.
56846         * modules/fpending (Makefile.am): Likewise.
56847         * modules/fprintftime (Makefile.am): Likewise.
56848         * modules/free (Makefile.am): Likewise.
56849         * modules/fsusage (Makefile.am): Likewise.
56850         * modules/ftruncate (Makefile.am): Likewise.
56851         * modules/fts (Makefile.am): Likewise.
56852         * modules/gc (Makefile.am): Likewise.
56853         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56854         * modules/getaddrinfo (Makefile.am): Likewise.
56855         * modules/getcwd (Makefile.am): Likewise.
56856         * modules/getdelim (Makefile.am): Likewise.
56857         * modules/getdomainname (Makefile.am): Likewise.
56858         * modules/getgroups (Makefile.am): Likewise.
56859         * modules/gethostname (Makefile.am): Likewise.
56860         * modules/gethrxtime (Makefile.am): Likewise.
56861         * modules/getline (Makefile.am): Likewise.
56862         * modules/getloadavg (Makefile.am): Likewise.
56863         * modules/getlogin_r (Makefile.am): Likewise.
56864         * modules/getopt (Makefile.am): Likewise.
56865         * modules/getpass (Makefile.am): Likewise.
56866         * modules/getpass-gnu (Makefile.am): Likewise.
56867         * modules/getsubopt (Makefile.am): Likewise.
56868         * modules/gettime (Makefile.am): Likewise.
56869         * modules/gettimeofday (Makefile.am): Likewise.
56870         * modules/getugroups (Makefile.am): Likewise.
56871         * modules/getusershell (Makefile.am): Likewise.
56872         * modules/glob (Makefile.am): Likewise.
56873         * modules/group-member (Makefile.am): Likewise.
56874         * modules/hard-locale (Makefile.am): Likewise.
56875         * modules/hash (Makefile.am): Likewise.
56876         * modules/hmac-md5 (Makefile.am): Likewise.
56877         * modules/hmac-sha1 (Makefile.am): Likewise.
56878         * modules/human (Makefile.am): Likewise.
56879         * modules/idcache (Makefile.am): Likewise.
56880         * modules/imaxabs (Makefile.am): Likewise.
56881         * modules/imaxdiv (Makefile.am): Likewise.
56882         * modules/inet_ntop (Makefile.am): Likewise.
56883         * modules/inet_pton (Makefile.am): Likewise.
56884         * modules/inttostr (Makefile.am): Likewise.
56885         * modules/isapipe (Makefile.am): Likewise.
56886         * modules/lchown (Makefile.am): Likewise.
56887         * modules/long-options (Makefile.am): Likewise.
56888         * modules/lstat (Makefile.am): Likewise.
56889         * modules/malloc (Makefile.am): Likewise.
56890         * modules/mathl (Makefile.am): Likewise.
56891         * modules/mbchar (Makefile.am): Likewise.
56892         * modules/md2 (Makefile.am): Likewise.
56893         * modules/md4 (Makefile.am): Likewise.
56894         * modules/md5 (Makefile.am): Likewise.
56895         * modules/memcasecmp (Makefile.am): Likewise.
56896         * modules/memchr (Makefile.am): Likewise.
56897         * modules/memcmp (Makefile.am): Likewise.
56898         * modules/memcoll (Makefile.am): Likewise.
56899         * modules/memcpy (Makefile.am): Likewise.
56900         * modules/memmem (Makefile.am): Likewise.
56901         * modules/memmove (Makefile.am): Likewise.
56902         * modules/mempcpy (Makefile.am): Likewise.
56903         * modules/memrchr (Makefile.am): Likewise.
56904         * modules/memset (Makefile.am): Likewise.
56905         * modules/memxor (Makefile.am): Likewise.
56906         * modules/mkancesdirs (Makefile.am): Likewise.
56907         * modules/mkdir (Makefile.am): Likewise.
56908         * modules/mkdir-p (Makefile.am): Likewise.
56909         * modules/mkdtemp (Makefile.am): Likewise.
56910         * modules/mkstemp (Makefile.am): Likewise.
56911         * modules/mktime (Makefile.am): Likewise.
56912         * modules/modechange (Makefile.am): Likewise.
56913         * modules/mountlist (Makefile.am): Likewise.
56914         * modules/nanosleep (Makefile.am): Likewise.
56915         * modules/openat (Makefile.am): Likewise.
56916         * modules/pagealign_alloc (Makefile.am): Likewise.
56917         * modules/physmem (Makefile.am): Likewise.
56918         * modules/poll (Makefile.am): Likewise.
56919         * modules/posixtm (Makefile.am): Likewise.
56920         * modules/posixver (Makefile.am): Likewise.
56921         * modules/putenv (Makefile.am): Likewise.
56922         * modules/quote (Makefile.am): Likewise.
56923         * modules/quotearg (Makefile.am): Likewise.
56924         * modules/raise (Makefile.am): Likewise.
56925         * modules/read-file (Makefile.am): Likewise.
56926         * modules/readline (Makefile.am): Likewise.
56927         * modules/readlink (Makefile.am): Likewise.
56928         * modules/readtokens (Makefile.am): Likewise.
56929         * modules/readutmp (Makefile.am): Likewise.
56930         * modules/realloc (Makefile.am): Likewise.
56931         * modules/regex (Makefile.am): Likewise.
56932         * modules/rename (Makefile.am): Likewise.
56933         * modules/rename-dest-slash (Makefile.am): Likewise.
56934         * modules/rijndael (Makefile.am): Likewise.
56935         * modules/rmdir (Makefile.am): Likewise.
56936         * modules/rpmatch (Makefile.am): Likewise.
56937         * modules/safe-read (Makefile.am): Likewise.
56938         * modules/safe-write (Makefile.am): Likewise.
56939         * modules/same (Makefile.am): Likewise.
56940         * modules/save-cwd (Makefile.am): Likewise.
56941         * modules/savedir (Makefile.am): Likewise.
56942         * modules/setenv (Makefile.am): Likewise.
56943         * modules/settime (Makefile.am): Likewise.
56944         * modules/sha1 (Makefile.am): Likewise.
56945         * modules/sig2str (Makefile.am): Likewise.
56946         * modules/snprintf (Makefile.am): Likewise.
56947         * modules/stdlib-safer (Makefile.am): Likewise.
56948         * modules/stpcpy (Makefile.am): Likewise.
56949         * modules/stpncpy (Makefile.am): Likewise.
56950         * modules/strcase (Makefile.am): Likewise.
56951         * modules/strcasestr (Makefile.am): Likewise.
56952         * modules/strchrnul (Makefile.am): Likewise.
56953         * modules/strcspn (Makefile.am): Likewise.
56954         * modules/strdup (Makefile.am): Likewise.
56955         * modules/strerror (Makefile.am): Likewise.
56956         * modules/strftime (Makefile.am): Likewise.
56957         * modules/strndup (Makefile.am): Likewise.
56958         * modules/strnlen (Makefile.am): Likewise.
56959         * modules/strpbrk (Makefile.am): Likewise.
56960         * modules/strsep (Makefile.am): Likewise.
56961         * modules/strstr (Makefile.am): Likewise.
56962         * modules/strtod (Makefile.am): Likewise.
56963         * modules/strtoimax (Makefile.am): Likewise.
56964         * modules/strtok_r (Makefile.am): Likewise.
56965         * modules/strtol (Makefile.am): Likewise.
56966         * modules/strtoll (Makefile.am): Likewise.
56967         * modules/strtoul (Makefile.am): Likewise.
56968         * modules/strtoull (Makefile.am): Likewise.
56969         * modules/strtoumax (Makefile.am): Likewise.
56970         * modules/strverscmp (Makefile.am): Likewise.
56971         * modules/time_r (Makefile.am): Likewise.
56972         * modules/timegm (Makefile.am): Likewise.
56973         * modules/tmpfile-safer (Makefile.am): Likewise.
56974         * modules/unistd-safer (Makefile.am): Likewise.
56975         * modules/unlinkdir (Makefile.am): Likewise.
56976         * modules/userspec (Makefile.am): Likewise.
56977         * modules/utime (Makefile.am): Likewise.
56978         * modules/utimecmp (Makefile.am): Likewise.
56979         * modules/utimens (Makefile.am): Likewise.
56980         * modules/vasnprintf (Makefile.am): Likewise.
56981         * modules/vasprintf (Makefile.am): Likewise.
56982         * modules/vsnprintf (Makefile.am): Likewise.
56983         * modules/xalloc (Makefile.am): Likewise.
56984         * modules/xgetcwd (Makefile.am): Likewise.
56985         * modules/xnanosleep (Makefile.am): Likewise.
56986         * modules/xreadlink (Makefile.am): Likewise.
56987         * modules/xstrtod (Makefile.am): Likewise.
56988         * modules/xstrtol (Makefile.am): Likewise.
56989         * modules/xstrtold (Makefile.am): Likewise.
56990         * modules/yesno (Makefile.am): Likewise.
56991
56992 2006-10-12  Jim Meyering  <jim@meyering.net>
56993
56994         * m4/getloadavg.m4: Revert the change below.
56995
56996         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56997         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56998         fail with a symlink, which is what coreutils' ./bootstrap now
56999         creates by default.
57000
57001 2006-10-12  Bruno Haible  <bruno@clisp.org>
57002
57003         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
57004         mingw.
57005         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
57006         MSVC and mingw explicitly.
57007
57008 2006-10-11  Simon Josefsson  <jas@extundo.com>
57009             Bruno Haible  <bruno@clisp.org>
57010
57011         Add support for multiple gnulib-tool invocations in the scope of a
57012         single configure.ac file.
57013         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
57014         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
57015         with the same contents as the _LIBADD variable.
57016         (func_emit_initmacro_start, func_emit_initmacro_end,
57017         func_emit_initmacro_done): New functions.
57018         (func_import, func_create_testdir): Invoke them. Allow the identifiers
57019         gl_LIBOBJS and gl_LTLIBOBJS.
57020
57021 2006-10-11  Bruno Haible  <bruno@clisp.org>
57022
57023         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
57024         (func_create_testdir): Don't create po/Makefile.am, don't invoke
57025         autoreconf. Instead, invoke autopoint explicitly but move back the
57026         *.m4 files from gnulib.
57027
57028 2006-10-11  Bruno Haible  <bruno@clisp.org>
57029
57030         * gnulib-tool (func_usage): Make module names after --create-testdir
57031         optional.
57032         (func_create_testdir): If no module was specified, use nearly all
57033         modules.
57034
57035 2006-10-12  Jim Meyering  <jim@meyering.net>
57036
57037         Big performance improvement for fts-based tools that use FTS_NOSTAT.
57038         Avoid spurious inode-mismatch problems on non-POSIX file systems.
57039         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
57040         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
57041         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
57042         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
57043         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
57044         (fts_set_stat_required): New function.
57045         (fts_open): Defer the calls to fts_stat, if possible or requested.
57046         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
57047         into fts_stat itself.
57048         (fts_read): Perform any required (deferred) fts_stat call.
57049         (fts_build): Likewise, for the directory we're about to open and read.
57050         In the readdir loop, carefully decide whether each entry will require
57051         an eventual call to fts_stat, using dirent.d_type info if available.
57052         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
57053         a command line argument into this function.  Update all callers.
57054         Map a return value of FTS_DOT to FTS_D for a command line argument.
57055         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57056         Thanks to Miklos Szeredi for his tenacity and for the initial
57057         bug report about "find" failing on a FUSE-based file system.
57058
57059         * lib/fts.c (fts_open): Use consistent indentation.
57060
57061 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57062
57063         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57064         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57065         reported by Jim Meyering.  All uses of cache variables renamed
57066         to match Autoconf's.
57067         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57068         the other one.
57069
57070         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57071         Fix misspelling in diagnostic.
57072
57073 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57076         defined.  Problem reported by Matthew Woehlke.
57077
57078         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57079         Add support for Tandem NonStop R series.
57080         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57081         Use new macro.
57082
57083         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57084         (has_trailing_slash): Omit size arg; all callers changed.
57085         Omit 'inline', since it doesn't help performance and we'd
57086         need to configure it.
57087         Don't count //, ///, etc. as having a trailing slash.
57088         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57089         (rpl_rename_dest_slash): On failure, use rename's errno rather
57090         than (in some cases) an incorrect or junk errno.
57091         Simplify code by removing need to compute length; this does
57092         cause it to make two passes instead of one over the file name,
57093         but it's worth it.
57094
57095         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57096         change, since Autoconf's version may no longer be appropriate now
57097         that we are using CVS Autoconf's version.  Add support for Tandem.
57098
57099 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57100             Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57103         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57104         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57105         gl_AC_TYPE_LONG_LONG.
57106
57107         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57108         instead of HAVE_LONG_LONG.
57109         * lib/printf-args.c (printf_fetchargs): Likewise.
57110         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57111         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57112         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57113         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57114         gl_AC_TYPE_LONG_LONG.
57115
57116 2006-10-11  Bruno Haible  <bruno@clisp.org>
57117
57118         * m4/longlong.m4: Add comments.
57119         * m4/ulonglong.m4: Likewise.
57120
57121 2006-10-10  Bruno Haible  <bruno@clisp.org>
57122
57123         Make it possible to #define stpcpy, strdup to aliases.
57124         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57125         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57126
57127 2006-10-10  Bruno Haible  <bruno@clisp.org>
57128
57129         Make it possible to #define gcd to an alias.
57130         * lib/gcd.c: Include config.h.
57131
57132 2006-10-10  Bruno Haible  <bruno@clisp.org>
57133
57134         Make it possible to #define c_isascii to an alias.
57135         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57136         defined. Undefine the macros before defining them, to avoid gcc
57137         warnings.
57138         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57139         define NO_C_CTYPE_MACROS early.
57140
57141 2006-10-10  Bruno Haible  <bruno@clisp.org>
57142
57143         Make it possible to #define set_program_name to an alias.
57144         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57145         ENABLE_RELOCATABLE early.
57146
57147 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57148
57149         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57150         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57151         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57152         More generally, don't assume that 64-bit signed int is available
57153         if unsigned int is, and vice versa.
57154         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57155         unsigned symbols, not on their signed counterparts.
57156         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57157         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57158         (UINT64_C, UINTMAX_C):
57159         Likewise.
57160         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57161         unsigned counterparts.
57162         (Have_long_long, Unsigned): New macros.
57163         (Int): Renamed from INT.
57164         (strtoimax): Use the new macros.
57165         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57166         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57167         * modules/inttypes (inttypes.h): Substitute
57168         HAVE_UNSIGNED_LONG_LONG_INT.
57169         * modules/stdint (stdint.h): Likewise.
57170         (Files): Add m4/ulonglong.m4.
57171
57172 2006-10-10  Bruno Haible  <bruno@clisp.org>
57173
57174         Fix a gcc -Wshadow warning.
57175         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57176         to 'bucket'.
57177         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57178         gl_linked_indexof_from_to): Likewise.
57179         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57180         Likewise.
57181         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57182         Likewise.
57183         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57184         Reported by Eric Blake.
57185
57186 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57187
57188         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57189         for NetBSD.  Problem reported by Bruno Haible.
57190
57191 2006-10-09  Jim Meyering  <jim@meyering.net>
57192
57193         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57194         Patch from Bruno Haible.
57195
57196 2006-10-09  Jim Meyering  <jim@meyering.net>
57197
57198         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57199         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57200         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57201
57202 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57203
57204         Don't include <config.h> twice; this doesn't work in some cases,
57205         e.g., when config.h has "#define intmax_t long long int" and
57206         we include <config.h>, <inttypes.h>, <config.h> in that order.
57207         Problem reported by Matthew Woehlke in:
57208         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57209         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57210         * lib/fts-cycle.c: Don't include config.h.
57211         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57212         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57213         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57214         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57215         inttypes.h.
57216         * lib/xstrtoumax.c: Likewise.
57217         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57218         __strtol and the like, so that this module is more like its siblings.
57219         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57220         Remove; no longer needed now that we assume gnulib inttypes.h.
57221
57222 2006-10-08  Bruno Haible  <bruno@clisp.org>
57223
57224         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57225         option.
57226
57227 2006-10-07  Jim Meyering  <jim@meyering.net>
57228
57229         * modules/inttypes (inttypes.h): Revert what seems to have been
57230         an inadvertent part of today's change: use "|", not "/" in the
57231         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57232
57233 2006-10-07  Bruno Haible  <bruno@clisp.org>
57234
57235         * modules/sublist: New file.
57236
57237 2006-10-07  Bruno Haible  <bruno@clisp.org>
57238
57239         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57240         * modules/argz (argz.h): Likewise.
57241         * modules/arpa_inet (arpa/inet.h): Likewise.
57242         * modules/byteswap (byteswap.h): Likewise.
57243         * modules/configmake (configmake.h): Likewise.
57244         * modules/fcntl (fcntl.h): Likewise.
57245         * modules/fnmatch (fnmatch.h): Likewise.
57246         * modules/getopt (getopt.h): Likewise.
57247         * modules/glob (glob.h): Likewise.
57248         * modules/inttypes (inttypes.h): Likewise.
57249         * modules/netinet_in (netinet/in.h): Likewise.
57250         * modules/poll (poll.h): Likewise.
57251         * modules/stdbool (stdbool.h): Likewise.
57252         * modules/stdint (stdint.h): Likewise.
57253         * modules/sys_select (sys/select.h): Likewise.
57254         * modules/sys_socket (sys/socket.h): Likewise.
57255         * modules/sys_stat (sys/stat.h): Likewise.
57256         * modules/sysexits (sysexits.h): Likewise.
57257         * modules/unistd (unistd.h): Likewise.
57258         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57259         Add a "DO NOT EDIT" comment to the generated file.
57260         (func_import): Likewise for gnulib-comp.m4.
57261
57262 2006-10-07  Bruno Haible  <bruno@clisp.org>
57263
57264         * lib/gl_sublist.h: New file.
57265         * lib/gl_sublist.c: New file.
57266
57267 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57270         name (relative to the original working directory) and the file
57271         name component (relative to the temporary working directory).  All
57272         callers changed.
57273         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57274         * lib/mkdir-p.c (make_dir_parents): Likewise.
57275         * lib/mkdir-p.h (make_dir_parents): Likewise.
57276
57277 2006-10-06  Eric Blake  <ebb9@byu.net>
57278
57279         Define several macros for use by the clean-temp module.
57280         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57281         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57282         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57283
57284         * lib/clean-temp.h (close_stream_temp): New declaration.
57285         * lib/clean-temp.c (includes): Pull in headers according to what
57286         other modules are in use.
57287         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57288
57289 2006-10-06  Bruno Haible  <bruno@clisp.org>
57290
57291         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57292         instead of fopen, fwriteerror.
57293
57294 2006-10-06  Bruno Haible  <bruno@clisp.org>
57295
57296         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57297         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57298         int.
57299         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57300         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57301         Return an error indicator.
57302         Suggested by Eric Blake.
57303
57304 2006-10-06  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57307         Reported by Eric Blake.
57308
57309 2006-10-06  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/closeout (Description): Mention stderr too.
57312
57313 2006-10-06  Bruno Haible  <bruno@clisp.org>
57314         and Paul Eggert  <eggert@cs.ucla.edu>
57315
57316         * lib/closeout.c (close_stdout): Also close stderr.
57317         * lib/closeout.h: Update comment.
57318
57319 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57322         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57323         * lib/dirchownmod.c: Include lchown.h.
57324         * lib/lchown.c: Don't include files that lchown.h now includes.
57325         Don't declare chown, since lchown.h now does that.
57326         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57327         (lchown): Define to rpl_chown if lchown is declared but
57328         does not exist.  Declare using a prototype if lchown is not
57329         declared.  Add a copyright notice.
57330         * lib/mkstemp.h: Include <unistd.h>.
57331         * lib/openat.c: Include lchown.h.
57332
57333         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57334         we now test for that separately.
57335         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57336         rather than O_NOFOLLOW, when testing whether it's possible to
57337         avoid a race condition reliably.
57338         * lib/savewd.c (savewd_chdir): Likewise.
57339
57340         Remove macros that are no longer needed now that stdint.h is
57341         reliable.
57342         * lib/fsusage.c (UINTMAX_MAX): Remove.
57343         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57344         * lib/utimecmp.c (SIZE_MAX): Remove.
57345
57346         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57347
57348         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57349         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57350         O_NOATIME works.
57351
57352 2006-10-05  Bruno Haible  <bruno@clisp.org>
57353
57354         * lib/gl_list.h (gl_sortedlist_search_from_to,
57355         gl_sortedlist_indexof_from_to): New declarations.
57356         (gl_list_implementation): New fields sortedlist_search_from_to,
57357         sortedlist_indexof_from_to.
57358         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57359         inline functions.
57360         * lib/gl_list.c (gl_sortedlist_search_from_to,
57361         gl_sortedlist_indexof_from_to): New functions.
57362         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57363         function.
57364         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57365         (gl_array_sortedlist_search_from_to): New function.
57366         (gl_array_list_implementation): Update.
57367         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57368         function.
57369         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57370         (gl_carray_sortedlist_search_from_to): New function.
57371         (gl_carray_list_implementation): Update.
57372         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57373         gl_linked_sortedlist_indexof_from_to): New functions.
57374         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57375         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57376         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57377         gl_tree_sortedlist_indexof_from_to): New functions.
57378         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57379         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57380         Update.
57381         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57382         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57383         Update.
57384
57385 2006-10-05  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57388         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57389         (struct gl_list_implementation): Add fields search_from_to,
57390         indexof_from_to. Remove fields search, indexof.
57391         (gl_list_search): Use the search_from_to method.
57392         (gl_list_search_from, gl_list_search_from_to): New functions.
57393         (gl_list_indexof): Use the indexof_from_to method.
57394         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57395         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57396         (gl_list_search_from, gl_list_search_from_to): New functions.
57397         (gl_list_indexof): Use the indexof_from_to method.
57398         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57399         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57400         gl_array_indexof. Add start_index, end_index arguments.
57401         (gl_array_search_from_to): Renamed from gl_array_search. Add
57402         start_index, end_index arguments.
57403         (gl_array_remove, gl_array_list_implementation): Update.
57404         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57405         gl_carray_indexof. Add start_index, end_index arguments.
57406         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57407         start_index, end_index arguments.
57408         (gl_carray_remove, gl_carray_list_implementation): Update.
57409         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57410         gl_linked_search. Add start_index, end_index arguments.
57411         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57412         start_index, end_index arguments.
57413         (gl_linked_remove): Update.
57414         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57415         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57416         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57417         field to 'size_t'.
57418         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57419         gl_tree_search. Add start_index, end_index arguments.
57420         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57421         start_index, end_index arguments.
57422         (gl_tree_remove): Update.
57423         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57424         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57425         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57426         function.
57427         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57428         gl_tree_search. Add start_index, end_index arguments.
57429         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57430         start_index, end_index arguments.
57431         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57432         Update.
57433         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57434
57435 2006-10-05  Bruno Haible  <bruno@clisp.org>
57436
57437         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57438
57439         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57440         fwriteerror_temp): New declarations.
57441         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57442         (descriptors): New variable.
57443         (cleanup): First, close the descriptors.
57444         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57445         fclose_temp, fwriteerror_temp): New functions.
57446
57447 2006-10-04  Jim Meyering  <jim@meyering.net>
57448
57449         * lib/fts.c (fts_open): Tiny comment change.
57450
57451 2006-10-04  Bruno Haible  <bruno@clisp.org>
57452
57453         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57454         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57455         gl_LOCK_BODY.
57456         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57457         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57458         gl_LOCK_EARLY_BODY.
57459         (gl_LOCK): Require gl_LOCK_BODY.
57460
57461 2006-10-04  Bruno Haible  <bruno@clisp.org>
57462
57463         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57464         (gl_oset_search_atleast): New declaration.
57465         (struct gl_oset_implementation): Add field 'search_atleast'.
57466         (gl_oset_search_atleast): New inline function.
57467         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57468         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57469         (gl_array_oset_implementation): Update.
57470         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57471         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57472         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57473
57474 2006-10-04  Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57477
57478 2006-10-03  Bruno Haible  <bruno@clisp.org>
57479
57480         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57481         from gl_avltreehash_list_implementation.
57482
57483 2006-10-03  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/gl_oset.c (gl_oset_add): Fix return type.
57486
57487 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57488
57489         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57490
57491 2006-10-02  Eric Blake  <ebb9@byu.net>
57492
57493         * modules/strnlen (Depends-on): Add extensions.
57494
57495 2006-10-02  Eric Blake  <ebb9@byu.net>
57496
57497         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57498         definition in 2.60+.
57499
57500 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57501
57502         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57503         checks.
57504
57505 2006-10-02  Bruno Haible  <bruno@clisp.org>
57506
57507         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57508         to the AUTOMAKE_OPTIONS.
57509         Reported by Jim Meyering.
57510
57511 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57512
57513         Work around bug in Solaris 10 /proc file system:
57514         /proc/self/fd/NNN/.. isn't the parent directory of
57515         the directory whose file descriptor is NNN.  This needs to
57516         be worked around at run time, not compile time, since a
57517         program might be built on Solaris 8, where things work, and
57518         run on Solaris 10.
57519         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57520         to use the following interface instead:
57521         (OPENAT_BUFFER_SIZE): New macro.
57522         (openat_proc_name): New function.
57523         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57524         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57525         Likewise.
57526         * lib/openat-proc.c: New file.
57527         * modules/openat (Files): Add lib/openat-proc.c.
57528         (Depends-on): Add same-inode, stdbool.
57529         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57530
57531 2006-09-29  Bruno Haible  <bruno@clisp.org>
57532
57533         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57534         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57535         argument. Set stdout_closed before testing for ferror, not after.
57536         (fwriteerror, fwriteerror_no_ebadf): New functions.
57537
57538 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57539
57540         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57541
57542 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57543
57544         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57545         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57546
57547 2006-09-28  Jim Meyering  <jim@meyering.net>
57548
57549         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57550         Include <unistd.h>.
57551
57552 2006-09-28  Bruno Haible  <bruno@clisp.org>
57553
57554         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57555         * modules/linkedhash-list (Depends-on): Likewise.
57556         * modules/rbtreehash-list (Depends-on): Likewise.
57557
57558 2006-09-28  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/strndup.h: Simplify the redefinition of strndup.
57561         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57562         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57563
57564 2006-09-28  Bruno Haible  <bruno@clisp.org>
57565
57566         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57567         * lib/gl_linkedhash_list.c: Likewise.
57568         * lib/gl_rbtreehash_list.c: Likewise.
57569
57570 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57573         getaddrinfo.
57574
57575         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57576         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57577         it causes <stdio_ext.h> to cause a compile-time error.
57578         Problem reported by Nelson H. F. Beebe.
57579         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57580         of HAVE_DECL___PENDING.
57581
57582         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57583         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57584         declaration.
57585
57586 2006-09-27  Jim Meyering  <jim@meyering.net>
57587
57588         This file could end up with a definition for a function
57589         named __strndup, rather than rpl_strndup on a system with
57590         incomplete weak_alias support.
57591         * lib/strndup.c (strndup): Rename from __strndup.
57592         Remove #defines that used to map __strndup to strndup.
57593         Don't use K&R prototypes.
57594         Remove LIBC-related code, since this file is not sync'd with glibc.
57595         * lib/strndup.h: Revamp, accordingly.
57596         * m4/strndup.m4: Modernize.
57597
57598 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57599
57600         * modules/savewd (Depends-on): Add 'raise'.
57601         * lib/savewd.c: Include <signal.h>, for 'raise'.
57602
57603 2006-09-26  Jim Meyering  <jim@meyering.net>
57604
57605         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57606         when we detect Darwin 8.7.0's acl_get_file bug.
57607         Rearrange to perform the new (below) run-test while $LIBS
57608         contains any acl-related library.  Set USE_ACL at the end.
57609         (gl_ACL_GET_FILE): New function.
57610
57611 2006-09-26  Eric Blake  <ebb9@byu.net>
57612
57613         * lib/verror.c: Include <config.h> unconditionally.
57614
57615 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57616
57617         * modules/clock-time (Maintainer): Add self.
57618         * modules/getlogin_r (Depends-on): Add extensions.
57619
57620 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57621
57622         * modules/clock-time: New module.
57623         * modules/nanosleep (Depends-on): Add clock-time.
57624         * modules/gethrxtime (Depends-on): Likewise.
57625         * modules/gettime (Depends-on): Likewise.
57626         * modules/settime (Depends-on): Likewise.
57627
57628         * modules/fts-lgpl: Depend on openat.
57629         * modules/mkancesdirs: Depend on savewd.
57630         * modules/mkdir-p: Likewise.
57631
57632 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57633
57634         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57635
57636         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57637         `gl_have_arbitrary_file_name_length_limit' to
57638         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57639         actually works between configure runs.
57640
57641 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57642             Bruno Haible  <bruno@clisp.org>
57643
57644         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57645
57646 2006-09-25  Jim Meyering  <jim@meyering.net>
57647
57648         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57649         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57650
57651 2006-09-25  Eric Blake  <ebb9@byu.net>
57652
57653         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57654         exec's in 2006-09-18 patch when shuffling fds.
57655
57656 2006-09-25  Bruno Haible  <bruno@clisp.org>
57657
57658         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57659         Reported by Jim Meyering.
57660
57661 2006-09-24  Jim Meyering  <jim@meyering.net>
57662
57663         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57664         compare a pointer against a literal "0".  That caused failures with
57665         at least HP-UX's hpcc.
57666
57667 2006-09-22  Simon Josefsson  <jas@extundo.com>
57668
57669         * modules/gc-sha1:
57670         * modules/gc-md4:
57671         * modules/gc-hmac-sha1:
57672         * modules/gc-hmac-md5:
57673         * modules/gc-des:
57674         * modules/gc-arcfour: Distribute more files.
57675
57676 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57677
57678         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57679         (gl_linked_iterator_from_to): Initialize struct completely.
57680         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57681         (gl_tree_iterator_from_to): Likewise
57682         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57683         * lib/gl_array_list.c [lint] (gl_array_iterator)
57684         (gl_array_iterator_from_to): Likewise.
57685         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57686         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57687         (gl_carray_iterator_from_to): Likewise.
57688
57689         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57690         * lib/md4.c (md4_process_block): Remove unused variable.
57691         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57692         parentheses for clarity.
57693
57694 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57695
57696         * modules/bison-i18n (Depends-on): Add gettext.
57697
57698 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57699
57700         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57701         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57702         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57703         also add missing comma that caused broken test.
57704         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57705         stdlib.h, for `abort'.
57706         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57707         variables.
57708         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57709         include unistd.h if present, for `rmdir'.
57710         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57711         variables.
57712         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57713         in the process include standard headers for prototypes.
57714         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57715         gets declared on GNU/Linux.
57716         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57717         unistd.h, for `rmdir'.
57718         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57719
57720         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57721         always true.
57722         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57723
57724         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57725
57726 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57727
57728         * gnulib-tool (func_version): Create output all at once.  This
57729         may help avoid triggering unnecessary SIGPIPEs, and at any
57730         rate it doesn't hurt.
57731
57732 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57733             Bruno Haible  <bruno@clisp.org>
57734
57735         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57736         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57737         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57738
57739         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57740         (gl_FUNC_VASPRINTF): Invoke it.
57741
57742 2006-09-22  Bruno Haible  <bruno@clisp.org>
57743
57744         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57745         getloadavg.c as first argument.
57746
57747 2006-09-22  Bruno Haible  <bruno@clisp.org>
57748
57749         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57750         at the beginning of the gl_INIT macro.
57751         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57752         gl_GETLOADAVG.
57753
57754 2006-09-22  Bruno Haible  <bruno@clisp.org>
57755
57756         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57757         module.
57758         Suggested by Ralf Wildenhues.
57759
57760 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57761
57762         Import this patch from libc:
57763
57764         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57765
57766         * lib/regex_internal.c (re_string_reconstruct): Handle
57767         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57768         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57769         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57770         re_string_context_at.
57771
57772         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57773         now requires it.
57774         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57775         gl_REGEX now does it for us.
57776         (gl_REGEX): Add test taken from
57777         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57778
57779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57780         Check that large offsets work.  Modernize Autoconf usages.
57781         Prefer "yes" to mean a good thing rather than a bad.
57782         Don't put "#define mkstemp" in config.h, as this might interfere
57783         with standard system headers that "#define mkstemp mkstemp64".
57784
57785         * modules/mkstemp (Depends-on): Add extensions, so that
57786         mkstemp is visible on some platforms.
57787         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57788         (Include): Change to "mkstemp.h" from <stdlib.h>.
57789         (Files): Add mkstemp.h.
57790
57791         * lib/mkstemp.h: New file, since some standard headers
57792         #define mkstemp.
57793         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57794         Include "mkstemp.h".
57795         Make the _LIBC code resemble glibc original more,
57796         e.g., use K&R style.
57797         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57798         (mkstemp): Remove, since mkstemp.h does this for us.
57799         * lib/stdlib--.h: Include mkstemp.h.
57800
57801         Import this patch from libc:
57802
57803         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57804
57805         * lib/tempname.c (__gen_tempname): Change attempts_min
57806         into a macro.  Use preprocessor to decide how to initialize
57807         attempts [Coverity CID 67].
57808
57809 2006-09-20  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/mkdtemp.c: Import from libc.
57812         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57813                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57814                 attempts_min into a macro.  Use preprocessor to decide how to
57815                 initialize attempts [Coverity CID 67].
57816         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57817                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57818                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57819
57820 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57821
57822         * gnulib-tool (func_exit): New function, to allow to pass the
57823         exit status portably through the trap.  Use everywhere.
57824         (--help, --version): Signal a write error.
57825         (trap): catch SIGPIPE, for write errors.
57826         Exit at the end of the trap, with the correct exit status.
57827
57828 2006-09-19  Karl Berry  <karl@gnu.org>
57829
57830         * doc/gnulib.texi: note about the license texinfo files.
57831
57832 2006-09-19  Eric Blake  <ebb9@byu.net>
57833
57834         * gnulib-tool: Avoid space-tab.
57835
57836 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57837
57838         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57839         that prevented coreutils 6.1 from building.  Problem reported
57840         by Petter Reinholdtsen.
57841
57842 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57843
57844         * gnulib-tool (avoidlist): Fix typo that broke options like
57845         --avoid=lock that are used by coreutils bootstrap.
57846
57847 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57848
57849         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57850         more systematically.
57851
57852 2006-09-18  Jim Meyering  <jim@meyering.net>
57853
57854         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57855
57856 2006-09-18  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57859
57860 2006-09-18  Bruno Haible  <bruno@clisp.org>
57861
57862         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57863         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57864         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57865         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57866         * m4/gettext.m4: Require autoconf >= 2.52.
57867         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57868         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57869         of gl_cv_header_inttypes_h.
57870
57871 2006-09-18  Bruno Haible  <bruno@clisp.org>
57872
57873         * lib/javaversion.c: Include configmake.h.
57874
57875 2006-09-18  Bruno Haible  <bruno@clisp.org>
57876
57877         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57878         avoid that the while loops be executed in a subshell.
57879
57880 2006-09-18  Bruno Haible  <bruno@clisp.org>
57881
57882         * MODULES.html.sh (func_module): Break long lines.
57883         Suggested by Bruce Korb <bkorb@gnu.org>.
57884
57885 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57886
57887         Speed up by a factor of 1.12.
57888         * gnulib-tool (nl): New variable.
57889         (func_import): Rewrite include directive extraction to only read each
57890         directive once.
57891
57892 2006-09-17  Bruno Haible  <bruno@clisp.org>
57893
57894         * modules/javaversion (Makefile.am): Remove DEFS setting.
57895         (Depends-on): Add configmake, for PKGDATADIR definition.
57896
57897 2006-09-17  Bruno Haible  <bruno@clisp.org>
57898
57899         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57900
57901 2006-09-17  Bruno Haible  <bruno@clisp.org>
57902
57903         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57904         (func_modules_transitive_closure, func_modules_add_dummy,
57905         func_modules_to_filelist, func_import, func_create_testdir,
57906         func_create_megatestdir, ...): Use it wherever possible.
57907         Suggested by Ralf Wildenhues.
57908
57909 2006-09-16  Karl Berry  <karl@gnu.org>
57910
57911         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57912         to avoid sectioning errors.
57913         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57914         [ifinfo]: blank line after @center-ed titles.
57915         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57916         Spell FSF address consistently with others.
57917         (These changes approved by rms.)
57918
57919 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57920
57921         Speed up by a factor of 1.61.
57922         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57923         already checked module names again.
57924
57925 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57926
57927         Speed up by a factor of 1.13.
57928         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57929         for new_files, and the input to func_add_or_update.
57930
57931 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57932
57933         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57934         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57935
57936 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57937
57938         * modules/mkancesdirs (Depends-on): Add fcntl.
57939         * modules/savewd: New file.
57940         * MODULES.html.sh (File system functions): Add savewd.
57941
57942         * modules/configmake (Makefile.am): Add support for the
57943         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57944
57945 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57946
57947         * m4/savewd.m4: New file.
57948
57949 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57950
57951         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57952         (dirchownmod): New arg FD.  All callers changed.
57953         Use FD rather than opening the directory ourself, as opening is
57954         now the caller's responsibility.
57955         * lib/dirchownmod.h: Likewise.
57956         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57957         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57958         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57959         (test_dir): Remove.
57960         (mkancesdirs): Return length of prefix of FILE that has already
57961         been made, or -2 if there is a child doing the work.  Redo
57962         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57963         ".", and treat ".." specially since it might stray back into
57964         already-created areas.  Use a subprocess if necessary.  New arg
57965         WD; all users changed.  MAKE_DIR function should now return 1
57966         if it creates a directory that is not readable.  Return -2 if
57967         a child process is spun off.
57968         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57969         Adjust signature to match code.
57970         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57971         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57972         all users changed.
57973         * lib/savewd.c, lib/savewd.h: New files.
57974
57975 2006-09-15  Jim Meyering  <jim@meyering.net>
57976
57977         * modules/rename-dest-slash: New module.
57978         * MODULES.html.sh (posix_compat): Add it here.
57979
57980         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57981
57982 2006-09-15  Jim Meyering  <jim@meyering.net>
57983
57984         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57985         file.
57986
57987         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57988
57989 2006-09-15  Jim Meyering  <jim@meyering.net>
57990
57991         * lib/rename-dest-slash.c (has_trailing_slash): Use
57992         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57993         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57994         test before testing whether SRC is a directory.
57995         Suggestions from Bruno Haible.
57996
57997         Avoid a warning about an unused variable.
57998         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57999         into the #ifdef block where it's used.
58000
58001         * lib/rename-dest-slash.c: New file.
58002
58003 2006-09-14  Bruno Haible  <bruno@clisp.org>
58004
58005         * lib/allocsa.c: Include <config.h> unconditionally.
58006         * lib/asnprintf.c: Likewise.
58007         * lib/asprintf.c: Likewise.
58008         * lib/c-strcasecmp.c: Likewise.
58009         * lib/c-strcasestr.c: Likewise.
58010         * lib/c-strncasecmp.c: Likewise.
58011         * lib/c-strstr.c: Likewise.
58012         * lib/classpath.c: Likewise.
58013         * lib/clean-temp.c: Likewise.
58014         * lib/concatpath.c: Likewise.
58015         * lib/copy-file.c: Likewise.
58016         * lib/csharpcomp.c: Likewise.
58017         * lib/csharpexec.c: Likewise.
58018         * lib/execute.c: Likewise.
58019         * lib/fatal-signal.c: Likewise.
58020         * lib/findprog.c: Likewise.
58021         * lib/fwriteerror.c: Likewise.
58022         * lib/gl_array_list.c: Likewise.
58023         * lib/gl_array_oset.c: Likewise.
58024         * lib/gl_avltree_list.c: Likewise.
58025         * lib/gl_avltree_oset.c: Likewise.
58026         * lib/gl_avltreehash_list.c: Likewise.
58027         * lib/gl_carray_list.c: Likewise.
58028         * lib/gl_linked_list.c: Likewise.
58029         * lib/gl_linkedhash_list.c: Likewise.
58030         * lib/gl_list.c: Likewise.
58031         * lib/gl_oset.c: Likewise.
58032         * lib/gl_rbtree_list.c: Likewise.
58033         * lib/gl_rbtree_oset.c: Likewise.
58034         * lib/gl_rbtreehash_list.c: Likewise.
58035         * lib/imaxabs.c: Likewise.
58036         * lib/imaxdiv.c: Likewise.
58037         * lib/javacomp.c: Likewise.
58038         * lib/javaexec.c: Likewise.
58039         * lib/javaversion.c: Likewise.
58040         * lib/linebreak.c: Likewise.
58041         * lib/localcharset.c: Likewise.
58042         * lib/lock.c: Likewise.
58043         * lib/mbchar.c: Likewise.
58044         * lib/mbswidth.c: Likewise.
58045         * lib/mkdtemp.c: Likewise.
58046         * lib/pipe.c: Likewise.
58047         * lib/printf-args.c: Likewise.
58048         * lib/printf-parse.c: Likewise.
58049         * lib/progname.c: Likewise.
58050         * lib/progreloc.c: Likewise.
58051         * lib/readlink.c: Likewise.
58052         * lib/sh-quote.c: Likewise.
58053         * lib/stpcpy.c: Likewise.
58054         * lib/stpncpy.c: Likewise.
58055         * lib/strcasecmp.c: Likewise.
58056         * lib/strcasestr.c: Likewise.
58057         * lib/strcspn.c: Likewise.
58058         * lib/striconv.c: Likewise.
58059         * lib/strncasecmp.c: Likewise.
58060         * lib/strnlen1.c: Likewise.
58061         * lib/strstr.c: Likewise.
58062         * lib/strtok_r.c: Likewise.
58063         * lib/tls.c: Likewise.
58064         * lib/tmpdir.c: Likewise.
58065         * lib/unicodeio.c: Likewise.
58066         * lib/unsetenv.c: Likewise.
58067         * lib/vasnprintf.c: Likewise.
58068         * lib/vasprintf.c: Likewise.
58069         * lib/wait-process.c: Likewise.
58070         * lib/xallocsa.c: Likewise.
58071         * lib/xsetenv.c: Likewise.
58072         * lib/xstriconv.c: Likewise.
58073
58074 2006-09-13  Simon Josefsson  <jas@extundo.com>
58075
58076         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58077         that internally, suggested by Ralf Wildenhues
58078         <Ralf.Wildenhues@gmx.de>.
58079
58080 2006-09-13  Simon Josefsson  <jas@extundo.com>
58081
58082         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58083         @LIBOBJS@.
58084         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58085
58086 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58089         longer worry about uses that don't define HAVE_CONFIG_H.
58090         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58091         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58092         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58093         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58094         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58095         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58096         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58097         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58098         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58099         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58100         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58101         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58102         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58103         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58104         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58105         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58106         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58107         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58108         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58109         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58110         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58111         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58112         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58113         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58114         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58115         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58116         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58117         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58118         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58119         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58120         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58121         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58122         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58123         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58124         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58125         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58126         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58127         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58128         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58129         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58130         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58131         Likewise.
58132
58133 2006-09-13  Eric Blake  <ebb9@byu.net>
58134
58135         * lib/getopt.c: Fix typo in last commit.
58136
58137 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58138
58139         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58140         dgettext.
58141
58142 2006-09-12  Jim Meyering  <jim@meyering.net>
58143
58144         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58145         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58146         Reported by Nelson H. F. Beebe.
58147
58148 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58149
58150         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58151         program_invocation_name and program_invocation_short_name are
58152         initialized.
58153         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58154         and program_invocation_short_name to argp.h, so they are visible
58155         to user programs.
58156         * lib/argp.h: Likewise
58157
58158 2006-09-10  Bruno Haible  <bruno@clisp.org>
58159
58160         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58161         m4/inttypes_h.m4, m4/uintmax_t.m4.
58162
58163 2006-09-10  Bruno Haible  <bruno@clisp.org>
58164
58165         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58166         gl_AC_TYPE_UINTMAX_T.
58167
58168 2006-09-10  Bruno Haible  <bruno@clisp.org>
58169
58170         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58171
58172 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58173
58174         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58175         convention.  Text proposed by Bruno Haible.
58176         (struct argp_option): Document the use of N_() wrappers.
58177
58178         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58179         '\v', and translate the two parts separately, instead of feeding
58180         the whole string to gettext.  This allows to exclude
58181         '\v' from the strings visible to the translator by writing doc
58182         strings as N_("..") "\v" N_("..").
58183
58184 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58185
58186         * config/srclist.txt: Undo latest change; the bug was fixed.
58187
58188 2006-09-09  Bruno Haible  <bruno@clisp.org>
58189
58190         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58191         assignments if building a library without libtool.
58192         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58193         in func_emit_lib_Makefile_am.
58194         (func_import): When building a static library libfoo.a, arrange to
58195         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58196         (func_create_testdir): Likewise.
58197         * modules/gc (configure.ac, Makefile.am): If building statically,
58198         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58199         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58200         * modules/striconv (configure.ac, Makefile.am): Likewise.
58201         Based on a suggestion by Ralf Wildenhues.
58202
58203 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58204
58205         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58206         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58207         Also:
58208
58209         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58210         Add year_2050_test to catch glibc bug 2821
58211         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58212
58213         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58214         Prefer #ifdef to #if.
58215
58216         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58217         Return from 'main' instead of calling 'exit'.
58218
58219 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58222         returned the maximum time_t value rather than (time_t) -1.
58223         Problem originally reported by William Bardwell
58224         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58225
58226         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58227         Moved to here ...
58228         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58229         ... from here.
58230
58231 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58234         2821 is fixed.
58235
58236 2006-09-08  Jim Meyering  <jim@meyering.net>
58237
58238         Don't make generated files read-only.  That would bother too many
58239         people.  However, do retain the ability to work when targets are
58240         read-only: remove the destination and temporary files before writing
58241         them (when generated via sed or echo), or by using the -f option for
58242         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58243         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58244         * modules/byteswap, modules/configmake, modules/fcntl:
58245         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58246         * modules/localcharset, modules/netinet_in, modules/poll:
58247         * modules/stdbool, modules/stdint, modules/sys_select:
58248         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58249
58250 2006-09-08  Jim Meyering  <jim@meyering.net>
58251
58252         Avoid new build failure on FreeBSD 6.0.
58253         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58254         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58255         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58256
58257 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58258
58259         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58260
58261 2006-09-07  Jim Meyering  <jim@meyering.net>
58262
58263         Fix global typo in last change: use chmod u-w, not chmod u-x.
58264         Spotted by Paul Eggert and Bruce Korb.
58265         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58266         * modules/byteswap, modules/configmake, modules/fcntl:
58267         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58268         * modules/localcharset, modules/netinet_in, modules/poll:
58269         * modules/stdbool, modules/stdint, modules/sys_select:
58270         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58271
58272 2006-09-06  Jim Meyering  <jim@meyering.net>
58273
58274         Make generated files be read-only.
58275         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58276         Ensure that each generated file is now read-only.
58277         * modules/argz: Likewise.
58278         * modules/arpa_inet: Likewise.
58279         * modules/byteswap: Likewise.
58280         * modules/configmake: Likewise.
58281         * modules/fcntl: Likewise.
58282         * modules/fnmatch: Likewise.
58283         * modules/getopt: Likewise.
58284         * modules/glob: Likewise.
58285         * modules/inttypes: Likewise.
58286         * modules/netinet_in: Likewise.
58287         * modules/poll: Likewise.
58288         * modules/stdbool: Likewise.
58289         * modules/stdint: Likewise.
58290         * modules/sys_select: Likewise.
58291         * modules/sys_socket: Likewise.
58292         * modules/sys_stat: Likewise.
58293         * modules/sysexits: Likewise.
58294         * modules/localcharset: Same as above, but continue using temporary
58295         file named "t-$@" (why different?) rather than the "$@-t" used
58296         everywhere else.
58297
58298         * modules/sysexits (Makefile.am): Replace literal occurrences
58299         of "sysexit.h" more readable, and more consistent, "$@".
58300
58301 2006-09-06  Bruno Haible  <bruno@clisp.org>
58302
58303         * modules/striconv: New file.
58304         * modules/xstriconv: New file.
58305         * MODULES.html.sh (Internationalization functions): Add striconv,
58306         xstriconv.
58307
58308 2006-09-06  Bruno Haible  <bruno@clisp.org>
58309
58310         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58311         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58312         not using libtool correctly.
58313
58314 2006-09-06  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/striconv.h: New file.
58317         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58318         iconvstring.c.
58319         * lib/xstriconv.h: New file.
58320         * lib/xstriconv.c: New file.
58321
58322 2006-09-06  Bruno Haible  <bruno@clisp.org>
58323
58324         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58325         lib_..._LDFLAGS.
58326
58327 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58328
58329         * lib/argz_.h: Sync from Libtool.
58330
58331         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58332                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58333
58334         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58335
58336 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58337
58338         * modules/trim: New file.
58339
58340 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58341
58342         * lib/trim.h: New file.
58343         * lib/trim.c: New file.
58344
58345 2006-09-05  Bruno Haible  <bruno@clisp.org>
58346
58347         * MODULES.html.sh (String handling): Add trim.
58348
58349 2006-09-04  Karl Berry  <karl@gnu.org>
58350
58351         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58352         until next release.
58353
58354 2006-09-03  Bruno Haible  <bruno@clisp.org>
58355
58356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58357         correctly.
58358
58359 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58360
58361         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58362         not gl_GETLOADAVG.  Omit unneeded semicolons.
58363         Problems reported by Ralf Wildenhues in
58364         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58365         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58366         at the end, which is the usual gnulib style.
58367
58368         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58369         of doing all the work ourselves.
58370         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58371         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58372
58373 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58374
58375         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58376         Problem reported by Ralf Wildenhues in
58377         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58378
58379         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58380         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58381
58382 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58383
58384         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58385         yesterday's patch by changing test -n to test -z.
58386
58387 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58388
58389         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58390         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58391         the former is now obsolescent.
58392
58393         * modules/chdir-long (Depends-on): Add fcntl.
58394
58395 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58396
58397         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58398         obsolescent, and programs should use gnulib instead.
58399         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58400         but with prefixes changed.
58401
58402 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58403
58404         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58405         or stdbool.h, because they might not exist while configuring.
58406
58407         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58408         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58409         does that for us.
58410         (O_DIRECTORY): Remove.
58411
58412 2006-08-31  Eric Blake  <ebb9@byu.net>
58413
58414         * gnulib-tool: Don't let emacs change spaces to TAB.
58415
58416 2006-08-31  Bruno Haible  <bruno@clisp.org>
58417
58418         * gnulib-tool: When calling func_import more than once, do it in a
58419         subshell.
58420         Reported by Eric Blake <ebb9@byu.net>.
58421
58422 2006-08-31  Bruno Haible  <bruno@clisp.org>
58423
58424         * gnulib-tool (nl): Remove variable.
58425         (sed_transform_lib_file): Use more robust test for config-h module.
58426         (func_import): Fix typo in 2006-08-25 patch.
58427
58428 2006-08-31  Bruno Haible  <bruno@clisp.org>
58429
58430         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58431         specified, augment Makefile.am variables instead of assigning them.
58432
58433 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         Work around a bug in both the Linux and SunOS 64-bit kernels:
58436         nanosleep mishandles sleeps for longer than 2**31 seconds.
58437         Problem reported by Frank v Waveren in
58438         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58439         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58440         Check for nanosleep bug.
58441         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58442
58443 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         Work around a bug in both the Linux and SunOS 64-bit kernels:
58446         nanosleep mishandles sleeps for longer than 2**31 seconds.
58447         Problem reported by Frank v Waveren in
58448         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58449         * lib/nanosleep.c (BILLION): New constant.
58450         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58451         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58452         implementation.
58453
58454 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         * modules/nanosleep (Depends-on): Add gettime.
58457
58458 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58459         and Simon Josefsson  <jas@extundo.com>
58460         and Oskar Liljeblad  <oskar@osk.mine.nu>
58461
58462         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58463         * gnulib-tool (func_import): New license type 'unmodifiable license
58464         text'.
58465         * modules/fdl: Use it.  Longer description.
58466         * module/gpl, module/lgpl: New files.
58467
58468 2006-08-30  Jim Meyering  <jim@meyering.net>
58469
58470         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58471         shadowing the parameter.
58472
58473 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58474
58475         Sync from Libtool:
58476
58477         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58478
58479         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58480         sharing with gnulib.  Report by Eric Blake.
58481
58482 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58483
58484         * modules/isapipe: New file.
58485         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58486
58487 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * modules/configmake (Makefile.am): Add a comment, and omit
58490         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58491         by Bruno Haible.
58492
58493 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58494
58495         * m4/isapipe.m4: New file.
58496
58497 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58498
58499         * lib/isapipe.c, lib/isapipe.h: New files.
58500
58501 2006-08-29  Jim Meyering  <jim@meyering.net>
58502
58503         * modules/configmake (Makefile.am): Make configmake.h depend on
58504         Makefile.  Otherwise, a stale configmake.h could hang around.
58505
58506 2006-08-29  Eric Blake  <ebb9@byu.net>
58507
58508         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58509         resolution of upstream bug 3044.
58510
58511 2006-08-29  Bruno Haible  <bruno@clisp.org>
58512
58513         * modules/localcharset (Depends-on): Add configmake.
58514         (Makefile.am): Remove setting of LIBDIR through DEFS.
58515
58516 2006-08-29  Bruno Haible  <bruno@clisp.org>
58517
58518         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58519         defined.
58520
58521 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * modules/fcntl: New file.
58524         * modules/chdir-safer (Depends-on): Add fcntl.
58525         * modules/fts: Likewise.
58526         * modules/mkdir-p: Likewise.
58527
58528         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58529         This undoes the most recent change, since we're now addressing the
58530         problem in a different way.
58531
58532         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58533         into output, since the output might be called Makefile.am even
58534         if $makefile_name is something different.
58535         (func_import): Use $makefile_am rather than
58536         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58537         empty.
58538
58539         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58540
58541 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58544         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58545         recent change to stdint.m4, since we're now addressing the problem in a
58546         different way.
58547
58548 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58549
58550         * m4/fcntl_h.m4: New file.
58551
58552 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58553
58554         * lib/fcntl_.h: New file.
58555         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58556         the fcntl module.
58557         * lib/dirchownmod.c: Likewise.
58558         * lib/fts.c: Likewise.
58559
58560         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58561         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58562         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58563         just before including <inttypes.h>, to avoid circular inclusion.
58564
58565 2006-08-28  Jim Meyering  <jim@meyering.net>
58566
58567         * doc/visibility.texi: Actually read and correct the grammar of the
58568         sentence affected by yesterday's change.
58569
58570 2006-08-28  Eric Blake  <ebb9@byu.net>
58571
58572         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58573         needs wrapper.
58574
58575 2006-08-28  Eric Blake  <ebb9@byu.net>
58576
58577         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58578
58579 2006-08-28  Eric Blake  <ebb9@byu.net>
58580
58581         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58582
58583 2006-08-28  Bruno Haible  <bruno@clisp.org>
58584
58585         * modules/c-strstr: New file, from GNU gettext.
58586         * MODULES.html.sh (String handling): Add c-strstr.
58587
58588 2006-08-28  Bruno Haible  <bruno@clisp.org>
58589
58590         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58591         macros.
58592         Reported by Eric Blake.
58593
58594 2006-08-28  Bruno Haible  <bruno@clisp.org>
58595
58596         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58597         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58598         * lib/vasprintf.c: Include errno.h, limits.h.
58599         (EOVERFLOW): New fallback definition.
58600         (vasprintf): Test here whether the string length is > INT_MAX.
58601         * lib/vsnprintf.c: Include errno.h, limits.h.
58602         (EOVERFLOW): New fallback definition.
58603         (vsnprintf): Fix bug when generated string was too long for the buffer.
58604         Test here whether the string length is > INT_MAX.
58605
58606 2006-08-28  Bruno Haible  <bruno@clisp.org>
58607
58608         * lib/inttypes_.h (SCNX*): Remove definitions.
58609         Reported by Eric Blake.
58610
58611 2006-08-28  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/c-strstr.h: New file, from GNU gettext.
58614         * lib/c-strstr.c: New file, from GNU gettext.
58615
58616 2006-08-28  Bruno Haible  <bruno@clisp.org>
58617
58618         * gnulib-tool: Reorder some statements.
58619
58620 2006-08-28  Bruno Haible  <bruno@clisp.org>
58621
58622         * gnulib-tool: New option --makefile-name.
58623         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58624         $makefile_name.
58625         (func_import): Write $makefile_name to the cache file, and read it from
58626         there unless explicitly specified. Use $makefile_name as file name
58627         instead of Makefile.am. Adjust the recommendations accordingly.
58628
58629 2006-08-28  Bruno Haible  <bruno@clisp.org>
58630
58631         * gnulib-tool (func_verify_module): Check against misapplying patch.
58632
58633 2006-08-28  Bruno Haible  <bruno@clisp.org>
58634
58635         * gnulib-tool (func_relativize, func_relconcat): New functions.
58636         Give an error if --local-dir is given with --update.
58637         Remove trailing slashes from $local_gnulib_dir.
58638         (func_import): Store the relativized $local_gnulib_dir in
58639         gnulib-cache.m4, and read it from there if not specified explicitly.
58640
58641 2006-08-28  Bruno Haible  <bruno@clisp.org>
58642
58643         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58644         is the current directory. Respect also $local_gnulib_dir.
58645
58646 2006-08-28  Bruno Haible  <bruno@clisp.org>
58647             Simon Josefsson  <jas@extundo.com>
58648
58649         BeOS portability.
58650         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58651
58652 2006-08-27  Jim Meyering  <jim@meyering.net>
58653
58654         * doc/visibility.texi: Remove duplicate word: "pointer".
58655
58656 2006-08-26  Bruno Haible  <bruno@clisp.org>
58657
58658         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58659         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58660         (Makefile.am): Create inttypes.h from inttypes_.h.
58661         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58662
58663         * modules/imaxabs: New file.
58664
58665         * modules/imaxdiv: New file.
58666
58667 2006-08-26  Bruno Haible  <bruno@clisp.org>
58668
58669         * m4/inttypes.m4: New file.
58670         * m4/_inttypes_h.m4: Remove file.
58671         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58672         PRI_MACROS_BROKEN.
58673         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58674
58675         * m4/imaxabs.m4: New file.
58676
58677         * m4/imaxdiv.m4: New file.
58678
58679 2006-08-26  Bruno Haible  <bruno@clisp.org>
58680
58681         * lib/inttypes_.h: New file.
58682         * lib/inttypes.h: Remove file.
58683         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58684
58685         * lib/imaxabs.c: New file.
58686
58687         * lib/imaxdiv.c: New file.
58688
58689 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58690
58691         New config-h module, so that "make" output needn't be cluttered
58692         by -DHAVE_CONFIG_H.
58693         * MODULES.html.sh (Support for building libraries and executables):
58694         Add config-h.
58695         * modules/config-h: New file.
58696         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58697         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58698         the config-h module is used.
58699
58700         New configmake module, so that "make" output needn't be cluttered
58701         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58702         * MODULES.html.sh (Support for building libraries and executables):
58703         Add configmake.
58704         * modules/configmake: New file.
58705
58706 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58707
58708         * m4/config-h.m4: New file.
58709
58710 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58711
58712         * config/srclist.txt: Add elisp-comp.
58713
58714 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58715
58716         * MODULES.html.sh (Support for building libraries and executables):
58717         Add elisp-comp.
58718         * build-aux/elisp-comp: New file.
58719         * modules/elisp-comp: New file.
58720
58721 2006-08-24  Bruno Haible  <bruno@clisp.org>
58722
58723         * gnulib-tool (func_create_testdir): Use non-default values of
58724         sourcebase and m4base.
58725
58726 2006-08-24  Bruno Haible  <bruno@clisp.org>
58727
58728         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58729         HTML structure.
58730
58731 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         * modules/openat (Depends-on): Add lchown.
58734
58735 2006-08-23  Bruno Haible  <bruno@clisp.org>
58736
58737         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58738         of gl_LOCK_EARLY instead of gl_LOCK.
58739
58740 2006-08-23  Bruno Haible  <bruno@clisp.org>
58741
58742         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58743         on OSF/1 to no.
58744         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58745
58746 2006-08-23  Bruno Haible  <bruno@clisp.org>
58747
58748         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58749         as unusable.
58750
58751         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58752         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58753         (gl_LOCK): New macro.
58754
58755 2006-08-22  Simon Josefsson  <jas@extundo.com>
58756
58757         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58758         to md5 module.
58759
58760 2006-08-22  Simon Josefsson  <jas@extundo.com>
58761
58762         * MODULES.html.sh: Add "Support for maintaining and release
58763         projects".
58764
58765         * build-aux/gnupload: New file, from coreutils.
58766
58767 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58768
58769         Avoid the need for AC_LIBSOURCES in m4 macros.
58770         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58771         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58772         * modules/check-version (EXTRA_DIST): Add check-version.h.
58773         * modules/crc (EXTRA_DIST): Add crc.h.
58774         * modules/des (EXTRA_DIST): Add des.h.
58775         * modules/gc (EXTRA_DIST): Add gc.h.
58776         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58777         * modules/getline (EXTRA_DIST): Add getline.h.
58778         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58779         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58780         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58781         * modules/md2 (EXTRA_DIST): Add md2.h.
58782         * modules/md4 (EXTRA_DIST): Add md4.h.
58783         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58784         * modules/read-file (EXTRA_DIST): Add read-file.h.
58785         * modules/readline (EXTRA_DIST): Add readline.h.
58786         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58787         rijndael-api-fst.h.
58788
58789 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58790
58791         * m4/rijndael.m4 (gl_ARCFOUR):
58792         * m4/arctwo.m4 (gl_ARCTWO):
58793         * m4/check-version.m4 (gl_CHECK_VERSION):
58794         * m4/crc.m4 (gl_CRC):
58795         * m4/des.m4 (gl_DES):
58796         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58797         * m4/gc.m4 (gl_GC):
58798         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58799         * m4/getline.m4 (gl_FUNC_GETLINE):
58800         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58801         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58802         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58803         * m4/md2.m4 (gl_MD2):
58804         * m4/md4.m4 (gl_MD4):
58805         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58806         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58807         * m4/readline.m4 (gl_FUNC_READLINE):
58808         * m4/rijndael.m4 (gl_RIJNDAEL):
58809         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58810         to get the necessary .h files and whatnot.
58811
58812 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58813
58814         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58815         gnulib rather than the other way around.
58816         * config/srclistvars.sh (COREUTILS): Remove.
58817
58818 2006-08-22  Jim Meyering  <jim@meyering.net>
58819
58820         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58821
58822         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58823
58824 2006-08-22  Eric Blake  <ebb9@byu.net>
58825
58826         * modules/regexprops-generic: New file.
58827         * MODULES.html.sh (Support for building documentation): List it.
58828
58829 2006-08-22  Eric Blake  <ebb9@byu.net>
58830
58831         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58832         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58833         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58834         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58835
58836 2006-08-22  Bruno Haible  <bruno@clisp.org>
58837
58838         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58839         and lib_LTLIBRARIES like the other lib_* variables.
58840
58841 2006-08-22  Bruno Haible  <bruno@clisp.org>
58842
58843         * build-aux/x-to-1.in: New file, from GNU gettext.
58844
58845 2006-08-22  Bruno Haible  <bruno@clisp.org>
58846
58847         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58848         <utmpx.h> exists.
58849
58850 2006-08-22  Bruno Haible  <bruno@clisp.org>
58851
58852         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58853         <utmpx.h> exists.
58854
58855 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         BeOS portability.
58858         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58859         exist.
58860         Problem reported by Bruno Haible.
58861
58862 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58863
58864         Avoid the need for AC_LIBSOURCES in m4 macros.
58865         * modules/acl (EXTRA_DIST): Add acl.h.
58866         * modules/argmatch (Files): Add m4/argmatch.m4.
58867         (configure.ac): Add gl_ARGMATCH.
58868         (EXTRA_DIST): Renamed from lib_SOURCES, for
58869         consistency with the other modules.  Remove argmatch.c.
58870         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58871         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58872         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58873         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58874         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58875         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58876         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58877         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58878         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58879         * modules/closeout (EXTRA_DIST): Add closeout.h.
58880         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58881         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58882         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58883         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58884         dirname.h; remove basename.c and stripslash.c.
58885         * modules/exclude (EXTRA_DIST): Add exclude.h.
58886         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58887         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58888         * modules/file-type (EXTRA_DIST): Add file-type.h.
58889         * modules/filemode (EXTRA_DIST): Add filemode.h.
58890         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58891         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58892         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58893         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58894         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58895         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58896         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58897         * modules/getdate (EXTRA_DIST): Add getdate.c.
58898         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58899         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58900         * modules/getpass (EXTRA_DIST): Add getpass.h.
58901         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58902         * modules/group-member (EXTRA_DIST): Add group-member.h.
58903         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58904         * modules/hash (EXTRA_DIST): Add hash.h.
58905         * modules/human (EXTRA_DIST): Add human.h.
58906         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58907         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58908         * modules/lchown (EXTRA_DIST): Add lchown.h.
58909         * modules/long-options (EXTRA_DIST): Add long-options.h.
58910         * modules/lstat (EXTRA_DIST): Add lstat.h.
58911         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58912         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58913         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58914         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58915         * modules/memxor (EXTRA_DIST): Add memxor.h.
58916         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58917         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58918         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58919         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58920         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58921         * modules/physmem (EXTRA_DIST): Add physmem.h.
58922         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58923         * modules/posixver (EXTRA_DIST): Add posixver.h.
58924         * modules/quote (EXTRA_DIST): Add quote.h.
58925         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58926         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58927         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58928         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58929         regex_internal.h regexec.c.
58930         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58931         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58932         * modules/same (EXTRA_DIST): Add same.h.
58933         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58934         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58935         * modules/savedir (EXTRA_DIST): Add savedir.h.
58936         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58937         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58938         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58939         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58940         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58941         * modules/strdup (EXTRA_DIST): Add strdup.h.
58942         * modules/strftime (EXTRA_DIST): Add strftime.h.
58943         * modules/strndup (EXTRA_DIST): Add strndup.h.
58944         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58945         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58946         * modules/time_r (EXTRA_DIST): Add time_r.h.
58947         * modules/timespec (EXTRA_DIST): Add timespec.h.
58948         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58949         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58950         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58951         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58952         * modules/userspec (EXTRA_DIST): Add userspec.h.
58953         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58954         * modules/utimens (EXTRA_DIST): Add utimens.h.
58955         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58956         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58957         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58958         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58959         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58960         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58961         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58962         * modules/yesno (EXTRA_DIST): Add yesno.h.
58963
58964 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58965
58966         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58967
58968         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58969         * m4/dev-ino.m4, same-inode.m4: Remove.
58970
58971         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58972         * m4/acl.m4 (AC_FUNC_ACL):
58973         * m4/backupfile.m4 (gl_BACKUPFILE):
58974         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58975         * m4/canon-host.m4 (gl_CANON_HOST):
58976         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58977         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58978         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58979         * m4/cloexec.m4 (gl_CLOEXEC):
58980         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58981         * m4/closeout.m4 (gl_CLOSEOUT):
58982         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58983         * m4/dirname.m4 (gl_DIRNAME):
58984         * m4/exclude.m4 (gl_EXCLUDE):
58985         * m4/exitfail.m4 (gl_EXITFAIL):
58986         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58987         * m4/file-type.m4 (gl_FILE_TYPE):
58988         * m4/filemode.m4 (gl_FILEMODE):
58989         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58990         * m4/fpending.m4 (gl_FUNC_FPENDING):
58991         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58992         * m4/fts.m4 (gl_FUNC_FTS):
58993         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58994         * m4/getdate.m4 (gl_GETDATE):
58995         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58996         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58997         * m4/getpass.m4 (gl_FUNC_GETPASS):
58998         * m4/gettime.m4 (gl_GETTIME):
58999         * m4/getugroups.m4 (gl_GETUGROUPS):
59000         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
59001         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
59002         * m4/hard-locale.m4 (gl_HARD_LOCALE):
59003         * m4/hash.m4 (gl_HASH):
59004         * m4/idcache.m4 (gl_IDCACHE):
59005         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
59006         * m4/lchown.m4 (gl_FUNC_LCHOWN):
59007         * m4/long-options.m4 (gl_LONG_OPTIONS):
59008         * m4/lstat.m4 (gl_FUNC_LSTAT):
59009         * m4/md5.m4 (gl_MD5):
59010         * m4/memcasecmp.m4 (gl_MEMCASECMP):
59011         * m4/memcoll.m4 (gl_MEMCOLL):
59012         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
59013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
59014         * m4/memxor.m4 (gl_MEMXOR):
59015         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
59016         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
59017         * m4/modechange.m4 (gl_MODECHANGE):
59018         * m4/mountlist.m4 (gl_MOUNTLIST):
59019         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59020         * m4/openat.m4 (gl_FUNC_OPENAT):
59021         * m4/pathmax.m4 (gl_PATHMAX):
59022         * m4/physmem.m4 (gl_PHYSMEM):
59023         * m4/posixtm.m4 (gl_POSIXTM):
59024         * m4/posixver.m4 (gl_POSIXVER):
59025         * m4/quote.m4 (gl_QUOTE):
59026         * m4/quotearg.m4 (gl_QUOTEARG):
59027         * m4/readtokens.m4 (gl_READTOKENS):
59028         * m4/readutmp.m4 (gl_READUTMP):
59029         * m4/regex.m4 (gl_REGEX):
59030         * m4/safe-read.m4 (gl_SAFE_READ):
59031         * m4/safe-write.m4 (gl_SAFE_WRITE):
59032         * m4/same.m4 (gl_SAME):
59033         * m4/save-cwd.m4 (gl_SAVE_CWD):
59034         * m4/savedir.m4 (gl_SAVEDIR):
59035         * m4/settime.m4 (gl_SETTIME):
59036         * m4/sha1.m4 (gl_SHA1):
59037         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
59038         * m4/stat-macros.m4 (gl_STAT_MACROS):
59039         * m4/stat-time.m4 (gl_STAT_TIME):
59040         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
59041         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
59042         * m4/strdup.m4 (gl_FUNC_STRDUP):
59043         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
59044         * m4/strndup.m4 (gl_FUNC_STRNDUP):
59045         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
59046         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
59047         * m4/time_r.m4 (gl_TIME_R):
59048         * m4/timespec.m4 (gl_TIMESPEC):
59049         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
59050         * m4/unlinkdir.m4 (gl_UNLINKDIR):
59051         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
59052         * m4/userspec.m4 (gl_USERSPEC):
59053         * m4/utimecmp.m4 (gl_UTIMECMP):
59054         * m4/utimens.m4 (gl_UTIMENS):
59055         * m4/xalloc.m4 (gl_XALLOC):
59056         * m4/xgetcwd.m4 (gl_XGETCWD):
59057         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59058         * m4/xreadlink.m4 (gl_XREADLINK):
59059         * m4/xstrtod.m4 (gl_XSTRTOD):
59060         * m4/yesno.m4 (gl_YESNO):
59061         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59062         to get the necessary .h files and whatnot.
59063
59064 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59065             Bruno Haible  <bruno@clisp.org>
59066
59067         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59068         /bin/sh understanding of '!' conditional negation.
59069
59070 2006-08-21  Jim Meyering  <jim@meyering.net>
59071
59072         * modules/openat (Depends-on): Really alphabetize.
59073
59074         * modules/acl (Depends-on): Add error and quote.
59075
59076         * check-module (find_included_lib_files): Add at-func.c to the
59077         ok-to-include-more-than-once white list.
59078
59079         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59080
59081 2006-08-21  Bruno Haible  <bruno@clisp.org>
59082
59083         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59084         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59085         Reported by Martin Lambers <marlam@marlam.de>.
59086
59087 2006-08-21  Bruno Haible  <bruno@clisp.org>
59088
59089         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59090         specify an installation location, don't emit a noinst_LIBRARIES or
59091         noinst_LTLIBRARIES assignment.
59092
59093 2006-08-21  Bruno Haible  <bruno@clisp.org>
59094
59095         BeOS portability.
59096         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59097         BeOS has mbrtowc() but no <wctype.h>.
59098
59099 2006-08-21  Bruno Haible  <bruno@clisp.org>
59100
59101         BeOS portability.
59102         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59103         exist.
59104
59105 2006-08-21  Bruno Haible  <bruno@clisp.org>
59106
59107         BeOS portability.
59108         * lib/mbchar.h: Include <wctype.h> only if it exists.
59109
59110 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59111
59112         Remove files that are no longer needed by their respective modules.
59113         * m4/obstack.m4: Remove.
59114         * m4/strerror_r.m4: Remove.
59115         * m4/uint32_t.m4: Remove.
59116         * m4/uintptr_t.m4: Remove.
59117         * m4/ullong_max.m4: Remove.
59118         * m4/xstrtoimax.m4: Remove.
59119         * m4/xstrtoumax.m4: Remove.
59120
59121         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59122         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59123         dependencies now capture this.
59124
59125         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59126         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59127         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59128         * m4/human.m4 (gl_HUMAN): Likewise.
59129         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59130         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59131
59132         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59133
59134         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59135         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59136         stdint.
59137         * m4/human.m4 (gl_HUMAN): Likewise.
59138         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59139         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59140         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59141         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59142         * m4/xstrtol (gl_XSTRTOL): Likewise.
59143
59144         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59145         AC_TYPE_LONG_LONG_INT.
59146         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59147         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59148         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59149         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59150
59151         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59152         on stdbool.
59153
59154         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59155         (gl_PREREQ_XSTRTOUL): Remove.
59156
59157         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59158
59159         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59160         mode.
59161
59162 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59163
59164         Add and change modules to make it easier for coreutils to use
59165         gnulib-tool.
59166         * modules/backupfile (Files): Remove m4/d-ino.m4.
59167         (Depends-on): Add d-ino.
59168         * modules/cycle-check (Depends-on): Add stdint.
59169         (lib_SOURCES): Add cycle-check.h.
59170         * modules/d-ino: New module.
59171         * modules/d-type: New module.
59172         * modules/error (Files): Remove m4/strerror_r.m4.
59173         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59174         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59175         m4/inttypes_h.m4, m4/uintmax_t.m4.
59176         (Depends-on): Add stdint.
59177         (lib_SOURCES): Add fsusage.h.
59178         * modules/getcwd (Files): Remove d-ino.m4.
59179         (Depends-on): Add d-ino.
59180         * modules/getndelim2 (Depends-on): Add stdint.
59181         * modules/glob (Files): Remove m4/d-type.m4.
59182         (Depends-on): Add d-type.
59183         * modules/host-os: New module.
59184         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59185         m4/inttypes_h.m4, m4/uintmax_t.m4.
59186         * Depends-on: Add stdint.
59187         (lib_SOURCES): Add human.h.
59188         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59189         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59190         m4/uintmax_t.m4, m4/ulonglong.m4.
59191         (Depends-on): Add stdint.
59192         (EXTRA_DIST): Add inttostr.h.
59193         * modules/lchmod: New module.
59194         * modules/link-follow: New module.
59195         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59196         (Depends-on): Add lchmod.
59197         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59198         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59199         (Depends-on): Add stdint.
59200         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59201         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59202         (Depends-on): Add stdint.
59203         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59204         * modules/perl: New module.
59205         * modules/regex (Depends-on): Add stdint.
59206         * modules/rmdir-errno: New module.
59207         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59208         m4/intmax_t.m4.
59209         (Depends-on): Add stdint.
59210         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59211         m4/uintmax_t.m4.
59212         (Depends-on): Add stdint.
59213         * modules/unlink-busy: New module.
59214         * modules/utimecmp (Depends-on): Add stdint.
59215         * modules/uptime: New module.
59216         * modules/winsz-ioctl: New module.
59217         * modules/winsz-termios: New module.
59218         * modules/xnanosleep (Depends-on): Add nanosleep.
59219         * modules/ullong_max: Remove.
59220         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59221         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59222         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59223         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59224         (Depends-on): Add inttypes.
59225         (lib_SOURCES): Add xstrtol.h.
59226         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59227         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59228         * MODULES.html.sh: Move 'assert' into the assert section.
59229         Move 'dummy' into the linking section.
59230         Remove ullong_max.
59231         Add section for compatibility checks for POSIX:2001 functions,
59232         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59233         winsz-ioctl, and winsz-termios into it.
59234         Add lchmod.
59235         Add top-level Misc section and put host-os, perl, and uptime
59236         into it.
59237
59238 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59239
59240         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59241         now assume the stdint module.  Do not include inttypes.h.
59242         * lib/fsusage.h: Likewise.
59243         * lib/getndelim2.c: Likewise.
59244         * lib/human.h: Likewise.
59245         * lib/inttostr.h: Likewise.
59246         * lib/obstack.c: Likewise.
59247         * lib/regex_internal.h: Likewise.
59248         * lib/tempname.c: Likewise.
59249         * lib/utimecmp.c: Likewise.
59250         * lib/xstrtol.h: Likewise.
59251
59252         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59253
59254         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59255         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59256         * lib/xtime.h: Likewise.
59257
59258 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * modules/openat (Files): Add lib/fchmodat.c.
59261         Fixes problem reported by Jay Youngman.
59262
59263 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59266         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59267
59268 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59269             Bruno Haible  <bruno@clisp.org>
59270
59271         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59272         and is a script that invokes bison. Tighten the code. Add comments.
59273
59274 2006-08-18  Jim Meyering  <jim@meyering.net>
59275
59276         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59277         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59278         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59279         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59280
59281 2006-08-18  Bruno Haible  <bruno@clisp.org>
59282
59283         * modules/bison-i18n: New file.
59284         * MODULES.html.sh (Internationalization functions): Add it.
59285
59286 2006-08-18  Bruno Haible  <bruno@clisp.org>
59287
59288         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59289         sys/statvfs.h. When getmntinfo was found, check its declaration and
59290         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59291
59292 2006-08-18  Bruno Haible  <bruno@clisp.org>
59293
59294         * m4/bison-i18n.m4: New file, from bison.
59295
59296 2006-08-18  Bruno Haible  <bruno@clisp.org>
59297
59298         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59299         (ME_DUMMY): Treat "kernfs" as a dummy.
59300         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59301
59302 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59303
59304         Update from coreutils.
59305
59306         2006-08-15  Jim Meyering  <jim@meyering.net>
59307
59308         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59309
59310         2006-01-17  Jim Meyering  <jim@meyering.net>
59311
59312         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59313
59314         2006-01-11  Jim Meyering  <jim@meyering.net>
59315
59316         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59317         Check for the lchmod function.
59318
59319 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59320
59321         Update from coreutils.
59322
59323         * lib/__fpending.h: Add copyright notice.
59324         * lib/fprintftime.h: Likewise.
59325         * lib/savedir.c: Use (C) in copyright notice.
59326         * lib/savedir.h: Likewise.
59327
59328         2006-08-15  Jim Meyering  <jim@meyering.net>
59329
59330         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59331         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59332         in support of the EXPECTED_ERRNO macro.
59333         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59334         definitions.  Instead, define the appropriate symbols and include
59335         "at-func.c".
59336         * lib/mkdirat.c (mkdirat): Likewise.
59337         * lib/fchmodat.c (fchmodat): Likewise.
59338         (ENOSYS): Remove definition.
59339         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59340         it.  Don't include "unistd--.h" -- it wasn't ever used.
59341
59342         2006-01-17  Jim Meyering  <jim@meyering.net>
59343
59344         Rewrite fts.c not to change the current working directory,
59345         by using openat, fstatat, fdopendir, etc..
59346
59347         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59348         (HAVE_OPENAT_SUPPORT): Define.
59349         [_LIBC] (fchdir): Don't undef or define; no longer used.
59350         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59351         Now, this `function' always succeeds, and consumes its file descriptor
59352         parameter -- so callers must not close such FDs.  Update callers.
59353         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59354         (diropen): Add parameter, SP.  Adjust all callers.
59355         Implement using diropen_fd, rather than open.
59356         (fts_open): Initialize new member, fts_cwd_fd.
59357         Remove fts_rft-setting code.
59358         (fts_close): Close fts_cwd_fd, if necessary.
59359         (__opendir2): Define in terms of opendir or opendirat,
59360         depending on whether the FST_NOCHDIR flag is set.
59361         (fts_build): Since fts_safe_changedir consumes its FD, and since
59362         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59363         and close the dup'd file descriptor upon failure.
59364         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59365         (fts_safe_changedir): Tweak semantics to reflect that this function
59366         now calls cwd_advance_fd and hence consumes its FD argument.
59367         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59368         [struct FTS] (fts_rft): Remove now-unused member.
59369         [struct FTS] (fts_cycle.state): Improve comment.
59370
59371         * lib/openat.c (openat_needs_fchdir): New function.
59372         * lib/openat.h (openat_needs_fchdir): Declare it.
59373
59374 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59375
59376         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59377         Problem and fix reported by Pádraig Brady in
59378         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59379
59380 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59381
59382         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59383
59384 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         * lib/memcoll.c (memcoll): Optimize for the common case where the
59387         arguments are bytewise equal.
59388
59389 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59390
59391         * doc/regexprops-generic.texi: Add a copyright notice.
59392
59393 2006-08-15  Bruno Haible  <bruno@clisp.org>
59394
59395         * modules/tmpdir (License): Change to LGPL.
59396
59397 2006-08-15  Bruno Haible  <bruno@clisp.org>
59398
59399         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59400         module.
59401
59402 2006-08-14  Simon Josefsson  <jas@extundo.com>
59403
59404         * config/srclist.txt: Add gnupload.
59405
59406 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         Change copyright notice from LGPL 2 to GPL 2, since that's the
59409         standard form used in the gnulib repository.
59410         * tests/test-lock.c: Likewise.
59411         * tests/test-stdint.c: Likewise.
59412         * tests/test-tls.c: Likewise.
59413
59414         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59415         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59416         Add copyright notice.
59417
59418         * check-module: Add copyright notice.  Output a copyright
59419         notice if "--version" is specified.
59420         * modules/COPYING: New file.
59421         * tests/test-getaddrinfo.c: Add copyright notice.
59422         * tests/test-verify.c: Likewise.
59423
59424 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59425
59426         Change copyright notice from LGPL 2 to GPL 2, since that's the
59427         standard form used in the gnulib repository.
59428         * lib/lock.c: LGPL -> GPL.
59429         * lib/lock.h: Likewise.
59430         * lib/strnlen1.c: Likewise.
59431         * lib/strnlen1.h: Likewise.
59432         * lib/tls.c: Likewise.
59433         * lib/tls.h: Likewise.
59434         * lib/tmpdir.c: Likewise.
59435
59436         * lib/TODO: Remove; this belongs only in coreutils.
59437
59438 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59439
59440         Add copyright notices to long-enough files that lack them, since
59441         otherwise the files aren't clearly free.  Use the same notice that
59442         getdate.texi already uses.
59443         * doc/alloca-opt.texi: Add copyright notice.
59444         * doc/alloca.texi: Likewise.
59445         * doc/ctime.texi: Likewise.
59446         * doc/functions.texi: Likewise.
59447         * doc/gcd.texi: Likewise.
59448         * doc/gnulib-tool.texi: Likewise.
59449         * doc/inet_ntoa.texi: Likewise.
59450         * doc/visibility.texi: Likewise.
59451
59452         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59453         * doc/quote.texi: Add copyright notice.
59454
59455         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59456         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59457         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59458         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59459         is now obsolete, and give a pointer to the Sun list.
59460         Add copyright notice.
59461
59462 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         * config/srclistvars.sh: Add copyright notice.
59465
59466 2006-08-14  Eric Blake  <ebb9@byu.net>
59467
59468         Import the following change from libc:
59469
59470         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59471
59472         Upstream bug 2997.
59473         * lib/misc/error.c: Add space between program name and message if file
59474         name is missing.
59475
59476 2006-08-12  Karl Berry  <karl@gnu.org>
59477
59478         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59479         remove, these originate in gnulib now.
59480
59481 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59482
59483         * doc/Makefile (standards.info standards.html standards.dvi):
59484         Also depend on make-stds.texi.
59485
59486 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59489         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59490
59491         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59492         in wchar_t.  Problem reported by Eric Blake.
59493
59494         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59495         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59496         Also, help the compiler to keep LEN in a register.
59497
59498 2006-08-11  Eric Blake  <ebb9@byu.net>
59499
59500         * users.txt: Sort.  Add tar.
59501
59502 2006-08-11  Bruno Haible  <bruno@clisp.org>
59503
59504         * users.txt: New file.
59505
59506 2006-08-11  Bruno Haible  <bruno@clisp.org>
59507
59508         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59509         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59510
59511 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59512
59513         * modules/snprintf (Depends-on): Remove minmax.
59514         (Maintainer): Add self and Bruno.
59515
59516 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59517
59518         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59519         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59520         (EOVERFLOW): Define if the system does not.
59521         Do not include "minmax.h"; it wasn't used.
59522         (snprintf): Don't assume size_t promotes to an unsigned type.
59523         Fix bug when generated string was too long for the buffer: the
59524         buffer's contents are supposed to be the initial prefix of the
59525         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59526         exceeds INT_MAX; do the check ourselves.
59527
59528         Import the following changes from libc:
59529
59530         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59531
59532         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59533         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59534         set wc to the byte which couldn't be converted.
59535         (re_string_reconstruct): Don't clear valid_raw_len before calling
59536         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59537         tip_context using re_string_context_at.
59538
59539         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59540
59541         * lib/posix/regex.h: g++ still cannot handled [restrict].
59542
59543         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59544
59545         * lib/posix/regex.h: Remove special handling for VMS.
59546
59547 2006-08-10  Jim Meyering  <jim@meyering.net>
59548
59549         * modules/same-inode: New module.
59550         * modules/dev-ino: New module.
59551         * modules/cycle-check: Depend on these modules, rather than simply
59552         including their .h files.
59553         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59554         required via m4/cycle-check.m4.
59555         * modules/same: Depend on new same-inode module, rather than
59556         including same-inode.h.
59557         * modules/chdir-safer: New file.
59558
59559         * modules/chown (Depends-on): Add stat-macros.
59560
59561 2006-08-10  Jim Meyering  <jim@meyering.net>
59562
59563         * m4/cycle-check.m4: New file.
59564         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59565         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59566
59567 2006-08-10  Eric Blake  <ebb9@byu.net>
59568
59569         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59570         in from original proposal.
59571
59572 2006-08-10  Eric Blake  <ebb9@byu.net>
59573         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59574
59575         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59576         namespace.
59577
59578 2006-08-10  Bruno Haible  <bruno@clisp.org>
59579
59580         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59581         as well.
59582
59583 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         Sync from coreutils.
59586
59587         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59588
59589         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59590         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59591
59592 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * modules/restrict: Remove; no longer needed now that we assume
59595         Autoconf 2.59 or later.
59596         * MODULES.html.sh: Remove 'restrict'.
59597         * modules/argp (Depends-on): Remove 'restrict'.
59598         * modules/base64 (Depends-on): Likewise.
59599         * modules/gc (Depends-on): Likewise.
59600         * modules/getaddrinfo (Depends-on): Likewise.
59601         * modules/glob (Depends-on): Likewise.
59602         * modules/inet_ntop (Depends-on): Likewise.
59603         * modules/inet_pton (Depends-on): Likewise.
59604         * modules/memxor (Depends-on): Likewise.
59605         * modules/regex (Depends-on): Likewise.
59606         * modules/strtok_r (Depends-on): Likewise.
59607         * modules/time_r (Depends-on): Likewise.
59608
59609 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59610
59611         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59612         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59613         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59614         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59615         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59616         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59617         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59618         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59619
59620         Merge from coreutils.
59621         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59622         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59623         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59624         * m4/time_r.m4 (gl_TIME_R): Likewise.
59625
59626 2006-08-09  Karl Berry  <karl@gnu.org>
59627
59628         * config/srclist.txt: no more gettext-tools, per Bruno.
59629
59630 2006-08-08  Eric Blake  <ebb9@byu.net>
59631
59632         * modules/verror: New module.
59633         * MODULES.html.sh: Document it.
59634
59635 2006-08-08  Eric Blake  <ebb9@byu.net>
59636
59637         * lib/verror.h, lib/verror.c: New files.
59638
59639 2006-08-08  Eric Blake  <ebb9@byu.net>
59640
59641         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59642         verror_at_line output complies with GNU Coding Standards even when
59643         file is NULL.
59644
59645 2006-08-07  Bruno Haible  <bruno@clisp.org>
59646
59647         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59648         versions of AIX.
59649         Reported by Ralf Wildenhues.
59650
59651 2006-08-07  Bruno Haible  <bruno@clisp.org>
59652
59653         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59654         in an AC_DEFUN. Needed so that the autoconf snippets can use
59655         AC_REQUIRE.
59656
59657 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59658
59659         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59660         Initialize pkgdata_DATA.
59661         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59662         overriding it.
59663
59664 2006-08-06  Eric Blake  <ebb9@byu.net>
59665
59666         * lib/error.h: Fold in some upstream changes from glibc.
59667         * lib/error.c: Likewise.
59668
59669 2006-08-04  Bruno Haible  <bruno@clisp.org>
59670
59671         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59672         Make the mostlyclean-local rule depend on mostlyclean-generic.
59673         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59674
59675 2006-07-31  Bruno Haible  <bruno@clisp.org>
59676
59677         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59678         <stdlib.h>, <string.h>.
59679
59680 2006-07-30  Bruno Haible  <bruno@clisp.org>
59681
59682         * modules/readlink (License): Change to LGPL.
59683
59684 2006-07-30  Bruno Haible  <bruno@clisp.org>
59685
59686         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59687         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59688         set PKGDATADIR to point to it.
59689
59690 2006-07-30  Bruno Haible  <bruno@clisp.org>
59691
59692         * modules/csharpexec (configure.ac): Comment out macro invocation.
59693         * modules/javaexec (configure.ac): Likewise.
59694         * modules/javacomp-script (configure.ac): Likewise.
59695
59696         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59697
59698 2006-07-30  Bruno Haible  <bruno@clisp.org>
59699
59700         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59701         linked-list.
59702
59703 2006-07-30  Bruno Haible  <bruno@clisp.org>
59704
59705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59706
59707 2006-07-30  Bruno Haible  <bruno@clisp.org>
59708
59709         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59710         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59711         get removed.
59712
59713 2006-07-29  Bruno Haible  <bruno@clisp.org>
59714
59715         Make it possible for gnulib-tool to work with locally modified or
59716         augmented gnulib repositories.
59717         * gnulib-tool (func_usage): Document --local-dir option.
59718         (local_gnulib_dir): New variable.
59719         Handle --local-dir option.
59720         (func_lookup_file): New function.
59721         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59722         (func_get_description, func_get_filelist, func_get_description,
59723         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59724         func_get_automake_snippet, func_get_include_directive,
59725         func_get_license, func_get_maintainer): Use func_lookup_file.
59726         (func_import, func_create_testdir): Use func_lookup_file.
59727
59728 2006-07-29  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/setenv (Depends-on): Add unistd.
59731
59732 2006-07-29  Bruno Haible  <bruno@clisp.org>
59733
59734         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59735
59736 2006-07-29  Bruno Haible  <bruno@clisp.org>
59737
59738         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59739
59740 2006-07-29  Bruno Haible  <bruno@clisp.org>
59741
59742         * gnulib-tool (import, update): If there is no Makefile.am, look at
59743         aclocal.m4, instead of bailing out.
59744
59745 2006-07-29  Bruno Haible  <bruno@clisp.org>
59746
59747         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59748         Categorize the options by when they are useful.
59749
59750 2006-07-29  Bruno Haible  <bruno@clisp.org>
59751
59752         * gnulib-tool (func_usage): Document option --no-libtool.
59753         Handle option --no-libtool.
59754         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59755         for changed semantics of $libtool variable.
59756         (func_import): Likewise. If libtool is not used, show this through
59757         an option --no-libtool.
59758         (func_create_testdir): Update.
59759
59760 2006-07-29  Bruno Haible  <bruno@clisp.org>
59761
59762         * gnulib-tool (func_import): Extend error message about missing
59763         --doc-base.
59764
59765 2006-07-29  Bruno Haible  <bruno@clisp.org>
59766
59767         * gnulib-tool (func_import): Don't create the $docbase directory if
59768         there is no file to store there.
59769
59770 2006-07-29  Bruno Haible  <bruno@clisp.org>
59771
59772         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59773         relevant, look for configure.ac there, not in the current directory.
59774         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59775
59776 2006-07-29  Bruno Haible  <bruno@clisp.org>
59777
59778         * gnulib-tool (SORT): New variable.
59779         (func_usage): Undocument --assume-autoconf option.
59780         Remove --assume-autoconf option handling.
59781         (autoconf_minversion): Determine from the contents of configure.ac.
59782         (func_import): Remove autoconf_minversion handling.
59783         Suggested by Eric Blake.
59784
59785 2006-07-29  Bruno Haible  <bruno@clisp.org>
59786
59787         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59788
59789 2006-07-29  Bruno Haible  <bruno@clisp.org>
59790
59791         * config/srclist.txt (*setenv.[ch]): Remove rules.
59792
59793 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59794
59795         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59796
59797 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59798
59799         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59800         arpa/inet.h.
59801
59802 2006-07-28  Simon Josefsson  <jas@extundo.com>
59803
59804         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59805         * modules/inet_pton (Depends-on): Likewise.
59806
59807 2006-07-28  Simon Josefsson  <jas@extundo.com>
59808
59809         * m4/netinet_in_h.m4: New file.
59810
59811 2006-07-28  Simon Josefsson  <jas@extundo.com>
59812
59813         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59814         #include's.
59815
59816 2006-07-28  Simon Josefsson  <jas@extundo.com>
59817
59818         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59819         #include's.
59820
59821 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59822
59823         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59824         setgid on directories only if they set these bits.
59825         * lib/modechange.h: Remove obsolete comment about masks.
59826
59827 2006-07-28  Eric Blake  <ebb9@byu.net>
59828
59829         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59830         macro expansion.
59831
59832 2006-07-28  Bruno Haible  <bruno@clisp.org>
59833
59834         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59835
59836 2006-07-28  Bruno Haible  <bruno@clisp.org>
59837
59838         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59839
59840 2006-07-28  Bruno Haible  <bruno@clisp.org>
59841
59842         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59843         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59844         Define fallbacks.
59845         Avoids link error on FreeBSD 4.x.
59846         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59847
59848         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59849         encoding.
59850         * lib/mbswidth.c (iswcntrl): Likewise.
59851
59852 2006-07-27  Bruno Haible  <bruno@clisp.org>
59853
59854         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59855         test.
59856
59857 2006-07-27  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59860         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59861         defined.
59862
59863 2006-07-26  Eric Blake  <ebb9@byu.net>
59864
59865         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59866
59867 2006-07-26  Eric Blake  <ebb9@byu.net>
59868
59869         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59870         like mingw that lack mkstemp.
59871         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59872         avoid compilation warning on mingw.
59873
59874 2006-07-26  Bruno Haible  <bruno@clisp.org>
59875
59876         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59877         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59878         INT_FAST*_MIN, INTPTR_MIN.
59879
59880 2006-07-25  Bruno Haible  <bruno@clisp.org>
59881
59882         * modules/version-etc (Depends-on): Add stdarg.
59883
59884 2006-07-25  Bruno Haible  <bruno@clisp.org>
59885
59886         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59887         complex commands.
59888
59889 2006-07-25  Bruno Haible  <bruno@clisp.org>
59890
59891         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59892         defined in <stdarg.h> or config.h.
59893
59894 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59897         (gl_STDIO_SAFER): Remove.
59898
59899 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59900
59901         * MODULES.html.sh (File stream based Input/Output):
59902         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59903         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59904         * modules/fopen-safer, modules/tmpfile-safer: New files.
59905         * modules/stdio-safer: Remove.
59906
59907 2006-07-24  Bruno Haible  <bruno@clisp.org>
59908
59909         * modules/tmpdir: New file.
59910         * MODULES.html.sh (File system functions): Add it.
59911
59912 2006-07-24  Bruno Haible  <bruno@clisp.org>
59913
59914         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59915         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59916
59917 2006-07-24  Bruno Haible  <bruno@clisp.org>
59918
59919         * modules/clean-temp: New file.
59920
59921 2006-07-24  Bruno Haible  <bruno@clisp.org>
59922
59923         * m4/tmpdir.m4: New file, from GNU gettext.
59924
59925 2006-07-24  Bruno Haible  <bruno@clisp.org>
59926
59927         * lib/tmpdir.h: New file, from GNU gettext.
59928         * lib/tmpdir.c: New file, from GNU gettext.
59929
59930 2006-07-24  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/clean-temp.h: New file, from GNU gettext.
59933         * lib/clean-temp.c: New file, from GNU gettext.
59934
59935 2006-07-23  Eric Blake  <ebb9@byu.net>
59936
59937         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59938         (Depends-on): Add binary-io.
59939
59940 2006-07-23  Eric Blake  <ebb9@byu.net>
59941
59942         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59943
59944 2006-07-23  Eric Blake  <ebb9@byu.net>
59945
59946         * lib/tmpfile-safer.c: New file.
59947         * lib/stdio-safer.h (fopen_safer): Add prototype.
59948         * lib/stdio--.h (tmpfile): Make safer.
59949
59950 2006-07-23  Bruno Haible  <bruno@clisp.org>
59951
59952         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59953         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59954         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59955         gl_linked_remove_at): Use it.
59956
59957 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59958         and Simon Josefsson <jas@extundo.com>
59959
59960         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59961
59962         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59963
59964 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59965
59966         * modules/close-stream: New file.
59967         * modules/closeout (Description): Make it clear that it exits
59968         with a diagnostic on error.
59969         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59970         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59971
59972 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59973
59974         * m4/close-stream.m4: New file.
59975
59976 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59977
59978         * lib/close-stream.c, lib/close-stream.h: New files.
59979
59980 2006-07-22  Bruno Haible  <bruno@clisp.org>
59981
59982         Merge from GNU gettext 0.15.
59983
59984         2006-05-01  Bruno Haible  <bruno@clisp.org>
59985
59986                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59987
59988         2006-07-22  Bruno Haible  <bruno@clisp.org>
59989
59990                 * modules/javaversion: New file.
59991                 * MODULES.html.sh (Java): Add javaversion.
59992
59993         2006-03-12  Bruno Haible  <bruno@clisp.org>
59994
59995                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59996
59997         2005-12-04  Bruno Haible  <bruno@clisp.org>
59998
59999                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
60000                 (untested).
60001
60002         2006-06-21  Bruno Haible  <bruno@clisp.org>
60003
60004                 Avoid warnings from recent versions of mcs.
60005                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
60006                 -o, -L, -r any more. Use options documented since mcs-1.0
60007                 instead. Similarly for -g.
60008
60009         2005-12-04  Bruno Haible  <bruno@clisp.org>
60010
60011                 * build-aux/csharpcomp.sh.in: Suffix for resources is
60012                 .resources, not .resource.
60013
60014         2005-07-09  Bruno Haible  <bruno@clisp.org>
60015
60016                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
60017                 add a .dll suffix.
60018                 Reported by Mark Junker <mjscod@gmx.de>.
60019
60020         2006-07-22  Bruno Haible  <bruno@clisp.org>
60021
60022                 * modules/gettext: Upgrade to gettext-0.15.
60023                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
60024                 m4/visibility.m4.
60025                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
60026
60027 2006-07-22  Bruno Haible  <bruno@clisp.org>
60028
60029         Merge from GNU gettext 0.15.
60030
60031         2006-03-25  Bruno Haible  <bruno@clisp.org>
60032
60033                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
60034
60035         2006-07-21  Bruno Haible  <bruno@clisp.org>
60036
60037                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
60038                 "1.1".
60039
60040         2006-05-09  Bruno Haible  <bruno@clisp.org>
60041
60042                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
60043                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
60044                 for the conftestver execution.
60045
60046         2006-05-01  Bruno Haible  <bruno@clisp.org>
60047
60048                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
60049                 optional target-version argument. Verify that the compiler
60050                 groks source of the specified source-version, or add -source
60051                 option as necessary. Verify that the compiler produces
60052                 bytecode in the specified target-version, or add -target and
60053                 -source options as necessary. Make the result of the test
60054                 available as variable CONF_JAVAC. Also log error output in
60055                 config.log.
60056
60057         2006-03-11  Bruno Haible  <bruno@clisp.org>
60058
60059                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60060
60061         2006-05-09  Bruno Haible  <bruno@clisp.org>
60062
60063                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60064                 CLASSPATH_SEPARATOR to a semicolon.
60065
60066         2006-03-12  Bruno Haible  <bruno@clisp.org>
60067
60068                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60069                 available as variable CONF_JAVA, for subsequent autoconf
60070                 tests. Also log error output in config.log.
60071
60072         2006-07-19  Bruno Haible  <bruno@clisp.org>
60073
60074                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60075                 that getline works on glibc2 systems. Needed to avoid trouble
60076                 in relocatable.c.
60077                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60078
60079         2005-12-04  Bruno Haible  <bruno@clisp.org>
60080
60081                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60082                 launcher (untested).
60083
60084         2005-12-04  Bruno Haible  <bruno@clisp.org>
60085
60086                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60087
60088         2006-07-22  Bruno Haible  <bruno@clisp.org>
60089
60090                 * gettext.m4: Update from GNU gettext-0.15.
60091                 * nls.m4: Likewise.
60092                 * po.m4: Likewise.
60093                 * inttypes-pri.m4: Likewise.
60094                 * inttypes-h.m4: Renamed from inttypes.m4.
60095                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60096
60097 2006-07-22  Bruno Haible  <bruno@clisp.org>
60098
60099         Merge from GNU gettext 0.15.
60100
60101         2005-07-05  Bruno Haible  <bruno@clisp.org>
60102
60103                 * printf-args.c (printf_fetchargs): Work around broken
60104                 definition of wint_t on mingw.
60105
60106         2005-02-12  Bruno Haible  <bruno@clisp.org>
60107
60108                 * xallocsa.h: Add extern "C" for C++.
60109
60110         2006-05-17  Bruno Haible  <bruno@clisp.org>
60111
60112                 Cygwin portability.
60113                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60114
60115         2006-04-30  Bruno Haible  <bruno@clisp.org>
60116
60117                 * progreloc.c: Include <mach-o/dyld.h> if available.
60118                 (find_executable): Use _NSGetExecutablePath when possible.
60119
60120         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60121
60122                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60123                 function.
60124
60125         2005-12-29  Bruno Haible  <bruno@clisp.org>
60126
60127                 * progreloc.c (set_program_name_and_installdir): Fix
60128                 compilation error.
60129
60130         2005-12-04  Bruno Haible  <bruno@clisp.org>
60131
60132                 Cygwin portability.
60133                 * progreloc.c: Include <windows.h> also on Cygwin.
60134                 (find_executable): Add support for Cygwin.
60135                 (set_program_name_and_installdir): Handle also platforms with
60136                 nonempty EXEEXT.
60137
60138         2006-07-11  Bruno Haible  <bruno@clisp.org>
60139
60140                 * javacomp.c: Fix a comment.
60141                 Reported by Jim Meyering.
60142
60143         2006-04-30  Bruno Haible  <bruno@clisp.org>
60144
60145                 * javacomp.h (compile_java_class): Add source_version,
60146                 target_version arguments.
60147                 * javacomp.c: Rewritten to choose only a compiler that
60148                 respects the specified source_version and target_version.
60149
60150         2006-06-27  Bruno Haible  <bruno@clisp.org>
60151
60152                 Assume correct S_ISDIR macro.
60153                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60154
60155         2006-07-22  Bruno Haible  <bruno@clisp.org>
60156
60157                 * javaversion.h: New file, from GNU gettext.
60158                 * javaversion.c: New file, from GNU gettext.
60159                 * javaversion.java: New file, from GNU gettext.
60160                 * javaversion.class: New file, from GNU gettext.
60161
60162         2006-05-17  Bruno Haible  <bruno@clisp.org>
60163
60164                 Cygwin portability.
60165                 * javaexec.c (execute_java_class): Test for jview program
60166                 also on Cygwin.
60167
60168         2006-04-09  Bruno Haible  <bruno@clisp.org>
60169
60170                 * fatal-signal.c: Don't include string.h.
60171                 (at_fatal_signal): Use a copying loop instead of memcpy.
60172
60173         2005-12-04  Bruno Haible  <bruno@clisp.org>
60174
60175                 * csharpexec.c: Add support for 'clix' launcher (untested).
60176                 (execute_csharp_using_sscli): New function.
60177                 (execute_csharp_program): Call it.
60178
60179         2006-06-21  Bruno Haible  <bruno@clisp.org>
60180
60181                 Avoid warnings from recent versions of mcs.
60182                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60183                 -o, -L, -r any more. Use options documented since mcs-1.0
60184                 instead. Similarly for -g.
60185
60186         2005-07-09  Bruno Haible  <bruno@clisp.org>
60187
60188                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60189                 add a .dll suffix.
60190                 Reported by Mark Junker <mjscod@gmx.de>.
60191
60192         2006-06-17  Bruno Haible  <bruno@clisp.org>
60193
60194                 * config.charset: Update for NetBSD 3.0.
60195
60196         2006-05-17  Bruno Haible  <bruno@clisp.org>
60197
60198                 Cygwin portability.
60199                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60200
60201         2006-05-16  Bruno Haible  <bruno@clisp.org>
60202
60203                 * localcharset.c [CYGWIN]: Include <windows.h>.
60204                 (get_charset_aliases): For Cygwin, return the same CPxxx
60205                 aliases list as under WIN32.
60206                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60207                 the environment variables. Fall back to GetACP().
60208
60209         2006-04-05  Bruno Haible  <bruno@clisp.org>
60210
60211                 * config.charset: Update Juan Manuel Guerrero's address.
60212
60213         2005-02-12  Bruno Haible  <bruno@clisp.org>
60214
60215                 * allocsa.h: Add extern "C" for C++.
60216
60217         2005-02-10  Bruno Haible  <bruno@clisp.org>
60218
60219                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60220                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60221
60222         2006-07-22  Bruno Haible  <bruno@clisp.org>
60223
60224                 * gettext.h: Update to GNU gettext-0.15.
60225
60226 2006-07-22  Bruno Haible  <bruno@clisp.org>
60227
60228         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60229         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60230         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60231
60232 2006-07-21  Eric Blake  <ebb9@byu.net>
60233
60234         * modules/stdlib-safer: New file.
60235         * MODULES.html.sh (File stream based Input/Output): Add
60236         stdlib-safer.
60237
60238 2006-07-21  Eric Blake  <ebb9@byu.net>
60239
60240         * lib/stdlib-safer.h: New file from coreutils, required by
60241         stdlib--.h.
60242
60243 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60244
60245         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60246
60247 2006-07-20  Bruno Haible  <bruno@clisp.org>
60248
60249         * gnulib-tool: Recognize new option --assume-autoconf.
60250         (autoconf_minversion): New variable.
60251         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60252
60253 2006-07-20  Bruno Haible  <bruno@clisp.org>
60254
60255         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60256
60257 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60258
60259         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60260         Reindent and repaginate.
60261
60262 2006-07-19  Derek Price  <derek@ximbiot.com>
60263
60264         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60265         Correct grammar.
60266
60267 2006-07-17  Bruno Haible  <bruno@clisp.org>
60268
60269         * modules/list: New file.
60270         * modules/array-list: New file.
60271         * modules/carray-list, modules/carray-list-tests: New files.
60272         * modules/linked-list, modules/linked-list-tests: New files.
60273         * modules/avltree-list, modules/avltree-list-tests: New files.
60274         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60275         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60276         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60277         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60278         * modules/oset: New file.
60279         * modules/array-oset: New file.
60280         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60281         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60282         * tests/test-carray_list.c: New file.
60283         * tests/test-linked_list.c: New file.
60284         * tests/test-avltree_list.c: New file.
60285         * tests/test-rbtree_list.c: New file.
60286         * tests/test-linkedhash_list.c: New file.
60287         * tests/test-avltreehash_list.c: New file.
60288         * tests/test-rbtreehash_list.c: New file.
60289         * tests/test-avltree_oset.c: New file.
60290         * tests/test-rbtree_oset.c: New file.
60291         * MODULES.html.sh (Container data structures): New section.
60292
60293 2006-07-17  Bruno Haible  <bruno@clisp.org>
60294
60295         * m4/gl_list.m4: New file.
60296
60297 2006-07-17  Bruno Haible  <bruno@clisp.org>
60298
60299         * lib/gl_list.h: New file.
60300         * lib/gl_list.c: New file.
60301         * lib/gl_array_list.h: New file.
60302         * lib/gl_array_list.c: New file.
60303         * lib/gl_carray_list.h: New file.
60304         * lib/gl_carray_list.c: New file.
60305         * lib/gl_linked_list.h: New file.
60306         * lib/gl_linked_list.c: New file.
60307         * lib/gl_anylinked_list1.h: New file.
60308         * lib/gl_anylinked_list2.h: New file.
60309         * lib/gl_avltree_list.h: New file.
60310         * lib/gl_avltree_list.c: New file.
60311         * lib/gl_anyavltree_list1.h: New file.
60312         * lib/gl_anyavltree_list2.h: New file.
60313         * lib/gl_rbtree_list.h: New file.
60314         * lib/gl_rbtree_list.c: New file.
60315         * lib/gl_anyrbtree_list1.h: New file.
60316         * lib/gl_anyrbtree_list2.h: New file.
60317         * lib/gl_anytree_list1.h: New file.
60318         * lib/gl_anytree_list2.h: New file.
60319         * lib/gl_linkedhash_list.h: New file.
60320         * lib/gl_linkedhash_list.c: New file.
60321         * lib/gl_anyhash_list1.h: New file.
60322         * lib/gl_anyhash_list2.h: New file.
60323         * lib/gl_avltreehash_list.h: New file.
60324         * lib/gl_avltreehash_list.c: New file.
60325         * lib/gl_rbtreehash_list.h: New file.
60326         * lib/gl_rbtreehash_list.c: New file.
60327         * lib/gl_anytreehash_list1.h: New file.
60328         * lib/gl_anytreehash_list2.h: New file.
60329
60330         * lib/gl_oset.h: New file.
60331         * lib/gl_oset.c: New file.
60332         * lib/gl_array_oset.h: New file.
60333         * lib/gl_array_oset.c: New file.
60334         * lib/gl_avltree_oset.h: New file.
60335         * lib/gl_avltree_oset.c: New file.
60336         * lib/gl_rbtree_oset.h: New file.
60337         * lib/gl_rbtree_oset.c: New file.
60338         * lib/gl_anytree_oset.h: New file.
60339
60340 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         * m4/mkancesdirs.m4: New file.
60343         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60344         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60345         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60346         it.
60347
60348 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60351         * lib/mkancesdirs.h: New files.
60352         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60353         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60354         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60355         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60356         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60357         callers changed.  Revamp internals significantly, by not
60358         attempting to create directories that are temporarily more
60359         permissive than the final results.  Do not attempt to use
60360         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60361         This removes some race conditions, fixes some bugs, and simplifies
60362         things.  Use new dirchownmod function to do owner and mode changes.
60363         * lib/mkdir-p.h: Likewise.
60364         * lib/modechange.c (octal_to_mode): New function.
60365         (struct mode_change): New member mentioned.
60366         (make_node_op_equals): New arg mentioned.  All callers changed.
60367         (mode_compile): Keep track of which mode bits the user has explicitly
60368         mentioned.
60369         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60370         New arg PMODE_BITS, to keep track of which mode bits the user
60371         mentioned; it treats S_ISUID and S_ISGID speciall.
60372         All callers changed.
60373         * lib/modechange.h: Likewise.
60374
60375 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60376
60377         * MODULES.html.sh: Add mkancestors.
60378         * modules/mkancesdirs: New module.
60379         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60380         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60381         The chdir-safer and afs files are now orphans; I'll remove them
60382         unless someone speaks up.
60383         Add lib/dirchownmod.c, lib/dirchownmod.h.
60384         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60385         Add lchown, mkancesdirs.
60386         (Maintainer): Add self.
60387
60388 2006-07-15  Karl Berry  <karl@gnu.org>
60389
60390         * gnulib-tool: help message wording/arrangement.
60391
60392 2006-07-14  Simon Josefsson  <jas@extundo.com>
60393
60394         * doc/gnulib.texi (Libtool and Windows): New section.
60395
60396 2006-07-12  Simon Josefsson  <jas@extundo.com>
60397
60398         * modules/gendocs (License): Fix license, approved by Karl.
60399
60400 2006-07-12  Eric Blake  <ebb9@byu.net>
60401
60402         * MODULES.html.sh: Add gendocs.
60403
60404 2006-07-11  Eric Blake  <ebb9@byu.net>
60405
60406         * modules/fdl: New module, to install doc/fdl.texi.
60407         * MODULES.html.sh: Add new section for documentation modules.
60408         * gnulib-tool: Avoid space-tab.
60409         (--doc-base): New option, to manage files from doc.
60410
60411 2006-07-11  Eric Blake  <ebb9@byu.net>
60412
60413         * m4/absolute-header.m4: Fix comments to match recent change.
60414
60415 2006-07-11  Eric Blake  <ebb9@byu.net>
60416
60417         * gnulib-tool: List --doc-base before --tests-base.
60418
60419 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60420
60421         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60422
60423 2006-07-11  Bruno Haible  <bruno@clisp.org>
60424
60425         * README: Mention where to put documentation.
60426
60427 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60428
60429         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60430
60431 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60434         to stdint.m4.
60435
60436 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60439         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60440         "no/such/file/stdint.h" when there is no such file, so that
60441         the resulting C code can be parsed by dodgy compilers.
60442         Problems reported by Bob Proulx.
60443
60444 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60445
60446         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60447         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60448         macros into the GNU _D_EXACT_NAMLEN.
60449         * lib/savedir.c:  Likewise.
60450         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60451
60452 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60453         and Paul Eggert  <eggert@cs.ucla.edu>
60454
60455         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60456         * m4/savedir.m4:
60457         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60458         macros into the GNU _D_EXACT_NAMLEN.
60459
60460 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60463         around the absolute name, to work around a problem with the HP-UX
60464         11.23 native C compiler, reported by Bob Proulx.
60465
60466 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         * doc/maintain.texi, make-stds.texi: Sync from
60469         <http://savannah.gnu.org/projects/gnustandards>.
60470
60471 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60472
60473         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60474
60475 2006-07-09  Jim Meyering  <jim@meyering.net>
60476
60477         * m4/glob.m4: Remove a doubled word in a comment.
60478
60479 2006-07-09  Jim Meyering  <jim@meyering.net>
60480
60481         * lib/argp-pv.c: Remove a doubled word in a comment.
60482         * lib/check-version.c (check_version): Likewise.
60483         * lib/javacomp.c (compile_java_class): Likewise.
60484
60485 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60486
60487         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60488         for the benefit of people using Autoconf 2.60.  If you want to
60489         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60490         (or m4/onceonly.m4, if pre-2.57) manually.
60491
60492 2006-07-08  Jim Meyering  <jim@meyering.net>
60493
60494         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60495         comment.
60496         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60497         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60498         comment.
60499
60500 2006-07-08  Jim Meyering  <jim@meyering.net>
60501
60502         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60503
60504 2006-07-07  Simon Josefsson  <jas@extundo.com>
60505
60506         * tests/test-crc.c: Change expected crc value, the test vector
60507         were probably computed using the old broken crc.c?
60508
60509 2006-07-06  Simon Josefsson  <jas@extundo.com>
60510
60511         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60512         now the canonical place for the M4 file).
60513
60514         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60515         from the sys_socket dependency now.
60516
60517         * modules/inet_pton (Files): Ditto.
60518
60519         * modules/inet_ntop (Files): Ditto.
60520
60521 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60522
60523         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60524         not gl_PREREQ_GETUSERSHELL.
60525
60526 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60527
60528         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60529         with only one argument, for Autoconf 2.60.
60530         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60531         expand to nothing, so add a shell command to avoid syntax error.
60532         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60533
60534 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60535
60536         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60537
60538 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60539
60540         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60541         no longer needed.  Check for isblank decl.
60542         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60543         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60544         of existence.
60545
60546 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60547
60548         * lib/getloadavg.c: Use __VMS, not VMS.
60549         * lib/getopt.c: Likewise.
60550         * lib/getpagesize.h: Likewise.
60551         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60552         and probably does not work.
60553
60554 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60555
60556         * lib/.cppi-disable: Add wcwidth.
60557         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60558         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60559         (ISGRAPH): Remove.  All uses changed to isgraph.
60560         (FOLD) [!defined _LIBC]: Remove special case.
60561         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60562         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60563         HAVE_ISBLANK.
60564         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60565         case.
60566
60567 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60568
60569         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60570         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60571         brackets.  Other minor changes to suppress some compiler
60572         warnings.
60573
60574 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60575         and Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60578         of invoking obsolescent AC_HEADER_DIRENT macro.
60579         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60580         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60581         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60582         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60583         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60584         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60585         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60586         * m4/readdir.m4: Remove; no longer needed.
60587
60588 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60589         and Paul Eggert  <eggert@cs.ucla.edu>
60590
60591         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60592         Don't worry about this obsolete case any more.
60593         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60594         directories.
60595         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60596         worry about this obsolete case any more.
60597         * lib/fts.c: Likewise.
60598         * lib/getcwd.c: Likewise.
60599         * lib/glob.h: Likewise.
60600         * lib/savedir.c: Likewise.
60601
60602 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60603
60604         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60605         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60606         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60607         needed.
60608         All uses removed.
60609         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60610         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60611         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60612         needed.
60613         * m4/getdate.m4 (gl_GETDATE): Likewise.
60614         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60615         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60616         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60617         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60618         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60619         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60620         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60621         needed.
60622
60623 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60624
60625         * lib/memcasecmp.c: Include <limits.h>.
60626         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60627         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60628         Don't assume isdigit succeeds only on '0' through '9'.
60629
60630 2006-07-05  Eric Blake  <ebb9@byu.net>
60631
60632         * modules/getaddrinfo (Depends-on): Add snprintf.
60633
60634 2006-07-05  Eric Blake  <ebb9@byu.net>
60635
60636         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60637         to avoid 'header present but could not be compiled' on cygwin.
60638
60639 2006-07-05  Eric Blake  <ebb9@byu.net>
60640
60641         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60642         missing from netdb.h.
60643         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60644
60645 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60646
60647         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60648         no longer needed.
60649         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60650         * m4/getdate.m4 (gl_GETDATE): Likewise.
60651         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60652         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60653         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60654         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60655         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60656
60657 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60658
60659         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60660         All uses of is_space replaced by isspace.
60661         * lib/exit.h: Don't talk about STDC_HEADERS.
60662         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60663         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60664         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60665         replaced by isprint etc.
60666         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60667         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60668         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60669         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60670         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60671         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60672
60673 2006-07-05  Bruno Haible  <bruno@clisp.org>
60674
60675         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60676         the function exists, before testing against AIX.
60677         Reported by Martin Lambers <marlam@marlam.de>.
60678
60679 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60680
60681         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60682         From Mark D. Baushke.
60683
60684 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60685
60686         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60687         to the absolute name, not just one, to bypass Sun C 5.8's
60688         "warning: #include of /usr/include/... may be non-portable".
60689
60690 2006-07-04  Eric Blake  <ebb9@byu.net>
60691
60692         * modules/dirname-tests: New test module.
60693         * tests/test-dirname.c: New file, replacing dirname.c
60694         TEST_DIRNAME section that was recently deleted.
60695
60696 2006-07-04  Bruno Haible  <bruno@clisp.org>
60697
60698         Assume ANSI C header files and <ctype.h> functions.
60699         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60700         (mbsnwidth): Use isprint, iscntrl instead.
60701
60702 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60703
60704         Merge from coreutils.
60705         * MODULES.html.sh: Add xstrtold.
60706         * modules/xstrtold: New file.
60707         * modules/cycle-check (Files): Add lib/same-inode.h.
60708         * modules/dirname (Files): Add m4/double-slash-root.m4.
60709         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60710         * modules/mkdir-p (Files): Add lib/same-inode.h.
60711         * modules/same (Files): Add lib/same-inode.h.
60712
60713 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60714
60715         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60716         This is to keep the terminology clean; POSIX talks about
60717         "absolute pathnames", not "full pathnames", but the GNU
60718         Coding Standards say to use "path" for something else;
60719         so use "absolute" to keep both sides happy.
60720         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60721         Set gl_absolute_header, not gl_full_header_path.
60722         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60723         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60724         All uses changed.
60725
60726         Merge from coreutils.
60727
60728         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60729
60730         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60731         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60732         want to require the building of c-strtod.o.
60733         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60734         needs -lm directly.
60735         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60736
60737         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60738
60739         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60740         --as-needed option if available.  Problem reported by Albert Chin in
60741         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60742         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60743         cc merely issues a bunch of annoying warnings for --as-needed
60744         (this problem was reported by Bob Proulx).  Also, try linking with
60745         -lm to detect a bug in binutils 2.16 (this problem was reported
60746         by Ralf Wildenhues).
60747
60748         2006-06-18  Jim Meyering  <jim@meyering.net>
60749
60750         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60751         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60752         macro.
60753         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60754         also check for glibc-2.4's abort-inducing bug.
60755
60756         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60757         Low-probability clean-up should be to use rmdir to get rid of
60758         the just-created directory, not unlink.
60759
60760         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60761         configure fail, and request a bug report to inform us about it.
60762         Add a comment that, barring reports to the contrary, in 2007 we'll
60763         assume ftruncate is universally available.
60764
60765         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60766
60767         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60768
60769         2006-03-12  Jim Meyering  <jim@meyering.net>
60770
60771         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60772         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60773         * m4/same.m4 (gl_SAME): Likewise.
60774         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60775
60776         2006-03-11  Eric Blake  <ebb9@byu.net>
60777
60778         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60779         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60780         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60781         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60782
60783 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60784
60785         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60786         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60787         reported by Mark D. Baushke, one in
60788         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60789
60790         Merge from coreutils.
60791
60792         * lib/.cppi-disable: Add stdint_.h.
60793         * lib/.cvsignore: Add stdint.h.
60794
60795         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60796
60797         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60798         both double and long double versions.
60799         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60800         * lib/xstrtold.c: New file.
60801         * lib/xstrtod.h (xstrtold): New decl.
60802
60803         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60804
60805         * lib/filemode.c (setst): Remove.
60806         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60807         (arguably) clearer, and the generated code is a bit smaller on my
60808         Debian GNU/Linux stable x86 host.
60809
60810         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60811
60812         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60813         Assume that filemode.h includes sys/types.h and sys/stat.h.
60814         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60815         (ftypelet): Reorder to put common cases first, for efficiency.
60816         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60817         to do 'M'.
60818         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60819         of 10, for compatibility with FreeBSD.  All callers changed.
60820         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60821         types that can't be deduced solely from st_mode.  First arg is now a
60822         const pointer.
60823         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60824         (strmode): Renamed from mode_string.
60825         (filemodestring): New decl.
60826         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60827         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60828         needed.
60829         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60830
60831         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60834         fsusage.h now does that.  Include fsusage.h first, to test interface.
60835         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60836         at most one method (the old code could have generated decls that
60837         didn't conform to C89, not that this was ever exercised).
60838         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60839
60840         2006-03-19  Jim Meyering  <jim@meyering.net>
60841
60842         Work even in a chroot where d_ino values for entries in "/"
60843         don't match the stat.st_ino values for the same names.
60844         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60845         number, iterate through all entries again, using lstat instead.
60846         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60847         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60848
60849         * lib/getcwd.c (__getcwd): Clarify a comment.
60850         Use memcpy in place of a call to strcpy.
60851
60852         2006-03-12  Jim Meyering  <jim@meyering.net>
60853
60854         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60855         matches that of the current directory (which we're about to chdir ".."
60856         out of), then save the dev-ino of the parent, instead.
60857
60858         * lib/same-inode.h (SAME_INODE): New file/macro.
60859         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60860         Include "same-inode.h", instead.
60861         * lib/same.c: Likewise.
60862         * lib/cycle-check.h: Include "same-inode.h".
60863         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60864         * lib/cycle-check.c (SAME_INODE): Remove definition.
60865         * lib/root-dev-ino.h: Include "same-inode.h".
60866
60867         2006-03-11  Eric Blake  <ebb9@byu.net>
60868
60869         * lib/same.c (same_name): s/base_name/last_component/
60870         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60871         * lib/filenamecat.c (file_name_concat): Likewise.
60872
60873         2006-03-11  Eric Blake  <ebb9@byu.net>,
60874                     Paul Eggert  <eggert@cs.ucla.edu>
60875
60876         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60877         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60878         drive prefix.
60879         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60880         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60881         (last_component): New method.
60882         * lib/dirname.c (dir_len): Determine when drive letters need a
60883         subsequent slash.  Preserve // when it is special.
60884         (dir_name): Don't append dot when drive letter is absolute.
60885         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60886         * lib/basename.c (base_name): New semantics - malloc the result.
60887         Preserve // when it is special.  Preserve relative files that look
60888         like drive letters.
60889         (base_len): Preserve // when it is special.
60890         (last_component): New method, similar to old base_name semantics.
60891         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60892         base_name.  Strip redundant slashes from ///.
60893
60894 2006-07-03  Jim Meyering  <jim@meyering.net>
60895
60896         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60897         macro is used before the first cycle_check call.
60898
60899 2006-07-03  Eric Blake  <ebb9@byu.net>
60900
60901         * modules/dirname (Depends-on): Add xstrndup.
60902
60903 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60904
60905         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60906         test cases, so that config.log is a bit easier to follow.
60907
60908 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60911         both are 64 bits, since this seems to be the tradition, and this
60912         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60913         we ever run into a host that prefers long long to long in this
60914         case, we'll need another configure-time test.  Problem reported by
60915         Jim Meyering.
60916
60917 2006-07-02  Eric Blake  <ebb9@byu.net>
60918
60919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60920
60921 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60922
60923         * modules/inttypes (Depends-on): No longer depends on stdint.
60924         * modules/stdint (Description): Say more about assumptions.
60925         Say that the fast types might differ.  Say macros are used.
60926         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60927         (Makefile.am): Revise list of substituted symbols to match
60928         new stdint.m4.
60929         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60930         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60931         * tests/test-stdint.c (verify_same_types)
60932         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60933         the code conforms to C99/C89.
60934         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60935         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60936
60937 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60938
60939         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60940         but fix a bug, by requiring at least 64 bits.
60941         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60942         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60943         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60944         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60945
60946         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60947         changes.  Make 2.59 a prerequisite.  Check and substitute for
60948         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60949         inttypes.h.  Do not use special include files; just use the
60950         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60951         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60952         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60953         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60954         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60955         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60956         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60957         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60958         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60959         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60960         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60961         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60962         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60963         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60964         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60965         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60966         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60967         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60968         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60969         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60970         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60971         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60972         not check for things that C99 does not require, e.g., int8_t.  If
60973         a test isn't needed unless <stdint.h> isn't working, and is
60974         unlikely to be needed for any other reason, then don't do it
60975         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60976         size_t, since we assume C89 freestanding at least.  Do not check
60977         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60978         the right thing even if the types are not defined.  Instead use:
60979         (gl_STDINT_TYPE_PROPERTIES): New macro.
60980         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60981         testing whether <sys/types.h> clashes, as Autoconf does this for
60982         us now.  All uses removed.
60983         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60984         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60985         (gl_CHECK_TYPE_SAME):
60986         Remove; no longer needed.
60987         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60988         exists, since we'll return 0 anyway in that case.
60989         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60990
60991 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60994         possible collision with system files.
60995         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60996         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60997         WCHAR_MIN and WCHAR_MAX in this case.
60998         (<stddef.h>): Do not include; no longer needed.
60999         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
61000         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
61001         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
61002         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
61003         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
61004         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
61005         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
61006         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
61007         !defined(__c99))]: Include in this case too, since it's harmless
61008         now.
61009         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
61010         dangerous to do so.
61011         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
61012         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
61013         (_STDINT_MIN, _STDINT_MAX): New macros.
61014         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
61015         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
61016         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
61017         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
61018         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
61019         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
61020         macros, not typedefs; this simplifies things quite a bit.
61021         Use long int for all types narrower than int64_t.
61022         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
61023         Define in terms of long long int or int64_t or long int,
61024         not int64_t or int32_t.  This saves some compile-time testing.
61025         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
61026         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
61027         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
61028         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
61029         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
61030         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
61031         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
61032         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
61033         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
61034         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
61035         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61036         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61037         undef any previous version and define our own version, for
61038         simplicity and consistency with the new macros for types.
61039         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
61040         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
61041         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
61042         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
61043         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
61044         @WINT_T_SUFFIX@ to keep things simple here.
61045         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
61046         Simplify by assuming typical 8/16/32/64 host, since we're
61047         already doing that elsewhere anyway.
61048         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
61049         and assume long long int is 64 bits if available.  This
61050         speeds up 'configure'.
61051
61052 2006-07-01  Eric Blake  <ebb9@byu.net>
61053
61054         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61055         Reported by Andreas Buening.
61056
61057 2006-07-01  Eric Blake  <ebb9@byu.net>
61058
61059         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61060
61061 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61062
61063         * lib/getaddrinfo.c: fixed typo
61064
61065 2006-06-29  Jim Meyering  <jim@meyering.net>
61066
61067         * modules/strftime (Maintainer): Add my name, since with the
61068         FPRINTFTIME changes strftime.c has forked from glibc.
61069
61070 2006-06-29  Eric Blake  <ebb9@byu.net>
61071
61072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61073
61074 2006-06-29  Eric Blake  <ebb9@byu.net>
61075
61076         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61077
61078 2006-06-29  Eric Blake  <ebb9@byu.net>
61079
61080         * lib/stat_.h: New file.
61081
61082 2006-06-29  Eric Blake  <ebb9@byu.net>
61083
61084         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61085         unused static function.
61086
61087 2006-06-29  Eric Blake  <ebb9@byu.net>
61088
61089         * doc/functions.texi (Function Portability): Document missing lstat
61090         on mingw.
61091
61092 2006-06-29  Eric Blake  <ebb9@byu.net>
61093
61094         * MODULES.html.sh: Add sys_stat.
61095         * modules/sys_stat: New module.
61096         * modules/mkstemp (Depends-on): Add sys_stat.
61097
61098 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61099
61100         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61101
61102 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61103
61104         * m4/c-bs-a.m4: Removed.
61105
61106 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61107
61108         * lib/strftime.c: Assume strftime() exists.
61109
61110 2006-06-29  Derek Price  <derek@ximbiot.com>
61111
61112         * modules/c-bs-a: Removed - \a is C89.
61113         * MODULES.html.sh: Remove c-bs-a.
61114
61115 2006-06-29  Bruno Haible  <bruno@clisp.org>
61116
61117         * modules/wcwidth (License): Change to LGPL.
61118
61119 2006-06-28  Simon Josefsson  <jas@extundo.com>
61120
61121         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61122         on _WIN32.
61123
61124         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61125         getnameinfo.
61126
61127 2006-06-28  Simon Josefsson  <jas@extundo.com>
61128
61129         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61130
61131 2006-06-28  Simon Josefsson  <jas@extundo.com>
61132
61133         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61134         functions there.  It will succeed on Windows XP, but on Windows
61135         2000 and (presumably) earlier, it will fail, and use the internal
61136         re-implementation.
61137         (use_win32_p): New function.
61138         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61139         Support AI_NUMERICSERV to disable getservbyname.
61140         (getnameinfo): New function, only supports
61141         NI_NUMERICHOST|NI_NUMERICSERV for now.
61142
61143         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61144         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61145         getnameinfo.
61146
61147 2006-06-28  Eric Blake  <ebb9@byu.net>
61148
61149         * modules/wcwidth: New file.
61150         * modules/mbchar (Depends-on): Add wcwidth.
61151         * modules/mbswidth (Depends-on): Add wcwidth.
61152         * MODULES.html.sh: Add wcwidth.
61153
61154 2006-06-28  Eric Blake  <ebb9@byu.net>
61155
61156         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61158
61159 2006-06-28  Eric Blake  <ebb9@byu.net>
61160
61161         * lib/xvasprintf.h: Fix comments.
61162
61163 2006-06-28  Eric Blake  <ebb9@byu.net>
61164
61165         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61166         * lib/mbswidth.c (wcwidth): Move from here...
61167         * lib/wcwidth.h: ...to this new file.
61168
61169 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61170
61171         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61172
61173         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61174         it's obsolete.
61175         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61176
61177 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61178
61179         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61180         Autoconf 2.60 says this stuff was obsolete.
61181
61182 2006-06-28  Bruno Haible  <bruno@clisp.org>
61183
61184         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61185
61186 2006-06-28  Bruno Haible  <bruno@clisp.org>
61187
61188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61189         gt_TYPE_WCHAR_T.
61190
61191 2006-06-28  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61194         declaration for wcwidth.
61195         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61196
61197 2006-06-28  Bruno Haible  <bruno@clisp.org>
61198
61199         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61200         (mkdir): Define using _mkdir.
61201
61202 2006-06-28  Bruno Haible  <bruno@clisp.org>
61203
61204         * lib/getaddrinfo.h: Fix POSIX URL.
61205         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61206         _WIN32.
61207         (use_win32_p): Make static.
61208         (getaddrinfo): Reject service name if it is empty or does not consist
61209         solely of decimal digits, or if its value is > 65535.
61210         (getnameinfo): Remove useless casts.
61211
61212 2006-06-27  Simon Josefsson  <jas@extundo.com>
61213
61214         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61215         Eggert and Martin Lambers.
61216
61217 2006-06-27  Simon Josefsson  <jas@extundo.com>
61218
61219         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61220         Eggert and Martin Lambers.
61221
61222 2006-06-27  Bruno Haible  <bruno@clisp.org>
61223
61224         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61225         result to 0, not to empty.
61226         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61227
61228 2006-06-27  Bruno Haible  <bruno@clisp.org>
61229
61230         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61231
61232 2006-06-26  Simon Josefsson  <jas@extundo.com>
61233
61234         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61235         present.
61236
61237 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61238
61239         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61240         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61242
61243 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61244
61245         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61246
61247 2006-06-26  Bruno Haible  <bruno@clisp.org>
61248
61249         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61250
61251 2006-06-26  Bruno Haible  <bruno@clisp.org>
61252
61253         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61254
61255 2006-06-26  Bruno Haible  <bruno@clisp.org>
61256
61257         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61258         SGI C compiler in pre-C99 mode.
61259         Suggested by Mark D. Baushke and Larry Jones.
61260
61261 2006-06-26  Bruno Haible  <bruno@clisp.org>
61262
61263         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61264         WCHAR_MAX.
61265         Reported by Mark D. Baushke and Larry Jones.
61266
61267 2006-06-26  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61270         in pre-C99 mode.
61271         Suggested by Mark D. Baushke and Larry Jones.
61272
61273 2006-06-23  Simon Josefsson  <jas@extundo.com>
61274             Bruno Haible  <bruno@clisp.org>
61275
61276         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61277         Emit mostlyclean-local rule.
61278         (func_emit_tests_Makefile_am): Likewise.
61279         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61280
61281 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61282
61283         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61284
61285 2006-06-23  Bruno Haible  <bruno@clisp.org>
61286
61287         * tests/test-stdint.c: Update to match ISO C 99 Technical
61288         Corrigendum 1.
61289
61290 2006-06-23  Bruno Haible  <bruno@clisp.org>
61291
61292         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61293
61294 2006-06-23  Bruno Haible  <bruno@clisp.org>
61295
61296         * lib/stdint_.h: Treat IRIX like OpenBSD.
61297
61298 2006-06-23  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61301         ISO C 99 Technical Corrigendum 1.
61302
61303 2006-06-22  Simon Josefsson  <jas@extundo.com>
61304
61305         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61306         MinGW.
61307
61308 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61309
61310         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61311         needed.  Some compiler complained about some of them.  Problem reported
61312         by Larry Jones in
61313         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61314
61315 2006-06-21  Simon Josefsson  <jas@extundo.com>
61316
61317         * tests/test-getaddrinfo.c: New file.
61318
61319         * modules/getaddrinfo-tests: New file.
61320
61321         * MODULES.html.sh: Add inet_pton.
61322
61323         * modules/inet_pton: New file.
61324
61325 2006-06-21  Simon Josefsson  <jas@extundo.com>
61326
61327         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61328         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61329         of using the (limited) gnulib implementation on Windows XP.
61330
61331         * m4/inet_pton.m4: New file.
61332
61333 2006-06-21  Simon Josefsson  <jas@extundo.com>
61334
61335         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61336         variable.
61337
61338         * lib/socket_.h: Don't define WINVER.
61339
61340         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61341         slightly modified to work in gnulib.
61342
61343 2006-06-21  Simon Josefsson  <jas@extundo.com>
61344
61345         * doc/gnulib.texi (Windows sockets): Add.
61346
61347 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61348
61349         * lib/read-file.c (fread_file): Start with buffer allocation of
61350         0 bytes rather than 1 byte; this simplifies the code.
61351         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61352         code to free buffer and save/restore errno.
61353         (internal_read_file): Remove unused local.
61354
61355 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61356
61357         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61358         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61359         Problem reported by Denis Excoffier in
61360         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61361
61362 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61363
61364         * modules/sys_socket, modules/socklen: Include sys/types since
61365         FreeBSD 4.x's sys/socket.h needs it.
61366
61367 2006-06-19  Simon Josefsson  <jas@extundo.com>
61368
61369         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61370
61371 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61374
61375 2006-06-19  Bruno Haible  <bruno@clisp.org>
61376
61377         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61378         and FULL_PATH_INTTYPES_H in angle brackets.
61379         Reported by Mark D. Baushke <mdb@gnu.org>.
61380
61381 2006-06-17  Eric Blake  <ebb9@byu.net>
61382
61383         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61384         errno.
61385
61386 2006-06-17  Bruno Haible  <bruno@clisp.org>
61387
61388         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61389         <sys/inttypes.h>.
61390
61391 2006-06-17  Bruno Haible  <bruno@clisp.org>
61392
61393         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61394         whether errno is declared. Assume <errno.h> declares errno.
61395
61396 2006-06-17  Bruno Haible  <bruno@clisp.org>
61397
61398         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61399
61400 2006-06-17  Bruno Haible  <bruno@clisp.org>
61401
61402         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61403         problem on Solaris 2.5.1.
61404
61405 2006-06-16  Eric Blake  <ebb9@byu.net>
61406
61407         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61408         * lib/unicodeio.c [!defined errno]: Likewise.
61409         * lib/strtol.c [!defined errno]: Likewise.
61410         * lib/strtod.c [!defined errno]: Likewise.
61411
61412 2006-06-15  Eric Blake  <ebb9@byu.net>
61413
61414         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61415
61416 2006-06-15  Eric Blake  <ebb9@byu.net>
61417
61418         * config/srclist.txt (ssize_t.m4): Lose sync.
61419
61420 2006-06-15  Bruno Haible  <bruno@clisp.org>
61421
61422         * modules/stdint (Files): Include m4/full-header-path.m4,
61423         m4/size_max.m4, m4/wchar_t.m4.
61424         (Makefile.am): Many more substitutions.
61425         * modules/stdint-tests: New file.
61426         * tests/test-stdint.c: New file.
61427
61428 2006-06-15  Bruno Haible  <bruno@clisp.org>
61429
61430         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61431         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61432         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61433         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61434         gl_CHECK_TYPE_SAME): New macros.
61435
61436 2006-06-15  Bruno Haible  <bruno@clisp.org>
61437
61438         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61439
61440 2006-06-15  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/stdint_.h: Rewritten to be fully auto-configured.
61443         Fixes bug on HP-UX/IA64.
61444
61445 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61446
61447         * lib/getdate.y (__attribute__): Don't define if already defined.
61448         Problem reported by Larry Jones.
61449         * lib/utimens.c (__attribute__): Likewise.
61450
61451 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61452
61453         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61454         reported by Andreas Schwab.
61455
61456 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61457             Bruno Haible  <bruno@clisp.org>
61458
61459         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61460         check for the declaration of strnlen and a run test that exposes the
61461         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61462         rpl_strndup.
61463
61464 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61465             Bruno Haible  <bruno@clisp.org>
61466
61467         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61468
61469 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61470
61471         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61472         compile test, for Tru64 4.0D.
61473
61474 2006-05-28  Karl Berry  <karl@gnu.org>
61475
61476         * config/srclist.txt (printf-args.c): lose sync.
61477
61478 2006-05-26  Martin Lambers  <marlam@marlam.de>
61479
61480         * lib/getpass.c: Updates the test for the native W32 API, and adds
61481         missing includes, thus fixing compilation warnings.
61482
61483 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61484
61485         * lib/exclude.c (exclude_fnmatch): New function.
61486         (excluded_file_name): Call exclude_fnmatch.
61487         * lib/exclude.h (excluded_file_name): New prototype
61488
61489 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61490
61491         * lib/tempname.c (small_open, large_open): New macros.
61492         (__open, __open64) [!_LIBC]: Remove.
61493         (__gen_tempname): Use small_open and large_open instead of __open
61494         and __open64.  This fixes a portability bug on HP-UX 11.11i
61495         reported by Simon Wing-Tang in
61496         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61497
61498 2006-05-24  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61501         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61502         Reported by Thorsten Maerz <torte@netztorte.de> via
61503         Aaron Stone <aaron@serendipity.cx>.
61504
61505 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61506
61507         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61508         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61509         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61510         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61511         not really conditional on the cache.
61512         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61513
61514 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61517         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61518         (my_usleep): Don't mishandle maximum value.
61519
61520 2006-05-19  Jim Meyering  <jim@meyering.net>
61521
61522         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61523
61524 2006-05-17  Bruno Haible  <bruno@clisp.org>
61525
61526         Cygwin portability.
61527         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61528
61529 2006-05-17  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/stdint_.h: Fix recognition of Cygwin.
61532
61533 2006-05-15  Bruno Haible  <bruno@clisp.org>
61534
61535         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61536         on libtool patch by Ralf Wildenhues.
61537
61538 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61539
61540         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61541         test for C99 conformance; (bool) 0.5 is an integer constant
61542         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61543         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61544
61545 2006-05-11  Simon Josefsson  <jas@extundo.com>
61546
61547         * m4/xvasprintf.m4: Fix obvious typo.
61548
61549 2006-05-11  Jim Meyering  <jim@meyering.net>
61550
61551         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61552         James Lemley.
61553
61554 2006-05-10  Simon Josefsson  <jas@extundo.com>
61555
61556         * lib/md4.c: Typo fix, update copyright years.
61557         (K1, K2): Don't use L because it turn computations into 64-bit on
61558         64-bit platforms.
61559
61560 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61561
61562         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61563         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61564         unwanted sign propagation, e.g., on hosts with 64-bit int.
61565         There still are some problems with reeelly weird theoretical hosts
61566         (e.g., 33-bit int) but it's not worth worrying about now.
61567         * lib/sha1.c (rol): Likewise.
61568         (K1, K2, K3, K4): Remove unnecessary L suffix.
61569
61570 2006-05-10  Bruno Haible  <bruno@clisp.org>
61571
61572         * lib/des.c: Cast to avoid warnings.
61573
61574 2006-05-09  Bruno Haible  <bruno@clisp.org>
61575
61576         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61577         (Depends-on): Depend also on xsize, stdarg.
61578         (configure.ac): Add gl_XVASPRINTF.
61579
61580 2006-05-09  Bruno Haible  <bruno@clisp.org>
61581
61582         * m4/xvasprintf.m4: New file.
61583
61584 2006-05-09  Bruno Haible  <bruno@clisp.org>
61585
61586         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61587         (EOVERFLOW): Define fallback value.
61588         (xstrcat): New function.
61589         (xvasprintf): Recognize the special case of a string concatenation.
61590
61591 2006-05-08  Eric Blake  <ebb9@byu.net>
61592
61593         * gnulib-tool (func_version): Base copyright year on CVS date.
61594         (func_emit_copyright_notice): New function.
61595         (func_emit_lib_Makefile_am): Use it.
61596         (func_emit_tests_Makefile_am): Likewise.
61597         (func_import): Likewise.
61598
61599 2006-05-08  Bruno Haible  <bruno@clisp.org>
61600
61601         * modules/stdarg: New file.
61602         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61603
61604 2006-05-08  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/stdarg.m4: New file, from GNU gettext.
61607
61608 2006-05-08  Bruno Haible  <bruno@clisp.org>
61609
61610         * config/srclist.txt (build-aux/config.rpath): different from latest
61611         release.
61612
61613 2006-05-08  Bruno Haible  <bruno@clisp.org>
61614
61615         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61616
61617 2006-05-05  Jim Meyering  <jim@meyering.net>
61618
61619         * m4/warning.m4: New file, derived from bison's file by the same name.
61620
61621 2006-05-03  Bruno Haible  <bruno@clisp.org>
61622
61623         * lib/stdint_.h: Shorter URL.
61624         * lib/inttypes.h: Likewise.
61625
61626 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61627
61628         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61629
61630 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61631
61632         * lib/verify.h: Document the internals better.  Most of this change
61633         was written by Bruno Haible.
61634
61635 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61636
61637         * doc/verify.texi: New file, partly based on a proposal by
61638         Bruno Haible.
61639
61640 2006-05-02  Bruno Haible  <bruno@clisp.org>
61641
61642         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61643         test from here...
61644         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61645
61646 2006-04-29  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61649         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61650
61651 2006-04-29  Bruno Haible  <bruno@clisp.org>
61652
61653         * gnulib-tool: Make --update option actually work.
61654
61655 2006-04-29  Bruno Haible  <bruno@clisp.org>
61656
61657         * doc/gcd.texi: New file.
61658         * doc/gnulib.texi: Include it.
61659
61660 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61661
61662         * lib/getdate.y (get_date): When adding relative date, start with the
61663         initial time, not with the result of the first mktime call.
61664
61665 2006-04-25  Bruno Haible  <bruno@clisp.org>
61666
61667         * gnulib-tool (func_import): Output the include directives in three
61668         blocks, sorted separately.
61669         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61670
61671 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61672
61673         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61674         to define main with arguments, for C++.  Reported by Eric Blake.
61675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61676         Prefer 'int main ()' to 'int main (void)', for C++.
61677         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61679         for 'main', for C99 and C++.
61680
61681 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61682
61683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61684         Don't assume that exit status -1 is valid.
61685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61686         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61687         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61688         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61689         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61690         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61691         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61692         functions can be used without declaring them, or that you can
61693         exit with status -1.
61694         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61695
61696 2006-04-24  Karl Berry  <karl@gnu.org>
61697
61698         * config/srclist.txt (longdouble.m4): sync lost.
61699
61700 2006-04-24  Eric Blake  <ebb9@byu.net>
61701
61702         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61703
61704 2006-04-24  Bruno Haible  <bruno@clisp.org>
61705
61706         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61707         poll() implementation in AIX.
61708         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61709
61710 2006-04-24  Bruno Haible  <bruno@clisp.org>
61711
61712         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61713         assigned exactly once.
61714
61715 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61716             Bruno Haible  <bruno@clisp.org>
61717
61718         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61719         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61720         for AM_CPPFLAGS.
61721
61722 2006-04-23  Bruno Haible  <bruno@clisp.org>
61723
61724         * modules/copy-file: Depend on unistd.
61725         * modules/execute: Likewise.
61726         * modules/fatal-signal: Likewise.
61727         * modules/findprog: Likewise.
61728         * modules/mkdtemp : Likewise.
61729         * modules/pipe: Likewise.
61730         * modules/wait-process: Likewise.
61731
61732 2006-04-23  Bruno Haible  <bruno@clisp.org>
61733
61734         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61735         condition was already detected.
61736         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61737
61738 2006-04-23  Bruno Haible  <bruno@clisp.org>
61739
61740         * lib/copy-file.c: Include <unistd.h> unconditionally.
61741         * lib/execute.c: Likewise.
61742         * lib/fatal-signal.c: Likewise.
61743         * lib/findprog.c: Likewise.
61744         * lib/mkdtemp.c: Likewise.
61745         * lib/pipe.h: Likewise.
61746         * lib/pipe.c: Likewise.
61747         * lib/wait-process.h: Likewise.
61748
61749 2006-04-23  Bruno Haible  <bruno@clisp.org>
61750
61751         * gnulib-tool (func_usage): Fix --import description. Document
61752         --update.
61753         (func_import): Create temporary file in a temporary directory, if
61754         --dry-run is specified. Silence errors from 'grep' when there are no
61755         m4 files in $m4dir.
61756         (func_create_testdir): Silence errors from 'grep' when there are no
61757         m4 files in $m4dir.
61758         Reported by Karl Berry <karl@freefriends.org>.
61759
61760 2006-04-20  Bruno Haible  <bruno@clisp.org>
61761
61762         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61763         one argument, so that the code will be portable to Autoconf 2.60.
61764         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61765         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61766         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61767
61768 2006-04-19  Derek Price  <derek@ximbiot.com>
61769             Eric Blake  <ebb9@byu.net>
61770
61771         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61772         rather than "/full/path.h".  Update comment to match.  Shorten &
61773         generalize m4_translit call via AS_TR_CPP.
61774
61775 2006-04-19  Derek Price  <derek@ximbiot.com>
61776             Eric Blake  <ebb9@byu.net>
61777
61778         * lib/inttypes.h: Correct grammar in comment.
61779
61780 2006-04-18  Derek Price  <derek@ximbiot.com>
61781             Paul Eggert  <eggert@cs.ucla.edu>
61782
61783         * modules/inttypes: New file.
61784         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61785
61786 2006-04-18  Derek Price  <derek@ximbiot.com>
61787             Paul Eggert  <eggert@cs.ucla.edu>
61788
61789         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61790         New files.
61791
61792 2006-04-18  Derek Price  <derek@ximbiot.com>
61793             Paul Eggert  <eggert@cs.ucla.edu>
61794
61795         * lib/inttypes.h: New file.
61796         * lib/strtoimax.c: Assume <inttypes.h>.
61797
61798 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61799
61800         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61801         isn't mounted.  Problem reported by Kir Kolyshkin.
61802
61803 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61804
61805         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61806         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61807         Derek R. Price.
61808         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61809         implementation.
61810
61811 2006-04-12  Eric Blake  <ebb9@byu.net>
61812
61813         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61814         is now done automatically by the corresponding Autoconf macro.
61815
61816 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61817
61818         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61819         time_r.h.
61820
61821 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61822
61823         Merge regex changes from libc, removing some of our
61824         POSIX-conformance changes that were rejected and redoing them in a
61825         less-intrusive way.
61826
61827         * lib/regcomp.c (re_compile_internal, init_dfa):
61828         Length arg is now size_t, not Idx.  All uses changed.
61829         (peek_token): Forward decl now says internal_function.
61830         (__re_error_msgid, __re_error_msgid_idx):
61831         Now static rather than extern with attribute_hidden.
61832         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61833         For some reason libc prefers K&R style defns for external functions.
61834         (regerror) [!defined _LIBC]: Likewise.
61835         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61836         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61837         (build_range_exp, build_collating_symbol):
61838         Use K&R-style defn.
61839         (re_compile_fastmap): Use '\0' to memset, not 0.
61840         (utf8_sb_map): Make the calculations more obvious.
61841         (init_dfa, parse_bracket_exp, build_charclass_op):
61842         Call calloc and cast result, as glibc does.
61843         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61844         (build_range_exp, build_collating_symbol):
61845         Now internal functions.
61846
61847         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61848
61849         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61850         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61851         Don't depend on VMS; depend on __VMS instead, for POSIX
61852         namespace cleanness.
61853         (regoff_t): Define to ssize_t, not long int.
61854
61855         Remove the REG_ macros named below.  Instead, make the old names
61856         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61857         __USE_GNU_REGEX.
61858         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61859         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61860         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61861         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61862         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61863         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61864         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61865         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61866         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61867         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61868         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61869         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61870         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61871         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61872         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61873         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61874         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61875         (REG_NREGS):
61876         Remove.  All uses replaced by the old RE_* names.
61877         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61878         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61879         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61880         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61881         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61882         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61883         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61884         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61885         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61886         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61887         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61888         Don't bother having these macros be independent of each others'
61889         values, since they no longer exist in the POSIX name space.
61890
61891         Rename the following member names back to their old names,
61892         unless !__USE_GNU_REGEX.  All uses changed back.
61893         (buffer): Renamed from re_buffer.
61894         (allocated): Renamed from re_allocated.
61895         (used): Renamed from re_used.
61896         (syntax): Renamed from re_syntax.
61897         (fastmap): Renamed from re_fastmap.
61898         (translate): Renamed from re_translate.
61899         (can_be_null): Renamed from re_can_be_null.
61900         (regs_allocated): Renamed from re_regs_allocated.
61901         (fastmap_accurate): Renamed from re_fastmap_accurate.
61902         (no_sub): Renamed from re_no_sub.
61903         (not_bol): Renamed from re_not_bol.
61904         (not_eol): Renamed from re_not_eol.
61905         (newline_anchor): Renamed from re_newline_anchor.
61906         (num_regs): Renamed from rm_num_regs.
61907         (start): Renamed from rm_start.
61908         (end): Renamed from rm_end.
61909
61910         (free_state): Move up a bit.
61911
61912         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61913         #define to be empty.
61914         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61915         when that is what is intended.
61916         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61917         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61918         (MAX): New macro.
61919         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61920         All uses changed back to re_malloc, etc.  It's now the caller's
61921         responsibility to check for overflow; all callers changed.
61922         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61923         (re_x2nrealloc): Remove.
61924         (free_state): Remove decl.
61925
61926         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61927         (re_set_registers, re_exec):
61928         Use K&R-style defn.
61929
61930         2006-01-31  Roland McGrath  <roland@redhat.com>
61931
61932         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61933         Reported by Mike Frysinger <vapier@gentoo.org>.
61934
61935         2006-01-15  Andreas Jaeger  <aj@suse.de>
61936
61937         [BZ #1950]
61938         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61939         build_wcs_upper_buffer change.
61940         (build_wcs_upper_buffer): Change return type.
61941
61942         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61943
61944         * lib/regex_internal.h: Include <stdint.h> if available.
61945
61946         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61947
61948         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61949
61950         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61951
61952         * lib/regcomp.c: Adjust for changed secondary hash function.
61953
61954         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61955
61956         * lib/regex.h: Pretty printing.
61957         Clean up namespace a bit.
61958
61959         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61960
61961         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61962         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61963
61964         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61965                     Ulrich Drepper  <drepper@redhat.com>
61966
61967         [BZ #1302]
61968         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61969         changed.
61970         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61971
61972         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61973
61974         [BZ #281]
61975         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61976         * lib/regcomp.c: Remove unnecessary uses of
61977         unsigned RE_TRANSLATE_TYPE.
61978         * lib/regex_internal.h: Likewise.
61979         * lib/regex_internal.c: Likewise.
61980         * lib/regexec.c: Likewise.
61981         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61982
61983         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61984
61985         * lib/regexec.c (find_recover_state): Remove unnecessary
61986         initialization.
61987         (transit_state_bkref): Make DFA a const pointer.
61988         (get_subexp): Likewise.
61989         (check_arrival): Likewise.
61990         (update_cur_sifted_state): Likewise.
61991         (re_search_internal): Likewise.
61992         (prune_impossible_nodes): Likewise.
61993         (acquire_init_state_context): Likewise.
61994         (proceed_next_node): Likewise.
61995         (set_regs): Likewise.
61996         (free_fail_stack_return): Likewise.
61997         (check_arrival_expand_ecl): Mark DFA parameter as const.
61998         (check_arrival_expand_ecl_sub): Likewise.
61999         (check_subexp_limits): Likewise.
62000         (sub_epsilon_src_nodes):  Likewise.
62001         (add_epsilon_src_nodes):  Likewise.
62002         (merge_state_array): Likewise.
62003         (update_regs): Likewise.
62004         (build_trtable): Likewise.
62005         (sift_states_backward): Mark MCTX parameter as const.
62006         (build_sifted_states): Likewise.
62007         (update_cur_sifted_state): Likewise.
62008         (sift_states_mkref): Likewise.
62009         (check_arrival_expand_ecl): Mark eclosure as const.
62010         (check_dst_limits_calc_pos_1): Likewise.
62011         * lib/regex_internal.h (re_match_context_t): Make dfa a const
62012         pointer.
62013
62014         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
62015
62016         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
62017         (transit_state_sb): Likewise.
62018         (transit_state_mb): Likewise.
62019         (sift_states_iter_mb): Likewise.
62020         (check_arrival_add_next_nodes): Likewise.
62021         (check_node_accept_bytes): Change first parameter to pointer-to-const.
62022         [_LIBC] (re_search_2_stub): Use mempcpy.
62023
62024         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
62025         mbrtowc for very simple UTF-8 case.
62026
62027         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
62028         a pointer-to-const.
62029         (re_acquire_state_context): Likewise.
62030         * lib/regex_internal.h: Adjust prototypes.
62031
62032         * lib/regex.c: Prevent using C++ compilers.
62033
62034         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
62035         (re_acquire_state_context): Likewise.
62036
62037 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62038
62039         * modules/regex (Depends-on): Add ssize_t.
62040
62041 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62042
62043         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
62044         translation table.
62045
62046 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
62047
62048         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
62049
62050 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
62051             Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62054         <sys/types.h> and <inttypes.h>.
62055
62056 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62057
62058         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62059         `__error_t_defined', so argp.h will not typedef the former.
62060
62061 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62062
62063         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62064         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62065         glibc names.  Even if glibc is changed to conform to POSIX, the
62066         traditional names will be available anyway, since regex depends on
62067         the extensions module.  Also, fix a longstanding typo in the
62068         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62069         reported by Emanuele Giaquinta.  Also, change sense of cached
62070         variable, so that the message makes sense.
62071
62072 2006-03-24  Simon Josefsson  <jas@extundo.com>
62073
62074         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62075         including some doc fixes.
62076         (base64_encode_alloc): Fix +1 bug on allocation failures.
62077
62078 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62079
62080         * lib/base64.c (base64_encode): Do not read past end of array with
62081         unsanitized input on systems with CHAR_BIT > 8.
62082
62083 2006-03-24  Eric Blake  <ebb9@byu.net>
62084
62085         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62086
62087 2006-03-22  Karl Berry  <karl@gnu.org>
62088
62089         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62090         * config/srclistvars.sh (COREUTILS): new var.
62091
62092 2006-03-17  Jim Meyering  <jim@meyering.net>
62093
62094         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62095         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62096
62097 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62100         no longer needs it.  Instead, check that regoff_t is as least
62101         as wide as ptrdiff_t.
62102
62103         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62104         so that our regex.h stays compatible with the installed regex.
62105         This is helpful for installers who configure --without-included-regex.
62106         Problem reported by Emanuele Giaquinta.
62107
62108 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62111         Typedef to long int, not to off_, as POSIX will likely change
62112         in that direction.
62113
62114 2006-03-15  Eric Blake  <ebb9@byu.net>
62115
62116         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62117
62118 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62119
62120         * lib/argp-help.c (validate_uparams): Fix typo
62121         * lib/argp-parse.c (argp_default_options): Consistently begin help
62122         messages with a lowercase letter.
62123
62124 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62125
62126         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62127         overrun buffers and shouldn't be used (much as gets shouldn't be
62128         used).
62129         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62130
62131 2006-03-08  Simon Josefsson  <jas@extundo.com>
62132
62133         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62134         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62135
62136 2006-03-08  Simon Josefsson  <jas@extundo.com>
62137
62138         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62139         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62140
62141 2006-03-08  Simon Josefsson  <jas@extundo.com>
62142
62143         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62144         signal that configure disabled the device.
62145
62146 2006-03-08  Simon Josefsson  <jas@extundo.com>
62147
62148         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62149         languages.
62150
62151 2006-03-07  Simon Josefsson  <jas@extundo.com>
62152
62153         * modules/getopt (Depends-on): Add unistd.
62154
62155         * modules/unistd: New file.
62156
62157 2006-03-07  Simon Josefsson  <jas@extundo.com>
62158
62159         * modules/gc-random: New file.
62160
62161 2006-03-07  Simon Josefsson  <jas@extundo.com>
62162
62163         * m4/unistd_h.m4: New file.
62164
62165 2006-03-07  Simon Josefsson  <jas@extundo.com>
62166
62167         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62168         test to be side-effect free by storing the result in the cache
62169         variable gl_cv_lib_readline, and moving the assignment of
62170         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62171         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62172
62173 2006-03-07  Simon Josefsson  <jas@extundo.com>
62174
62175         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62176         error on missing devices (the functions will return an error).
62177
62178         * m4/gc.m4: Move random stuff to gc-random.m4
62179
62180 2006-03-07  Simon Josefsson  <jas@extundo.com>
62181
62182         * lib/unistd_.h: New file.
62183
62184 2006-03-07  Simon Josefsson  <jas@extundo.com>
62185
62186         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62187
62188 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62189
62190         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62191         Problem reported by Juan Manuel Guerrero.
62192
62193 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62196         the unistd module.
62197         * lib/getlogin_r.c: Likewise.
62198         * lib/getlogin_r.h: Likewise.
62199         * lib/glob.c: Likewise.
62200         * lib/pagealign_alloc.c: Likewise.
62201         * lib/unistd_.h: Remove; no longer needed.
62202
62203 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62204
62205         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62206         Add unistd.
62207         * modules/c-stack (Depends-on): Add unistd.
62208         * modules/getlogin_r: Likewise.
62209         * modules/glob: Likewise.
62210         * modules/pagealign_alloc: Likewise.
62211         * modules/unistd (Files): Remove lib/unistd_.h.
62212         (EXTRA_DIST): Remove.
62213         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62214         need unistd_.h.
62215         (MOSTLYCLEANFILES): Remove unistd.h-t.
62216
62217 2006-03-03  Simon Josefsson  <jas@extundo.com>
62218
62219         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62220
62221 2006-03-03  Simon Josefsson  <jas@extundo.com>
62222
62223         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62224         libidn and bison.
62225
62226 2006-03-03  Simon Josefsson  <jas@extundo.com>
62227
62228         * build-aux/maint.mk: Add indent target.
62229
62230 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62231
62232         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62233         our replacement poll.h in any case, to avoid a differing
62234         declaration from a system header.  Seen on AIX.
62235
62236 2006-03-01  Simon Josefsson  <jas@extundo.com>
62237
62238         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62239         <kasal@ucw.cz>.
62240
62241 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62242
62243         * modules/gettime (Depends-on): Add extensions module.
62244         * modules/nanosleep (Depends-on): Likewise.
62245         * modules/settime (Depends-on): Likewise.
62246
62247 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62248
62249         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62250         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62251         pedantically.
62252         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62253         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62254
62255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62256         not "==".  Reported by Ralf Wildenhues.
62257
62258 2006-03-01  Karl Berry  <karl@gnu.org>
62259
62260         * doc/Copyright/request-*: new files, synced from gnuorg.
62261
62262 2006-03-01  Karl Berry  <karl@gnu.org>
62263
62264         * config/srclist.txt (Copyright/*): new entries.
62265
62266 2006-02-28  Simon Josefsson  <jas@extundo.com>
62267
62268         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62269
62270 2006-02-27  Simon Josefsson  <jas@extundo.com>
62271
62272         * lib/base64.h: Indent #define's.  From Jim Meyering
62273         <jim@meyering.net>.
62274
62275 2006-02-27  Jim Meyering  <jim@meyering.net>
62276
62277         Revert the change of 2006-02-24, so these files can continue
62278         to be sync'd from gettext.
62279         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62280         of `config.h'.
62281
62282 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62283
62284         * modules/intprops: New file.
62285         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62286         Add intprops.
62287         * modules/getloadavg (Files): Remove lib/intprops.h.
62288         (Depends-on): Add intprops.
62289         * modules/human: Likewise.
62290         * modules/inttostr: Likewise.
62291         * modules/openat: Likewise.
62292         * modules/sig2str: Likewise.
62293         * modules/userspec: Likewise.
62294         * modules/utimecmp: Likewise.
62295         * modules/xnanosleep: Likewise.
62296         * modules/xstrtol: Likewise.
62297
62298 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62299
62300         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62301         * modules/lock-tests (TESTS): Use $(EXEEXT).
62302         * modules/tls-tests: Likewise.
62303         * modules/argp-tests: Likewise.
62304         (check_PROGRAMS): New var, replacing...
62305         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62306
62307 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62308
62309         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62310         `config.h'.
62311
62312 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62315
62316 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62317
62318         Sync from coreutils.
62319         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62320         gl_CHDIR_SAFER.
62321
62322 2006-02-22  Jim Meyering  <jim@meyering.net>
62323
62324         Sync from coreutils.
62325         * m4/chdir-safer.m4: New file.
62326
62327 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62330         AT_FDCWD exceeds INT_MAX.
62331         * lib/openat.h (AT_FDCWD): Likewise.
62332
62333 2006-02-17  Eric Blake  <address@hidden>
62334
62335         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62336
62337 2006-02-16  Simon Josefsson  <jas@extundo.com>
62338
62339         * modules/getaddrinfo (Depends-on): Add sys_socket.
62340
62341 2006-02-15  Simon Josefsson  <jas@extundo.com>
62342
62343         * build-aux/maint.mk: Add dsyntax-check rule.
62344
62345 2006-02-15  Eric Blake  <ebb9@byu.net>
62346
62347         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62348         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62349         'present but cannot compile' warnings on cygwin.
62350         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62351         use ws2tcpip.h if sys/socket.h works.
62352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62353         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62354
62355 2006-02-14  Simon Josefsson  <jas@extundo.com>
62356
62357         * modules/maintainer-makefile (Files): Rename.
62358
62359         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62360         and (the local) Makefile.cfg to maint-cfg.mk.
62361
62362         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62363         to the latter.
62364
62365         * modules/maintainer-makefile: New module.
62366
62367         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62368         severaly stripped to make it possible to build it up from scratch
62369         with reliable tests.
62370
62371         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62372         fixes to permit overriding the default actions when configure and
62373         makefile are not available.
62374
62375 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62376
62377         Sync from coreutils.
62378         * modules/lstat (Depends-on): Don't depend on xalloc.
62379         (License): Change from GPL to LGPL, since this is now simply a
62380         replacement for a libc function.
62381
62382 2006-02-14  Jim Meyering  <jim@meyering.net>
62383
62384         Sync from coreutils.
62385
62386         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62387         failure on deficient systems, and simplify gnulib lgpl dependencies.
62388         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62389         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62390
62391         * lib/xalloc-die.c: Remove unused definition of N_.
62392
62393 2006-02-14  Jim Meyering  <jim@meyering.net>
62394
62395         Sync from coreutils.
62396         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62397         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62398         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62399         double-quote uses of that variable, to accommodate the rare case in
62400         which getmntent is available in none of the libraries checked.  This
62401         happens at least on FreeBSD 5.0.
62402
62403 2006-02-13  Simon Josefsson  <jas@extundo.com>
62404
62405         * gnulib-tool (Usage): Fix --import, from
62406         karl@freefriends.org (Karl Berry).
62407
62408 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62409
62410         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62411
62412 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62413
62414         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62415         "autoupdate" on 2005-12-12.
62416
62417 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62418
62419         * modules/closeout (Depends-on): Remove atexit.
62420
62421 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62422
62423         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62424         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62425
62426 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62427
62428         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62429         __EXTENSIONS__ if this causes compilation to fail.  Problem
62430         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62431         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62432
62433 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62434
62435         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62436         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62437         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62438         All uses changed.
62439
62440 2006-01-26  Simon Josefsson  <jas@extundo.com>
62441
62442         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62443         prototype is visible on mingw32.
62444
62445         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62446         for mingw32.
62447
62448         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62449         mingw32).
62450
62451 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62452
62453         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62454         attempt to open for write; this always fails, at least on POSIX
62455         hosts.  This reinstates the 2006-01-09 change, which was
62456         inadvertently removed.
62457
62458 2006-01-26  Bruno Haible  <bruno@clisp.org>
62459
62460         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62461         Reported by Paul Eggert.
62462
62463 2006-01-26  Bruno Haible  <bruno@clisp.org>
62464             Paul Eggert  <eggert@cs.ucla.edu>
62465
62466         * lib/stdbool_.h (_Bool)
62467         [(! (defined __cplusplus || defined __BEOS__)
62468           && !defined __GNUC__
62469           && !(defined __HP_cc || defined __xlc__
62470                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62471                || defined __sgi))]:
62472         #define to signed char in these cases too; this simplifies
62473         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62474         etc., separately) and makes it more conservative.
62475
62476 2006-01-25  Simon Josefsson  <jas@extundo.com>
62477
62478         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62479         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62480         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62481
62482 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62483
62484         * lib/argp-namefrob.h: Bugfix. Remove stray #
62485
62486 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62487
62488         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62489         so that we test the test.
62490         Check for yet another HP-UX cc bug involving *bool |= bool.
62491
62492 2006-01-25  Karl Berry  <karl@gnu.org>
62493
62494         * config/srclist.txt (vasnprintf.c): sync lost.
62495
62496 2006-01-25  Jim Meyering  <jim@meyering.net>
62497
62498         Sync from the stable (b5) branch of coreutils:
62499
62500         * lib/fts.c (fts_children): Don't let close() clobber errno from
62501         failed fchdir().
62502
62503         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62504         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62505         a dangling symlink.  That can also happen at least for ELOOP.
62506         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62507         FYI, this bug predates the inclusion of fts.c in coreutils.
62508
62509         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62510         in their own block, so pre-c99 compilers don't object.
62511
62512         Avoid the double-free (first in fts_read, second in fts_close) that
62513         would occur when an `active' directory is made inaccessible (e.g.,
62514         via chmod a-x) during a traversal.
62515         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62516         before returning.  Reproduce this failure by
62517         mkdir -p a/b; cd a; chmod a-x . b
62518         Reported by Stavros Passas.
62519
62520 2006-01-25  Jim Meyering  <jim@meyering.net>
62521
62522         * lib/fileblocks.c: Remove more useless parentheses.
62523         * lib/readutmp.h: Likewise.
62524
62525 2006-01-25  Bruno Haible  <bruno@clisp.org>
62526
62527         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62528         warnings.
62529         Reported by Paul Eggert.
62530
62531 2006-01-25  Bruno Haible  <bruno@clisp.org>
62532
62533         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62534         rid of a trap command. For Solaris sh.
62535         Reported by Mark D. Baushke <mdb@gnu.org>.
62536
62537 2006-01-24  Simon Josefsson  <jas@extundo.com>
62538
62539         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62540         Bruno.
62541
62542 2006-01-24  Karl Berry  <karl@gnu.org>
62543
62544         * config/srclist.txt (argp-namefrob.h): sync lost.
62545
62546 2006-01-24  Jim Meyering  <jim@meyering.net>
62547
62548         * modules/openat (Files): Add lib/intprops.h.
62549         From Mark D. Baushke.
62550
62551 2006-01-24  Jim Meyering  <jim@meyering.net>
62552
62553         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62554         Reported by Mark D. Baushke.
62555
62556 2006-01-24  Jim Meyering  <jim@meyering.net>
62557
62558         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62559
62560 2006-01-24  Bruno Haible  <bruno@clisp.org>
62561
62562         * modules/strnlen (Maintainer): Change from glibc to all.
62563
62564 2006-01-24  Bruno Haible  <bruno@clisp.org>
62565
62566         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62567         Patch by Paul Eggert.
62568
62569 2006-01-24  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62572         already has it.
62573         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62574         2005-11-26.
62575
62576         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62577         'signed char' to avoid problems with the built-in _Bool type.
62578         Reported by Paul Eggert on 2005-11-26.
62579
62580 2006-01-24  Bruno Haible  <bruno@clisp.org>
62581
62582         * gnulib-tool (func_import): Avoid constructing complicated sed
62583         expressions inside backquote.
62584         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62585
62586 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62587
62588         These changes imported from libc.
62589         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62590         test and two separate function calls.
62591         * lib/strndup.c (__strndup): Add libc_hidden_def.
62592
62593 2006-01-23  Simon Josefsson  <jas@extundo.com>
62594
62595         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62596         Remove the test_*_SOURCES variable: automake infers it by default.
62597         * modules/tls-tests: Likewise.
62598
62599 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62600
62601         Work around porting bugs reported by Dieter in
62602         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62603         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62604         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62605         Include "getopt.h" first, to check interface.
62606         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62607         !HAVE_DECL_GETENV.
62608         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62609         (__strndup): Revert to K&R-style function dfns, the glibc style.
62610         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62611         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62612         Include strnlen.h first, to get prototype properly.
62613         (strnlen): Renamed from __strnlen.
62614         Remove weak alias.
62615
62616 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62619
62620 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62621
62622         * config/srclist.txt: Adjust to reflect glibc reorganization.
62623         This affects only comments.
62624
62625 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62626
62627          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62628          Reported by Bruce Korb <bkorb@gnu.org>.
62629
62630 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62631
62632         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62633         to pacify gcc -Wswitch-default.
62634
62635 2006-01-22  Bruno Haible  <bruno@clisp.org>
62636
62637         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62638         temporary buffer for sprintf, take into account the precision also
62639         for 'd', 'i', 'u', 'o', 'x', 'X'.
62640
62641 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62642
62643         * modules/argp-tests: New module
62644         * tests/test-argp.c: New file
62645         * tests/test-argp-2.sh: New file
62646
62647 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62648
62649         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62650         (__argp_base_name): Removed
62651         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62652         typo.
62653         (__argp_base_name): Provide macro definition or extern declaration
62654         depending on the configuration
62655
62656 2006-01-20  Simon Josefsson  <jas@extundo.com>
62657
62658         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62659
62660 2006-01-20  Simon Josefsson  <jas@extundo.com>
62661
62662         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62663
62664 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62665
62666         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62667         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62668         Suggested by Bruno Haible.
62669
62670 2006-01-20  Karl Berry  <karl@gnu.org>
62671
62672         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62673         until changes propagate, I guess.
62674
62675 2006-01-19  Simon Josefsson  <jas@extundo.com>
62676
62677         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62678
62679 2006-01-19  Simon Josefsson  <jas@extundo.com>
62680
62681         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62682
62683 2006-01-19  Simon Josefsson  <jas@extundo.com>
62684
62685         * gnulib-tool: Set check_PROGRAMS.
62686
62687         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62688         modules/des-tests, modules/gc-arcfour-tests,
62689         modules/gc-arctwo-tests, modules/gc-des-tests,
62690         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62691         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62692         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62693         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62694         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62695         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62696         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62697         test_*_SOURCES.
62698
62699 2006-01-18  Simon Josefsson  <jas@extundo.com>
62700
62701         * modules/socklen (Depends-on): Depend on sys_socket.
62702
62703 2006-01-18  Simon Josefsson  <jas@extundo.com>
62704
62705         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62706         modules/des-tests, modules/gc-arcfour-tests,
62707         modules/gc-arctwo-tests, modules/gc-des-tests,
62708         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62709         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62710         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62711         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62712         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62713         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62714         $(EXEEXT) to automake TESTS variable, for mingw32.
62715
62716 2006-01-17  Simon Josefsson  <jas@extundo.com>
62717
62718         * modules/socklen (Include): Need sys/socket.h.
62719
62720 2006-01-17  Bruno Haible  <bruno@clisp.org>
62721
62722         * modules/ssize_t (Include): Add <sys/types.h>.
62723
62724 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62725
62726         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62727         it's not portable and it doesn't work with cross-compiles.
62728         Problem reported by Bruno Haible.  Fix missing-$ typo in
62729         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62730         -zignore from being used with Sun's C compiler.
62731
62732 2006-01-12  Simon Josefsson  <jas@extundo.com>
62733
62734         * lib/base64.c: Fix warning, reported by Bruno Haible
62735         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62736
62737 2006-01-12  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/ldd: New file.
62740         * build-aux/ldd.sh.in: New file.
62741         * MODULES.html.sh (Support for building libraries and executables): Add
62742         ldd.
62743
62744 2006-01-12  Bruno Haible  <bruno@clisp.org>
62745
62746         * m4/ldd.m4: New file.
62747
62748 2006-01-12  Bruno Haible  <bruno@clisp.org>
62749
62750         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62751         endless loop while replacing $auxdir with build-aux.
62752
62753 2006-01-11  Simon Josefsson  <jas@extundo.com>
62754
62755         * lib/stdint_.h (SIZE_MAX): Add missing (.
62756
62757 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62758
62759         Sync from coreutils.
62760         * lib/md5.c: Fix commentary typos.
62761         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62762         * lib/md5.h (__attribute__): Remove; unused.
62763         * lib/sha1.c: Fix commentary to match md5 better.
62764         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62765         so that we don't need to worry about alignment.  All uses changed.
62766         This merges the 2005-10-28 md5 change into sha1.
62767
62768 2006-01-11  Jim Meyering  <jim@meyering.net>
62769
62770         Sync from coreutils.
62771         * lib/md5.c (OP): Fix spacing.
62772
62773 2006-01-11  Bruno Haible  <bruno@clisp.org>
62774
62775         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62776         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62777         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62778
62779 2006-01-11  Bruno Haible  <bruno@clisp.org>
62780
62781         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62782         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62783         the "early" section as well.
62784
62785 2006-01-11  Bruno Haible  <bruno@clisp.org>
62786
62787         Avoid "ar: no archive members specified" error on MacOS X.
62788         * gnulib-tool (func_modules_add_dummy): New function.
62789         (func_import, func_create_testdir): Invoke it.
62790
62791 2006-01-11  Bruno Haible  <bruno@clisp.org>
62792
62793         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62794         with $auxdir in AC_CONFIG_FILES statements.
62795
62796 2006-01-11  Bruno Haible  <bruno@clisp.org>
62797
62798         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62799         Initialize also noinst_HEADERS to empty.
62800
62801 2006-01-11  Bruno Haible  <bruno@clisp.org>
62802
62803         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62804         variables.
62805         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62806         autoreconf.
62807
62808 2006-01-11  Bruno Haible  <bruno@clisp.org>
62809
62810         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62811         overridable by the user.
62812         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62813
62814 2006-01-10  Simon Josefsson  <jas@extundo.com>
62815
62816         * modules/sys_socket: New file.
62817
62818 2006-01-10  Simon Josefsson  <jas@extundo.com>
62819
62820         * m4/sys_socket_h.m4: New file.
62821
62822 2006-01-10  Simon Josefsson  <jas@extundo.com>
62823
62824         * lib/socket_.h: New file.
62825
62826 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         * modules/readutmp (Maintainer): Add myself.
62829
62830 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62833         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62834         People who are still concerned with buggy memcmp implementations
62835         can invoke gl_FUNC_MEMCMP themselves.
62836
62837 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62838
62839         * lib/regex_internal.h (BITSET_WORD_BITS):
62840         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62841         preprocessor mishandles large unsigned values as if they were signed.
62842         Problem reported by Claudio Fontana in
62843         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62844
62845 2006-01-10  Jim Meyering  <jim@meyering.net>
62846
62847         Avoid the double-free (first in fts_read, second in fts_close) that
62848         would occur when an `active' directory is made inaccessible (e.g.,
62849         via chmod a-x) during a traversal.
62850         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62851         before returning.  Reproduce this failure by
62852         mkdir -p a/b; cd a; chmod a-x . b
62853         Reported by Stavros Passas.
62854
62855         Sync from coreutils.
62856         * lib/sha1.c: Tweak grammar in a comment.
62857
62858 2006-01-10  Jim Meyering  <jim@meyering.net>
62859
62860         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62861         Patch by Joerg Sonnenberger.
62862
62863 2006-01-10  Bruno Haible  <bruno@clisp.org>
62864
62865         * modules/readutmp: Depend on module free.
62866         * modules/strtok_r: Depend on module restrict.
62867
62868 2006-01-10  Bruno Haible  <bruno@clisp.org>
62869
62870         * modules/gettext (configure.ac): Add an invocation of
62871         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62872
62873 2006-01-10  Bruno Haible  <bruno@clisp.org>
62874
62875         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62876         Reported by Werner Lemberg <wl@gnu.org>.
62877
62878 2006-01-10  Bruno Haible  <bruno@clisp.org>
62879
62880         * lib/localcharset.c: Update from GNU gettext.
62881
62882 2006-01-10  Bruno Haible  <bruno@clisp.org>
62883
62884         * lib/argp.h (__const): Remove macro. Use const instead.
62885         * lib/argp-fmtstream.h (__const): Likewise.
62886         * lib/glob_.h (__const): Remove macro.
62887         * lib/glob-libc.h: Use const instead of __const.
62888
62889 2006-01-10  Bruno Haible  <bruno@clisp.org>
62890
62891         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62892         variable.
62893         Needed to avoid an automake error regarding the 'gettext' module.
62894
62895 2006-01-09  Simon Josefsson  <jas@extundo.com>
62896
62897         * modules/inet_ntop (Depends-on): Add restrict.
62898
62899 2006-01-09  Simon Josefsson  <jas@extundo.com>
62900
62901         * modules/gc-rijndael-tests (License): Put under LGPL.
62902
62903         * modules/gc-des-tests (License): Likewise.
62904
62905         * modules/gc-arcfour-tests (License): Likewise.
62906
62907         * modules/gc-arctwo-tests (License): Likewise.
62908
62909         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62910
62911         * modules/gc-hmac-sha1-tests (Files): Likewise.
62912
62913         * modules/gc-hmac-md5-tests (License): Likewise.
62914
62915         * modules/gc-sha1-tests (License): Likewise.
62916
62917         * modules/gc-md5-tests (License): Likewise.
62918
62919         * modules/gc-md4-tests (License): Likewise.
62920
62921         * modules/gc-md2-tests (License): Likewise.
62922
62923         * modules/gc-tests (License): Likewise.
62924
62925         * modules/des-tests (License): Likewise.
62926
62927         * modules/md4-tests (License): Likewise.
62928
62929         * modules/md2-tests (License): Likewise.
62930
62931 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         Sync from coreutils:
62934
62935         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62936         * modules/lib-ignore: New file.
62937         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62938         chdir-safer.m4, lchmod.m4.
62939         * modules/openat: Add mkdirat.c, openat-priv.h.
62940
62941 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62942
62943         Sync from coreutils.
62944         * m4/lib-ignore.m4: New file.
62945         * m4/lchmod.m4: New file.
62946
62947 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         Sync from coreutils.
62950         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62951         for write access: POSIX says that must fail.
62952         * lib/fts.c (diropen): Likewise.
62953         * lib/save-cwd.c (save_cwd): Likewise.
62954         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62955         well, for minor improvements on hosts that lack O_DIRECTORY.
62956         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62957         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62958         Fall back on chown if open failed with EACCES.
62959
62960         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62961         Report an error at compile-time if only a 1-second nominal clock
62962         resolution is found.
62963
62964         * lib/lchmod.h: New file.
62965         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62966         (make_dir_parents): Use lchown rather than chown, and
62967         lchmod rather than chmod.
62968
62969         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62970         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62971         "proc" reported by n0dalus.
62972
62973         * lib/mountlist.c: Include <limits.h>.
62974         (dev_from_mount_options)
62975         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62976         New function.  It no longer assumes "dev=" has the System V meaning
62977         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62978         (read_file_system_list)
62979         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62980         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62981         dev= in that case.
62982
62983         * lib/posixtm.h (PDS_PRE_2000): New macro.
62984         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62985         allow_century.  All usages changed.  Reject dates outside the range
62986         1969-1999 if PDS_PRE_2000 is used.
62987
62988 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62989
62990         Sync from coreutils.
62991         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62992         (Time of day items): Mention the possibility of leap seconds.
62993         Problem reported by Dr. David Alan Gilbert.
62994
62995 2006-01-09  Jim Meyering  <jim@meyering.net>
62996
62997         Sync from coreutils.
62998
62999         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
63000
63001         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
63002
63003         * lib/modechange.c (mode_compile): Reject an invalid mode string
63004         that starts with an octal digit.  From Andreas Gruenbacher.
63005
63006         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
63007         and dup to open_safer and dup_safer, respectively.
63008         (openat_permissive): Fix typo in comment.
63009
63010         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
63011         "gettext.h"; either no longer needed or are guaranteed by openat.h.
63012         (_): Remove; no longer needed.
63013         (openat): Renamed from rpl_openat; no need for rpl_openat
63014         since openat.h renames openat for us.
63015         Replace most of the body with a call to openat_permissive,
63016         to avoid duplicate code.
63017         Port to (probably hypothetical) environments were mode_t is
63018         wider than int.
63019         (openat_permissive): Require mode arg, so that we can check
63020         types better.  Put it just after flags.  Change cwd failure
63021         indicator from pointer-to-bool to pointer-to-errno-value.
63022         All callers changed.
63023         Invoke openat_save_fail and/or openat_restore_fail if
63024         cwd_errno is null, so that openat can call us.
63025         (openat_permissive, fdopendir, fstatat, unlinkat):
63026         Simplify errno handling to avoid some duplicate code,
63027         as it's OK to set errno on success.
63028         * lib/openat.h: Revamp code so that function macros depend on
63029         __OPENAT_PREFIX only, not also on AT_FDCWD.
63030         (openat_ro): Remove.  Caller changed to use openat_permissive.
63031         (openat_permissive): Now a macro, if not a function.
63032         (openat_restore_fail, openat_save_fail): Now always functions,
63033         since mkdirat needs them even if __OPENAT_PREFIX is defined.
63034
63035         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
63036         and openat.c.
63037         * lib/mkdirat.c: Include openat-priv.h.
63038         Remove definitions of macros defined therein.
63039         * lib/openat.c: Likewise.
63040
63041         * lib/mkdirat.c (mkdirat): New file and function.
63042         * lib/openat.h (mkdirat): Declare.
63043
63044         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
63045
63046         * lib/openat.h (openat_permissive): Declare.
63047         (openat_ro): Define.
63048
63049         * lib/openat.c (EXPECTED_ERRNO): New macro.
63050         (openat_permissive): New function -- used in remove.c rewrite.
63051         (all functions): Set errno just before returning, only if there
63052         was an actual failure.
63053         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63054
63055         Emulate openat-family functions using Linux's procfs, if possible.
63056         Idea and some code based on Ulrich Drepper's glibc changes.
63057
63058         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63059         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63060         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63061         before falling back on save_cwd and restore_cwd.
63062         (fdopendir, fstatat, unlinkat): Likewise.
63063
63064         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63065         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63066
63067         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63068         as second argument to va_arg.  Otherwise, some versions of gcc
63069         warn that `if this code is reached, the program will abort'.
63070
63071 2006-01-09  Jim Meyering  <jim@meyering.net>
63072
63073         Sync from coreutils.
63074         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63075         Require openat-priv.h.
63076
63077 2006-01-09  Bruno Haible  <bruno@clisp.org>
63078
63079         * modules/strnlen (Include): Use strnlen.h.
63080
63081 2006-01-09  Bruno Haible  <bruno@clisp.org>
63082
63083         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63084
63085 2006-01-09  Bruno Haible  <bruno@clisp.org>
63086
63087         * lib/sysexit_.h (EX_OK): New macro.
63088         Suggested by Martin Lambers <marlam@marlam.de>.
63089
63090 2006-01-09  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63093         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63094
63095 2006-01-09  Bruno Haible  <bruno@clisp.org>
63096
63097         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63098         numbers.
63099
63100 2006-01-09  Bruno Haible  <bruno@clisp.org>
63101
63102         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63103         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63104         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63105         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63106
63107 2006-01-09  Bruno Haible  <bruno@clisp.org>
63108
63109         * build-aux/javacomp.sh.in: New file, moved from lib/.
63110         * modules/javacomp-script (Files): Update.
63111         (configure.ac): Add AC_CONFIG_FILES invocation.
63112         (EXTRA_DIST): Remove variable.
63113
63114         * build-aux/javaexec.sh.in: New file, moved from lib/.
63115         * modules/javaexec (Files): Update.
63116         (configure.ac): Add AC_CONFIG_FILES invocation.
63117         (EXTRA_DIST): Remove javaexec.sh.in.
63118
63119         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63120         * modules/csharpcomp-script (Files): Update.
63121         (configure.ac): Add AC_CONFIG_FILES invocation.
63122         (EXTRA_DIST): Remove variable.
63123
63124         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63125         * modules/csharpexec (Files): Update.
63126         (configure.ac): Add AC_CONFIG_FILES invocation.
63127         (EXTRA_DIST): Remove csharpexec.sh.in.
63128
63129 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63130
63131         Sync from coreutils.
63132
63133         Add POSIX ACL support
63134         * lib/acl.h (copy_acl, set_acl): Add declarations.
63135         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63136         systems other than Linux.
63137         (chmod_or_fchmod): New function: use fchmod when possible,
63138         and chmod otherwise.
63139         (file_has_acl): Add a POSIX ACL implementation, with a
63140         Linux-specific subcase.
63141         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63142         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63143         acls are unsupported.
63144         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63145         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63146         are unsupported.
63147
63148 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63149
63150         Sync from coreutils.
63151         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63152
63153 2006-01-07  Bruno Haible  <bruno@clisp.org>
63154
63155         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63156         gl_EARLY.
63157
63158 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63159
63160         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63161         Problem reported for Mingw by Mark Junker.
63162
63163 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * README: Gnulib normally doesn't generate a tarball.
63166
63167 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63168
63169         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63170         long int, not int, for nanosecond counts, so that people who are
63171         used to POSIX struct timespec won't be surprised.  Reported by Jim
63172         Meyering.
63173
63174 2005-12-28  Bruno Haible  <bruno@clisp.org>
63175
63176         * build-aux/config.rpath: Update from GNU gettext.
63177
63178 2005-12-16  Jim Meyering  <jim@meyering.net>
63179
63180         * modules/fprintftime: New module.
63181         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63182
63183 2005-12-16  Jim Meyering  <jim@meyering.net>
63184
63185         * m4/fprintftime.m4: New file.
63186
63187 2005-12-16  Jim Meyering  <jim@meyering.net>
63188
63189         * lib/fprintftime.c, lib/fprintftime.h: New files.
63190
63191 2005-12-15  Simon Josefsson  <jas@extundo.com>
63192
63193         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63194         new m4/socklen.m4.
63195
63196 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63197
63198         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63199         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63200
63201 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63202
63203         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63204         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63205         struct uparams is valid. Fall back to the default values if it is
63206         not.
63207
63208 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63209
63210         * modules/argp (Files): Add argp-pin.c
63211         (Depends-on): dirname
63212         (lib_SOURCES): Add argp-pin.c
63213
63214 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63215
63216         * m4/argp.m4:  Check if program_invocation_name and
63217         program_invocation_short_name are declared and define appropriate
63218         macros if they are not.
63219
63220 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63221
63222         * lib/argp-help.c (__argp_base_name): New function
63223         (__argp_short_program_name): Rewrite using __argp_base_name
63224         * lib/argp-namefrob.h: Define program_invocation_name and
63225         program_invocation_short_name if requested
63226         (__argp_base_name): Add prototype
63227         * lib/argp-parse.c (argp_def): Use gettext wrappers
63228         (argp_default_parser): Use __argp_base_name
63229         * lib/argp-pin.c: New file. Defines program_invocation_name and
63230         program_invocation_short_name on systems that lack them.
63231
63232 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63233
63234         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63235         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63236         porting problem reported by Georg Schwarz in
63237         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63238
63239 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63240
63241         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63242         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63243         porting problem reported by Georg Schwarz in
63244         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63245
63246 2005-12-05  Bruno Haible  <bruno@clisp.org>
63247
63248         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63249         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63250         Reported by Mark Junker <mjscod@gmx.de>.
63251
63252 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63255         Use implementation from Albert Chin, with some
63256         comments/corrections by Stepan Kasal and myself.
63257
63258 2005-12-02  Bruno Haible  <bruno@clisp.org>
63259
63260         * gnulib-tool (func_import): Accept GPLed build tool modules when
63261         --lgpl is given.
63262         * modules/csharpcomp-script: New file.
63263         * modules/csharpcomp: Depend on it.
63264         * modules/javacomp-script: New file.
63265         * modules/javacomp: Depend on it.
63266         Suggested by Simon Josefsson.
63267
63268 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63269
63270         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63271         statement, to work around an HP-UX 10.20 compiler bug reported by
63272         Peter O'Gorman.
63273
63274 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63275
63276         * modules/savedir (Depends-on): Add openat.
63277
63278 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63279
63280         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63281         (uintmax_t) [defined uintmax_t]: Do not declare.
63282         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63283         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63284         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63285         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63286         sake of portability to weird hosts that C allows (though we don't
63287         know of any practical examples).
63288
63289         * lib/savedir.h (fdsavedir): New decl.
63290         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63291         contains most of the former guts of savedir.
63292         (savedir): Use savedirstream.
63293         Include "openat.h".
63294
63295 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63296
63297         * modules/obstack (Files): Add m4/ulonglong.m4.
63298         Problem reported by Davide Angelocola.
63299
63300 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63301
63302         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63303         coreutils no longer futzes with rounding modes.
63304
63305 2005-11-14  Jim Meyering  <jim@meyering.net>
63306
63307         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63308         replacement of mkstemp.
63309
63310 2005-11-10  Simon Josefsson  <jas@extundo.com>
63311
63312         * lib/readline.c: Remove EOL.
63313
63314 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63315
63316         * modules/gethrxtime (Depends-on): Add gettime.
63317
63318 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63319
63320         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63321         or gettimeofday; no longer needed.
63322
63323 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63324
63325         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63326         time business.
63327         (gethrxtime) [! (HAVE_NANOUPTIME
63328         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63329         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63330         our own approximation.
63331
63332 2005-11-08  Eric Blake  <ebb9@byu.net>
63333
63334         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63335
63336 2005-11-08  Eric Blake  <ebb9@byu.net>
63337
63338         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63339
63340 2005-11-04  Bruno Haible  <bruno@clisp.org>
63341
63342         * gnulib-tool: Implement --update mode.
63343
63344 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63345
63346         Fix porting problem reported by Theodoros V. Kalamatianos.
63347         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63348         Don't assume that futimes failing means we must fail.
63349
63350 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63351
63352         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63353         variables to suggest the intended function of the PATH_MAX check.
63354
63355 2005-10-30  Kean Johnston  <jkj@sco.com>
63356
63357         Trivial changes to support SCO systems.
63358         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63359         as PATH_MAX.
63360         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63361         where __ptr is null when no I/O is pending.
63362
63363 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63364
63365         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63366         leave errno alone.  Problem reported by Dmitry V. Levin.
63367
63368 2005-10-28  Simon Josefsson  <jas@extundo.com>
63369
63370         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63371         Test more.
63372
63373         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63374
63375         * modules/md2, modules/md2-tests: New files.
63376
63377 2005-10-28  Simon Josefsson  <jas@extundo.com>
63378
63379         * m4/inet_ntop.m4: More tests.
63380
63381         * m4/gc-md2.m4, md2.m4: New file.
63382
63383 2005-10-28  Simon Josefsson  <jas@extundo.com>
63384
63385         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63386         "restrict" keywords, as per POSIX.  Protect the function
63387         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63388         Don't use K&R prototypes.  Check the sprintf return values.
63389         Re-define EAFNOSUPPORT if not present.  Indent.
63390
63391         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63392         suggested by Bruno Haible <bruno@clisp.org>.
63393
63394         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63395
63396         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63397
63398         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63399         libgcrypt).
63400
63401         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63402
63403         * lib/md2.h, lib/md2.c: New files.
63404
63405 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63406
63407         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63408         errno alone.  Problem reported by Frederic Jolliton.
63409
63410 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63411
63412         * modules/verify (License): Change from GPL to LGPL.  This is a
63413         tiny module and there are apparently near-equivalents that are
63414         under the BSD license.
63415
63416 2005-10-24  Simon Josefsson  <jas@extundo.com>
63417
63418         * modules/sha1: Relicense to LGPL.
63419
63420 2005-10-24  Simon Josefsson  <jas@extundo.com>
63421
63422         * lib/md4.h: Shrink buffer size, now that we changed the type.
63423
63424 2005-10-23  Simon Josefsson  <jas@extundo.com>
63425
63426         * gnulib-tool (func_import): Fix --tests-base.
63427
63428 2005-10-22  Simon Josefsson  <jas@extundo.com>
63429
63430         * modules/arcfour (Depends-on): Need stdint.
63431
63432 2005-10-22  Simon Josefsson  <jas@extundo.com>
63433
63434         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63435         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63436
63437 2005-10-22  Simon Josefsson  <jas@extundo.com>
63438
63439         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63440         suggested by Bruno Haible <bruno@clisp.org>.
63441
63442 2005-10-22  Simon Josefsson  <jas@extundo.com>
63443
63444         * lib/crc.h: Include stddef.h, for size_t.
63445
63446 2005-10-22  Simon Josefsson  <jas@extundo.com>
63447
63448         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63449         arcfour_context struct (simplify test vector testing in GNU
63450         Shishi).
63451
63452 2005-10-21  Simon Josefsson  <jas@extundo.com>
63453
63454         * modules/des, modules/des-tests: New files.
63455
63456         * modules/gc-des, modules/gc-des-tests: New files.
63457
63458         * tests/test-des.c, tests/test-gc-des.c: New file.
63459
63460 2005-10-21  Simon Josefsson  <jas@extundo.com>
63461
63462         * modules/arctwo, modules/arctwo-tests: New files.
63463
63464         * tests/test-arctwo.c: New file.
63465
63466         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63467
63468         * tests/test-gc-arctwo.c: New file.
63469
63470 2005-10-21  Simon Josefsson  <jas@extundo.com>
63471
63472         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63473         Bruno Haible <bruno@clisp.org>.
63474
63475         * m4/gc-des.m4: New file.
63476
63477 2005-10-21  Simon Josefsson  <jas@extundo.com>
63478
63479         * m4/arctwo.m4: New file.
63480
63481         * m4/gc-arctwo.m4: New file.
63482
63483 2005-10-21  Simon Josefsson  <jas@extundo.com>
63484
63485         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63486         block.
63487
63488 2005-10-21  Simon Josefsson  <jas@extundo.com>
63489
63490         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63491         <bruno@clisp.org>.
63492
63493         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63494
63495         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63496         Bruno Haible <bruno@clisp.org>.
63497
63498         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63499         <bruno@clisp.org>.
63500
63501 2005-10-21  Simon Josefsson  <jas@extundo.com>
63502
63503         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63504
63505 2005-10-21  Simon Josefsson  <jas@extundo.com>
63506
63507         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63508
63509 2005-10-21  Simon Josefsson  <jas@extundo.com>
63510
63511         * lib/des.h, lib/des.c: New files.
63512
63513         * lib/gc-gnulib.c: Support DES.c
63514
63515 2005-10-21  Simon Josefsson  <jas@extundo.com>
63516
63517         * lib/arctwo.h, lib/arctwo.c: New files.
63518
63519         * lib/gc-gnulib.c: Support ARCTWO.
63520
63521 2005-10-21  Simon Josefsson  <jas@extundo.com>
63522
63523         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63524         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63525
63526 2005-10-21  Simon Josefsson  <jas@extundo.com>
63527
63528         * gnulib-tool (func_import, func_create_testdir): Define automake
63529         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63530         Makefile.am snippet),
63531         suggested by Bruno Haible <bruno@clisp.org>.
63532
63533         * modules/gc (Makefile.am): Use it.
63534
63535 2005-10-21  Bruno Haible  <bruno@clisp.org>
63536
63537         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63538         patch.
63539
63540 2005-10-19  Simon Josefsson  <jas@extundo.com>
63541
63542         * tests/test-gc-rijndael.c: New file.
63543
63544         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63545
63546 2005-10-19  Simon Josefsson  <jas@extundo.com>
63547
63548         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63549         interface too.
63550
63551 2005-10-19  Simon Josefsson  <jas@extundo.com>
63552
63553         * tests/test-gc-arcfour.c: New file.
63554
63555         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63556
63557 2005-10-19  Simon Josefsson  <jas@extundo.com>
63558
63559         * modules/gc-md4, modules/gc-md4-tests: New file.
63560
63561         * tests/test-gc-md4.c: New file.
63562
63563 2005-10-19  Simon Josefsson  <jas@extundo.com>
63564
63565         * m4/gc-md4.m4: New file.
63566
63567 2005-10-19  Simon Josefsson  <jas@extundo.com>
63568
63569         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63570         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63571         <kasal@ucw.cz>.
63572
63573 2005-10-19  Simon Josefsson  <jas@extundo.com>
63574
63575         * m4/gc-arcfour.m4: New file.
63576
63577         * m4/gc-rijndael.m4: New file.
63578
63579 2005-10-19  Simon Josefsson  <jas@extundo.com>
63580
63581         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63582
63583 2005-10-19  Simon Josefsson  <jas@extundo.com>
63584
63585         * lib/gc-gnulib.c: Support ARCFOUR.
63586
63587 2005-10-19  Simon Josefsson  <jas@extundo.com>
63588
63589         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63590         support.
63591
63592         * lib/gc.h: Add ECB enum type.
63593
63594         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63595
63596 2005-10-18  Simon Josefsson  <jas@extundo.com>
63597
63598         * tests/test-md5.c: New file.
63599
63600         * modules/md5-tests: New file.
63601
63602 2005-10-18  Simon Josefsson  <jas@extundo.com>
63603
63604         * tests/test-md4.c: New file.
63605
63606         * modules/md4, modules/md4-tests: New files.
63607
63608 2005-10-18  Simon Josefsson  <jas@extundo.com>
63609
63610         * m4/md4.m4: New file.
63611
63612 2005-10-18  Simon Josefsson  <jas@extundo.com>
63613
63614         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63615
63616 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63617
63618         * gnulib-tool (func_create_testdir): Omit the second check whether
63619         BUILT_SOURCES in nonempty.
63620
63621 2005-10-17  Simon Josefsson  <jas@extundo.com>
63622
63623         * tests/test-rijndael.c: New file.
63624
63625 2005-10-17  Simon Josefsson  <jas@extundo.com>
63626
63627         * modules/sha1: Depend on stdint instead of md5.
63628
63629         * modules/md5: Depend on stdint, remove uint32_t.
63630
63631 2005-10-17  Simon Josefsson  <jas@extundo.com>
63632
63633         * modules/gc-sha1-tests: New file.
63634
63635         * tests/test-gc-sha1.c: New file.
63636
63637 2005-10-17  Simon Josefsson  <jas@extundo.com>
63638
63639         * m4/md5.m4: Remove call to uint32_t.m4.
63640
63641 2005-10-17  Simon Josefsson  <jas@extundo.com>
63642
63643         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63644
63645         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63646         md5.h.
63647
63648         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63649
63650         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63651
63652 2005-10-17  Simon Josefsson  <jas@extundo.com>
63653
63654         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63655
63656 2005-10-17  Simon Josefsson  <jas@extundo.com>
63657
63658         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63659
63660 2005-10-17  Simon Josefsson  <jas@extundo.com>
63661
63662         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63663
63664         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63665
63666 2005-10-17  Bruno Haible  <bruno@clisp.org>
63667
63668         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63669         that it can also be used in a test.
63670
63671 2005-10-16  Bruno Haible  <bruno@clisp.org>
63672
63673         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63674         TESTS_ENVIRONMENT, so that individual tests can augment it.
63675
63676         * gnulib-tool (func_create_testdir): Use an intermediate target for
63677         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63678         macros, like $(ALLOCA_H), which cannot be passed through the command
63679         line.
63680
63681 2005-10-15  Simon Josefsson  <jas@extundo.com>
63682
63683         * modules/rijndael-tests: New file.
63684
63685         * modules/rijndael: New file.
63686
63687 2005-10-15  Simon Josefsson  <jas@extundo.com>
63688
63689         * m4/rijndael.m4: New file.
63690
63691 2005-10-15  Simon Josefsson  <jas@extundo.com>
63692
63693         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63694
63695         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63696
63697 2005-10-14  Simon Josefsson  <jas@extundo.com>
63698
63699         * tests/test-arcfour.c: New file.
63700
63701         * modules/arcfour, modules/arcfour-tests: New files.
63702
63703 2005-10-14  Simon Josefsson  <jas@extundo.com>
63704
63705         * m4/arcfour.m4: New file.
63706
63707 2005-10-14  Simon Josefsson  <jas@extundo.com>
63708
63709         * lib/arcfour.h, lib/arcfour.c: New files.
63710
63711 2005-10-14  Roland McGrath  <roland@redhat.com>
63712
63713         Import from libc.  [BZ #1331]
63714         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63715         macro argument.
63716         Reported by Matej Vela <vela@debian.org>.
63717
63718 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63719
63720         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63721         include <wchar.h>; no longer needed.
63722
63723 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63724
63725         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63726
63727 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63728         and  Ulrich Drepper  <drepper@redhat.com>
63729
63730         Import from libc.
63731         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63732         instead of inline stream orientation test and two separate
63733         function calls.  Pay no attention to USE_IN_LIBIO.
63734
63735 2005-10-13  Simon Josefsson  <jas@extundo.com>
63736
63737         * modules/gc-hmac-md5-tests: New file.
63738
63739         * tests/test-gc-hmac-sha1.c: New file.
63740
63741         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63742
63743         * modules/gc-hmac-md5-tests: New file.
63744
63745         * tests/test-gc-md5.c: New file.
63746
63747         * modules/gc-md5-tests: New file.
63748
63749 2005-10-13  Simon Josefsson  <jas@extundo.com>
63750
63751         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63752         Move memory allocation outside of loop.
63753
63754 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63755
63756         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63757         intermediate directory is in a read-only file system.  Problem
63758         reported by Eric Blake.
63759
63760 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63761
63762         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63763
63764 2005-10-12  Simon Josefsson  <jas@extundo.com>
63765
63766         * tests/test-hmac-sha1.c: New file.
63767
63768         * modules/hmac-sha1-tests: New file.
63769
63770         * modules/hmac-sha1: New file.
63771
63772 2005-10-12  Simon Josefsson  <jas@extundo.com>
63773
63774         * modules/gc-sha1: New file.
63775
63776 2005-10-12  Simon Josefsson  <jas@extundo.com>
63777
63778         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63779
63780         * tests/test-gc-pbkdf2-sha1.c: New file.
63781
63782 2005-10-12  Simon Josefsson  <jas@extundo.com>
63783
63784         * modules/gc-md5, modules/gc-hmac-md5: New files.
63785
63786         * modules/gc (Files): Remove md5, memxor and hmac files.
63787
63788 2005-10-12  Simon Josefsson  <jas@extundo.com>
63789
63790         * m4/gc-pbkdf2-sha1.m4: New file.
63791
63792         * m4/gc-hmac-sha1.m4: New file.
63793
63794         * m4/gc-sha1: New file.
63795
63796         * m4/hmac-sha1.m4: New file.
63797
63798 2005-10-12  Simon Josefsson  <jas@extundo.com>
63799
63800         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63801
63802         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63803
63804 2005-10-12  Simon Josefsson  <jas@extundo.com>
63805
63806         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63807         suggested by Bruno Haible <bruno@clisp.org>.
63808
63809 2005-10-12  Simon Josefsson  <jas@extundo.com>
63810
63811         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63812
63813 2005-10-12  Simon Josefsson  <jas@extundo.com>
63814
63815         * lib/gc-pbkdf2-sha1.c: New file.
63816
63817         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63818
63819 2005-10-12  Simon Josefsson  <jas@extundo.com>
63820
63821         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63822
63823         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63824
63825 2005-10-12  Simon Josefsson  <jas@extundo.com>
63826
63827         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63828         GC_USE_HMAC_MD5, respectively.
63829
63830         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63831         (gc_md5): Fix typo.
63832
63833         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63834
63835         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63836
63837         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63838
63839 2005-10-12  Bruno Haible  <bruno@clisp.org>
63840
63841         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63842         Reported by Stepan Kasal <kasal@ucw.cz>.
63843
63844 2005-10-11  Simon Josefsson  <jas@extundo.com>
63845
63846         * tests/test-crc.c: New file.
63847
63848         * modules/crc, modules/crc-tests: New files.
63849
63850 2005-10-11  Simon Josefsson  <jas@extundo.com>
63851
63852         * m4/crc.m4: New file.
63853
63854 2005-10-11  Simon Josefsson  <jas@extundo.com>
63855
63856         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63857
63858         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63859
63860         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63861
63862 2005-10-11  Simon Josefsson  <jas@extundo.com>
63863
63864         * lib/crc.h, lib/crc.c: New files.
63865
63866         * lib/gc.h (gc_hash_buffer): Add doc.
63867
63868 2005-10-11  Bruno Haible  <bruno@clisp.org>
63869
63870         * modules/c-strcasestr: New file.
63871         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63872
63873 2005-10-11  Bruno Haible  <bruno@clisp.org>
63874
63875         * modules/c-strcase: New file.
63876         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63877
63878 2005-10-11  Bruno Haible  <bruno@clisp.org>
63879
63880         * lib/strcasecmp.c: Include limits.h.
63881         (strcasecmp): Avoid integer overflow on exotic platforms.
63882         * lib/strncasecmp.c: Include limits.h.
63883         (strncasecmp): Avoid integer overflow on exotic platforms.
63884         Reported by Paul Eggert.
63885
63886 2005-10-11  Bruno Haible  <bruno@clisp.org>
63887
63888         * lib/c-strcasestr.h: New file, from GNU gettext.
63889         * lib/c-strcasestr.c: New file, from GNU gettext.
63890
63891 2005-10-11  Bruno Haible  <bruno@clisp.org>
63892
63893         * lib/c-strcase.h: New file, from GNU gettext.
63894         * lib/c-strcasecmp.c: New file, from GNU gettext.
63895         * lib/c-strncasecmp.c: New file, from GNU gettext.
63896
63897 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63898
63899         * modules/mempcpy (License): GPL -> LGPL.
63900         * modules/strchrnul (License): Likewise.
63901         * modules/sysexits (License): Likewise.
63902
63903 2005-10-08  Simon Josefsson  <jas@extundo.com>
63904
63905         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63906
63907 2005-10-07  Simon Josefsson  <jas@extundo.com>
63908
63909         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63910
63911 2005-10-06  Simon Josefsson  <jas@extundo.com>
63912
63913         * tests/test-hmac-md5.c: New file.
63914
63915         * modules/hmac-md5-tests: New file.
63916
63917         * modules/hmac-md5: New file.
63918
63919 2005-10-06  Simon Josefsson  <jas@extundo.com>
63920
63921         * m4/hmac-md5.m4: New file.
63922
63923         * m4/memxor.m4: Require gl_C_RESTRICT.
63924
63925 2005-10-06  Simon Josefsson  <jas@extundo.com>
63926
63927         * lib/memxor.c (memxor): Avoid casts and warnings.
63928
63929 2005-10-06  Simon Josefsson  <jas@extundo.com>
63930
63931         * lib/hmac-md5.c: New file.
63932
63933         * lib/hmac.h: New file.
63934
63935 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63938         promotes to int, not unsigned int, to catch the AIX 5.3
63939         compiler bug.
63940
63941 2005-10-05  Simon Josefsson  <jas@extundo.com>
63942
63943         * modules/memxor: New file.
63944
63945         * modules/iconv (Files): Move config.rpath to havelib, it is used
63946         there.
63947
63948         * modules/havelib (Files): Add config.rpath.
63949
63950 2005-10-05  Simon Josefsson  <jas@extundo.com>
63951
63952         * m4/memxor.m4: New file.
63953
63954 2005-10-05  Simon Josefsson  <jas@extundo.com>
63955
63956         * lib/memxor.c (memxor): Fix compiler error.
63957
63958         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63959         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63960
63961         * lib/memxor.h, lib/memxor.c: New files.
63962
63963         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63964         we assume all systems have it, suggested by Jim Meyering
63965         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63966         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63967         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63968         same reasons.
63969
63970 2005-10-05  Simon Josefsson  <jas@extundo.com>
63971
63972         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63973
63974 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63975
63976         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63977         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63978         needed, since the source code now assumes these .h files.
63979
63980 2005-10-05  Derek Price  <derek@ximbiot.com>
63981
63982         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63983
63984 2005-10-05  Bruno Haible  <bruno@clisp.org>
63985
63986         * modules/stdint (License): Change to LGPL.
63987
63988 2005-10-04  Simon Josefsson  <jas@extundo.com>
63989
63990         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63991         D. Baushke" <mdb@gnu.org>.
63992
63993 2005-10-04  Bruno Haible  <bruno@clisp.org>
63994
63995         * lib/verify.h (verify_true): Provide alternative definition for C++.
63996
63997 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63998
63999         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
64000         (SSIZE_MAX): New macro, if not already defined.
64001         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
64002         than 2 GiB.
64003
64004 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64005
64006         Sync from coreutils.
64007         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
64008         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
64009         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
64010         ULLONG_MAX doesn't work with 2.7.2.1.
64011
64012 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64013
64014         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
64015         From Ben Pfaff.
64016
64017         * modules/exclude (Depends-on): Depend on verify.
64018         * modules/strtoimax (Depends-on): Likewise.
64019         * modules/utimecmp (Depends-on): Likewise.
64020
64021 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
64022
64023         * lib/exclude.c: Include verify.h.
64024         (verify): Remove.  All callers changed to use verify.h's version.
64025         * lib/strtoimax.c: Likewise.
64026         * lib/utimecmp.c: Likewis.e
64027
64028         Sync from coreutils.
64029         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
64030         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
64031         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
64032         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
64033         bother returning ENOSYS if settimeofday or stime fails; just let
64034         them return whatever errno they want to return.
64035         * lib/utimens.c: Include unistd.h, for dup2.
64036         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
64037         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
64038
64039 2005-10-02  Jim Meyering  <jim@meyering.net>
64040
64041         Sync from coreutils.
64042         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
64043         from glibc-2.2.5 that fails for read-only files.
64044
64045 2005-10-02  Jim Meyering  <jim@meyering.net>
64046
64047         Sync from coreutils.
64048         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
64049         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
64050         `#if HAVE_CONFIG_H'.
64051         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
64052         Remove AT_FDCWD test.
64053         Do not consume the fd unless successful.
64054         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64055         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64056         block, so that we don't even try to compile it if settimeofday is
64057         available.  This works around a compilation failure on OSF1 V5.1,
64058         due to stime requiring a `long int*' while tv_sec is `int'.
64059
64060 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64061
64062         Sync from coreutils.
64063         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64064         against `yes', rather than just testing for nonempty.
64065
64066 2005-10-01  Simon Josefsson  <jas@extundo.com>
64067
64068         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64069         and Darwin.
64070
64071         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64072         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64073         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64074         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64075         Check if struct addrinfo is declared.
64076
64077 2005-10-01  Simon Josefsson  <jas@extundo.com>
64078
64079         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64080         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64081         AI_* and EAI_* definitions.  Protect function declarations.
64082
64083 2005-10-01  Jim Meyering  <jim@meyering.net>
64084
64085         Sync from coreutils.
64086
64087         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64088         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64089         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64090         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64091         in the inet and nsl libraries.  Required on Solaris 5.7.
64092
64093 2005-10-01  Jim Meyering  <jim@meyering.net>
64094
64095         Sync from coreutils.
64096         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64097         in the inet and nsl libraries.  Required on Solaris 5.7.
64098
64099 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64100
64101         * lib/getdelim.c (getdelim): Remove unused variables.
64102
64103 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64104
64105         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64106         so that the code works even with ancient cpp.  Portability problem
64107         with GCC 2.7.2.1 reported by Thomas M.Ott.
64108
64109 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64110
64111         * modules/regex (Depends-on): Add strcase.
64112
64113         * modules/gethostname (Licence): Change from GPL to LGPL, since
64114         gethostname.c is a trivial implementation of a standard library
64115         function.
64116         * modules/poll (License): Change from GPL to LGPL, since it's
64117         derived from LGPL code.
64118
64119 2005-09-27  Jim Meyering  <jim@meyering.net>
64120
64121         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64122         HAVE_CONFIG_H.
64123
64124         * lib/intprops.h (signed_type_or_expr__): Define.
64125         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64126         for unsigned types.
64127
64128 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         * lib/verify.h (verify_expr): Remove, replacing with:
64131         (verify_true): New macro that returns true instead of void.
64132         (verify_type__): Remove.
64133         (verify): Use verify_true rather than verify_type__.
64134
64135 2005-09-26  Bruno Haible  <bruno@clisp.org>
64136
64137         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64138         is necessary.
64139         (lib_SOURCES): Remove mbchar.c.
64140         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64141         (Files): Add m4/mbrtowc.m4.
64142         * modules/mbiter: Likewise.
64143         * modules/mbuiter: Likewise.
64144
64145 2005-09-26  Bruno Haible  <bruno@clisp.org>
64146
64147         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64148         compile mbchar.c if they are not both present.
64149         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64150         * m4/mbiter.m4 (gl_MBITER): Likewise.
64151         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64152         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64153         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64154
64155 2005-09-25  Jim Meyering  <jim@meyering.net>
64156
64157         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64158         also uses socklen_t.
64159
64160 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64161
64162         * lib/utimens.c (ENOSYS): Define if not already defined.
64163         (futimens): Support having a null PATH if the file descriptor
64164         is nonnegative.
64165
64166         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64167         Remove.
64168         (__attribute): Define to empty unless GCC 3.1 or later.
64169         This works around a core dump on OpenBSD 3.4, which has GCC
64170         2.95.3, which dumps core when given __attribute__(()).  It also
64171         simplifies other tests, since we really don't want to bother with
64172         worrying about which ancient version of GCC supported what.
64173         Original problem reported by Yoann Vandoorselaere, with part of
64174         the fix suggested by Derek Price.
64175
64176 2005-09-24  Jim Meyering  <jim@meyering.net>
64177
64178         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64179         so we can once again use a positive bitfield width of 1 -- now we
64180         don't have to explain why we were using a bitfield width of 2.
64181
64182 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64183
64184         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64185         and similarly for the other external symbols.  Problem reported
64186         by James Gallager.
64187
64188         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64189         bug reported by Jim Meyering.
64190
64191         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64192         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64193         not needed, since socklen is a prerequisite module.
64194
64195 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64196
64197         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64198         Problem reported by Eric Blake.
64199         (getaddrinfo): Initialize se so that it's not garbage.
64200         Redo internal storage allocation so that it doesn't make unportable
64201         assumptions about alignment.
64202         Fix a memory leak.
64203
64204         * lib/utimens.c (futimens): Use futimesat if available.
64205         Prefer it to futimes since it doesn't have the futimes bug.
64206
64207         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64208         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64209         Instead, declare a function that returns a pointer to an array,
64210         and use verify_type__ to declare the size of the array.
64211         Problem and germ of a solution reported by Bruno Haible.
64212         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64213         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64214
64215 2005-09-23  Jim Meyering  <jim@meyering.net>
64216
64217         Sync from coreutils.
64218         Correct build failure (socklen_t not defined) on at least
64219         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64220         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64221
64222 2005-09-23  Jim Meyering  <jim@meyering.net>
64223
64224         * modules/getaddrinfo (Depends-on): Add socklen.
64225
64226 2005-09-23  Bruno Haible  <bruno@clisp.org>
64227
64228         * tests/test-verify.c: New file.
64229
64230 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64231
64232         Sync from coreutils.
64233
64234         * modules/argmatch (Depends-on): Add verify.
64235         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64236         unistd-safer.
64237         * modules/save-cwd (Depends-on): Likewise.
64238
64239         * modules/openat (Files): Add lib/openat-die.c.
64240         (Depends-on): Remove error, exitfail.
64241         Add dirname.
64242
64243         * modules/verify: New file.
64244         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64245         with "verify" module.
64246
64247 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64248
64249         Sync from coreutils.
64250
64251         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64252         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64253         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64254         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64255         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64256         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64257         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64258         Don't bother checking for string.h, stdlib.h, unistd.h.
64259         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64260         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64261         module's job.
64262         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64263         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64264
64265         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64266         (gl_GETDATE): Use it.
64267
64268         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64269
64270 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64271
64272         Sync from coreutils.
64273
64274         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64275         stat-time.h.
64276         * lib/argmatch.h: Include verify.h
64277         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64278         (ARGMATCH_ASSERT): Remove; unused.
64279         * lib/canonicalize.c: Assume STDC_HEADERS.
64280         * lib/exclude.c: Include "strcase.h".
64281         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64282         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64283         and stdio-safer.h.
64284         (getusershell): Call fopen, not fopen_safer.
64285         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64286         Do not include unistd-safer.h.
64287         (save_cwd): Don't call fd_safer; no longer needed
64288         now that we include fcntl--.h.
64289
64290         * lib/getdate.y (relative_time): New type.
64291         (RELATIVE_TIME_0): New constant.
64292         (parser_control): Use relative_time instead of doing it ourselves.
64293         (%union): Add new relative_time rel member.
64294         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64295         Now typeless.
64296         (relunit, relunit_snumber): Now of type rel.
64297         (zone, rel, relunit, get_date): Adjust to above changes.
64298
64299         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64300         Do not include unistd-safer.h.
64301         (getloadavg): Don't call fd_safer; no longer needed
64302         now that we include fcntl--.h.
64303
64304         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64305         (make_dir_parents): Treat ENOSYS like EEXIST.
64306
64307         Improve quality of diagnostics on restore_cwd failure.
64308         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64309         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64310         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64311         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64312         each time through the loop.  Do not diagnose restore_cwd failure;
64313         that is the caller's job (and perhaps the caller does not care).
64314
64315         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64316         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64317         If the file already exists but is not a directory, don't bother
64318         to try to make its parents.
64319         Close potential file descriptor leak if we can't chdir("/") (!).
64320         Don't always return true if chdir($PWD) fails; return true only
64321         if the requested action was done successfully (except for the
64322         chdir($PWD)).
64323         Don't log final directory unless we actually made it.
64324         Refactor to avoid duplicate code to fix up permissions.
64325         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64326
64327         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64328         to make it a bit faster and (I hope) clearer.
64329         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64330         Fix bug in formats like %2N.
64331
64332         * lib/verify.h: New file.
64333
64334 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64335
64336         Sync from coreutils.
64337         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64338
64339 2005-09-22  Jim Meyering  <jim@meyering.net>
64340
64341         Sync from coreutils.
64342
64343         * m4/lstat.m4 (gl_FUNC_LSTAT):
64344         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64345         Remove obsolete comment.
64346         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64347         * m4/xstrtod.m4: Likewise.
64348
64349         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64350
64351 2005-09-22  Jim Meyering  <jim@meyering.net>
64352
64353         Sync from coreutils.
64354
64355         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64356
64357         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64358         the .tm_year member, since otherwise gcc-4.0 would now warn about
64359         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64360
64361         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64362         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64363
64364         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64365         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64366         when run in a time zone for which daylight savings time is in effect
64367         for the starting date.
64368
64369         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64370         stop us from restricting permissions of just-created absolute-named
64371         directories.
64372         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64373         to restore initial working directory.
64374         * lib/mkdir-p.c (make_dir_parents): New parameter:
64375         different_working_dir, to tell caller if/when we change the working
64376         directory and are unable to return to the initial one.
64377         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64378         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64379         `return false'.  This fixes a bug introduced on 2004-07-30.
64380
64381         * lib/openat.c (fdopendir): Be sure to close the supplied
64382         file descriptor before returning.  This makes our replacement
64383         implementation a little closer to Solaris's, where fdopendir
64384         ties the file descriptor to the returned DIR* pointer.
64385         * lib/openat.c (unlinkat): New function.
64386         * lib/openat.h (unlinkat): Add prototype.
64387         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64388         (openat_restore_fail): Rename from openat_restore_die.
64389         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64390
64391         Provide an alternative to exiting immediately upon save_cwd or
64392         restore_cwd failure.  Now, an application can arrange e.g.,
64393         to perform a longjump in that case.
64394         * lib/openat.c: Include dirname.h.
64395         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64396         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64397         and openat_restore_die rather than calling error directly.
64398         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64399
64400         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64401         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64402         define.
64403
64404         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64405         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64406                             int utc, int nanoseconds);
64407         Background:
64408         date should not have to allocate a megabyte of virtual memory to
64409         handle a format argument like +%1048575T.  When implemented with
64410         strftime, it must allocate such a buffer, use strftime to fill it
64411         in, print it, then free it.
64412         With fprintftime, it simply prints everything and exits.
64413         With no need for memory allocation, that's one fewer way to fail.
64414         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64415         optional field width, not before, so we accept %9:z, not %:9z.
64416         (my_strftime): Be sure to use L_('x') for literals.
64417
64418         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64419         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64420         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64421         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64422         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64423         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64424         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64425         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64426         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64427         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64428         * lib/xgethostname.c, lib/xreadlink.c:
64429         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64430
64431         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64432         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64433         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64434         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64435         and don't include <sys/file.h>).
64436
64437 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64438
64439         Sync from coreutils.
64440
64441         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64442         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64443         [!LDAV_DONE]: Avoid unused variable warning.
64444
64445 2005-09-21  Bruno Haible  <bruno@clisp.org>
64446
64447         * lib/unicodeio.h (unicode_to_mb): New declaration.
64448
64449 2005-09-20  Derek Price  <derek@ximbiot.com>
64450
64451         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64452         getaddrinfo.h.
64453
64454 2005-09-20  Bruno Haible  <bruno@clisp.org>
64455
64456         * gnulib-tool: Remove trailing slashes from the values specified for
64457         --source-base, --m4-base, --tests-base, --aux-dir.
64458         Suggested by Simon Josefsson <jas@extundo.com>.
64459
64460 2005-09-20  Bruno Haible  <bruno@clisp.org>
64461
64462         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64463         func_modules_to_filelist, func_import, func_create_testdir): Make all
64464         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64465         change when gnulib-tool is invoked in a different locale.
64466
64467 2005-09-19  Simon Josefsson  <jas@extundo.com>
64468
64469         * m4/socklen.m4: Fix typo.
64470
64471 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64472
64473         Use a consistent style for including <config.h>.
64474         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64475         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64476         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64477         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64478         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64479         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64480         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64481         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64482         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64483         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64484         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64485         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64486         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64487         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64488         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64489         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64490         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64491         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64492         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64493         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64494         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64495         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64496         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64497         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64498         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64499         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64500         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64501         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64502         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64503         lib/xstrtoumax.c, lib/yesno.c:
64504         Standardize inclusion of config.h.
64505         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64506         lib/inttostr.h:  Removed inclusion of config.h from header files.
64507         * lib/inttostr.c:  Adjusted in-tree users.
64508         * lib/timespec.h: Remove superfluous warning to include config.h.
64509         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64510         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64511         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64512         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64513         config.h with HAVE_CONFIG_H.
64514
64515 2005-09-19  Jim Meyering  <jim@meyering.net>
64516
64517         * modules/pathmax (License): Change to LGPL.
64518
64519 2005-09-19  Derek Price  <derek@ximbiot.com>
64520
64521         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64522
64523 2005-09-19  Bruno Haible  <bruno@clisp.org>
64524
64525         * gnulib-tool (import): Provide default for --tests-base.
64526
64527 2005-09-19  Bruno Haible  <bruno@clisp.org>
64528
64529         * doc/quote.texi: New file, extracted from gnulib.texi.
64530         * doc/ctime.texi: New file, extracted from gnulib.texi.
64531         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64532         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64533         * doc/gnulib.texi: Include them.
64534
64535 2005-09-18  Bruno Haible  <bruno@clisp.org>
64536
64537         Portability fix.
64538         * gnulib-tool (func_readlink): New function.
64539         (func_ln_if_changed): Use it.
64540
64541 2005-09-18  Bruno Haible  <bruno@clisp.org>
64542
64543         * gnulib-tool: Support --with-tests also with --import.
64544         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64545         (func_import): Use variables $testsbase and $inctests. Emit a
64546         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64547         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64548         SUBDIRS += $testsdir.
64549         (func_create_testdir): Update.
64550
64551 2005-09-18  Bruno Haible  <bruno@clisp.org>
64552
64553         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64554         instead of $dry_run.
64555         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64556         (func_ln_if_changed): Don't handle dry-run here.
64557         (func_import): In dry-run mode, detect more precisely which actions
64558         would be performed, and don't use "...ing" verbs.
64559
64560 2005-09-18  Bruno Haible  <bruno@clisp.org>
64561
64562         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64563         (func_import): Use join on two temporary files instead of three nested
64564         loops, in order to determine which files are new or old.
64565
64566 2005-09-18  Bruno Haible  <bruno@clisp.org>
64567
64568         * gnulib-tool (func_import): Comment out code that spits out the
64569         new files with --dry-run.
64570
64571 2005-09-18  Bruno Haible  <bruno@clisp.org>
64572
64573         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64574
64575 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64576
64577         * lib/stat-time.h: New file.
64578         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64579         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64580         in a different way.
64581         (timespec_cmp): New function.
64582         * lib/utimecmp.c: Include stat-time.h.
64583         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64584         members exist, not on the obsolescent ST_MTIM_NSEC.
64585         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64586
64587 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64588
64589         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64590
64591 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         * MODULES.html.sh (File system functions): Add stat-time.
64594         * modules/stat-time: New file.
64595         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64596         is now done in a different way, by the stat-time module.
64597         * modules/utimecmp (Depends-on): Add stat-time.
64598
64599 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         * m4/st_mtim.m4: Remove.  Superseded by...
64602         * m4/stat-time.m4: New file.
64603         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64604         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64605
64606 2005-09-15  Derek Price  <derek@ximbiot.com>
64607
64608         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64609
64610 2005-09-15  Derek Price  <derek@ximbiot.com>
64611
64612         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64613         * lib/regex_internal.c: Ditto, using this...
64614         (__GNUC_PREREQ): ...new macro.
64615         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64616         using...
64617         (__GNUC_PREREQ): ...this new macro.
64618
64619         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64620
64621 2005-09-15  Derek Price  <derek@ximbiot.com>
64622             Paul Eggert  <eggert@cs.ucla.edu>
64623
64624         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64625         changes, consolidating in...
64626         * lib/regex_internal.h: ...this file.
64627
64628 2005-09-13  Jim Meyering  <jim@meyering.net>
64629
64630         * lib/canon-host.c: Filter through gnu indent and reword comments
64631         slightly.
64632         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64633
64634 2005-09-13  Derek Price  <derek@ximbiot.com>
64635
64636         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64637         failure.
64638         Reported by Jim Meyering  <jim@meyering.net>.
64639
64640 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64641
64642         * lib/base64.c: Typo.
64643         (base64_encode): Put b64str in initialized data section.
64644
64645 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64646
64647         Merge glibc and coreutils changes into gnulib, plus a few
64648         extra fixes.
64649         * lib/md5.c: Use #error rather than a string.
64650         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64651         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64652         (__attribute__): Define to empty for non recent-GCC.
64653         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64654         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64655         Renamed from their non-__ counterparts, with new macros replacing
64656         them if not _LIBC.  Add __THROW attribute.
64657         (rol): Remove.
64658         (struct md5_ctx): Align buffer if using GCC.
64659         * lib/sha1.h (struct sha1_ctx): Likewise.
64660         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64661         The old name was backwards.
64662         (NOTSWAP): Remove; not used.
64663         (rol): New macro, moved here from md5.h.
64664         (sha1_process_block): Remove a FIXME that doesn't make sense.
64665
64666 2005-09-12  Derek Price  <derek@ximbiot.com>
64667
64668         Return usable errors from canon-host.
64669         * lib/canon-host.h: New file.
64670         * lib/canon-host.c (canon_host): Wrap...
64671         (canon_host_r): ...this new function, which now relies exclusively on
64672         getaddrinfo.
64673         (ch_strerror): New function.
64674         (last_cherror): New global.
64675         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64676         interface.
64677         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64678         void *.
64679         (freeaddrinfo): Free ai->ai_canonname when set.
64680
64681 2005-09-12  Derek Price  <derek@ximbiot.com>
64682
64683         Make canon-host require getaddrinfo.
64684         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64685         AC_LIBSOURCE canon-host.h.  Call...
64686         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64687         gl_GETADDRINFO.
64688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64689
64690 2005-09-12  Derek Price  <derek@ximbiot.com>
64691
64692         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64693         LGPL.
64694         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64695
64696 2005-09-12  Derek Price  <derek@ximbiot.com>
64697
64698         * lib/gai_strerror.c: Include config.h when available.  Include
64699         getaddrinfo.h before other headers to test interface.
64700         Reported by Larry Jones <lawrence.jones@ugs.com>.
64701
64702 2005-09-12  Derek Price  <derek@ximbiot.com>
64703             Paul Eggert  <eggert@cs.ucla.edu>
64704
64705         * modules/glob (Files): Add glob-libc.h.
64706
64707 2005-09-12  Derek Price  <derek@ximbiot.com>
64708             Paul Eggert  <eggert@cs.ucla.edu>
64709
64710         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64711         glob_.h, glob-libc.h.
64712         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64713
64714 2005-09-12  Derek Price  <derek@ximbiot.com>
64715             Paul Eggert  <eggert@cs.ucla.edu>
64716
64717         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64718         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64719         protecting things that should be done only in gnulib contexts.
64720         * lib/glob_.h: New file, containing only the glob things needed for
64721         gnulib.
64722         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64723         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64724         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64725         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64726         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64727         and to respect the namespace rules better.
64728
64729 2005-09-08  Simon Josefsson  <jas@extundo.com>
64730
64731         * modules/socklen: New file.
64732
64733 2005-09-08  Simon Josefsson  <jas@extundo.com>
64734
64735         * m4/socklen.m4: New file.
64736
64737 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64738
64739         * modules/utimens (Files): Add m4/utimbuf.m4, since
64740         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64741         Reported by Sergey Poznyakoff.
64742
64743 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64744
64745         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64746         definitions, since that's the preferred style in glibc.
64747         Fix a minor spacing issue, and update copyright notice to match
64748         glibc's.
64749
64750 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64751
64752         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64753
64754 2005-09-06  Simon Josefsson  <jas@extundo.com>
64755
64756         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64757         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64758
64759 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64760
64761         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64762         warning.
64763
64764 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64765
64766         * config/srclist.txt: Add glibc bug 1302.
64767
64768 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64769
64770         Change bitset word type from unsigned int to unsigned long int,
64771         as this has better performance on typical 64-bit hosts.
64772         Port bitset code to hosts with unusual word sizes.
64773         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64774         (build_collating_symbol):
64775         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64776         argument is a bitset.  This is merely a style issue, but it makes
64777         it clearer that an entire array is expected.
64778         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64779         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64780         Port to the case where bitset_word is not the same as unsigned int.
64781         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64782         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64783         Likewise.
64784         * lib/regexec.c (check_dst_limits_calc_pos_1,
64785         check_subexp_matching_top):
64786         (build_trtable, group_nodes_into_DFAstates):
64787         Likewise.
64788         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64789         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64790         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64791         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64792         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64793         * lib/regcomp.c (optimize_subexps, lower_subexp):
64794         Work even if bitset_word has holes in its bitwise representation.
64795         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64796         * lib/regexec.c (check_dst_limits_calc_pos_1,
64797         check_subexp_matching_top):
64798         Likewise.
64799         * lib/regex_internal.c (re_string_reconstruct):
64800         Don't assume UCHAR_MAX == 255.
64801         * lib/regex_internal.h (bitset_set_all): Likewise.
64802         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64803         All uses changed.
64804         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64805         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64806         All uses changed.
64807         (BITSET_WORD_MAX): New macro.
64808         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64809         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64810         (bitset_empty, bitset_copy):
64811         Prefer sizeof (bitset) to multiplying it out ourselves.
64812         (bitset_not_merge): Remove; unused.
64813         (bitset_contain): Return bool, not unsigned int with one bit on.
64814         All callers changed.
64815         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64816         alignment than re_node_set; do this by defining a new internal
64817         type struct dests_alloc and using it to allocate memory.
64818
64819 2005-09-05  Bruno Haible  <bruno@clisp.org>
64820
64821         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64822         links.
64823
64824 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64825
64826         * modules/size_max (Makefile.am): Add size_max.h
64827
64828 2005-09-04  Derek Price  <derek@ximbiot.com>
64829
64830         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64831
64832 2005-09-03  Simon Josefsson  <jas@extundo.com>
64833
64834         * gnulib-tool: Fix typo.
64835
64836 2005-09-03  Simon Josefsson  <jas@extundo.com>
64837
64838         * config/srclist.txt: Add glibc bug 1293.
64839
64840 2005-09-03  Derek Price  <derek@ximbiot.com>
64841
64842         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64843         From Larry Jones <lawrence.jones@ugs.com>.
64844
64845 2005-09-02  Simon Josefsson  <jas@extundo.com>
64846
64847         * modules/socklen: New file.
64848
64849 2005-09-02  Simon Josefsson  <jas@extundo.com>
64850
64851         * modules/havelib: New module.
64852
64853         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64854         Use havelib.
64855
64856 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64857
64858         Check for arithmetic overflow when calculating sizes, to prevent
64859         some buffer-overflow issues.  These patches are conservative, in the
64860         sense that when I couldn't determine whether an overflow was possible,
64861         I inserted a run-time check.
64862         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64863         macros.
64864         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64865         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64866         (re_xnrealloc, re_x2nrealloc): New inline functions.
64867         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64868         parse_bracket_exp):
64869         (build_equiv_class, build_charclass): Check for arithmetic overflow
64870         in size expression calculations.
64871         * lib/regex_internal.c (re_string_realloc_buffers):
64872         (build_wcs_upper_buffer, re_node_set_add_intersect):
64873         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64874         (re_dfa_add_node, register_state): Likewise.
64875         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64876         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64877         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64878         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64879
64880 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64883         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64884
64885 2005-09-02  Bruno Haible  <bruno@clisp.org>
64886
64887         Support for lib vs. lib64 distinction on biarch platforms.
64888         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64889         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64890         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64891
64892 2005-09-02  Bruno Haible  <bruno@clisp.org>
64893
64894         * gnulib-tool (import): In the other first-use case, provide defaults
64895         as well.
64896
64897 2005-09-02  Bruno Haible  <bruno@clisp.org>
64898
64899         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64900         patches not yet found in the latest gettext release.
64901
64902 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64903
64904         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64905         to avoid a collision with bits/local_lim.h in glibc.
64906         All uses changed.  Problem reported by Dmitry V. Levin in
64907         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64908
64909         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64910         bugs in int versus size_t comparisons.
64911         (re_string_context_at): Fix bug where the code assumed that
64912         Idx is signed.
64913
64914         Use bool where appropriate.
64915         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64916         All callers changed.
64917         (calc_eclosure_iter): Likewise, for ROOT arg.
64918         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64919         (build_charclass_op): Likewise, for NON_MATCH arg.
64920         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64921         (re_string_construct_common): Likewise, for ICASE arg.
64922         * lib/regexec.c (re_search_2_stub, re_search_stub):
64923         Likewise, for RET_LEN arg.
64924         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64925         (set_regs): Likewise, for FL_BACKTRACK arg.
64926         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64927         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64928         (calc_eclosure_iter, parse_bracket_exp):
64929         Use bool for internal variables that are booleans.
64930         * lib/regexec.c (re_search_internal, check_matching,
64931         proceed_next_node):
64932         (set_regs, build_sifted_states, sift_states_bkref):
64933         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64934         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64935         (find_collation_sequence_value):
64936         Likewise.
64937         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64938         (re_node_set_compare):
64939         Return bool, not int. All callers changed.
64940         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64941         (build_trtable, check_node_accept): Likewise.
64942         * lib/regex_internal.h: Include stdbool.h.
64943
64944         Fix bugs uncovered when converting to bool.
64945         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64946         failure instead of charging ahead blindly.
64947         * lib/regex_internal.c (register_state): Likewise.
64948         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64949         for freeing internal storage.
64950         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64951         bitset pieces used as boolean, to avoid undefined behavior
64952         on hosts that do int overflow checking.
64953
64954 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64955
64956         * config/srclist.txt: Add glibc bugs 1285-1287.
64957
64958 2005-09-01  Jim Meyering  <jim@meyering.net>
64959
64960         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64961         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64962         Require gl_STAT_MACROS, too.
64963
64964 2005-09-01  Bruno Haible  <bruno@clisp.org>
64965
64966         * gnulib-tool (import): In the first-use case, provide defaults.
64967
64968 2005-09-01  Bruno Haible  <bruno@clisp.org>
64969
64970         * gnulib-tool (func_import): Remove the .tmp files.
64971
64972 2005-09-01  Bruno Haible  <bruno@clisp.org>
64973
64974         * gnulib-tool (func_import): Fix handling of symbolic links.
64975
64976 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64977
64978         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64979         old glibc regex code mishandles strings longer than 2**31 bytes.
64980         This patch fixes this when the regex code is used in gnulib
64981         (i.e., outside glibc).
64982
64983         This patch should not affect the use of the regex code inside
64984         glibc.  No doubt this problem also needs to be handled for glibc
64985         as well, but the result will be an incompatible change to the
64986         glibc ABI, and the old ABI will have to be supported too.  That
64987         can be the the subject for another patch.
64988
64989         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64990         governing whether the rest of this patch is active.  By default,
64991         the macro is disabled and the patch has no effect.
64992         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64993         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64994         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64995         (re_match_2, re_set_registers): Use the new types.
64996         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64997         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64998         New macros.
64999         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
65000         (re_string_context_at, bin_tree_t, re_dfastate_t):
65001         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
65002         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
65003         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
65004         (re_string_char_size_at, re_string_wchar_at):
65005         (re_string_elem_size_at):
65006         Use the new types and macros to port to 64-bit hosts.
65007         Use unsigned types for internal values, so that the code
65008         mostly works even for arrays larger than SSIZE_MAX.
65009         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
65010         (search_duplicated_node, calc_eclosure_iter, fetch_number):
65011         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
65012         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
65013         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
65014         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
65015         (calc_inveclosure, parse_dup_op, build_range_exp):
65016         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
65017         (fetch_number, create_token_tree, mark_opt_subexp):
65018         Likewise.
65019         * lib/regex_internal.c (re_string_construct_common,
65020         create_ci_newstate):
65021         (create_cd_newstate, re_string_allocate, re_string_construct):
65022         (re_string_realloc_buffers, build_wcs_upper_buffer):
65023         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65024         (re_string_reconstruct, re_string_peek_byte_case):
65025         (re_string_fetch_byte_case, re_string_context_at):
65026         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65027         (re_node_set_init_copy, re_node_set_add_intersect):
65028         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65029         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65030         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65031         (re_acquire_state, re_acquire_state_context, register_state):
65032         Likewise.
65033         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
65034         search_cur_bkref_entry):
65035         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
65036         (re_search_internal, re_search_2_stub, re_search_stub)
65037         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
65038         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
65039         (update_cur_sifted_state, check_dst_limits):
65040         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65041         (check_subexp_limits, sift_states_bkref, merge_state_array):
65042         (check_subexp_matching_top, get_subexp, get_subexp_sub):
65043         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
65044         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65045         (expand_bkref_cache, check_node_accept_bytes):
65046         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
65047         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
65048         (acquire_init_state_context, check_halt_node_context):
65049         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
65050         (sift_states_backward, clean_state_log_if_needed):
65051         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
65052         (find_recover_state, transit_state_sb, transit_state_mb):
65053         (transit_state_bkref, build_trtable, match_ctx_clean):
65054         Likewise.
65055         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65056         to work around an assumption that REG_MISSING is negative.
65057
65058         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65059         (seek_collating_symbol_entry) [defined _LIBC]:
65060         (lookup_collation_sequence_value) [defined _LIBC]:
65061         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65062         Use prototypes rather than old-style function definitions.
65063         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65064         (transit_state_sb) [0]:
65065         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65066
65067         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65068         rm_eo.
65069
65070         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65071         (optimize_subexps, lower_subexp):
65072         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65073         since the signed shift might overflow.  Use 1u<<31 instead.
65074         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65075         Likewise.
65076         * lib/regexec.c (check_dst_limits_calc_pos_1,
65077         check_subexp_matching_top): Likewise.
65078
65079         * lib/regcomp.c (optimize_subexps, lower_subexp):
65080         Use CHAR_BIT rather than 8, for clarity.
65081         * lib/regexec.c (check_dst_limits_calc_pos_1):
65082         (check_subexp_matching_top): Likewise.
65083         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65084         have to worry about portability issues when shifting it left.
65085         Remove no-longer-needed test for table_size > 0.
65086         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65087         in a word, as the resulting behavior is undefined.
65088         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65089         in one case, a <= should have been an <, and in another case the
65090         whole test was missing.
65091         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65092         the standard name CHAR_BIT.
65093         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65094         this is not true on one's complement and signed-magnitude hosts.
65095
65096         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65097         next_last_offset.
65098         (struct re_dfa_t): Remove unused member states_alloc.
65099         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65100
65101 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65102
65103         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65104         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65105         and large-file glibc and in 32-bit large-file Solaris.
65106
65107 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65108
65109         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65110         lengths fit in regoff_t; this isn't true if regoff_t is the same
65111         width as size_t.
65112         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65113         (= START + RANGE) instead of RANGE.  This avoids overflow
65114         problems when regoff_t is the same width as size_t.
65115         All callers changed.
65116         (re_search_2_stub): Check for overflow when adding the
65117         sizes of the two strings.
65118         (re_search_stub): Check for overflow when adding START
65119         to RANGE; if it occurs, substitute the extreme value.
65120
65121 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65122
65123         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65124
65125 2005-08-31  Jim Meyering  <jim@meyering.net>
65126
65127         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65128         a pointer-to-const.
65129         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65130         (register_state): Likewise.
65131         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65132         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65133         (group_nodes_into_DFAstates): Likewise.
65134
65135 2005-08-31  Jim Meyering  <jim@meyering.net>
65136
65137         * check-module: Add a FIXME comment.
65138
65139 2005-08-31  Eric Blake  <ebb9@byu.net>
65140
65141         * modules/unistd-safer (Files): Add unistd--.h.
65142         * modules/stdio-safer (Files): Add stdio--.h.
65143
65144 2005-08-31  Derek Price  <derek@ximbiot.com>
65145
65146         * lib/getdelim.c (getdelim): Return EOF on EOF.
65147         Reported by Larry Jones <lawrence.jones@ugs.com>.
65148
65149 2005-08-31  Bruno Haible  <bruno@clisp.org>
65150
65151         Avoid unnecessary diffs in the generated lib/Makefile.am.
65152         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65153         the generated files.
65154         (func_import): Don't set cmd.
65155
65156 2005-08-31  Bruno Haible  <bruno@clisp.org>
65157
65158         * lib/strstr.c: Include <stddef.h>, for NULL.
65159         * lib/strcasestr.c: Likewise.
65160         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65161
65162 2005-08-31  Bruno Haible  <bruno@clisp.org>
65163
65164         * gnulib-tool: New option --macro-prefix.
65165         (func_import): Use macro_prefix.
65166         (import): Handle option --macro-prefix.
65167
65168 2005-08-31  Bruno Haible  <bruno@clisp.org>
65169
65170         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65171         Also use new variables cached_lgpl, cached_libtool.
65172
65173 2005-08-31  Bruno Haible  <bruno@clisp.org>
65174
65175         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65176         always instantiating them.
65177
65178 2005-08-31  Bruno Haible  <bruno@clisp.org>
65179
65180         * gnulib-tool (func_import): Read the previous cached settings
65181         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65182         earlier added by gnulib but are now dropped. Warn when a gnulib file
65183         overwrites a non-gnulib file.
65184
65185 2005-08-31  Bruno Haible  <bruno@clisp.org>
65186
65187         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65188         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65189         projects that don't keep autogenerated files in CVS. Put into
65190         actioncmd only the specified modules, not the transitive closure.
65191
65192 2005-08-31  Bruno Haible  <bruno@clisp.org>
65193
65194         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65195         Create directories that shall be filled.
65196         (import): Don't look for gl_* macros in configure.ac. Recurse across
65197         all directories containing a gnulib-cache.m4 files, if meaningful.
65198
65199 2005-08-31  Bruno Haible  <bruno@clisp.org>
65200
65201         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65202         (import): Set seen_libtool when we see gl_LIBTOOL.
65203
65204 2005-08-31  Bruno Haible  <bruno@clisp.org>
65205
65206         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65207         declaration macro definitions from generated gnulib.m4.
65208
65209 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65210
65211         * lib/iconvme.h: Add prototype for iconv_alloc.
65212
65213 2005-08-29  Simon Josefsson  <jas@extundo.com>
65214
65215         * lib/iconvme.c: Fix errno.
65216
65217 2005-08-29  Bruno Haible  <bruno@clisp.org>
65218
65219         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65220         that it works when the directory contains spaces.
65221
65222 2005-08-29  Bruno Haible  <bruno@clisp.org>
65223
65224         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65225
65226 2005-08-29  Bruno Haible  <bruno@clisp.org>
65227
65228         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65229         Emit more advice.
65230
65231 2005-08-29  Bruno Haible  <bruno@clisp.org>
65232         and Stepan Kasal  <kasal@ucw.cz>
65233
65234         * check-module: If more parameters are given, check each of them
65235         separately; add more exceptions, as noted by Jim Meyering.
65236         (check_module): New procedure.
65237         (%exempt_header): Now contains all exceptions.
65238
65239 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65240
65241         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65242
65243 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65244
65245         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65246
65247 2005-08-28  Bruno Haible  <bruno@clisp.org>
65248
65249         * m4/gnulib-tool.m4: New file.
65250
65251 2005-08-27  Jim Meyering  <jim@meyering.net>
65252
65253         * modules/unistd-safer (Files): Add pipe-safer.c.
65254         * modules/fcntl-safer (Files): Add creat-safer.c.
65255
65256 2005-08-27  Jim Meyering  <jim@meyering.net>
65257
65258         * m4/stdlib-safer.m4: New file.  From coreutils.
65259         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65260         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65261         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65262         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65263         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65264
65265 2005-08-27  Jim Meyering  <jim@meyering.net>
65266
65267         * lib/fopen-safer.c: Merge minor changes from coreutils.
65268         * lib/dup-safer.c: Likewise.
65269         * lib/fd-safer.c: Likewise.
65270
65271         Merge from coreutils.
65272         * lib/stdio--.h: New file.
65273         * lib/stdlib--.h: New file.
65274         * lib/mkstemp-safer.c: New file.
65275
65276         GNU tar needs these.
65277         * lib/pipe-safer.c: New file.
65278         * lib/creat-safer.c: New file.
65279         * lib/fcntl--.h (creat): Define to creat_safer.
65280         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65281         * lib/unistd--.h (pipe): Define to pipe_safer.
65282         * lib/unistd-safer.h: Declare pipe_safer.
65283
65284 2005-08-26  Simon Josefsson  <jas@extundo.com>
65285
65286         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65287         Haible <bruno@clisp.org>.
65288
65289 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65290
65291         * lib/regex_internal.h: Remove all references to
65292         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65293         or better.
65294         (bitset_not, bitset_merge, bitset_not_merge):
65295         (bitset_mask, re_string_allocate, re_string_construct):
65296         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65297         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65298         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65299         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65300         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65301         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65302         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65303         (re_acquire_state_context):
65304         Remove unnecessary forward decls.
65305         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65306         Put __attribute at function definition,
65307         now that the function decl has been removed.
65308         * lib/regex_internal.c (re_string_peek_byte_case):
65309         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65310         Likewise.
65311
65312 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65313
65314         * m4/regex.m4: Add AC_PREREQ(2.50).
65315         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65316
65317 2005-08-25  Simon Josefsson  <jas@extundo.com>
65318
65319         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65320         __fsetlocking.
65321
65322 2005-08-25  Simon Josefsson  <jas@extundo.com>
65323
65324         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65325         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65326         GLIBC specific code.
65327
65328 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65329
65330         Make regex safe for g++.  This fixes one real bug (an "err"
65331         that should have been "*err").  g++ problem reported by
65332         Sam Steingold.
65333         * lib/regex_internal.h (re_calloc): New macro, consistent with
65334         re_malloc etc.  All callers of calloc changed to use re_calloc.
65335         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65336         not int.  All callers changed.
65337         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65338         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65339         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65340         (find_recover_state): Change "err" to "*err"; this fixes what
65341         appears to be a real bug.
65342         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65343         versus int.
65344
65345 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65346
65347         * modules/regex (Depends-on): Add malloc, since the code
65348         assumes that !malloc(0) means failure.
65349
65350 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65351
65352         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65353
65354         alloca modernization/simplification for regex.
65355         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65356         needs to be at the start of the file, and can be moved into
65357         regex_internal.h and simplified.
65358         * lib/regex_internal.h: Include <alloca.h>.
65359         (__libc_use_alloca) [!defined _LIBC]: New macro.
65360         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65361         now works outside glibc.
65362
65363 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65364
65365         * config/srclist.txt: Add glibc bugs 1241, 1245.
65366
65367 2005-08-25  Jim Meyering  <jim@meyering.net>
65368
65369         * lib/open-safer.c: Include <config.h>.
65370         Otherwise, we'd lose LARGEFILE support in any file using
65371         e.g. "fcntl--.h"
65372
65373 2005-08-25  Bruno Haible  <bruno@clisp.org>
65374
65375         * m4/minmax.m4: Require autoconf 2.52.
65376         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65377         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65378         alternatives of translit over the alphabet.
65379         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65380
65381 2005-08-24  Simon Josefsson  <jas@extundo.com>
65382
65383         * tests/test-getpass.c: New file.
65384
65385 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65386
65387         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65388         for GNU regex features.
65389
65390 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65391
65392         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65393         * lib/regex.h (regerror): Likewise.
65394
65395         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65396         requires this.  (The code never needed it.)
65397
65398         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65399         All uses of recently-renamed identifiers changed to use the new,
65400         POSIX-compliant names.  The code will build and run just fine
65401         without these changes, but it's better to eat our own dog food
65402         and use the standard-conforming names.
65403
65404         * lib/regex.h: Fix a multitude of POSIX name space violations.
65405         These changes have an effect only for programs that define
65406         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65407         do not change anything for programs compiled in the normal way.
65408         Also, there is no effect on the ABI.
65409
65410         (_REGEX_SOURCE): New macro.
65411         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65412         defined and _GNU_SOURCE is not; this fixes a name space violation.
65413
65414         Rename the following macros to obey POSIX requirements.
65415         The old names are still visible as macros if _REGEX_SOURCE is defined.
65416         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65417         RE_BACKSLASH_ESCAPE_IN_LISTS.
65418         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65419         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65420         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65421         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65422         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65423         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65424         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65425         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65426         (REG_INTERVALS): renamed from RE_INTERVALS.
65427         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65428         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65429         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65430         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65431         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65432         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65433         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65434         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65435         RE_UNMATCHED_RIGHT_PAREN_ORD.
65436         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65437         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65438         (REG_DEBUG): renamed from RE_DEBUG.
65439         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65440         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65441         unusual, since we can't clash with the POSIX REG_ICASE.
65442         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65443         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65444         (REG_NO_SUB): renamed from RE_NO_SUB.
65445         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65446         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65447         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65448         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65449         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65450         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65451         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65452         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65453         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65454         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65455         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65456         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65457         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65458         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65459         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65460         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65461         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65462         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65463         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65464         (REG_FIXED): Renamed from REGS_FIXED.
65465         (REG_NREGS): Renamed from RE_NREGS.
65466
65467         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65468         of other REG_* macros, since POSIX says the user is allowed to
65469         #undef these macros selectively.
65470
65471         (reg_errcode_t): Update comment stating what other tables need
65472         to be consistent.
65473
65474         Rename the following enum values to obey POSIX requirements.
65475         The old names are still visible as macros.
65476         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65477         is not defined, since GNU is supposed to be a superset of POSIX as
65478         much as possible, and since we want reg_errcode_t to be a signed
65479         type for implementation consistency.
65480         (_REG_NOERROR): Renamed from REG_NOERROR.
65481         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65482         (_REG_BADPAT): Renamed from REG_BADPAT.
65483         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65484         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65485         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65486         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65487         (_REG_EBRACK): Renamed from REG_EBRACK.
65488         (_REG_EPAREN): Renamed from REG_EPAREN.
65489         (_REG_EBRACE): Renamed from REG_EBRACE.
65490         (_REG_BADBR): Renamed from REG_BADBR.
65491         (_REG_ERANGE): Renamed from REG_ERANGE.
65492         (_REG_ESPACE): Renamed from REG_ESPACE.
65493         (_REG_BADRPT): Renamed from REG_BADRPT.
65494         (_REG_EEND): Renamed from REG_EEND.
65495         (_REG_ESIZE): Renamed from REG_ESIZE.
65496         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65497         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65498         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65499         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65500         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65501
65502         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65503         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65504         changed.  But support the old name if the new one is not defined
65505         and if _REGEX_SOURCE.
65506
65507         Change the following member names in struct re_pattern_buffer.
65508         The old names are still supported if !_REGEX_SOURCE.
65509         The new names are always supported, regardless of _REGEX_SOURCE.
65510         (re_buffer): Renamed from buffer.
65511         (re_allocated): Renamed from allocated.
65512         (re_used): Renamed from used.
65513         (re_syntax): Renamed from syntax.
65514         (re_fastmap): Renamed from fastmap.
65515         (re_translate): Renamed from translate.
65516         (re_can_be_null): Renamed from can_be_null.
65517         (re_regs_allocated): Renamed from regs_allocated.
65518         (re_fastmap_accurate): Renamed from fastmap_accurate.
65519         (re_no_sub): Renamed from no_sub.
65520         (re_not_bol): Renamed from not_bol.
65521         (re_not_eol): Renamed from not_eol.
65522         (re_newline_anchor): Renamed from newline_anchor.
65523
65524         Change the following member names in struct re_registers.
65525         The old names are still supported if !_REGEX_SOURCE.
65526         The new names are always supported, regardless of _REGEX_SOURCE.
65527         (rm_num_regs): Renamed from num_regs.
65528         (rm_start): Renamed from start.
65529         (rm_end): Renamed from end.
65530
65531         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65532         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65533         Prepend __ to parameter names.
65534
65535         Undo yesterday's changes.
65536
65537 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65540         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65541         lib/regex.c.
65542
65543 2005-08-24  Jim Meyering  <jim@meyering.net>
65544
65545         Sync from coreutils.
65546         * m4/fcntl-safer.m4: New file.
65547
65548         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65549         and object files for this module.
65550
65551 2005-08-24  Jim Meyering  <jim@meyering.net>
65552
65553         Sync from coreutils.
65554         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65555
65556 2005-08-24  Jim Meyering  <jim@meyering.net>
65557
65558         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65559         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65560
65561 2005-08-24  Jim Meyering  <jim@meyering.net>
65562
65563         * modules/fcntl-safer: New module.
65564         * modules/fts (Depends-on): Add fcntl-safer.
65565         * MODULES.html.sh (File descriptor based Input/Output):
65566         Add fcntl-safer.
65567
65568 2005-08-24  Bruno Haible  <bruno@clisp.org>
65569
65570         Support for unit test modules.
65571         * modules/README: Mention tests modules.
65572         * modules/TEMPLATE-TESTS: New file.
65573         * gnulib-tool: New options --extract-tests-module, --with-tests and
65574         --tests-base (unused for the moment).
65575         (testsbase, inctests): New variables.
65576         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65577         (func_verify_module): Exclude TEMPLATE-TESTS.
65578         (func_verify_nontests_module, func_verify_tests_module): New functions.
65579         (func_get_dependencies): Add implicit dependency for tests modules.
65580         (func_get_tests_module): New function.
65581         (func_modules_transitive_closure): When --with-tests was specified,
65582         include the unit tests as well, unless explicitly avoided.
65583         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65584         (func_emit_tests_Makefile_am): New function.
65585         (func_create_testdir): When --with-tests was specified, emit a
65586         tests/ directory.
65587         * MODULES.html.sh (Future developments): Update.
65588
65589 2005-08-24  Bruno Haible  <bruno@clisp.org>
65590
65591         * modules/tls-tests: New file.
65592         * tests/test-tls.c: New file, from GNU gettext.
65593
65594 2005-08-24  Bruno Haible  <bruno@clisp.org>
65595
65596         * modules/lock-tests: New file.
65597         * tests/test-lock.c: New file, from GNU gettext.
65598
65599 2005-08-24  Bruno Haible  <bruno@clisp.org>
65600
65601         * lib/lock.h: Add multiple inclusion guard.
65602         * lib/tls.h: Add multiple inclusion guard.
65603
65604 2005-08-24  Bruno Haible  <bruno@clisp.org>
65605
65606         * gnulib-tool: Add support for the --aux-dir option to
65607         --create-testdir, --create-megatestdir, --test, --megatest.
65608         (func_create_testdir, func_create_megatestdir): Optionally emit a
65609         AC_CONFIG_AUX_DIR directive.
65610         (create-testdir, create-megatestdir, test, megatest): Provide a
65611         default value for $auxdir.
65612
65613 2005-08-24  Bruno Haible  <bruno@clisp.org>
65614
65615         * gnulib-tool (import): Use compound statement instead of subshell
65616         where possible.
65617
65618 2005-08-24  Bruno Haible  <bruno@clisp.org>
65619
65620         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65621
65622 2005-08-24  Bruno Haible  <bruno@clisp.org>
65623
65624         * gnulib-tool (func_version): Update.
65625
65626 2005-08-24  Bruno Haible  <bruno@clisp.org>
65627
65628         * gnulib-tool (func_import, func_create_testdir,
65629         func_create_megatestdir): Quote all autoconf macro arguments.
65630
65631 2005-08-24  Bruno Haible  <bruno@clisp.org>
65632
65633         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65634         option --force, because --force causes the aclocal.m4 of each
65635         subdirectory to be newer than the corresponding config.h.in.
65636
65637 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65638
65639         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65640         All contents moved to gl_REGEX.
65641         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65642         assume that it does.
65643
65644 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65645
65646         * lib/regex.h (REG_NOSYS)
65647         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65648         Define, since POSIX requires it as of 2001.
65649         (_REG_ENOSYS)
65650         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65651         New private symbol, used to keep the enum signed in all cases.
65652         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65653         Youngman in
65654         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65655
65656         * lib/regex_internal.c (re_string_skip_chars, register_state):
65657         (calc_state_hash):
65658         Remove forward decls; no longer needed now that we use prototypes.
65659         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65660         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65661         (clean_state_log_if_needed): Likewise.
65662
65663 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65664
65665         * config/srclist.txt: Add glibc bugs 1231-1233.
65666
65667 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65668
65669         Fix problems reported by Sam Steingold in
65670         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65671         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65672         assumed that reg_errcode_t is a signed type, which is not
65673         necessarily true if _XOPEN_SOURCE is not defined.
65674         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65675         since some compilers warn about it otherwise.
65676
65677 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65680         (init_word_char, create_initial_state, duplicate_node_closure):
65681         (fetch_token, peek_token_bracket, build_range_exp):
65682         (build_collating_symbol): Remove forward decls; no longer needed
65683         now that we use prototypes.
65684
65685         * lib/regcomp.c:
65686         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65687         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65688         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65689         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65690         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65691         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65692         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65693         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65694         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65695         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65696         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65697         (build_charclass, build_charclass_op, fetch_number, create_tree):
65698         (create_token_tree, mark_opt_subexp, duplicate_tree):
65699         Use prototypes rather than old-style definitions.
65700
65701         * lib/regex_internal.c:
65702         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65703         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65704         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65705         (re_string_reconstruct, re_string_peek_byte_case):
65706         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65707         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65708         (re_node_set_init_copy, re_node_set_add_intersect):
65709         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65710         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65711         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65712         (re_acquire_state, re_acquire_state_context, register_state):
65713         (create_ci_newstate, create_cd_newstate, free_state):
65714         Likewise.
65715         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65716         re_search_2):
65717         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65718         (re_search_internal, prune_impossible_nodes):
65719         (acquire_init_state_context, check_matching, static):
65720         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65721         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65722         (update_regs, sift_states_backward, build_sifted_states):
65723         (clean_state_log_if_needed, merge_state_array):
65724         (update_cur_sifted_state, add_epsilon_src_nodes):
65725         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65726         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65727         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65728         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65729         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65730         (check_arrival, check_arrival_add_next_nodes):
65731         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65732         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65733         (check_node_accept_bytes, check_node_accept, extend_buffers):
65734         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65735         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65736         (sift_ctx_init):
65737         Likewise.
65738
65739         * lib/regex_internal.h:
65740         (re_string_allocate, re_string_construct, re_string_reconstruct):
65741         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65742         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65743         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65744         (re_string_context_at, re_string_peek_byte_case):
65745         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65746         is defined, since we now use prototypes always.
65747
65748         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65749         C89 or better.  All uses removed.
65750
65751 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65752
65753         * config/srclist.txt: Add glibc bugs 1220-1227.
65754
65755 2005-08-20  Jim Meyering  <jim@meyering.net>
65756
65757         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65758         of unused local, dfa.
65759
65760 2005-08-20  Bruno Haible  <bruno@clisp.org>
65761
65762         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65763
65764 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65765
65766         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65767         (re_node_set_insert_last, re_dfa_add_node):
65768         Rename local variables to avoid GCC shadowing warnings.
65769
65770 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65771
65772         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65773         [defined lint]: Suppress bogus uninitialized-variable warnings.
65774
65775         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65776         and let the caller return REG_ESPACE if out of space.  This
65777         removes an uninitialied-variable warning with GCC 4.0.1, and also
65778         avoids taking the address of a local variable.  All callers
65779         changed.
65780
65781 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65782
65783         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65784         $LIBCSRC/posix/regexec.c.
65785         Add glibc bug 1217 for regcomp.c.
65786
65787 2005-08-19  Jim Meyering  <jim@meyering.net>
65788
65789         * lib/regexec.c (proceed_next_node): Redo local variables to
65790         avoid GCC shadowing warnings.
65791
65792 2005-08-18  Bruno Haible  <bruno@clisp.org>
65793
65794         * lib/strstr.c (strstr): Fix return value in multibyte case.
65795         * lib/strcasestr.c (strcasestr): Likewise.
65796
65797 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65800
65801 2005-08-17  Jim Meyering  <jim@meyering.net>
65802
65803         Make the %s format (seconds since the epoch) work for a negative
65804         number and when used with a zero-padded field width, e.g. %015s.
65805
65806         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65807         label so that it precedes the code to set `digits'.  Otherwise,
65808         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65809         print `00-22'.  Now, it prints `-0022', as it should.
65810
65811 2005-08-17  Bruno Haible  <bruno@clisp.org>
65812
65813         * modules/strstr (Files): Add m4/mbrtowc.m4.
65814         (Depends-on): Add mbuiter.
65815
65816 2005-08-17  Bruno Haible  <bruno@clisp.org>
65817
65818         * modules/strcasestr: New file.
65819         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65820         strcasestr.
65821
65822 2005-08-17  Bruno Haible  <bruno@clisp.org>
65823
65824         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65825
65826 2005-08-17  Bruno Haible  <bruno@clisp.org>
65827
65828         * modules/mbuiter: New file.
65829         * MODULES.html.sh (Extended multibyte and wide character utilities):
65830         Add mbuiter.
65831
65832 2005-08-17  Bruno Haible  <bruno@clisp.org>
65833
65834         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65835         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65836
65837 2005-08-17  Bruno Haible  <bruno@clisp.org>
65838
65839         * m4/strcasestr.m4: New file.
65840
65841 2005-08-17  Bruno Haible  <bruno@clisp.org>
65842
65843         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65844         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65845
65846 2005-08-17  Bruno Haible  <bruno@clisp.org>
65847
65848         * lib/strcasestr.h: New file.
65849         * lib/strcasestr.c: New file.
65850
65851 2005-08-17  Bruno Haible  <bruno@clisp.org>
65852
65853         * lib/strcasecmp.c: Use mbuiter.h.
65854
65855 2005-08-17  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/mbuiter.h: New file.
65858
65859 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65862         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65863         and gl_GETOPT are both invoked via different paths (as happens
65864         with GNU tar CVS because it uses both argp and getopt), the former
65865         wins.
65866
65867 2005-08-16  Bruno Haible  <bruno@clisp.org>
65868
65869         * modules/tls: New file.
65870         * MODULES.html.sh (Multithreading): Add tls.
65871
65872 2005-08-16  Bruno Haible  <bruno@clisp.org>
65873
65874         * modules/strnlen1: New file.
65875         * MODULES.html.sh (String handling): Add strnlen1.
65876
65877 2005-08-16  Bruno Haible  <bruno@clisp.org>
65878
65879         * modules/strcase (Files): Add m4/mbrtowc.m4.
65880         (Depends-on): Add strnlen1, mbchar.
65881
65882 2005-08-16  Bruno Haible  <bruno@clisp.org>
65883
65884         * modules/mbiter: New file.
65885         * MODULES.html.sh (Extended multibyte and wide character utilities):
65886         Add mbiter.
65887
65888 2005-08-16  Bruno Haible  <bruno@clisp.org>
65889
65890         * modules/mbfile: New file.
65891         * MODULES.html.sh (Extended multibyte and wide character utilities):
65892         Add mbfile.
65893
65894 2005-08-16  Bruno Haible  <bruno@clisp.org>
65895
65896         * modules/mbchar: New file.
65897         * MODULES.html.sh (Extended multibyte and wide character utilities):
65898         New section.
65899
65900 2005-08-16  Bruno Haible  <bruno@clisp.org>
65901
65902         * m4/tls.m4: New file, from GNU gettext.
65903
65904 2005-08-16  Bruno Haible  <bruno@clisp.org>
65905
65906         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65907         always.
65908         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65909
65910 2005-08-16  Bruno Haible  <bruno@clisp.org>
65911
65912         * m4/mbiter.m4: New file.
65913
65914 2005-08-16  Bruno Haible  <bruno@clisp.org>
65915
65916         * m4/mbfile.m4: New file.
65917
65918 2005-08-16  Bruno Haible  <bruno@clisp.org>
65919
65920         * m4/mbchar.m4: New file.
65921
65922 2005-08-16  Bruno Haible  <bruno@clisp.org>
65923
65924         * lib/tls.h: New file, from GNU gettext.
65925         * lib/tls.c: New file, from GNU gettext.
65926
65927 2005-08-16  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/strnlen1.h: New file.
65930         * lib/strnlen1.c: New file.
65931
65932 2005-08-16  Bruno Haible  <bruno@clisp.org>
65933
65934         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65935         (mbi_init): Update.
65936         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65937         NUL byte, not after it.
65938
65939 2005-08-16  Bruno Haible  <bruno@clisp.org>
65940
65941         * lib/strcase.h (strcasecmp): Add note in comments.
65942         * lib/strncasecmp.c: Use code from strcasecmp.c.
65943         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65944         (strcasecmp): Work correctly in multibyte locales.
65945
65946 2005-08-16  Bruno Haible  <bruno@clisp.org>
65947
65948         * lib/mbiter.h: New file.
65949
65950 2005-08-16  Bruno Haible  <bruno@clisp.org>
65951
65952         * lib/mbfile.h: New file.
65953
65954 2005-08-16  Bruno Haible  <bruno@clisp.org>
65955
65956         * lib/mbchar.h: New file.
65957         * lib/mbchar.c: New file.
65958
65959 2005-08-16  Bruno Haible  <bruno@clisp.org>
65960
65961         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65962         the valid ones. Makes the comparison operations transitive:
65963         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65964         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65965
65966 2005-08-15  Simon Josefsson  <jas@extundo.com>
65967
65968         * modules/ssize_t (License): Change to 'unlimited'.
65969
65970         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65971
65972 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65973
65974         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65975         Add comments for each pending glibc patch.
65976
65977 2005-08-15  Bruno Haible  <bruno@clisp.org>
65978
65979         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65980         __cplusplus is defined.
65981
65982 2005-08-14  Jim Meyering  <jim@meyering.net>
65983
65984         Sync from coreutils.
65985
65986         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65987         Use the hash-table-based cycle-detection code not just when
65988         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65989         Reported by James Youngman in
65990         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65991         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65992         FTS_TIGHT_CYCLE_CHECK.
65993         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65994         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65995         once again.
65996         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65997         * lib/fts.c (fd_safer): Remove decl.
65998         Include fcntl--.h rather than unistd-safer.h
65999         (fts_safe_changedir): Don't call fd_safer; no longer needed
66000         now that we include fcntl--.h.
66001
66002 2005-08-12  Simon Josefsson  <jas@extundo.com>
66003
66004         * modules/getndelim2: Use ssize_t module.
66005         * modules/getnline: Likewise.
66006         * modules/safe-read: Likewise.
66007         * modules/xreadlink: Likewise.
66008
66009         * modules/ssize_t: New file.
66010
66011 2005-08-12  Simon Josefsson  <jas@extundo.com>
66012
66013         * m4/readline.m4: Look for termcap, curses or ncurses if required.
66014
66015 2005-08-12  Simon Josefsson  <jas@extundo.com>
66016
66017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66018         ssize_t.
66019
66020 2005-08-12  Simon Josefsson  <jas@extundo.com>
66021
66022         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
66023         readline, getdelim and check_version.
66024         (Support for systems lacking ISO C 99: Sizes of integer types):
66025         Add size_max.
66026
66027 2005-08-12  Bruno Haible  <bruno@clisp.org>
66028
66029         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
66030
66031 2005-08-11  Simon Josefsson  <jas@extundo.com>
66032
66033         * modules/readline: New file.
66034
66035         * modules/strnlen (Files): Add strnlen.h.
66036
66037 2005-08-11  Simon Josefsson  <jas@extundo.com>
66038
66039         * m4/readline.m4: New file.
66040
66041 2005-08-11  Simon Josefsson  <jas@extundo.com>
66042
66043         * lib/readline.h, readline.c: New file.
66044
66045 2005-08-11  Simon Josefsson  <jas@extundo.com>
66046
66047         * doc/gnulib.texi (Initial import, Finishing touches): Mention
66048         gl_AVOID.
66049
66050 2005-08-11  Bruno Haible  <bruno@clisp.org>
66051
66052         * lib/strnlen.h (strnlen): Change parameter name to match comment.
66053
66054 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66055
66056         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66057
66058 2005-08-10  Simon Josefsson  <jas@extundo.com>
66059
66060         * tests/test-iconvme.c: New file.
66061
66062 2005-08-10  Simon Josefsson  <jas@extundo.com>
66063
66064         * m4/strnlen.m4: New file.
66065
66066         * m4/strndup.m4: Don't check for strnlen declaration, done in
66067         strnlen.m4.
66068
66069 2005-08-10  Simon Josefsson  <jas@extundo.com>
66070
66071         * lib/strndup.c: Use strnlen.h.
66072
66073         * lib/strnlen.h: New file.
66074
66075 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66076
66077         * README: Typos.
66078
66079 2005-08-02  Simon Josefsson  <jas@extundo.com>
66080
66081         * modules/readline: New file.
66082
66083 2005-08-02  Simon Josefsson  <jas@extundo.com>
66084
66085         * modules/getdelim: New file.
66086
66087         * modules/getline: Rewrite, don't use getndelim2.
66088
66089 2005-08-02  Simon Josefsson  <jas@extundo.com>
66090
66091         * m4/getline.m4: Separate out getdelim stuff into separate module.
66092
66093         * m4/getdelim.m4: New file.
66094
66095 2005-08-02  Simon Josefsson  <jas@extundo.com>
66096
66097         * lib/getline.h, getline.c: Rewrite.
66098
66099         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66100
66101 2005-07-31  Bruno Haible  <bruno@clisp.org>
66102
66103         * lib/lock.h (gl_lock_initializer): New macro.
66104         (gl_lock_define_initialized): Use it.
66105         (gl_rwlock_initializer): New macro.
66106         (gl_rwlock_define_initialized): Use it.
66107         (gl_recursive_lock_initializer): New macro.
66108         (gl_recursive_lock_define_initialized): Use it.
66109
66110 2005-07-30  Karl Berry  <karl@gnu.org>
66111
66112         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66113         Report from Ben Pfaff, regarding getopt.
66114
66115 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66118         normal way.
66119         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66120         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66121         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66122         (gl_GETOPT): Use the new macros.  Most of the implementation
66123         is moved to the new macros.  This is for programs like Emacs
66124         that don't want all the functionality of gl_GETOPT.
66125
66126 2005-07-26  Bruno Haible  <bruno@clisp.org>
66127
66128         * m4/lock.m4: Update from GNU gettext.
66129
66130 2005-07-26  Bruno Haible  <bruno@clisp.org>
66131
66132         * lib/lock.h: Update from GNU gettext.
66133         * lib/lock.c: Update from GNU gettext.
66134
66135 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66136
66137         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66138         obsolescent AC_TRY_RUN.  Include the default includes files, for
66139         'exit'.
66140
66141 2005-07-24  Bruno Haible  <bruno@clisp.org>
66142
66143         * modules/visibility: New file.
66144         * MODULES.html.sh (Misc): Add visibility.
66145
66146 2005-07-24  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/visibility.m4: New file.
66149
66150 2005-07-24  Bruno Haible  <bruno@clisp.org>
66151
66152         * doc/visibility.texi: New file.
66153
66154 2005-07-22  Bruno Haible  <bruno@clisp.org>
66155
66156         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66157         $(ALLOCA_H), redundant through BUILT_SOURCES.
66158         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66159         redundant through BUILT_SOURCES.
66160         * modules/byteswap (Makefile.am): Remove explicit dependency on
66161         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66162         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66163         $(FNMATCH_H), redundant through BUILT_SOURCES.
66164         * modules/getopt (Makefile.am): Remove explicit dependency on
66165         $(GETOPT_H), redundant through BUILT_SOURCES.
66166         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66167         redundant through BUILT_SOURCES.
66168         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66169         redundant through BUILT_SOURCES.
66170         * modules/stdbool (Makefile.am): Remove explicit dependency on
66171         $(STDBOOL_H), redundant through BUILT_SOURCES.
66172         * modules/stdint (Makefile.am): Remove explicit dependency on
66173         $(STDINT_H), redundant through BUILT_SOURCES.
66174         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66175         Remove explicit dependency on $(SYSEXITS_H).
66176         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66177
66178 2005-07-18  Simon Josefsson  <jas@extundo.com>
66179
66180         * lib/check-version.c (check_version): Accept identical versions too.
66181
66182 2005-07-18  Bruno Haible  <bruno@clisp.org>
66183
66184         * modules/lock: New file.
66185         * MODULES.html.sh (Multithreading): New section.
66186
66187 2005-07-18  Bruno Haible  <bruno@clisp.org>
66188
66189         * m4/lock.m4: New file, from GNU gettext.
66190
66191 2005-07-18  Bruno Haible  <bruno@clisp.org>
66192
66193         * lib/lock.h: New file, from GNU gettext.
66194         * lib/lock.c: New file, from GNU gettext.
66195
66196 2005-07-18  Bruno Haible  <bruno@clisp.org>
66197
66198         * lib/lock.h (gl_once_t): New type.
66199         (gl_once_define, gl_once): New macros.
66200         * lib/lock.c (fresh_once): New variable.
66201         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66202         functions.
66203
66204 2005-07-16  Simon Josefsson  <jas@extundo.com>
66205
66206         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66207         workaround, suggested by Bruno.
66208
66209 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66210
66211         * modules/xalloc (Depends-on): Add xalloc-die.
66212         * modules/xvasprintf (Depends-on): Add xalloc-die.
66213
66214 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66215
66216         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66217         with a minor change.
66218
66219 2005-07-15  Bruno Haible  <bruno@clisp.org>
66220
66221         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66222         When using lib/poll.c, define poll as rpl_poll.
66223
66224 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66225
66226         * modules/argp (Depends-on): Remove unlocked-io.
66227
66228 2005-07-14  Derek Price  <derek@ximbiot.com>
66229
66230         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66231         for glob symlink bug.
66232
66233 2005-07-14  Bruno Haible  <bruno@clisp.org>
66234
66235         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66236         Instead, test for *_unlocked function declarations directly.
66237
66238 2005-07-11  Simon Josefsson  <jas@extundo.com>
66239
66240         * modules/size_max: New file.
66241
66242         * modules/xsize: Depend on size_max module for size_max.m4.
66243
66244 2005-07-11  Simon Josefsson  <jas@extundo.com>
66245
66246         * lib/size_max.h: New file.
66247
66248 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66249
66250         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66251         copyright symbol and the year.
66252         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66253         (version_etc_va): Use parameterized copyright notice.
66254         Reword to conform to the current GNU coding standards.
66255
66256 2005-07-11  Karl Berry  <karl@gnu.org>
66257
66258         * doc/gnulib.texi (Quoting): new node.
66259         (Initial import): more info, from Patrice.
66260
66261 2005-07-11  Bruno Haible  <bruno@clisp.org>
66262
66263         * gnulib-tool (func_usage): Document option --avoid.
66264         (Command line options): Handle --avoid.
66265         (func_acceptable): New function.
66266         (func_modules_transitive_closure): Use it.
66267
66268 2005-07-11  Bruno Haible  <bruno@clisp.org>
66269
66270         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66271         Reported by Jim Meyering.
66272
66273 2005-07-10  Bruno Haible  <bruno@clisp.org>
66274
66275         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66276         Needed when size_t is smaller than 'unsigned int'.
66277         Reported by Paul Eggert.
66278
66279 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66280
66281         * modules/argp (Depends-on): Add unlocked-io
66282
66283 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66284
66285         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66286         block of defines.
66287
66288 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66289
66290         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66291         fix now.
66292
66293 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66294         and Paul Eggert  <eggert@cs.ucla.edu>
66295
66296         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66297         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66298
66299 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66300
66301         * modules/regex (Files): Add lib/regex_internal.c,
66302         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66303         (Depends-on): Add extensions.
66304         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66305
66306 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66307
66308         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66309         pathconf.
66310         * m4/same.m4 (gl_SAME): Likewise.
66311         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66312
66313         * m4/regex.m4: Adjust to new libc regex implementation.
66314         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66315         all the .c and .h parts of (the new) regex.
66316         Quote the m4 stuff better.
66317         Check for RE_ICASE bug of old gnulib.
66318         Check for REG_STARTEND of recent libc.
66319         Rename local variables from jm_* to gl_*.
66320         Quote operand of "test -f".
66321         Say "recent enough" version of libc, not "version 2".
66322         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66323         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66324         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66325         Remove check for btowc, isascii.
66326         Require AM_LANGINFO_CODESET.
66327
66328 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         * lib/regex.c, regex.h: Sync from libc.
66331         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66332         * lib/regexec.c:
66333         New files, synced from libc, except that regex_internal.h
66334         currently has a small porting fix.
66335
66336 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66339         regex_internal.c, regexec.c.
66340         Add regex_internal.h too, but as a comment, since the libc version
66341         is currently broken in gnulib mode.
66342
66343 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66344
66345         Support programs like Emacs that use gnulib but not gettext.
66346         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66347         * modules/gettext-h: New file.
66348         * modules/gettext (Files): Remove lib/gettext.h.
66349         (Depends-on): Add gettext-h.
66350         (Makefile.am): Remove lib_SOURCES.
66351         * modules/argmatch, modules/c-stack, modules/closeout:
66352         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66353         * modules/execute, modules/file-type, modules/getaddrinfo:
66354         * modules/getopt, modules/human, modules/javacomp:
66355         * modules/javaexec, modules/mkdir-p, modules/obstack:
66356         * modules/openat, modules/pagealign_alloc, modules/pipe:
66357         * modules/quotearg, modules/regex, modules/rpmatch:
66358         * modules/unicodeio, modules/userspec, modules/version-etc:
66359         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66360         * modules/xsetenv:
66361         Depend on gettext-h, not gettext.
66362
66363 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66364
66365         * gnulib-tool (func_import): Add support for 'public domain' license.
66366         * modules/alloca, modules/atexit, modules/memmove:
66367         Now public domain, not GPL.
66368         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66369         * modules/realloc, modules/strerror, modules/strtod:
66370         Now LGPL, not GPL.
66371
66372 2005-07-05  Bruno Haible  <bruno@clisp.org>
66373
66374         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66375         autoconf CVS. Needed for mingw.
66376
66377 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66378
66379         Remove the dependency of the strftime module on the tzset module.
66380         * modules/strftime (Depends-on): Remove dependency on tzset.
66381
66382 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66383
66384         Remove the dependency of the strftime module on the tzset module.
66385         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66386         gl_FUNC_TZSET_CLOBBER.
66387
66388 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         Remove the dependency of the strftime module on the tzset module.
66391         * lib/strftime.c (my_strftime)
66392         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66393         Copy the input structure, to work around some of the bug with
66394         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66395         Solaris releases, you should also use the tzset module, but we won't
66396         require it as a dependency any more since we don't want LGPLed code
66397         to depend on GPLed code.
66398
66399 2005-07-02  Jim Meyering  <jim@meyering.net>
66400
66401         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66402         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66403         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66404         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66405
66406 2005-07-02  Jim Meyering  <jim@meyering.net>
66407
66408         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66409
66410 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66411
66412         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66413         declares only 'struct timespec;' (!).
66414
66415 2005-07-01  Jim Meyering  <jim@meyering.net>
66416
66417         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66418         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66419         * lib/save-cwd.c, tempname.c:
66420         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66421         and don't include <sys/file.h>).
66422
66423 2005-06-29  Jim Meyering  <jim@meyering.net>
66424
66425         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66426         type name.  Use the variable name instead.
66427         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66428         Likewise.
66429
66430 2005-06-28  Simon Josefsson  <jas@extundo.com>
66431
66432         * modules/check-version (Files): Add check-version.m4.
66433
66434 2005-06-28  Simon Josefsson  <jas@extundo.com>
66435
66436         * m4/check-version.m4: New file, suggested by Jim Meyering
66437         <jim@meyering.net>.
66438
66439 2005-06-28  Simon Josefsson  <jas@extundo.com>
66440
66441         * lib/check-version.h, lib/check-version.c: New files.
66442
66443 2005-06-28  Simon Josefsson  <jas@extundo.com>
66444
66445         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66446         collision with global variable.  Better indentation.  Don't
66447         increment buffer pointer beyond buffer end.  Based on comments
66448         from Paul Eggert <eggert@cs.ucla.edu>.
66449
66450         * lib/base64.h: Indent.
66451
66452 2005-06-28  Simon Josefsson  <jas@extundo.com>
66453
66454         * doc/gnulib.texi (Library version handling): New section.
66455
66456 2005-06-28  Jim Meyering  <jim@meyering.net>
66457
66458         * check-module (find_included_lib_files): Hard-code another
66459         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66460         but modules/fts-lgpl (correctly) does not list those files.
66461
66462         * modules/canonicalize (Files): Add lib/pathmax.h.
66463
66464 2005-06-25  Simon Josefsson  <jas@extundo.com>
66465
66466         * modules/check-version: New file.
66467
66468 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66469
66470         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66471         initializer of struct addrinfo, as an indication that we don't
66472         care how many members the structure has.
66473
66474 2005-06-24  Derek Price  <derek@ximbiot.com>
66475         and Bruno Haible  <bruno@clisp.org>
66476
66477         Remove stat module & update lstat.
66478         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66479         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66480         * m4/stat.m4: Remove this file.
66481
66482 2005-06-24  Derek Price  <derek@ximbiot.com>
66483         and Bruno Haible  <bruno@clisp.org>
66484
66485         Remove stat module & update lstat.
66486         * lib/stat.c: Remove this file...
66487         (slash_aware_lstat): ...moving this content and its support...
66488         * lib/lstat.c (rpl_lstat): ...into here.
66489         * lib/lstat.h: New file.
66490
66491 2005-06-24  Derek Price  <derek@ximbiot.com>
66492         and Bruno Haible  <bruno@clisp.org>
66493
66494         Remove stat module & update lstat.
66495         * config/srclist.txt (libc sources): Remove stat.
66496
66497 2005-06-24  Derek Price  <derek@ximbiot.com>
66498         and Bruno Haible  <bruno@clisp.org>
66499
66500         Remove stat module & update lstat.
66501         * MODULES.html.sh (stat): Remove.
66502         * MODULES.html: Regenerated.
66503         * modules/lstat (Description): Correct function name.
66504         (Files): Add "lstat.h".
66505         (Depends-on): Remove stat, add xalloc, stat-macros.
66506         * modules/stat: Remove this file.
66507         (Include): Add "lstat.h", remove <sys/stat.h>.
66508
66509 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66510
66511         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66512         (ranged_convert): Don't save conversion in a temporary struct.
66513         This causes a warning with GCC 4.0.0, and anyway in the typical
66514         case it's not worth the extra 100 bytes or so of code.
66515         (ranged_convert, __mktime_internal): When calling a function via a
66516         pointer P, use P () rather than (*P) (), as we now assume C89 or
66517         better.
66518
66519 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66520
66521         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66522         "who -r" failed to give output.  Problem reported by Tim Waugh.
66523
66524         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66525         (xcalloc): Use it to avoid needless tests.
66526         Problem reported by Jim Meyering.
66527
66528 2005-06-20  Derek Price  <derek@ximbiot.com>
66529
66530         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66531         unnecessary for Autoconfs > 2.59c.
66532
66533 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66534
66535         * lib/argp.h (__option_is_short): Check upper limit of
66536         __key. Isprint() requires its argument to have the value
66537         of an unsigned char or EOF.
66538
66539 2005-06-16  Jim Meyering  <jim@meyering.net>
66540
66541         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66542         when either N or S is zero.
66543
66544 2005-06-16  Derek Price  <derek@ximbiot.com>
66545
66546         * m4/bison.m4: Declare YACC & YFLAGS precious.
66547
66548 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66549
66550         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66551         multibyte string or pattern, fall back on unibyte matching.
66552         Problem reported by James Youngman.
66553
66554 2005-06-08  Bruno Haible  <bruno@clisp.org>
66555
66556         * modules/csharpcomp: New file.
66557         * MODULES.html.sh (C#): Add csharpcomp.
66558
66559 2005-06-08  Bruno Haible  <bruno@clisp.org>
66560
66561         * m4/csharpcomp.m4: New file, from GNU gettext.
66562
66563 2005-06-08  Bruno Haible  <bruno@clisp.org>
66564
66565         * lib/csharpcomp.h: New file, from GNU gettext.
66566         * lib/csharpcomp.c: New file, from GNU gettext.
66567         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66568
66569 2005-06-08  Bruno Haible  <bruno@clisp.org>
66570
66571         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66572         warning on mingw.
66573
66574 2005-06-07  Derek Price  <derek@ximbiot.com>
66575
66576         Sync from CVS.
66577         * lib/glob_.h: Indent nested #ifdef.
66578
66579 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         Sync from coreutils.
66582         Use "file name" when talking about file names, instead of "filename"
66583         or "path", as per the GNU coding standards.
66584         * lib/mkdir-p.c: Renamed from makepath.c.
66585         (make_dir_parents): Renamed from make_path.  All callers changed.
66586         * lib/mkdir-p.h: Likewise.  All includers changed.
66587         * lib/filenamecat.c: Renamed from path-concat.c.
66588         (file_name_concat): Renamed from path_concat.  All callers changed.
66589         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66590         * lib/filenamecat.h: Likewise.  All includers changed.
66591         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66592         in comments or local variable names.
66593         * lib/basename.c: Likewise.
66594         * lib/canonicalize.c, canonicalize.h: Likewise.
66595         * lib/dirname.c, dirname.h: Likewise.
66596         * lib/euidaccess.c: Likewise.
66597         * lib/exclude.c: Likewise
66598         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66599         * lib/fsusage.c, fsuage.h: Likewise.
66600         * lib/fts.c, fts_.h: Likewise.
66601         * lib/getcwd.c: Likewise.
66602         * lib/getloadavg.c: Likewise.
66603         * lib/mkstemp.c: Likewise.
66604         * lib/mountlist.c, mountlist.h: Likewise.
66605         * lib/openat.c, openat.h: Likewise.
66606         * lib/readlink-stub.c: Likewise.
66607         * lib/readutmp.c, readutmp.h: Likewise.
66608         * lib/rename.c: Likewise.
66609         * lib/rmdir.c: Likewise.
66610         * lib/same.c: Likewise.
66611         * lib/savedir.c: Likewise.
66612         * lib/stripslash.c: Likewise.
66613         * lib/tempname.c: Likewise.
66614         * lib/xreadlink.c: Likewise.
66615         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66616         All uses changed.
66617         * lib/exclude.h: Likewise.
66618
66619         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66620         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66621         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66622         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66623         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66624         files have been getting away with it for years (MORE/BSD 4.3
66625         is extinct now).
66626         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66627         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66628
66629         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66630         Define to 256, not 255, as per modern POSIX.
66631
66632 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66633
66634         Sync from coreutils.
66635         Use "file name" when talking about file names, instead of "filename"
66636         or "path", as per the GNU coding standards.
66637         * MODULES.html.sh: mkdir-p renamed from makepath.
66638         filenamecat renamed from path-concat.
66639         * modules/filenamecat: Renamed from modules/path-concat.
66640         (Files): filenamecat.h and filenamecat.c renamed from
66641         path-concat.h and path-concat.c.
66642         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66643         (Include): filenamecat.h, not path-concat.h.
66644         * modules/mkdir-p: Renamed from modules/makepath.
66645         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66646         makepath.c.
66647         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66648         (Include): mkdir-p.h, not makepath.h.
66649
66650 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         Sync from coreutils.
66653         * m4/mkdir-p.m4: Renamed from makepath.m4.
66654         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66655         Rename files from makepath.c to mkdir-p.c, and from
66656         makepath.h to mkdir-p.h.
66657         * m4/filenamecat.m4: Renamed from path-concat.m4.
66658         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66659         Rename files from path-concat.c to filenamecat.c,
66660         and from path-concat.h to filenamecat.h.
66661         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66662         "file name" in local variables or comments.
66663         * m4/rename.m4: Likewise.
66664
66665 2005-06-01  Bruno Haible  <bruno@clisp.org>
66666
66667         * modules/csharpexec: New file.
66668         * MODULES.html.sh (C#): New section.
66669
66670 2005-06-01  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/csharp.m4: New file, from GNU gettext.
66673         * m4/csharpexec.m4: New file, from GNU gettext.
66674
66675 2005-06-01  Bruno Haible  <bruno@clisp.org>
66676
66677         * lib/csharpexec.h: New file, from GNU gettext.
66678         * lib/csharpexec.c: New file, from GNU gettext.
66679         * lib/csharpexec.sh.in: New file, from GNU gettext.
66680
66681 2005-05-31  Derek Price  <derek@ximbiot.com>
66682             Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         Sync from cvs.
66685         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66686
66687 2005-05-31  Derek Price  <derek@ximbiot.com>
66688             Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         Sync from cvs.
66691         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66692
66693 2005-05-29  Derek Price  <derek@ximbiot.com>
66694
66695         * config/srclist.txt (glob_.h, glob.c): Add these files.
66696
66697 2005-05-29  Derek Price  <derek@ximbiot.com>
66698
66699         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66700         * modules/glob: New file.
66701         * modules/getlogin_r: Add link to POSIX spec in description.
66702
66703 2005-05-29  Derek Price  <derek@ximbiot.com>
66704             Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         * m4/glob.m4: New file.
66707
66708 2005-05-29  Derek Price  <derek@ximbiot.com>
66709             Paul Eggert  <eggert@cs.ucla.edu>
66710
66711         * lib/glob_.h, lib/glob.c: New files.
66712
66713 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66716         * modules/fts-lgpl (Depends-on): Remove gettext.
66717
66718 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66719
66720         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66721         and don't require gt_INTTYPES_PRI.
66722
66723 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66724
66725         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66726
66727         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66728         the configuration hassle isn't worth it.
66729         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66730         (LONGEST_MODIFIER, PRIuMAX): Remove.
66731
66732 2005-05-27  Bruno Haible  <bruno@clisp.org>
66733
66734         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66735
66736 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66737
66738         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66739         _POSIX_PTHREAD_SEMANTICS for Solaris.
66740
66741 2005-05-25  Derek Price  <derek@ximbiot.com>
66742
66743         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66744
66745 2005-05-25  Derek Price  <derek@ximbiot.com>
66746             Paul Eggert  <eggert@cs.ucla.edu>
66747
66748         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66749         * lib/getlogin_r.c, getlogin_r.h: New files.
66750
66751 2005-05-25  Bruno Haible  <bruno@clisp.org>
66752             Derek Price  <derek@ximbiot.com>
66753
66754         * lib/getlogin_r.h: Simplify API documentation.
66755
66756 2005-05-23  Derek Price  <derek@ximbiot.com>
66757
66758         * modules/minmax (Files): Add m4/minmax.m4.
66759         (configure.ac): Add gl_MINMAX.
66760
66761 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66762
66763         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66764         so that unistd-safer.h (GPL'ed code) need not be included.
66765
66766 2005-05-22  Bruno Haible  <bruno@clisp.org>
66767
66768         * m4/minmax.m4: New file.
66769         Based on a patch by Derek Price <derek@ximbiot.com>.
66770
66771 2005-05-22  Bruno Haible  <bruno@clisp.org>
66772
66773         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66774         (INT64_MIN): Fix definition.
66775         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66776
66777         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66778         NEED_SIGNED_INT_TYPES.
66779
66780         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66781         HAVE_SYSTEM_INTTYPES.
66782
66783 2005-05-22  Bruno Haible  <bruno@clisp.org>
66784
66785         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66786         Also include <sys/param.h> if it defines MIN, MAX.
66787         Based on a patch by Derek Price <derek@ximbiot.com>.
66788
66789 2005-05-21  Jim Meyering  <jim@meyering.net>
66790
66791         * modules/fts (Files): Add m4/inttypes-pri.m4.
66792         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66793
66794 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66795
66796         New fts module.
66797         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66798         (setup_dir, free_dir): New functions.
66799         (enter_dir, leave_dir): Define trivial
66800         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66801         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66802         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66803         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66804         Move to fts-cycle.c.
66805         (fts_open): Use setup_dir.
66806         (fts_close): Use free_dir.
66807         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66808         This adds a label and some gotos, but the alternatives were messier.
66809         Check for memory allocation failure when entering a dir.
66810         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66811         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66812         (FTS): New member fts_cycle, that is a union that contains the
66813         old active_dir_ht and cycle_state.  All uses changed to mention
66814         fts_cycle.ht and fts_cycle.state.
66815         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66816         fts.c, with the following changes:
66817         (setup_dir, free_dir): New functions.
66818         (enter_dir): Now returns bool.  Return true if successful, false
66819         if memory exhausted.  All callers changed.
66820         Do not bother partly cleaning up on
66821         memory allocation failure; that is free_dir's job.
66822         However, free ad if hash_insert fails, to avoid memory leak.
66823         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66824         fts->fts_options to see which union member to use.
66825
66826 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66827
66828         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66829         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66830
66831 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66834
66835 2005-05-20  Jim Meyering  <jim@meyering.net>
66836
66837         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66838         Now a macro, to pacify GCC.
66839
66840 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66841
66842         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66843         of -1.
66844
66845 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66846
66847         * lib/chown.c (rpl_chown): Return -1 on failure.
66848
66849 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66850
66851         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66852         Don't check for stddef.h.
66853         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66854         don't use its results.
66855         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66856         since we include them unconditionally.  Don't require
66857         AM_STDBOOL_H, since stdbool is a prerequisite.
66858         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66859         since we assume C89 or better.
66860         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66861         as we don't use their results.
66862         Don't check for fchdir, memmove, memset, strrchr, as we use
66863         them unconditionally.
66864         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66865         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66866
66867 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66870         Include <stddef.h> unconditionally, since we assume C89 now.
66871         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66872         * lib/fts.c: Include fts_.h first, to check interface.
66873         Do not include intprops.h; no longer needed.
66874         Include cycle-check.h and hash.h, since fts_.h no longer does.
66875         Remove unnecessary casts of closedir to void.
66876         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66877         decide whether to decrement nlinks.
66878         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66879         (FTS): Use struct hash_table * instead of Hash_table, so that
66880         we no longer need to include hash.h here.
66881
66882 2005-05-18  Jim Meyering  <jim@meyering.net>
66883
66884         * modules/dirfd (License): Change to LGPL.  Most of the code
66885         is already in the public domain.
66886
66887 2005-05-18  Jim Meyering  <jim@meyering.net>
66888
66889         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66890         Reported by Yoann Vandoorselaere.
66891
66892 2005-05-17  Jim Meyering  <jim@meyering.net>
66893
66894         * m4/fts.m4: New file, from coreutils.
66895
66896 2005-05-17  Jim Meyering  <jim@meyering.net>
66897
66898         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66899
66900 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66901
66902         Sync from coreutils.
66903         * m4/unlinkdir.m4: New file.
66904
66905 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         Sync from coreutils.
66908         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66909         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66910         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66911         White space changes only.
66912         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66913         special.
66914         * lib/yesno.c: Include getline.h, not ctype.h.
66915         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66916         Use getline to remove arbitrary restriction on response length.
66917
66918 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66919
66920         * config/srclist-update: Spell out "Street" in FSF postal
66921         mail address; this is the style the FSF seems to prefer.
66922
66923         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66924         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66925         this updates FSF postal mail address.
66926
66927         Sync from coreutils.
66928         * modules/unlinkdir: New file.
66929         * modules/yesno (Depends-on): Add getline.
66930         * MODULES.html.sh (File system functions): Add unlinkdir.
66931
66932 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66933
66934         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66935         lib/strsep.h:
66936         Change the initial comment to refer to GPL, not LGPL.
66937         gnulib-tool will change it to LGPL as needed.
66938
66939         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66940         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66941         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66942         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66943         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66944         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66945         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66946         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66947         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66948         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66949         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66950         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66951         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66952         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66953         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66954         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66955         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66956         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66957         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66958         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66959         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66960         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66961         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66962         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66963         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66964         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66965         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66966         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66967         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66968         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66969         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66970         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66971         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66972         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66973         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66974         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66975         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66976         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66977         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66978         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66979         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66980         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66981         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66982         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66983         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66984         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66985         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66986         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66987         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66988         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66989         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66990         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66991         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66992         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66993         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66994         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66995         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66996         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66997         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66998         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66999         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
67000         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
67001         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
67002         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
67003         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
67004         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
67005         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
67006         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
67007         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
67008         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
67009         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
67010         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
67011         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
67012         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
67013         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
67014         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
67015         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
67016         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
67017         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
67018         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
67019         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
67020         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
67021         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
67022         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
67023         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
67024         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
67025         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
67026         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
67027         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
67028         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
67029         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
67030         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
67031         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
67032         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
67033         lib/yesno.c, lib/yesno.h:
67034         Update FSF postal mail address.
67035
67036 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
67039         tests/test-memmem.c, tests/test-stpncpy.c:
67040         Update FSF postal mail address.
67041
67042 2005-05-13  Bruno Haible  <bruno@clisp.org>
67043
67044         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
67045         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
67046         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
67047         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
67048         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
67049         Add support for 64-bit integers in the MSVC compiler.
67050
67051 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67052
67053         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67054
67055 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67056
67057         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67058
67059 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67060
67061         * doc/getdate.texi (General date syntax): Don't say that date
67062         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67063         Problem reported by Nic Ferrier.
67064
67065 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67066
67067         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67068         specified in ai_socktype. Fix invalid ai_protocol
67069         check. ai_protocol is usually set to 0 or depending on
67070         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67071         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67072         ai_socktype / ai_protocol in the returned addrinfo structure.
67073
67074 2005-05-10  Simon Josefsson  <jas@extundo.com>
67075
67076         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67077         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67078
67079 2005-05-10  Karl Berry  <karl@gnu.org>
67080
67081         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67082         (from http://www.gnu.org/licenses).
67083         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67084         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67085         fdl.texi suffices.
67086
67087 2005-05-10  Karl Berry  <karl@gnu.org>
67088
67089         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67090         (COPYING.DOC): remove.
67091
67092         * config/srclist-update: new FSF address.
67093
67094 2005-05-10  Derek Price  <derek@ximbiot.com>
67095
67096         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67097         possible.
67098
67099 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67100             Bruno Haible  <bruno@clisp.org>
67101
67102         * modules/inet_ntop: New file.
67103         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67104         inet_ntop.
67105
67106 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67107             Bruno Haible  <bruno@clisp.org>
67108
67109         * m4/inet_ntop.m4: New file.
67110
67111 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67112             Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/inet_ntop.h: New file.
67115         * lib/inet_ntop.c: New file, from glibc with modifications.
67116
67117 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67118
67119         * modules/time_r (License): Change to LGPL.
67120         * modules/extensions (License): Change to LGPL.  Actually,
67121         the license is more permissive than that, but currently gnulib-tool
67122         doesn't know how to handle more-permissive licenses.
67123
67124         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67125         Problem reported by Dave Love.
67126
67127 2005-05-08  Jim Meyering  <jim@meyering.net>
67128
67129         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67130         blank.
67131
67132 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67133
67134         * modules/argmatch (Depends-on): Add stdbool.
67135         * modules/backupfile (Depends-on): Likewise.
67136         * modules/chdir-long (Depends-on): Likewise.
67137         * modules/closeout (Depends-on): Likewise.
67138         * modules/cycle-check (Depends-on): Likewise.
67139         * modules/dirname (Depends-on): Likewise.
67140         * modules/fnmatch (Depends-on): Likewise.
67141         * modules/fsusage (Depends-on): Likewise.
67142         * modules/fwriteerror (Depends-on): Likewise.
67143         * modules/getcwd (Depends-on): Likewise.
67144         * modules/getloadavg (Depends-on): Likewise.
67145         * modules/hard-locale (Depends-on): Likewise.
67146         * modules/makepath (Depends-on): Likewise.
67147         * modules/mountlist (Depends-on): Likewise.
67148         * modules/nanosleep (Depends-on): Likewise.
67149         * modules/posixtm (Depends-on): Likewise.
67150         * modules/quotearg (Depends-on): Likewise.
67151         * modules/readtokens (Depends-on): Likewise.
67152         * modules/readtokens0 (Depends-on): Likewise.
67153         * modules/readutmp (Depends-on): Likewise.
67154         * modules/save-cwd (Depends-on): Likewise.
67155         * modules/strftime (Depends-on): Likewise.
67156         * modules/userspec (Depends-on): Likewise.
67157         * modules/utimecmp (Depends-on): Likewise.
67158         * modules/xgetcwd (Depends-on): Likewise.
67159         * modules/xnanosleep (Depends-on): Likewise.
67160         * modules/xstrtod (Depends-on): Likewise.
67161         * modules/yesno (Depends-on): Likewise.
67162
67163 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67164
67165         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67166         needless checks.
67167
67168 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67169
67170         Merge from coreutils.  Among other things,
67171         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67172         * lib/fd-safer.c: New file.
67173         * lib/fcntl-safer.h, open-safer.c: Remove.
67174         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67175         * lib/dup-safer.c: Include unistd-safer.h first.
67176         Don't include errno.h.
67177         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67178         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67179         * lib/file-type.c: Rely on file-type.h change.
67180         * lib/getloadavg.c: Include unistd-safer.h.
67181         (getloadavg): Use safer open.
67182         * lib/getusershell.c: Include "stdio-safer.h".
67183         (getusershell): Use safer fopen.
67184         * lib/long-options.c (long_options): Use NULL rather than 0.
67185         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67186         'free'.
67187         * lib/modechange.c: Likewise.
67188         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67189         (MODE_DONE): New constant.
67190         (struct mode_change): Remove 'next' member.
67191         (make_node_op_equals): New function; like the old one of the
67192         same name, except it allocates an array.
67193         (mode_compile, mode_create_from_ref): Use it.
67194         (mode_compile): Allocate result as an array, not a linked list.
67195         Parse octal string ourself, so that we catch mistakes like "+0".
67196         (mode_adjust): Arg is an array, not a linked list.
67197         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67198         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67199         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67200         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67201         Remove.  This is now stat-macros.h's job.
67202         (talloc): Remove.  All callers replaced by xalloc, so that
67203         our invokers don't have to worry about reporting memory failures.
67204         (make_node_op_equals): Remove.
67205         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67206         New constants.
67207         (struct mode_change): Moved here from modechange.h.
67208         (mode_append_entry): Remove.
67209         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67210         apps to have incorrect behavior.  Use simpler algorithm for head
67211         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67212         Detect more invalid usages rather than having somewhat-random behavior.
67213         Don't insert an "a=" action, as that leads to incorrect behavior.
67214         (mode_compile, mode_create_from_ref): Return NULL on error instead
67215         of an enum, since now there's only one way to have an error.  All
67216         callers changed.
67217         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67218         at the correct time.  Simplify calculation of "+u" and its ilk.
67219         Don't mishandle "+X".
67220         (mode_free): Remove "register" and localize decls.
67221         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67222         (struct mode_change): Move to modechange.c; callers don't
67223         need to see this stuff.
67224         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67225         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67226         (mode_change, mode_adjust): Reflect the new signatures noted above.
67227         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67228         that might redefine system include files.
67229         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67230         (my_usleep): Use NULL rather than (void *) 0.
67231         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67232         Use siginterrupt to specify that system calls should be interrupted.
67233         (rpl_nanosleep): Move initialization of suspended closer to call of
67234         my_usleep.
67235         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67236         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67237         (desirable_utmp_entry): New function.
67238         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67239         using x2nrealloc, to simplify logic.
67240         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67241         size calculation.  Do not assume utmp file is a regular file.
67242         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67243         (READ_UTMP_CHECK_PIDS): New constant.
67244         * lib/save-cwd.c: Include unistd-safer.h.
67245         (save_cwd): Use fd_safer.
67246         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67247         [!_LIBC] Include "stat-macros.h" instead.
67248         * lib/unistd-safer.h (fd_safer): New decl.
67249
67250 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * modules/getloadavg (Depends-on): Add unistd-safer.
67253         * modules/getusershell (Depends-on): Add stdio-safer.
67254         * modules/lstat (Depends-on): Remove xalloc.
67255         * modules/mkstemp (Depends-on): Add stat-macros.
67256         * modules/modechange (Depends-on): Remove xstrtol.
67257         Add stat-macros, xalloc.
67258         * modules/save-cwd (Depends-on): Add unistd-safer.
67259         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67260         * modules/unistd-safer (Files): Add lib/fd-safer.c
67261         (Makefile.am): Remove lib_SOURCES.
67262
67263         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67264         Remove fcntl-safer; unistd-safer supersedes it.
67265
67266 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67267
67268         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67269         AC_HEADER_STAT.
67270         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67271         (gl_PREREQ_CHOWN): Remove.
67272         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67273         it.  Don't require AC_HEADER_STAT.
67274         (gl_PREREQ_LSTAT): Remove.
67275         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67276         Don't require AC_HEADER_STAT.
67277         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67278         (gl_PREREQ_RMDIR): Remove.
67279         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67280         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67281         the stat-macros module a prerequisite.
67282         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67283         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67284         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67285         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67286         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67287         variable names.
67288         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67289         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67290         variable prefixes.
67291         * m4/fcntl-safer.m4: Remove.
67292         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67293         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67294         Invoke gl_PREREQ_FD_SAFER.
67295         (gl_PREREQ_FD_SAFER): New macro.
67296         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67297         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67298         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67299         Remove duplicate call to AC_LIBOBJ(readutmp).
67300         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67301
67302         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67303         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67304
67305 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67306
67307         * MODULES.html.sh (Misc): Add byteswap.
67308
67309 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67310
67311         * modules/getcwd (Depends-on): Add extensions.
67312         * modules/openat (Depends-on): Likewise.
67313
67314 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67315
67316         * modules/byteswap: New file.
67317
67318 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67319
67320         * m4/byteswap.m4: New file.
67321
67322 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67323
67324         * lib/byteswap_.h: New file.
67325
67326 2005-04-25  Karl Berry  <karl@gnu.org>
67327
67328         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67329
67330 2005-04-25  Albert Chin  <china@thewrittenword.com>
67331
67332         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67333         Toolkit C bug.
67334
67335 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67336
67337         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67338         (func_ln_if_changed) Remove forcibly for no error message
67339         in case file does not exist.
67340
67341 2005-04-19  Simon Josefsson  <jas@extundo.com>
67342
67343         * gnulib-tool (Options): Make --symlink mean --symbolic.
67344
67345 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67346
67347         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67348
67349 2005-04-16  Simon Josefsson  <jas@extundo.com>
67350
67351         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67352
67353 2005-04-15  Simon Josefsson  <jas@extundo.com>
67354
67355         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67356
67357 2005-04-15  Simon Josefsson  <jas@extundo.com>
67358
67359         * gnulib-tool: Rename --symlink to --symbolic.
67360
67361 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67362
67363         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67364         symbolic links to files instead of copying/moving.  Add --aux-dir,
67365         specifying directory relative --dir where auxiliary build tools
67366         are placed.
67367
67368 2005-04-14  Bruno Haible  <bruno@clisp.org>
67369
67370         * modules/allocsa (License): Change to LGPL.
67371         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67372
67373 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67374
67375         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67376         that "UTC +1 second" continues to work.  Problem reported
67377         by Dmitry V. Levin.
67378         (relunit_snumber): New rule.
67379         (relunit): Use it.
67380
67381 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67382
67383         * lib/getdate.y (universal_time_zone_table): New constant.
67384         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67385         universal_time_zone_table.
67386         (lookup_zone): Prefer universal_time_zone_table to
67387         local_time_zone_table, so that "GMT" time stamps are allowed in
67388         London during the summer.  Problem reported by Ian Abbott.
67389
67390 2005-04-12  Jim Meyering  <jim@meyering.net>
67391
67392         * lib/human.c (humblock): Set *options even when returning due to
67393         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67394         warning from gcc-4.
67395
67396 2005-04-09  Jim Meyering  <jim@meyering.net>
67397
67398         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67399         -Wuninitialized: initialize tm0.tm_year.
67400
67401 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67402
67403         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67404         count, since there's no maximum.  All uses changed.
67405         Add member dsts_seen.
67406         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67407         not being INT_MAX.
67408         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67409         Use pc_rels_seen to decide whther a date is absolute.
67410
67411         * lib/getdate.y (number): Don't overwrite year.
67412         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67413         check.
67414
67415 2005-04-02  Simon Josefsson  <jas@extundo.com>
67416
67417         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67418         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67419
67420 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67421
67422         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67423         where no absolute path name can be longer than PATH_MAX.
67424
67425 2005-03-27  Jim Meyering  <jim@meyering.net>
67426
67427         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67428
67429 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67430
67431         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67432         "one's complement" -> "ones' complement" in comment, as per Knuth.
67433         "value of type" -> "type or expression" in comment.
67434         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67435
67436 2005-03-26  Jim Meyering  <jim@meyering.net>
67437
67438         Comment nits.
67439         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67440         Correct typos: s/or/of/.
67441
67442 2005-03-26  Jim Meyering  <jim@meyering.net>
67443
67444         * modules/check-include-files: Move to ../ and rename to...
67445         * check-module: ...this.
67446
67447 2005-03-25  Jim Meyering  <jim@meyering.net>
67448
67449         * modules/xvasprintf (Files): Add xalloc.h.
67450
67451 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67452
67453         * modules/gettext (Files): config/config.rpath ->
67454         build-aux/config.rpath
67455         * modules/iconv (Files): Likewise.
67456         Problem reported by Oskar Liljeblad.
67457
67458 2005-03-23  Jim Meyering  <jim@meyering.net>
67459
67460         * modules/check-include-files: New script to check for
67461         missing dependencies, multiple includes, etc.
67462
67463         * modules/c-strtold (Depends-on): Add xalloc.
67464         * modules/c-strtod (Depends-on): Add xalloc.
67465         * modules/hash (Depends-on): Add xalloc.
67466         (Files): Remove lib/xalloc.h.
67467
67468         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67469         * modules/userspec (Files): Add lib/inttostr.h.
67470
67471 2005-03-23  Jim Meyering  <jim@meyering.net>
67472
67473         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67474
67475 2005-03-22  Jim Meyering  <jim@meyering.net>
67476
67477         * modules/stat-macros: New module.
67478         * modules/canonicalize, modules/euidaccess, modules/file-type,
67479         * modules/filemode, modules/lchown, modules/makepath,
67480         * modules/rmdir, modules/stat: Depend on new stat-macros module
67481         rather than listing lib/stat-macros.h manually.
67482         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67483
67484 2005-03-22  Jim Meyering  <jim@meyering.net>
67485
67486         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67487
67488 2005-03-22  Bruno Haible  <bruno@clisp.org>
67489
67490         * config/srclist.txt: Replace target directory 'config' with
67491         'build-aux'.
67492         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67493         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67494         ../build-aux/.
67495
67496 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         * modules/chdir-long (Depends-on): Add mempcpy.
67499
67500         * modules/acl, modules/backupfile, modules/c-strtod,
67501         modules/c-strtold, modules/canon-host, modules/canonicalize,
67502         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67503         modules/exclude, modules/exitfail, modules/file-type,
67504         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67505         modules/getdate, modules/getline, modules/getpagesize,
67506         modules/getpass, modules/getugroups, modules/group-member,
67507         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67508         modules/inttostr, modules/long-options, modules/makepath,
67509         modules/md5, modules/memcasecmp, modules/memcoll,
67510         modules/modechange, modules/mountlist, modules/path-concat,
67511         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67512         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67513         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67514         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67515         modules/strftime, modules/strndup, modules/strverscmp,
67516         modules/timespec, modules/unlocked-io, modules/userspec,
67517         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67518         modules/yesno:
67519         Remove lib_SOURCES line from Makefile.am section, as this is now
67520         done automatically by the corresponding Autoconf macro.
67521
67522 2005-03-21  Jim Meyering  <jim@meyering.net>
67523
67524         Changes imported from coreutils.
67525
67526         * lib/cycle-check.c: Don't include xalloc.h.
67527
67528         * lib/path-concat.c: Don't include assert.h.
67529         (path_concat): Remove assertion that would have triggered
67530         for ABASE starting with more than one slash.
67531         Reported by Andreas Schwab.
67532
67533         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67534         properly when ABASE is an absolute file name.
67535         Correct the description of this function.
67536         Include <assert.h>.
67537         Add an assertion and a test driver.
67538         This fixes a bug introduced on 2004-07-02.
67539         Andreas Schwab reported the resulting failure of cp --parents:
67540         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67541
67542 2005-03-21  Jim Meyering  <jim@meyering.net>
67543
67544         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67545         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67546
67547 2005-03-21  Jim Meyering  <jim@meyering.net>
67548         and  Paul Eggert  <eggert@cs.ucla.edu>
67549
67550         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67551         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67552         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67553         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67554         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67555         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67556         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67557         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67558         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67559         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67560         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67561         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67562         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67563         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67564         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67565         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67566         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67567         for these modules.
67568
67569 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67570
67571         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67572         (which shouldn't happen), generate nothing instead of returning 0
67573         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67574
67575 2005-03-16  Bruno Haible  <bruno@clisp.org>
67576
67577         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67578         HAVE_LONGLONG_64BIT.
67579
67580 2005-03-16  Bruno Haible  <bruno@clisp.org>
67581
67582         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67583         HAVE_LONGLONG_64BIT.
67584
67585 2005-03-16  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67588         HAVE_LONGLONG_64BIT.
67589
67590 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67591
67592         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67593         reliably distinguish strftime failure from empty output on POSIX
67594         hosts.
67595
67596 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67597
67598         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67599         (iconv_string): Don't guess a size-zero buffer, as that might cause
67600         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67601         result would be 'too large', where 'too large' is (heuristically)
67602         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67603         overflow concerns.  This will prevent some unwanted malloc failures
67604         when the inputs are very large.
67605
67606 2005-03-15  Karl Berry  <karl@gnu.org>
67607
67608         * config/srclist.txt (config.rpath): from gettext.
67609         * config/config.rpath: update.
67610
67611 2005-03-15  Bruno Haible  <bruno@clisp.org>
67612
67613         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67614         to 'negate'.
67615
67616         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67617         variable.
67618
67619         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67620         results.
67621
67622 2005-03-14  Simon Josefsson  <jas@extundo.com>
67623
67624         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67625         <fx@gnu.org>.
67626
67627 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67630         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67631         intprops.h.
67632         * lib/strtol.c: Likewise.
67633
67634 2005-03-14  Jim Meyering  <jim@meyering.net>
67635
67636         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67637         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67638         to be nonzero so that we (and caller) can detect the difference
67639         between a valid zero-length expansion and an error return, even
67640         when the underlying strftime fails before writing anything into
67641         that location.
67642
67643 2005-03-14  Bruno Haible  <bruno@clisp.org>
67644
67645         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67646         Update from GNU gettext 0.14.3.
67647
67648 2005-03-10  Jim Meyering  <jim@meyering.net>
67649
67650         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67651
67652 2005-03-10  Jim Meyering  <jim@meyering.net>
67653
67654         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67655         so that this module works on systems without fchdir.
67656
67657 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67658
67659         Factor int-properties macros into a single file, except for
67660         glibc-related files.
67661         * lib/intprops.h: New file.
67662         * lib/getloadavg.c: Include it instead of limits.h.
67663         (INT_STRLEN_BOUND): Remove.
67664         * lib/human.c: Include intprops.h.
67665         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67666         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67667         302/1000.
67668         * lib/inttostr.h: Include intprops.h instead of limits.h.
67669         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67670         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67671         for consistency with intprops.h.
67672         (time_t_is_integer, twos_complement_arithmetic): Use them.
67673         * lib/sig2str.h: Include <signal.h>, intprops.h.
67674         (INT_STRLEN_BOUND): Remove.
67675         * lib/strftime.c (TYPE_SIGNED): Remove.
67676         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67677         * lib/strtol.c: Adjust comments to match intprops.h.
67678         * lib/userspec.c: Include intprops.h.
67679         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67680         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67681         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67682         instead of rolling our own expressions.
67683         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67684
67685         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67686         instead of int.
67687         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67688         the right thing even if adding 1900 would overflow.  Similarly
67689         for tm_mon + 1 and tm_yday + 1.
67690         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67691         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67692         (DO_SIGNED_NUMBER): New macro.
67693         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67694
67695 2005-03-07  Bruno Haible  <bruno@clisp.org>
67696
67697         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67698
67699 2005-03-07  Bruno Haible  <bruno@clisp.org>
67700
67701         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67702
67703 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67704
67705         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67706         (func_import): Only replace files via --import when they have actually
67707         changed.
67708
67709 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67710
67711         * m4/mmap-anon.m4: New file.
67712         * m4/pagealign_alloc.m4: New file.
67713
67714 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67715             Bruno Haible  <bruno@clisp.org>
67716
67717         * modules/pagealign_alloc: New file.
67718         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67719
67720 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67721             Bruno Haible  <bruno@clisp.org>
67722
67723         * lib/pagealign_alloc.h: New file.
67724         * lib/pagealign_alloc.c: New file.
67725
67726 2005-03-03  Bruno Haible  <bruno@clisp.org>
67727
67728         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67729         Use an all-permissive copyright notice, recommended by RMS.
67730
67731 2005-03-02  Bruno Haible  <bruno@clisp.org>
67732
67733         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67734         of AIX, the replacement has to be done only after <string.h> is
67735         included, therefore not in config.h. stpncpy.h does the replacement,
67736         and stpncpy.c uses it.
67737
67738 2005-03-02  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67741         stpncpy.c uses it.
67742
67743 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67746         The workaround isn't strictly needed for POSIX conformance, and
67747         it's too much of a pain to configure and maintain.  We'll ask
67748         people to fix their kernels instead.
67749         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67750         (NANOSLEEP_BUG_WORKAROUND): Remove.
67751         (xnanosleep): Remove the workaround.
67752
67753 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67754
67755         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67756         Reported by Derek Price.
67757         (Include): Add "timespec.h".
67758
67759         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67760
67761 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67762
67763         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67764         to detect nanosleep bug.
67765
67766 2005-03-01  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67769
67770 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67771
67772         * modules/gethrxtime: New file.
67773         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67774         (Depends-on): Add gethrxtime.
67775         (configure.ac): Add gl_XNANOSLEEP.
67776         (Makefile.am): Remove lib_SOURCES line.
67777
67778 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67781         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67782
67783 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67784
67785         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67786         * lib/timespec.h (gettime): Return void, since it always
67787         succeeds now.  All uses changed.
67788         * lib/gettime.c (gettime) Likewise.
67789         [HAVE_NANOTIME]: Prefer nanotime.
67790         Assume gettimeofday succeeds, as POSIX requires.
67791         Assime time () succeeds, since other code already does.
67792         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67793         (timespec_subtract): Remove.
67794         (NANOSLEEP_BUG_WORKAROUND): New constant.
67795         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67796         things considerably.  Use it only on GNU/Linux hosts, since the
67797         workaround shouldn't be needed elsewhere.
67798
67799 2005-02-24  Bruno Haible  <bruno@clisp.org>
67800
67801         * modules/gettext (Files): Add m4/glibc2.m4.
67802
67803 2005-02-24  Bruno Haible  <bruno@clisp.org>
67804
67805         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67806         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67807         * m4/progtest.m4:
67808         Update from GNU gettext 0.14.2.
67809         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67810
67811 2005-02-24  Bruno Haible  <bruno@clisp.org>
67812
67813         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67814         * lib/config.charset: Update from GNU gettext 0.14.2.
67815
67816 2005-02-24  Bruno Haible  <bruno@clisp.org>
67817
67818         * lib/gettext.h: Update from GNU gettext 0.14.2.
67819
67820 2005-02-23  Simon Josefsson  <jas@extundo.com>
67821
67822         * m4/iconvme.m4: New file.
67823
67824 2005-02-23  Jim Meyering  <jim@meyering.net>
67825
67826         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67827         change.
67828         Thanks to Bruno Haible for catching it.
67829
67830 2005-02-22  Simon Josefsson  <jas@extundo.com>
67831
67832         * modules/iconvme: New file.
67833
67834         * MODULES.html.sh: Add iconvme.
67835
67836 2005-02-22  Simon Josefsson  <jas@extundo.com>
67837
67838         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67839
67840 2005-02-22  Simon Josefsson  <jas@extundo.com>
67841
67842         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67843
67844 2005-02-22  Jim Meyering  <jim@meyering.net>
67845
67846         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67847         s/ifndef/ifdef/.
67848
67849 2005-02-20  Neil Conway  <neilc@samurai.com>
67850
67851         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67852         returned by OSX/Darwin if the specified buffer is not large
67853         enough for the hostname.
67854
67855 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67856
67857         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67858         pass it to _help, otherwise the latter coredumps trying to
67859         dereference state.root_argp.
67860
67861 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67862
67863         * modules/chdir-long (Depends-on): Add memrchr.
67864         * modules/memrchr (Files): Add lib/memrchr.h.
67865         (Include): "memrchr.h".
67866
67867 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67868
67869         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67870
67871 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67872
67873         * lib/memrchr.h: New file.
67874         * lib/chdir-long.c: Include it.
67875         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67876         Don't bother including stddef.h.
67877
67878 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67879
67880         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67881         inclusion.
67882         Include <sys/types.h>, for dev_t.
67883         (ME_DUMMY, ME_REMOTE): Move from here....
67884         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67885         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67886         Dmitry V. Levin.
67887         Include mountlist.h first, to test the interface.
67888
67889 2005-01-29  Bruno Haible  <bruno@clisp.org>
67890
67891         * lib/progname.c (program_name): Initialize.
67892         Needed when linking statically on MacOS X.
67893
67894 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67895
67896         Sync from coreutils.
67897         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67898         (Depends-on): Add c-strtod.
67899         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67900
67901 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         Sync from coreutils.
67904         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67905
67906         Remove files that are specific to coreutils.
67907         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67908
67909 2005-01-28  Bruno Haible  <bruno@clisp.org>
67910
67911         * modules/javacomp: New file.
67912         * MODULES.html.sh (Java): Add javacomp.
67913
67914 2005-01-28  Bruno Haible  <bruno@clisp.org>
67915
67916         * m4/javacomp.m4: New file, from GNU gettext.
67917
67918 2005-01-28  Bruno Haible  <bruno@clisp.org>
67919
67920         * lib/javacomp.sh.in: New file, from GNU gettext.
67921         * lib/javacomp.h: New file, from GNU gettext.
67922         * lib/javacomp.c: New file, from GNU gettext.
67923
67924 2005-01-26  Simon Josefsson  <jas@extundo.com>
67925
67926         * lib/gai_strerror.c: Use GPL in header.
67927
67928 2005-01-26  Bruno Haible  <bruno@clisp.org>
67929
67930         * modules/javaexec: New file.
67931         * MODULES.html.sh (Java): Add javaexec.
67932
67933 2005-01-26  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/javaexec.m4: New file, from GNU gettext.
67936
67937 2005-01-26  Bruno Haible  <bruno@clisp.org>
67938
67939         * lib/javaexec.sh.in: New file, from GNU gettext.
67940         * lib/javaexec.h: New file, from GNU gettext.
67941         * lib/javaexec.c: New file, from GNU gettext.
67942
67943 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67944
67945         * modules/lchown (Depends-on): Remove lchown.h
67946
67947 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67948
67949         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67950         must be defined if the header file was not found, in order
67951         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67952
67953 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67954
67955         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67956         initializers for struct pentry_state.
67957         (__argp_error): Check return value of __asprintf
67958         (__argp_failure): Translate error message
67959
67960         * lib/argp-parse.c: Removed braces around the expansion of N_()
67961
67962 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67963
67964         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67965         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67966         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67967         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67968         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67969         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67970         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67971         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67972         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67973         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67974         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67975         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67976         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67977         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67978         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67979         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67980         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67981         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67982         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67983         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67984         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67985         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67986         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67987         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67988         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67989         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67990         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67991         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67992         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67993         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67994         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67995         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67996         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67997         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67998         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67999         Use an all-permissive copyright notice, recommended by RMS.
68000
68001 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * modules/chdir-long (Depends-on): Remove mempcpy.
68004
68005 2005-01-21  Jim Meyering  <jim@meyering.net>
68006
68007         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
68008         same value as for Solaris 9.
68009
68010         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
68011         component length.  This included changing the parameter to be
68012         of type `char *' rather than `char const *'.
68013         * lib/chdir-long.h (chdir_long): Update prototype.
68014
68015         * lib/openat.c (fdopendir, fstatat): New functions.
68016         * lib/openat.h: Include headers required for use of DIR and struct
68017         stat.
68018         [AT_SYMLINK_NOFOLLOW]: Define.
68019         (fdopendir, fstatat): Add prototypes.
68020
68021 2005-01-21  Bruno Haible  <bruno@clisp.org>
68022
68023         * modules/classpath: New file.
68024         * MODULES.html.sh (Java): Add classpath.
68025
68026 2005-01-21  Bruno Haible  <bruno@clisp.org>
68027
68028         * lib/classpath.h: New file, from GNU gettext.
68029         * lib/classpath.c: New file, from GNU gettext.
68030
68031 2005-01-20  Simon Josefsson  <jas@extundo.com>
68032
68033         * modules/version-etc-fsf: New file.
68034
68035 2005-01-20  Simon Josefsson  <jas@extundo.com>
68036
68037         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
68038         * lib/version-etc.c: Remove version_etc_copyright.
68039         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
68040         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
68041
68042 2005-01-20  Simon Josefsson  <jas@extundo.com>
68043
68044         * lib/base64.h (isbase64): Add.
68045
68046         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
68047         using a unsigned prototype, don't inline.
68048         (base64_decode): Use it.
68049
68050 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68051
68052         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
68053         it.
68054
68055 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         * lib/save-cwd.c (save_cwd): Remove code to support the case
68058         where fchdir is missing or flaky.
68059
68060 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68061
68062         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68063
68064 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68067         AC_LIBSOURCES now does this.
68068         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68069         with new ullong_max module.
68070
68071 2005-01-19  Bruno Haible  <bruno@clisp.org>
68072
68073         * modules/sh-quote: New file.
68074         * MODULES.html.sh (Executing programs): Add sh-quote.
68075
68076 2005-01-19  Bruno Haible  <bruno@clisp.org>
68077
68078         * lib/sh-quote.h: New file, from GNU gettext.
68079         * lib/sh-quote.c: New file, from GNU gettext.
68080
68081 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68082
68083         Merge from coreutils.
68084         * m4/ullong_max.m4: New file.
68085         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68086         (gl_MACROS): Assume localeconv exists.
68087
68088 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68089
68090         Merge changes from coreutils, as described below in several
68091         changelogs dated today.
68092
68093         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68094         (O_DIRECTORY): Remove; not needed here, since "." must be
68095         a directory.  All uses removed.
68096         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68097         universal on Suns, and we also need to test for IRIX.
68098         Revamp code to use 'if' rather than '#if'.
68099         Avoid unnecessary comparison of cwd->desc to 0.
68100
68101         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68102         for known valid error numbers rather than observed invalid ones.
68103
68104 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * modules/ullong_max: New file.
68107
68108         * modules/chdir-long, modules/openat: New files.
68109         * modules/save-cwd (Depends-on): Depend on chdir-long.
68110         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68111
68112 2005-01-18  Jim Meyering  <jim@meyering.net>
68113
68114         Merge from coreutils.
68115         * m4/chdir-long.m4, m4/openat.m4: New files.
68116         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68117         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68118         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68119         is sane and DOES follow symlinks.  Besides, testing 20 different
68120         systems found no broken chown implementations.
68121         Prompted by a change in rsync's copy of this macro.
68122         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68123
68124         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68125
68126         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68127         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68128         NULL-means-set-to-current-time semantics.
68129         Remove temporary file immediately, rather than waiting
68130         for configure's at-exit trap code to do it.
68131
68132 2005-01-18  Jim Meyering  <jim@meyering.net>
68133
68134         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68135
68136         * lib/utimens.c (futimens): Account for the fact that futimes
68137         can also fail with errno == ENOSYS or errno == ENOENT.
68138         Patch from Dmitry V. Levin.
68139
68140         Change the name of the robust chdir function from chdir to chdir_long.
68141         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68142         (restore_cwd): Use chdir_long, not chdir.
68143         * lib/chdir-long.c: Renamed from chdir.c.
68144         * lib/chdir-long.h: Renamed from chdir.h.
68145         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68146         Hurd.
68147
68148 2005-01-18  Bruno Haible  <bruno@clisp.org>
68149
68150         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68151         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68152         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68153         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68154         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68155         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68156         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68157         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68158         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68159         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68160         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68161         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68162         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68163         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68164         Use an all-permissive copyright notice, recommended by RMS.
68165
68166 2005-01-18  Bob Proulx  <bob@proulx.com>
68167
68168         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68169         simplify offsetof() macro construct to avoid compile failure with
68170         native HP-UX 11.0 ANSI C compiler.
68171
68172 2005-01-17  Bruno Haible  <bruno@clisp.org>
68173
68174         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68175         redundant because stpncpy.m4 takes care of it.
68176
68177 2005-01-17  Bruno Haible  <bruno@clisp.org>
68178
68179         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68180
68181 2005-01-17  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68184         used.
68185
68186 2005-01-17  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/fwriteerror.h (fwriteerror): Change specification to include
68189         fclose.
68190         * lib/fwriteerror.c: Include <stdbool.h>.
68191         (fwriteerror): At the end, close the file stream. Record whether
68192         stdout was already closed.
68193
68194 2005-01-17  Bruno Haible  <bruno@clisp.org>
68195
68196         * lib/execute.c (environ): Declare if needed.
68197         * lib/pipe.c (environ): Likewise.
68198         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68199
68200 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68201
68202         * modules/argp: Depend on vsnprintf
68203
68204 2005-01-10  Jim Meyering  <jim@meyering.net>
68205
68206         * modules/closeout (Depends-on): Add atexit.
68207
68208 2005-01-06  Bruno Haible  <bruno@clisp.org>
68209
68210         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68211
68212 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68213
68214         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68215         definitions to be after all include files, to avoid collisions.
68216         Problem reported by Bob Proulx.
68217
68218 2005-01-04  Jim Meyering  <jim@meyering.net>
68219
68220         Changes imported from coreutils.
68221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68222         as the mkstemp template, use a temporary directory and an
68223         8.3-friendly template to avoid trouble on systems like DJGPP.
68224         Reported by Juan M. Guerrero via Stepan Kasal.
68225         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68226         close. Remove the temporary directory right away, rather than waiting
68227         for configure's at-exit trap code to do it.
68228         Suggestion from Stepan Kasal.
68229
68230 2005-01-01  Simon Josefsson  <jas@extundo.com>
68231
68232         * gnulib-tool: Print #include directives when --import'ing.
68233
68234 2004-12-28  Simon Josefsson  <jas@extundo.com>
68235
68236         * tests/test-base64.c: Include required header files.  Remove
68237         unused variables.
68238
68239 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68240
68241         * modules/error (Depends-on): Remove gettext.
68242
68243 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68246         not needed.  This removes a dependency on the gettext module.
68247         [defined _LIBC]: Do not include <libintl.h>; not needed.
68248
68249 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68250
68251         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68252         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68253
68254 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68255
68256         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68257         HAVE_DECL_STRTOLD.
68258
68259 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68260
68261         * modules/getdate (Depends-on): Remove alloca-opt.
68262
68263 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68266
68267 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * lib/argp-parse.c: Include <stddef.h>.
68270         (alignof, alignto): New macros.
68271         (parser_init): Don't assume that void * is aligned sufficiently
68272         for struct option.
68273
68274         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68275         need to extend the stack.
68276         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68277         large.
68278
68279 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68280
68281         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68282
68283 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68284
68285         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68286         (2004-10-24) change.  Apparently this was a false alarm.
68287
68288         * modules/getdate: Depend on alloca-opt, not alloca.
68289
68290 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68291
68292         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68293         Remove now-obsolete comment about AIX.
68294         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68295         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68296         (YYMAXDEPTH): New macro.
68297
68298 2004-12-18  Simon Josefsson  <jas@extundo.com>
68299
68300         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68301
68302 2004-12-18  Bruno Haible  <bruno@clisp.org>
68303
68304         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68305
68306 2004-12-18  Bruno Haible  <bruno@clisp.org>
68307
68308         * lib/fatal-signal.c (fatal_signals): Make non-const.
68309         (init_fatal_signals): New function.
68310         (uninstall_handlers, install_handlers): Ignore signals that were set to
68311         SIG_IGN.
68312         (at_fatal_signal): Call init_fatal_signals.
68313         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68314         SIG_IGN.
68315         Reported by Paul Eggert.
68316
68317 2004-12-18  Bruno Haible  <bruno@clisp.org>
68318
68319         * doc/alloca.texi: New file.
68320         * doc/alloca-opt.texi: New file.
68321
68322 2004-12-17  Jim Meyering  <jim@meyering.net>
68323
68324         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68325         Otherwise, install-sh could exit with improper exit status when
68326         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68327
68328 2004-12-16  Simon Josefsson  <jas@extundo.com>
68329
68330         * tests/test-base64.c: Add license.
68331
68332 2004-12-15  Stepan Kasal  <address@hidden>
68333
68334         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68335
68336 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68337
68338         * modules/getcwd (Files): Add m4/d-ino.m4.
68339         Suggested by Mark D. Baushke.
68340
68341 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68342
68343         * lib/getdate.y (textint): New member "negative".
68344         (time_zone_hhmm): New function.
68345         Expect 14 shift-reduce conflicts, not 13.
68346         (o_colon_minutes): New rule.
68347         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68348         (yylex): Set the "negative" member of signed numbers.
68349
68350 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68351
68352         * doc/getdate.texi (Time of day items, Time zone items):
68353         Describe new formats +00:00, UTC+00:00.
68354
68355 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68356
68357         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68358         spurious "-l"s.  Problem reported by Stepan Kasal.
68359
68360 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68363         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68364
68365 2004-12-04  Simon Josefsson  <jas@extundo.com>
68366
68367         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68368         Vandoorselaere <yoann@prelude-ids.org>.
68369
68370 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68371
68372         Changes imported from coreutils.
68373         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68374         exist.
68375         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68376
68377 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         Changes imported from coreutils.
68380         * lib/hard-locale.c: Assume <locale.h> exists.
68381         Include "strdup.h".
68382         (GLIBC_VERSION): New macro.
68383         (hard_locale): Assume setlocale exists.
68384         Rewrite to avoid #ifdef.
68385         Use strdup rather than malloc + strcpy.
68386         * lib/human.c: Assume <locale.h> exists.
68387         (human_readable): Assume localeconv exists.
68388
68389 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68390
68391         * modules/hard-locale (Depends-on): Add strdup.
68392
68393 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68394
68395         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68396         convert T2, not T.  (Imported from libc.)
68397
68398 2004-11-30  Simon Josefsson  <jas@extundo.com>
68399
68400         * modules/restrict (License): Change to LGPL.
68401
68402 2004-11-30  Simon Josefsson  <jas@extundo.com>
68403
68404         * m4/restrict.m4: Add copyright and copying conditions.
68405
68406 2004-11-30  Simon Josefsson  <jas@extundo.com>
68407
68408         * m4/base64.m4: New file.
68409
68410 2004-11-30  Simon Josefsson  <jas@extundo.com>
68411
68412         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68413         base64.
68414
68415         * tests/test-base64.c: New file.
68416
68417         * modules/base64: New file.
68418
68419 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68420
68421         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68422         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68423
68424         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68425
68426 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68429         (__getcwd.c): Don't restore errno; glibc doesn't.
68430         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68431         first, falling back to our code only if its results look suspicious.
68432         Ensure that the resulting buffer is only as large as necessary.
68433
68434         * lib/readutmp.c: Include readutmp.h first.
68435         Include <errno.h>, since readutmp.h no longer does that.
68436         * lib/readutmp.h: Don't include <errno.h>,
68437         <sys/param.h>, <time.h>; not needed to establish interface.
68438         (errno): Remove decl.
68439         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68440         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68441         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68442
68443 2004-11-28  Simon Josefsson  <jas@extundo.com>
68444
68445         * lib/base64.h, base64.c: New file.
68446
68447 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68448
68449         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68450
68451 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68452
68453         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68454         (Depends-on): Remove pathmax, same.  Add mempcpy.
68455         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68456         (Makefile.am): Append getcwd.h to lib_SOURCES.
68457         (Include): Add getcwd.h.
68458         (Maintainer): Change from Jim Meyering to "all, glibc",
68459         since getdate now uses intended-for-glibc code.
68460         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68461         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68462
68463 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68464
68465         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68466         HP's ANSI C compiler.
68467         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68468         Declaring int functions causes warnings on some modern systems and
68469         shouldn't be needed to compile on ancient ones.
68470         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68471         defined.
68472
68473         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68474         with the following changes.
68475         (__set_errno): Parenthesize properly.
68476         Include <stdbool.h>.
68477         (MIN, MAX, MATCHING_INO): New macros.
68478         (__getcwd): Define with prototype, not K&R form.
68479         Use heuristics to allocate default buffer on stack if possible.
68480         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68481         behavior, and to avoid the PATH_MAX limit when computing
68482         ../../../../...
68483         Use MATCHING_INO to compare inode number to file.
68484         Check for arithmetic overflow in size calculations.
68485         Fix bug in reallocation of dot array that caused getcwd to fail
68486         on directories nested deeper than 75.
68487         Be more careful about saving errno on error.
68488         Do not use realloc; use only free+malloc, as this is a bit
68489         more flexible and avoids a needless copy operation.
68490         Do not inspect st_dev and st_ino for symbolic links; POSIX
68491         doesn't specify the latter.
68492         Check for closedir errors.
68493         Avoid needless casts.
68494         Use "#ifdef weak_alias" around weak_alias, to be like other
68495         glibc code.
68496         The following changes to getcwd.c have effect only when used in
68497         gnulib; they have no effect inside glibc proper.
68498         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68499         as alloca isn't used.
68500         (alloca, __alloca): Likewise.
68501         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68502         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68503         unconditionally, as gnulib assumes C89 or better.
68504         Do not include <sys/param.h>.
68505         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68506         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68507         better.
68508         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68509         Include <dirent.h> in a way that is compatible with modern Autoconf.
68510         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68511         New macros, if not already defined.
68512         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68513         Use "_LIBC", not "defined _LIBC", for consistency.
68514         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68515         a mempcpy module.
68516         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68517         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68518         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68519         credit only to Jim Meyering and adjust the copyright dates.
68520         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68521         <stdlib.h>, <unistd.h>, "pathmax.h".
68522         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68523         (INITIAL_BUFFER_SIZE): Remove.
68524         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68525
68526 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68527
68528         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68529         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68530         Use the _ONCE methods, for efficiency.
68531         Check for fcntl.h.  In test program, include <errno.h>
68532         and <fcntl.h> if available.  Remove old K&R cruft from
68533         test program.  Check for common errors in GNU/Linux,
68534         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68535         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68536         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68537         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68538         name accordingly.
68539         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68540         accommodate new getcwd.c.
68541         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68542         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68543         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68544         that's all we need now.
68545
68546 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68547
68548         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68549         argp-parse.c depends on getopt internals, that means we should
68550         always use our getopt, to be on the safe side.
68551         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68552         order not to spoil the result of an eventual previous invocation
68553         of gl_GETOPT_SUBSTITUTE.
68554
68555 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68556
68557         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68558         redefinition warnings. To avoid them, include the defines
68559         in `#if !defined __need_getopt ... #endif'. The only place
68560         where __getopt_argv_const is used is in definitions
68561         of getopt_long and getopt_long_only below, which are as well
68562         protected by `#ifndef __need_getopt'.
68563         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68564         __need_getopt after including <stdio.h> and <unistd.h> These
68565         headers might have defined it.
68566
68567 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68568
68569         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68570
68571 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68574         (futimens): New function, which uses futimes if available.
68575         (futimens, utimens): Support timespec==NULL, with same semantics
68576         as utime and utimens.
68577         * lib/utimens.h (futimens): New decl.
68578
68579 2004-11-23  Jim Meyering  <jim@meyering.net>
68580
68581         * lib/getopt_.h: Remove trailing blanks.
68582
68583 2004-11-23  Jim Meyering  <jim@meyering.net>
68584
68585         * lib/__fpending.c: Add comment.
68586
68587 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * modules/canonicalize (Depends-on): Add xreadlink.
68590         Problem reported by James Youngman.
68591
68592 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68595         New macros.
68596         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68597         optopt): Use them instead of invoking ## directly; otherwise, the
68598         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68599
68600 2004-11-19  Bruno Haible  <bruno@clisp.org>
68601
68602         * lib/strtok_r.c: Move comments from here...
68603         * lib/strtok_r.h: ... to here.
68604
68605 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68606
68607         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68608         implementations that mishandle size_t overflow.
68609
68610 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68611
68612         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68613         might fail.  Problem reported by Yoann Vandoorselaere.
68614         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68615         implementations that mishandle size_t overflow.
68616
68617 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * modules/canon-host (Depends-on): Add strdup.
68620
68621 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68622
68623         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68624
68625 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68626
68627         * lib/canon-host.c: Include "strdup.h".
68628         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68629         Use strdup instead of malloc/strcpy to duplicate strings.
68630
68631         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68632         (human_space_before_unit): New constant.
68633         * lib/human.c (human_readable): Support it.
68634
68635         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68636         (xgetcwd): Set errno correctly when failing.
68637         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68638         the failure is actually due to a PATH_MAX problem.
68639
68640         Further getopt changes to make it more likely that glibc will
68641         buy the changes back.
68642         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68643         (getopt): Use it, so to preserve glibc semantic
68644         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68645         when compiling for libc.
68646         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68647         (getopt_long, getopt_long_only): Use it.
68648
68649         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68650         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68651         (getopt): Argv is now char * const *, as per standard.
68652         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68653         not char *__getopt_argv_const *.
68654         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68655         _getopt_long_only_r): Likewise.
68656         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68657         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68658         _getopt_long_r, _getopt_long_only_r): Likewise.
68659         * lib/getopt_.h (__getopt_argv_const): Remove.
68660         (getopt): Argv is now char * const *, as per standard.
68661
68662         * lib/getdate.y (tORDINAL): New token.
68663         (day, relunit): Allow it for relative times.
68664         (relative_time_table): Use tORDINAL for ordinals.
68665
68666 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68667
68668         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68669         Document that "second" isn't allowed as an ordinal number.
68670
68671 2004-11-16  Jim Meyering  <jim@meyering.net>
68672
68673         * modules/closeout (Depends-on): Add fpending.
68674
68675 2004-11-15  Jim Meyering  <jim@meyering.net>
68676
68677         * lib/closeout.c: Include "__fpending.h" once again.
68678         Include <stdbool.h>.
68679         (close_stdout): Don't fail just because stdout was closed initially,
68680         since some programs don't write to stdout in the normal course of
68681         operation (other than --version and --help), and we don't want this
68682         function to make e.g. `touch file >&-' fail.
68683         But do fail if it was closed and someone has tried to write to it.
68684         E.g., `printf foo >&-' must fail.
68685
68686 2004-11-13  Jim Meyering  <jim@meyering.net>
68687
68688         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68689
68690 2004-11-12  Simon Josefsson  <jas@extundo.com>
68691
68692         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68693         small doc fix is still pending.
68694
68695 2004-11-11  Simon Josefsson  <jas@extundo.com>
68696
68697         * modules/strtok_r: New file.
68698
68699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68700         strtok_r.
68701
68702 2004-11-11  Simon Josefsson  <jas@extundo.com>
68703
68704         * m4/strtok_r.m4: New file.
68705
68706         * m4/getopt.m4: Replace opterr.
68707
68708 2004-11-11  Simon Josefsson  <jas@extundo.com>
68709
68710         * lib/strtok_r.h, strtok_r.c: New file.
68711
68712 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68715         of replacing opterr, getopt, etc.  This should handle the
68716         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68717
68718 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68719
68720         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68721         we can stop lying to compilers about the constness of argv when we
68722         are compiled outside glibc.
68723         (getopt, getopt_long, getopt_long_only): Use it.
68724         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68725         _getopt_internal, getopt): Likewise.
68726         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68727         _getopt_long_only_r): Likewise.
68728         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68729         _getopt_long_r, _getopt_long_only_r): Likewise.
68730
68731         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68732         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68733         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68734         the other external symbols.
68735         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68736         declaration, since the above renaming now works around collisions.
68737
68738 2004-11-11  Jim Meyering  <jim@meyering.net>
68739
68740         * lib/linebreak.c: Remove trailing blanks.
68741         * lib/alloca_.h: Likewise.
68742         * lib/acosl.c: Likewise.
68743         * lib/euidaccess.c: Likewise.
68744         * lib/allocsa.h: Likewise.
68745
68746 2004-11-10  Simon Josefsson  <jas@extundo.com>
68747
68748         * m4/getaddrinfo.m4: New file.
68749
68750 2004-11-10  Simon Josefsson  <jas@extundo.com>
68751
68752         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68753
68754 2004-11-10  Simon Josefsson  <jas@extundo.com>
68755
68756         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68757         getaddrinfo.
68758
68759         * modules/getaddrinfo: New file.
68760
68761 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68762
68763         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68764
68765 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         * lib/mktime.c (SHR): New macro, which is a portable
68768         substitute for >> that should work even on Crays.
68769         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68770         Problem reported by Mark D. Baushke in
68771         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68772         * lib/getdate.y (SHR): Likewise.
68773         (tm_diff): Use it.
68774         * lib/strftime.c (SHR): Likewise.
68775         (tm_diff): Use it.
68776         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68777         quote_these_too, so that right shifts are well defined.  All uses
68778         changed.
68779
68780 2004-11-10  Jim Meyering  <jim@meyering.net>
68781
68782         Ensure that no close failure goes unreported.
68783         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68784         return early when it seems there's nothing to flush.
68785         Don't include __fpending.h.
68786
68787 2004-11-10  Jim Meyering  <jim@meyering.net>
68788
68789         * modules/closeout (Depends-on): Remove fpending.
68790
68791 2004-11-10  Jim Meyering  <jim@meyering.net>
68792
68793         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68794
68795 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68796
68797         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68798         gl_FUNC_STRFTIME.
68799         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68800         and AC_REQUIRE when possible, to avoid duplicate checks.
68801         Check for <wchar.h>.
68802
68803 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68804
68805         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68806
68807 2004-11-09  Bruno Haible  <bruno@clisp.org>
68808
68809         * m4/sockpfaf.m4: New file.
68810
68811 2004-11-05  Bruno Haible  <bruno@clisp.org>
68812
68813         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68814         Reported by Mark D. Baushke <mdb@cvshome.org>.
68815
68816 2004-11-04  Bruno Haible  <bruno@clisp.org>
68817
68818         2004-09-11  Bruno Haible  <bruno@clisp.org>
68819                 * allocsa.valgrind: New file.
68820         2004-02-06  Bruno Haible  <bruno@clisp.org>
68821                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68822                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68823                 Reported by Christopher Seip <chris.seip@hp.com>.
68824
68825 2004-11-04  Bruno Haible  <bruno@clisp.org>
68826
68827         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68828         (Makefile.am): Distribute it.
68829
68830 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68831
68832         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68833         with errno == ERANGE if the buffer is too small.
68834         Problem reported by Mark D. Baushke.
68835
68836 2004-11-03  Albert Chin  <china@thewrittenword.com>
68837             Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68840         equivalent, substitute $ac_type for equivalent type rather than
68841         blindly using uint32_t *always* which won't work if uint32_t is not
68842         available.  Define _UINT32_T to work around typedef of uint32_t if
68843         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68844         2.5.1.
68845
68846 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68847
68848         * m4/jm-macros.m4: Sync from coreutils.
68849         (gl_MACROS): Check for mbrlen, for pathchk.
68850         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68851
68852 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68853
68854         * lib/xreadlink.c (MAXSIZE): New macro.
68855         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68856         size does not exceed MAXSIZE.  Avoid cast.
68857         As suggested by Mark D. Baushke in
68858         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68859         if readlink fails with buffer size just under MAXSIZE, try again
68860         with MAXSIZE.
68861
68862 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68863
68864         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68865
68866 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68867         and  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68870         (get_date): Overparenthesize to avoid GCC warning.
68871
68872 2004-11-02  Bruno Haible  <bruno@clisp.org>
68873
68874         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68875         returns void.
68876
68877 2004-11-02  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68880         function returns void.
68881
68882 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68883
68884         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68885         fflush_unlocked, flockfile, funlockfile, funlockfile,
68886         fputs_unlocked, putc_unlocked.
68887
68888 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68889
68890         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68891         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68892         already declared.
68893
68894 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68895
68896         * modules/getdate (Files): Add doc/getdate.texi.
68897         (Depends-on): Add setenv, xalloc.
68898
68899 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68900
68901         * lib/getdate.y: Add support for TZ="foo" within a date string.
68902         Fix some bugs near time_t boundaries.  Reject dates with
68903         out-of-range components, e.g., "Sept 31".
68904         Include <stdlib.h>, "setenv.h", "xalloc.h".
68905         (ISDIGIT_LOCALE): Remove; unused.
68906         Note that the TZ and time functions used here are not reentrant.
68907         (mktime_ok, get_tz): New functions.
68908         (TZBUFSIZE): New constant.
68909         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68910         This requires that we sometimes generate our own TZ="XXX..." setting.
68911
68912 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         * doc/getdate.texi: New file, from coreutils with modifications for
68915         the new TZ parsing.
68916
68917 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68918
68919         * lib/mktime.c (not_equal_tm): Remove redundant check.
68920
68921 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68922
68923         * modules/regex (lib_SOURCES): Add regex.c.
68924         Reported by James Youngman in
68925         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68926
68927 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68928
68929         * lib/getdate.y: Use Bison 1.875 features, and some minor
68930         code cleanups.  This change does not affect semantics.
68931         Don't include <stdlib.h>; no longer needed.
68932         Don't include unlocked-io.h; only the "#if TEST" code uses
68933         stdio, and performance isn't crucial there.
68934         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68935         Bison 1.875 features as described below.
68936         All uses of "PC." replaced by "pc->".
68937         (YYSTYPE): Add a forward declaration.
68938         (yylex, yyerror): Use full prototypes in forward decls.
68939         Use "%pure-parser" rather than obsolescent "%pure_parser".
68940         Use %parse-param and %lex-param instead of obsolescent
68941         YYPARSE_PARAM and YYLEX_PARAM.
68942         (meridian_table, month_and_day_table, time_units_table,
68943         relative_time_table, time_zone_table, military_table,
68944         lookup_zone, lookup_word, get_date):
68945         Use NULL instead of 0 where appropriate.
68946         (to_hour): Avoid abort (), to avoid a dependency on
68947         stdlib.h.
68948         (yyerror, yylex): Now accepts parser_control * arg.
68949         (main) [TEST]: Use '\0' rather than 0 for char.
68950
68951 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68952
68953         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68954
68955 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68956
68957         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68958         It's now the caller's responsibility to handle the case where
68959         !HAVE_GETPAGESIZE && !defined getpagesize.
68960
68961         * lib/mktime.c (leapyear): Arg is long int, not int.
68962
68963 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68966
68967 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68970         missing.  Problem reported by James Youngman.
68971
68972 2004-10-16  Simon Josefsson  <jas@extundo.com>
68973
68974         * gnulib-tool: Fix comments.  Fix parse problem.
68975         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68976
68977 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68978
68979         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68980         implementation of getopt_long.  Problem reported by Alexander Taler in:
68981         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68982
68983 2004-10-15  Bruno Haible  <bruno@clisp.org>
68984
68985         * gnulib-tool: Untabify. Initialize supplied_libname.
68986         (func_usage): More homogenous output.
68987         (func_modules_transitive_closure, func_modules_to_filelist,
68988         func_emit_lib_Makefile_am): New functions.
68989         (func_import): New function, extracted from big case statement. Use
68990         func_get_license, func_modules_transitive_closure,
68991         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68992         opt_lgpl. Don't use test -a, as it's not portable.
68993         (func_create_testdir): Use func_modules_transitive_closure,
68994         func_modules_to_filelist, func_emit_lib_Makefile_am.
68995
68996 2004-10-15  Bruno Haible  <bruno@clisp.org>
68997
68998         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68999
69000 2004-10-15  Bruno Haible  <bruno@clisp.org>
69001
69002         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
69003         the portions belonging to each module.
69004         Suggested by Derek Robert Price <derek@ximbiot.com>.
69005
69006 2004-10-12  Simon Josefsson  <jas@extundo.com>
69007
69008         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
69009         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
69010         to real functions.
69011
69012 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69013
69014         * modules/vsnprintf: New file.
69015
69016 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69017
69018         * m4/vsnprintf.m4: New file.
69019
69020 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69021
69022         * lib/vsnprintf.h: New file.
69023         * lib/vsnprintf.c: New file.
69024
69025 2004-10-11  Bruno Haible  <bruno@clisp.org>
69026
69027         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
69028         vsnprintf.
69029
69030 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
69033
69034 2004-10-07  Bruno Haible  <bruno@clisp.org>
69035
69036         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
69037         fits into the provided buffer.
69038
69039 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69040
69041         * lib/diacrit.c, diacrit.h: Add GPL notice.
69042
69043         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
69044         notice.
69045         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
69046         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
69047         This avoids a potential constant-folding bug.
69048
69049 2004-10-05  Bruno Haible  <bruno@clisp.org>
69050
69051         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
69052         for the declaration of strsep.
69053
69054 2004-10-05  Bruno Haible  <bruno@clisp.org>
69055
69056         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69057
69058 2004-10-04  Simon Josefsson  <jas@extundo.com>
69059
69060         * modules/memmem: New file.
69061         * tests/test-memmem.c: New file.
69062         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69063
69064 2004-10-04  Simon Josefsson  <jas@extundo.com>
69065
69066         * m4/memmem.m4: New file.
69067
69068 2004-10-04  Simon Josefsson  <jas@extundo.com>
69069
69070         * lib/memmem.h: New file.
69071         * lib/memmem.c: New file, taken from glibc.
69072
69073 2004-10-04  Simon Josefsson  <jas@extundo.com>
69074
69075         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69076         '#ifdef USE_UNLOCKED_IO'.
69077
69078 2004-10-04  Simon Josefsson  <jas@extundo.com>
69079
69080         * config/srclist.txt: Add memmem from glibc.
69081
69082 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69085
69086         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69087         modules/exclude, modules/getdate, modules/getline,
69088         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69089         modules/getusershell, modules/linebuffer, modules/md5,
69090         modules/mountlist, modules/posixtm, modules/readtokens,
69091         modules/readutmp, modules/regex, modules/sha1,
69092         modules/version-etc, modules/yesno:
69093         Remove dependency on unlocked-io.
69094
69095 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69096
69097         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69098
69099         * m4/unlocked-io.m4: Add copyright notice.
69100         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69101
69102 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69103
69104         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69105         * lib/xmalloc.c (xmemdup): Likewise.
69106         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69107         XFREE): Remove these long-obsolescent macros.
69108         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69109         * lib/xstrdup.c: Remove.
69110
69111         * lib/regex.c (re_comp): Cast gettext return value to char *,
69112         Problem reported by Martin Neitzel via Mark D. Baushke.
69113
69114 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69117         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69118         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69119         regex.c, sha1.c, version-etc.c, yesno.c:
69120         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69121         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69122         the includer's responsibility.
69123
69124         Sync from coreutils.
69125
69126         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69127         points to the start of a string, as the C Standard says the
69128         resulting behavior is undefined.
69129
69130         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69131         simple -> simple_backups, numbered_existing ->
69132         numbered_existing_backups, numbered -> numbered_backups
69133         to avoid shadowing problems.  All uses changed.
69134         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69135         * lib/backupfile.c (check_extension, numbered_backup):
69136         Rename locals to avoid shadowing 'basename'.
69137         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69138         once.
69139
69140         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69141         * lib/.cvsignore: Add getopt.h.
69142
69143 2004-10-04  Bruno Haible  <bruno@clisp.org>
69144
69145         * modules/README: New file.
69146         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69147         not a module.
69148
69149 2004-10-02  Jim Meyering  <jim@meyering.net>
69150
69151         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69152
69153 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69154
69155         * modules/strsep: New file.
69156
69157 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69158
69159         * m4/strsep.m4: New file.
69160
69161 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69162
69163         * lib/strsep.h: New file.
69164         * lib/strsep.c: New file.
69165
69166 2004-10-01  Simon Josefsson  <jas@extundo.com>
69167
69168         * lib/snprintf.c (snprintf): Handle size==0.
69169
69170 2004-10-01  Simon Josefsson  <jas@extundo.com>
69171             Bruno Haible  <bruno@clisp.org>
69172
69173         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69174         (snprintf): Declare 'args'.
69175
69176 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * lib/snprintf.c: Remove comments as to why each header is needed.
69179
69180 2004-10-01  Bruno Haible  <bruno@clisp.org>
69181
69182         * MODULES.html.sh: Add strsep.
69183
69184 2004-09-30  Simon Josefsson  <jas@extundo.com>
69185
69186         * modules/snprintf: New file.
69187
69188 2004-09-30  Simon Josefsson  <jas@extundo.com>
69189
69190         * m4/snprintf.m4: New file.
69191
69192 2004-09-30  Simon Josefsson  <jas@extundo.com>
69193
69194         * lib/snprintf.h, lib/snprintf.c: New files.
69195
69196 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69197
69198         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69199         (hol_entry_help): Never translate an empty string.
69200         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69201         * lib/argp.h (OPTION_NO_TRANS): New option.
69202
69203 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69204
69205         * modules/argp (Maintainer): Replace Simon Josefsson
69206         by Sergey Poznyakoff.
69207
69208 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69209
69210         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69211         changes merged back into glibc.
69212
69213 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69214
69215         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69216
69217 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69218
69219         * lib/xvasprintf.c: Include xalloc.h.
69220         (xvasprintf): Use xalloc_die, not xmalloc_die.
69221
69222 2004-09-29  Bruno Haible  <bruno@clisp.org>
69223
69224         * modules/alloca-opt: New file, derived from modules/alloca.
69225         * modules/allocsa: Depend on alloca-opt instead of alloca.
69226         * modules/setenv: Likewise.
69227         * modules/vasnprintf: Likewise.
69228         * MODULES.html.sh: Add alloca-opt.
69229
69230 2004-09-28  Simon Josefsson  <jas@extundo.com>
69231
69232         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69233         LGPL, and to replace license template from GPL to LGPL.
69234
69235 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69236
69237         * modules/dummy: Change license to LGPL.
69238
69239 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69240
69241         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69242
69243 2004-09-24  Simon Josefsson  <jas@extundo.com>
69244
69245         * modules/minmax (License): Change from GPL to LGPL.
69246
69247 2004-09-23  Simon Josefsson  <jas@extundo.com>
69248
69249         * gnulib-tool (--import): Typo.
69250
69251 2004-09-23  Simon Josefsson  <jas@extundo.com>
69252
69253         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69254
69255 2004-09-22  Bruno Haible  <bruno@clisp.org>
69256
69257         * modules/*: Add 'License' field.
69258         * gnulib-tool: Accept --extract-license option.
69259         (func_get_license): New function.
69260
69261 2004-09-21  Bruno Haible  <bruno@clisp.org>
69262
69263         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69264         Reported by Simon Josefsson.
69265
69266 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69267
69268         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69269         gl_AC_TYPE_LONG_LONG.
69270
69271 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69272
69273         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69274
69275 2004-09-18  Simon Josefsson  <jas@extundo.com>
69276         and  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69279         calls with autoreconf.  Define GL_LIB.
69280
69281 2004-09-14  Karl Berry  <karl@gnu.org>
69282
69283         * config/srclist.txt: unsync setenv.c, sigh.
69284
69285 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69286
69287         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69288         Problem reported by Bruno Haible in:
69289         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69290
69291 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69292
69293         * config/srclist.txt: Comment out argp-pvh.c.
69294
69295 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69296
69297         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69298         in case some system header has #define'd it.  Problem reported by
69299         Soeren D. Schulze in
69300         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69301
69302 2004-09-09  Karl Berry  <karl@gnu.org>
69303
69304         * regex.[ch]: delete from the root.  These were supposed to be
69305                 synced with emacs cvs, but this has not happened for about
69306                 a year, and anyway nothing else uses emacs regex.[ch].
69307                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69308                 lib/regex[.ch] is untouched.
69309
69310 2004-09-09  Bruno Haible  <bruno@clisp.org>
69311
69312         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69313
69314 2004-09-09  Bruno Haible  <bruno@clisp.org>
69315
69316         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69317         modifications.
69318         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69319
69320 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69321
69322         * modules/xvasprintf: New file.
69323         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69324
69325 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69326
69327         * lib/xvasprintf.h: New file.
69328         * lib/xvasprintf.c: New file.
69329         * lib/xasprintf.c: New file.
69330
69331 2004-09-08  Bruno Haible  <bruno@clisp.org>
69332
69333         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69334
69335 2004-09-08  Bruno Haible  <bruno@clisp.org>
69336
69337         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69338         length is > INT_MAX.
69339         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69340         more.
69341
69342 2004-09-08  Bruno Haible  <bruno@clisp.org>
69343
69344         * lib/stdint_.h: New file, taken from GNU clisp.
69345
69346 2004-09-08  Bruno Haible  <bruno@clisp.org>
69347             Oskar Liljeblad  <oskar@osk.mine.nu>
69348
69349         * modules/stdint: New file.
69350         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69351
69352 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         Import from coreutils.
69355         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69356         strings on unbounded length.  alloca's performance benefits aren't
69357         that important here.
69358         (V_STRDUP): Remove.
69359         (parse_with_separator): New function, with most of the internals
69360         of the old parse_user_spec.  Allow user to omit both user and group,
69361         for compatibility with FreeBSD.
69362         Clone only the user name, not the entire spec.
69363         Do not set *uid, *gid unless entirely successful.
69364         Avoid memory leak in some failing cases.
69365         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69366         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69367         (parse_user_spec): Rewrite to use parse_with_separator.
69368
69369 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69370
69371         * modules/userspec: Don't depend on alloca.
69372
69373 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69374
69375         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69376
69377 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69380         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69381         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69382
69383 2004-08-16  Simon Josefsson  <jas@extundo.com>
69384
69385         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69386         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69387         Add --dry-run for --import.
69388         Let user provided command line parameters override configure.ac
69389         settings.
69390
69391 2004-08-12  Simon Josefsson  <jas@extundo.com>
69392
69393         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69394         as discussed with Paul Eggert in threads rooted at
69395         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69396         and
69397         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69398         Before, the test was empty, and relied on ELIDE_CODE in source
69399         code.)
69400         (gl_PREREQ_GETOPT): New macro.
69401         (gl_GETOPT): Use them.
69402
69403 2004-08-12  Simon Josefsson  <jas@extundo.com>
69404
69405         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69406         * lib/getopt_.h: Renamed from getopt.h.
69407
69408 2004-08-12  Simon Josefsson  <jas@extundo.com>
69409
69410         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69411         Change default library name from libfoo to libgnu.
69412         Now, if you have a configure.ac that says:
69413                 gl_SOURCE_BASE(gl)
69414                 gl_M4_BASE(gl/m4)
69415                 gl_MODULES(error getopt etcetera)
69416                 gl_INIT
69417         you can import all you need by running:
69418                 ../gnulib/gnulib-tool --import
69419
69420         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69421         (Makefile.am): Rewrite, use logic from argz.
69422         (Include): Use <getopt.h> instead of "getopt.h".
69423
69424 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * modules/argp (Files): Add m4/unlocked-io.m4.
69427         (Depends-on): Add extensions.
69428
69429 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69430
69431         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69432         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69433         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69434         Check for program_invocation_name, program_invocation_short_name,
69435         flockfile, funlockfile, features.h, _getopt_long_only_r.
69436
69437 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69438
69439         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69440         its complicated substitute.
69441         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69442         and program_invocation_name.
69443         (__argp_basename) [!_LIBC]: Remove; the only use was
69444         replaced by its body.
69445         (__argp_short_program_name): Change condition from
69446         !defined __argp_short_program_name to
69447         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69448         to match argp-namefrob.h.
69449         (__argp_failure): Don't assume strerror_r returns char *.
69450         * lib/argp-parse.c (N_): Define unconditionally.
69451         (argp_default_options): Fill out initializers with 0 to avoid
69452         gcc warnings.
69453
69454 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69457         getopt1.c.
69458
69459 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69460
69461         Merge from coreutils.
69462
69463         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69464
69465         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69466         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69467
69468 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         Merge from coreutils.
69471
69472         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69473         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69474         for Reliant Unix 5.43.
69475
69476         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69477         (union fooround): Use uintmax_t, not long int.
69478         The rest is a merge from libc:
69479         [defined _LIBC]: Include <shlib-compat.h>.
69480         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69481
69482         * lib/settime.c (settime): Recode to avoid warning with
69483         Sun Forte C 6U2.
69484
69485         * lib/strverscmp.c: Convert to UTF-8.
69486
69487 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69488
69489         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69490         m4/uintmax_t.m4.
69491
69492 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * modules/xalloc-die: New file.
69495         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69496
69497         * modules/md5 (Files): Add m4/uint32_t.m4.
69498         * modules/sha1: Renamed from modules/sha.
69499         (Files):
69500         Rename lib/sha.h to lib/sha1.h.
69501         Rename lib/sha.c to lib/sha1.c.
69502         Rename m4/sha.m4 to m4/sha1.m4.
69503         (lib_SOURCES): Likewise.
69504         (configure.ac): Rename gl_SHA to gl_SHA1.
69505         (Include): sha.h -> sha1.h.
69506
69507 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69508
69509         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69510         * m4/sha1.m4: Renamed from sha.m4.
69511         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69512
69513 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69514
69515         * lib/obstack.h (obstack_empty_p):
69516         Don't assume that chunk->contents is suitably aligned.
69517         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69518         Likewise. Problem reported by Benno in
69519         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69520
69521         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69522         readable.  This could be improved further but it'd take some work.
69523
69524 2004-08-08  Simon Josefsson  <jas@extundo.com>
69525
69526         * modules/xgethostname (Depends-on): Remove exit and error (not
69527         used).
69528
69529         * modules/getpass-gnu: Add getpass.h.
69530         (Depends-on): Add stdbool.
69531         * modules/getpass: Add getpass.h.
69532
69533 2004-08-08  Simon Josefsson  <jas@extundo.com>
69534
69535         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69536         Check getpass declaration.
69537
69538 2004-08-08  Simon Josefsson  <jas@extundo.com>
69539
69540         * lib/xgethostname.c: Don't include error.h (not used).
69541
69542         * lib/getpass.h: Add.
69543         * lib/getpass.c: Include getpass.h first.
69544
69545 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69546
69547         * lib/xalloc-die.c: New file.
69548         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69549         All uses removed.
69550         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69551         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69552         xalloc-die.c.
69553         (_, N_, xalloc_die): Move to xalloc-die.c.
69554         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69555         so that we needn't mess with xalloc_msg_memory_exhausted.
69556
69557         * lib/sha1.h: Renamed from sha.h.
69558         (SHA1_H): Renamed from _SHA_H.
69559         (sha1_ctx): Renamed from sha_ctx.
69560         (sha1_init_ctx): Renamed from sha_init_ctx.
69561         (sha1_process_block): Renamed from sha_process_block.
69562         (sha1_process_bytes): Renamed from sha_process_bytes.
69563         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69564         (sha1_read_ctx): Renamed from sha_read_ctx.
69565         (sha1_stream): Renamed from sha_stream.
69566         (sha1_buffer): Renamed from sha_buffer.
69567         * lib/sha1.c: Likewise; renamed from sha.c.
69568         Do not include <sys/types.h>.
69569         Include <stddef.h> rather than <stdlib.h>.
69570
69571 2004-08-08  Bruno Haible  <bruno@clisp.org>
69572
69573         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69574         FILESYSTEM_PREFIX_LEN.
69575         * lib/progreloc.c: Likewise.
69576         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69577
69578 2004-08-06  Simon Josefsson  <jas@extundo.com>
69579
69580         * modules/progname (Depends-on): Don't depend on stdbool.
69581
69582 2004-08-06  Simon Josefsson  <jas@extundo.com>
69583
69584         * modules/getsubopt: New file.
69585         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69586         getsubopt.
69587
69588 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69589
69590         More merge from coreutils.
69591
69592         * m4/utimens.m4, m4/utimecmp.m4: New files.
69593         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69594         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69595         prereq.m4, sha.m4: Import changes from coreutils.
69596
69597 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         More merge from coreutils.
69600         * modules/raise, modules/readtokens0, modules/utimens:
69601         * modules/utimecmp, module/xnanosleep: New files.
69602         * modules/strftime: Add lib/strftime.h.
69603         Change include from <time.h> to "strftime.h".
69604         * modules/yesno: Add lib/yesno.h.
69605         * modules/backupfile: Remove lib/addext.c.
69606         * modules/euidaccess: Add stat-macros.h.
69607         * modules/canonicalize, modules/euidaccess,
69608         modules/filemode, modules/lchown, modules/makepath,
69609         modules/rmdir, modules/stat: Likewise.
69610
69611 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69612
69613         Merge from tar.
69614         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69615         SIZE_MAX is a valid preprocessor constant.
69616         (__argp_basename): Change from "#ifndef _LIBC"
69617         to "#ifndef __argp_short_program_name", so that
69618         we don't compile these functions for tar.
69619
69620         More merges from coreutils.
69621         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69622         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69623         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69624         * lib/addext.c: Remove; no longer needed.
69625         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69626         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69627         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69628         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69629         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69630         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69631         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69632         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69633         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69634         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69635         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69636         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69637         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69638         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69639         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69640         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69641         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69642         Import changes from coreutils.
69643
69644 2004-08-05  Simon Josefsson  <jas@extundo.com>
69645
69646         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69647
69648 2004-08-05  Simon Josefsson  <jas@extundo.com>
69649
69650         * m4/getsubopt.m4: New file.
69651
69652 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69653
69654         Merge from coreutils.
69655
69656         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69657         * m4/getcwd-path-max.m4: New files.
69658
69659         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69660         FILESYSTEM_PREFIX_LEN ->
69661         FILE_SYSTEM_PREFIX_LEN.
69662         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69663         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69664         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69665         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69666
69667         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69668         prerequisite modules now handle the DOS stuff.
69669         Don't check for unistd.h.
69670
69671 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69672
69673         Merge from coreutils.
69674
69675         * lib/.gdb-history: Remove; this doesn't belong here.
69676
69677         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69678         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69679         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69680         * lib/getcwd.c: New files.
69681
69682         * lib/dirname.h: Include <stdbool.h>.
69683         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69684         for consistency with POSIX terminology.  All uses changed.
69685         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69686         (strip_trailing_slashes): Use bool for booleans.
69687         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69688
69689         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69690         sometimes returns a positive errno value even when it succeeds.
69691         (print_errno_message) [!LIBC]: Fall back on strerror if
69692         __strerror_r fails.
69693
69694         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69695         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69696         (longest_relative_suffix): New function.
69697         (path_concat): Use it.  Assume first argument is not NULL.
69698         Port to DOS.  Omit redundant separators.
69699         Report an error instead of returning NULL.
69700         Use mempcpy instead of memcpy.
69701         (xpath_concat): Remove: not declared or used.
69702
69703         * lib/same.h: Include <stdbool.h>
69704         (same_name): Return bool, not int.
69705         * lib/same.c (same_name): Likewise.
69706         (errno): Don't declare; we assume C89 or better now.
69707
69708         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69709         if not already defined.
69710
69711         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69712         * lib/dup-safer.c (errno): Likewise.
69713
69714 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         Merge from coreutils.
69717         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69718         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69719         * modules/path-concat: Don't depend on strdup.
69720
69721 2004-08-03  Simon Josefsson  <jas@extundo.com>
69722
69723         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69724         * lib/progname.h: Don't include stdbool.h.
69725
69726 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69727
69728         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69729         * MODULES.html.sh (func_all_modules): Remove fatal.
69730
69731 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69732
69733         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69734
69735 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69736
69737         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69738         working.
69739
69740 2004-08-02  Simon Josefsson  <jas@extundo.com>
69741
69742         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69743         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69744         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69745
69746 2004-08-01  Simon Josefsson  <jas@extundo.com>
69747
69748         * lib/xgetdomainname.c: Include stdlib.h, for free().
69749
69750 2004-07-19  Bruno Haible  <bruno@clisp.org>
69751
69752         * MODULES.html.sh (func_all_modules): Add dummy.
69753
69754 2004-07-16  Simon Josefsson  <jas@extundo.com>
69755
69756         * modules/dummy: New file.
69757
69758 2004-07-16  Simon Josefsson  <jas@extundo.com>
69759
69760         * lib/dummy.c: New file.
69761
69762 2004-07-16  Bruno Haible  <bruno@clisp.org>
69763
69764         * lib/backupfile.h: Add extern "C" for C++.
69765         * lib/closeout.h: Likewise.
69766         * lib/copy-file.h: Likewise.
69767         * lib/findprog.h: Likewise.
69768         * lib/full-write.h: Likewise.
69769         * lib/pathname.h: Likewise.
69770         * lib/progname.h: Likewise.
69771         * lib/stpcpy.h: Likewise.
69772         * lib/stpncpy.h: Likewise.
69773         * lib/strcase.h: Likewise.
69774         * lib/strstr.h: Likewise.
69775         * lib/xalloc.h: Likewise.
69776
69777         * lib/mbswidth.h: Add extern "C" for C++.
69778         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69779
69780 2004-07-13  Robert Millan  <robertmh@gnu.org>
69781
69782         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69783
69784 2004-07-09  Simon Josefsson  <jas@extundo.com>
69785
69786         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69787         failed without this.)
69788
69789 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69790
69791         * modules/chown (Files): Add lib/fchown-stub.c, since
69792         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69793
69794 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69795
69796         * lib/fchown-stub.c: New file.
69797
69798 2004-06-24  Jim Meyering  <jim@meyering.net>
69799
69800         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69801
69802 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69803
69804         * modules/argz: Omit "#include".
69805
69806         * MODULES.html.sh (func_all_modules): Add calloc, to match
69807         2004-06-01 addition of calloc module.
69808
69809 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69810
69811         * m4/argz.m4: New file, which is autoupdated from libtool.
69812
69813 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69814
69815         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69816         libtool.
69817
69818 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69819
69820         * config/srclist-update: Don't insist on "USA." before the
69821         close-comment, as libtool omits the period and puts the */ on a
69822         separate line.
69823         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69824         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69825
69826 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69827
69828         * modules/argz: New file.
69829         * MODULES.html.sh (func_all_modules): Add argz.
69830
69831 2004-06-12  Jim Meyering  <jim@meyering.net>
69832         and  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * modules/hash (Files): Add lib/xalloc.h.
69835         * modules/pipe (Depends-on): Add wait-process.
69836         * modules/stat (Depends-on): Add xalloc.
69837         * modules/userspec (Files): Add lib/userspec.h.
69838         * modules/xstrto
69839
69840         Upgrade from gettext-0.13.
69841         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69842         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69843         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69844
69845 2004-06-10  Jim Meyering  <jim@meyering.net>
69846
69847         * lib/calloc.c: New file.
69848
69849 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69850
69851         * lib/getdate.y (yylex): Allow space between sign and number.
69852         Problem reported by Dan Jacobson.
69853
69854 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69855
69856         Merge from coreutils CVS.
69857
69858         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69859         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69860         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69861         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69862         xstrtol.m4: Fix copyright date and/or serial number.
69863
69864         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69865         See if we need an fchown replacement.
69866         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69867         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69868         and use the replacement function if we detect either defect.
69869
69870         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69871         gl_UTIMECMP.
69872
69873 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69874         and  Jim Meyering  <jim@meyering.net>
69875
69876         Merge from coreutils CVS.
69877
69878         * lib/stat-macros.h: New file, with contents from file-type.h
69879         and coreutils' system.h.
69880         * lib/file-type.c: Include "stat-macros.h".
69881         * lib/file-type.h (file_type): Move all macro definitions to new file,
69882         stat-macros.h.
69883
69884         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69885         Wrap old code with this conditional.
69886         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69887         function that does not dereference symlinks.
69888         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69889
69890         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69891         dependency problems.
69892         (xreadlink): Accept new arg SIZE, for efficiency.
69893         All decls and uses changed.
69894         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69895
69896         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69897         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69898
69899         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69900         sysexits.h.
69901
69902 2004-06-01  Jim Meyering  <jim@meyering.net>
69903
69904         * m4/calloc.m4: New file.
69905
69906 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69909         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69910         Also, fix a typo in a diagnostic.
69911
69912 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69915         or AC_FUNC_REALLOC.
69916
69917 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69920         macros to be defined.
69921         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69922         the allocator returns NULL because the requested size is zero.
69923
69924 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69925
69926         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69927         var.  Add comment explaining why libc still defines it.  This
69928         merges the following patch from glibc:
69929         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69930
69931 2004-05-20  Andreas Schwab  <schwab@suse.de>
69932
69933         * m4/free.m4: Replace free if it not known to work, not the other
69934         way round.
69935
69936 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69939         present in glibc since revision 1.1 of this file.
69940         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69941         obstack_alignment_mask, obstack_alloc, obstack_base,
69942         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69943         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69944         obstack_grow0, obstack_init, obstack_int_grow,
69945         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69946         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69947         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69948         nonexistent functions.
69949
69950 2004-05-18  Karl Berry  <karl@gnu.org>
69951
69952         * config/srclist.txt: break link for vasnprintf.c.
69953
69954 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         Port obstack to the AS/400, where pointers are 16 bytes wide and
69957         you cannot cast an integer to a valid pointer.  This patch is
69958         currently waiting to be integrated into glibc; see
69959         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69960
69961         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69962         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69963         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69964         (struct obstack): temp member is now a union of a pointer and
69965         an integer, instead of an integer.  All integer uses changed.
69966         This does not affect the physical layout of struct obstack,
69967         except on hosts (like the AS/400) where the size or alignment of
69968         void * is greater than that of ptrdiff_t.
69969         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69970         __STDC__)]: Store temporary in pointer member of union, not
69971         integer member.
69972         * lib/obstack.c: Include <stddef.h>, for offsetof.
69973         (struct fooalign): Remove; it doesn't need a name.
69974         (union fooround): Change double to long double, and add void *.
69975         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69976         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69977         not a macro.  Hence the values are always int; so remove all
69978         casts-to-int in uses.
69979
69980 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69981
69982         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69983         we can get this patch merged into glibc.
69984
69985 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69986             Paul Eggert  <eggert@cs.ucla.edu>
69987
69988         * m4/argp: Depend on alloca.
69989
69990 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69991             Paul Eggert  <eggert@cs.ucla.edu>
69992
69993         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69994         freecoding.
69995
69996 2004-05-17  Bruno Haible  <bruno@clisp.org>
69997
69998         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69999         precision that consists of a '.' followed by an empty digit string.
70000         Patch by Tor Lillqvist <tml@iki.fi>.
70001
70002 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
70005         for backward compatibility with older code.  We need our own
70006         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
70007         it under some other name, and our alloca.h will define it.
70008
70009 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70010             Derek Price  <derek@ximbiot.com>
70011
70012         * lib/alloca.c: Include <alloca.h>, to get our interface.
70013         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
70014         include <alloca.h> first.  Use C89 prototype for alloca; this
70015         requires including <stddef.h> for size_t.  Use extern "C" if C++.
70016         Use #elif for simplicity, since we can assume C89 now.
70017         Don't try to source the system alloca.h since it will not be found
70018         and to prevent recursively including its replacement.
70019         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
70020         * lib/regex.c: Likewise.
70021
70022 2004-05-16  Derek Price  <derek@ximbiot.com>
70023             Paul Eggert  <eggert@cs.ucla.edu>
70024
70025         getline cleanup.  This changes the getndelim2 API: both order of
70026         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
70027         no delimiter).
70028
70029         * lib/getline.c: Don't include stddef.h or stdio.h, since our
70030         interface does that.
70031         (getline): Always use getdelim, so that we don't have two
70032         copies of this code.
70033         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
70034         if available.
70035         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
70036         (GETNDELIM2_MAXIMUM): New macro.
70037         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
70038         instead of the old practice of delim2==0.  All callers changed.
70039         Return -1 on overflow, instead of returning junk.
70040         Do not set *linesize unless allocation succeeds.
70041         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
70042         that we include sys/types.h.
70043         * lib/getnline.h: Likewise.
70044         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
70045         (getndelim2): Reorder arguments.
70046         * lib/getnline.c (getnline, getndelim):
70047         Don't discard the NMAX argument.
70048         (getnline): Invoke getndelim, to avoid code duplication.
70049         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
70050         of (size_t) -1 by callers of the getnline family.
70051
70052 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70055         Check for gettimeofday.
70056         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70057         Check for settimeofday, stime.
70058
70059 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70060
70061         * lib/nanosleep.c (suspended): Change its type from int to
70062         sig_atomic_t volatile.
70063         (first_call): Make it private to rpl_nanosleep, and have it
70064         be zero initially as that's a bit faster.
70065         (my_usleep): Round up fractional times instead of truncating them,
70066         as this is the usual meaning for 'sleep'.
70067
70068         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70069         doesn't work.
70070         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70071         (ENOSYS): Define if not defined.
70072         (settime): Fall back on stime if it exists and settimeofday fails.
70073         But don't bother with fallbacks if a method fails with errno == EPERM.
70074
70075 2004-05-11  Jim Meyering  <jim@meyering.net>
70076
70077         Prior to this change, the save_cwd caller required read access to the
70078         current directory on most systems (ones with the fchdir function).
70079
70080         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70081         fails, try write-only, and finally, resort to using xgetcwd.
70082
70083 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70084
70085         * lib/obstack.c, obstack.h: Import changes from libc.
70086
70087 2004-04-28  Bruno Haible  <bruno@clisp.org>
70088
70089         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70090         also implicitly appends .exe to executables.
70091         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70092         accepts Windows pathnames.
70093         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70094         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70095         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70096         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70097         Reported by Derek Robert Price <derek@ximbiot.com>.
70098
70099 2004-04-21  Karl Berry  <karl@gnu.org>
70100
70101         * config/srclist.txt (localcharset.c): break sync.
70102
70103 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70104
70105         * m4/host-os.m4: Add a copyright notice.
70106
70107 2004-04-20  Jim Meyering  <jim@meyering.net>
70108
70109         Change UTILS_ to gl_ in AC_DEFINE'd names.
70110         Change utils_- and jm_-prefixed variables, too.
70111         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70112         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70113         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70114
70115         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70116         Don't emit trailing blanks.
70117         Also rename jm_-prefixed variables to have gl_ prefix.
70118
70119         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70120         Also rename jm_-prefixed variables to have gl_ prefix.
70121
70122         * m4/jm-macros.m4: Reflect the renamings.
70123         * m4/prereq.m4: Likewise.
70124
70125 2004-04-20  Jim Meyering  <jim@meyering.net>
70126
70127         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70128         memory.
70129
70130 2004-04-20  Jim Meyering  <jim@meyering.net>
70131             Bruno Haible  <bruno@clisp.org>
70132
70133         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70134         memory when realloc fails.
70135
70136 2004-04-19  Jim Meyering  <jim@meyering.net>
70137
70138         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70139         now that readutmp.c may call `free (0)'.
70140
70141 2004-04-19  Bruno Haible  <bruno@clisp.org>
70142
70143         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70144         * m4/inttypes_h.m4: Likewise.
70145         * m4/stdint_h.m4: Likewise.
70146         * m4/intmax_t.m4: Likewise.
70147         * m4/uintmax_t.m4: Likewise.
70148
70149 2004-04-18  Jim Meyering  <jim@meyering.net>
70150
70151         * m4/prereq.m4: Don't forbid jm_ prefix.
70152
70153         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70154         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70155         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70156         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70157         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70158         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70159         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70160         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70161         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70162         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70163         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70164         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70165         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70166         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70167         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70168         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70169         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70170         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70171         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70172
70173 2004-04-18  Jim Meyering  <jim@meyering.net>
70174
70175         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70176         failure, don't leak memory and do call END_UTMP_ENT.
70177
70178 2004-04-16  Jim Meyering  <jim@meyering.net>
70179
70180         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70181         coreutils' stat program.
70182         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70183
70184 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70185
70186         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70187         C89.
70188         (CHAR_BIT): Remove, since we assume C89.
70189         Include <stdint.h> if available, as per current Autoconf CVS advice.
70190
70191 2004-03-31  Jim Meyering  <jim@meyering.net>
70192
70193         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70194         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70195         * m4/xalloc.m4: Likewise.
70196
70197 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70198
70199         Merge from coreutils.
70200
70201         * m4/inttostr.m4: New file.
70202         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70203         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70204         Require gl_CLOCK_TIME.
70205         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70206
70207 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70208
70209         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70210         not bool, to be more consistent with Unix conventions.
70211         Suggested by Bruno Haible.
70212
70213         Merge from coreutils.
70214
70215         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70216         * lib/umaxtostr.c: New files.
70217
70218         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70219         the usual <time.h> dance.
70220         (get_date): Change signature to support fractional time stamps.
70221         All callers changed.
70222         * lib/getdate.y: Include "getdate.h" first, as we can now
70223         assume C89 and don't need to worry about 'const'.
70224         Similarly, include "unlocked-io.h" near start, not in middle.
70225         Include <limits.h>.
70226         (textint.value): Use long int rather than int.
70227         (textint.digits): Use size_t rather than int.
70228         (BILLION, LOG10_BILLION): New constants.
70229         (parser_control): New member rel_ns.  Members day_ordinal,
70230         time_zone, month, day, hour, minutes, rel_year, rel_month,
70231         rel_day, rel_hour, rel_minutes, rel_seconds
70232         are now long int, not int.  Member seconds is now struct timespec,
70233         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70234         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70235         not int.
70236         (%union.intval): Now long int, not int.
70237         New member timespec.
70238         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70239         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70240         (spec): Now is a timespec or an item list.
70241         (timespec, items): New nonterminals.
70242         (time, rel, relunit, number, get_date):
70243         Add support for fractional seconds.
70244         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70245         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70246         (to_hour): First arg is now long int, not int.
70247         (to_year): Returns long int, not int.
70248         Don't treat year -70 like 70.
70249         (tm_diff): Returns long int, not int.
70250         (lookup_word): Use bool instead of int when appropriate.
70251         (yylex): Use size_t for count, not int.
70252         Detect overflow when parsing large integer constants.
70253         Add support for fractions.
70254         (get_date): Make pointers 'const' if possible.
70255         Use more-portable code to detect integer overflow.
70256         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70257         Don't use ctime; it's not reliable if the year has >4 digits.
70258
70259         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70260         This is for compatibility with BSD.
70261
70262         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70263         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70264         From coreutils' system.h.
70265
70266         * lib/userspec.c: Don't include "posixver.h".
70267         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70268         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70269         compatible extension.  Simplify code by removing a boolean int
70270         that was always nonzero if a string was nonnull.
70271
70272 2004-03-30  Jim Meyering  <jim@meyering.net>
70273
70274         Merge from coreutils.
70275
70276         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70277         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70278         on some systems one must include <grp.h> before it.
70279         Reported by Christian Krackowizer.
70280
70281 2004-03-30  Jim Meyering  <jim@meyering.net>
70282
70283         Merge from coreutils.
70284
70285         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70286
70287         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70288         an empty input stream.
70289
70290         * lib/readtokens.c: Include <stdbool.h>.
70291         (readtoken): Use `size_t' rather than int/long.
70292         All callers adjusted.
70293         Use `bool' rather than `int' where appropriate.
70294         Use memset rather than an explicit loop.
70295         Use x2nrealloc rather than xrealloc.
70296         Allow the use of `\0' as a delimiter.
70297         (readtokens): Likewise.
70298         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70299
70300 2004-03-30  Jim Meyering  <jim@meyering.net>
70301
70302         * m4/realloc.m4: Remove file, since now it does no more than
70303         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70304         the `configure.ac' section of module/realloc.
70305         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70306
70307 2004-03-30  Bruno Haible  <bruno@clisp.org>
70308
70309         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70310         nonnull.
70311
70312 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70313
70314         Merge changes to getloadavg.c from coreutils and Emacs.
70315
70316         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70317         Define to an expression, not to the empty string.
70318         Include cloexec.h and xalloc.h.
70319         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70320         Use set_cloexec_flag rather than rolling our own.
70321         * lib/cloexec.c, lib/cloexec.h: New files.
70322
70323 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70324
70325         * m4/cloexec.m4: New file.
70326
70327 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70328
70329         * lib/getopt.h: Sync with libc CVS.
70330
70331 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70332             Bruno Haible  <bruno@clisp.org>
70333
70334         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70335         mbswidth.
70336
70337 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70338             Bruno Haible  <bruno@clisp.org>
70339
70340         * lib/mbswidth.h: Include <wchar.h> only if
70341         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70342         <wchar.h>.
70343         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70344
70345 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70346
70347         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70348         Sync with libc CVS.
70349         * lib/getopt_int.h: New file, also synced from libc.
70350
70351 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70352
70353         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70354         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70355         Bring back getopt.c, getopt.h, getopt1.c.
70356
70357 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70358
70359         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70360         All uses changed.  Check for sa_sigaction member; this fixes
70361         a bug first reported by Jason Andrade in
70362         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70363
70364 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70365
70366         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70367         '#if' expressions.  Unlike the code it replaces, it does not
70368         depend on (defined _SC_PAGESIZE).  However, it does depend on
70369         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70370         first reported by Jason Andrade in
70371         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70372
70373 2004-02-25  Simon Josefsson  <jas@extundo.com>
70374
70375         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70376
70377 2004-02-25  Simon Josefsson  <jas@extundo.com>
70378
70379         * lib/strdup.h: New file.
70380         * lib/strdup.c: Include it.
70381         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70382         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70383
70384 2004-02-23  Karl Berry  <karl@gnu.org>
70385
70386         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70387         (from fencepost.gnu.org:/gd/gnuorg).
70388
70389 2004-02-23  Karl Berry  <karl@gnu.org>
70390
70391         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70392         * config/srclist.txt: add maintain/standards documents.
70393
70394 2004-02-18  Bruno Haible  <bruno@clisp.org>
70395
70396         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70397         Reported by Derek Robert Price <derek@ximbiot.com>.
70398
70399 2004-02-16  Karl Berry  <karl@gnu.org>
70400
70401         * config/mkinstalldirs, install-sh: update from automake.
70402
70403 2004-02-06  Karl Berry  <karl@gnu.org>
70404
70405         * m4/po.m4: update from gettext 0.14.1.
70406
70407 2004-02-06  Karl Berry  <karl@gnu.org>
70408
70409         * lib/config.charset: update from gettext 0.14.1.
70410
70411 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70412
70413         Add comments and code, prompted by suggestions from Bruno Haible
70414         for sh-quote.
70415         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70416         describing the enum quoting_style values.
70417         * lib/quotearg.c (quotearg_alloc): New function.
70418         (quotearg_buffer_restyled): Treat lone { and } as special.
70419         Treat = as special.  Work around bug with older shells
70420         that "see" a '\' that is really the 2nd byte of a multibyte char.
70421         Quote empty string with shell_quoting_style.
70422
70423 2004-02-03  Bruno Haible  <bruno@clisp.org>
70424
70425         * m4/pipe.m4: New file, from GNU gettext.
70426
70427 2004-02-03  Bruno Haible  <bruno@clisp.org>
70428
70429         * lib/pipe.h: New file, from GNU gettext.
70430         * lib/pipe.c: New file, from GNU gettext.
70431
70432 2004-01-27  Bruno Haible  <bruno@clisp.org>
70433
70434         * m4/execute.m4: New file, from GNU gettext.
70435
70436 2004-01-27  Bruno Haible  <bruno@clisp.org>
70437
70438         * lib/execute.h: New file, from GNU gettext.
70439         * lib/execute.c: New file, from GNU gettext.
70440         * lib/w32spawn.h: New file, from GNU gettext.
70441
70442 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70443
70444         Merge from diffutils.
70445
70446         * lib/file-type.c (file_type): Add typed memory objects.
70447         * lib/file-type.h (S_TYPEISTMO): New macro.
70448
70449         * lib/c-stack.h (c_stack_action): Remove argv argument.
70450         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70451         (die): Don't calculate message unless segv_action returns.
70452         (get_stack_location, min_address_from_argv, max_address_from_argv,
70453         volatile stack_base, volatile_stack_size): Remove.
70454         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70455         that every segmentation violation is a stack overflow.  (Ouch!)
70456         See Debian bug 136249 (still outstanding) for more info about why
70457         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70458
70459 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70460
70461         Exit-status fix from coreutils.
70462
70463         Use exit_failure consistently in place of EXIT_FAILURE,
70464         so that program exit statuses are consistent on failure.
70465
70466         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70467         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70468         * lib/argmatch.h: Comment fix to match the above.
70469         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70470         Now a macro referring to exit_failure, instead of a separate
70471         variable.  Include "exitfail.h" to get it.
70472         * lib/xstrtol.h: Include "exitfail.h".
70473         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70474
70475         * lib/long-options.c (parse_long_options): Use prototype
70476         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70477         for clarity.
70478
70479 2004-01-21  Jim Meyering  <jim@meyering.net>
70480
70481         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70482         so as not to conflict with a different-sized __mktime_internal
70483         function in GNU libc.
70484         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70485         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70486
70487 2004-01-20  Karl Berry  <karl@gnu.org>
70488
70489         * config/config.guess: update from config.
70490
70491         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70492
70493 2004-01-20  Bruno Haible  <bruno@clisp.org>
70494
70495         Safer stack allocation.
70496         * lib/setenv.c: Include allocsa.h.
70497         (alloca): Remove fallback definition.
70498         (freea): Remove macro.
70499         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70500         instead of freea.
70501
70502 2004-01-20  Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/eealloc.m4: New file, from GNU gettext.
70505
70506 2004-01-20  Bruno Haible  <bruno@clisp.org>
70507
70508         * m4/allocsa.m4: New file, from GNU gettext.
70509
70510 2004-01-20  Bruno Haible  <bruno@clisp.org>
70511
70512         * lib/xallocsa.h: New file, from GNU gettext.
70513         * lib/xallocsa.c: New file, from GNU gettext.
70514
70515 2004-01-20  Bruno Haible  <bruno@clisp.org>
70516
70517         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70518
70519 2004-01-20  Bruno Haible  <bruno@clisp.org>
70520
70521         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70522         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70523         specially.
70524
70525 2004-01-20  Bruno Haible  <bruno@clisp.org>
70526
70527         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70528         patch.
70529
70530 2004-01-20  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70533
70534 2004-01-20  Bruno Haible  <bruno@clisp.org>
70535
70536         * lib/eealloc.h: New file.
70537
70538 2004-01-20  Bruno Haible  <bruno@clisp.org>
70539
70540         * lib/binary-io.h: Avoid warnings on Cygwin.
70541
70542 2004-01-20  Bruno Haible  <bruno@clisp.org>
70543
70544         * lib/allocsa.h: New file, from GNU gettext.
70545         * lib/allocsa.c: New file, from GNU gettext.
70546
70547 2004-01-18  Karl Berry  <karl@gnu.org>
70548
70549         * doc/gpl.texi, doc/lgpl.texi: new files.
70550
70551 2004-01-18  Karl Berry  <karl@gnu.org>
70552
70553         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70554         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70555
70556 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70557
70558         Merge from coreutils.
70559
70560         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70561         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70562         (gl_DEFAULT_POSIX2_VERSION): Move
70563         the documentation from 'configure' into 'config.hin',
70564         so that 'configure --help' isn't burdened by it and
70565         we don't have to worry about its formatting there.
70566         Reword the documentation so that it's more succinct
70567         and can be run together into a single paragraph.
70568         * m4/same.m4 (gl_SAME): Check for pathconf.
70569
70570 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70571
70572         Merge from coreutils.
70573
70574         * lib/posixver.c: Include posixver.h.
70575
70576         * lib/same.c: Include <stdbool.h>, <limits.h>.
70577         (_POSIX_NAME_MAX): Define if not defined.
70578         (MIN): New macro.
70579         (same_name): If file names are silently truncated, report
70580         that the file names are the same if they are the same after
70581         the silent truncation.
70582
70583         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70584         conversion function.
70585         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70586         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70587         longer needed.
70588
70589 2004-01-15  Jim Meyering  <jim@meyering.net>
70590
70591         Merge from coreutils.
70592
70593         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70594         if no library is required.
70595         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70596         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70597         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70598         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70599         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70600         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70601         value, $ac_cv_search_crypt, if it's "none required".
70602         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70603         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70604         not gl_FUNC_GETLOADAVG.
70605         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70606         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70607
70608 2004-01-15  Jim Meyering  <jim@meyering.net>
70609
70610         Merge from coreutils.
70611
70612         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70613         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70614         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70615
70616         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70617         optional configure-time default.
70618
70619         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70620
70621         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70622
70623 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70624
70625         Merge from coreutils.
70626
70627         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70628         value, $ac_cv_search_nanosleep, if it's "none required".
70629
70630 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70631
70632         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70633         with like-named macro in fnmatch.c.
70634         (EXT): Use an internal constant instead.
70635
70636         Merge fnmatch patches from glibc.
70637         * lib/fnmatch.c (mbsinit): Remove define.
70638         Add libc_hidden_ver (__fnmatch, fnmatch).
70639         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70640         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70641
70642 2004-01-14  Karl Berry  <karl@gnu.org>
70643
70644         * config/install-sh: update from automake.
70645
70646 2004-01-13  Karl Berry  <karl@gnu.org>
70647
70648         * config/install-sh: update from automake.
70649
70650 2004-01-09  Karl Berry  <karl@gnu.org>
70651
70652         * config/install-sh: update from automake.
70653
70654 2004-01-05  Karl Berry  <karl@gnu.org>
70655
70656         * config/config.{sub,guess}: update from config.
70657
70658 2003-12-31  Karl Berry  <karl@gnu.org>
70659
70660         * config/depcomp: update from automake.
70661
70662 2003-12-14  Karl Berry  <karl@gnu.org>
70663
70664         * lib/config.charset: update from gettext-runtime.
70665
70666 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70667
70668         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70669         Bug reported by Alfred M. Szmidt.
70670
70671 2003-12-03  Bruno Haible  <bruno@clisp.org>
70672
70673         * m4/gettext.m4: Upgrade from gettext-0.13.
70674         * m4/po.m4: Upgrade from gettext-0.13.
70675         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70676         * m4/intmax.m4: New file, from gettext-0.13.
70677         * m4/printf-posix.m4: New file, from gettext-0.13.
70678
70679 2003-11-29  Karl Berry  <karl@gnu.org>
70680
70681         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70682
70683 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70684             Bruno Haible  <bruno@clisp.org>
70685
70686         * lib/printf-parse.h: Don't include sys/types.h.
70687         (ARG_NONE): New macro.
70688         (char_directive): Change type of *arg_index fields to size_t.
70689         * lib/printf-parse.c: Don't include sys/types.h.
70690         (SSIZE_MAX): Remove macro.
70691         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70692         Remove unnecessary overflow check.
70693         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70694         fields.
70695
70696 2003-11-25  Bruno Haible  <bruno@clisp.org>
70697
70698         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70699
70700 2003-11-25  Bruno Haible  <bruno@clisp.org>
70701
70702         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70703         gt_TYPE_SSIZE_T.
70704
70705 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70706
70707         * modules/alloca: Remove dependency on xalloc.
70708
70709 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70710
70711         * lib/alloca.c: Remove dependency on xalloc module.
70712         (xalloc_die): Remove.
70713         (memory_full) [!defined emacs]: New macro.
70714         [!defined emacs]: Don't include xalloc.h.
70715         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70716         address arithmetic overflows.  Change datatypes a bit to avoid
70717         unnecessary casts.
70718
70719 2003-11-22  Jim Meyering  <jim@meyering.net>
70720
70721         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70722         s/size/size_t/.
70723
70724 2003-11-21  Karl Berry  <karl@gnu.org>
70725
70726         * config/config.{sub,guess}: update from config.
70727
70728 2003-11-18  Karl Berry  <karl@gnu.org>
70729
70730         * config/config.{sub,guess}: update from config.
70731
70732         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70733
70734 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70735
70736         * README: Mention that S+T cannot overflow if S is the size of
70737         an existing object and T is sufficiently small.
70738
70739 2003-11-17  Jim Meyering  <jim@meyering.net>
70740
70741         On systems without utime and without a utimes function capable of
70742         dealing with a NULL struct utimbuf* argument, this utime replacement
70743         could -- in unusual circumstances -- leak a file descriptor.
70744         * lib/utime.c: Include <unistd.h> and <errno.h>.
70745         (utime_null): Be sure to close `fd' and to preserve errno.
70746         Reported by Geoff Collyer via Arnold Robbins.
70747
70748 2003-11-17  Bruno Haible  <bruno@clisp.org>
70749
70750         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70751         (Depends-on): Add xsize.
70752
70753 2003-11-17  Bruno Haible  <bruno@clisp.org>
70754
70755         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70756
70757 2003-11-17  Bruno Haible  <bruno@clisp.org>
70758
70759         * lib/vasnprintf.c (alloca): Remove fallback definition.
70760         (freea): Remove definition.
70761         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70762         Reported by Paul Eggert.
70763
70764 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70765             Bruno Haible  <bruno@clisp.org>
70766
70767         Protect against address arithmetic overflow.
70768         * lib/printf-args.h: Include stddef.h.
70769         (arguments): Change type of field 'count' to size_t.
70770         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70771         'unsigned int' where appropriate.
70772         * lib/printf-parse.h: Include sys/types.h.
70773         (char_directive): Change type of *arg_index fields to ssize_t.
70774         (char_directives): Change type of fields 'count', max_*_length to
70775         size_t.
70776         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70777         (SSIZE_MAX): Define fallback value.
70778         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70779         instead of 'int' where appropriate. Check a_allocated, d_allocated
70780         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70781         * lib/vasnprintf.c: Include xsize.h.
70782         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70783         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70784         overflow. Avoid wraparound when converting a width or precision from
70785         decimal to binary.
70786
70787 2003-11-16  Bruno Haible  <bruno@clisp.org>
70788
70789         Update from GNU gettext.
70790         * lib/printf-parse.c: Generalize to it can be compiled for wide
70791         strings.
70792         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70793         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70794         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70795         SNPRINTF): New macros.
70796         Don't include <alloca.h> if the file is used inside libintl.
70797         (local_wcslen): New function, for Solaris 2.5.1.
70798         (VASNPRINTF): Use it instead of wcslen.
70799
70800 2003-11-16  Bruno Haible  <bruno@clisp.org>
70801
70802         * lib/xsize.h (xmax): New function.
70803         (xsum, xsum3, xsum4): Declare as "pure" functions.
70804
70805 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70806
70807         * modules/xalloc (Files): Undo latest change, since xalloc.h
70808         no longer needs SIZE_MAX or PTRDIFF_MAX.
70809
70810 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70811
70812         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70813         gl_PTRDIFF_MAX.
70814
70815 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70816
70817         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70818         "return", to pacify some unknown compiler.  Problem reported
70819         by Joerg Schilling.
70820
70821 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70822
70823         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70824         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70825         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70826         heuristic is just as accurate as far as we know, and it removes a
70827         dependency on size_max.m4 and ptrdiff_max.m4.
70828
70829 2003-11-11  Bruno Haible  <bruno@clisp.org>
70830
70831         * modules/xsize (Files): Add m4/size_max.m4.
70832         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70833
70834 2003-11-11  Bruno Haible  <bruno@clisp.org>
70835
70836         * m4/size_max.m4: New file.
70837         * m4/ptrdiff_max.m4: New file.
70838         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70839         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70840         (gl_XALLOC): Invoke it.
70841
70842 2003-11-11  Bruno Haible  <bruno@clisp.org>
70843
70844         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70845         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70846         defined.
70847
70848 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70849
70850         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70851         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70852         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70853         From Bruno Haible.
70854         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70855         not (size_t) -1, since it's defined here.
70856
70857 2003-11-09  Karl Berry  <karl@gnu.org>
70858
70859         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70860
70861 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70862
70863         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70864         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70865         Reject sizes of exactly SIZE_MAX bytes.
70866         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70867         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70868
70869 2003-11-05  Bruno Haible  <bruno@clisp.org>
70870
70871         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70872         SIZE_MAX defined in <limits.h> on Solaris.
70873
70874 2003-11-04  Jim Meyering  <jim@meyering.net>
70875
70876         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70877         variable names, rather than @VAR@.
70878         * modules/poll: Likewise.
70879
70880 2003-11-04  Bruno Haible  <bruno@clisp.org>
70881
70882         * modules/xsize: New file.
70883         * modules/linebreak: Depend on xsize.
70884         * MODULES.html.sh (func_all_modules): Add xsize.
70885
70886 2003-11-04  Bruno Haible  <bruno@clisp.org>
70887
70888         * m4/xsize.m4: New file.
70889
70890 2003-11-04  Bruno Haible  <bruno@clisp.org>
70891
70892         * lib/xsize.h: New file.
70893         * lib/linebreak.c: Include xsize.h.
70894         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70895         argument for overflow.
70896         Suggested by Paul Eggert.
70897
70898 2003-11-03  Karl Berry  <karl@gnu.org>
70899
70900         * config/config.{guess,sub}: update from config.
70901
70902 2003-11-03  Jim Meyering  <jim@meyering.net>
70903
70904         * modules/userspec (lib_SOURCES): Add userspec.h.
70905         (Include): Add "userspec.h".
70906         Improve description.
70907
70908 2003-11-03  Jim Meyering  <jim@meyering.net>
70909
70910         * lib/userspec.c: Include "userspec.h".
70911         * lib/userspec.h: New file.
70912
70913 2003-11-03  Bruno Haible  <bruno@clisp.org>
70914
70915         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70916
70917 2003-11-03  Bruno Haible  <bruno@clisp.org>
70918
70919         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70920         available, to avoid (extremely rare) race condition.
70921         Suggested by Paul Eggert.
70922
70923 2003-11-02  Karl Berry  <karl@gnu.org>
70924
70925         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70926
70927 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70928
70929         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70930         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70931         (read_filesystem_list): Set and use me_type_malloced.
70932         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70933         whatever the type happens to be), for brevity and consistency.
70934         Check for size calculation overflow on Alphas running OSF/1.
70935
70936 2003-10-31  Jim Meyering  <jim@meyering.net>
70937
70938         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70939
70940         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70941
70942 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70943             Bruno Haible  <bruno@clisp.org>
70944
70945         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70946         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70947
70948 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70949
70950         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70951         netbsd*-gnu*.  Suggested by Robert Millan.
70952
70953 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70954
70955         * modules/group-member: Depend on stdbool.
70956
70957 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70958
70959         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70960
70961 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70962
70963         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70964         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70965         after the 'gnu' in these cases.  This fixes some bugs in the
70966         previous change, and is based on suggestions by Robert Millan.
70967
70968 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70969
70970         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70971         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70972         no longer needed.
70973         * lib/quotearg.c (quotearg_n_options): Use it.
70974         * lib/group-member.c: Include <stdbool.h>.
70975         (free_group_info): Arg is now const *; don't free arg.
70976         (get_group_info): Now returns bool and accepts struct group_info *,
70977         rather than returning a malloc'ed struct group_info *.
70978         All uses changed.  Check for overflow in internal size calculation.
70979
70980         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70981         rather than xmalloc/xrealloc.
70982         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70983         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70984         conformance bug: the old code used a pointer after freeing the
70985         storage that it addressed.
70986         * lib/hash.c (hash_initialize): Simplify the code by using
70987         xalloc_oversized rather than doing it by hand.
70988         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70989         the buffer preserved.  Use free and xmalloc instead.
70990         * lib/quotearg.c (quotearg_n_options): Likewise.
70991         Use a simpler test for size overflow.  Don't use xalloc_oversized
70992         because unsigned int might be wider than size_t (!); this suggests
70993         that we should switch from unsigned int to size_t for slot numbers.
70994
70995 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70996
70997         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70998         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70999         NetBSD kernels.  Requested by Richard Stallman.
71000
71001 2003-10-27  Paul Eggert  <eggert@twinsun.com>
71002
71003         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
71004         to allocate the returned structure.  Do not allocate a subarray,
71005         as x2nrealloc will do that.
71006         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
71007         instead of xnrealloc.
71008         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
71009
71010 2003-10-27  Bruno Haible  <bruno@clisp.org>
71011
71012         * lib/stdbool_.h: Better support for BeOS.
71013
71014 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71015
71016         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
71017         now uses inline.
71018
71019 2003-10-26  Paul Eggert  <eggert@twinsun.com>
71020
71021         * lib/xalloc.h (xalloc_oversized): New static inline function, for
71022         callers that want to do their own size-overflow checking.  Include
71023         <stdbool.h>, since xalloc_oversized returns bool.
71024         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
71025         to use xalloc_oversized.
71026
71027         Add two functions x2realloc, x2nrealloc, for programs that grow
71028         arrays dynamically by doubling their sizes.
71029         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
71030         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
71031         New functions.
71032
71033         Port to C99 semantics for 'inline' of external functions.
71034         Bug reported by Bruno Haible.
71035         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
71036         with the old contents of xnmalloc.
71037         (xnmalloc, xmalloc): Use it.
71038         (xnrealloc_inline): New static inline function,
71039         with the old contents of xnrealloc.
71040         (xnrealloc, xrealloc): Use it.
71041
71042         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
71043         that.
71044
71045 2003-10-26  Karl Berry  <karl@gnu.org>
71046
71047         * config/srclist.txt (COPYING.DOC): no longer available from
71048         /gd/gnuorg; don't know where the ultimate source is.
71049
71050 2003-10-25  Paul Eggert  <eggert@twinsun.com>
71051
71052         Fix several address-calculation bugs in the hash modules,
71053         plus some minor code cleanup.
71054
71055         * lib/hash.h: Include <stdbool.h>, for bool.
71056         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71057         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71058         hash_get_n_entries, hash_get_max_bucket_length,
71059         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71060         hash_rehash): Use size_t rather than unsigned.
71061         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71062         hash_get_n_buckets_used, hash_get_n_entries,
71063         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71064         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71065         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71066         Likewise.
71067         (SIZE_MAX): Define if not defined.
71068         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71069         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71070         hash_print):
71071         Use const * when possible.
71072         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71073         (check_tuning): Fix bug: if tuning parameters were very close to
71074         0 or 1, rounding errors could have caused subscript violations.
71075         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71076         (hash_initialize): Add 'fail:' label
71077         to free table and return NULL, and use it to simplify code.
71078         Use calloc rather than clearing the storage ourself.
71079         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71080         buffer size calculations.
71081         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71082         Include <stddef.h>, for size_t.
71083         * lib/hash-pjw.c (hash_pjw): Likewise.
71084         Switch to method described by Bruno Haible.
71085         Include <limits.h>, for CHAR_BIT.
71086         (SIZE_BITS): New macro.
71087
71088 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71089
71090         * m4/getline.m4 (AM_FUNC_GETLINE):
71091         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71092         hosts.  Problem reported by Derek Robert Price in
71093         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71094         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71095         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71096
71097 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71098
71099         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71100         ceiling the allocation at NMAX bytes rather than silently
71101         discarding input bytes before NMAX is reached.  This makes
71102         a difference only if NMAX exceeds SIZE_MAX / 2.
71103
71104         * lib/obstack.c: Merge from glibc.
71105         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71106         Add libc_hidden_def (_obstack_newchunk).
71107         (_obstack_free) [! defined _LIBC]: Remove.
71108         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71109         a clone of the function body.
71110         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71111         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71112
71113         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71114         glibc.
71115         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71116         arg to memcpy.
71117
71118         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71119         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71120         Don't use lvalue casts, as GCC plans to remove support for them
71121         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71122         was also present in the non-GCC version, indicating that this
71123         code had always been buggy and had never been widely used.
71124         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71125         Use the fast variant of each macro, rather than copying the
71126         definiens of the fast variant; that way, we'll be more likely to
71127         catch future bugs in the fast variants.
71128
71129 2003-10-20  Bruno Haible  <bruno@clisp.org>
71130
71131         * modules/wait-process: New file.
71132         * MODULES.html.sh (func_all_modules): Add wait-process.
71133
71134 2003-10-20  Bruno Haible  <bruno@clisp.org>
71135
71136         * m4/wait-process.m4: New file.
71137
71138 2003-10-20  Bruno Haible  <bruno@clisp.org>
71139
71140         * lib/wait-process.h: New file, from GNU gettext.
71141         * lib/wait-process.c: New file, from GNU gettext.
71142
71143 2003-10-19  Jim Meyering  <jim@meyering.net>
71144
71145         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71146         HPUX 10.20.
71147
71148 2003-10-18  Karl Berry  <karl@gnu.org>
71149
71150         * config/config.guess: update from config.
71151
71152 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71153
71154         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71155         (getgroups): First arg is int, not size_t.
71156         Don't let 'free' mangle errno.
71157
71158 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71159
71160         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71161
71162 2003-10-16  Karl Berry  <karl@gnu.org>
71163
71164         * config/config.{guess,sub}: update from config.
71165
71166 2003-10-16  Jim Meyering  <jim@meyering.net>
71167
71168         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71169         memcpy.
71170
71171 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71172
71173         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71174         (SIZE_MAX): Remove.
71175         (new_exclude, add_exclude_file): Initial size no longer needs to
71176         be a power of 2.
71177         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71178         our own address arithmetic overflow checking.
71179
71180         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71181         (fnmatch): Do not alloca more than 2000 wide characters;
71182         instead, use malloc for large buffers.
71183         Check for address arithmetic overflow, and return -1
71184         with errno set to ENOMEM in that case.
71185         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71186         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71187         instead, return -1.  Check for address arithmetic overflow.
71188
71189 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71190
71191         Handle invalid suffixes and overflow independently, so that
71192         callers can treat them independently as needed.  Fix some bugs in
71193         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71194         suffix for a human-readable blocksize.  The major caller-visible
71195         change is the addition of a new
71196         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71197         that both overflow and suffix chars were found.
71198
71199         * lib/human.c (humblock): Don't check separately for invalid suffix
71200         char; that is xstrtoumax's job (now that its bug is fixed).
71201         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71202         INTMAX_MAX]: New macros.
71203         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71204         TYPE_MAXIMUM): New macros.
71205         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71206         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71207         if overflow occurs, as it's what __strtol does and it's more useful
71208         in practice.
71209         (__xstrtol): If __strtol reports some error other than ERANGE,
71210         reflect it to the caller as LONGINT_INVALID.  If it reports
71211         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71212         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71213         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71214         value.
71215         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71216         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71217         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71218         [defined UINTMAX_MAX]: New macros.
71219
71220 2003-10-14  Bruno Haible  <bruno@clisp.org>
71221
71222         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71223
71224 2003-10-14  Bruno Haible  <bruno@clisp.org>
71225
71226         * m4/sig_atomic_t: New file, from GNU gettext.
71227         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71228
71229 2003-10-14  Bruno Haible  <bruno@clisp.org>
71230
71231         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71232         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71233         Also use volatile where needed.
71234
71235 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71236
71237         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71238         Change maintainer from Bruno Haible to 'all'.
71239
71240 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71241
71242         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71243
71244 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71245
71246         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71247         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71248         and define in terms of the other primitives.
71249         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71250         (SIZE_MAX): Define if not already defined.
71251         (array_size_overflow): New function.
71252         (xalloc_die): Abort instead of exiting if 'error' returns.
71253         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71254         (xmalloc, xrealloc): Use them.
71255         (xcalloc): Check for address arithmetic overflow.
71256         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71257         a bit faster than strcpy.
71258
71259 2003-10-10  Simon Josefsson  <jas@extundo.com>
71260
71261         * modules/argp (Depends-on): Add restrict and strcase.
71262
71263 2003-10-10  Simon Josefsson  <jas@extundo.com>
71264
71265         * m4/argp.m4: Add AC_C_INLINE.
71266
71267 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71268
71269         Merge getpass from libc, plus a few fixes.
71270
71271         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71272         Include <stdbool.h>.
71273         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71274         __fsetlocking to empty.
71275         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71276         do include <bits/libc-lock.h>.
71277         Do not include <fcntl.h>; not needed.
71278         [_LIBC]: Include <wchar.h>.
71279         (NOTCANCEL_MODE): New macro.
71280         (flockfile, funlockfile) [_LIBC]: New macros.
71281         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71282         [!_LIBC]: New macros.
71283         (call_fclose): New function.
71284         (getpass): Use it.  Save tty stream separately; this simplifies the
71285         code and makes it more reliable if stdin happens to equal stdout.
71286         Invoke __fsetlocking on tty.
71287         Handle thread cancellation if needed.
71288         Namespace cleanup (use __tcgetattr, __getline).
71289         Use bool for Booleans.
71290         [USE_IN_LIBIO]: Handle wide streams.
71291         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71292         stream might go where.
71293
71294         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71295         doesn't have to include <stdio.h> before us.
71296         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71297         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71298         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71299         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71300         if not declared, so that we can use getpass.c code from libc without
71301         rewriting it.
71302         (flockfile, ftrylockfile, funlockfile): New macros.
71303
71304 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71305
71306         * modules/getpass: Depend on stdbool.
71307
71308 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71309
71310         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71311
71312 2003-10-07  Karl Berry  <karl@gnu.org>
71313
71314         * config/config.{guess,sub}: update from config.
71315
71316 2003-10-06  Jim Meyering  <jim@meyering.net>
71317             Bruno Haible  <bruno@clisp.org>
71318
71319         This lets translators provide better translations for the
71320         "Written by ..." part of --version output.
71321         * lib/version-etc.h: Include stdarg.h.
71322         (version_etc_copyright): Declare as readonly.
71323         (version_etc): Make this function variadic with a NULL-terminated list
71324         of author name strings.
71325         (version_etc_va): New declaration.
71326         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71327         (version_etc_copyright): Declare as readonly.
71328         (version_etc_va): New function. Provide a different translatable string
71329         for each possible number of authors < 10. Abbreviate when there are 10
71330         authors or more.
71331         (version_etc): Make this function variadic. Call version_etc_va.
71332         Suggestion from Gary V. Vaughan.
71333
71334         * lib/long-options.h (parse_long_options): Change prototype: the
71335         authors string is moved to the end and becomes variadic.
71336         * lib/long-options.c: Include stdarg.h.
71337         (parse_long_options): Make this function variadic, too.
71338         Call version_etc_va, not version_etc.
71339
71340 2003-10-06  Bruno Haible  <bruno@clisp.org>
71341
71342         * modules/version-etc-2: Remove file.
71343         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71344
71345 2003-10-06  Bruno Haible  <bruno@clisp.org>
71346
71347         * modules/fatal-signal: New file.
71348         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71349
71350 2003-10-06  Bruno Haible  <bruno@clisp.org>
71351
71352         * m4/fatal-signal.m4: New file.
71353         * m4/signalblocking.m4: New file, from GNU gettext.
71354
71355 2003-10-06  Bruno Haible  <bruno@clisp.org>
71356
71357         * lib/version-etc-2.h: Remove file.
71358         * lib/version-etc-2.c: Remove file.
71359
71360 2003-10-06  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/fatal-signal.h: New file, from GNU gettext.
71363         * lib/fatal-signal.c: New file, from GNU gettext.
71364
71365 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71366
71367         * README: Rework advice for preventing empty .o files.
71368         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71369         not <sys/types.h>.
71370
71371 2003-10-04  Karl Berry  <karl@gnu.org>
71372
71373         * lib/argp*: update from libc.
71374
71375 2003-10-04  Karl Berry  <karl@gnu.org>
71376
71377         * config/config.{guess,sub}: update from config.
71378
71379 2003-10-02  Bruno Haible  <bruno@clisp.org>
71380
71381         * modules/lchown (Include): Add lchown.h.
71382         * modules/time_r (Include): Use "..." syntax.
71383         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71384
71385 2003-10-01  Simon Josefsson  <jas@extundo.com>
71386
71387         * MODULES.html.sh (func_all_modules): Move gethostname from section
71388         'based on' to section 'lacking' POSIX:2001.
71389
71390 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71391
71392         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71393         to output mode on the same stream.
71394
71395 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71396
71397         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71398         Fix arg typo in previous patch.
71399
71400 2003-09-28  Jim Meyering  <jim@meyering.net>
71401
71402         * lib/error.c: Correct cpp indentation.
71403
71404 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71405
71406         * modules/free: New file.
71407
71408 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71409
71410         * m4/free.m4: New file.
71411
71412 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71413
71414         * lib/minmax.h (MIN, MAX)
71415         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71416         Omit the special code that used __typeof__, since we worry that
71417         it could be more trouble than it's worth.  See:
71418         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71419         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71420
71421         * lib/free.c: New file.
71422
71423 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71424
71425         Trivial fixes to Makefile.am parts of module listings.
71426         * modules/strstr: Append strstr.h to lib_SOURCES.
71427         * modules/strcase: Likewise, for strcase.h.
71428
71429 2003-09-27  Karl Berry  <karl@gnu.org>
71430
71431         * config/mkinstalldirs: update from automake.
71432
71433 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71434
71435         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71436         (error_tail): Do not loop, reallocating temporary buffer, since
71437         the output cannot contain more wide characters than the input
71438         contains bytes, the size must be big enough already.  This avoids
71439         one potential size overflow calculation.  Check for size overflow
71440         when calculating temporary buffer size.  Free temporary buffer
71441         when done, if it was allocated with malloc; this plugs a memory
71442         leak.  Remove casts from void * to pointers, that are no longer
71443         needed now that we're assuming C89 or better.
71444
71445         Merge error changes from glibc.
71446
71447         * lib/error.c, error.h: Update copyright notice header to match glibc.
71448         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71449         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71450         Disable cancellation while printing error.
71451         * lib/error.h: Prepend __ to parameter names.
71452
71453 2003-09-26  Jim Meyering  <jim@meyering.net>
71454
71455         * lib/error.c (error_tail): Move some declarations
71456         into inner scope where the local variables are used.
71457
71458 2003-09-26  Bruno Haible  <bruno@clisp.org>
71459
71460         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71461         stpncpy().
71462         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71463
71464 2003-09-26  Bruno Haible  <bruno@clisp.org>
71465
71466         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71467         (stpncpy): Define as alias for gnu_stpncpy.
71468         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71469
71470 2003-09-25  Simon Josefsson  <jas@extundo.com>
71471
71472         * lib/xgetdomainname.h: New file.
71473         * lib/xgetdomainname.c: New file.
71474
71475 2003-09-25  Simon Josefsson  <jas@extundo.com>
71476             Bruno Haible  <bruno@clisp.org>
71477
71478         * modules/getdomainname: New file.
71479         * modules/xgetdomainname: New file.
71480         * MODULES.html.sh (func_all_modules): Add getdomainname,
71481         xgetdomainname.
71482
71483 2003-09-25  Simon Josefsson  <jas@extundo.com>
71484             Bruno Haible  <bruno@clisp.org>
71485
71486         * m4/getdomainname.m4: New file.
71487
71488 2003-09-25  Simon Josefsson  <jas@extundo.com>
71489             Bruno Haible  <bruno@clisp.org>
71490
71491         * lib/getdomainname.h: New file.
71492         * lib/getdomainname.c: New file.
71493
71494 2003-09-25  Karl Berry  <karl@gnu.org>
71495
71496         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71497
71498 2003-09-25  Karl Berry  <karl@gnu.org>
71499
71500         * config/install-sh: update from automake.
71501
71502 2003-09-25  Bruno Haible  <bruno@clisp.org>
71503
71504         * modules/version-etc-2: New file, from modules/version-etc with
71505         modifications.
71506         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71507
71508 2003-09-25  Bruno Haible  <bruno@clisp.org>
71509
71510         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71511         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71512
71513 2003-09-24  Simon Josefsson  <jas@extundo.com>
71514
71515         * modules/xgethostname: Add xgethostname.h.
71516
71517 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71518
71519         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71520         the buffer associated with the argument.  Bug reported by
71521         Simon Josefsson.
71522
71523 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71524
71525         * README: Document assumptions that 'int' is at least 32 bits
71526         wide, that integer arithmetic is 2's complement without overflow,
71527         that there are no holes in integer values, that adding sizes of
71528         two nonoverlapping objects can't overflow, and that all-bits-zero
71529         yields scalar zero.  Fix spelling and capitalization typos.
71530
71531 2003-09-19  Karl Berry  <karl@gnu.org>
71532
71533         * lib/argp.h: update from libc.
71534
71535 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71536
71537         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71538         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71539         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71540
71541 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71542
71543         * gnulib-tool: Use "test -h", not "test -L", for portability
71544         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71545         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71546         (sed_extract_prog): Issue s commands one-by-one, rather than
71547         using \| in one s command.
71548
71549 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71550
71551         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71552         input error, instead of returning NULL the next time we are called
71553         (and therefore losing track of errno).
71554
71555 2003-09-16  Bruno Haible  <bruno@clisp.org>
71556
71557         * gnulib-tool (func_create_testdir): Warn about duplicated
71558         dependencies.
71559
71560 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71561
71562         * modules/argmatch, modules/fatal, modules/obstack,
71563         modules/xalloc, modules/xgethostname: Sort dependencies by
71564         importance, not alphabetically.
71565
71566 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71567
71568         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71569         fails, so that the caller gets the proper errno.
71570
71571         * lib/readutmp.c (read_utmp): Likewise.
71572         Check for fstat error.  Close stream and free storage
71573         when failing.
71574
71575 2003-09-14  Karl Berry  <karl@gnu.org>
71576
71577         * config/srclist.txt (strdup.c): disable for c89 changes.
71578
71579 2003-09-14  Jim Meyering  <jim@meyering.net>
71580
71581         * lib/getloadavg.c: Correct cpp indentation.
71582         * lib/strdup.c: Likewise.
71583         * lib/vasnprintf.c: Likewise.
71584
71585 2003-09-14  Bruno Haible  <bruno@clisp.org>
71586
71587         * modules/fwriteerror: New file.
71588         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71589
71590 2003-09-14  Bruno Haible  <bruno@clisp.org>
71591
71592         * lib/fwriteerror.h: New file.
71593         * lib/fwriteerror.c: New file.
71594
71595 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71596
71597         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71598         modules/xgethostname, modules/xalloc: Depend on exit.
71599
71600 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71601
71602         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71603
71604         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71605         and AC_MINIX, too, so that their extensions are available.
71606
71607         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71608         This macro has been superseded by gl_BACKUPFILE.
71609
71610         More patches to assume C89 or better.
71611
71612         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71613
71614         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71615         unconditionally.
71616         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71617         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71618         Include <string.h>, <stdlib.h> unconditionally.
71619         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71620         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71621         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71622         headers or for string.h.
71623         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71624         or strtoul.
71625
71626         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71627         headers.
71628         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71629         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71630         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71631         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71632         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71633         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71634         memcpy, memset.
71635         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71636         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71637         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71638         strtol.
71639         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71640         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71641         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71642         strtoul.
71643
71644 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71645
71646         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71647         * lib/obstack.c [!defined _LIBC]: Likewise.
71648         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71649         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71650         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71651
71652         More changes to assume C89 or better.
71653
71654         * lib/error.c (error_tail): Assume vprintf.
71655
71656         * lib/argmatch.c (getenv): Remove decl.
71657         * lib/progreloc.c (get_full_program_name): Define via prototype.
71658         * lib/setenv.c (clearenv): Likewise.
71659         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71660         needed.
71661         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71662         (malloc, memcpy): Remove decls.
71663         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71664         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71665         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71666         (memcpy): Remove macro.
71667         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71668         (__P): Remove.  All uses removed.
71669         (PTR): Remove.  All uses changed to void *.
71670         (CHAR_BIT, NULL): Remove.
71671         (spaces, zeros, memset_space, memset_zero)
71672         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71673         Remove.
71674         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71675         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71676         Define with prototype.
71677         Remove now-unnecessary prototype decl.
71678         (extra_args_spec): Assume ANSI C.  All uses changed.
71679         (extra_args_spec_iso): Remove.
71680         (my_strftime, emacs_strftimeu): Define via prototype.
71681         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71682         unconditionally.
71683         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71684         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71685         (strtoul, strtol): Remove decls.
71686         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71687         LONG_MAX): Remove.
71688         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71689         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71690         (LOCALE_PARAM_PROTO): New macro.
71691         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71692         (INTERNAL (strtol), strtol): Define with a prototype.
71693         (PARAMS): Remove.  All uses removed.
71694         * lib/tempname.c: Include <string.h> unconditionally.
71695         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71696         * lib/xgethostname.c (main): Define with a prototype.
71697         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71698         Include <stdlib.h> unconditionally.
71699         (calloc, malloc, realloc, free): Remove decls.
71700         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71701         Include <stdlib.h> unconditionally.  Sort include file names.
71702         (strtod): Remove.
71703         (xstrtod): Define with a prototype.
71704         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71705         (strtol, strtoul): Remove decls.
71706
71707 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71708
71709         More patches to assume C89 or better.
71710         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71711         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71712         string.h, memchr, STDC_HEADERS.
71713
71714 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71715
71716         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71717         Include <stdlib.h>, <string.h> unconditionally.
71718         Remove now-unnecessary cast to char *.
71719         * lib/strnlen.c: Include <string.h> unconditionally.
71720         * lib/yesno.c (yesno): Define with a prototype.
71721
71722 2003-09-11  Bruno Haible  <bruno@clisp.org>
71723
71724         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71725
71726 2003-09-10  Jim Meyering  <jim@meyering.net>
71727
71728         * lib/error.c: Correct indentation of cpp directives.
71729
71730 2003-09-10  Bruno Haible  <bruno@clisp.org>
71731
71732         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71733         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71734         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71735         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71736         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71737         <stdlib.h> and <string.h> checks.
71738         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71739         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71740
71741 2003-09-10  Bruno Haible  <bruno@clisp.org>
71742
71743         * lib/strcspn.c: Include <string.h> unconditionally.
71744         * lib/strpbrk.c: Include <string.h> unconditionally.
71745         * lib/strstr.c: Include <string.h> unconditionally.
71746         * lib/unicodeio.c: Include <string.h> unconditionally.
71747         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71748         * lib/unsetenv.c: Likewise.
71749         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71750         * lib/yesno.c: Include <stdlib.h> unconditionally.
71751         (rpmatch): Add prototype.
71752
71753 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71754
71755         More patches to assume C89 or better.
71756         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71757         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71758         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71759         or for string.h.
71760         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71761         stdlib.h.
71762         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71763         C headers.
71764         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71765         string.h.
71766         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71767         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71768         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71769         or for string.h.
71770         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71771         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71772         C headers.
71773         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71774         memcpy.
71775         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71776         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71777         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71778         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71779         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71780         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71781         string.h, free.
71782         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71783         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71784         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71785         C headers, or for string.h.
71786         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71787         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71788         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71789         headers, memory.h, stdlib.h, string.h, strings.h.
71790         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71791         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71792         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71793         strchr.
71794         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71795         headers, memory.h, string.h.
71796         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71797         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71798         free.
71799         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71800         headers.
71801         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71802         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71803         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71804         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71805         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71806
71807 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71808
71809         More K&R removal.
71810
71811         * lib/acosl.c (main): Use a prototype.
71812         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71813         tanl.c: Likewise.
71814
71815         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71816
71817         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71818         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71819         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71820         with a prototype.
71821         * lib/getopt.c (const): Remove macro.
71822         Include <string.h> unconditionally.
71823         (my_index): Remove; all uses changed to strchr.
71824         (strlen): Remove decl.
71825         (exchange): Remove forward decl; no longer needed.
71826         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71827         Define with prototype.
71828         * lib/getopt1.c (const): Remove macro.
71829         (getopt_long, getopt_long_only, main): Define with prototype.
71830
71831         * lib/getugroups.c: Include <string.h> unconditionally.
71832
71833         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71834         (getusershell, setusershell, endusershell, readname, main):
71835         Define with prototypes.
71836
71837         * lib/group-member.c: Include group-member.h first.
71838         Include <stdlib.h> unconditionally.
71839
71840         * lib/hard-locale.c: Include hard-locale.h first.
71841         Include <stdlib.h>, <string.h> unconditionally.
71842
71843         * lib/hash.c (free, malloc): Remove decls.
71844         Include <stdlib.h> unconditionally.
71845
71846         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71847         (getenv): Do not declare.
71848
71849         * lib/idcache.c: Include <string.h> unconditionally.
71850
71851         * lib/long-options.c: Include long-options.h first, to test interface.
71852         Include <stdlib.h> unconditionally.
71853
71854         * lib/makepath.c: Include makepath.h first, to test interface.
71855         Include <stdlib.h> and <string.h> unconditionally.
71856
71857         * lib/linebuffer.c: Include <stdlib.h>.
71858         (free): Remove decl.
71859
71860         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71861         stddef.h. rpl_malloc returns void *, not char *.
71862         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71863         prototype.
71864
71865         * lib/md5.h: Include <limits.h> unconditionally.
71866         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71867         (__P): Remove; all uses removed.
71868         * lib/md5.c: Include "md5.h" first.
71869         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71870         md5_buffer, md5_process_bytes, md5_process_block):
71871         Define with prototypes.
71872         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71873         * lib/sha.c: Include "sha.h" first.
71874         Include <stdlib.h>, <string.h> unconditionally.
71875
71876         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71877         * lib/memcmp.c (__ptr_t): Likewise.
71878         * lib/memrchr.c (__ptr_t): Likewise.
71879         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71880         Include <string.h> unconditionally.
71881         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71882         * lib/memchr.c: Include <stdlib.h> unconditionally.
71883         * lib/memchr.c (LONG_MAX): Remove.
71884         * lib/memrchr.c (LONG_MAX): Likewise.
71885         * lib/memchr.c (__memchr): Define via a prototype.
71886         * lib/memrchr.c (__memrchr): Likewise.
71887         * lib/memcmp.c (__P): Remove, and remove all uses.
71888         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71889         Remove forward decls; no longer needed.
71890         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71891         Use types required by C89 in prototype.
71892
71893         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71894         * lib/savedir.c: Likewise.
71895         * lib/mkdir.c (free): Remove decl.
71896         * lib/rmdir.c (rmdir): Define with a prototype.
71897         * lib/savedir.c: Include savedir.h first, to test interface.
71898
71899         * lib/mktime.c (STDC_HEADERS): Remove.
71900         Include <stdlib.h>, <string.h> unconditionally.
71901
71902         * lib/modechange.c: Include <stdlib.h> unconditionally.
71903         (malloc): Remove decl.
71904
71905         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71906         (free): Remove decl.
71907
71908         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71909         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71910         (This type really should be intptr_t, but that's a C99ism.)
71911         (_obstack_memcpy): Remove: all uses changed to memcpy.
71912         Include <string.h> unconditionally.
71913         (struct obstack): Assume __STDC__ for types of members
71914         chunkfun, freefun, extra_arg.
71915         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71916         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71917         obstack_begin, obstack_specify_allocation,
71918         obstack_specify_allocation_with_arg, obstack_chunkfun,
71919         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71920         Remove unprototyped decls and the macros that use them.
71921         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71922         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71923         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71924         (defined __STDC__ && __STDC__)]:
71925         Remove nonprototyped code.
71926         Include <stdlib.h> unconditionally.
71927         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71928         _obstack_allocated_p, _obstack_free, obstack_free,
71929         _obstack_memory_used, print_and_abort):
71930         Define using prototypes.
71931         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71932         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71933         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71934         obstack_next_free, obstack_object_size, obstack_room) [0]:
71935         Remove unused, unprototyped code.
71936
71937         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71938
71939         * lib/physmem.c (physmem_total, physmem_available, main): Define
71940         with prototypes.
71941
71942         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71943         (main): Define with a prototype.
71944
71945         * lib/posixver.c (getenv): Remove decl.
71946
71947         * lib/putenv.c (malloc): Returns void *, not char *.
71948         Include <string.h> unconditionally.
71949         (strchr, memcpy, NULL): Do not define.
71950
71951         * lib/readtokens.c: Include readtokens.h first, to test interface.
71952         Include <stdlib.h>, <string.h> unconditionally.
71953         (init_tokenbuffer): Define with a prototype.
71954
71955         * lib/regex.c (PARAMS): Remove.  All uses removed.
71956         All uses of _RE_ARGS removed, too.
71957         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71958         unconditionally.
71959         (bzero): Assume memset exists.
71960         (memcmp, memcpy, NULL): Remove.
71961         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71962         char, or assignments to local vars of type signed char.
71963         (init_syntax_once, PREFIX(extract_number_and_incr),
71964         PREFIX(print_partial_compiled_pattern),
71965         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71966         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71967         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71968         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71969         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71970         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71971         wcs_compile_range, byte_compile_range, truncate_wchar,
71972         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71973         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71974         count_mbs_length, wcs_re_match_2_internal,
71975         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71976         PREFIX(alt_match_null_string_p),
71977         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71978         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71979         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71980         now-unnecessary declaration, if any.
71981         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71982         regcomp, regexec):
71983         Remove now-unnecessary casts among pointer types.
71984         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71985
71986         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71987         (free): Remove decl.
71988
71989         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71990
71991         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71992         (free): Remove decl.
71993
71994         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71995         * lib/xgetcwd.c: Likewise.
71996
71997         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71998         (free): Remove decl.
71999
72000         * lib/strchrnul.c (strchrnul): Define with a prototype.
72001         Fix bug: c_in was not converted to char before searching.
72002
72003         The following changes are not K&R related:
72004
72005         * lib/group-member.h: Include <sys/types.h>, so that this file is
72006         self-contained.
72007         * lib/makepath.h: Likewise.
72008
72009         * lib/getusershell.c (readname, default_index, line_size, readname):
72010         Use size_t, not int, for sizes.
72011         (readname): If the size overflows, report an error instead of
72012         looping forever.
72013
72014 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72015
72016         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
72017         libc.
72018
72019 2003-09-09  Paul Eggert  <eggert@twinsun.com>
72020
72021         * README: New section: portability guidelines.
72022
72023 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72024
72025         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
72026         C89 spec.
72027
72028 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
72029
72030         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
72031
72032 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72033
72034         Assume C89 or better; remove K&R cruft.
72035         A few of these changes were first proposed by Derek Robert Price
72036         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
72037
72038         * lib/addext.c: Include <string.h> unconditionally.
72039         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
72040         Don't declare getenv or malloc.
72041
72042         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
72043         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
72044         (NULL): Remove.
72045         (find_stack_direction, alloca): Use prototypes.
72046
72047         * lib/atexit.c (atexit): Define using a prototype.
72048
72049         * lib/basename.c, dirname.c, stripslash.c:
72050         Include <string.h> unconditionally.
72051
72052         * lib/bcopy.c: Include <stddef.h>.
72053         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72054
72055         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72056
72057         * lib/error.h (error, error_at_line, error_print_progname)
72058         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72059         * lib/error.c: Include error.h first, to check interface.
72060         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72061         (VA_START): Remove; all uses changeed to va_start.
72062         (exit, strerror): Remove decls.
72063         (error_print_progname): Prototype uncondionally.
72064         Don't include <errno.h>; no longer needed.
72065         (private_strerror): Remove.
72066         (error_tail): Always define.
72067         (error, error_at_line): Assume C89 or better; always use prototypes.
72068         * lib/fatal.c: Include "fatal.h" first, to test interface.
72069         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72070         (VA_START): Remove; all uses changed to va_start.
72071         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72072         this case.
72073         (exit): Remove decl.
72074         (fatal): Prototype unconditionally.  Assume va_start works.
72075         Abort at end, to pacify gcc.
72076
72077         * lib/euidaccess.c (main): Define with a prototype.
72078
72079         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72080
72081         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72082
72083         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72084         prototypes.
72085         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72086         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72087         (getenv): Remove decl.
72088         (fnmatch): Define using a prototype.
72089         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72090         (FCT): Define using a prototype.
72091
72092         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72093
72094         * lib/gethostname.c: Include <stddef.h>.
72095         (gethostname): Define with prototype.  Length is size_t, not int.
72096
72097 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72098
72099         Assume C89 or better; remove K&R cruft.
72100         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72101         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72102         string.h, getenv, malloc.
72103         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72104         headers.
72105         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72106         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72107         do not check for strerror.
72108         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72109         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72110         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72111         do not check for doprnt or vprintf.
72112         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72113         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72114
72115 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72116
72117         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72118         getversion.c should have been removed then, but was accidentally
72119         preserved.
72120
72121         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72122         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72123
72124 2003-09-08  Karl Berry  <karl@gnu.org>
72125
72126         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72127                 config, forget about prep.
72128
72129         * config/depcomp, missing: update from automake.
72130
72131 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72132
72133         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72134         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72135
72136 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72137
72138         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72139         copy_tm_result.  Bug reported by Simon Josefsson in
72140         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72141
72142 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72143
72144         * m4/time_r.m4: New file.
72145         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72146         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72147         is. Check for timegm declaration.
72148         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72149         Do not check for gmtime_r.
72150         Replace mktime if __mktime_internal does not exist and if mktime
72151         hasn't been replaced already.
72152
72153 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72154
72155         * lib/time_r.c, lib/time_r.h: New files.
72156
72157         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72158         __localtime_r.
72159         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72160         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72161
72162         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72163         __gmtime_r.
72164         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72165         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72166         Include <time_r.h>.
72167
72168         * lib/timegm.c: Switch to glibc implementation, with the following
72169         changes:
72170         [defined HAVE_CONFIG_H]: Include <config.h>.
72171         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72172         (__mktime_internal) [!defined _LIBC]: New decl.
72173         (__gmtime_r) [!defined _LIBC]: New macro and function.
72174         (timegm): Use a prototype, since gnulib assumes C89.
72175         Do not bother declaring tmp to be const, as it's not really usefu.
72176         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72177         (timegm): Declare only if HAVE_DECL_TIMEGM.
72178
72179 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72180
72181         * MODULES.html.sh (func_all_modules): Add time_r.
72182         * modules/time_r: New file.
72183         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72184         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72185
72186 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72187
72188         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72189         Bug reported by Lute Kamstra in
72190         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72191
72192         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72193         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72194         course with correspondingly smaller numbers for tomorrow and
72195         yesterday.  From Tadayoshi Funaba.  Originally installed into
72196         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72197         coreutils merge?).
72198
72199 2003-08-31  Simon Josefsson  <jas@extundo.com>
72200
72201         * modules/timegm: New file.
72202         * MODULES.html.sh (func_all_modules): Add timegm.
72203
72204 2003-08-31  Simon Josefsson  <jas@extundo.com>
72205
72206         * m4/timegm.m4: New file.
72207
72208 2003-08-31  Simon Josefsson  <jas@extundo.com>
72209
72210         * lib/timegm.h: New file.
72211         * lib/timegm.c: New file.  Based on
72212         wget-1.8.2/src/http.c:mktime_from_utc.
72213
72214 2003-08-31  Karl Berry  <karl@gnu.org>
72215
72216         * lib/argp.h: update from libc.
72217
72218 2003-08-28  Bruno Haible  <bruno@clisp.org>
72219
72220         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72221         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72222         followed by '#define fnmatch fnmatch_posix' gives an error.
72223
72224 2003-08-28  Bruno Haible  <bruno@clisp.org>
72225
72226         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72227         warning on QNX, which defines O_BINARY to 000000.
72228
72229 2003-08-27  Jim Meyering  <jim@meyering.net>
72230
72231         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72232         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72233         would fail after 32.  Reported by Danny Levinson.  Details here:
72234         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72235
72236 2003-08-24  Bruno Haible  <bruno@clisp.org>
72237
72238         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72239         MSVC7 <stdio.h> is included later.
72240
72241 2003-08-22  Simon Josefsson  <jas@extundo.com>
72242
72243         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72244
72245 2003-08-20  Karl Berry  <karl@gnu.org>
72246
72247         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72248
72249 2003-08-20  Bruno Haible  <bruno@clisp.org>
72250
72251         * modules/progname: New file.
72252         * MODULES.html.sh (func_all_modules): Add progname.
72253
72254 2003-08-20  Bruno Haible  <bruno@clisp.org>
72255
72256         * lib/progname.h: New file, from GNU gettext.
72257         * lib/progname.c: New file, from GNU gettext.
72258         * lib/progreloc.c: New file, from GNU gettext.
72259
72260 2003-08-19  Jim Meyering  <jim@meyering.net>
72261
72262         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72263         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72264
72265 2003-08-19  Bruno Haible  <bruno@clisp.org>
72266
72267         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72268         more.
72269
72270 2003-08-19  Bruno Haible  <bruno@clisp.org>
72271
72272         * lib/xstrdup.c: Assume <string.h> exists.
72273
72274 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72275
72276         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72277         in makefile rules.
72278
72279 2003-08-18  Jim Meyering  <jim@meyering.net>
72280
72281         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72282         * m4/lib-ld.m4: Likewise.
72283
72284 2003-08-18  Jim Meyering  <jim@meyering.net>
72285
72286         * lib/setenv.h: Indent nested cpp directive.
72287         * lib/vasnprintf.c: Remove trailing blanks.
72288
72289 2003-08-17  Simon Josefsson  <jas@extundo.com>
72290
72291         * modules/xstrndup: New file.
72292         * MODULES.html.sh (func_all_modules): Add xstrndup.
72293
72294 2003-08-17  Simon Josefsson  <jas@extundo.com>
72295
72296         * modules/argp: Fix autoconf macro name. Add more dependencies.
72297
72298 2003-08-17  Simon Josefsson  <jas@extundo.com>
72299
72300         * m4/xstrndup.m4: New file.
72301
72302 2003-08-17  Simon Josefsson  <jas@extundo.com>
72303
72304         * m4/argp.m4: New file.
72305
72306 2003-08-17  Simon Josefsson  <jas@extundo.com>
72307             Bruno Haible  <bruno@clisp.org>
72308
72309         * lib/xstrndup.h: New file.
72310         * lib/xstrndup.c: New file.
72311
72312 2003-08-17  Bruno Haible  <bruno@clisp.org>
72313
72314         * modules/strndup (Files, Include): Add lib/strndup.h.
72315
72316 2003-08-17  Bruno Haible  <bruno@clisp.org>
72317
72318         * modules/euidaccess (Files): Add lib/euidaccess.h.
72319
72320 2003-08-17  Bruno Haible  <bruno@clisp.org>
72321
72322         * lib/strndup.h: New file.
72323
72324 2003-08-17  Bruno Haible  <bruno@clisp.org>
72325
72326         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72327         like AC_GNU_SOURCE.
72328         * modules/extensions (configure.ac): Comment out the invocation of
72329         gl_USE_SYSTEM_EXTENSIONS.
72330
72331 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72332
72333         Merges from coreutils, etc.
72334         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72335         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72336         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72337         fixing a typo.
72338         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72339         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72340
72341 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72342
72343         Document merge from coreutils.
72344         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72345         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72346         * modules/utime: Add m4/utimes-null.m4.
72347
72348 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72349
72350         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72351         space, undoing this 2003-08-12 change:
72352         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72353
72354 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72355
72356         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72357         strtoul.c from libc, undoing this 2003-08-12 change:
72358         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72359
72360 2003-08-16  Jim Meyering  <jim@meyering.net>
72361
72362         Merges from coreutils.
72363         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72364         prefix.  Adjust cache variables similarly.  Create 500 rather than
72365         just 300 files, to exercise bug on Darwin6.5, too.
72366         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72367         $missing_dir.
72368         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72369         AM_SYS_POSIX_TERMIOS.
72370         Reported by mkc@mathdogs.com.
72371         Also change use of $am_cv_sys_posix_termios
72372         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72373         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72374         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72375         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72376         in /proc/mounts until it finds one with matching device number.  This
72377         is unnecessary when the FILE argument *is* a mount point.  No stat call
72378         is necessary in that case.  So, disable the statvfs-testing code on
72379         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72380         as RedHat bug# 84846.
72381         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72382         to 1MB, so as not to render systems with no stack size limit (e.g.,
72383         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72384         Include <unistd.h>.  On some systems,
72385         it is required for the definition of _SC_PAGESIZE.
72386
72387 2003-08-16  Jim Meyering  <jim@meyering.net>
72388
72389         Merge from coreutils.
72390         * lib/xstrtoimax.c: #else #if -> #elif.
72391         * lib/xstrtoumax.c: Likewise.
72392
72393 2003-08-16  Jim Meyering  <jim@meyering.net>
72394
72395         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72396         * m4/utimes.m4: Removed.
72397         * m4/utimes-null.m4: Renamed from utimes.m4.
72398
72399         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72400         to 1MB, so as not to render systems with no stack size limit (e.g.,
72401         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72402         Include <unistd.h>.  On some systems,
72403         it is required for the definition of _SC_PAGESIZE.
72404
72405 2003-08-16  Jim Meyering  <jim@meyering.net>
72406         and Paul Eggert  <eggert@cs.ucla.edu>
72407
72408         Merges from coreutils, etc.
72409
72410         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72411         using the latest version from cvs.  This avoids problems with #line
72412         directives using a vendor (Sun) compiler.
72413         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72414         Don't set GETGROUPS_LIB here; now it's
72415         done via getgroups.m4's wrapper function.
72416         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72417         rather than just in sh-util/configure.in, so that the
72418         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72419         same.
72420         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72421         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72422         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72423         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72424         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72425         Remove code that is now done by the newly-required macros.
72426         Append $(EXEEXT) to DF_PROG.
72427         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72428         Do not invoke or require the following here,
72429         since prereq.m4 or some gnulib .m4 now does this for us:
72430         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72431         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72432         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72433         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72434         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72435         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72436         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72437         AC_FUNC_OBSTACK.
72438         Do not replace the following functions, as this is now the job
72439         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72440         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72441         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72442         atexit getpass, strdup, getpagesize.
72443         Replace 'raise'.
72444         Do not check for the following functions, as this is now the job
72445         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72446         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72447         setregid.
72448         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72449         Check for sys/sysctl.h.
72450         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72451         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72452         of checking for ssize_t ourselves.
72453
72454         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72455         Require every macro that gnulib/modules/* suggests for us.
72456         (jm_PREREQ_ADDEXT): New macro.
72457         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72458         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72459
72460         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72461         (gl_PHYSMEM): Use it.
72462         Also check for `table' function.
72463         Check for new headers and functions.
72464         Add check for sys/sysmp.h.
72465         With suggestions from Kaveh Ghazi.
72466         Ignore headers that are present but cannot be compiled.  This
72467         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72468         C 5.4.
72469
72470 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72471
72472         Document merge from coreutils.
72473         * modules/userspec: Depend on posixver.
72474         * modules/strftime: Depend on tzset.
72475
72476 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72477
72478         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72479         rather than tab, after '#' in shell-script copyright notices.
72480         Suggested by Bruno Haible.
72481
72482 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72483
72484         * config/srclist-update: Use three spaces, rather than tab, after '#'
72485         in shell-script copyright notices.  Suggested by Bruno Haible.
72486         Remove unnecessary parenthesization in regular expression.
72487
72488 2003-08-15  Jim Meyering  <jim@meyering.net>
72489
72490         Merge from coreutils.
72491         * lib/xgethostname.c: Include <stdlib.h>.
72492         (xghostname): Don't exit for anything other than memory-related
72493         failure; just return NULL.
72494         * lib/userspec.c: Include "posixver.h".
72495         (parse_user_spec): Accept `.' as a separator only
72496         in pre-POSIX-200112 mode.
72497         * lib/strtoimax.c: Use #elif rather than #else #if.
72498         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72499         Remove function, now that we can rely on a working tzset function.
72500         [!_LIBC]: Ensure that the required autoconf test has been run.
72501         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72502         Use underlying_strftime for %r.
72503         * lib/sha.c: Merge in some clean-up and optimization changes from
72504         glibc.
72505         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72506         Ensure that it is a multiple of 64.
72507         Rearrange loop exit tests so as to avoid performing an
72508         additional fread after encountering an error or EOF.
72509         * lib/realloc.c: Update copyright date.
72510
72511 2003-08-15  Jim Meyering  <jim@meyering.net>
72512         and Paul Eggert  <eggert@twinsun.com>
72513
72514         Merge from coreutils.
72515         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72516         member but strut utmpx does not.  Needed for AIX 4.3.3.
72517         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72518
72519 2003-08-15  Jim Meyering  <jim@meyering.net>
72520         and Paul Eggert  <eggert@cs.ucla.edu>
72521
72522         Merges from coreutils, etc.
72523         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72524         Require gl_FUNC_TZSET_CLOBBER.
72525         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72526         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72527         members.
72528
72529 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72530
72531         Help the merge from coreutils.
72532         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72533         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72534         * m4/tzset.m4: Use it too.
72535
72536 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72537
72538         * modules/tzset: New file.
72539
72540 2003-08-14  Jim Meyering  <jim@meyering.net>
72541
72542         Merges from coreutils.
72543         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72544         variable names, rather than @FNMATCH_H@.
72545         * modules/alloca: Likewise for $(ALLOCA_H).
72546
72547         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72548         the three copies of the literal target, `fnmatch.h'.
72549         * modules/alloca (alloca.h): Likewise.
72550
72551 2003-08-14  Jim Meyering  <jim@meyering.net>
72552
72553         Merge from coreutils.
72554         * m4/tzset.m4: New file.
72555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72556         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72557         otherwise, AIX 5.1 systems would end up using the latter.
72558         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72559         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72560         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72561         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72562
72563 2003-08-14  Jim Meyering  <jim@meyering.net>
72564
72565         Merge from coreutils.
72566         * lib/obstack.h: Whitespace changes.
72567         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72568         and xcalloc return values.
72569         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72570         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72571         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72572         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72573         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72574         error from mntctl.
72575         Use mntctl's return value to drive the entry-processing loop, since
72576         we can't rely on the value of the vmt_length member in the last
72577         entry.  On some systems doing so could result in exhausting
72578         virtual memory.  Based in part on a patch from Mike Jetzer.
72579
72580 2003-08-14  Jim Meyering  <jim@meyering.net>
72581         and Paul Eggert  <eggert@twinsun.com>
72582
72583         Merges from coreutils, plus other fixes.
72584         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72585         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72586         for credits and details.  Thanks to Kaveh Ghazi for helping
72587         to keep these files in sync.
72588         (ARRAY_SIZE): Define it.
72589         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72590         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72591         (memcasecmp): Don't assume size_t fits in unsigned int.
72592         Remove casts and duplicate code.
72593         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72594         (memcpy): Remove definition.
72595         Merge in some clean-up and optimization changes from glibc.
72596         [BLOCKSIZE]: Move definition to top of file.
72597         Ensure that it is a multiple of 64.
72598         Rearrange loop exit tests so as to avoid performing an
72599         additional fread after encountering an error or EOF.
72600         * lib/md5.h (md5_uintptr): Define.
72601         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72602         return to the initial working directory.  Preserve errno
72603         for caller.
72604         * lib/idcache.c: Include "xalloc.h".
72605         (xmalloc, xrealloc): Remove decls.
72606         (getuser): Remove casts no longer required in C89.
72607         * lib/human.c: Include stdio.h, for sprintf.
72608         * lib/group-member.c: Include "xalloc.h".
72609         (xmalloc, xrealloc): Remove decls.
72610         (get_group_info): Remove casts no longer required in C89.
72611         * lib/getusershell.c (readname): Remove casts no longer required in
72612         C89.
72613         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72614         * lib/getline.c: Whitespace fix, from coreutils.
72615
72616 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72617
72618         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72619         Check for isascii.
72620
72621         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72622         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72623         Undo previous (whitespace-only) change.
72624
72625 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72626
72627         * lib/exclude.c: Include <ctype.h>
72628         (IN_CTYPE_DOMAIN): New macro.
72629         (is_space): New fn.
72630         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72631         and empty lines.
72632
72633         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72634         Undo previous (whitespace-only) change.
72635
72636 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72637
72638         * config/srclist-update: Change update back to the old behavior,
72639         leaving whitespace alone.  Use one 'sed' command rather than a
72640         pipeline.
72641         (fixlicense): Now a variable, not a function.
72642         (remove_trailing_blanks): Remove.
72643         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72644         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72645         Undo previous (whitespace-only) change.
72646
72647 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72648
72649         Merge from coreutils.
72650         * modules/euidaccess: Add lib_SOURCES, include for new
72651         file euidaccess.h
72652
72653 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72654
72655         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72656         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72657         Normalize leading white space and remove trailing white space.
72658
72659         Merge from coreutils
72660         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72661
72662         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72663         0.12.1.  These files are now being upgraded automatically by
72664         ../config/srclist-update.
72665
72666 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72667
72668         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72669         Normalize leading white space and remove trailing white space.
72670         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72671         notice, as per ../config/srclist-update.
72672
72673         Merge from coreutils.
72674         * lib/euidaccess.h: New file.
72675         * lib/euidaccess.c: Include it.
72676         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72677         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72678         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72679
72680 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72681
72682         * config/srclist-update: Add copyright notice.
72683         (remove_id_lines, remove_trailing_blanks): New constants.
72684         (fixfile): Use them to normalize spacing a bit in copied files.
72685         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72686         Normalize leading white space and remove trailing white space.
72687
72688         * config/texinfo.tex: Sync with texinfo.
72689
72690         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72691         strtoul.c from libc, to merge coreutils whitespace changes.
72692
72693         * config/srclist.txt: Get the following m4 files from gettext:
72694         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72695         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72696         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72697         wint_t.m4.
72698
72699 2003-08-12  Karl Berry  <karl@gnu.org>
72700
72701         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72702         been made.
72703
72704 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72705
72706         * modules/gnu-source, m4/gnu-source.m4:
72707         Remove; we're assuming Autoconf 2.54 or later now.
72708         Suggested by Bruno Haible.
72709         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72710
72711 2003-08-11  Bruno Haible  <bruno@clisp.org>
72712
72713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72714
72715 2003-08-11  Bruno Haible  <bruno@clisp.org>
72716
72717         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72718         (vasnprintf): Use it instead of wcslen.
72719
72720 2003-08-11  Bruno Haible  <bruno@clisp.org>
72721
72722         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72723         value to ensure that _Bool promotes to int. Use #define for _Bool when
72724         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72725
72726 2003-08-10  Karl Berry  <karl@gnu.org>
72727
72728         * lib/regex.h: update from libc (whitespace fix).
72729
72730 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72731
72732         Merge some files from coreutils.  These changes were
72733         originally made by Jim Meyering.
72734         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72735         many older Unixes require this.
72736         * lib/alloca.c (alloca): Remove cast to argument of free;
72737         no longer needed in C89.
72738         * lib/alloca_.h, regex.h: Fix white space to match
72739         what GNU indent does.
72740
72741 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72742
72743         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72744         apparently Emacs's Unicode mode got confused before my 2003-08-05
72745         checkin.
72746
72747 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72748
72749         * m4/extensions.m4: New file.
72750         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72751         Require gl_USE_SYSTEM_EXTENSIONS.
72752         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72753         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72754
72755 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72756
72757         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72758         * modules/extensions, modules/gnu-source: New files.
72759         * modules/timespec, modules/unlocked-io: Depend on extensions.
72760
72761 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72762
72763         * modules/restrict: New file.
72764         * MODULES.html.sh (func_all_modules): Add restrict.
72765         * modules/regex: Depend on restrict.
72766
72767 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72768
72769         * m4/restrict.m4: New file.
72770         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72771
72772 2003-08-07  Bruno Haible  <bruno@clisp.org>
72773
72774         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72775         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72776
72777 2003-08-07  Bruno Haible  <bruno@clisp.org>
72778
72779         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72780         makes the module 'getndelim2' compatible with the module 'getline'.
72781
72782 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72783
72784         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72785         byte with "\201" to avoid glitches when editing that source file
72786         with multi-gnome-terminal.
72787
72788 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72789
72790         * lib/bumpalloc.h: Remove.
72791
72792 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72793
72794         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72795         * modules/bumpalloc: Remove.
72796
72797 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72798
72799         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72800         GNU coding style.
72801
72802         Merge from coreutils.
72803         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72804         1. From glibc.
72805         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72806         from Karl Berry, implemented by Jim Meyering.
72807         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72808         from Dmitry V. Levin.
72809         Remove anachronistic cast of xrealloc.
72810         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72811         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72812         type. Otherwise, it wouldn't compile with at least /bin/cc on
72813         ymp-cray-unicos9.0.2.X.
72814         Combine two mostly-identical uses of alloca into one.
72815         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72816
72817 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72818
72819         [From Emacs.]
72820
72821         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72822         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72823         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72824         obsolete NLIST_NAME_UNION.
72825         [__GNU__]: Undef BSD and FSCALE.
72826         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72827
72828 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72829
72830         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72831         an enum type, so that it's guaranteed to promote to int.  See:
72832         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72833
72834 2003-08-03  Karl Berry  <karl@gnu.org>
72835
72836         * config/depcomp: update from automake.
72837
72838 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72839
72840         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72841         (strerror): Don't assume that a printable int fits in 14 bytes.
72842
72843 2003-07-31  Bruno Haible  <bruno@clisp.org>
72844
72845         * modules/getpass-gnu: New file.
72846         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72847
72848 2003-07-31  Bruno Haible  <bruno@clisp.org>
72849
72850         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72851
72852 2003-07-24  Karl Berry  <karl@gnu.org>
72853
72854         * config/missing: update from automake.
72855
72856 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72857             Bruno Haible  <bruno@clisp.org>
72858
72859         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72860         * lib/getline.c (getline, getdelim): Likewise.
72861         Remove _GNU_SOURCE define; now it's defined in config.h through
72862         m4/getline.m4.
72863
72864 2003-07-23  Karl Berry  <karl@gnu.org>
72865
72866         * config/config.sub: update from prep.
72867
72868 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72869
72870         * modules/xalloc (Depends-on): Add exitfail.
72871         * modules/xmemcoll: Likewise.
72872
72873 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72874
72875         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72876         over-parenthesization in macros.
72877
72878         Sync with coreutils.
72879
72880         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72881         required by C99.
72882
72883         Use `exit_failure' for xalloc and xmemcoll instead of their own
72884         private exit-failure variables.
72885         * lib/xalloc.h (xalloc_exit_failure): Remove.
72886         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72887         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72888         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72889         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72890         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72891
72892 2003-07-20  Jim Meyering  <jim@meyering.net>
72893
72894         * modules/closeout (Depends-on): Add exitfail.
72895         Suggestion from Bruno Haible.
72896
72897 2003-07-19  Karl Berry  <karl@gnu.org>
72898
72899         * config/config.sub: update from prep.
72900
72901 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72902
72903         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72904         Remove.
72905         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72906         to test that it can stand by itself.  Include "exitfail.h".
72907         Clients should set exit_failure instead.
72908         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72909
72910 2003-07-18  Bruno Haible  <bruno@clisp.org>
72911
72912         * modules/getndelim2: New file.
72913         * modules/getline: Share files with module getndelim2.
72914         * modules/getnline: Depend on getndelim2 instead of sharing files with
72915         it. Add getnline.c to lib_SOURCES.
72916         * MODULES.html.sh (func_all_modules): Add getndelim2.
72917
72918 2003-07-18  Bruno Haible  <bruno@clisp.org>
72919
72920         * m4/getndelim2.m4: New file.
72921         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72922         invoke gl_PREREQ_GETNDELIM2.
72923         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72924         gl_PREREQ_GETNDELIM2.
72925         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72926         gl_GETNDELIM2.
72927
72928 2003-07-18  Bruno Haible  <bruno@clisp.org>
72929
72930         * lib/getndelim2.h: New file.
72931         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72932         getndelim2.h.
72933         (getndelim2): Make non-static. Change return type to ssize_t.
72934         * lib/getline.h: Change argument names.
72935         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72936         * lib/getnline.c: Include getndelim2.h.
72937
72938 2003-07-18  Andreas Schwab  <schwab@suse.de>
72939
72940         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72941
72942 2003-07-17  Karl Berry  <karl@gnu.org>
72943
72944         * config/config.sub: update from prep.
72945
72946 2003-07-17  Bruno Haible  <bruno@clisp.org>
72947
72948         * modules/getnline: New file.
72949         * modules/getline: Add lib/getndelim2.c to source file list.
72950         * MODULES.html.sh (func_all_modules): Add getnline.
72951
72952 2003-07-17  Bruno Haible  <bruno@clisp.org>
72953
72954         * m4/getnline.m4: New file.
72955
72956 2003-07-17  Bruno Haible  <bruno@clisp.org>
72957
72958         * m4/Makefile.am.in: Remove file.
72959         * m4/Makefile.am: Remove file.
72960         * m4/Makefile.in: Remove file.
72961
72962 2003-07-17  Bruno Haible  <bruno@clisp.org>
72963
72964         * lib/getnline.h: New file.
72965         * lib/getnline.c: New file.
72966         * lib/getndelim2.c: New file, extracted from getline.c.
72967         (getndelim2): Renamed from getdelim2, with added nmax argument.
72968         * lib/getline.c: Include getndelim2.c.
72969         (getdelim2): Moved out to getndelim2.c.
72970         (getline, getdelim): Update.
72971
72972 2003-07-17  Bruno Haible  <bruno@clisp.org>
72973
72974         * lib/Makefile.am: Remove file.
72975         * lib/Makefile.in: Remove file.
72976
72977 2003-07-17  Bruno Haible  <bruno@clisp.org>
72978
72979         * configure.in: Remove file.
72980         * Makefile.in: Remove file.
72981
72982 2003-07-17  Bruno Haible  <bruno@clisp.org>
72983
72984         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72985
72986 2003-07-16  Karl Berry  <karl@gnu.org>
72987
72988         * config/srclist-update: was running fixlicense twice, which caused
72989                 texinfo.tex to be nullified for some reason.  Simplify,
72990                 $gplsrc is no longer needed as far as I can see?
72991
72992 2003-07-16  Jim Meyering  <jim@meyering.net>
72993
72994         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72995
72996 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72997
72998         * config/srclist.txt: Get the following files from gettext-runtime/intl
72999         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
73000         ref-del.sin.  From Bruno Haible.
73001         * config/srclist-update (fixfile): Change grep pattern again, since the
73002         previous fix didn't work (there was another trailing $).  Use
73003         '[$]' to escape the $s.
73004
73005 2003-07-15  Karl Berry  <karl@gnu.org>
73006
73007         * lib/vasnprintf.c: update from gettext.
73008
73009 2003-07-15  Karl Berry  <karl@gnu.org>
73010
73011         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
73012         gets expanded when surrounded by '$'.
73013
73014 2003-07-15  Jim Meyering  <jim@meyering.net>
73015
73016         * modules/save-cwd: Don't depend on error.  From Derek Price.
73017
73018 2003-07-15  Jim Meyering  <jim@meyering.net>
73019
73020         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
73021
73022 2003-07-14  Simon Josefsson  <jas@extundo.com>
73023
73024         * modules/mempcpy: New file.
73025         * MODULES.html.sh (func_all_modules): Add mempcpy.
73026
73027 2003-07-14  Simon Josefsson  <jas@extundo.com>
73028
73029         * m4/mempcpy.m4: New file.
73030
73031 2003-07-14  Simon Josefsson  <jas@extundo.com>
73032
73033         * lib/mempcpy.h: New file.
73034         * lib/mempcpy.c: New file.
73035
73036 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73037
73038         * modules/getdate, modules/posixtm: Depend on mktime.
73039
73040 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73041
73042         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
73043         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
73044         unicodeio.c, unicodeio.h, unlocked-io.h:
73045         Switch from LGPL to GPL.
73046
73047 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73048
73049         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
73050         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
73051         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
73052         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
73053         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73054         updated automatically by ../config/srclist-update.  This changes
73055         their license from LPGL to GPL.
73056
73057 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73058
73059         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73060         assumed to refer to the root of the most recent stable gettext version.
73061         * config/srclistvars.sh: Add defaults for eggert.
73062         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73063         Match "This program" as well as "The program".  This is needed
73064         for gettext.
73065
73066 2003-07-14  Jim Meyering  <jim@meyering.net>
73067
73068         Don't emit diagnostics.  Let callers do that.
73069         * lib/save-cwd.c: Don't include "error.h".
73070         (save_cwd): Don't call error.  Ensure that errno is valid
73071         when returning nonzero.
73072
73073         * lib/save-cwd.h (restore_cwd): Update prototype.
73074         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73075         Simplify.  Don't call error upon failure.  Let callers do that.
73076         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73077         when auditing is enabled.  But don't bother updating the #if.
73078
73079 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73080
73081         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73082         it breaks C++ compilation.
73083         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73084
73085 2003-07-10  Simon Josefsson  <jas@extundo.com>
73086
73087         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73088
73089 2003-07-10  Jim Meyering  <jim@meyering.net>
73090
73091         * m4/clock_time.m4: Remove trailing blank.
73092         * m4/intmax_t.m4: Likewise.
73093
73094 2003-07-10  Jim Meyering  <jim@meyering.net>
73095
73096         * lib/vasnprintf.c: Remove trailing blanks.
73097         Make cpp indentation consistent.
73098
73099 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73100
73101         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73102         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73103         Switch from LGPL to GPL.
73104
73105 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73106
73107         * config/srclist.txt: Sort sublists.  Add
73108         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73109         that differ from gnulib for one reason or another; we'd like this list
73110         to be smaller but for now let's document what we have.
73111
73112 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73113
73114         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73115         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73116         and sweeter "eval x=$x".
73117         * config/srclist.txt: Get lib/argp* from glibc.
73118
73119 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73120
73121         * lib/mktime.c: Fix some boundary cases and remove need for floating
73122         point.
73123
73124         Issue a compile-time diagnostic if time_t is floating point, or if
73125         two's complement arithmetic is not in effect, or if arithmetic
73126         right shift does not propagate the sign.  These assumptions were
73127         all in the original code but they weren't checked.
73128
73129         (TIME_T_MIDPOINT, verify): New macros.
73130         (__isleap): Remove; it has integer overflow problems.
73131         (leapyear): New function, without those problems.
73132         (ydhms_tm_diff): Remove; splitting into two parts.
73133         (ydhms_diff): New function, containing the arithmetic part of
73134         the old ydhms_tm_diff function.  Issue a compile-time
73135         diagnostic if we are not using C99 integer division.
73136         Avoid casts when possible.
73137         (guess_time_tm): New function, containing the checking part of
73138         the old ydhms_tm_diff function.  Return the new value, rather than
73139         the difference between it and the old.  Accept a new argument T
73140         so that *T specifies the old value.  Check for overflow in the result.
73141
73142         (__mktime_internal): Use a time_t offset, not a long int offset.
73143         This undoes the 2003-06-04 change, which is no longer needed now
73144         that we have better overflow checking.
73145         (localtime_offset): Likewise.
73146
73147         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73148         and long are 64-bit but int is only 32-bit.
73149         (ydhms_diff): Use long int to store year1 and yday1.
73150         Issue a compile-time diagnostic if long int is not wide enough.
73151
73152         (__mktime_internal): Use long int to store adjusted year and yday.
73153         Use plain C rather than preprocessor commands, if that doesn't
73154         affect efficiency.
73155         Check for overflow (and try to repair) after each probe
73156         rather than checking only at the very end.  This avoids some bugs
73157         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73158         does not equal GMT offset at maximum time).
73159         Use integer to check for overflow rather than floating point; this
73160         is more portable to non-IEEE hosts, and is a tad faster.
73161         When we detect that we are oscillating between two values,
73162         don't check whether tm_isdst has the requested value, since
73163         we already know the answer.  When tm_isdst has the wrong value,
73164         use a different heuristic to find the right one, based on the
73165         extreme values actually observed in practice in tz2003a,
73166         rather than the (overly optimistic) "previous 3 calendar quarters".
73167
73168         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73169         "T const" to accommodate glibc style.
73170         (check_result): Use less-confusing report format.  "long" -> "long int.
73171         (main): Likewise.
73172         Don't loop if the iteration overflows time_t.
73173         Allow a negative step in the iteration.
73174
73175 2003-07-06  Karl Berry  <karl@gnu.org>
73176
73177         * config/depcomp: update from automake.
73178         * config/config.sub: update from prep.
73179
73180 2003-07-03  Karl Berry  <karl@gnu.org>
73181
73182         * config/config.guess: update from prep.
73183
73184 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73185
73186         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73187         xreadlink.c now includes it unconditionally.
73188
73189 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73190
73191         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73192         having it depend on HAVE_SYS_TYPES_H.
73193
73194 2003-07-01  Bruno Haible  <bruno@clisp.org>
73195
73196         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73197         <sys/types.h> should be sufficient.
73198         Reported by Paul Eggert.
73199
73200 2003-06-26  Karl Berry  <karl@gnu.org>
73201
73202         * config/depcomp: update from automake.
73203
73204 2003-06-26  Bruno Haible  <bruno@clisp.org>
73205
73206         * modules/human: Depend on module stdbool.
73207
73208 2003-06-25  Bruno Haible  <bruno@clisp.org>
73209
73210         * modules/readlink: New file.
73211         * modules/xreadlink: Depend on it.
73212         * MODULES.html.sh (func_all_modules): Add readlink.
73213
73214 2003-06-25  Bruno Haible  <bruno@clisp.org>
73215
73216         * m4/readlink.m4: New file.
73217
73218 2003-06-25  Bruno Haible  <bruno@clisp.org>
73219
73220         * lib/readlink.c: New file.
73221
73222 2003-06-22  Karl Berry  <karl@gnu.org>
73223
73224         * config/srclist.txt: update mkinstalldirs from automake.
73225         * config/mkinstalldirs: update.
73226
73227 2003-06-22  Bruno Haible  <bruno@clisp.org>
73228
73229         Portability to mingw32.
73230         * m4/ssize_t.m4: New file, from GNU gettext.
73231         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73232         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73233
73234 2003-06-22  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/safe-read: Add m4/ssize_t.m4.
73237         * modules/xreadlink: Add m4/ssize_t.m4.
73238
73239 2003-06-20  Bruno Haible  <bruno@clisp.org>
73240
73241         Assume C89, so PARAMS isn't needed.
73242         * lib/unicodeio.h (PARAMS): Remove.
73243         * lib/unicodeio.c: Don't use PARAMS.
73244
73245 2003-06-18  Karl Berry  <karl@gnu.org>
73246
73247         * config/config.{guess,sub}: update from prep.
73248
73249 2003-06-18  Jim Meyering  <jim@meyering.net>
73250
73251         Merge changes from coreutils.
73252         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73253         Remove explicit declarations of xmalloc and realloc.
73254         Include xalloc.h.
73255         (read_utmp): Remove anachronistic cast of xmalloc.
73256
73257 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73258
73259         Assume C89, so PARAMS isn't needed.
73260         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73261         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73262         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73263         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73264         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73265         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73266         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73267         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73268         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73269         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73270         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73271         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73272         no longer needed. Anyway, config.h should always be included before any
73273         other file.
73274
73275 2003-06-11  Simon Josefsson  <jas@extundo.com>
73276
73277         * modules/sysexits: New file.
73278         * MODULES.html.sh (func_all_modules): Add sysexits.
73279
73280 2003-06-11  Simon Josefsson  <jas@extundo.com>
73281
73282         * lib/sysexit_.h: New file.
73283
73284 2003-06-11  Derek Price  <derek@ximbiot.com>
73285
73286         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73287         necessary.
73288
73289 2003-06-11  Bruno Haible  <bruno@clisp.org>
73290
73291         * m4/sysexits.m4: New file.
73292
73293 2003-06-10  Simon Josefsson  <jas@extundo.com>
73294
73295         * lib/argp.h: New file, from glibc.
73296         * lib/argp-ba.c: New file, from glibc.
73297         * lib/argp-eexst.c: New file, from glibc.
73298         * lib/argp-fmtstream.c: New file, from glibc.
73299         * lib/argp-fmtstream.h: New file, from glibc.
73300         * lib/argp-fs-xinl.c: New file, from glibc.
73301         * lib/argp-help.c: New file, from glibc.
73302         * lib/argp-namefrob.h: New file, from glibc.
73303         * lib/argp-parse.c: New file, from glibc.
73304         * lib/argp-pv.c: New file, from glibc.
73305         * lib/argp-pvh.c: New file, from glibc.
73306         * lib/argp-xinl.c: New file, from glibc.
73307
73308 2003-06-10  Simon Josefsson  <jas@extundo.com>
73309
73310         * modules/strchrnul: New file.
73311
73312 2003-06-10  Simon Josefsson  <jas@extundo.com>
73313
73314         * modules/argp: New file.
73315
73316 2003-06-10  Simon Josefsson  <jas@extundo.com>
73317
73318         * m4/strchrnul.m4: New file.
73319
73320 2003-06-10  Simon Josefsson  <jas@extundo.com>
73321
73322         * lib/strchrnul.h: New file.
73323         * lib/strchrnul.c: New file.
73324
73325 2003-06-10  Bruno Haible  <bruno@clisp.org>
73326
73327         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73328
73329 2003-06-07  Karl Berry  <karl@gnu.org>
73330
73331         * config/config.{guess,sub}: update from prep.
73332
73333 2003-06-07  Jim Meyering  <jim@meyering.net>
73334
73335         * modules/strtod: Use $(...) notation, not @...@ for
73336         AC_REPLACE'd variables.
73337         * modules/localcharset: Likewise.
73338
73339 2003-06-07  Jim Meyering  <jim@meyering.net>
73340
73341         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73342         in place of my name in the copyright comment.
73343         Remove definition and uses of __P.
73344
73345         From coreutils.
73346         * lib/stat.c: Don't declare xmalloc explicitly.
73347         Instead, include "xalloc.h".
73348         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73349         xrealloc, and xcalloc return values.
73350         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73351         Improve comment.
73352         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73353
73354 2003-06-07  Bruno Haible  <bruno@clisp.org>
73355
73356         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73357         avoid AC_CONFIG_LINKS.
73358         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73359         fnmatch.h, to avoid AC_CONFIG_LINKS.
73360         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73361
73362 2003-06-07  Bruno Haible  <bruno@clisp.org>
73363
73364         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73365         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73366         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73367         directory.
73368         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73369         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73370         directory.
73371
73372 2003-06-06  Jim Meyering  <jim@meyering.net>
73373
73374         Merge from coreutils.
73375         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73376         Consolidate declarations and initializations of *_base* locals.
73377
73378         Merge from coreutils.
73379         This avoids a core dump on systems without GNU putenv,
73380         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73381         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73382         (unsetenv): New static function, from GNU libc.
73383         (rpl_putenv): Use it.
73384
73385         * lib/modechange.c: Remove trailing blanks.
73386
73387         Merge from coreutils.
73388         * lib/fsusage.c: Remove declaration of statfs.
73389         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73390
73391         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73392
73393 2003-06-06  Jim Meyering  <jim@meyering.net>
73394
73395         * lib/stdbool_.h: Renamed from stdbool.h.in.
73396
73397 2003-06-06  Jim Meyering  <jim@meyering.net>
73398             Bruno Haible  <bruno@clisp.org>
73399
73400         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73401         Adjust Makefile.am snippet not to redirect directly to target.
73402         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73403
73404 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73405
73406         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73407         mismatch, look in future quarters as well as past.  This fixes a
73408         bug when processing fall-backwards gaps immediately after a long
73409         period of daylight-saving time.
73410
73411         * lib/mktime.c: Assume freestanding C89 or better.
73412         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73413         (__P): Remove; not used.
73414         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73415         (mktime, not_equal_tm, print_tm, check_result,
73416         main): Use prototypes.  Use const * where appropriate.
73417         (main): Fix typo in testing code that uncovered by above changes.
73418         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73419
73420 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73421
73422         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73423         locale.h, localeconv.  This merges changes from coreutils.
73424
73425         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73426         It can be removed after the next Autoconf is released.
73427         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73428         needed.
73429
73430 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73431
73432         * lib/mktime.c: Fix Debian bug 177940
73433         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73434         (localtime_offset): Now long int, not time_t, because we want it
73435         to be guaranteed to be signed.  All uses changed.
73436         (__mktime_internal): If overflow would occur when adding offset,
73437         don't add it.
73438
73439         Merge 'human' changes from coreutils.  Rewrite to support
73440         locale-specific notations like thousands separators.
73441         * lib/human.c: Simplify authorship notice.
73442         Include human.h immediately after config.h.
73443         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73444         <limits.h>: Do not include, since human.h does.
73445         (SIZE_MAX, UINTMAX_MAX): New macros.
73446         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73447         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73448         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73449         (power_letter): Renamed from suffixes.
73450         (generate_suffix_backwards): Remove.
73451         (adjust_value): Now takes int style (because of human.h changes)
73452         and long double value (for greater precision on some platforms).
73453         (group_number): New function.
73454         (human_readable): Use it.  Use integer options, not enum.
73455         Put the options before the sizes in the arg list.
73456         Support all the new options.
73457         The old human_readable function has been removed;
73458         use inttostr.h instead.
73459         (human_readable, default_block_size, humblock):
73460         Use uintmax_t, not int, for block sizes.
73461         (human_readable_inexact, block_size_types): Remove.
73462         (block_size_opts): New constant.
73463         (human_options): Renamed from human_block_size, with new signature
73464         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73465         * lib/human.h: Add copyright and authorship notice.
73466         Include <limits.h> and <stdbool.h> unconditionally.
73467         (PARAMS): Remove.  All uses removed.
73468         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73469         (enum human_inexact_style): Remove tag; now a nameless enum.
73470         (human_floor, human_ceiling, human_round_to_even): Now have
73471         values 2, 0, 1 rather than -1, 1, 0.
73472         (human_group_digits, human_suppress_point_zero, human_autoscale,
73473         human_base_1024, human_SI, human_B): New constants.
73474         (human_readable_inexact, human_block_size): Remove.
73475         (human_readable): Size args are now uintmax_t, not int.
73476         (human_options): New decl.
73477
73478         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73479         unnecessary now that we assume C89 or better.  This change
73480         imported from coreutils.
73481
73482         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73483         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73484         in the 2003-05-30 sync from glibc.
73485
73486         .h files should stand alone, but we shouldn't include <sys/types.h>
73487         if we can get away with just <stddef.h>.
73488
73489         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73490         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73491         rather than <sys/types.h>, as we merely need size_t.
73492         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73493         to get size_t.
73494         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73495         Include <stdio.h>, to get FILE.
73496         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73497         memcasecmp.h has included <stddef.h> and all we need is size_t.
73498         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73499         our interface, instead of including <sys/types.h>
73500
73501 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73502
73503         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73504         now, as glibc mktime is buggy on non-glibc systems.
73505
73506 2003-06-03  Karl Berry  <karl@gnu.org>
73507
73508         * config/config.sub: update from prep.
73509
73510 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73511
73512         [from coreutils]
73513         Fix some minor time-related bugs with POSIX time arguments.
73514         Some valid time stamps were being rejected (notably -1, and
73515         time stamps before 1900 on 64-bit hosts).  And some invalid
73516         time stamps were being accepted, e.g. September 31.
73517
73518         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73519         that we can return (time_t) -1 successfully.
73520         * lib/posixtm.c: Likewise.
73521         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73522         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73523         (t): Remove static var.
73524         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73525         of static var.  All uses changed.
73526         (year): Do not reject years before 1900; they can occur with
73527         64-bit time_t.
73528         (posix_time_parse): Do not check for out-of-range components;
73529         that is now the caller's responsibility, since our checks were
73530         only approximations.
73531         (posixtime): Use mktime to check for out-of-range components,
73532         since it knows them exactly.
73533         If mktime returns (time_t) -1, check whether an error actually occurred
73534         by invoking localtime on -1.
73535         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73536         posixtime failures better.
73537         Improve the test data (in comments only).
73538
73539 2003-06-02  Karl Berry  <karl@gnu.org>
73540
73541         * config/mkinstalldirs (version): new variable.
73542         (--version): new option.
73543         (usage): improve message.
73544
73545 2003-05-30  Karl Berry  <karl@gnu.org>
73546
73547         * lib/mktime.c: update from libc.
73548
73549 2003-05-30  Bruno Haible  <bruno@clisp.org>
73550
73551         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73552         * config/config.rpath: Upgrade to gettext-0.12.1.
73553
73554 2003-05-30  Bruno Haible  <bruno@clisp.org>
73555
73556         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73557         * m4/nls.m4: New file, from gettext-0.12.1.
73558         * m4/po.m4: New file, from gettext-0.12.1.
73559         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73560
73561 2003-05-30  Bruno Haible  <bruno@clisp.org>
73562
73563         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73564         * lib/localcharset.h: Likewise.
73565         * lib/localcharset.c: Likewise.
73566
73567 2003-05-29  Karl Berry  <karl@gnu.org>
73568
73569         * config/config.rpath: update from gettext.
73570
73571 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73572
73573         Assume the headers required for C89 freestanding compilers.
73574         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73575         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73576         * m4/human.m4 (gl_HUMAN): Likewise.
73577         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73578         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73579         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73580         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73581         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73582         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73583
73584 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73585
73586         Assume the headers required for C89 freestanding compilers.
73587         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73588         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73589         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73590         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73591         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73592         define, since <limits.h> is guaranteed to do that.
73593         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73594         * lib/exclude.c: Include <stdbool.h> unconditionally.
73595         * lib/tempname.c: Include <stddef.h> unconditionally.
73596         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73597         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73598         <stddef.h> does that.
73599         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73600         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73601         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73602         needed.
73603         * lib/xstrtol.c: Likewise.
73604         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73605         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73606
73607         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73608         warnings on some platforms.
73609
73610         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73611         arbitrarily.
73612
73613 2003-05-26  Jim Meyering  <jim@meyering.net>
73614
73615         Merge in a change from coreutils:
73616         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73617         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73618         that condition, rather than `-1' which is slightly misleading.
73619         Change the name of the cache variable to have the gl_ prefix.
73620         Prompted by a patch from Richard Dawe for DJGPP.
73621
73622 2003-05-24  Karl Berry  <karl@gnu.org>
73623
73624         * config/config.guess: update from prep.
73625
73626 2003-05-22  Karl Berry  <karl@gnu.org>
73627
73628         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73629
73630 2003-05-20  Karl Berry  <karl@gnu.org>
73631
73632         * config/config.guess: update from prep.
73633
73634 2003-05-18  Karl Berry  <karl@gnu.org>
73635
73636         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73637         might actually be set by the user.
73638
73639         * config/depcomp, install-sh, mdate-sh: update from automake.
73640
73641 2003-05-17  Bruno Haible  <bruno@clisp.org>
73642
73643         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73644         invalid expansion for AC_EGREP_CPP.
73645         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73646         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73647         Suggested by Akim Demaille <akim@epita.fr> in
73648         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73649
73650 2003-05-12  Jim Meyering  <jim@meyering.net>
73651
73652         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73653         the space-padded-by-default conversion specifiers, %e, %k, %l.
73654
73655 2003-05-12  Bruno Haible  <bruno@clisp.org>
73656
73657         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73658         the string is longer than 4 KB.
73659
73660 2003-05-11  Karl Berry  <karl@gnu.org>
73661
73662         * config/config.{guess,sub}: update from prep.
73663
73664 2003-05-09  Bruno Haible  <bruno@clisp.org>
73665
73666         * modules/error: Add m4/strerror_r.m4 to file list.
73667
73668 2003-05-03  Bruno Haible  <bruno@clisp.org>
73669
73670         Upgrade to Unicode-4.0.
73671         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73672         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73673         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73674         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73675         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73676         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73677         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73678         Change width of U+E0100..U+E01EF from 1 to 0.
73679
73680 2003-04-25  Jim Meyering  <jim@meyering.net>
73681
73682         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73683         of type size_t, not int.
73684
73685 2003-04-25  Bruno Haible  <bruno@clisp.org>
73686
73687         * lib/copy-file.c: Include <stddef.h>, for size_t.
73688
73689 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73690
73691         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73692         code which expansion is under static control.  Patch imported from
73693         Akim Demaille's patch to Bison; see
73694         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73695
73696 2003-04-14  Bruno Haible  <bruno@clisp.org>
73697
73698         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73699
73700 2003-04-11  Jim Meyering  <jim@meyering.net>
73701
73702         Merge changes from Coreutils.
73703
73704         2003-03-22  Jim Meyering  <jim@meyering.net>
73705
73706         * lib/strftime.c (widen): Cast alloca return value to proper type.
73707
73708         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73709
73710         From GNU libc.
73711         * lib/strftime.c (my_strftime): Handle very large width
73712         specifications for numeric values correctly.  Improve checks for
73713         overflow.
73714
73715         2003-01-19  Jim Meyering  <jim@meyering.net>
73716
73717         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73718         definitions.
73719         (nl_get_alt_digit) [! defined my_strftime]: Define.
73720         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73721         _nl_get_alt_digit and _nl_get_walt_digit.
73722
73723         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73724         libc. These changes have no effect outside of _LIBC.
73725
73726 2003-04-10  Bruno Haible  <bruno@clisp.org>
73727
73728         * modules/findprog: New file.
73729         * MODULES.html.sh (func_all_modules): Add it.
73730
73731 2003-04-10  Bruno Haible  <bruno@clisp.org>
73732
73733         * m4/findprog.m4: New file.
73734         * m4/eaccess.m4: New file.
73735
73736 2003-04-10  Bruno Haible  <bruno@clisp.org>
73737
73738         * lib/findprog.h: New file, from GNU gettext.
73739         * lib/findprog.c: New file, from GNU gettext.
73740
73741 2003-04-05  Jim Meyering  <jim@meyering.net>
73742
73743         Merge changes from Coreutils.
73744
73745         * lib/exclude.h (PARAMS): Remove definition and uses.
73746         * lib/exclude.c: Remove uses of `PARAMS'.
73747
73748         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73749         Add test-cases for DOS filenames. Declare program_name.
73750         (main): Set up program_name.  Patch by Rich Dawe.
73751
73752         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73753         error from mntctl.
73754         Use mntctl's return value to drive the entry-processing loop, since
73755         we can't rely on the value of the vmt_length member in the last
73756         entry.  On some systems doing so could result in exhausting
73757         virtual memory.  Based in part on a patch from Mike Jetzer.
73758
73759 2003-04-04  Bruno Haible  <bruno@clisp.org>
73760
73761         * modules/linebreak: New file.
73762         * MODULES.html.sh (func_all_modules): Add it.
73763
73764 2003-04-04  Bruno Haible  <bruno@clisp.org>
73765
73766         * m4/linebreak.m4: New file.
73767
73768 2003-04-04  Bruno Haible  <bruno@clisp.org>
73769
73770         * lib/linebreak.h: New file, from GNU gettext.
73771         * lib/linebreak.c: New file, from GNU gettext with slight
73772         modifications.
73773         * lib/lbrkprop.h: New file, from GNU gettext.
73774
73775 2003-04-03  Bruno Haible  <bruno@clisp.org>
73776
73777         * modules/utf8-ucs4: New file.
73778         * modules/utf16-ucs4: New file.
73779         * modules/ucs4-utf8: New file.
73780         * modules/ucs4-utf16: New file.
73781         * MODULES.html.sh (func_all_modules): Add them.
73782
73783 2003-04-03  Bruno Haible  <bruno@clisp.org>
73784
73785         * m4/utf-ucs4.m4: New file.
73786         * m4/ucs4-utf.m4: New file.
73787
73788 2003-04-03  Bruno Haible  <bruno@clisp.org>
73789
73790         * lib/utf8-ucs4.h: New file, from GNU gettext.
73791         * lib/utf16-ucs4.h: New file, from GNU gettext.
73792         * lib/ucs4-utf8.h: New file, from GNU gettext.
73793         * lib/ucs4-utf16.h: New file, from GNU gettext.
73794
73795 2003-04-02  Bruno Haible  <bruno@clisp.org>
73796
73797         * modules/binary-io: New file.
73798         * MODULES.html.sh (func_all_modules): Add it.
73799
73800 2003-04-02  Bruno Haible  <bruno@clisp.org>
73801
73802         * lib/binary-io.h: New file, from GNU gettext.
73803
73804 2003-04-01  Bruno Haible  <bruno@clisp.org>
73805
73806         * modules/pathname: New file.
73807         * MODULES.html.sh (func_all_modules): Add it.
73808
73809 2003-04-01  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/pathname.h: New file, from GNU gettext.
73812         * lib/concatpath.c: New file, from GNU gettext.
73813
73814 2003-03-30  Bruno Haible  <bruno@clisp.org>
73815
73816         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73817
73818 2003-03-30  Bruno Haible  <bruno@clisp.org>
73819
73820         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73821         function chown() doesn't exist.
73822
73823 2003-03-28  Bruno Haible  <bruno@clisp.org>
73824
73825         * modules/copy-file: New file.
73826         * MODULES.html.sh (func_all_modules): Add it.
73827
73828 2003-03-28  Bruno Haible  <bruno@clisp.org>
73829
73830         * m4/copy-file.m4: New file.
73831
73832 2003-03-28  Bruno Haible  <bruno@clisp.org>
73833
73834         * lib/copy-file.h: New file, from GNU gettext.
73835         * lib/copy-file.c: New file, from GNU gettext.
73836
73837 2003-03-18  Jim Meyering  <jim@meyering.net>
73838
73839         * lib/quote.c (quote_n): Fix typo in comment.
73840
73841 2003-03-18  Bruno Haible  <bruno@clisp.org>
73842
73843         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73844         checking.
73845         * m4/onceonly_2_57.m4: Likewise.
73846
73847 2003-03-17  Bruno Haible  <bruno@clisp.org>
73848
73849         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73850         (m4_quote): Remove macro.
73851         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73852
73853 2003-03-14  Jim Meyering  <jim@meyering.net>
73854
73855         Merge changes from Coreutils.
73856         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73857         to be const, in order to avoid warnings.
73858         (obstack_room): Likewise.
73859         (obstack_empty_p): Likewise.
73860
73861 2003-03-14  Bruno Haible  <bruno@clisp.org>
73862
73863         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73864         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73865
73866 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73867
73868         Merge changes from Bison.
73869         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73870         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73871         when compiling Bison 1.875's `bitset bset = obstack_alloc
73872         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73873         * lib/hash.c: Include <stdbool.h> unconditionally.
73874
73875 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73876
73877         * m4/onceonly.m4 (m4_quote): New macro.
73878         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73879         Quote AC_FOREACH variable-expansions properly.
73880
73881 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73882
73883         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73884
73885 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73886
73887         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73888         Reported by Bruce Becker; see:
73889         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73890
73891 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73892             Bruno Haible  <bruno@clisp.org>
73893
73894         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73895         Reported by John Hughes, see
73896         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73897
73898 2003-02-20  Bruno Haible  <bruno@clisp.org>
73899
73900         * MODULES.html.sh (func_all_modules): Add poll.
73901
73902 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73903
73904         * modules/poll: New file.
73905
73906 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73907
73908         * lib/poll_.h: New file.
73909         * lib/poll.c: New file.
73910
73911 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73912
73913         * m4/poll.m4: New file.
73914
73915 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73916
73917         * modules/mathl: New file.
73918
73919 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73920
73921         * lib/mathl.h: New file.
73922         * lib/acosl.c: New file.
73923         * lib/asinl.c: New file.
73924         * lib/atanl.c: New file.
73925         * lib/ceill.c: New file.
73926         * lib/cosl.c: New file.
73927         * lib/expl.c: New file.
73928         * lib/floorl.c: New file.
73929         * lib/frexpl.c: New file.
73930         * lib/ldexpl.c: New file.
73931         * lib/logl.c: New file.
73932         * lib/sincosl.c: New file.
73933         * lib/sinl.c: New file.
73934         * lib/sqrtl.c: New file.
73935         * lib/tanl.c: New file.
73936         * lib/trigl.c: New file.
73937         * lib/trigl.h: New file.
73938
73939 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73940
73941         * m4/mathl.m4: New file.
73942
73943 2003-02-18  Bruno Haible  <bruno@clisp.org>
73944
73945         * MODULES.html.sh (func_all_modules): Add mathl.
73946
73947 2003-02-17  Bruno Haible  <bruno@clisp.org>
73948
73949         * modules/mkdtemp: New module.
73950         * MODULES.html.sh (func_all_modules): Add it.
73951
73952 2003-02-17  Bruno Haible  <bruno@clisp.org>
73953
73954         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73955
73956 2003-02-17  Bruno Haible  <bruno@clisp.org>
73957
73958         * lib/mkdtemp.h: New file, from GNU gettext.
73959         * lib/mkdtemp.c: New file, from GNU gettext.
73960
73961 2003-02-02  Jim Meyering  <jim@meyering.net>
73962
73963         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73964         e.g. glibc-2.2.93.
73965
73966 2003-01-31  Bruno Haible  <bruno@clisp.org>
73967
73968         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73969         'rpl_rename'.
73970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73971         'rpl_strnlen'.
73972         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73973         'rpl_strtod'.
73974         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73975         'rpl_utime'.
73976
73977 2003-01-31  Bruno Haible  <bruno@clisp.org>
73978
73979         * lib/rename.c: #undef rename before defining rpl_rename.
73980         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73981
73982 2003-01-30  Bruno Haible  <bruno@clisp.org>
73983
73984         * modules/vasnprintf, modules/vasprintf: New modules.
73985         * MODULES.html.sh (func_all_modules): Add them.
73986
73987 2003-01-30  Bruno Haible  <bruno@clisp.org>
73988
73989         * m4/signed.m4: New file, from GNU gettext.
73990         * m4/longdouble.m4: New file, from GNU gettext.
73991         * m4/wchar_t.m4: New file, from GNU gettext.
73992         * m4/wint_t.m4: New file, from GNU gettext.
73993         * m4/vasnprintf.m4: New file.
73994         * m4/vasprintf.m4: New file.
73995
73996 2003-01-30  Bruno Haible  <bruno@clisp.org>
73997
73998         * lib/printf-args.h: New file, from GNU gettext.
73999         * lib/printf-args.c: New file, from GNU gettext.
74000         * lib/printf-parse.h: New file, from GNU gettext.
74001         * lib/printf-parse.c: New file, from GNU gettext.
74002         * lib/vasnprintf.h: New file, from GNU gettext.
74003         * lib/vasnprintf.c: New file, from GNU gettext.
74004         * lib/asnprintf.c: New file, from GNU gettext.
74005         * lib/vasprintf.h: New file, from GNU gettext with modifications.
74006         * lib/vasprintf.c: New file, from GNU gettext.
74007         * lib/asprintf.c: New file, from GNU gettext.
74008
74009 2003-01-29  Bruno Haible  <bruno@clisp.org>
74010
74011         * modules/stpncpy: New module.
74012         * MODULES.html.sh (func_all_modules): Add it.
74013
74014 2003-01-29  Bruno Haible  <bruno@clisp.org>
74015
74016         * m4/stpncpy.m4: New file.
74017
74018 2003-01-29  Bruno Haible  <bruno@clisp.org>
74019
74020         * lib/stpncpy.h: New file, from GNU gettext with modifications.
74021         * lib/stpncpy.c: New file, from GNU gettext with modifications.
74022
74023 2003-01-28  Bruno Haible  <bruno@clisp.org>
74024
74025         * modules/c-ctype: New module.
74026         * MODULES.html.sh (func_all_modules): Add it.
74027
74028 2003-01-28  Bruno Haible  <bruno@clisp.org>
74029
74030         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
74031         Paul Eggert.
74032         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
74033         Paul Eggert.
74034
74035 2003-01-27  Bruno Haible  <bruno@clisp.org>
74036
74037         * modules/xsetenv: New module.
74038         * MODULES.html.sh (func_all_modules): Add it.
74039
74040 2003-01-27  Bruno Haible  <bruno@clisp.org>
74041
74042         * lib/xsetenv.h: New file, from GNU gettext.
74043         * lib/xsetenv.c: New file, from GNU gettext.
74044
74045 2003-01-23  Jim Meyering  <jim@meyering.net>
74046
74047         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
74048         from working on systems without dirfd (at least Irix and OSF1/Tru64).
74049
74050 2003-01-23  Bruno Haible  <bruno@clisp.org>
74051
74052         * modules/minmax: New module.
74053         * MODULES.html.sh (func_all_modules): Add it.
74054
74055 2003-01-23  Bruno Haible  <bruno@clisp.org>
74056
74057         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74058         Eggert.
74059
74060 2003-01-22  Bruno Haible  <bruno@clisp.org>
74061
74062         * modules/exit: New module.
74063         * MODULES.html.sh (func_all_modules): Add it.
74064
74065 2003-01-22  Bruno Haible  <bruno@clisp.org>
74066
74067         * lib/exit.h: New file, from GNU gettext.
74068
74069 2003-01-19  Bruno Haible  <bruno@clisp.org>
74070
74071         * gnulib-tool: Recognize option --extract-maintainer.
74072         (func_get_maintainer): New function.
74073         * modules/*: Add Maintainer entry.
74074
74075 2003-01-16  Jim Meyering  <jim@meyering.net>
74076
74077         * m4/regex.m4: The `regex' struct is both input and output.
74078         Initialize it before each use.  Patch by Tim Waugh.
74079
74080 2003-01-16  Bruno Haible  <bruno@clisp.org>
74081
74082         * MODULES.html.sh: Add a table of contents. Add the module name as
74083         leftmost column. Add hyperlinks.
74084
74085 2003-01-15  Bruno Haible  <bruno@clisp.org>
74086
74087         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74088
74089 2003-01-15  Bruno Haible  <bruno@clisp.org>
74090
74091         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74092         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74093         suffix.
74094
74095 2003-01-15  Bruno Haible  <bruno@clisp.org>
74096
74097         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74098
74099 2003-01-15  Bruno Haible  <bruno@clisp.org>
74100
74101         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74102         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74103
74104 2003-01-14  Jim Meyering  <jim@meyering.net>
74105
74106         * lib/same.c (same_name): Tweak a comment.
74107
74108 2003-01-14  Bruno Haible  <bruno@clisp.org>
74109
74110         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74111         when a string comparison is sufficient.
74112
74113 2003-01-14  Bruno Haible  <bruno@clisp.org>
74114
74115         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74116         'unsigned int'.
74117
74118 2003-01-14  Bruno Haible  <bruno@clisp.org>
74119
74120         * lib/hash-pjw.c: Add comment about low quality of this function.
74121
74122 2003-01-13  Bruno Haible  <bruno@clisp.org>
74123
74124         * modules/stpcpy: Distribute lib/stpcpy.h.
74125         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74126
74127 2003-01-13  Bruno Haible  <bruno@clisp.org>
74128
74129         * modules/*: Add a description.
74130         * modules/strpbrk: Fix Makefile.am snippet.
74131         * modules/strtoimax: Fix dependencies.
74132         * modules/strtoumax: Likewise.
74133
74134 2003-01-13  Bruno Haible  <bruno@clisp.org>
74135
74136         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74137         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74138         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74139
74140 2003-01-13  Bruno Haible  <bruno@clisp.org>
74141
74142         * gnulib-tool (func_create_testdir): Store config/* files in the main
74143         directory.
74144         * config.rpath: Move to ...
74145         * config/config.rpath: ... here.
74146         * modules/gettext: Contains config/config.rpath, not config.rpath.
74147         * modules/iconv: Likewise.
74148
74149 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74150
74151         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74152         to avoid collisions with libcurses and libreadline.
74153
74154         * m4/getstr.m4: Remove.
74155         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74156
74157 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74158
74159         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74160         to avoid collisions with libcurses and libreadline.
74161
74162         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74163         * lib/getstr.h, getstr.c: Remove.
74164         * lib/getline.c: Include "getline.h", to check interface.
74165         Move body of old getstr.c here: this defines MIN_CHUNK and
74166         declares getdelim2, which is renamed from getstr.
74167         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74168
74169         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74170         All uses changed.
74171         * lib/linebuffer.h: Likewise.
74172         (readline): Remove backward-compatibility macro.
74173
74174 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74175
74176         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74177         to avoid collisions with libcurses and libreadline.
74178         * getstr: Remove.
74179         * MODULES.html.sh: Remove getstr.
74180         * modules/getline: Depend on unlocked-io, not getstr.
74181
74182 2003-01-12  Jim Meyering  <jim@meyering.net>
74183
74184         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74185
74186 2003-01-10  Bruno Haible  <bruno@clisp.org>
74187
74188         * modules/alloca: Change Makefile.am requirements. Simplify Include
74189         requirements. Add lib/alloca_.h to file list.
74190
74191 2003-01-10  Bruno Haible  <bruno@clisp.org>
74192
74193         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74194
74195 2003-01-10  Bruno Haible  <bruno@clisp.org>
74196
74197         * lib/alloca_.h: New file.
74198         * lib/getdate.y: Unconditionally include alloca.h.
74199         * lib/makepath.c: Likewise.
74200         * lib/setenv.c: Likewise.
74201         * lib/userspec.c: Likewise.
74202
74203 2003-01-09  Karl Berry  <karl@gnu.org>
74204
74205         * MODULES.html.sh: include `dirname $0` in PATH, to find
74206         gnulib-tool.
74207
74208 2003-01-09  Bruno Haible  <bruno@clisp.org>
74209
74210         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74211         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74212
74213 2003-01-09  Bruno Haible  <bruno@clisp.org>
74214
74215         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74216
74217 2003-01-09  Bruno Haible  <bruno@clisp.org>
74218
74219         * lib/stdbool.h.in: New file.
74220
74221 2003-01-09  Bruno Haible  <bruno@clisp.org>
74222
74223         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74224         * MODULES.html.sh: Likewise.
74225
74226 2003-01-08  Jim Meyering  <jim@meyering.net>
74227
74228         * lib/full-write.c: Undefine and define-away `const' after inclusion
74229         of errno.h, not before.  Suggestion from Bruno Haible.
74230
74231 2003-01-08  Bruno Haible  <bruno@clisp.org>
74232
74233         * modules/full-read: Depend on full-write.
74234
74235 2003-01-08  Bruno Haible  <bruno@clisp.org>
74236
74237         * lib/safe-read.c: Include specification header first, to ensure its
74238         selfcontainedness.
74239         * lib/full-write.c: Likewise.
74240
74241 2003-01-07  Jim Meyering  <jim@meyering.net>
74242
74243         * lib/full-write.c: Rework so that it may serve to define full_read,
74244         too.
74245         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74246
74247 2003-01-07  Bruno Haible  <bruno@clisp.org>
74248
74249         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74250         <inttypes.h>.
74251         * lib/xstrtol.h: Likewise.
74252         * lib/xstrtoimax.c: Likewise.
74253         * lib/xstrtoumax.c: Likewise.
74254         * lib/human.h: Likewise.
74255
74256         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74257         on systems that have <inttypes.h> but not <stdint.h>.
74258
74259 2003-01-07  Bruno Haible  <bruno@clisp.org>
74260
74261         * MODULES.html.sh: Add copyright notice.
74262         (missed_files): Omit CVS directory entries.
74263         (func_module): Make it work with sed-3.02.
74264         * MODULES.txt: Remove file.
74265
74266 2003-01-06  Jim Meyering  <jim@meyering.net>
74267
74268         * lib/version-etc.c: Update year in translatable copyright string.
74269
74270 2003-01-03  Karl Berry  <karl@gnu.org>
74271
74272         * config/config.{guess,sub}: update from prep.
74273
74274 2003-01-02  Karl Berry  <karl@gnu.org>
74275
74276         * doc/COPYING.DOC: belatedly updated to 1.2.
74277
74278 2003-01-01  Karl Berry  <karl@gnu.org>
74279
74280         * gnulib-tool (func_verify_module): report module name $module in
74281         error message, not $1.
74282         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74283         be created, only if it doesn't exist.
74284         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74285
74286 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74287
74288         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74289
74290 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74291
74292         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74293         memcmp if strcoll doesn't work.
74294
74295 2002-12-31  Bruno Haible  <bruno@clisp.org>
74296
74297         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74298         nonempty.
74299
74300 2002-12-31  Bruno Haible  <bruno@clisp.org>
74301
74302         * lib/memcoll.c (STRCOLL): New macro.
74303         (memcoll): Use it.
74304
74305 2002-12-31  Bruno Haible  <bruno@clisp.org>
74306
74307         * lib/localcharset.h: New file.
74308         * lib/localcharset.c: Include it.
74309         * lib/unicodeio.c: Likewise.
74310
74311 2002-12-31  Bruno Haible  <bruno@clisp.org>
74312
74313         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74314         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74315
74316 2002-12-31  Bruno Haible  <bruno@clisp.org>
74317
74318         * lib/getline.h: Include <stddef.h>, for size_t.
74319
74320         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74321         * lib/unicodeio.c: Don't include <stddef.h>.
74322
74323 2002-12-31  Bruno Haible  <bruno@clisp.org>
74324
74325         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74326         HAVE_TM_ZONE.
74327
74328 2002-12-24  Karl Berry  <karl@gnu.org>
74329
74330         * config/config.guess: update from prep.
74331
74332 2002-12-24  Bruno Haible  <bruno@clisp.org>
74333
74334         General infrasructure.
74335         * m4/README: Rewritten.
74336         * m4/onceonly.m4: New file.
74337         * m4/onceonly_2_57.m4: New file.
74338
74339         Module atexit.
74340         * m4/atexit.m4: New file.
74341
74342         Module strtod.
74343         * m4/strtod.m4: New file.
74344
74345         Module strtol.
74346         * m4/strtol.m4: New file.
74347
74348         Module strtoul.
74349         * m4/strtoul.m4: New file.
74350
74351         Module memchr.
74352         * m4/memchr.m4: New file.
74353
74354         Module memcmp.
74355         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74356         (jm_FUNC_MEMCMP): Invoke it.
74357
74358         Module memcpy.
74359         * m4/memcpy.m4: New file.
74360
74361         Module memmove.
74362         * m4/memmove.m4: New file.
74363
74364         Module memset.
74365         * m4/memset.m4: New file.
74366
74367         Module strcspn.
74368         * m4/strcspn.m4: New file.
74369
74370         Module strpbrk.
74371         * m4/strpbrk.m4: New file.
74372
74373         Module strstr.
74374         * m4/strstr.m4: New file.
74375
74376         Module strerror.
74377         * m4/strerror.m4: New file.
74378
74379         Module mktime.
74380         * m4/mktime.m4: Renamed from jm-mktime.m4.
74381         (gl_PREREQ_MKTIME): New macro.
74382         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74383
74384         Module malloc.
74385         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74386         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74387         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74388
74389         Module realloc.
74390         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74391         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74392         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74393
74394         Module strftime.
74395         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74396         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74397         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74398         gl_TM_GMTOFF.
74399         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74400
74401         Module xalloc.
74402         * m4/xalloc.m4: New file.
74403
74404         Module alloca.
74405         * m4/alloca.m4: New file.
74406
74407         Module putenv.
74408         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74409         (jm_FUNC_PUTENV): Invoke it.
74410
74411         Module setenv.
74412         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74413         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74414         when invoked twice.
74415         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74416         gt_FUNC_SETENV.
74417
74418         Module memrchr.
74419         * m4/memrchr.m4: New file.
74420
74421         Module stpcpy.
74422         * m4/stpcpy.m4: New file.
74423
74424         Module strcase.
74425         * m4/strcase.m4: New file.
74426
74427         Module strdup.
74428         * m4/strdup.m4: New file.
74429
74430         Module strnlen.
74431         * m4/strnlen.m4: New file.
74432
74433         Module strndup.
74434         * m4/strndup.m4: New file.
74435
74436         Module xstrtod.
74437         * m4/xstrtod.m4: New file.
74438
74439         Module xstrtol.
74440         * m4/xstrtol.m4: New file.
74441
74442         Module getdate.
74443         * m4/getdate.m4: New file.
74444
74445         Module unlocked-io.
74446         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74447         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74448         * m4/jm-glibc-io.m4n: Remove file.
74449
74450         Module long-options.
74451         * m4/long-options.m4: New file.
74452
74453         Module md5.
74454         * m4/md5.m4: New file.
74455
74456         Module sha.
74457         * m4/sha.m4: New file.
74458
74459         Module getstr.
74460         * m4/getstr.m4: New file.
74461
74462         Module getline.
74463         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74464         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74465         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74466         simply getline. Infoke gl_PREREQ_GETLINE.
74467
74468         Module obstack.
74469         * m4/obstack.m4: New file.
74470
74471         Module hash.
74472         * m4/hash.m4: New file.
74473
74474         Module readtokens.
74475         * m4/readtokens.m4: New file.
74476
74477         Module strverscmp.
74478         * m4/strverscmp.m4: New file.
74479
74480         Module stdbool.
74481         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74482         OSF/1.
74483
74484         Module strtoll.
74485         * m4/strtoll.m4: New file.
74486
74487         Module strtoull.
74488         * m4/strtoull.m4: New file.
74489
74490         Module strtoimax.
74491         * m4/strtoimax.m4: New file.
74492
74493         Module strtoumax.
74494         * m4/strtoumax.m4: New file.
74495
74496         Module xstrtoimax.
74497         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74498         jm_AC_PREREQ_XSTRTOIMAX.
74499         Moved the strtol prerequisites to strtol.m4.
74500         Moved the strtoll prerequisites to strtoll.m4.
74501         Moved the strtoimax prerequisites to strtoimax.m4.
74502
74503         Module xstrtoumax.
74504         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74505         jm_AC_PREREQ_XSTRTOUMAX.
74506         Moved the strtoul prerequisites to strtoul.m4.
74507         Moved the strtoull prerequisites to strtoull.m4.
74508         Moved the strtoumax prerequisites to strtoumax.m4.
74509
74510         Module chown.
74511         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74512         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74513
74514         Module dup2.
74515         * m4/dup2.m4: New file.
74516
74517         Module ftruncate.
74518         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74519         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74520
74521         Module getgroups.
74522         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74523         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74524
74525         Module gettimeofday.
74526         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74527         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74528         gl_PREREQ_GETTIMEOFDAY.
74529
74530         Module mkdir.
74531         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74532         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74533
74534         Module mkstemp.
74535         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74536         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74537         jm_AC_TYPE_UINTMAX_T.
74538         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74539
74540         Module stat.
74541         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74542         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74543
74544         Module lstat.
74545         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74546         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74547
74548         Module timespec.
74549         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74550         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74551         * m4/st_mtim.m4: Indentation.
74552
74553         Module nanosleep.
74554         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74555         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74556         gl_PREREQ_NANOSLEEP.
74557
74558         Module regex.
74559         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74560         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74561         (gl_REGEX): New macro.
74562
74563         Module rename.
74564         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74565         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74566
74567         Module rmdir.
74568         * m4/rmdir.m4: New file.
74569
74570         Module utime.
74571         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74572         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74573         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74574
74575         Module dirname.
74576         * m4/dirname.m4: New file.
74577
74578         Module getopt.
74579         * m4/getopt.m4: New file.
74580
74581         Module unistd-safer.
74582         * m4/unistd-safer.m4: New file.
74583
74584         Module fnmatch.
74585         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74586         declaration.
74587         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74588         (gl_FUNC_FNMATCH_POSIX): New macro.
74589         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74590         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74591         simply fnmatch.
74592
74593         Module exclude.
74594         * m4/exclude.m4: New file.
74595
74596         Module human.
74597         * m4/human.m4: New file.
74598
74599         Module acl.
74600         * m4/acl.m4: Nop.
74601
74602         Module backupfile.
74603         * m4/backupfile.m4: New file.
74604         * m4/d-ino.m4: Indentation.
74605
74606         Module fsusage.
74607         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74608         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74609         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74610
74611         Module dirfd.
74612         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74613         requirements.
74614
74615         Module euidaccess.
74616         * m4/euidaccess.m4: New file.
74617
74618         Module file-type.
74619         * m4/file-type.m4: New file.
74620
74621         Module fileblocks.
74622         * m4/fileblocks.m4: New file.
74623
74624         Module filemode.
74625         * m4/filemode.m4: New file.
74626
74627         Module isdir.
74628         * m4/isdir.m4: New file.
74629
74630         Module lchown.
74631         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74632         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74633
74634         Module makepath.
74635         * m4/makepath.m4: New file.
74636
74637         Module modechange.
74638         * m4/modechange.m4: New file.
74639
74640         Module mountlist.
74641         * m4/mountlist.m4: New file.
74642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74643         Indentation.
74644
74645         Module path-concat.
74646         * m4/path-concat.m4: New file.
74647
74648         Module pathmax.
74649         * m4/pathmax.m4: New file.
74650
74651         Module same.
74652         * m4/same.m4: New file.
74653
74654         Module save-cwd.
74655         * m4/save-cwd.m4: New file.
74656
74657         Module savedir.
74658         * m4/savedir.m4: New file.
74659
74660         Module xgetcwd.
74661         * m4/xgetcwd.m4: New file.
74662         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74663
74664         Module xreadlink.
74665         * m4/xreadlink.m4: New file.
74666
74667         Module safe-read.
74668         * m4/safe-read.m4: New file.
74669
74670         Module safe-write.
74671         * m4/safe-write.m4: New file.
74672
74673         Module closeout.
74674         * m4/closeout.m4: New file.
74675
74676         Module stdio-safer.
74677         * m4/stdio-safer.m4: New file.
74678
74679         Module getpass.
74680         * m4/getpass.m4: New file.
74681
74682         Module getugroups.
74683         * m4/getugroups.m4: New file.
74684
74685         Module group-member.
74686         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74687         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74688
74689         Module idcache.
74690         * m4/idcache.m4: New file.
74691
74692         Module userspec.
74693         * m4/userspec.m4: New file.
74694
74695         Module gettime.
74696         * m4/clock_time.m4: New file.
74697         * m4/gettime.m4: New file.
74698
74699         Module settime.
74700         * m4/settime.m4: New file.
74701
74702         Module posixtm.
74703         * m4/posixtm.m4: New file.
74704
74705         Module gethostname.
74706         * m4/gethostname.m4: New file.
74707
74708         Module canon-host.
74709         * m4/canon-host.m4: New file.
74710
74711         Module gettext.
74712         * m4/codeset.m4: New file, from gettext-0.11.5.
74713         * m4/gettext.m4: New file, from gettext-0.11.5.
74714         * m4/glibc21.m4: New file, from gettext-0.11.5.
74715         * m4/iconv.m4: New file, from gettext-0.11.5.
74716         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74717         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74718         * m4/inttypes.m4: New file, from gettext-0.11.5.
74719         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74720         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74721         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74722         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74723         * m4/lib-link.m4: New file, from gettext-0.11.5.
74724         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74725         * m4/progtest.m4: New file, from gettext-0.11.5.
74726         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74727         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74728         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74729
74730         Module localcharset.
74731         * m4/localcharset.m4: New file.
74732
74733         Module hard-locale.
74734         * m4/hard-locale.m4: New file.
74735
74736         Module mbswidth.
74737         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74738         onceonly macros.
74739         * m4/mbrtowc.m4: Add comment.
74740
74741         Module memcasecmp.
74742         * m4/memcasecmp.m4: New file.
74743
74744         Module memcoll.
74745         * m4/memcoll.m4: New file.
74746
74747         Module unicodeio.
74748         * m4/unicodeio.m4: New file.
74749
74750         Module rpmatch.
74751         * m4/rpmatch.m4: New file.
74752
74753         Module yesno.
74754         * m4/yesno.m4: New file.
74755
74756         Module exitfail.
74757         * m4/exitfail.m4: New file.
74758
74759         Module c-stack.
74760         * m4/c-stack.m4 (gl_C_STACK): New macro.
74761         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74762
74763         Module error.
74764         * m4/error.m4 (gl_ERROR): New macro.
74765         (jm_PREREQ_ERROR): Use onceonly macros.
74766
74767         Module fatal.
74768         * m4/fatal.m4: New file.
74769
74770         Module getloadavg.
74771         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74772         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74773
74774         Module getpagesize.
74775         * m4/getpagesize.m4: New file.
74776
74777         Module getusershell.
74778         * m4/getusershell.m4: New file.
74779
74780         Module physmem.
74781         * m4/physmem.m4: New file.
74782
74783         Module posixver.
74784         * m4/posixver.m4: New file.
74785
74786         Module quotearg.
74787         * m4/quotearg.m4: New file.
74788
74789         Module quote.
74790         * m4/quote.m4: New file.
74791
74792         Module readutmp.
74793         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74794
74795         Module sig2str.
74796         * m4/sig2str.m4: New file.
74797
74798         Other.
74799         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74800         ulonglong.m4.
74801         * m4/intmax_t.m4: New file.
74802         * m4/d-type.m4: Indentation.
74803         * m4/jm-macros.m4: Update.
74804         * m4/prereq.m4 (jm_PREREQ): Update.
74805         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74806         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74807         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74808         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74809         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74810         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74811         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74812         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74813         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74814         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74815         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74816         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74817         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74818         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74819         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74820         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74821         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74822         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74823         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74824
74825 2002-12-24  Bruno Haible  <bruno@clisp.org>
74826
74827         * MODULES.txt: Update according to m4/ changes.
74828
74829         Module gettext.
74830         * config.rpath: New file, from gettext-0.11.5.
74831
74832         * modules/*: New module descriptions.
74833         * gnulib-tool: New file.
74834         * MODULES.html.sh: New file.
74835
74836 2002-12-21  Karl Berry  <karl@gnu.org>
74837
74838         * doc/fdl.texi: update to version 1.2.
74839
74840 2002-12-19  Karl Berry  <karl@gnu.org>
74841
74842         * config/config.guess: update from prep.
74843
74844 2002-12-18  Bruno Haible  <bruno@clisp.org>
74845
74846         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74847         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74848
74849 2002-12-17  Bruno Haible  <bruno@clisp.org>
74850
74851         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74852         stdlib.h, string.h.
74853
74854 2002-12-17  Bruno Haible  <bruno@clisp.org>
74855
74856         * lib/canon-host.c (strdup): Remove unused declaration.
74857
74858         * lib/fsusage.c: Include full_read.h.
74859         (get_fs_usage): Use full_read instead of safe_read.
74860
74861         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74862
74863 2002-12-12  Karl Berry  <karl@gnu.org>
74864
74865         * config/config.guess: update from prep.
74866
74867 2002-12-11  Bruno Haible  <bruno@clisp.org>
74868
74869         * m4/setenv.m4: New file, from gettext-0.11.5.
74870
74871 2002-12-11  Bruno Haible  <bruno@clisp.org>
74872
74873         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74874         not unsetenv().
74875         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74876         modifications:
74877
74878         2002-12-11  Bruno Haible  <bruno@clisp.org>
74879
74880                 * setenv.c (alloca): Fall back to malloc.
74881                 (freea): New macro.
74882                 (setenv): Use freea() to free memory allocated with alloca().
74883
74884         2002-11-13  Bruno Haible  <bruno@clisp.org>
74885
74886                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74887                 function declarations.
74888                 * unsetenv.c (unsetenv): Likewise.
74889
74890         2002-03-04  Bruno Haible  <bruno@clisp.org>
74891
74892                 Portability to AIX 4.3.3.
74893                 * unsetenv.c: New file, extracted from setenv.c.
74894                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74895
74896         2001-12-20  Bruno Haible  <bruno@clisp.org>
74897
74898                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74899                 use malloc instead. For SunOS 4.
74900
74901         2001-12-11  Bruno Haible  <bruno@clisp.org>
74902
74903                 * setenv.c: Declare alloca.
74904                 (compar_fn_t): New typedef.
74905                 (KNOWN_VALUE, STORE_VALUE): Use it.
74906
74907         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74908         setenv.h.
74909
74910 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74911
74912         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74913         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74914         Choose values that are less likely to collide with system fnmatch
74915         options.
74916         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74917         defined (e.g., a pure POSIX system).
74918         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74919         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74920
74921 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74922
74923         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74924         a pain in practice to deal with generated m4 files.  This change
74925         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74926
74927         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74928         and jm-glibc-io.m4, as they are no longer a special case.
74929         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74930         kludge and the auto-generation stuff.  Check only whether the
74931         functions are declared, not whether they exist, since older hosts
74932         that don't declare the functions can't use the optimization anyway.
74933
74934 2002-12-06  Jim Meyering  <jim@meyering.net>
74935
74936         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74937
74938         Merge in changes from libc's misc/error.c, in preparation
74939         for the merge of gnulib's changes back into libc.
74940
74941         * lib/error.c (_): Define only if not already defined.
74942         Move definition to follow all #include directives.
74943         Include unlocked-io.h only if !_LIBC.
74944         [_LIBC]: Include <libio/libioP.h>.
74945         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74946         (fflush): Tweak definition to use INTUSE.
74947         (putc): Define.
74948
74949 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74950
74951         * lib/alloca.c [defined emacs]: Include "lisp.h".
74952         (xalloc_die) [defined emacs]: New macro.
74953         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74954         [! defined emacs]: Include <xalloc.h>.
74955         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74956         (pointer): Typedef to POINTER_TYPE *.
74957         (malloc): Remove decl; we now always use xmalloc.
74958         (alloca): Use old-style definition, since Emacs needs this.
74959         Check for arithmetic overflow when computing combined size.
74960
74961 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74962
74963         Do not generate unlocked-io.h automatically, since it's easier to
74964         maintain it by hand.
74965
74966         * lib/unlocked-io.h: New file, from GNU diffutils,
74967         but with proper copyright notice and attribution.
74968         * lib/gen-uio: Remove.
74969         * lib/Makefile.am: Add copyright notice.
74970         (libfetish_a_SOURCES): Add unlocked-io.h.
74971         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74972         (DISTCLEANFILES, io_functions): Remove macros.
74973         (EXTRA_DIST): Remove gen_uio.
74974         (unlocked-io.h): Remove rule.
74975
74976 2002-12-04  Jim Meyering  <jim@meyering.net>
74977
74978         Reflect the fact that stat.c and lstat.c are no longer generated.
74979         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74980         (DISTCLEANFILES): Likewise.
74981         (EXTRA_DIST): Likewise.
74982         (all_local): Don't depend on stat.c or lstat.c.
74983         (stat.c, lstat.c): Remove rules.
74984         (EXTRA_DIST): Remove xstat.in.
74985
74986         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74987         * lib/stat.c: New file.  Contents mostly from xstat.in.
74988         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74989         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74990
74991         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74992         too.
74993         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74994
74995 2002-12-03  Jim Meyering  <jim@meyering.net>
74996
74997         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74998         but not semantics, to minimize the differences between these two files.
74999         (safe_read): Change comment to mention SAFE_READ_ERROR.
75000
75001         * lib/safe-read.c (IS_EINTR): Define.
75002         (safe_read): Use IS_EINTR in place of in-function cpp directives.
75003
75004 2002-12-02  Jim Meyering  <jim@meyering.net>
75005
75006         * lib/safe-read.c (EINTR): Define.
75007         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
75008         (INT_MAX): Provide fallback.
75009         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
75010
75011         * lib/safe-read.h (SAFE_READ_ERROR): Define.
75012
75013 2002-12-02  Bruno Haible  <bruno@clisp.org>
75014
75015         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
75016         Define, taken from safe-read.c.
75017         (INT_MAX): Provide fallback.
75018         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
75019         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
75020
75021         * lib/safe-read.c (EINTR): Remove definition.
75022         (safe_read): Don't use EINTR if it is absent.
75023
75024 2002-12-01  Jim Meyering  <jim@meyering.net>
75025
75026         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
75027         zero.
75028         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
75029
75030 2002-11-27  Paul Eggert  <eggert@twinsun.com>
75031
75032         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
75033         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
75034         with `if (! (value < limit)) abort ();', for readability.
75035
75036 2002-11-26  Karl Berry  <karl@gnu.org>
75037
75038         * lib/strdup.c: copy from libc again, with jim's ok.
75039         * lib/.cppi-disable: re-add strdup.c
75040
75041 2002-11-25  Karl Berry  <karl@gnu.org>
75042
75043         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
75044         instead of "strtol.c".
75045
75046 2002-11-25  Karl Berry  <karl@gnu.org>
75047
75048         * config/install-sh: update from automake for variable quoting, $0 in
75049         error msgs, etc.
75050
75051         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
75052         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
75053         entry.
75054
75055 2002-11-25  Jim Meyering  <jim@meyering.net>
75056
75057         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75058
75059 2002-11-24  Karl Berry  <karl@gnu.org>
75060
75061         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75062         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75063
75064 2002-11-24  Jim Meyering  <jim@meyering.net>
75065
75066         Update from coreutils:
75067
75068         * lib/mktime.c: Merge in changes from libc.
75069
75070         Avoid a link-time failure on some Linux systems.
75071         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75072         (otherwise).
75073         (__mon_yday): Declare with the STATIC attribute.
75074         (__mktime_internal): Likewise.
75075         Based on a report from Greg Schafer.
75076
75077 2002-11-23  Jim Meyering  <jim@meyering.net>
75078
75079         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75080         Use `unsigned', not `int', as type of index.
75081
75082         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75083
75084         * lib/fsusage.c: Remove unneeded parentheses around operands of
75085         `defined'.
75086
75087 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75088
75089         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75090         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75091         so that we can be included first.
75092         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75093         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75094         No need to include stddef.h or sys/types.h any more.
75095         Surround local include files with "", not "<>".
75096         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75097         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75098         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75099         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75100         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75101         (ISPRINT): Remove; no longer needed now that we assume C89.
75102
75103         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75104         Preserve errno.
75105
75106         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75107         quotearg_char): Use SIZE_MAX rather than
75108         (size_t) -1 when we are talking about "infinity".
75109
75110         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75111
75112 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75113
75114         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75115         hint that one should use `if (! x) abort ();' rather than `assert
75116         (x);', and anyway it's one less thing to worry about configuring.
75117         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75118         hash_rehash, hash_insert): Use abort rather than assert.
75119
75120 2002-11-22  Bruno Haible  <bruno@clisp.org>
75121
75122         * lib/safe-read.h: Assume C89. Add comments.
75123         (safe_read): Change return type to size_t.
75124         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75125         byte counts > SSIZE_MAX correctly.
75126         * lib/safe-write.h: New file.
75127         * lib/safe-write.c: New file.
75128         * lib/full-read.h: New file.
75129         * lib/full-read.c: New file.
75130         * lib/full-write.h: Assume C89. Add comments.
75131         * lib/full-write.c: Include safe-write.h.
75132         (full_write): Rewritten to use safe_write.
75133         Suggested by Jim Meyering and Paul Eggert.
75134
75135 2002-11-21  Jim Meyering  <jim@meyering.net>
75136
75137         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75138
75139         Merge in changes from the coreutils.
75140
75141         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75142         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75143         <stdint.h>.
75144         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75145         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75146         int.  Work more efficiently if X is the same width as uintmax_t.
75147         Do not compare X to -1, to avoid bogus compiler warning.
75148         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75149         Don't assume that f_frsize and f_bsize are the same type.
75150
75151         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75152         warning on FreeBSD.
75153
75154         * lib/makepath.c (make_path): Restore umask *before* creating the final
75155         component.
75156         (make_path): Minor reformatting.
75157
75158         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75159         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75160         HAVE_MALLOC/HAVE_REALLOC.
75161
75162         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75163         dummy ones.  At least on GNU/Linux systems, `auto' means something
75164         else.
75165         From Michael Stone.
75166
75167 2002-11-21  Bruno Haible  <bruno@clisp.org>
75168
75169         Remove case insensitive option matching.
75170         * lib/argmatch.h (argcasematch): Remove declaration.
75171         (ARGCASEMATCH): Remove macro.
75172         (__xargmatch_internal): Remove case_sensitive argument.
75173         (XARGMATCH): Update.
75174         (XARGCASEMATCH): Remove macro.
75175         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75176         case_sensitive argument.
75177         (argcasematch): Remove function.
75178         (__xargmatch_internal): Remove case_sensitive argument.
75179         (main): Use XARGMATCH instead of XARGCASEMATCH.
75180
75181         * lib/xmalloc.c: Change compile-time error message. Add comment about
75182         required autoconf version.
75183
75184 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75185
75186         Merge argmatch cleanups from Bison.  Assume C89.
75187
75188         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75189         Include stdlib.h, for EXIT_FAILURE.
75190         Always include <string.h>, since we assume C89.
75191         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75192         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75193         Include <stddef.h> instead, since it's all we need for size_t.
75194         (PARAMS): Remove.  All uses removed.
75195         (ARRAY_CARDINALITY): Do not bother to #undef.
75196         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75197         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75198         Remove unnecessary parentheses.
75199         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75200         Insert necessary parentheses.
75201         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75202         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75203
75204 2002-11-19  Bruno Haible  <bruno@clisp.org>
75205
75206         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75207         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75208
75209         * lib/mbswidth.h (PARAMS): Remove macro.
75210         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75211         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75212
75213         * lib/gcd.h (PARAMS): Remove macro.
75214         (gcd): Use ANSI C function declarations.
75215         * lib/gcd.c (gcd): Likewise.
75216
75217 2002-11-15  Bruno Haible  <bruno@clisp.org>
75218
75219         * lib/strcspn.c: Include <stddef.h>.
75220         (strcspn): Use ANSI C function declaration. Change return type to
75221         size_t. Use NULL.
75222         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75223         (strpbrk): Use NULL.
75224         * lib/strpbrk.h (PARAMS): Remove macro.
75225         (strpbrk): Use ANSI C function declaration.
75226         * lib/strstr.c: Don't include <sys/types.h>.
75227         * lib/strstr.h (PARAMS): Remove macro.
75228         (strstr): Use ANSI C function declarations.
75229
75230 2002-11-14  Karl Berry  <karl@gnu.org>
75231
75232         * config/mkinstalldirs: `do' on separate line, instead of
75233         `for var; do'.
75234
75235 2002-11-06  Bruno Haible  <bruno@clisp.org>
75236
75237         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75238         * lib/gcd.c (gcd): Likewise.
75239
75240 2002-11-05  Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/gcd.h: New file, from gettext-0.11.5.
75243         * lib/gcd.c: New file, from gettext-0.11.5.
75244
75245 2002-11-05  Bruno Haible  <bruno@clisp.org>
75246
75247         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75248         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75249         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75250         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75251
75252         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75253         <libintl.h>.
75254         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75255         <libintl.h>.
75256
75257         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75258         * lib/human.c: Include gettext.h instead of <libintl.h>.
75259         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75260         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75261         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75262         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75263         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75264         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75265         (textdomain): Remove definition.
75266         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75267
75268         * lib/long-options.c: Remove include of <libintl.h> and definition of
75269         _.
75270         * lib/same.c: Remove include of <libintl.h> and definition of _.
75271
75272 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75273
75274         * lib/config.charset: A few additions for Solaris.
75275
75276 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75277
75278         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75279         * lib/localcharset.c (locale_charset): Declare as extern "C".
75280
75281 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75282
75283         * lib/config.charset: msdos in uk_UA uses CP1125.
75284
75285 2002-11-04  Bruno Haible  <bruno@clisp.org>
75286
75287         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75288         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75289         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75290         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75291         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75292
75293 2002-11-04  Bruno Haible  <bruno@clisp.org>
75294
75295         * lib/localcharset.c (locale_charset): Don't return an empty string.
75296
75297 2002-11-04  Bruno Haible  <bruno@clisp.org>
75298
75299         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75300         aliases.
75301
75302 2002-11-04  Bruno Haible  <bruno@clisp.org>
75303
75304         * lib/config.charset: Update for newest glibc. Add canonical names
75305         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75306
75307 2002-11-04  Bruno Haible  <bruno@clisp.org>
75308
75309         * lib/config.charset: Add support for NetBSD.
75310
75311 2002-11-04  Bruno Haible  <bruno@clisp.org>
75312
75313         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75314
75315 2002-11-01  Bruno Haible  <bruno@clisp.org>
75316
75317         * configure.in: Add AC_CONFIG_AUX_DIR call.
75318         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75319         test/Makefile.
75320         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75321
75322 2002-09-28  Karl Berry  <karl@gnu.org>
75323
75324         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75325         installed automake until the next release, since changes have been
75326         made.
75327
75328 2002-09-25  Karl Berry  <karl@gnu.org>
75329
75330         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75331         * lib/getopt*: copy from libc/posix.
75332         * lib/gettext.h: copy from gettext.
75333         * lib/.cppi-disable: add strdup.c, gettext.h.
75334
75335 2002-09-25  Karl Berry  <karl@gnu.org>
75336
75337         * config/srclist.txt: enable gettext.h check.
75338         * config/config.{guess,sub}: update from prep.
75339         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75340                 from automake 1.6.3.
75341         See srclist*.
75342
75343 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75344
75345         * regex.c (PATFETCH): Remove the translating fetch.
75346         (PATFETCH_RAW): Rename to PATFETCH.
75347         (set_image_of_range): New fun.
75348         (SET_RANGE_TABLE_WORK_AREA): Use it.
75349         (regex_compile): Don't translate the pattern chars so eagerly.
75350         Only do it when inserting an `exactn' bytecode or when handling
75351         a char-range.
75352         (mutually_exclusive_p): Avoid empty statement.
75353
75354 2002-07-06  Jim Meyering  <meyering@lucent.com>
75355
75356         * m4/README: Don't mention Makefile.am.in.
75357         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75358
75359 2002-07-01  Jim Meyering  <meyering@lucent.com>
75360
75361         * lib/c-stack.c: Include sys/time.h.
75362         From Volker Borchert.
75363
75364 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75365
75366         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75367
75368 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75369
75370         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75371         New macro.  Use it uniformly instead of
75372         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75373         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75374         reported by Vin Shelton.
75375
75376 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75377
75378         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75379         Do not assume SA_SIGINFO behavior.
75380         Bug reported by Jim Meyering on NetBSD 1.5.2.
75381
75382 2002-06-22  Jim Meyering  <meyering@lucent.com>
75383
75384         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75385         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75386
75387         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75388         now that configure.ac uses AC_GNU_SOURCE.
75389         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75390         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75391
75392         Update to latest tools.  Suggestions from Paul Eggert.
75393         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75394         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75395         * m4/fnmatch.m4: Likewise.
75396         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75397         to AC_HEADER_STDBOOL
75398
75399 2002-06-22  Jim Meyering  <meyering@lucent.com>
75400
75401         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75402         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75403
75404 2002-06-22  Jim Meyering  <meyering@lucent.com>
75405
75406         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75407
75408         * lib/exitfail.c, exitfail.h: Likewise.
75409         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75410
75411         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75412         of fnmatch.h.
75413         (EXTRA_DIST): Add fnmatch_loop.c.
75414         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75415
75416         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75417         * lib/fnmatch.c: Update from diffutils-2.8.2.
75418         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75419         * lib/fnmatch.h: Remove file.
75420
75421 2002-06-21  Jim Meyering  <meyering@lucent.com>
75422
75423         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75424         * m4/mbrtowc.m4: Likewise.
75425
75426         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75427         * m4/mbswidth.m4: Reflect name change:
75428         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75429         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75430
75431         * m4/lib-link.m4: Update from gettext-0.11.2.
75432         * m4/gettext.m4: Likewise.
75433
75434         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75435         From Alfred M. Szmidt.
75436
75437 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75438
75439         * lib/file-type.h: Report an error if neither S_ISREG nor
75440         S_IFREG is defined, instead of using a test specific to glibc
75441         2.2.  This should be safe, since POSIX requires S_ISREG and
75442         Unix Version 7 had S_IFREG.  We don't need to check for
75443         <sys/types.h> since we don't use any symbols that it defines.
75444
75445 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75446
75447         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75448         $@-t, so that each temporary file name is unique and valid in the first
75449         8 characters, for operation under DOS.
75450
75451 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75452
75453         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75454
75455 2002-06-15  Jim Meyering  <meyering@lucent.com>
75456
75457         Work even with DJGPP 2.03, which lacks support for symlinks.
75458         From Richard Dawe.
75459         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75460         is defined.
75461         * lib/lchown.c (S_ISLNK): Likewise.
75462
75463 2002-06-15  Jim Meyering  <meyering@lucent.com>
75464
75465         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75466         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75467         have been included before this file.
75468
75469 2002-06-14  Jim Meyering  <meyering@lucent.com>
75470
75471         * lib/file-type.h: Use the version from diffutils-2.8.2.
75472         * lib/file-type.c: Likewise.
75473
75474 2002-06-07  Jim Meyering  <meyering@lucent.com>
75475
75476         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75477         They're needed at least for NetBSD 1.5.2.
75478         ($statxfs_includes): Include those same headers.
75479         ($statxfs_includes): Include sys/vfs.h if available.
75480         ($statxfs_includes): Likewise for sys/statvfs.h.
75481         Check for the following members in both structs statfs and statvfs:
75482         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75483
75484 2002-06-01  Jim Meyering  <meyering@lucent.com>
75485
75486         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75487         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75488
75489 2002-05-28  Jim Meyering  <meyering@lucent.com>
75490
75491         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75492         Reported by Volker Borchert.
75493
75494 2002-05-27  Jim Meyering  <meyering@lucent.com>
75495
75496         Fix a problem seen only on nonconforming systems whereby ls.c's
75497         use of localtime, and then of gettimeofday would cause trouble:
75498         the localtime call used to initialize rpl_gettimeofday's save
75499         mechanism would clobber ls's current local time information so
75500         that in any long listing the first file would always be listed
75501         with date 1970-01-01.  Analysis by Volker Borchert.
75502
75503         * lib/gettimeofday.c (localtime): Undefine.
75504         (rpl_localtime): New function.
75505
75506 2002-05-27  Jim Meyering  <meyering@lucent.com>
75507
75508         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75509         localtime.
75510
75511         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75512         use the replacement function; it wouldn't resolve at link time.
75513         Reported by Volker Borchert.
75514
75515 2002-05-22  Jim Meyering  <meyering@lucent.com>
75516
75517         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75518         file-type.h.
75519         * lib/file-type.h: New file.
75520         * lib/file-type.c (file_type): New file/function.  Extracted from
75521         diffutils.
75522
75523 2002-04-30  Jim Meyering  <meyering@lucent.com>
75524
75525         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75526
75527 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75528
75529         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75530
75531 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75532
75533         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75534         Do not check for alloca.h (no longer used) or stdbool.h (was never
75535         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75536
75537 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75538
75539         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75540
75541 2002-04-29  Jim Meyering  <meyering@lucent.com>
75542
75543         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75544         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75545         Use AC_FUNC_STRNLEN here instead.
75546
75547         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75548         With autoconf-2.53a, it's part of AC_PROG_CC.
75549
75550 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75551
75552         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75553         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75554
75555 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75556
75557         * lib/sig2str.h, lib/sig2str.c: New files.
75558         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75559
75560 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75561
75562         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75563         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75564         of 127, since 64 is the largest conceivable number for ancient
75565         nonstandard hosts.
75566         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75567
75568 2002-04-28  Jim Meyering  <meyering@lucent.com>
75569
75570         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75571
75572 2002-04-24  Jim Meyering  <meyering@lucent.com>
75573
75574         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75575         (jm_PREREQ): Use it.
75576
75577         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75578         mach/mach.h fcntl.h.
75579         Check for this function: setlocale.
75580
75581 2002-04-24  Jim Meyering  <meyering@lucent.com>
75582
75583         * lib/gettext.h: New file, from Gettext.
75584         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75585         (libfetish_a_SOURCES): Add gettext.h.
75586
75587 2002-04-16  Jim Meyering  <meyering@lucent.com>
75588
75589         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75590         ut_pid, ut_id, ut_exit.
75591
75592 2002-04-16  Jim Meyering  <meyering@lucent.com>
75593
75594         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75595         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75596         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75597
75598 2002-04-12  Jim Meyering  <meyering@lucent.com>
75599
75600         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75601         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75602         existence of the getmntinfo function.  Needed for Darwin 5.3.
75603
75604         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75605         This is necessary at least on Darwin 5.3.
75606
75607         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75608         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75609         strnlen.o in the library, and that makes some versions of ranlib
75610         object.
75611
75612 2002-04-12  Jim Meyering  <meyering@lucent.com>
75613
75614         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75615
75616 2002-04-09  Jim Meyering  <meyering@lucent.com>
75617
75618         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75619         to be more precise.  Rather than saying we're checking whether the
75620         function `works', say what we're testing.
75621         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75622         Reported by Bruno Haible.
75623
75624 2002-03-10  Jim Meyering  <meyering@lucent.com>
75625
75626         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75627         Suggestion from Santiago Vila.
75628
75629 2002-03-08  Jim Meyering  <meyering@lucent.com>
75630
75631         * lib/rename.c: Mention that this wrapper is needed also on
75632         mips-dec-ultrix4.4 systems.
75633
75634 2002-03-02  Jim Meyering  <meyering@lucent.com>
75635
75636         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75637         not HAVE_CLOCK_SETTIME.
75638
75639 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75640
75641         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75642         Check for clock_settime.
75643
75644 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75645
75646         * lib/nanosleep.h: Rename to....
75647         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75648
75649         * lib/gettime.c: New file.
75650         * lib/settime.c: New file.
75651         * lib/stime.c: Remove.
75652
75653         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75654         timespec.h.  Remove nanosleep.h.
75655
75656 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75657
75658         * m4/acl.m4: New file.
75659         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75660         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75661
75662 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75663
75664         * lib/acl.c, lib/acl.h: New files.
75665         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75666
75667 2002-02-24  Jim Meyering  <meyering@lucent.com>
75668
75669         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75670         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75671         cause trouble.  Reported by Nelson Beebe.
75672
75673 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75674
75675         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75676         compilers that don't know that xalloc_die never returns.
75677
75678 2002-02-20  Jim Meyering  <meyering@lucent.com>
75679
75680         * lib/getdate.c: Regenerate using bison-1.33.
75681
75682 2002-02-17  Jim Meyering  <meyering@lucent.com>
75683
75684         * config/config.guess (main): Don't use `head -1'; it's no longer
75685         portable. Use `sed 1q' instead.
75686
75687 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75688
75689         * m4/codeset.m4: Upgrade to gettext-0.11.
75690         * m4/gettext.m4: Upgrade to gettext-0.11.
75691         * m4/glibc21.m4: Upgrade to gettext-0.11.
75692         * m4/iconv.m4: Upgrade to gettext-0.11.
75693         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75694         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75695         * m4/lib-ld.m4: New file, from gettext-0.11.
75696         * m4/lib-link.m4: New file, from gettext-0.11.
75697         * m4/lib-prefix.m4: New file, from gettext-0.11.
75698         * m4/progtest.m4: Upgrade to gettext-0.11.
75699
75700 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75701
75702         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75703         (jm_PREREQ): Use it.
75704
75705 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75706
75707         * lib/posixver.c, lib/posixver.h: New files.
75708         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75709
75710 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75711             Bruno Haible  <bruno@clisp.org>
75712
75713         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75714         (fwrite_success_callback): New declaration.
75715         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75716         print_unicode_char. Call failure callback instead of error.
75717         (fwrite_success_callback): New function.
75718         (exit_failure_callback): New function.
75719         (fallback_failure_callback): New function.
75720         (print_unicode_char): Call unicode_to_mb.
75721
75722 2002-01-26  Jim Meyering  <meyering@lucent.com>
75723
75724         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75725         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75726
75727 2002-01-26  Jim Meyering  <meyering@lucent.com>
75728
75729         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75730
75731 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75732
75733         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75734
75735 2002-01-22  Jim Meyering  <meyering@lucent.com>
75736
75737         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75738         Otherwise, some versions of automake would omit the rule that makes
75739         Makefile from Makefile.in.
75740
75741 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75742
75743         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75744         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75745         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75746         (memcoll): Set errno to zero if there is no error.
75747
75748         * lib/quotearg.c (quotearg_buffer_restyled):
75749         Fix bug with quoting buffers containing NUL when backslashing escapes.
75750         This bug was exposed by the other changes in this patch.
75751         (quotearg_n_options): New arg ARGSIZE.
75752         All callers changed.
75753         (quoting_options_from_style): New function.
75754         (quotearg_n_style): Use it.
75755         (quotearg_n_style_mem): New function.
75756
75757         * lib/quotearg.h (quotearg_n_style_mem): New function.
75758
75759 2002-01-19  Jim Meyering  <meyering@lucent.com>
75760
75761         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75762         Remove useless quotes: DF_PROG="df".
75763         * m4/strnlen.m4: New file.
75764
75765 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75766
75767         * lib/backupfile.c (ISDIGIT): Comment fix.
75768         * lib/getdate.y (ISDIGIT): Likewise.
75769         * lib/posixtm.c (ISDIGIT, year): Likewise.
75770         * lib/strverscmp.c (ISDIGIT): Likewise.
75771         * lib/userspec.c (ISDIGIT): Likewise.
75772
75773 2002-01-16  Jim Meyering  <meyering@lucent.com>
75774
75775         * lib/getdate.y: Add three semicolons, each just before a closing
75776         brace. Bison (as of version 1.31) no longer papers over that mistake.
75777
75778 2002-01-05  Jim Meyering  <meyering@lucent.com>
75779
75780         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75781
75782 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75783
75784         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75785         not silently exit merely because the output buffer happens to
75786         have nothing pending.
75787
75788 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75789
75790         See the big note in ../ChangeLog.
75791         * lib/human.c (suffixes): Prefer K to k for 1024.
75792         (generate_suffix_backwards): New function.
75793         (human_readable_inexact): Use it.
75794         * lib/xstrtol.c (__xstrtol): If there is no number but there
75795         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75796         Accept 'K' as well as 'k'.
75797
75798 2001-12-15  Jim Meyering  <meyering@lucent.com>
75799
75800         * lib/regex.h (__restrict_arr): Update from libc.
75801
75802         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75803         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75804         (STREQ): Define.
75805
75806 2001-12-14  Jim Meyering  <meyering@lucent.com>
75807
75808         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75809         Suggestion from Bruno Haible.
75810
75811 2001-12-10  Jim Meyering  <meyering@lucent.com>
75812
75813         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75814         xrealloc, Instead, include "xalloc.h".
75815         (initbuffer): Don't cast xmalloc return value to char*.
75816         (readline): Reword comment.
75817         Don't cast xrealloc return value to char*
75818         Return NULL, not 0.
75819
75820 2001-12-09  Jim Meyering  <meyering@lucent.com>
75821
75822         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75823         about `signed and unsigned type in conditional expression'.
75824         * lib/posixtm.c (posix_time_parse): Likewise.
75825
75826         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75827
75828         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75829         to avoid a pedantic warning.
75830
75831         * lib/getstr.c: Don't include assert.h.
75832         (getstr): Remove warning-evoking assertions.
75833         Return -1 if offset parameter is out of bounds.
75834         Change the type of a local from int to size_t.
75835
75836         * lib/strftime.c (my_strftime_localtime_r): Include this function
75837         definition in the `#if ! HAVE_TM_GMTOFF' block.
75838
75839         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75840         Include xalloc.h instead.
75841
75842 2001-12-02  Jim Meyering  <meyering@lucent.com>
75843
75844         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75845         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75846         included.
75847
75848         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75849         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75850
75851 2001-11-30  Akim Demaille  <akim@epita.fr>
75852
75853         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75854         before being defined.
75855
75856 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75857
75858         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75859         First arg is int, not unsigned.
75860         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75861         (SIZE_MAX, UINT_MAX): New macros.
75862         (quotearg_n_options): Abort if N is negative.
75863         Avoid overflow check on hosts where size_t is 64 bits and int
75864         is 32 bits, as overflow is impossible there.
75865         Fix off-by-one typo that caused unnecessary reallocation.
75866
75867 2001-11-27  Jim Meyering  <meyering@lucent.com>
75868
75869         * lib/tempname.c: Merge with version from libc.
75870         * lib/regex.c: Likewise.
75871
75872         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75873         systems for which STDC_HEADERS is 0, it was not included, resulting in
75874         a warning about an integer-to-pointer conversion problem with getenv.
75875         Reported by Volker Borchert.
75876
75877 2001-11-26  Jim Meyering  <meyering@lucent.com>
75878
75879         * lib/gtod.h: Remove file.
75880         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75881         * lib/gettimeofday.c: Don't include gtod.h.
75882         (GTOD_init): Remove function.
75883         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75884         Suggestion from Volker Borchert.
75885
75886 2001-11-23  Jim Meyering  <meyering@lucent.com>
75887
75888         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75889         it.
75890         * lib/hash.c (struct hash_table): Define it here instead.
75891
75892 2001-11-22  Jim Meyering  <meyering@lucent.com>
75893
75894         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75895
75896 2001-11-20  Jim Meyering  <meyering@lucent.com>
75897
75898         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75899         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75900
75901 2001-11-19  Jim Meyering  <meyering@lucent.com>
75902
75903         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75904         directory.  Use "conftestXXXXXX" as the template.
75905         Suggestion from Paul Eggert.
75906
75907         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75908         immediately, so the test doesn't mistakenly hit the max-open-files
75909         limit.
75910
75911 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75912
75913         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75914         (TEMPORARIES): New macro.
75915         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75916         removes an artificial limitation (e.g. HP-UX 10.20, where
75917         TMP_MAX is 17576).
75918
75919 2001-11-18  Jim Meyering  <meyering@lucent.com>
75920
75921         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75922
75923 2001-11-18  Jim Meyering  <meyering@lucent.com>
75924
75925         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75926         on SunOS 4.
75927
75928         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75929         files will be created before anything else.
75930
75931 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75932
75933         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75934         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75935
75936 2001-11-17  Jim Meyering  <meyering@lucent.com>
75937
75938         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75939         Prompted by a report from Bob Proulx.
75940
75941         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75942         Instead, require UTILS_FUNC_MKSTEMP.
75943
75944 2001-11-17  Jim Meyering  <meyering@lucent.com>
75945
75946         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75947         Now, that's done as part of AC_FUNC_STRTOD.
75948
75949 2001-11-17  Jim Meyering  <meyering@lucent.com>
75950
75951         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75952         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75953         rather than group writable.  Patch by Juan F. Codagnone.
75954
75955         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75956         xrealloc, Instead, include "xalloc.h".
75957
75958         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75959         Remove explicit declarations of xmalloc, xrealloc,
75960         and xstrdup.  Instead, include "xalloc.h".
75961
75962         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75963         unlocked-io.h.
75964         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75965         Likewise.
75966         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75967
75968         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75969         Reported by Padraig Brady.
75970
75971         * lib/mkstemp.c: #undef mkstemp.
75972         Include config.h.
75973         (rpl_mkstemp): Rename from mkstemp.
75974         Protoize.
75975
75976 2001-11-16  Jim Meyering  <meyering@lucent.com>
75977
75978         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75979         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75980         determine the amount of total physical memory, use pstat_getstatic.
75981         HPUX-11 doesn't define _SC_PHYS_PAGES.
75982         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75983         If sysconf couldn't be used to determine the amount of available
75984         physical memory, use both pstat_getstatic and pstat_getdynamic.
75985         Based on a patch from Bob Proulx.
75986
75987 2001-11-10  Jim Meyering  <meyering@lucent.com>
75988
75989         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75990         (jm_PREREQ): Use it.
75991
75992 2001-11-09  Jim Meyering  <meyering@lucent.com>
75993
75994         * m4/jm-macros.m4: Require autoconf-2.52f.
75995         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75996         Use these AC_-prefixed names, not the AM_-prefixed ones.
75997
75998         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75999
76000 2001-11-05  Jim Meyering  <meyering@lucent.com>
76001
76002         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
76003
76004 2001-11-04  Jim Meyering  <meyering@lucent.com>
76005
76006         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
76007         $DEFS.
76008
76009 2001-11-03  Jim Meyering  <meyering@lucent.com>
76010
76011         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
76012         of AC_DEFUN.
76013
76014         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
76015         know the name of the variable in the macro definition.
76016
76017 2001-11-03  Jim Meyering  <meyering@lucent.com>
76018
76019         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
76020         in argmatch_to_argument call.
76021
76022         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
76023         argument.
76024
76025         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
76026         e.g., a fault due to an attempt to free a NULL pointer.
76027
76028 2001-11-01  Jim Meyering  <meyering@lucent.com>
76029
76030         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
76031         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
76032
76033 2001-11-01  Jim Meyering  <meyering@lucent.com>
76034
76035         * lib/dirfd.c, lib/dirfd.h: New files.
76036         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
76037
76038         * lib/hash.c (hash_print) [TESTING]: Clean up.
76039
76040 2001-10-22  Paul Eggert  <eggert@twinsun.com>
76041
76042         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
76043         to avoid a warning if -Wall.
76044
76045 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
76046
76047         * README: New file
76048         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
76049         (per RMS's instructions, this is now the canonical source)
76050         * lgpl/, gpl/: New directories.
76051
76052 2001-10-21  Paul Eggert  <eggert@twinsun.com>
76053
76054         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76055
76056 2001-10-21  Jim Meyering  <meyering@lucent.com>
76057
76058         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76059         this code would end up calling gettext even in packages built
76060         with --disable-nls.
76061         * lib/getopt.c (_): Likewise.
76062         * lib/regex.c (_): Likewise.
76063
76064 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76065
76066         * m4/error.m4 (jm_PREREQ_ERROR):
76067         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76068         AC_FUNC_STRERROR_R does that.
76069         Check for strerror declaration.
76070
76071         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76072         are supposed to have them these days.
76073         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76074         Merge changes from latest Autoconf CVS.
76075         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76076         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76077         POSIX decided to standardize on the int flavor of strerror_r.
76078
76079 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76080
76081         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76082         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76083         Use strerror_r that is only a macro, even if it is not a function.
76084         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76085         (private_strerror): Use prototypes, not old-style function definition.
76086         (print_errno_message): New function.
76087         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76088         char*-flavored one.
76089         (error_tail, error, error_at_line): Use it.
76090
76091 2001-10-11  Jim Meyering  <meyering@lucent.com>
76092
76093         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76094         and quote_n (1, ... to avoid clobbering a buffer.
76095
76096 2001-10-05  Jim Meyering  <meyering@lucent.com>
76097
76098         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76099         hash-pjw.h.
76100         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76101         * lib/hash-pjw.h: New file.
76102
76103 2001-09-30  Jim Meyering  <meyering@lucent.com>
76104
76105         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76106         `struct fsstat' has the `f_fstypename' member.
76107         Use that to define FS_TYPE, which is now used to make
76108         the getfsstat link test tighter.
76109
76110 2001-09-30  Jim Meyering  <meyering@lucent.com>
76111
76112         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76113         Include <sys/ucred.h>, for Apple Darwin.
76114         Include sys/mount.h and sys/fs_types.h only if available.
76115         (FS_TYPE): Define.
76116         (read_filesystem_list): Use FS_TYPE.
76117
76118 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76119
76120         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76121         a boolean context.
76122
76123 2001-09-29  Jim Meyering  <meyering@lucent.com>
76124
76125         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76126         [one-argument getmntent function]): Include stdio.h before mntent.h.
76127         SunOS 4.1.x needs it for the declaration of `FILE'.
76128         Patch by Volker Borchert.
76129
76130         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76131         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76132         sys/fs_types.h, and make the link-test for getfsstat guard #include
76133         directives with appropriate #if HAVE_*_H tests so that we can
76134         detect getfsstat on Apple Darwin1.3.7 systems.
76135         Reported by Nelson Beebe.
76136         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76137
76138 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76139
76140         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76141         #defines strtoimax.  Also treat the other strto* functions
76142         like strtoimax.
76143
76144         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76145         Check for strtoul and strtoumax,
76146         as those declarations are made even in the signed case.
76147         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76148         Likewise, for strtol and strtoimax.
76149
76150 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76151
76152         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76153         #defines strtoimax.  Also treat the other strto* functions
76154         like strtoimax.
76155
76156         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76157         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76158         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76159
76160 2001-09-26  Jim Meyering  <meyering@lucent.com>
76161
76162         Most macros in unlocked-io.h had the wrong number of arguments.
76163         * lib/gen-uio: New script.
76164         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76165         * lib/unlocked-io.hin: Remove file.
76166         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76167         rather than trying to embed it here.
76168         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76169         Reported by Padraig Brady.
76170
76171 2001-09-25  Volker Borchert  <bt@teknon.de>
76172
76173         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76174         `result'.
76175
76176 2001-09-24  Jim Meyering  <meyering@lucent.com>
76177
76178         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76179
76180 2001-09-23  Jim Meyering  <meyering@lucent.com>
76181
76182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76183         instead of the mere test for existence of mntent.h.  The latter
76184         would get a false-positive on AIX 3.4 systems.
76185         In the outer getmntent if-block, don't die if neither of the getmntent
76186         tests succeeds.  Instead, just fall through and continue with the
76187         remaining tests.
76188
76189 2001-09-23  Jim Meyering  <meyering@lucent.com>
76190
76191         * lib/mountlist.c: Remove useless parentheses in #if directives.
76192         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76193         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76194
76195 2001-09-22  Jim Meyering  <meyering@lucent.com>
76196
76197         * m4/gettext.m4: New file.  From gettext.
76198         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76199         * m4/progtest.m4: Likewise
76200         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76201         * m4/glibc21.m4: Likewise.
76202
76203         * m4/libintl.m4: Remove.  No longer used.
76204
76205 2001-09-22  Jim Meyering  <meyering@lucent.com>
76206
76207         * lib/localcharset.c: Update from latest gettext.
76208         * lib/config.charset: Likewise.
76209
76210 2001-09-20  Jim Meyering  <meyering@lucent.com>
76211
76212         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76213         strtoimax.
76214         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76215         strtoumax.
76216
76217 2001-09-20  Jim Meyering  <meyering@lucent.com>
76218
76219         * lib/xstrtol.c (strtoimax): Guard declaration with
76220         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76221         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76222         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76223         (strtoumax): Likewise, for completeness (it wasn't necessary).
76224
76225 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76226
76227         * lib/strtoimax.c (HAVE_LONG_LONG):
76228         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76229         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76230         to work around bug in IBM C compiler.
76231
76232 2001-09-17  Jim Meyering  <meyering@lucent.com>
76233
76234         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76235         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76236         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76237         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76238         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76239         whenever the right hand side need not be expanded by the shell.
76240
76241 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76242
76243         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76244         library.  It's not correct, as some older glibcs are buggy.
76245         fnmatch wasn't fixed until glibc 2.2.
76246
76247         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76248         special shell magic here.
76249
76250 2001-09-16  Jim Meyering  <meyering@lucent.com>
76251
76252         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76253         * m4/jm-macros.m4: Require it.
76254
76255 2001-09-16  Jim Meyering  <meyering@lucent.com>
76256
76257         * lib/mkdir.c: New file.
76258
76259 2001-09-15  Jim Meyering  <meyering@lucent.com>
76260
76261         * m4/jm-macros.m4: Check for help2man.
76262
76263 2001-09-11  Jim Meyering  <meyering@lucent.com>
76264
76265         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76266         The body, by Paul Eggert, was moved here from configure.in.
76267         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76268
76269 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76270
76271         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76272         (jm_PREREQ): Use it.
76273
76274 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76275
76276         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76277         Use ssize_t, not int, to store result of readlink.
76278         Check for ssize_t overflow as well as size_t overflow,
76279         as POSIX says the result of readlink is implementation-defined
76280         when ssize_t overflows.
76281         Remove unnecessary cast to char*.
76282         Use free+malloc instead of realloc, as the storage doesn't need
76283         to be preserved and it's clearer and can be more efficient that way.
76284         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76285         * lib/xreadlink.h (xreadlink): Update prototype.
76286
76287 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76288
76289         * lib/xgetcwd.c: Revert some of the previous change; intead,
76290         fix the HAVE_GETCWD_NULL code to behave more like the
76291         !HAVE_GETCWD_NULL code used to.
76292
76293         Include "xalloc.h".
76294         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76295         invoke xalloc_die.
76296
76297 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76298
76299         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76300         sys/param.h, as pathmax.h includes them.
76301
76302 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76303
76304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76305         (jm_PREREQ_XGETCWD): New macro.
76306
76307         * m4/getcwd.m4: New file.
76308
76309 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76310
76311         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76312         like the HAVE_GETCWD_NULL code.
76313         Include pathmax.h if not HAVE_GETCWD.
76314         Do not include xalloc.h.
76315         (INITIAL_BUFFER_SIZE): New symbol.
76316         Do not use xmalloc / xrealloc, since the caller is responsible for
76317         handling errors.  Preserve errno around `free' during failure.
76318         Do not overrun buffer when using getwd.
76319
76320 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76321
76322         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76323         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76324         getcwd (NULL, 0).
76325
76326 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76327
76328         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76329         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76330         spotted by Jim Meyering.
76331
76332 2001-09-03  Jim Meyering  <meyering@lucent.com>
76333
76334         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76335         failure.
76336
76337 2001-09-02  Jim Meyering  <meyering@lucent.com>
76338
76339         * lib/error.c: Update from GNU libc.
76340
76341 2001-09-01  Jim Meyering  <meyering@lucent.com>
76342
76343         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76344         Used by df.
76345
76346 2001-09-01  Jim Meyering  <meyering@lucent.com>
76347
76348         * lib/xreadlink.c: New file.
76349         * lib/xreadlink.h: New file.
76350         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76351         xreadlink.h.
76352
76353         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76354         doesn't conflict with sparc Solaris 7's definition in
76355         /usr/include/sys/int_types.h.
76356
76357         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76358         files.
76359         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76360         and strncasecmp as r-values.  Unixware didn't have declarations.
76361
76362 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76363
76364         * lib/xstrtol.h: Add copyright notice.
76365         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76366         LONGINT_INVALID_SUFFIX_CHAR.
76367
76368 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76369
76370         * lib/xstrtol.c (strtoimax): New decl.
76371
76372 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76373
76374         * lib/xgetcwd.c: Don't include pathmax.h.
76375         Include stdlib.h and unistd.h if available.
76376         Include xalloc.h.
76377         (xmalloc, xstrdup, free): Remove decls.
76378         (xgetcwd): Don't assume sizes fit in unsigned.
76379         Check for overflow when computing sizes.
76380         Simplify reallocation code.
76381
76382 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76383
76384         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76385         a directory's st_size can have an arbitrary value, so the old
76386         usage could waste an arbitrary amount of memory.  All uses
76387         changed.
76388         * lib/savedir.h: Update prototype.
76389
76390 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76391
76392         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76393
76394         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76395         old strtoimax.c.
76396
76397         Also, make the following further changes to make this file's
76398         configuration more similar to that of strtol.c:
76399         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76400         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76401         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76402         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76403         changed to signed values.
76404
76405         And make the following changes as well:
76406         Fix copyright notice, as 1999 was missing.
76407         (verify): New macro.
76408         (strtoimax): Check sizes at compile-time, not run-time.
76409         Prefer strtol to strtoll if both work.
76410         (main): Remove; it was not that useful and was a pain to maintain.
76411
76412         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76413
76414 2001-08-31  Jim Meyering  <meyering@lucent.com>
76415
76416         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76417         Use an initial, malloc'd, buffer of length 128 rather than
76418         a statically allocated one of length 1024.
76419
76420 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76421
76422         Simplify code, partly by assuming autoconf 2.52 semantics.
76423
76424         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76425
76426         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76427         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76428         All uses removed.
76429         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76430         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76431         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76432         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76433         jm_AC_HEADER_INTTYPES_H.
76434         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76435
76436         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76437
76438         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76439         Quote first arg of AC_DEFUN.
76440         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76441         since they are needed to parse the include file even if we need
76442         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76443         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76444         but with opposite signedness.
76445
76446 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76447
76448         Merge 'exclude' changes from tar 1.13.22.
76449         This fixes one or two unlikely storage allocation overflow bugs,
76450         but doesn't change user-visible behavior otherwise.
76451
76452 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76453
76454         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76455         (jm_PREREQ_EXCLUDE): New macro.
76456
76457 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76458
76459         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76460         tm to be declared.
76461
76462 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76463
76464         * lib/hash.c: Remove '2001' from copyright notice.
76465
76466 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76467
76468         * lib/full-write.h: New file.
76469         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76470         * lib/full-write.c: Correct credits, as cccp.c no longer
76471         exists and anyway it was so heavily changed from the old cccp
76472         code as to be unrecognizable.  Include full-write.h.
76473         (full_write) Return size_t, with short writes meaning failure.
76474         All callers changed.  This fixes a bug with large buffers
76475         on 64-bit hosts.
76476         * lib/utime.c: Include full-write.h.
76477
76478 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76479
76480         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76481         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76482         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76483         Include if available.
76484         (<xalloc.h>): Include
76485         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76486         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76487         collide with FNM macros.
76488         (struct patopts): New struct.
76489         (struct exclude): Use it, as exclude patterns now come with options.
76490         (new_exclude): Support above changes.
76491         (new_exclude, add_exclude_file):
76492         Initial size must now be a power of two to simplify overflow checking.
76493         (free_exclude, fnmatch_no_wildcards): New function.
76494         (excluded_filename): No longer requires options arg, as the options
76495         are determined by add_exclude.  Now returns bool, not int.
76496         (excluded_filename, add_exclude):
76497         Add support for the fancy new exclusion options.
76498         (add_exclude, add_exclude_file): Now takes int options arg.
76499         Check for arithmetic overflow when computing sizes.
76500         (add_exclude_file): xrealloc might modify errno, so don't
76501         realloc until after errno might be used.
76502
76503         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76504         New macros.
76505         (free_exclude): New decl.
76506         (add_exclude, add_exclude_file): Now takes int options arg.
76507         (excluded_filename): No longer requires options arg, as the options
76508         are determined by add_exclude.  Now returns bool, not int.
76509
76510 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76511
76512         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76513
76514 2001-08-27  Jim Meyering  <meyering@lucent.com>
76515
76516         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76517
76518         * lib/version-etc.c (N_): Remove definition.
76519         Revert most of last change.
76520         Instead, simply don't mark the `Copyright...' string for translation.
76521         Based on advice from Paul Eggert.
76522
76523         * lib/strtoxmax.c: Tweak comment.
76524
76525 2001-08-26  Jim Meyering  <meyering@lucent.com>
76526
76527         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76528
76529         * m4/xstrtoimax.m4: New file.
76530         * m4/xstrtoumax.m4: Add comments explaining why we
76531         AC_REPLACE_FUNCS(strtol).
76532
76533 2001-08-26  Jim Meyering  <meyering@lucent.com>
76534
76535         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76536         of copyright with `%s' so translators don't get an untranslated
76537         message in 2002.
76538         (COPYRIGHT_YEAR): Define.
76539         (version_etc): Use fprintf rather than fputs.
76540         Suggestion from Ulrich Drepper.
76541
76542         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76543
76544         * lib/strtoll.c: New file, from GNU libc.
76545         * lib/xstrtoimax.c: New file.
76546
76547         * lib/xstrtol.h: Add xstrtoimax.
76548         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76549         * lib/strtoimax.c: New file.  Likewise, but first define
76550         STRTOUXMAX_SIGNED.
76551
76552         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76553         ...
76554         * lib/strtoxmax.c: ... then renamed to this.
76555
76556 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76557
76558         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76559         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76560         (jm_AC_TYPE_INTMAX_T): New macro.
76561         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76562
76563         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76564
76565         * m4/longlong.m4: Renamed from ulonglong.m4.
76566         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76567         * m4/uintmax_t.m4: Removed.
76568
76569 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76570
76571         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76572         Port to Solaris 8, where 'sed' requires a space after the 'r'
76573         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76574         Redirect output to $tmp just once.
76575
76576 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76577
76578         * lib/addext.c (<errno.h>): Include.
76579         (errno): Declare if not defined.
76580         (addext): Work correctly when pathconf returns -1 and leaves
76581         errno alone because there is no limit.  Also, work even if
76582         pathconf returns a value greater than SIZE_MAX.
76583
76584 2001-08-12  Jim Meyering  <meyering@lucent.com>
76585
76586         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76587         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76588         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76589         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76590         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76591         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76592         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76593         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76594         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76595         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76596         utime.m4, utimes.m4, xstrtoumax.m4:
76597         Quote the first argument in each use of AC_DEFUN.
76598
76599 2001-08-12  Jim Meyering  <meyering@lucent.com>
76600
76601         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76602         Simply `return getcwd (NULL, 0);'.
76603         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76604         Use 1300 as initial value for length, not PATH_MAX.
76605
76606         * lib/pathmax.h: Clean up cpp syntax.
76607
76608 2001-08-12  Jim Meyering  <meyering@lucent.com>
76609
76610         * lib/gettimeofday.c: New file.
76611         * lib/gtod.h: New file.
76612         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76613
76614 2001-08-05  Jim Meyering  <meyering@lucent.com>
76615
76616         * m4/jm-macros.m4: Require autoconf-2.52.
76617
76618 2001-08-04  Jim Meyering  <meyering@lucent.com>
76619
76620         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76621         stmt, to get in sync with glibc.
76622
76623 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76624
76625         The following changes are from gettext 0.10.39 as maintained by
76626         Bruno Haible.
76627
76628         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76629         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76630         with inverted sense.  All uses changed.
76631
76632         * lib/mbswidth.c: Don't include <limits.h>.
76633         Include <stdlib.h> and <string.h> unconditionally.
76634         (iswcntrl, mbsinit, ISCNTRL): New macros.
76635         (mbsnwidth): Use K&R style function declarations.
76636         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76637         can optimize it when MB_CUR_MAX == 1.
76638         The width of control characters is zero, not 1.
76639
76640 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76641
76642         The following changes are from gettext 0.10.39 as maintained by
76643         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76644
76645         * m4/codeset.m4: Upgrade to serial AM1.
76646         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76647         all uses changed.  Quote first arg of AC_DEFUN.
76648         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76649
76650         * m4/iconv.m4: Upgrade to serial AM2.
76651         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76652         Add --with-libconv-prefix.
76653         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76654         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76655         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76656         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76657         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76658
76659         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76660         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76661         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76662         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76663         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76664         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76665         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76666         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76667         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76668
76669         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76670         string.h any more.
76671
76672         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76673         not the default value.
76674
76675         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76676         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76677         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76678         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76679         Also check for iswcntrl, used for wcwidth fallback.
76680         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76681         to Autoconf 2.13.
76682
76683 2001-08-03  Jim Meyering  <meyering@lucent.com>
76684
76685         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76686         as it was in the original.  Reported by Paul Eggert.
76687
76688 2001-07-16  Jim Meyering  <meyering@lucent.com>
76689
76690         * m4/gettimeofday.m4: New file.
76691         Prompted by a report from Bernhard Baehr.
76692
76693 2001-07-15  Jim Meyering  <meyering@lucent.com>
76694
76695         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76696         stuff. Now it's in ../Makefile.cfg.
76697
76698 2001-07-15  Jim Meyering  <meyering@lucent.com>
76699
76700         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76701         (BUILT_SOURCES): Add unlocked-io.h.
76702         (io_functions): Define.
76703         (unlocked-io.h): New rule.
76704         (DISTCLEANFILES): Add unlocked-io.h.
76705         (all-local): Depend on unlocked-io.h, to ensure it is created.
76706
76707         * lib/unlocked-io.hin: New file
76708
76709         * lib/regex.c: Update from glibc.
76710
76711 2001-07-05  Jim Meyering  <meyering@lucent.com>
76712
76713         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76714         recommendation.
76715         (libfetish_a_SOURCES): Put all .h files here instead.
76716         Remove a thus-exposed (better checks in automake) duplicate and
76717         two unnecessary .h files.
76718
76719 2001-07-04  Jim Meyering  <meyering@lucent.com>
76720
76721         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76722         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76723         distcheck failure.
76724
76725 2001-07-02  Jim Meyering  <meyering@lucent.com>
76726
76727         The following changes were prompted by suggestions from Bruno Haible.
76728
76729         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76730         is now generated.
76731         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76732         definition of EXTRA_DIST.
76733         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76734         ensure that the generated file is created/updated whenever the list
76735         of $(unlocked_functions) is changed.
76736         (jm-glibc-io.m4): New rule.
76737         (unlocked-io.h): New rule -- currently unused.
76738
76739 2001-06-24  Jim Meyering  <meyering@lucent.com>
76740
76741         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76742         unmatched right bracket, rather than kludging it with an extra,
76743         falsely-matching quote in a comment.  Patch by Akim Demaille.
76744
76745 2001-06-11  Jim Meyering  <meyering@lucent.com>
76746
76747         * lib/regex.c: Update from GNU libc.
76748
76749 2001-05-27  Jim Meyering  <meyering@lucent.com>
76750
76751         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76752         Check for ut_type in struct utmp.
76753
76754 2001-05-27  Jim Meyering  <meyering@lucent.com>
76755
76756         * lib/readutmp.h (UT_TYPE): Define.
76757
76758 2001-05-24  Jim Meyering  <meyering@lucent.com>
76759
76760         * lib/argmatch.c: Include "quote.h".
76761         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76762         quote function.  Reported by Göran Uddeborg.
76763
76764 2001-05-22  Jim Meyering  <meyering@lucent.com>
76765
76766         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76767         now that we use the package-supplied version unconditionally.
76768         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76769
76770 2001-05-21  Jim Meyering  <meyering@lucent.com>
76771
76772         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76773         shell syntax errors.
76774
76775 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76776
76777         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76778
76779 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76780
76781         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76782         Don't bother to check library strftime, since
76783         we'll be using our own my_strftime function anyway.
76784         Define my_strftime instead of strftime.
76785
76786 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76787
76788         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76789         which is not yet declared.
76790
76791 2001-05-15  Jim Meyering  <meyering@lucent.com>
76792
76793         * m4/regex.m4: Use proper quoting so brackets appear in the test
76794         program.
76795         Reported by, and with help from, Bruno Haible.
76796
76797 2001-05-13  Jim Meyering  <meyering@lucent.com>
76798
76799         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76800         undefined.
76801
76802 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76803
76804         dirname code cleanup.  base_name now behaves more compatibly
76805         with POSIX basename when given file names that have trailing
76806         slashes, and similarly for dir_name.  Add new primitives
76807         base_len and dir_len.  Put the directory-name-related decls
76808         into dirname.h.
76809
76810         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76811         * lib/backupfile.c (base_name): Likewise.
76812         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76813         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76814         * lib/makepath.c (strip_trailing_slashes): Likewise.
76815         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76816         ISSLASH): Likewise.
76817         * lib/rename.c (strip_trailing_slashes): Likewise.
76818         * lib/same.c (base_name): Likewise.
76819         * lib/stripslash.c (ISSLASH): Likewise.
76820
76821         * lib/addext.c: Include <dirname.h> after size_t is defined.
76822         * lib/backupfile.c: Likewise.
76823
76824         * lib/addext.c (addext): Use base_len to trim redundant
76825         trailing slashes instead of doing it ourselves.
76826         But do not trim the last slash if it is not redundant.
76827
76828         * lib/backupfile.c (find_backup_file_name,
76829         max_backup_version): Use base_len instead of rolling it ourselves.
76830         Handle the case of "" and (on DOS) "C:" correctly.
76831
76832         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76833         needed. Include <string.h>, <dirname.h>.
76834         (base_name): Allow file names ending in slashes, other than names
76835         that are all slashes.  In this case, return the basename followed
76836         by the slashes.  This is more general, and can be used in places
76837         where the original base_name purposely had an assertion failure.
76838         (base_len): New function.
76839
76840         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76841         Do not include <assert.h>; no longer needed.
76842         Include xalloc.h.
76843         (memrchr): Remove decl.
76844         (dir_name_r): Remove.
76845         (dir_len): Renamed from dirlen.  All callers changed.
76846         Rewrite in terms of base_name, for simplicity and consistency.
76847         (dir_name): Never return NULL.  All callers changed.
76848         Do not include <stdlib.h> in test program; no longer needed.
76849         return 0; is fine for test program.
76850
76851         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76852         New macros.
76853         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76854
76855         * lib/path-concat.c (path_concat): Use base_len to compute
76856         base length, not strlen; this means we cannot rely on memcpy
76857         to null-terminate.
76858
76859         * lib/same.c (STREQ): Remove.
76860         (same_name): Handle the case where the basename ends in trailing '/'.
76861
76862         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76863         a slash was stripped.  Do not strip the last slash after a
76864         file system prefix.
76865
76866 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76867
76868         * lib/Makefile.am (libfetish_a_SOURCES):
76869         Add strftime.c, since we now compile it on all hosts.
76870
76871         * lib/strftime.c (my_strftime):
76872         Define to nstrftime if emacs, but only if my_strftime is not defined.
76873         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76874         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76875         Add one more extra argument: a nanoseconds value.
76876         All uses changed.
76877         (ns): New macro.
76878         (my_strftime function): Add %N format.
76879         (emacs_strftimeu): Renamed from emacs_strftime,
76880         with extra ut argument.
76881
76882 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76883
76884         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76885
76886 2001-04-21  Jim Meyering  <meyering@lucent.com>
76887
76888         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76889         doesn't interfere.
76890
76891 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76892
76893         * m4/ftruncate.m4: Check for chsize.
76894         Link with ftruncate.o unconditionally if ftruncate is missing.
76895         This was required when cross-compiling to i586-mingw32msvc.
76896
76897 2001-04-08  Jim Meyering  <meyering@lucent.com>
76898
76899         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76900         recomputed; that's necessary when the offset spans a DST transition.
76901         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76902
76903 2001-04-02  Jim Meyering  <meyering@lucent.com>
76904
76905         * lib/regex.h, regex.c: Update from GNU libc.
76906
76907 2001-03-24  Jim Meyering  <meyering@lucent.com>
76908
76909         * m4/jm-macros.m4: Require autoconf-2.49d.
76910
76911 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76912
76913         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76914
76915 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76916
76917         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76918
76919 2001-03-17  Jim Meyering  <meyering@lucent.com>
76920
76921         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76922         now that the version in autoconf is equivalent.
76923         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76924
76925         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76926         Suggestion from Akim Demaille.
76927
76928         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76929         (jm_PREREQ_TEMPNAME): New function.
76930
76931 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76932
76933         * lib/tempname.c (uint64_t): Define to uintmax_t if
76934         not defined, and if UINT64_MAX is not defined.
76935         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76936         Reported by John David Anglin.
76937
76938 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76939
76940         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76941         resolve alias if codeset is empty.
76942         * lib/config.charset (BeOS): Use wildcard syntax.
76943
76944 2001-03-13  Jim Meyering  <meyering@lucent.com>
76945
76946         * lib/path-concat.c (path_concat)
76947         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76948         concatenating e.g., `C:' and `foo'.
76949         From Bruno Haible.
76950
76951 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76952
76953         * lib/localcharset.c (locale_charset): Don't use
76954         setlocale(LC_CTYPE,NULL). Don't return NULL.
76955         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76956
76957 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76958
76959         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76960         support for DOS/DJGPP.
76961
76962 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76963
76964         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76965         lacks mkstemp.  Compile our own tempname.c if we compile our own
76966         mkstemp.c, as mkstemp relies on tempname.
76967
76968 2001-03-01  Jim Meyering  <meyering@lucent.com>
76969
76970         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76971         AH_VERBATIM really does output its argument verbatim.
76972
76973 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76974
76975         * lib/Makefile.am (libfetish_a_SOURCES):
76976         Add dup-safer.c, fopen-safer.c.
76977         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76978
76979         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76980         * lib/unistd-safer.h: New files.
76981
76982 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76983
76984         The mkstemp replacement is taken from glibc 2.2.2, with some
76985         portability fixes for use outside glibc, as follows:
76986
76987         * lib/tempname.c (struct_stat64): New macro.
76988         (direxists, __gen_tempname): Use it.
76989         This avoids a portability problem with Solaris 8.
76990
76991         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76992         (<stddef.h>, <stdint.h>, <string.h>):
76993         Include only if STDC_HEADERS || _LIBC.
76994         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76995         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76996         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76997         (__set_errno): Define this macro if <errno.h> doesn't.
76998         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76999         Define these macros if <stdio.h> doesn't.
77000         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
77001         Define these macros if <sys/stat.h>
77002         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
77003         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
77004         __xstat64): Define if not _LIBC.
77005         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
77006         (__gen_tempname): Invoke gettimeofday only if
77007         HAVE_GETTIMEOFDAY || _LIBC;
77008         otherwise, fall back on plain "time".
77009         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
77010
77011         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
77012
77013         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
77014
77015 2001-02-18  Paul Eggert  <eggert@twinsun.com>
77016
77017         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
77018
77019 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77020
77021         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
77022         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
77023         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
77024         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
77025
77026 2001-02-17  Paul Eggert  <eggert@twinsun.com>
77027
77028         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
77029         Remove workaround macros for hosts that have mbrtowc but not
77030         mbstate_t, as we now insist on proper declarations for both
77031         before using mbrtowc.
77032
77033 2001-02-17  Jim Meyering  <meyering@lucent.com>
77034
77035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
77036         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
77037         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
77038         UnixWare 7.1.1.
77039
77040         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
77041         rather than AC_CACHE_VAL.
77042
77043 2001-02-17  Jim Meyering  <meyering@lucent.com>
77044
77045         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
77046         around included file name.
77047
77048         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
77049
77050         * lib/strftime.c: Update from GNU libc (the only changes were to
77051         comments).
77052
77053 2001-02-17  Jim Meyering  <meyering@lucent.com>
77054
77055         * lib/regex.c: Update from libc.
77056
77057 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77058
77059         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77060         clash.
77061
77062 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77063
77064         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77065         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77066         Reported by Mark Hounschell via Paul Eggert.
77067
77068 2001-02-07  Jim Meyering  <meyering@lucent.com>
77069
77070         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77071
77072 2001-02-05  Jim Meyering  <meyering@lucent.com>
77073
77074         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77075         it includes the patch required for `large file' support with at least
77076         HP-UX's 10.20 /bin/cc.
77077
77078 2001-02-03  Jim Meyering  <meyering@lucent.com>
77079
77080         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77081         AS_IF, now that it works once again (mysteriously).
77082         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77083
77084 2001-01-30  Jim Meyering  <meyering@lucent.com>
77085
77086         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77087         * m4/chown.m4: Rename conftestchown to conftest.chown.
77088         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77089         s/conftestdir2/conftest.d2/.
77090         * m4/utimes.m4: s/conftestdata/conftest.data/
77091         Inspired by Pavel Roskin's change in autoconf.
77092
77093 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77094
77095         * lib/config.charset: Update for FreeBSD 4.2.
77096
77097 2001-01-27  Jim Meyering  <meyering@lucent.com>
77098
77099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77100         a use of AS_IF.
77101         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77102
77103 2001-01-26  Jim Meyering  <meyering@lucent.com>
77104
77105         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77106         quotearg.c includes it.
77107
77108 2001-01-26  Jim Meyering  <meyering@lucent.com>
77109
77110         * lib/quotearg.c: Include stddef.h.
77111         * lib/quote.c: Include stddef.h.
77112         Reported by Axel Kittenberger.
77113
77114         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77115         line in double quotes so that it evokes a better diagnostic.
77116         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77117         Reported by Axel Kittenberger.
77118
77119 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77120
77121         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77122         as if it was a `charset'.
77123
77124 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77125
77126         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77127         has const.
77128
77129 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77130
77131         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77132         to avoid a warning.  Add back 'const' to inptr.
77133
77134 2001-01-20  Jim Meyering  <meyering@lucent.com>
77135
77136         Be sure that headers are checked before used in code compiled
77137         for the type checks.
77138         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77139         In place of that, invoke jm_CHECK_ALL_TYPES.
77140         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77141         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77142         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77143         The check for ssize_t was mistakenly run before the test for unistd.h.
77144
77145         The configure-time check for stdbool.h was missing.
77146         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77147         (jm_PREREQ_HASH): New function.
77148
77149 2001-01-17  Jim Meyering  <meyering@lucent.com>
77150
77151         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77152         for autoconf-2.49c.
77153         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77154
77155 2001-01-16  Jim Meyering  <meyering@lucent.com>
77156
77157         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77158         From Bruno Haible.
77159
77160 2001-01-14  Jim Meyering  <meyering@lucent.com>
77161
77162         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77163         foo and bar.  Create conftestdir/ in the script, not in the C code.
77164         Remove directories in the script, not in the C code.
77165         Remove conftestdir{,2} before trying to create the directory.
77166         Make the entire configure script fail if the mkdir fails.
77167
77168 2001-01-14  Jim Meyering  <meyering@lucent.com>
77169
77170         * lib/rename.c: New file.  From Volker Borchert.
77171         Include stdlib.h, string.h or strings.h, and xalloc.h.
77172         Use strip_trailing_slashes rather than open-coding it.
77173
77174 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77175
77176         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77177
77178 2001-01-03  Jim Meyering  <meyering@lucent.com>
77179
77180         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77181         of local `inptr' to avoid warning with some system declarations of
77182         iconv.
77183
77184 2001-01-02  Volker Borchert  <bt@teknon.de>
77185
77186         * m4/rename.m4: New file.
77187         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77188
77189 2001-01-01  Jim Meyering  <meyering@lucent.com>
77190
77191         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77192         even on systems with utmpx.h.  It's necessary for the declaration of
77193         utmp's ut_user member.  Reported by Andreas Jaeger.
77194
77195         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77196         available. They are required for the declarations of getgrgid and
77197         getpwuid resp.
77198         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77199         Reported by Andreas Jaeger.
77200
77201 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77202
77203         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77204         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77205         so `make install' also works in VPATH builds.
77206
77207 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77208
77209         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77210         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77211         can be used in subdirectories.
77212
77213 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77214
77215         * lib/modechange.c: Do not assume that mode_t uses the
77216         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77217         the other-execute bit of FOO even if S_IXOTH != 1.
77218
77219         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77220         WOTH, XOTH, ALLM): New macros.
77221         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77222          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77223         Use them.
77224         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77225         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77226         (mode_compile):
77227         No need to use uintmax_t; unsigned long is long enough.
77228         Don't bother to get suffix since we don't use it.
77229
77230 2000-12-26  Jim Meyering  <meyering@lucent.com>
77231
77232         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77233         better with autoheader.
77234
77235 2000-12-24  Jim Meyering  <meyering@lucent.com>
77236
77237         * lib/hash.c (is_prime): Return explicit boolean values.
77238         (hash_get_first): Return NULL to appease Irix5.6's 89.
77239         Reported by Nelson Beebe.
77240
77241 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77242
77243         * lib/localcharset.c (locale_charset): Add support for Win32.
77244
77245 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77246
77247         * lib/physmem.h, lib/physmem.c: New files.
77248
77249         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77250         (noinst_HEADERS): Add physmem.h.
77251
77252         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77253         't' for compatibility with Solaris 8 sort.
77254
77255 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77256
77257         * lib/config.charset: Add support for BeOS.
77258
77259 2000-12-17  Jim Meyering  <meyering@lucent.com>
77260
77261         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77262         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77263
77264 2000-12-16  Jim Meyering  <meyering@lucent.com>
77265
77266         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77267         N and M) would have treated it like `chown N:N FILE'.
77268
77269         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77270
77271 2000-12-16  Jim Meyering  <meyering@lucent.com>
77272
77273         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77274         SHELLS_FILE to a file name that's useful on djgpp systems.
77275         Include stdlib.h.
77276         (ADDITIONAL_DEFAULT_SHELLS): Define.
77277         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77278         Based mostly on a patch from Prashant TR.
77279
77280 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77281
77282         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77283         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77284         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77285
77286 2000-12-08  Andreas Schwab  <schwab@suse.de>
77287
77288         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77289         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77290
77291 2000-12-07  Jim Meyering  <meyering@lucent.com>
77292
77293         * lib/stripslash.c (ISSLASH): Define.
77294         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77295         `/'.
77296         From Prashant TR.
77297
77298         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77299         (dir_name_r): Declare this function as static.
77300         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77301         manifest itself on a name containing a mix of slashes and
77302         backslashes.
77303         Make this function work with names starting with a DOS-style
77304         drive letter and colon prefix.
77305         (dir_name): Append `.' if necessary.
77306         Based mostly on patches from Prashant TR and Eli Zaretskii.
77307
77308         * lib/dirname.h (dir_name_r): Remove prototype.
77309
77310 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77311
77312         * m4/off_t-format.m4: Remove this file.
77313         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77314
77315 2000-12-06  Jim Meyering  <meyering@lucent.com>
77316
77317         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77318         replacement strtoull, we may well need the replacement strtoul, too.
77319         Check for declarations of strtoul and strtoull.
77320         Check for strtol.  Mainly as a cue to cause automake to include
77321         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77322         Check for limits.h -- strtol.c needs it.
77323
77324 2000-12-05  Jim Meyering  <meyering@lucent.com>
77325
77326         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77327
77328 2000-12-04  Jim Meyering  <meyering@lucent.com>
77329
77330         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77331         Also include memory.h, stdlib.h, unistd.h if appropriate.
77332         Reported by Andreas Jaeger (conflicting declaration of malloc).
77333
77334 2000-12-02  Jim Meyering  <meyering@lucent.com>
77335
77336         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77337         * m4/jm-macros.m4 (jm_MACROS): require it.
77338
77339 2000-12-02  Jim Meyering  <meyering@lucent.com>
77340
77341         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77342
77343 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77344
77345         * lib/memrchr.c: Include <config.h> before any system include file.
77346
77347 2000-11-30  Jim Meyering  <meyering@lucent.com>
77348
77349         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77350
77351 2000-11-30  Jim Meyering  <meyering@lucent.com>
77352
77353         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77354
77355 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77356
77357         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77358
77359 2000-11-26  Jim Meyering  <meyering@lucent.com>
77360
77361         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77362
77363 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77364
77365         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77366         size of (size_t) -1; it's not portable.
77367
77368 2000-11-17  Jim Meyering  <meyering@lucent.com>
77369
77370         * lib/strstr.c: Update from GNU libc.
77371
77372 2000-11-17  Akim Demaille  <akim@epita.fr>
77373
77374         * lib/obstack.h: Formatting changes.
77375         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77376         prevent type checking.
77377         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77378         cast the value to (void *): assigning a `foo *' to a `void *'
77379         variable is valid.
77380         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77381
77382 2000-11-16  Jim Meyering  <meyering@lucent.com>
77383
77384         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77385
77386 2000-11-11  Jim Meyering  <meyering@lucent.com>
77387
77388         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77389
77390 2000-11-10  Jim Meyering  <meyering@lucent.com>
77391
77392         * lib/obstack.h: Update from GNU libc.
77393         * lib/obstack.c: Likewise.
77394
77395 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77396
77397         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77398
77399 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77400
77401         * lib/getusershell.c (setusershell): Use rewind rather than
77402         fseek/fseeko, to avoid configuration hassles with fseeko.
77403         Don't bother opening SHELLS_FILE if shellstream is NULL;
77404         it's not necessary.
77405
77406 2000-11-05  Jim Meyering  <meyering@lucent.com>
77407
77408         * lib/makepath.h (make_dir): Declare.
77409         * lib/makepath.c (make_dir): Remove `static' attribute.
77410         Tweak a comment.
77411
77412 2000-11-04  Jim Meyering  <meyering@lucent.com>
77413
77414         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77415
77416 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77417
77418         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77419         last one in a bucket, advance to the next bucket.
77420
77421 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77422
77423         * lib/fnmatch.c: Do not comment out all the code if we are using
77424         the GNU C library, because in some cases we are replacing buggy
77425         code in the GNU C library itself.
77426
77427 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77428
77429         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77430         (regex_compile): Catch bogus \(\1\).
77431
77432 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77433
77434         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77435         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77436         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77437
77438 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77439
77440         * lib/error.h, getline.h, modechange.h:
77441         Remove "2000" from Copyright line, as the file hasn't been
77442         changed this year other than in the copyright notice.
77443
77444         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77445         was changed this year.
77446
77447 2000-10-29  Jim Meyering  <meyering@lucent.com>
77448
77449         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77450         renaming.
77451         * m4/ls-mntd-fs.m4: Likewise
77452
77453 2000-10-29  Jim Meyering  <meyering@lucent.com>
77454
77455         * lib/xstat.in: Fix grammar in comment.
77456
77457 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77458
77459         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77460         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77461         doesn't define __restrict_arr.
77462
77463 2000-10-28  Jim Meyering  <meyering@lucent.com>
77464
77465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77466         (jm_PREREQ_MEMCHR): New function.
77467
77468 2000-10-28  Jim Meyering  <meyering@lucent.com>
77469
77470         * lib/memchr.c: Update from libc.
77471         Adjust for portability:
77472         [HAVE_STDLIB_H]: Include stdlib.h.
77473         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77474         Undef __memchr, too.
77475         [!weak_alias]: Define __memchr to memchr.
77476
77477         * lib/regex.c: Update from libc.
77478         * lib/regex.h: Likewise.
77479         * lib/getopt1.c: Likewise.
77480         * lib/memcmp.c: Likewise.
77481
77482         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77483         Avoid using fseek, when possible -- it's broken by design.
77484         Patch by Ulrich Drepper.
77485
77486 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77487
77488         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77489         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77490         Giving in to popular pressure to shut up the compiler with casts.
77491
77492 2000-10-26  Jim Meyering  <meyering@lucent.com>
77493
77494         * lib/strftime.c: Update from libc.
77495
77496 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77497
77498         * regex.c: More `unsigned char' -> `re_char' changes.
77499         Also change several `int' into `re_wchar_t'.
77500         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77501         (PUSH_FAILURE_POINTER): Don't cast any more.
77502         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77503         We want GCC to complain, since this piece of code makes
77504         re_match non-reentrant, which *should* be fixed.
77505         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77506         (EXTEND_BUFFER): Use RETALLOC.
77507         (SET_LIST_BIT): Don't cast.
77508         (re_wchar_t): New type.
77509         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77510         that those two functions will always properly return.
77511         (IMMEDIATE_QUIT_CHECK): Cast to void.
77512         (analyse_first): Use recursion rather than an explicit stack.
77513         (re_compile_fastmap): Can't fail anymore.
77514         (re_search_2): Don't check re_compile_fastmap for failure.
77515         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77516         Now also sets the new value (passed in a new argument).
77517         (re_match_2_internal): Use it.
77518         Also, use a new var `reg' of type size_t when looping through regs
77519         rather than reuse the inappropriate `mcnt'.
77520
77521 2000-10-25  Jim Meyering  <meyering@lucent.com>
77522
77523         * lib/obstack.c: Update from libc.
77524
77525 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77526
77527         * regex.c (regex_compile): Change the way of handling a range from
77528         a char less than 256 to a char not less than 256.
77529
77530 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77531
77532         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77533         NT-Emacs only.
77534         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77535         so that re_search functions only quit when callers expect them to.
77536
77537 2000-10-23  Jim Meyering  <meyering@lucent.com>
77538
77539         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77540         wrong.  That set_locale call must not have any side effects.
77541         From Paul Eggert.
77542
77543 2000-10-22  Jim Meyering  <meyering@lucent.com>
77544
77545         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77546         [CYCLIC]: Remove now-unused definition.
77547
77548         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77549         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77550         Suggestion from Ulrich Drepper.
77551
77552 2000-10-21  Jim Meyering  <meyering@lucent.com>
77553
77554         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77555         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77556         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77557
77558 2000-10-21  Jim Meyering  <meyering@lucent.com>
77559
77560         * lib/dirname.c (memrchr): Declare if necessary.
77561         (dir_name): Remove the restriction that there be no
77562         trailing slashes.  Now, this code skips past them, effectively
77563         ignoring them.
77564         [TEST_DIRNAME] (main): New unit tests.
77565
77566         * lib/memrchr.c: New file from GNU libc.
77567         Undef __memrchr, too.
77568         [!weak_alias]: Define __memrchr to memrchr.
77569         Guard weak_alias use with `#ifdef weak_alias'.
77570
77571 2000-10-21  Jim Meyering  <meyering@lucent.com>
77572
77573         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77574         (dir_name): Use dir_name_r.
77575         * lib/dirname.h (dir_name_r): Declare it.
77576
77577 2000-10-17  Jim Meyering  <meyering@lucent.com>
77578
77579         * lib/quote.h (PARAMS): Define and use.
77580         Reported by Akim Demaille.
77581
77582         * lib/getopt.c: Update from libc.
77583
77584 2000-10-16  Jim Meyering  <meyering@lucent.com>
77585
77586         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77587         setlocale.
77588         From Jan Fedak.
77589
77590 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77591
77592         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77593
77594 2000-09-25  Jim Meyering  <meyering@lucent.com>
77595
77596         * lib/md5.h (rol): Define (from GnuPG).
77597
77598         * lib/sha.c: Give credit (GnuPG) where due.
77599         (M): Use rol rather than open-coding it.
77600         Add a FIXME comment.
77601
77602 2000-09-21  Jim Meyering  <meyering@lucent.com>
77603
77604         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77605         Reported by Michael Stone.
77606
77607 2000-09-20  Jim Meyering  <meyering@lucent.com>
77608
77609         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77610         (noinst_HEADERS): Add sha.h.
77611         Based on code from Scott G. Miller and from GnuPG.
77612
77613 2000-09-18  Jim Meyering  <meyering@lucent.com>
77614
77615         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77616         LIBS. Otherwise, everyone ends up linking with -lelf for some
77617         configurations.
77618         Reported by Mike Stone.
77619
77620 2000-09-15  Jim Meyering  <meyering@lucent.com>
77621
77622         * lib/regex.c: Update from libc.
77623
77624 2000-09-10  Jim Meyering  <meyering@lucent.com>
77625
77626         * lib/getopt.c (_getopt_internal): Update from glibc.
77627
77628 2000-09-09  Jim Meyering  <meyering@lucent.com>
77629
77630         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77631         think it should be used as a general replacement for isascii.
77632         * lib/fnmatch.c: Likewise.
77633         * lib/mbswidth.c: Likewise
77634         * lib/regex.c: Likewise.
77635
77636         Don't use atoi.
77637         * lib/userspec.c: Include sys/param.h and limits.h.
77638         Include xstrtol.h.
77639         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77640         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77641         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77642         UID, GID.  Check range.
77643
77644 2000-09-06  Jim Meyering  <meyering@lucent.com>
77645
77646         * lib/getopt.c (_getopt_internal): Update from glibc.
77647
77648 2000-08-30  Jim Meyering  <meyering@lucent.com>
77649
77650         * lib/strftime.c: Merge in changes from GNU libc.
77651
77652 2000-08-26  Jim Meyering  <meyering@lucent.com>
77653
77654         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77655         * m4/fpending.m4: New file.
77656
77657 2000-08-26  Jim Meyering  <meyering@lucent.com>
77658
77659         * lib/closeout.c: Include "__fpending.h".
77660         (close_stdout_status): Return right away if there's nothing to flush.
77661
77662         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77663         * lib/__fpending.c: New file.
77664         * lib/__fpending.h: New file.
77665
77666 2000-08-20  Jim Meyering  <meyering@lucent.com>
77667
77668         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77669         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77670         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77671
77672 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77673
77674         Improve fileutils installation on systems where running
77675         programs (like install) can't be unlinked.
77676         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77677         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77678
77679 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77680
77681         Standardize on "memory exhausted" instead of "Memory exhausted"
77682         or "virtual memory exhausted".
77683         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77684         "virtual memory exhausted".
77685         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77686         our own message.
77687         * lib/userspec.c (parse_user_spec): Likewise.
77688         * lib/bumpalloc.h: comment fix
77689         * lib/same.c, userspec.c: Include xalloc.h.
77690
77691         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77692         not char *const and pointing to a constant array.
77693         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77694         (xrealloc): Comment fix.
77695
77696         * lib/userspec.c (parse_user_spec):
77697         Don't translate a message until just before returning,
77698         to avoid unnecessary translation.
77699
77700 2000-08-07  Jim Meyering  <meyering@lucent.com>
77701
77702         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77703         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77704         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77705         getgroups.c, gethostname.c, getopt.h, group-member.c,
77706         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77707         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77708         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77709         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77710         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77711         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77712         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77713         yesno.c: Back out Copyright date changes for each file with no change
77714         this year.  This eases coordination with other programs using the same
77715         source code modules.  From Paul Eggert.
77716
77717 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77718
77719         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77720         not char, for compatibility with glibc 2.1.3 strftime.c.
77721
77722 2000-08-03  Greg McGary  <greg@mcgary.org>
77723
77724         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77725         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77726         (EXTEND_BUFFER): Use them.
77727
77728 2000-08-01  Jim Meyering  <meyering@lucent.com>
77729
77730         * lib/dirname.c (ISSLASH): Define.
77731         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77732         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77733         both `\' and `/' may be use as path separators.
77734         Based on a patch from Prashant TR.
77735
77736 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77737
77738         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77739         slot vector a constant, since it might get modified.
77740
77741 2000-07-31  Jim Meyering  <meyering@lucent.com>
77742
77743         * lib/xmalloc.c: Use `virtual memory exhausted', not
77744         `Memory exhausted'.
77745         * lib/obstack.c (print_and_abort): Likewise.
77746
77747 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77748
77749         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77750         buffer, so that the caller can always quote one small
77751         component of a "memory exhausted" message in slot 0.
77752         From a suggestion by Jim Meyering.
77753
77754 2000-07-30  Jim Meyering  <meyering@lucent.com>
77755
77756         * lib/makepath.c (make_path): Quote the other instance, too.
77757
77758         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77759         (STATIC_BUF_SIZE): Define.
77760         (quotearg_n_options): Use only statically allocated storage when
77761         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77762         than STATIC_BUF_SIZE.
77763
77764 2000-07-29  Jim Meyering  <meyering@lucent.com>
77765
77766         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77767         * lib/dirname.c (dir_name): Likewise.
77768
77769         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77770         `/'.
77771
77772         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77773         (dir_name): Assert that there are no trailing slashes.
77774
77775 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77776
77777         * lib/mbswidth.h (mbswidth): Add a flags argument.
77778         (mbswidth): New declaration.
77779         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77780         * lib/mbswidth.c (mbswidth): Add a flags argument.
77781         (mbsnwidth): New function.
77782
77783 2000-07-24  Jim Meyering  <meyering@lucent.com>
77784
77785         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77786
77787 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77788
77789         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77790
77791 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77792
77793         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77794         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77795         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77796         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77797         invoke multibyte primitives.
77798
77799 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77800
77801         * lib/quotearg.c:
77802         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77803         so that mbstate_t is always defined.
77804
77805         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77806         be 1 in at least one GCC installation, and this configuration
77807         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77808         performance on hosts that have mbrtowc but have only unibyte
77809         locales, but I assume these hosts are rare.
77810
77811 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77812
77813         * lib/mbswidth.c (_XOPEN_SOURCE):
77814         Don't define; this causes problems on Solaris 7.
77815         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77816
77817 2000-07-23  Jim Meyering  <meyering@lucent.com>
77818
77819         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77820         too: getgrgid, getpwuid, getuid.
77821
77822 2000-07-23  Jim Meyering  <meyering@lucent.com>
77823
77824         * lib/basename.c (base_name): Add an assertion.
77825
77826 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77827
77828         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77829         shadow its mbsinit function.
77830
77831 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77832
77833         * lib/mbswidth.h: New file.
77834         * lib/mbswidth.c: New file.
77835         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77836         (noinst_HEADERS): Add mbswidth.h.
77837
77838 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77839
77840         * lib/config.charset: Add support for FreeBSD. Improve support for
77841         HP-UX and IRIX 6.
77842
77843 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77844
77845         * m4/mbswidth.m4: New file.
77846         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77847
77848 2000-07-15  Jim Meyering  <meyering@lucent.com>
77849
77850         * lib/makepath.c: Include quote.h.
77851         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77852         corresponding argument in a `quote (...)' call.
77853         Give better diagnostics.
77854
77855         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77856         (noinst_HEADERS): Add quote.h.
77857
77858         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77859         from tar's src/misc.c.
77860         * lib/quote.h: New file.  Prototypes for same.
77861
77862 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77863
77864         From a suggestion by Bruno Haible.
77865         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77866         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77867         to decide whether to define the BeOS workaround macro;
77868         this adjusts to the change to AC_MBSTATE_T.
77869
77870 2000-07-14  Jim Meyering  <meyering@lucent.com>
77871
77872         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77873         jm_AC_TYPE_UINTMAX_T.
77874
77875 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77876
77877         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77878
77879         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77880         quotearg_buffer_restyled): Add support for
77881         clocale_quoting_style.  Undo previous change to
77882         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77883         and "{RIGHT QUOTATION MARK}" msgids.
77884
77885 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77886
77887         From a suggestion by Bruno Haible.
77888         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77889         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77890         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77891         and mbstate_t, to a single-part test that simply defines mbstate_t.
77892         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77893         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77894
77895 2000-07-10  Jim Meyering  <meyering@lucent.com>
77896
77897         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77898
77899         * m4/gnu-source.m4: Output to confdefs.h directly.
77900         Suggestion from Akim Demaille.
77901
77902 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77903
77904         The old behavior of quoting `like this' doesn't look good with
77905         newer, ISO-style fonts.  See:
77906         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77907
77908         Instead, quote "like this" by default.  Let the translator
77909         tailor the locale-specific quoting behavior by providing
77910         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77911
77912         * lib/quotearg.c (N_): New macro.
77913         (gettext_default): New function.
77914         (quotearg_buffer_restyled): Use
77915         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77916         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77917
77918 2000-07-09  Jim Meyering  <meyering@lucent.com>
77919
77920         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77921         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77922
77923         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77924         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77925
77926 2000-07-09  Jim Meyering  <meyering@lucent.com>
77927
77928         * lib/Most files: Update copyright dates to include 2000.
77929
77930 2000-07-08  Jim Meyering  <meyering@lucent.com>
77931
77932         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77933         if not defined.
77934         (xgethostname): Remove now-unnecessary #ifdef.
77935         Move declaration of `err' into loop where it's used.
77936
77937 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77938         and Bruno Haible  <haible@clisp.cons.org>
77939
77940         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77941         only if the test for an object-type mbstate_t fails.  This
77942         prevents us from mistakenly reporting that mbstate_t is a
77943         system object type after we "#define mbstate_t int" to work
77944         around its lack.
77945
77946 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77947         and Bruno Haible  <haible@clisp.cons.org>
77948
77949         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77950
77951 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77952
77953         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77954         to strerror_r.
77955         Include <ctype.h> for use of isalpha.
77956
77957 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77958
77959         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77960         by allocating a larger buffer. Test the gethostname return value for
77961         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77962         returns an error and ENAMETOOLONG isn't defined.
77963
77964 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77965
77966         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77967         dimension.
77968
77969 2000-07-04  Jim Meyering  <meyering@lucent.com>
77970
77971         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77972         of the deprecated AC_CHECKING.
77973
77974 2000-07-04  Jim Meyering  <meyering@lucent.com>
77975
77976         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77977         Reported by Bruno Haible.
77978
77979 2000-07-04  Jim Meyering  <meyering@lucent.com>
77980
77981         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77982         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77983         lacks mbrtowc.
77984
77985 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77986
77987         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77988         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77989
77990 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77991         and Bruno Haible  <haible@clisp.cons.org>
77992
77993         * lib/quotearg.c (mbrtowc):
77994         Assign to *pwc, and return 1 only if result is nonzero.
77995         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77996
77997 2000-07-03  Jim Meyering  <meyering@lucent.com>
77998
77999         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
78000
78001 2000-07-03  Jim Meyering  <meyering@lucent.com>
78002
78003         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
78004         This is necessary to get a definition of e.g., UTMP_FILE on
78005         HP-UX 10.20.
78006         From Bob Proulx.
78007
78008 2000-07-02  Jim Meyering  <meyering@lucent.com>
78009
78010         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
78011
78012         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
78013         AC_LIBOBJ(function_name).
78014         * m4/chown.m4: Likewise.
78015         * m4/fnmatch.m4: Likewise.
78016         * m4/ftruncate.m4: Likewise.
78017         * m4/getgroups.m4: Likewise.
78018         * m4/getline.m4: Likewise.
78019         * m4/group-member.m4: Likewise.
78020         * m4/jm-macros.m4: Likewise.
78021         * m4/lstat.m4: Likewise.
78022         * m4/malloc.m4: Likewise.
78023         * m4/memcmp.m4: Likewise.
78024         * m4/nanosleep.m4: Likewise.
78025         * m4/putenv.m4: Likewise.
78026         * m4/realloc.m4: Likewise.
78027         * m4/regex.m4: Likewise.
78028         * m4/stat.m4: Likewise.
78029         * m4/strftime.m4: Likewise.
78030
78031 2000-07-02  Jim Meyering  <meyering@lucent.com>
78032
78033         * lib/quotearg.c (mbstate_t): Don't define here.
78034
78035 2000-07-02  Jim Meyering  <meyering@lucent.com>
78036
78037         * lib/nanosleep.c (SIGCONT): Define if not already defined.
78038
78039 2000-07-01  Jim Meyering  <meyering@lucent.com>
78040
78041         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
78042
78043 2000-07-01  Jim Meyering  <meyering@lucent.com>
78044
78045         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
78046         problem.
78047
78048 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78049
78050         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
78051         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
78052
78053 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78054
78055         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78056         per change in ../m4/ls-mntd-fs.m4.
78057         (read_filesystem_list): Ignore symbolic links.
78058
78059 2000-06-29  Jim Meyering  <meyering@lucent.com>
78060
78061         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78062         for declaration of strcmp.
78063
78064         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78065
78066         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78067         Avoid warning by casting result to `char *' to remove `const'.
78068
78069 2000-06-28  Jim Meyering  <meyering@lucent.com>
78070
78071         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78072         included by quotearg.c, for which we perform this test.  From
78073         Bruno Haible.
78074
78075 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78076
78077         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78078         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78079         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78080
78081 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78082
78083         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78084
78085 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78086
78087         savedir now sets errno on failure and invokes xmalloc to get memory.
78088         Fix a couple of other minor bugs while we're at it.
78089
78090         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78091         (NAMLEN): Remove macro.
78092         (malloc, realloc): Remove decls.
78093         (stpcpy): Likewise.
78094         ("xalloc.h"): Include.
78095         (NAME_SIZE_DEFAULT): New macro.
78096         (savedir): Use xmalloc / xrealloc to allocate memory.
78097         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78098         Skip "" directory entries.
78099         Use strlen to calculate directory entry length, since the old method
78100         is rarely used these days and isn't worth supporting.
78101         Don't use a pointer after freeing it.
78102         Check for integer overflow when calculating allocation size.
78103         Use memcpy to copy entries, instead of stpcpy.
78104         Set errno properly when returning NULL.
78105         Check for readdir error.
78106
78107 2000-06-26  Jim Meyering  <meyering@lucent.com>
78108
78109         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78110
78111 2000-06-25  Jim Meyering  <meyering@lucent.com>
78112
78113         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78114         Linux header bug when _XOPEN_SOURCE is defined to 500.
78115
78116 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78117
78118         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78119         deficiency.
78120
78121 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78122
78123         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78124         Include xalloc.h.
78125         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78126
78127 2000-06-24  Jim Meyering  <meyering@lucent.com>
78128
78129         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78130         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78131         for which strerror does return char*, but which lacks a conveniently
78132         accessible declaration of the function.  If the compile-test says
78133         strerror_r doesn't work, then resort to a `run'-test that works on
78134         BeOS and segfaults on DEC Unix.
78135
78136 2000-06-24  Jim Meyering  <meyering@lucent.com>
78137
78138         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78139
78140 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78141
78142         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78143         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78144
78145 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78146
78147         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78148         (mbrtowc, mbstate_t): Define substitutes if
78149         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78150         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78151         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78152
78153 2000-06-23  Jim Meyering  <meyering@lucent.com>
78154
78155         * m4/afs.m4: Add missing AC_MSG_RESULT.
78156         Reported by Bruno Haible.
78157
78158         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78159         Suggestion from Bruno Haible.
78160
78161 2000-06-23  Jim Meyering  <meyering@lucent.com>
78162
78163         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78164
78165 2000-06-21  Jim Meyering  <meyering@lucent.com>
78166
78167         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78168
78169 2000-06-21  Jim Meyering  <meyering@lucent.com>
78170
78171         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78172         (noinst_HEADERS): Add getstr.h.
78173
78174         * lib/getline.c (getstr): Move into a separate file.
78175         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78176         the following changes: new parameter, delim2; both delim[12]
78177         parameters have type `int', not `char'.  The latter would lose
78178         with 8-bit delimiters.
78179         * lib/getstr.h: New file.
78180
78181 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78182
78183         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78184         than 1024, return a memory chunk of least possible size, instead
78185         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78186         Use free/xmalloc instead of xrealloc to avoid copying for very long
78187         paths.
78188
78189 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78190
78191         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78192         the empty string.
78193
78194 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78195
78196         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78197         address, not strdup.  Include <stdlib.h> and don't declare free().
78198
78199 2000-06-19  Jim Meyering  <meyering@lucent.com>
78200
78201         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78202
78203 2000-06-18  Jim Meyering  <meyering@lucent.com>
78204
78205         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78206
78207         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78208         `checking whether...' message to be consistent with that of the
78209         lstat test.
78210
78211 2000-06-18  Jim Meyering  <meyering@lucent.com>
78212
78213         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78214         Besides, these days every porting target provides a mkdir function.
78215
78216         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78217         needed. (this snippet comes from src/system.h).
78218
78219 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78220
78221         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78222
78223 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78224
78225         * lib/human.c (adjust_value): New function.
78226         (human_readable_inexact): Apply rounding style even when
78227         printing approximate values.
78228
78229 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78230
78231         * lib/human.c (human_readable_inexact): Allow an input block
78232         size that is not a multiple of the output block size, and vice versa.
78233         Reported by Piergiorgio Sartor.
78234
78235 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78236
78237         * lib/getdate.y (get_date): Apply relative times after time
78238         zone indicator, not before.  Reported by Todd A. Jacobs.
78239
78240 2000-06-13  Jim Meyering  <meyering@lucent.com>
78241
78242         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78243
78244         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78245
78246 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78247
78248         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78249
78250 2000-06-12  Jim Meyering  <meyering@lucent.com>
78251
78252         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78253         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78254         optional argument.
78255         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78256         the optional argument, `lib'.
78257
78258 2000-06-08  Jim Meyering  <meyering@lucent.com>
78259
78260         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78261
78262 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78263
78264         Rewrite largefile configuration so that we don't need to run
78265         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78266         AC_CANONICAL_HOST in configure.in -- jmm]
78267
78268         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78269         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78270         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78271         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78272         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78273         All uses changed.
78274         Instead of inspecting the output of getconf, try to compile the
78275         test program without and with the macro definition.
78276         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78277         for getconf.  Instead, check for the needed flags by compiling
78278         test programs.
78279
78280 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78281
78282         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78283
78284 2000-06-04  Jim Meyering  <meyering@lucent.com>
78285
78286         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78287         SunOS 4.1.4 for which gid_t is an unsigned type.
78288
78289 2000-06-03  Jim Meyering  <meyering@lucent.com>
78290
78291         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78292         now that autoconf requires that.
78293
78294         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78295         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78296         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78297
78298 2000-06-03  Jim Meyering  <meyering@lucent.com>
78299
78300         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78301
78302 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78303
78304         * m4/glibc21.m4: New file.
78305         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78306
78307 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78308
78309         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78310         newer, don't install charset.alias.
78311         * lib/config.charset: Change the Linux/glibc rules so they become empty
78312         on glibc-2.1 or newer.
78313
78314 2000-06-02  Jim Meyering  <meyering@lucent.com>
78315
78316         * lib/mountlist.c: Back out last change.  Instead, do this...
78317         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78318         me_dummy member using the same `ignore'-testing code.
78319         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78320         fs_type strings.
78321         From Mark D. Roth.
78322
78323 2000-05-29  Jim Meyering  <meyering@lucent.com>
78324
78325         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78326         mounts with the `ignore' attribute.  Based on a patch from
78327         Mark D. Roth.
78328
78329 2000-05-28  Jim Meyering  <meyering@lucent.com>
78330
78331         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78332         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78333         * m4/stat.m4: Likewise.
78334         * m4/lstat.m4: Likewise.
78335         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78336
78337         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78338         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78339
78340 2000-05-26  Jim Meyering  <meyering@lucent.com>
78341
78342         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78343
78344 2000-05-24  Jim Meyering  <meyering@lucent.com>
78345
78346         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78347         autoconf requires that.
78348         * m4/lib-check.m4: Likewise.
78349         * m4/jm-macros.m4: Likewise.
78350         * m4/strftime.m4: Likewise.
78351
78352         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78353         AC_CHECK_DECLS, now that autoconf requires that.
78354
78355 2000-05-22  Jim Meyering  <meyering@lucent.com>
78356
78357         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78358         * m4/lstat.m4: Likewise.
78359
78360 2000-05-22  Jim Meyering  <meyering@lucent.com>
78361
78362         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78363
78364 2000-05-20  Jim Meyering  <meyering@lucent.com>
78365
78366         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78367         (jm_PREREQ): Use it.
78368
78369 2000-05-18  Jim Meyering  <meyering@lucent.com>
78370
78371         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78372         back, too, since it may have been modified by allocate_entry.
78373         (hash_delete): Rewrite to use neither the assignment operator
78374         nor the comma operator in an if-expression.
78375
78376 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78377
78378         * lib/closeout.c:
78379         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78380         Remove; no longer needed.
78381         "quotearg.h": Add include.
78382         (file_name): Do not bother to explicitly initialize to NULL; it's less
78383         efficient on some hosts.
78384         (close_stdout_status): Remove test as to whether stdout was already
78385         closed; it breaks for the case "echo x | sort >&-".
78386         Quote file name colons.
78387         Do not assume that _("write error") lacks format strings.
78388
78389 2000-05-15  Jim Meyering  <meyering@lucent.com>
78390
78391         * lib/version-etc.c (version_etc_copyright): Update the copyright
78392         string used in all --version output.
78393
78394 2000-05-14  Jim Meyering  <meyering@lucent.com>
78395
78396         * lib/closeout.c (close_stdout_set_file_name): New function.
78397         (close_stdout_status): Use new file-scoped global.
78398         Return right away if fstat says the stdout file descriptor is invalid.
78399         * lib/closeout.h (close_stdout_set_file_name): Declare.
78400
78401 2000-05-10  Jim Meyering  <meyering@lucent.com>
78402
78403         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78404         (close_stdout_set_status): New function.
78405         * lib/closeout.h (close_stdout_set_status): Declare.
78406
78407 2000-05-09  Jim Meyering  <meyering@lucent.com>
78408
78409         * m4/gettext.m4: Rename this...
78410         * m4/libintl.m4: ...to this.
78411
78412 2000-05-08  Jim Meyering  <meyering@lucent.com>
78413
78414         * lib/long-options.c: Don't include closeout.h.
78415         (parse_long_options): Don't call close_stdout for --version.
78416
78417 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78418
78419         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78420         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78421         2.1.3 bug.  This avoids a clash when files like regex.c define
78422         _GNU_SOURCE.
78423
78424 2000-05-06  Jim Meyering  <meyering@lucent.com>
78425
78426         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78427         (AC_REPLACE_FUNCS): Add strnlen.
78428
78429         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78430         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78431
78432         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78433         AC_SEARCH_LIBS call for nanosleep.
78434         (LIB_NANOSLEEP): Set and AC_SUBST.
78435
78436 2000-05-06  Jim Meyering  <meyering@lucent.com>
78437
78438         * lib/strnlen.c: Undefine __strnlen and strnlen.
78439         [!weak_alias]: Define __strnlen to strnlen.
78440
78441         * lib/atexit.c: New file, from libiberty.
78442
78443 2000-05-06  Jim Meyering  <meyering@lucent.com>
78444
78445         * lib/closeout.c (close_stdout_status): Also check for errors on the
78446         stderr stream.
78447
78448 2000-05-05  Jim Meyering  <meyering@lucent.com>
78449
78450         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78451         AC_SEARCH_LIBS call for clock_gettime.
78452         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78453
78454         * m4/search-libs.m4: Update from autoconf.
78455
78456         su doesn't work on Solaris 2.6.
78457         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78458         <shadow.h>.  Reported by Dragos Harabor.
78459
78460 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78461
78462         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78463         memcpy instead of xmalloc, xrealloc, path_concat.
78464         (locale_charset): Treat empty environment variables as absent.
78465         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78466
78467 2000-05-04  Jim Meyering  <meyering@lucent.com>
78468
78469         * lib/getopt.c: Update from glibc.
78470         * lib/obstack.c: Likewise.
78471         * lib/obstack.h: Likewise.
78472         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78473         file
78474
78475         * lib/regex.h: Likewise.
78476         * lib/strndup.c: Likewise.
78477         * lib/strnlen.c: New file, from glibc.
78478
78479 2000-05-03  Jim Meyering  <meyering@lucent.com>
78480
78481         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78482
78483 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78484
78485         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78486         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78487         compile-time test, rather than inspecting host and OS, to
78488         decide whether to define _LARGEFILE_SOURCE.
78489
78490 2000-05-01  Jim Meyering  <meyering@lucent.com>
78491
78492         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78493
78494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78495         Based on a patch from Bruno Haible.
78496
78497 2000-05-01  Jim Meyering  <meyering@lucent.com>
78498
78499         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78500
78501 2000-04-29  Jim Meyering  <meyering@lucent.com>
78502
78503         * lib/path-concat.c: Declare strdup only if it's not defined.
78504         * lib/canon-host.c: Likewise.
78505
78506 2000-04-28  Jim Meyering  <meyering@lucent.com>
78507
78508         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78509         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78510         is included first, then limits.h is included by locale.h by libintl.h.
78511         From John David Anglin.
78512
78513 2000-04-25  Jim Meyering  <meyering@lucent.com>
78514
78515         * lib/makepath.c (S_IRWXUGO): Define.
78516         (make_path): Always perform explicit chmod if MODE specifies any
78517         of the `special' permission bits.  Prompted by a bug report against
78518         install from Mate Wierdl and Joost van Baal.
78519
78520 2000-04-18  Jim Meyering  <meyering@lucent.com>
78521
78522         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78523         (jm_PREREQ): Use it.
78524
78525 2000-04-18  Jim Meyering  <meyering@lucent.com>
78526
78527         * lib/README: New file.
78528
78529         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78530         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78531
78532 2000-04-17  Jim Meyering  <meyering@lucent.com>
78533
78534         Get it right :-)
78535         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78536         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78537         Suggestion from Akim Demaille.
78538
78539 2000-04-17  Jim Meyering  <meyering@lucent.com>
78540
78541         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78542         the definition of it to rpl_strftime also defined-away the system's
78543         declaration.
78544
78545 2000-04-15  Jim Meyering  <meyering@lucent.com>
78546
78547         Use `C' to denote so-called `contiguous' files, the same way
78548         that tar does.
78549         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78550         (ftypelet): Use S_ISCTG.
78551         From Michael Deutschmann.
78552
78553 2000-04-14  Jim Meyering  <meyering@lucent.com>
78554
78555         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78556         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78557         clobbered.
78558
78559 2000-04-14  Jim Meyering  <meyering@lucent.com>
78560
78561         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78562
78563 2000-04-13  Jim Meyering  <meyering@lucent.com>
78564
78565         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78566         AH_VERBATIM to insert required #ifndef into config.h.in.
78567         Suggestion from Akim Demaille.
78568
78569 2000-04-12  Jim Meyering  <meyering@lucent.com>
78570
78571         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78572         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78573         Christian Krackowizer.
78574
78575         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78576         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78577         (AC_SYS_LARGEFILE): Require.
78578         (AM_C_PROTOTYPES): Require.
78579
78580 2000-04-08  Jim Meyering  <meyering@lucent.com>
78581
78582         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78583         names don't conflict.  Reported by Eli Zaretskii.
78584
78585 2000-04-07  Jim Meyering  <meyering@lucent.com>
78586
78587         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78588         sys/types.h, to work around system header problems on AIX 3.2.5.
78589         From Bruno Haible.
78590
78591 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78592
78593         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78594         bug.  Deal with the different error behavior of Irix iconv.
78595
78596 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78597
78598         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78599         IRIX if the installer said otherwise.
78600
78601 2000-04-05  Jim Meyering  <meyering@lucent.com>
78602
78603         Portability tweaks required for ultrix4.3.
78604         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78605         (jm_CHECK_DECLS): Add getutent to the list of functions.
78606         (_jm_DECL_HEADERS): Add utmpx.h.
78607         From John David Anglin.
78608
78609         * m4/strftime.m4: Back out the 2000-04-02 change.
78610         Instead of that change, simply undefine putenv in the test program.
78611
78612 2000-04-05  Jim Meyering  <meyering@lucent.com>
78613
78614         Portability tweaks required for ultrix4.3.
78615         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78616         getutent.
78617         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78618         * lib/canon-host.c: Declare strdup.
78619         * lib/path-concat.c: Likewise.
78620         From John David Anglin.
78621
78622 2000-04-04  Jim Meyering  <meyering@lucent.com>
78623
78624         Be more DOS 8.3-friendly.
78625         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78626         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78627         * lib/Makefile.am: Reflect renaming.
78628         Reported by Eli Zaretskii.
78629
78630         Use a temporary file name that won't clash with `charset.alias'
78631         in the DOS 8.3 name space.
78632         * lib/Makefile.am (charset_tmp): Define.
78633         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78634         (uninstall-local): Likewise.
78635         Reported by Eli Zaretskii.
78636
78637 2000-04-03  Jim Meyering  <meyering@lucent.com>
78638
78639         * m4/gettext.m4: Fix typo in comment.
78640
78641         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78642         textutils/configure.in).  Suggestion from Paul Eggert.
78643         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78644
78645 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78646
78647         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78648         variable in the shell rather than using putenv, which isn't
78649         portable.  This avoids the configure-time inter-test dependency
78650         on the potentially-renamed putenv function.
78651
78652 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78653
78654         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78655         before checking struct stat.st_blksize, so that
78656         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78657
78658 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78659
78660         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78661         since strftime.c uses HAVE_STRFTIME to decide whether to use
78662         the underlying strftime.
78663
78664 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78665
78666         * lib/time/strftime.c (my_strftime): Make sure we call the system
78667         strftime, not ourselves, when invoking the underlying strftime.
78668
78669 2000-03-24  Jim Meyering  <meyering@lucent.com>
78670
78671         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78672         (charset_alias): Define.
78673         (install-exec-local): Factor out common code.
78674         (uninstall-local): Split lines longer than 80.
78675         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78676         (SUFFIXES): Define.
78677         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78678         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78679
78680 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78681
78682         * lib/config.charset: Output a line containing "Packages using this
78683         file".
78684         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78685         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78686         ref-del.sed): New rules.
78687
78688 2000-03-17  Jim Meyering  <meyering@lucent.com>
78689
78690         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78691         Otherwise, include <strings.h>
78692
78693 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78694
78695         * lib/unicodeio.c (utf8_wctomb): New function.
78696         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78697         format instead of in UCS-4 with platform dependent endianness.
78698
78699 2000-03-10  Jim Meyering  <meyering@lucent.com>
78700
78701         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78702         From Marco Franzen.
78703
78704 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78705
78706         * lib/savedir.c (savedir): Work even if directory size is
78707         negative; this can happen with some screwy NFS configurations.
78708
78709 2000-03-06  Jim Meyering  <meyering@lucent.com>
78710
78711         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78712         if it's NULL (because we ran out of memory).  From Bruno Haible.
78713
78714 2000-03-05  Jim Meyering  <meyering@lucent.com>
78715
78716         * lib/localcharset.c ("path-concat.h"): Include.
78717         (get_charset_aliases): Use path_concat instead of ANSI string
78718         concatenation.
78719
78720         * lib/unicodeio.h (PARAMS): Define.
78721         Use it to guard prototype.
78722
78723 2000-03-04  Jim Meyering  <meyering@lucent.com>
78724
78725         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78726         for lib/localcharset.c.
78727
78728 2000-03-04  Jim Meyering  <meyering@lucent.com>
78729
78730         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78731         installing into it.
78732         (uninstall-local): Uncomment this rule so `make distcheck' works
78733         once again.
78734
78735         * lib/unicodeio.c (<errno.h>): Include it.
78736         (errno): Declare if not defined.
78737
78738         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78739
78740         * lib/config.charset: New version, incorporating remarks from a linux
78741         i18n mailing list.  From Bruno Haible.
78742
78743 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78744
78745         * m4/codeset.m4: New file.
78746         * m4/iconv.m4: New file.
78747         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78748
78749 2000-03-03  Jim Meyering  <meyering@lucent.com>
78750
78751         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78752
78753 2000-03-02  Jim Meyering  <meyering@lucent.com>
78754
78755         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78756         the messages come out on separate lines.
78757
78758         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78759         rather than jm_CHECK_DECLARATIONS.
78760         * m4/decl.m4: Remove now-unused file.
78761
78762         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78763         geteuid.
78764
78765 2000-03-02  Jim Meyering  <meyering@lucent.com>
78766
78767         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78768
78769 2000-03-01  Jim Meyering  <meyering@lucent.com>
78770
78771         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78772         * lib/unicodeio.c: Likewise.
78773
78774 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78775
78776         * lib/config.charset: New file.
78777         * lib/localcharset.c: New file.
78778         * lib/unicodeio.h, lib/unicodeio.c: New files.
78779         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78780         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78781         (noinst_HEADERS): Add unicodeio.h.
78782         (all-local, install-exec-local, charset.alias): New targets.
78783
78784 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78785
78786         * lib/quotearg.c (ALERT_CHAR): New macro.
78787         (quotearg_buffer_restyled): Use it.
78788
78789 2000-02-27  Jim Meyering  <meyering@lucent.com>
78790
78791         * m4/check-decl.m4: Add getenv to the list.
78792
78793 2000-02-27  Jim Meyering  <meyering@lucent.com>
78794
78795         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78796         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78797
78798         * lib/backupfile.c: Guard inclusion of stdlib.h with
78799         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78800         Declare malloc if needed.
78801
78802         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78803         `#ifndef HAVE_DECL..'
78804         now that autoconf always defines the HAVE_DECL_ symbols.
78805         * lib/human.c: Likewise.
78806         * lib/same.c: Likewise.
78807         * lib/strtoumax.c: Likewise.
78808
78809         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78810         declaration check was not run.
78811         * lib/hash.c: Likewise.
78812         * lib/human.c: Likewise.
78813         * lib/same.c: Likewise.
78814         * lib/strtoumax.c: Likewise.
78815
78816         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78817         `.', then first look up the entire `.'-containing string as a login
78818         name.
78819
78820 2000-02-23  Jim Meyering  <meyering@lucent.com>
78821
78822         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78823         in place of my hack.
78824
78825 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78826
78827         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78828         (textint): New typedef.
78829         (parser_control): Member year changed from int to textint.
78830         All uses changed.
78831         (YYSTYPE): Removed; replaced by %union with int and textint members.
78832         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78833         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78834         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78835         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78836         (date, number, to_year): Use width of number in digits, not its value,
78837         to determine whether it's a 2-digit year, or a 2-digit time.
78838         (yylex): Store number of digits of numeric tokens.
78839         Reported by John Kendall.
78840
78841         (parser_control): Changed from struct parser_control to typedef (for
78842         consistency).  All uses changed.
78843
78844         (tID): Removed; not used.
78845         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78846
78847 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78848
78849         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78850         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78851
78852 2000-02-12  Jim Meyering  <meyering@lucent.com>
78853
78854         * lib/userspec.c (ISDIGIT): Define it.
78855         (isdigit): Remove definition.
78856         (is_number): Use ISDIGIT, not isdigit.
78857         <libintl.h>: Include.
78858         (_ and N_): Define.
78859         (parse_user_spec): Mark translatable strings.
78860
78861 2000-02-10  Jim Meyering  <meyering@lucent.com>
78862
78863         With these changes, nanosleep.[ch] are finally enough like the other
78864         lib/* replacement files to compile on a few more losing systems.
78865
78866         * lib/nanosleep.h: Don't include config.h.
78867         Remove prototype from declaration of nanosleep.
78868         (PARAMS): Remove now-unneeded definition.
78869         * lib/nanosleep.c: #undef nanosleep.
78870         (rpl_nanosleep): Rename from nanosleep.
78871
78872 2000-02-10  Jim Meyering  <meyering@lucent.com>
78873
78874         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78875         gnu_nanosleep to rpl_nanosleep.
78876
78877 2000-02-09  Jim Meyering  <meyering@lucent.com>
78878
78879         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78880         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78881
78882 2000-02-08  Akim Demaille  <akim@epita.fr>
78883
78884         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78885         `[' and `]' and remove uses of `changequote'.
78886         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78887         (AC_SYS_LARGEFILE): Likewise.
78888         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78889         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78890         of changequote.
78891         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78892         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78893         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78894         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78895
78896 2000-02-05  Jim Meyering  <meyering@lucent.com>
78897
78898         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78899         Remove explicit use of AC_HEADER_TIME.  It is required by
78900         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78901         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78902         in autoconf whereby the expansion of the latter ended up preceding
78903         the expansion of its prerequisite, AC_HEADER_TIME.
78904         Reported by Volker Borchert.
78905
78906 2000-02-03  Jim Meyering  <meyering@lucent.com>
78907
78908         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78909
78910 2000-02-03  Jim Meyering  <meyering@lucent.com>
78911
78912         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78913         rather than with `#if HAVE_UTMPNAME'.
78914
78915 2000-02-02  Jim Meyering  <meyering@lucent.com>
78916
78917         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78918         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78919         Reported by Eli Zaretskii.
78920
78921 2000-02-01  Jim Meyering  <meyering@lucent.com>
78922
78923         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78924
78925 2000-01-31  Jim Meyering  <meyering@lucent.com>
78926
78927         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78928         functions.  Add the time.h and sys/time.h headers along with the
78929         AC_REQUIRE'ment of AC_HEADER_TIME.
78930
78931 2000-01-31  Jim Meyering  <meyering@lucent.com>
78932
78933         * lib/nanosleep.h (nanosleep): Guard declaration with
78934         `#if ! HAVE_DECL_NANOSLEEP'.
78935         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78936         the declaration in that vendor's sys/timers.h.
78937         Reported by Christian Krackowizer.
78938
78939         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78940         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78941         (ISPRINT): Likewise.
78942         Reported by Tom Tromey.
78943
78944 2000-01-30  Jim Meyering  <meyering@lucent.com>
78945
78946         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78947
78948         * m4/prereq.m4 (utmp_includes): Define.
78949         Check for ut_user and ut_name members in both struct utmpx
78950         and struct utmp.
78951
78952 2000-01-30  Jim Meyering  <meyering@lucent.com>
78953
78954         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78955         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78956         header files where only utmpx.ut_user is declared.
78957
78958         * lib/readutmp.h (UT_USER): Define.
78959
78960 2000-01-29  Jim Meyering  <meyering@lucent.com>
78961
78962         * m4/lib-check.m4: New file containing library-related checks from
78963         fileutils and sh-utils (textutils had none).
78964
78965 2000-01-28  Jim Meyering  <meyering@lucent.com>
78966
78967         * m4/perl.m4: Change format of warning message to look more like that
78968         from the missing script.  Suggestion from François Pinard.
78969
78970 2000-01-25  Jim Meyering  <meyering@lucent.com>
78971
78972         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78973         well as time.h in the compile check.
78974         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78975         Fix typo in cross-compiling case: s/yes/no/.
78976
78977 2000-01-23  Jim Meyering  <meyering@lucent.com>
78978
78979         * m4/jm-macros.m4: Move df-related tests here from
78980         fileutils/configure.in
78981
78982         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78983         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78984
78985         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78986         s/space/ac_fsusage_space/.
78987         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78988
78989         * m4/ftruncate.m4: New file (derived from part of
78990         fileutils/configure.in).
78991         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78992         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78993
78994         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78995         AC_SUBST these here, rather than just in sh-util/configure.in, so
78996         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78997         all the same.
78998         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78999         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
79000         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
79001         (AC_SUBST(POW_LIBM)): Likewise.
79002         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
79003
79004 2000-01-23  Jim Meyering  <meyering@lucent.com>
79005
79006         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
79007         obstack.c.
79008
79009 2000-01-22  Jim Meyering  <meyering@lucent.com>
79010
79011         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
79012
79013         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
79014
79015         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
79016         configure.in
79017         (AC_CHECK_HEADERS): Likewise for sh-utils.
79018         (AC_CHECK_HEADERS): Likewise for textutils.
79019         Merge the three lists of headers.
79020
79021         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
79022         from fileutils' configure.in.
79023
79024         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
79025         code. Moved tests into their own function (_jm_DECL_HEADERS) in
79026         check-decl.m4.
79027
79028         * m4/check-decl.m4: Use #if rather than #ifdef.
79029         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
79030         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
79031         (_jm_DECL_HEADERS): Define new function.
79032         (jm_CHECK_DECLARATIONS): Require it.
79033
79034 2000-01-22  Jim Meyering  <meyering@lucent.com>
79035
79036         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
79037         [! HAVE_DECL_STRTOULL]: Declare strtoull.
79038         Required for some AIX systems.  Reported by Christian Krackowizer.
79039         [TESTING] (main): New function.
79040
79041         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
79042         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
79043         letters.
79044
79045         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
79046         iswprint.
79047
79048         * lib/strverscmp.c (ISDIGIT): Define.
79049         (strverscmp): Use ISDIGIT, not isdigit.
79050
79051 2000-01-19  Jim Meyering  <meyering@lucent.com>
79052
79053         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79054         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79055         defines `struct timespec' in <sys/time.h>
79056
79057         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79058         Thanks to Akim for explaining.
79059
79060 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79061
79062         * lib/nanosleep.c (nanosleep):
79063         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79064         POSIX.1 doesn't require SA_INTERRUPT and some systems
79065         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79066         it's been part of POSIX.1 since day 1 (in 1988).
79067
79068 2000-01-17  Jim Meyering  <meyering@lucent.com>
79069
79070         * lib/interlock: Remove unused file.  Reported by François Pinard.
79071
79072 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79073
79074         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79075         alert, backslash, formfeed, and vertical tab unnecessarily in
79076         shell quoting style.
79077
79078 2000-01-16  Jim Meyering  <meyering@lucent.com>
79079
79080         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79081         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79082         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79083         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79084
79085 2000-01-16  Jim Meyering  <meyering@lucent.com>
79086
79087         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79088         because the latter didn't work.
79089
79090 2000-01-15  Jim Meyering  <meyering@lucent.com>
79091
79092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79093         (AC_REPLACE_FUNCS): Add memcpy and memset.
79094         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79095         Add strpbrk.
79096         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79097
79098 2000-01-12  Jim Meyering  <meyering@lucent.com>
79099
79100         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79101         (jm_PREREQ): Use it.
79102         (jm_PREREQ_READUTMP): New macro.
79103         (jm_PREREQ): Use it.
79104
79105 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79106
79107         Quote multibyte characters correctly.
79108         * m4/c-bs-a.m4: New file.
79109         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79110         (jm_PREREQ): Use it.
79111
79112 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79113
79114         * m4/uintmax_t.m4: Port to autoconf 2.13.
79115
79116 2000-01-08  Jim Meyering  <meyering@ascend.com>
79117
79118         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79119         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79120
79121 2000-01-04  Jim Meyering  <meyering@ascend.com>
79122
79123         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79124         jm_STRUCT_DIRENT_D_TYPE.
79125         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79126         jm_STRUCT_DIRENT_D_INO.
79127         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79128         jm_STRUCT_UTIMBUF.
79129         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79130         renamings.
79131         * m4/utime.m4: Likewise.
79132
79133         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79134         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79135
79136 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79137
79138         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79139         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79140
79141 2000-01-02  Jim Meyering  <meyering@ascend.com>
79142
79143         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79144         remember if this is necessary.
79145
79146 1999-12-26  Jim Meyering  <meyering@ascend.com>
79147
79148         * m4/jm-macros.m4: Use it here.
79149         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79150
79151 1999-12-23  Jim Meyering  <meyering@ascend.com>
79152
79153         * m4/jm-macros.m4: Check for clock_gettime (moved from
79154         fileutils/configure.in)
79155         Check for gettimeofday.
79156
79157 1999-12-20  Jim Meyering  <meyering@ascend.com>
79158
79159         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79160         autoconf-2.14a-1999-12-20.
79161
79162 1999-12-19  Jim Meyering  <meyering@ascend.com>
79163
79164         * m4/lstat-slash.m4: New file.
79165         * m4/jm-macros.m4: Use the new macro:
79166         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79167
79168 1999-12-07  Jim Meyering  <meyering@ascend.com>
79169
79170         * m4/perl.m4: Require that File::Compare be available, too.
79171         Too many systems seem to lack it.
79172
79173         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79174         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79175
79176 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79177
79178         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79179         problem with the QNX 4.25 shell, which doesn't propagate exit
79180         status of failed commands inside shell assignments.
79181
79182 1999-11-17  Jim Meyering  <meyering@ascend.com>
79183
79184         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79185
79186 1999-11-07  Jim Meyering  <meyering@ascend.com>
79187
79188         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79189
79190 1999-11-06  Jim Meyering  <meyering@ascend.com>
79191
79192         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79193         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79194
79195 1999-11-05  Jim Meyering  <meyering@ascend.com>
79196
79197         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79198         configure.in of textutils, fileutils, and sh-utils into this one
79199         (shared between those packages) file.
79200         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79201         AC_STRUCT_ST_BLKSIZE.
79202
79203 1999-11-03  Jim Meyering  <meyering@ascend.com>
79204
79205         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79206         of AC_CHECK_TYPE checks includes unistd.h.
79207         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79208         Suggestion from Akim Demaille.
79209
79210 1999-10-30  Jim Meyering  <meyering@ascend.com>
79211
79212         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79213         m4-quoted string.
79214         * m4/ls-mntd-fs.m4: Likewise.
79215         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79216         * m4/jm-winsz1.m4: Likewise.
79217
79218         * m4/const.m4: Remove file, since the fix made it into the experimental
79219         version of autoconf.
79220         * m4/mktime.m4: Likewise.
79221
79222         * m4/check-type.m4: Remove file, now that the latest version of
79223         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79224
79225         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79226         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79227         AC_CHECK_TYPE.
79228
79229 1999-10-04  Jim Meyering  <meyering@ascend.com>
79230
79231         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79232
79233 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79234
79235         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79236         2.95.1 bug with HP-UX 10.20.
79237
79238 1999-09-17  Jim Meyering  <meyering@ascend.com>
79239
79240         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79241         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79242         due to missing strdup (against sh-utils-2.0).
79243
79244 1999-08-29  Jim Meyering  <meyering@ascend.com>
79245
79246         * m4/jm-macros.m4: Require jm_BISON.
79247         * m4/bison.m4: New file.
79248
79249 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79250
79251         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79252         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79253
79254 1999-08-05  Jim Meyering  <meyering@ascend.com>
79255
79256         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79257         to avoid conflicts with `conftest' on 8+3 filesystems.
79258         Suggestion from Eli Zaretskii.
79259
79260 1999-08-04  Jim Meyering  <meyering@ascend.com>
79261
79262         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79263         fileutils and sh-utils (textutils's getline test was inadequate).
79264         (AM_FUNC_GETLINE): Run this test.
79265         (AC_CHECK_FUNCS): Check for getdelim.
79266         Reported by Bob Proulx.
79267
79268 1999-08-02  Jim Meyering  <meyering@ascend.com>
79269
79270         * m4/jm-macros.m4: Add a comment.
79271
79272 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79273
79274         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79275         <inttypes.h> defines strtoumax as a macro (and not as a
79276         function).
79277
79278 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79279
79280         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79281         that we can shift, multiply and divide unsigned long long
79282         values; Ultrix cc can't do it.
79283
79284 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79285
79286         * m4/mktime.m4: New file, which is a preview of what should appear
79287         in the next public autoconf release.
79288
79289 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79290
79291         * m4/lfs.m4: Remove this file.
79292         * m4/largefile.m4: New file.  It contains the old contents of
79293         lfs.m4, except that all names with prefix AC_LFS have been
79294         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79295         compatible with future autoconf versions.  Also, some minor m4
79296         quoting problems have been fixed.
79297
79298 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79299
79300         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79301         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79302         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79303         and simplify the shell code.
79304
79305 1999-08-01  Jim Meyering  <meyering@ascend.com>
79306
79307         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79308         m4.
79309
79310 1999-07-20  Jim Meyering  <meyering@ascend.com>
79311
79312         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79313
79314 1999-07-15  Jim Meyering  <meyering@ascend.com>
79315
79316         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79317
79318 1999-05-22  Jim Meyering  <meyering@ascend.com>
79319
79320         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79321
79322 1999-05-20  Jim Meyering  <meyering@ascend.com>
79323
79324         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79325         Add a colon after each `then' in case $4 is empty.
79326
79327 1999-05-16  Jim Meyering  <meyering@ascend.com>
79328
79329         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79330
79331 1999-05-10  Jim Meyering  <meyering@ascend.com>
79332
79333         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79334
79335         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79336         AC_FUNC_MKTIME.
79337
79338 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79339
79340         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79341
79342 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79343
79344         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79345         not CPPFLAGS, so that linking works correctly in IRIX.
79346
79347 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79348
79349         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79350
79351 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79352
79353         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79354         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79356         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79357         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79358
79359         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79360
79361 1999-04-20  Jim Meyering  <meyering@ascend.com>
79362
79363         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79364         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79365         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79366
79367 1999-04-18  Jim Meyering  <meyering@ascend.com>
79368
79369         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79370         * m4/jm-macros.m4: Use it.
79371
79372 1999-04-06  Jim Meyering  <meyering@ascend.com>
79373
79374         * m4/strftime.m4: Remove test for %f.
79375
79376 1999-03-29  Jim Meyering  <meyering@ascend.com>
79377
79378         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79379         superset of the AC_TYPE_* checks in the textutils, fileutils,
79380         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79381         AC_TYPE_PID_T.
79382
79383 1999-03-28  Jim Meyering  <meyering@ascend.com>
79384
79385         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79386         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79387         replaced e.g., in the *.sh files of the sh-utils.
79388
79389 1999-03-20  Jim Meyering  <meyering@ascend.com>
79390
79391         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79392         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79393         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79394
79395 1999-03-19  Jim Meyering  <meyering@ascend.com>
79396
79397         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79398
79399 1999-03-12  Jim Meyering  <meyering@ascend.com>
79400
79401         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79402
79403 1999-03-07  Jim Meyering  <meyering@ascend.com>
79404
79405         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79406         declared.
79407
79408 1999-02-17  Jim Meyering  <meyering@ascend.com>
79409
79410         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79411         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79412
79413 1999-02-07  Jim Meyering  <meyering@ascend.com>
79414
79415         * m4/group-member.m4: New file -- extracted from sh-utils'
79416         configure.in.
79417
79418         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79419         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79420
79421 1999-02-06  Jim Meyering  <meyering@ascend.com>
79422
79423         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79424         * m4/fnmatch.m4: Likewise.
79425         * m4/getgroups.m4: Likewise.
79426         * m4/lstat.m4: Likewise.
79427         * m4/malloc.m4: Likewise.
79428         * m4/putenv.m4: Likewise.
79429         * m4/realloc.m4: Likewise.
79430         * m4/regex.m4: Likewise.
79431         * m4/stat.m4: Likewise.
79432         * m4/strftime.m4: Likewise.
79433         Suggestion from Alain Magloire.
79434
79435         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79436         * m4/fnmatch.m4: Likewise.
79437         * m4/getgroups.m4: Likewise.
79438         * m4/getline.m4: Likewise.
79439         * m4/lstat.m4: Likewise.
79440         * m4/malloc.m4: Likewise.
79441         * m4/memcmp.m4: Likewise.
79442         * m4/putenv.m4: Likewise.
79443         * m4/realloc.m4: Likewise.
79444         * m4/regex.m4: Likewise.
79445         * m4/stat.m4: Likewise.
79446         * m4/strftime.m4: Likewise.
79447         Suggestion from Alain Magloire.
79448
79449         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79450         an argument.
79451
79452         * m4/regex.m4: Add a run-time Test for proper operation of
79453         re_compile_pattern.
79454
79455 1999-01-31  Jim Meyering  <meyering@ascend.com>
79456
79457         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79458
79459 1999-01-30  Jim Meyering  <meyering@ascend.com>
79460
79461         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79462
79463         * m4/jm-mktime.m4: Make this a wrapper around the official
79464         AM_FUNC_MKTIME rather than my private copy, now that the official one
79465         is up to date.
79466         * m4/mktime.m4: Remove file.
79467
79468         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79469         * m4/uptime.m4: Likewise.
79470         * m4/uintmax_t.m4: Likewise.
79471
79472 1999-01-28  Jim Meyering  <meyering@ascend.com>
79473
79474         * m4/jm-macros.m4: Use jm_AFS.
79475         * m4/afs.m4: New file (from fileutils' configure.in).
79476
79477         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79478         * m4/chown.m4: Likewise.
79479         * m4/d-ino.m4: Likewise.
79480         * m4/d-type.m4: Likewise.
79481         * m4/fnmatch.m4: Likewise.
79482         * m4/getgroups.m4: Likewise.
79483         * m4/gettext.m4: Likewise.
79484         * m4/jm-mktime.m4: Likewise.
79485         * m4/jm-winsz2.m4: Likewise.
79486         * m4/lcmessage.m4: Likewise.
79487         * m4/ls-mntd-fs.m4: Likewise.
79488         * m4/malloc.m4: Likewise.
79489         * m4/memcmp.m4: Likewise.
79490         * m4/putenv.m4: Likewise.
79491         * m4/realloc.m4: Likewise.
79492         * m4/st_mtim.m4: Likewise.
79493         * m4/strftime.m4: Likewise.
79494
79495 1999-01-16  Jim Meyering  <meyering@ascend.com>
79496
79497         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79498         (ARGMATCH_DIE_DECL): Define.
79499
79500 1999-01-12  Jim Meyering  <meyering@ascend.com>
79501
79502         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79503         Reported by Lars Hecking.
79504
79505 1999-01-10  Jim Meyering  <meyering@ascend.com>
79506
79507         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79508         gross kludge.
79509         * m4/inttypes_h.m4: Likewise.
79510         * m4/lstat.m4: Likewise.
79511         * m4/malloc.m4: Likewise.
79512         * m4/readdir.m4: Likewise.
79513         * m4/realloc.m4: Likewise.
79514         * m4/st_dm_mode.m4: Likewise.
79515         * m4/stat.m4: Likewise.
79516         * m4/utimbuf.m4: Likewise.
79517         * m4/utimes.m4: Likewise.
79518
79519         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79520         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79521         comments in config.h.in are meaningful.
79522
79523         * m4/jm-macros.m4: Require autoconf-2.13 here.
79524
79525         * m4/regex.m4: By default, don't use the included regex.c on systems
79526         with glibc 2.  Suggestion from Uli Drepper.
79527
79528 1999-01-02  Jim Meyering  <meyering@ascend.com>
79529
79530         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79531
79532 1998-12-18  Jim Meyering  <meyering@ascend.com>
79533
79534         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79535         Based on a suggestion from Lars Hecking.
79536
79537 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79538
79539         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79540
79541 1998-11-16  Jim Meyering  <meyering@ascend.com>
79542
79543         * m4/lfs.m4: Double-quote the `uname...` expression.
79544
79545 1998-11-14  Jim Meyering  <meyering@ascend.com>
79546
79547         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79548         * m4/stat.m4: Likewise.
79549
79550 1998-11-03  Jim Meyering  <meyering@ascend.com>
79551
79552         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79553         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79554
79555 1998-10-18  Jim Meyering  <meyering@ascend.com>
79556
79557         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79558
79559 1998-10-17  Jim Meyering  <meyering@ascend.com>
79560
79561         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79562         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79563         calls for those previously hard-coded headers.  Instead, take a new
79564         parameter.
79565         (jm_CHECK_DECLARATIONS): Reflect interface change.
79566         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79567         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79568
79569         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79570
79571 1998-10-14  Jim Meyering  <meyering@ascend.com>
79572
79573         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79574         instead of "TZ=America/Vancouver".  From Paul Eggert.
79575
79576 1998-10-11  Jim Meyering  <meyering@ascend.com>
79577
79578         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79579         This adds a test for a recently added compatibility fix for mktime.c.
79580         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79581
79582 1998-09-27  Jim Meyering  <meyering@ascend.com>
79583
79584         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79585
79586         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79587         ../configure.in, including a change from Gordon Matzigkeit to allow
79588         cross-compiling for the Hurd.
79589
79590         * m4/glibc.m4: New file/macro to test for the GNU C Library
79591         versions 1 and 2.  From Gordon Matzigkeit.
79592         Indent.
79593
79594 1998-09-21  Jim Meyering  <meyering@ascend.com>
79595
79596         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79597
79598 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79599
79600         Port nanosecond-resolution times to UnixWare 2.1.2 and
79601         pedantic Solaris 2.6.
79602
79603         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79604         AC_STRUCT_ST_MTIM.
79605         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79606         Generate name of ns member, instead of just 1 or undef.
79607         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79608
79609 1998-08-15  Jim Meyering  <meyering@ascend.com>
79610
79611         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79612         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79613         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79614         instead of jm_TYPE_SSIZE_T.
79615
79616 1998-08-12  Jim Meyering  <meyering@ascend.com>
79617
79618         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79619
79620 1998-08-02  Jim Meyering  <meyering@ascend.com>
79621
79622         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79623         in acconfig.h manually.
79624
79625 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79626
79627         * m4/st_mtim.m4: New file.
79628
79629 1998-07-28  Jim Meyering  <meyering@ascend.com>
79630
79631         * m4/utimes.m4: Undef stat.
79632
79633 1998-07-25  Jim Meyering  <meyering@ascend.com>
79634
79635         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79636         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79637
79638 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79639
79640         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79641         uid and gid actually remain unchanged.
79642
79643 1998-07-07  Jim Meyering  <meyering@ascend.com>
79644
79645         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79646
79647 1998-07-04  Jim Meyering  <meyering@ascend.com>
79648
79649         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79650         to prove that this macro can be used in packages without regex.c.
79651
79652 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79653
79654         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79655         is to be used.
79656
79657 1998-07-03  Jim Meyering  <meyering@ascend.com>
79658
79659         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79660
79661         * m4/gettext.m4: New file -- from gettext-0.10.35.
79662         * m4/lcmessage.m4: Likewise.
79663         * m4/progtest.m4: Likewise.
79664
79665         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79666         * m4/jm-macros.m4: Require the new macro.
79667
79668 1998-06-29  Jim Meyering  <meyering@ascend.com>
79669
79670         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79671         for the definition of NGROUPS (used in a system header included
79672         by sys/mount.h).
79673
79674 1998-06-28  Jim Meyering  <meyering@ascend.com>
79675
79676         * m4/ls-mntd-fs.m4: New file.
79677         * m4/fstypename.m4: New file.
79678
79679         * m4/jm-macros.m4: Require the new macro.
79680         * m4/jm-glibc-io.m4: New file.
79681
79682 1998-05-19  Jim Meyering  <meyering@ascend.com>
79683
79684         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79685         * m4/lchown.m4: New file.
79686
79687         * m4/Makefile.am.in: New file.
79688         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79689
79690 1998-05-14  Jim Meyering  <meyering@ascend.com>
79691
79692         * m4/Makefile.am (EXTRA_DIST): Add them.
79693         * m4/jm-macros.m4: New file.
79694         * m4/utimbuf.m4: New file.
79695
79696 1998-05-12  Jim Meyering  <meyering@ascend.com>
79697
79698         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79699
79700 1998-05-11  Jim Meyering  <meyering@ascend.com>
79701
79702         * m4/isc-posix.m4: New file.
79703
79704 1998-05-10  Jim Meyering  <meyering@ascend.com>
79705
79706         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79707
79708 1998-05-09  Jim Meyering  <meyering@ascend.com>
79709
79710         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79711         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79712         with automake.
79713
79714         * m4/ssize_t.m4: New file.
79715         * m4/mktime.m4: Remove file -- the new automake has this now.
79716
79717 1998-04-26  Jim Meyering  <meyering@ascend.com>
79718
79719         * m4/assert.m4: New file.
79720         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79721
79722 1998-04-05  Jim Meyering  <meyering@ascend.com>
79723
79724         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79725         (jm_PREREQ): Use it here.
79726
79727 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79728
79729         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79730         in acconfig.h.
79731
79732 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79733
79734         * m4/prereq.m4: New file.
79735         * m4/error.m4: New file.
79736         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79737
79738 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79739
79740         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79741         cache-check for the same variable -- that defeated the purpose of
79742         the test; the test program was never run.  This was a problem only
79743         on systems with losing getline functions -- HP-UX 10.20 is one.
79744         Reported by Bjorn Helgaas.
79745
79746 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79747
79748         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79749
79750 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79751
79752         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79753
79754         * m4/const.m4: New file.  Use an initializer in this declaration
79755         typedef int charset[2]; const charset x;
79756         Reported by Bob Glickstein.
79757
79758 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79759
79760         * m4/chown.m4: Fix reversed types on -1 args to chown.
79761         From Kaveh Ghazi.
79762
79763 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79764
79765         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79766         Add lseek and memchr.
79767
79768         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79769         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79770         have a 20-character limit on names.
79771
79772 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79773
79774         * m4/inttypes_h.m4: New file.
79775         * m4/uintmax_t.m4: New file.
79776         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79777
79778
79779         -----
79780
79781         Local Variables:
79782         coding: utf-8
79783         End:
79784
79785         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79786
79787         Copying and distribution of this file, with or without
79788         modification, are permitted provided the copyright notice
79789         and this notice are preserved.