sys_select: Ensure memset is declared also on AIX 7.
[gnulib.git] / ChangeLog
1 2011-06-05  Bruno Haible  <bruno@clisp.org>
2
3         sys_select: Ensure memset is declared also on AIX 7.
4         * lib/sys_select.in.h: Include <string.h> also on AIX.
5         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6         self-contained also on AIX 7.1.
7
8 2011-06-04  Bruno Haible  <bruno@clisp.org>
9
10         setlocale: Enable replacement on Cygwin 1.5.
11         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12         Cygwin 1.5.x.
13         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14         LC_CTYPE category also exists on Cygwin 1.5.x.
15
16 2011-06-03  Bruno Haible  <bruno@clisp.org>
17
18         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19         * lib/localename.h: Update copyright header.
20         * lib/localename.c: Likewise.
21         * lib/relocatable.h: Likewise.
22         * lib/relocatable.c: Likewise.
23
24 2011-06-02  Bruno Haible  <bruno@clisp.org>
25
26         doc: Fix a module name.
27         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
28
29 2011-06-02  Bruno Haible  <bruno@clisp.org>
30
31         pipe2: Remove dependency on 'nonblocking' module.
32         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
33         O_NONBLOCK is defined by gnulib.
34         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
35         is zero.
36         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
37         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
38         defined by gnulib.
39         (get_nonblocking_flag): New function.
40         (main): Test O_NONBLOCK flag only if it is nonzero.
41         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
42
43 2011-05-31  Bruno Haible  <bruno@clisp.org>
44
45         Fix link errors in tests: openat-die uses gettext-h.
46         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
47         against $(LIBINTL).
48         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
49         against $(LIBINTL).
50         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
51         $(LIBINTL).
52         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
53         against $(LIBINTL).
54         * modules/linkat-tests (Makefile.am): Link test-linkat against
55         $(LIBINTL).
56         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
57         $(LIBINTL).
58         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
59         against $(LIBINTL).
60         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
61         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
62         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
63         $(LIBINTL).
64         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
65         $(LIBINTL).
66         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
67         $(LIBINTL).
68         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69
70 2011-05-31  Bruno Haible  <bruno@clisp.org>
71
72         Fix link errors in tests: wait-process uses gettext-h.
73         * modules/nonblocking-pipe-tests (Makefile.am): Set
74         test_nonblocking_pipe_main_LDADD.
75         * modules/nonblocking-socket-tests (Makefile.am): Link
76         test-nonblocking-socket-main against $(LIBINTL).
77         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78
79 2011-05-29  Bruno Haible  <bruno@clisp.org>
80
81         wctype-h: Avoid namespace pollution on Solaris 2.6.
82         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
83         identifiers.
84         * doc/posix-headers/wctype.texi: Mention the problem.
85         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86
87 2011-05-28  Jim Meyering  <meyering@redhat.com>
88
89         parse-datetime.y: accommodate -Wstrict-overflow
90         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
91         placate -Wstrict-overflow.
92
93         trim: avoid a warning from -O2 -Wstrict-overflow
94         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
95
96 2011-05-28  Bruno Haible  <bruno@clisp.org>
97
98         getloadavg: Remove an unreliable safety check.
99         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
100         getloadavg.c is in place.
101         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
102         Reported by Sam Steingold <sds@gnu.org>.
103
104 2011-05-26  Simon Josefsson  <simon@josefsson.org>
105
106         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
107
108 2011-05-26  Bruno Haible  <bruno@clisp.org>
109
110         mbsrchr: Avoid collision with system function on Interix.
111         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
112         Reported by Markus Duft <mduft@gentoo.org>.
113
114 2011-05-25  Eric Blake  <eblake@redhat.com>
115
116         getcwd: work around mingw bug
117         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
118         * doc/posix-functions/getcwd.texi (getcwd): Document it.
119         Reported by Matthias Bolte.
120
121 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
122
123         test-intprops: disable -Wtype-limits diagnostics
124         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
125         diagnostics.  Otherwise, the integer overflow macros generate many
126         diagnostics.  Reported by Jim Meyering in
127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
128
129 2011-05-24  Eric Blake  <eblake@redhat.com>
130
131         docs: document recently fixed glibc printf bug
132         * doc/posix-functions/fprintf.texi (fprintf): Document it.
133         * doc/posix-functions/printf.texi (printf): Likewise.
134         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
135         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
136
137 2011-05-24  Eric Blake  <eblake@redhat.com>
138
139         tests: fix logic bug in init.sh
140         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
141         shell.
142
143 2011-05-24  Jim Meyering  <meyering@redhat.com>
144
145         utimensat: do not reference an out-of-scope buffer
146         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
147         declared in an inner scope, yet "times" would be dereferenced outside
148         the scope in which "ts" was valid.
149         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
150         of ts[2] "out/up", so that the use of aliased "times" (via
151         "times = ts;") does not end up referencing an out-of-scope "ts"
152
153         opendir-safer.c: don't clobber errno; don't close negative FD
154         * lib/opendir-safer.c (opendir_safer):
155         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
156         file descriptor, and more importantly, don't clobber the
157         offending errno value with EINVAL.  Before, upon failure
158         of dup_safer, we would pass the negative file descriptor to
159         fdopendir, which would clobber errno.
160
161 2011-05-23  Bruno Haible  <bruno@clisp.org>
162
163         idcache: Fix module description.
164         * modules/idcache (Include): Set to "idcache.h".
165
166 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
167
168         gnulib-tool: fix portability problem with MacOS sed
169         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
170         before the "}".  Problem reported by Leo in
171         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
172         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
173         sed_extract_condition1, sed_extract_condition2.
174
175 2011-05-23  Bruno Haible  <bruno@clisp.org>
176
177         getugroups: Fix module description.
178         * modules/getugroups (Include): Set to "getugroups.h".
179
180 2011-05-23  Bruno Haible  <bruno@clisp.org>
181             Eric Blake  <eblake@redhat.com>
182
183         linkat, renameat: Update dependencies.
184         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
185         * modules/linkat (Depends-on): Likewise. Remove also readlink,
186         symlinkat.
187
188 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
189
190         verify: fix bug when gnulib <assert.h> is also included
191         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
192         is defined, not if _GL_STATIC_ASSERT_H is not defined.
193         Perhaps there's a better way, but this fixes the immediate problem.
194         Problem reported by Bruno Haible in
195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
196
197 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
198
199         clock-time: change to LGPLv2+.
200         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
201         BSD-like but we have no mark for that; this is good enough for now.
202
203 2011-05-21  Bruno Haible  <bruno@clisp.org>
204
205         relocatable-prog-wrapper: Fix possible link error.
206         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
207         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
208         (gl_FUNC_SETENV): ... to here.
209         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
210         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
211
212 2011-05-20  Jim Meyering  <meyering@redhat.com>
213
214         maint: replace misused "a" with "an"
215         * doc/intprops.texi: "a integer"
216         * doc/regex.texi: "a explanation"
217         * lib/alignof.h: "a object"
218         * lib/argmatch.h: "a explanation"
219         * lib/argp-help.c: "a option" and "a OPTION_DOC"
220         * lib/stdint.in.h: "a integer"
221         * lib/userspec.c: "a owner"
222         * doc/gnulib.texi: Fix "a idea", and reword.
223
224 2011-05-19  Jim Meyering  <meyering@redhat.com>
225
226         maint: correct misuse of "a" and "an"
227         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
228         * lib/argp-help.c: "an docum...": s/an/a/
229         * lib/argp-parse.c: "An vector": s/An/A/
230         * lib/execute.c: "an native": s/an/a/
231         * lib/spawn-pipe.c: Likewise.
232         * lib/gc.h: "an Gc_rc": s/an/a/
233         * lib/unigbrk.in.h: "an grapheme": s/an/a/
234         * lib/fts.c: "an stat.st_dev": s/an/a/
235
236 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
237
238         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
239         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
240         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
241         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
242         (_GL_REMAINDER_OVERFLOW): Use it.
243
244         intprops: work around C compiler bugs
245         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
246         bug in Sun C 5.11 2010/08/13 and other compilers; see
247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
248
249         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
250         * doc/intprops.texi (Integer Type Determination): Fix
251         documentation for TYPE_IS_INTEGER: it returns an constant
252         expression, not an integer constant expression.  Fix doc for
253         TYPE_SIGNED: it returns an integer constant expression only if its
254         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
255         hardly worth documented that way....)
256
257 2011-05-18  Eric Blake  <eblake@redhat.com>
258
259         fnmatch: avoid compiler warning
260         * lib/fnmatch_loop.c (FCT): Use correct type.
261         Reported by Matthias Bolte.
262
263 2011-05-13  Jim Meyering  <meyering@redhat.com>
264
265         maint.mk: three new prohibit_<HDR>_without_use rules
266         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
267         (sc_prohibit_stdio-safer_without_use): Likewise.
268         (sc_prohibit_xfreopen_without_use): Likewise.
269
270 2011-05-17  Jim Meyering  <meyering@redhat.com>
271
272         announce-gen: fail if the NEWS delta is empty
273         If there's nothing noteworthy in NEWS, then either you forgot
274         or you shouldn't be releasing.
275         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
276
277 2011-05-17  Pádraig Brady <P@draigBrady.com>
278
279         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
280         reserved symbols starting with double underscore from the check.
281
282 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
283
284         intprops: add doc
285         * doc/intprops.texi: New file, documenting intprops.
286         * doc/gnulib.texi (Particular Modules): Include it.
287
288         verify: add doc to gnulib manual and fix example
289         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
290         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
291         (Compile-time Assertions): Fix example so it can't overflow.
292
293 2011-05-17  Jim Meyering  <meyering@redhat.com>
294
295         warnings.m4: don't usurp save_CPPFLAGS variable name
296         * m4/warnings.m4: Prefix local temporary variable name with gl_.
297
298         doc: fix typo
299         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
300
301 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
302             Bruno Haible  <bruno@clisp.org>
303
304         doc: Tweak recent change.
305         * README (Portability guidelines): Tweak new text.
306         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
307         Interix 6.1.
308
309 2011-05-16  Eric Blake  <eblake@redhat.com>
310
311         inttypes: avoid autoconf warning
312         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
313         * m4/stdint.m4 (gl_STDINT_H): Likewise.
314
315 2011-05-16  Sam Steingold <sds@gnu.org>
316         and Eric Blake  <eblake@redhat.com>
317
318         vc-list-files: accept multiple directory operands
319         * build-aux/vc-list-files: Iterate over all remaining operands.
320
321 2011-05-16  Bruno Haible  <bruno@clisp.org>
322
323         Fix confusion regarding deprecated modules.
324         * modules/calloc (Status, Notice): Mark module as deprecated, not
325         obsolete.
326         * modules/fnmatch-posix (Status, Notice): Likewise.
327         * modules/getdate (Status, Notice): Likewise.
328         * modules/getopt (Status, Notice): Likewise.
329         * modules/malloc (Status, Notice): Likewise.
330         * modules/pipe (Status, Notice): Likewise.
331         * modules/realloc (Status, Notice): Likewise.
332         * modules/rename-dest-slash (Status, Notice): Likewise.
333         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
334         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
335         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
336         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
337         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
338
339 2011-05-16  Bruno Haible  <bruno@clisp.org>
340
341         doc: List the target platforms.
342         * doc/gnulib-intro.texi (Target Platforms): New section.
343         * doc/gnulib.texi (Introduction): Update menu.
344         * README (Portability guidelines): Refer to the new section. Update
345         statement about oldest supported environment. Remove rationale why
346         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
347         unportable C89 function.
348         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
349         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
350
351 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
352
353         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
354
355 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
356
357         intprops-tests: new module
358         * modules/intprops-tests, tests/test-intprops.c: New files.
359
360         intprops: add safe, portable integer overflow checking
361         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
362         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
363         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
364         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
365         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
366         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
367         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
368         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
369         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
370         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
371         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
372
373 2011-05-12  James Youngman  <jay@gnu.org>
374
375         Add a test for glibc's Bugzilla bug #12378.
376         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
377         doesn't allow the literal matching of a lone "[" (which is
378         required by POSIX).
379         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
380
381 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
382
383         Sync glibc change fixing Bugzilla bug #12378.
384         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
385         beginning and fall back to matching as normal character if the
386         string ends before the matching ']' is found.  This is what POSIX
387         requires.
388
389 2011-05-13  Eric Blake  <eblake@redhat.com>
390
391         getcwd-lgpl: relax test for FreeBSD
392         * doc/posix-functions/getcwd.texi (getcwd): Document portability
393         issue.
394         * tests/test-getcwd-lgpl.c (main): Relax test.
395         Reported by Matthias Bolte.
396
397 2011-05-11  Eric Blake  <eblake@redhat.com>
398
399         test-fflush: silence compiler warning
400         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
401
402 2011-05-11  Bruno Haible  <bruno@clisp.org>
403
404         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
405         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
406         * modules/canonicalize (Depends-on): Add 'nocrash'.
407         * modules/canonicalize-lgpl (Depends-on): Likewise.
408         * doc/posix-functions/realpath.texi: Update platforms list.
409         Reported by Ryan Schmidt <ryandesign@macports.org>.
410
411 2011-05-11  Bruno Haible  <bruno@clisp.org>
412
413         group-member: Declare function in <unistd.h>.
414         * lib/unistd.in.h (group_member): New declaration.
415         * lib/group-member.h: Remove file.
416         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
417         * tests/test-unistd-c++.cc: Check signature of group_member.
418         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
419         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
420         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
421         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
422         HAVE_GROUP_MEMBER.
423         * modules/group-member (Files): Remove lib/group-member.h.
424         (Depends-on): Add unistd. Specify conditions.
425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
426         (Include): Change to <unistd.h>.
427         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
428         HAVE_GROUP_MEMBER.
429         * NEWS: Mention the change.
430         * lib/euidaccess.c: Don't include group-member.h.
431
432 2011-05-11  Bruno Haible  <bruno@clisp.org>
433
434         group-member: Document module.
435         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
436         module.
437
438 2011-05-11  Bruno Haible  <bruno@clisp.org>
439
440         fclose: Fix mistake earlier today.
441         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
442
443 2011-05-11  Eric Blake  <eblake@redhat.com>
444
445         fclose: preserve fflush errors
446         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
447         Reported by Jim Meyering.
448
449         bootstrap: support a prereq of 'rpcgen -' on RHEL5
450         * build-aux/bootstrap (check_versions): When no specific version
451         is required, merely check that the app produces an exit status
452         that indicates its existence.
453
454         maint.mk: drop redundant check
455         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
456         the same but better.
457
458 2011-05-11  Bruno Haible  <bruno@clisp.org>
459
460         fclose: Fix possible link error.
461         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
462         unregister_shadow_fd. Improve comments.
463         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
464         Eric Blake.
465
466 2011-05-11  Jim Meyering  <meyering@redhat.com>
467
468         maint.mk: improve "can not" detection and generalize rule name
469         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
470         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
471         Use the same technique as in sc_prohibit_doubled_word, so that
472         we recognize "can not" also when the words are separated by a newline.
473         Suggested by Eric Blake.
474         (perl_filename_lineno_text_): Define.  Factored out of...
475         (prohibit_doubled_word_): ...here.  Use the new definition.
476         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
477         (prohibit_undesirable_word_seq_RE_): New overridable variable.
478         (ignore_undesirable_word_sequence_RE_): New overridable variable.
479
480 2011-05-10  Eric Blake  <eblake@redhat.com>
481
482         fclose: avoid double close race when possible
483         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
484         all but WINDOWS_SOCKETS.
485
486 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
487
488         openat: correct new comment
489         * lib/openat-proc.c (openat_proc_name): Correct the comment.
490
491 2011-05-10  Jim Meyering  <meyering@redhat.com>
492
493         openat: add comments
494         * lib/openat-proc.c (openat_proc_name): Add comments,
495         mostly from Eric Blake.
496
497 2011-05-09  Eric Blake  <eblake@redhat.com>
498
499         openat: reduce syscalls in first probe of /proc
500         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
501         be a directory.  Simplify the probe for .. bugs.
502         * modules/openat (Depends-on): Drop same-inode.
503         Reported by Bastien ROUCARIES.
504
505 2011-05-09  Jim Meyering  <meyering@redhat.com>
506
507         maint.mk: change semantics/name of tight_scope variables
508         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
509         Rename variables to align with semantics that make them more useful.
510
511         maint.mk: tweak new rule's name not to impinge
512         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
513         (sc_tight_scope): Use new rule name rather than $@-0.
514
515         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
516         * top/maint.mk (sc_tight_scope): New rule.
517         (sc_tight_scope-0): New rule, ifdef'd out.
518         (_gl_TS_dir): Default.
519         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
520         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
521
522 2011-05-09  Simon Josefsson  <simon@josefsson.org>
523
524         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
525         Haible <bruno@clisp.org>.
526
527 2011-05-08  Bruno Haible  <bruno@clisp.org>
528
529         Comments.
530         * m4/isnanf.m4: Add comment.
531         * m4/isnanl.m4: Likewise.
532
533 2011-05-08  Bruno Haible  <bruno@clisp.org>
534
535         glob: Remove obsolete macro.
536         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
537
538 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
539
540         intprops: Sun C 5.11 supports __typeof__
541         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
542         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
543         which is new.
544         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
545
546         intprops: switch to usual gnulib indenting and naming
547         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
548         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
549
550         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
551
552 2011-05-08  Jim Meyering  <meyering@redhat.com>
553
554         maint.mk: suppress "Entering/Leaving directory" diag in announcement
555         * top/maint.mk (release-prep): Use make's --no-print-directory
556         option when generating the announcement.  This eliminates the
557         pesky "make[2]: Entering/Leaving directory" diagnostics in the
558         generated announcement template.
559
560 2011-05-08  Bruno Haible  <bruno@clisp.org>
561
562         tzset: Fix gettimeofday wrapper on Solaris 2.6.
563         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
564         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
565
566 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
567
568         ignore-value, verify: Omit include files from lib_SOURCES.
569         * modules/ignore-value, modules/verify (Makefile.am):
570         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
571         that leads Automake to duplicate use of am__objects_... variables
572         in Makefile.in.  See
573         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
574
575 2011-05-07  Bruno Haible  <bruno@clisp.org>
576
577         fclose: Simplify autoconf macro.
578         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
579         defined.
580
581 2011-05-07  Bruno Haible  <bruno@clisp.org>
582
583         canonicalize-lgpl: Fix autoconf macro ordering bug.
584         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
585         gl_STDLIB_H_DEFAULTS.
586
587 2011-05-06  Eric Blake  <eblake@redhat.com>
588
589         maintainer-makefile: make sc_po_check easier to tune
590         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
591         to probe for strings, such as an alternate location for gnulib.
592
593         fclose: guarantee behavior on seekable stdin
594         * modules/fclose (Depends-on): Add fflush.
595         * doc/posix-functions/fclose.texi (fclose): Document this.
596         * tests/test-fclose.c (main): Make test for this unconditional.
597
598 2011-05-06  Bruno Haible  <bruno@clisp.org>
599
600         fflush, fpurge: Relicense under LGPLv2+.
601         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
602         * modules/fpurge (License): Likewise.
603         With permission from Eric Blake and Jim Meyering.
604         Suggested by Eric Blake.
605
606 2011-05-06  Karl Berry  <karl@gnu.org>
607
608         * MODULES.html.sh (func_all_modules): remove exit.
609
610 2011-05-06  Jim Meyering  <meyering@redhat.com>
611
612         maint.mk: use info-gnu@ as the default only for a stable release
613         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
614         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
615         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
616         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
617
618 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
619
620         assert-h: new module, which supports C1X-style static_assert
621         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
622         * lib/verify.h: Revamp so that this can be copied into assert.h,
623         while retaining the ability to use it standalone as before.
624         Rename private identifiers so as not to encroach on the
625         standard C namespace, since this is now used by assert.h.
626         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
627         the old verify_true.
628         (_GL_VERIFY_TRUE): New macro, with much of the contents of
629         the old verify_true.  Use _GL_VERIFY_TYPE.
630         (_GL_VERIFY): New macro, with much of the contents of the old verify.
631         (static_assert): New macro, if _GL_STATIC_ASSERT_H
632         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
633         defined when this file is copied into the replacement assert.h.
634         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
635         and _Static_assert is not built in.
636         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
637         defined, and use the new macros mentioned above.
638         * doc/posix-headers/assert.texi: Document this.
639
640 2011-05-05  Bruno Haible  <bruno@clisp.org>
641
642         fclose, fflush: Respect rules for use of AC_LIBOBJ.
643         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
644         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
645         gl_REPLACE_FCLOSE here.
646         * modules/fflush (Depends-on): Remove fclose.
647         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
648         combination with module 'fclose'.
649
650 2011-05-05  Bruno Haible  <bruno@clisp.org>
651
652         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
653         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
654         gl_FUNC_FFLUSH.
655         (gl_FUNC_FFLUSH): Use it.
656         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
657         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
658         gl_REPLACE_FSEEKO here.
659
660 2011-05-05  Bruno Haible  <bruno@clisp.org>
661
662         tzset: Relicense under LGPL.
663         * modules/tzset (License): Change to LGPL.
664         No agreement needed; it's a no-op.
665
666         strtoimax, strtoumax: Relicense under LGPL.
667         * modules/strtoimax (License): Change to LGPL.
668         * modules/strtoumax (License): Likewise.
669         With permission from Jim Meyering, Paul Eggert:
670         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
671         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
672
673         getgroups: Relicense under LGPL.
674         * modules/getgroups (License): Change to LGPL.
675         With permission from Jim Meyering, Paul Eggert, Eric Blake:
676         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
678         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
679
680         nanosleep: Relicense under LGPL.
681         * modules/nanosleep (License): Change to LGPL.
682         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
683         Haible:
684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
688
689         futimens: Relicense under LGPL.
690         * modules/futimens (License): Change to LGPL.
691         With permission from Eric Blake:
692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
693
694         fflush: Relicense under LGPL.
695         * modules/fflush (License): Change to LGPL.
696         With permission from Eric Blake, Bruno Haible, Jim Meyering:
697         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
700
701         tmpfile: Relicense under LGPL.
702         * modules/tmpfile (License): Change to LGPL.
703         With permission from Ben Pfaff:
704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
705
706         isfinite: Relicense under LGPL.
707         * modules/isfinite (License): Change to LGPL.
708         With permission from Ben Pfaff, Bruno Haible:
709         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
711
712         acosl..tanl: Relicense under LGPL.
713         * modules/acosl (License): Change to LGPL.
714         * modules/asinl (License): Likewise.
715         * modules/atanl (License): Likewise.
716         * modules/cosl (License): Likewise.
717         * modules/expl (License): Likewise.
718         * modules/logl (License): Likewise.
719         * modules/sinl (License): Likewise.
720         * modules/sqrtl (License): Likewise.
721         * modules/tanl (License): Likewise.
722         Source code originally from glibc and Paolo Bonzini. Agreements:
723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
725
726 2011-05-05  Bruno Haible  <bruno@clisp.org>
727
728         signal: Define sighandler_t.
729         * lib/signal.in.h (sighandler_t): New type.
730         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
731         whether sighandler_t is defined.
732         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
733         * modules/signal (Depends-on): Add extensions.
734         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
735         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
736         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
737
738 2011-05-05  Eric Blake  <eblake@redhat.com>
739
740         maint: remove useless REPLACE_*_H macros
741         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
742         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
743         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
744         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
745         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
746         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
747         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
748         * m4/btowc.m4: Update callers.
749         * m4/dirfd.m4: Likewise.
750         * m4/duplocale.m4: Likewise.
751         * m4/fchdir.m4: Likewise.
752         * m4/fdopendir.m4: Likewise.
753         * m4/inet_ntop.m4: Likewise.
754         * m4/inet_pton.m4: Likewise.
755         * m4/ioctl.m4: Likewise.
756         * m4/mbrlen.m4: Likewise.
757         * m4/mbrtowc.m4: Likewise.
758         * m4/mbsinit.m4: Likewise.
759         * m4/mbsnrtowcs.m4: Likewise.
760         * m4/mbsrtowcs.m4: Likewise.
761         * m4/poll.m4: Likewise.
762         * m4/setlocale.m4: Likewise.
763         * m4/wcrtomb.m4: Likewise.
764         * m4/wcsnrtombs.m4: Likewise.
765         * m4/wcsrtombs.m4: Likewise.
766         * m4/wctob.m4: Likewise.
767         * m4/wcwidth.m4: Likewise.
768         * modules/posix_spawn: Likewise.
769         * modules/posix_spawn_file_actions_addclose: Likewise.
770         * modules/posix_spawn_file_actions_adddup2: Likewise.
771         * modules/posix_spawn_file_actions_addopen: Likewise.
772         * modules/posix_spawn_file_actions_destroy: Likewise.
773         * modules/posix_spawn_file_actions_init: Likewise.
774         * modules/posix_spawnattr_destroy: Likewise.
775         * modules/posix_spawnattr_getflags: Likewise.
776         * modules/posix_spawnattr_getpgroup: Likewise.
777         * modules/posix_spawnattr_getschedparam: Likewise.
778         * modules/posix_spawnattr_getschedpolicy: Likewise.
779         * modules/posix_spawnattr_getsigdefault: Likewise.
780         * modules/posix_spawnattr_getsigmask: Likewise.
781         * modules/posix_spawnattr_init: Likewise.
782         * modules/posix_spawnattr_setflags: Likewise.
783         * modules/posix_spawnattr_setpgroup: Likewise.
784         * modules/posix_spawnattr_setschedparam: Likewise.
785         * modules/posix_spawnattr_setschedpolicy: Likewise.
786         * modules/posix_spawnattr_setsigdefault: Likewise.
787         * modules/posix_spawnattr_setsigmask: Likewise.
788         * modules/posix_spawnp: Likewise.
789
790 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
791
792         Add option to do-release-commit-and-tag to specify branch.
793         * build-aux/do-release-commit-and-tag: Add --branch.
794
795 2011-05-03  Bruno Haible  <bruno@clisp.org>
796
797         Avoid unnecessary compilation units, through conditional dependencies.
798         * modules/accept (Depends-on): Add conditions to the dependencies.
799         * modules/acosl (Depends-on): Likewise.
800         * modules/argz (Depends-on): Likewise.
801         * modules/asinl (Depends-on): Likewise.
802         * modules/atanl (Depends-on): Likewise.
803         * modules/atoll (Depends-on): Likewise.
804         * modules/bind (Depends-on): Likewise.
805         * modules/btowc (Depends-on): Likewise.
806         * modules/canonicalize-lgpl (Depends-on): Likewise.
807         * modules/ceil (Depends-on): Likewise.
808         * modules/ceilf (Depends-on): Likewise.
809         * modules/ceill (Depends-on): Likewise.
810         * modules/chdir-long (Depends-on): Likewise.
811         * modules/chown (Depends-on): Likewise.
812         * modules/close (Depends-on): Likewise.
813         * modules/connect (Depends-on): Likewise.
814         * modules/cosl (Depends-on): Likewise.
815         * modules/dirfd (Depends-on): Likewise.
816         * modules/dprintf (Depends-on): Likewise.
817         * modules/dprintf-posix (Depends-on): Likewise.
818         * modules/error (Depends-on): Likewise.
819         * modules/euidaccess (Depends-on): Likewise.
820         * modules/expl (Depends-on): Likewise.
821         * modules/faccessat (Depends-on): Likewise.
822         * modules/fchdir (Depends-on): Likewise.
823         * modules/fclose (Depends-on): Likewise.
824         * modules/fcntl (Depends-on): Likewise.
825         * modules/fdopendir (Depends-on): Likewise.
826         * modules/fflush (Depends-on): Likewise.
827         * modules/floor (Depends-on): Likewise.
828         * modules/floorf (Depends-on): Likewise.
829         * modules/floorl (Depends-on): Likewise.
830         * modules/fnmatch (Depends-on): Likewise.
831         * modules/fopen (Depends-on): Likewise.
832         * modules/fprintf-posix (Depends-on): Likewise.
833         * modules/frexp (Depends-on): Likewise.
834         * modules/frexp-nolibm (Depends-on): Likewise.
835         * modules/frexpl (Depends-on): Likewise.
836         * modules/frexpl-nolibm (Depends-on): Likewise.
837         * modules/fseek (Depends-on): Likewise.
838         * modules/fsusage (Depends-on): Likewise.
839         * modules/ftell (Depends-on): Likewise.
840         * modules/ftello (Depends-on): Likewise.
841         * modules/futimens (Depends-on): Likewise.
842         * modules/getcwd (Depends-on): Likewise.
843         * modules/getcwd-lgpl (Depends-on): Likewise.
844         * modules/getdelim (Depends-on): Likewise.
845         * modules/getdomainname (Depends-on): Likewise.
846         * modules/getgroups (Depends-on): Likewise.
847         * modules/gethostname (Depends-on): Likewise.
848         * modules/getline (Depends-on): Likewise.
849         * modules/getlogin_r (Depends-on): Likewise.
850         * modules/getopt-posix (Depends-on): Likewise.
851         * modules/getpeername (Depends-on): Likewise.
852         * modules/getsockname (Depends-on): Likewise.
853         * modules/getsockopt (Depends-on): Likewise.
854         * modules/getsubopt (Depends-on): Likewise.
855         * modules/getusershell (Depends-on): Likewise.
856         * modules/glob (Depends-on): Likewise.
857         * modules/grantpt (Depends-on): Likewise.
858         * modules/iconv_open (Depends-on): Likewise.
859         * modules/iconv_open-utf (Depends-on): Likewise.
860         * modules/inet_ntop (Depends-on): Likewise.
861         * modules/inet_pton (Depends-on): Likewise.
862         * modules/ioctl (Depends-on): Likewise.
863         * modules/isapipe (Depends-on): Likewise.
864         * modules/isfinite (Depends-on): Likewise.
865         * modules/isinf (Depends-on): Likewise.
866         * modules/lchown (Depends-on): Likewise.
867         * modules/ldexpl (Depends-on): Likewise.
868         * modules/link (Depends-on): Likewise.
869         * modules/linkat (Depends-on): Likewise.
870         * modules/listen (Depends-on): Likewise.
871         * modules/logl (Depends-on): Likewise.
872         * modules/lstat (Depends-on): Likewise.
873         * modules/mbrlen (Depends-on): Likewise.
874         * modules/mbrtowc (Depends-on): Likewise.
875         * modules/mbsinit (Depends-on): Likewise.
876         * modules/mbsnrtowcs (Depends-on): Likewise.
877         * modules/mbsrtowcs (Depends-on): Likewise.
878         * modules/mbtowc (Depends-on): Likewise.
879         * modules/memcmp (Depends-on): Likewise.
880         * modules/mkdir (Depends-on): Likewise.
881         * modules/mkdtemp (Depends-on): Likewise.
882         * modules/mkfifo (Depends-on): Likewise.
883         * modules/mkfifoat (Depends-on): Likewise.
884         * modules/mknod (Depends-on): Likewise.
885         * modules/mkostemp (Depends-on): Likewise.
886         * modules/mkostemps (Depends-on): Likewise.
887         * modules/mkstemp (Depends-on): Likewise.
888         * modules/mkstemps (Depends-on): Likewise.
889         * modules/mktime (Depends-on): Likewise.
890         * modules/nanosleep (Depends-on): Likewise.
891         * modules/open (Depends-on): Likewise.
892         * modules/openat (Depends-on): Likewise.
893         * modules/perror (Depends-on): Likewise.
894         * modules/poll (Depends-on): Likewise.
895         * modules/popen (Depends-on): Likewise.
896         * modules/posix_spawn (Depends-on): Likewise.
897         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
898         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
899         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
900         * modules/posix_spawnp (Depends-on): Likewise.
901         * modules/pread (Depends-on): Likewise.
902         * modules/printf-posix (Depends-on): Likewise.
903         * modules/ptsname (Depends-on): Likewise.
904         * modules/putenv (Depends-on): Likewise.
905         * modules/pwrite (Depends-on): Likewise.
906         * modules/readline (Depends-on): Likewise.
907         * modules/readlink (Depends-on): Likewise.
908         * modules/readlinkat (Depends-on): Likewise.
909         * modules/recv (Depends-on): Likewise.
910         * modules/recvfrom (Depends-on): Likewise.
911         * modules/regex (Depends-on): Likewise.
912         * modules/remove (Depends-on): Likewise.
913         * modules/rename (Depends-on): Likewise.
914         * modules/renameat (Depends-on): Likewise.
915         * modules/rmdir (Depends-on): Likewise.
916         * modules/round (Depends-on): Likewise.
917         * modules/roundf (Depends-on): Likewise.
918         * modules/roundl (Depends-on): Likewise.
919         * modules/rpmatch (Depends-on): Likewise.
920         * modules/select (Depends-on): Likewise.
921         * modules/send (Depends-on): Likewise.
922         * modules/sendto (Depends-on): Likewise.
923         * modules/setenv (Depends-on): Likewise.
924         * modules/setlocale (Depends-on): Likewise.
925         * modules/setsockopt (Depends-on): Likewise.
926         * modules/shutdown (Depends-on): Likewise.
927         * modules/sigaction (Depends-on): Likewise.
928         * modules/signbit (Depends-on): Likewise.
929         * modules/sigprocmask (Depends-on): Likewise.
930         * modules/sinl (Depends-on): Likewise.
931         * modules/sleep (Depends-on): Likewise.
932         * modules/snprintf (Depends-on): Likewise.
933         * modules/snprintf-posix (Depends-on): Likewise.
934         * modules/socket (Depends-on): Likewise.
935         * modules/sprintf-posix (Depends-on): Likewise.
936         * modules/sqrtl (Depends-on): Likewise.
937         * modules/stat (Depends-on): Likewise.
938         * modules/strchrnul (Depends-on): Likewise.
939         * modules/strdup-posix (Depends-on): Likewise.
940         * modules/strerror (Depends-on): Likewise.
941         * modules/strerror_r-posix (Depends-on): Likewise.
942         * modules/strndup (Depends-on): Likewise.
943         * modules/strnlen (Depends-on): Likewise.
944         * modules/strptime (Depends-on): Likewise.
945         * modules/strsep (Depends-on): Likewise.
946         * modules/strsignal (Depends-on): Likewise.
947         * modules/strstr-simple (Depends-on): Likewise.
948         * modules/strtod (Depends-on): Likewise.
949         * modules/strtoimax (Depends-on): Likewise.
950         * modules/strtok_r (Depends-on): Likewise.
951         * modules/strtoumax (Depends-on): Likewise.
952         * modules/symlink (Depends-on): Likewise.
953         * modules/symlinkat (Depends-on): Likewise.
954         * modules/tanl (Depends-on): Likewise.
955         * modules/tcgetsid (Depends-on): Likewise.
956         * modules/tmpfile (Depends-on): Likewise.
957         * modules/trunc (Depends-on): Likewise.
958         * modules/truncf (Depends-on): Likewise.
959         * modules/truncl (Depends-on): Likewise.
960         * modules/uname (Depends-on): Likewise.
961         * modules/unlink (Depends-on): Likewise.
962         * modules/unlockpt (Depends-on): Likewise.
963         * modules/unsetenv (Depends-on): Likewise.
964         * modules/usleep (Depends-on): Likewise.
965         * modules/utimensat (Depends-on): Likewise.
966         * modules/vasprintf (Depends-on): Likewise.
967         * modules/vdprintf (Depends-on): Likewise.
968         * modules/vdprintf-posix (Depends-on): Likewise.
969         * modules/vfprintf-posix (Depends-on): Likewise.
970         * modules/vprintf-posix (Depends-on): Likewise.
971         * modules/vsnprintf (Depends-on): Likewise.
972         * modules/vsnprintf-posix (Depends-on): Likewise.
973         * modules/vsprintf-posix (Depends-on): Likewise.
974         * modules/wcrtomb (Depends-on): Likewise.
975         * modules/wcscasecmp (Depends-on): Likewise.
976         * modules/wcscspn (Depends-on): Likewise.
977         * modules/wcsdup (Depends-on): Likewise.
978         * modules/wcsncasecmp (Depends-on): Likewise.
979         * modules/wcsnrtombs (Depends-on): Likewise.
980         * modules/wcspbrk (Depends-on): Likewise.
981         * modules/wcsrtombs (Depends-on): Likewise.
982         * modules/wcsspn (Depends-on): Likewise.
983         * modules/wcsstr (Depends-on): Likewise.
984         * modules/wcstok (Depends-on): Likewise.
985         * modules/wcswidth (Depends-on): Likewise.
986         * modules/wctob (Depends-on): Likewise.
987         * modules/wctomb (Depends-on): Likewise.
988         * modules/wctype (Depends-on): Likewise.
989         * modules/wcwidth (Depends-on): Likewise.
990         * modules/write (Depends-on): Likewise.
991
992 2011-05-03  Bruno Haible  <bruno@clisp.org>
993
994         Support for conditional dependencies.
995         * doc/gnulib.texi (Module description): Document the syntax of
996         conditional dependencies.
997         * gnulib-tool: New option --conditional-dependencies.
998         (func_usage): Document it.
999         (cond_dependencies): New variable.
1000         (func_get_automake_snippet_conditional,
1001         func_get_automake_snippet_unconditional): New functions, extracted from
1002         func_get_automake_snippet.
1003         (func_get_automake_snippet): Use them.
1004         (sed_first_32_chars): New variable.
1005         (func_module_shellfunc_name): New function.
1006         (func_module_shellvar_name): New function.
1007         (func_module_conditional_name): New function.
1008         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
1009         func_cond_module_condition): New functions.
1010         (func_modules_transitive_closure): Add support for conditional
1011         dependencies.
1012         (func_emit_lib_Makefile_am): For a conditional module, enclose the
1013         conditional automake snippet in an automake conditional.
1014         (func_emit_autoconf_snippets): Emit shell functions that contain the
1015         code for conditional modules.
1016         (func_import, func_create_testdir): Update specification.
1017
1018 2011-05-03  Eric Blake  <eblake@redhat.com>
1019
1020         test-getaddrinfo: report error information
1021         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
1022
1023 2011-05-03  Jim Meyering  <meyering@redhat.com>
1024
1025         bootstrap: avoid build failure when $GZIP is set
1026         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
1027         program name.  If defined at all, it is supposed to list gzip options.
1028         Reported by Alan Curry in http://debbugs.gnu.org/8609
1029
1030 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
1031
1032         readme-release: new module with release instructions
1033         * modules/readme-release: New module.
1034         * top/README-release: New file, from coreutils, grep, diffutils.
1035         * MODULES.html.sh (Support for maintaining and releasing): Add it.
1036
1037 2011-05-02  Eric Blake  <eblake@redhat.com>
1038
1039         fflush: also replace fclose when fixing fflush
1040         * modules/fflush (Depends-on): Add fclose.
1041         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
1042         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
1043         memstreams with no backing fd.
1044         * doc/posix-functions/fclose.texi (fclose): Document the use of
1045         fflush module to fix the bug.
1046         * tests/test-fclose.c (main): Relax test when fclose is used in
1047         isolation.
1048
1049         fclose: add some tests
1050         * modules/fclose-tests: New test module.
1051         * tests/test-fclose.c: New file.
1052         * doc/posix-functions/fclose.texi (fclose): Document the bug.
1053
1054         fclose: reduced dependencies
1055         * modules/fclose (Depends-on): Switch from fflush/fseeko to
1056         simpler lseek.
1057         * lib/fclose.c (rpl_fclose): Likewise.
1058         Reported by Simon Josefsson.
1059
1060         exit: drop remaining clients
1061         * modules/argmatch (Depends-on): Replace exit with stdlib.
1062         * modules/copy-file (Depends-on): Likewise.
1063         * modules/execute (Depends-on): Likewise.
1064         * modules/exitfail (Depends-on): Likewise.
1065         * modules/obstack (Depends-on): Likewise.
1066         * modules/pagealign_alloc (Depends-on): Likewise.
1067         * modules/pipe-filter-gi (Depends-on): Likewise.
1068         * modules/pipe-filter-ii (Depends-on): Likewise.
1069         * modules/savewd (Depends-on): Likewise.
1070         * modules/spawn-pipe (Depends-on): Likewise.
1071         * modules/wait-process (Depends-on): Likewise.
1072         * modules/xsetenv (Depends-on): Likewise.
1073         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
1074         * modules/git-merge-changelog (Depends-on): Likewise.
1075         * modules/long-options (Depends-on): Likewise.
1076         * modules/pt_chown (Depends-on): Likewise.
1077         * modules/sysexits (Depends-on): Likewise.
1078
1079         freading: relax license from LGPLv3+ to LGPLv2+
1080         * modules/freading (License): Relax LGPL version.
1081
1082 2011-05-02  Bruno Haible  <bruno@clisp.org>
1083
1084         fchdir: Remove unused dependencies.
1085         * modules/fchdir (Depends-on): Remove include_next.
1086
1087 2011-05-02  Bruno Haible  <bruno@clisp.org>
1088
1089         gnulib-tool: Refactor.
1090         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
1091         from func_emit_autoconf_snippets.
1092         (func_emit_autoconf_snippets): Use it.
1093
1094 2011-05-02  Simon Josefsson  <simon@josefsson.org>
1095
1096         * NEWS: Document removal of 'exit'.
1097         * modules/exit: Remove file.
1098
1099 2011-05-01  Bruno Haible  <bruno@clisp.org>
1100
1101         Update DEPENDENCIES.
1102         * DEPENDENCIES (gettext): Recommend the newest release.
1103         Reported by Simon Josefsson.
1104
1105 2011-05-01  Bruno Haible  <bruno@clisp.org>
1106
1107         gnulib-tool: Reduce code duplication.
1108         * gnulib-tool (func_emit_autoconf_snippets): New function.
1109         (func_import, func_create_testdir): Use it.
1110
1111 2011-04-30  Eric Blake  <eblake@redhat.com>
1112
1113         fclose: don't fail on non-seekable input stream
1114         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
1115         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
1116         since fflush is allowed to fail in that case.
1117
1118 2011-04-30  Bruno Haible  <bruno@clisp.org>
1119
1120         dup3: cleanup
1121         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
1122
1123 2011-04-30  Bruno Haible  <bruno@clisp.org>
1124
1125         netdb: Make it work in C++ mode.
1126         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
1127         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
1128         module.
1129         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
1130         gl_MODULE_INDICATOR_FOR_TESTS.
1131         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
1132         * modules/netdb-c++-tests: New file.
1133         * tests/test-netdb-c++.cc: New file.
1134
1135 2011-04-30  Bruno Haible  <bruno@clisp.org>
1136
1137         New modules 'vfscanf', 'vscanf'.
1138         * modules/vfscanf: New file.
1139         * modules/vscanf: New file.
1140         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
1141         here.
1142         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
1143         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
1144
1145 2011-04-30  Bruno Haible  <bruno@clisp.org>
1146
1147         passfd: Add comments.
1148         * lib/passfd.c: Add comments about platforms.
1149
1150 2011-04-30  Bruno Haible  <bruno@clisp.org>
1151
1152         sys_uio: Make <sys/uio.h> self-contained.
1153         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
1154         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
1155
1156 2011-04-30  Bruno Haible  <bruno@clisp.org>
1157
1158         sys_socket: Ensure 'struct iovec' definition.
1159         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
1160         <sys/socket.h>.
1161         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
1162
1163 2011-04-30  Bruno Haible  <bruno@clisp.org>
1164
1165         sys_uio: Protect definition of 'struct iovec'.
1166         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
1167         it as a C struct.
1168
1169 2011-04-30  Bruno Haible  <bruno@clisp.org>
1170
1171         manywarnings: fix indentation
1172         * m4/manywarnings.m4: Indent by 2 spaces consistently.
1173
1174 2011-04-30  Pádraig Brady <P@draigBrady.com>
1175
1176         manywarnings: add -Wno-missing-field-initializers if needed.
1177         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
1178         option if it's needed to allow initialization with { 0, }
1179
1180 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
1181
1182         announce-gen: cosmetic improvement
1183         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
1184
1185 2011-04-29  Jim Meyering  <meyering@redhat.com>
1186
1187         vc-list-files: indent with spaces, not TABs
1188         * build-aux/vc-list-files: Convert leading TABs to spaces,
1189         to match the style of most other files in gnulib.
1190
1191         announce-gen: indent with spaces, not TABs
1192         * build-aux/announce-gen: Convert all TABs to spaces, to match
1193         the style of most other files in gnulib.
1194
1195 2011-04-29  Eric Blake  <eblake@redhat.com>
1196
1197         quotearg: avoid uninitialized variable use
1198         * lib/quotearg.c (quoting_options_from_style): Initialize
1199         remaining fields, and ensure that custom styles are only used via
1200         quoting_options rather than quoting_style.
1201
1202 2011-04-29  Jim Meyering  <meyering@redhat.com>
1203
1204         maint.mk: remove unused VC-tag variable
1205         * top/maint.mk (VC-tag): Remove unused variable.
1206
1207 2011-04-29  Bruno Haible  <bruno@clisp.org>
1208
1209         netdb: fix gai_strerror replacements
1210         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
1211         * modules/netdb: Substitute it.
1212
1213 2011-04-29  Jim Meyering  <meyering@redhat.com>
1214
1215         test-getcwd.c: avoid new set-but-not-used warning
1216         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
1217         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
1218         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
1219         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
1220
1221         test-hash.c: avoid a new shadowing warning
1222         * tests/test-hash.c (main): Don't shadow "dup".
1223
1224 2011-04-28  Eric Blake  <eblake@redhat.com>
1225
1226         getaddrinfo: fix gai_strerror signature
1227         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
1228         and work around mingw with UNICODE defined.
1229         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
1230         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
1231         * modules/netdb (Makefile.am): Substitute it.
1232         * lib/netdb.in.h (gai_strerror): Declare replacement.
1233         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
1234         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
1235         the fix.
1236
1237         getsockopt: avoid compiler warning
1238         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
1239         Reported by Matthias Bolte.
1240
1241         tests: drop unused link dependency
1242         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
1243         * modules/dirent-safer-tests (Makefile.am): Likewise.
1244         * modules/fdopendir-tests (Makefile.am): Likewise.
1245         * modules/mkfifoat-tests (Makefile.am): Likewise.
1246         * modules/openat-safer-tests (Makefile.am): Likewise.
1247         * modules/openat-tests (Makefile.am): Likewise.
1248         * modules/readlinkat-tests (Makefile.am): Likewise.
1249         * modules/symlinkat-tests (Makefile.am): Likewise.
1250         * modules/linkat-tests (Makefile.am): Likewise.
1251         (Depends-on): Switch to filenamecat-lgpl.
1252         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
1253         LIBINTL.
1254         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
1255         * tests/test-linkat.c (main): Don't require xalloc.
1256
1257         hash, mgetgroups: drop xalloc dependency
1258         * lib/hash.c (includes): Adjust includes.
1259         * lib/mgetgroups.c (includes): Likewise.
1260         (xgetgroups): Move...
1261         * lib/xgetgroups.c: ...to new file.
1262         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
1263         * modules/xgetgroups: New file, split from...
1264         * modules/mgetgroups: ...here.
1265         (Depends-on): Add xalloc-oversized.
1266         * modules/hash (Depends-on): Likewise.
1267         * modules/hash-tests (Depends-on): Drop xalloc.
1268         (test_hash_LDADD): Drop unused library.
1269         * tests/test-hash.c (main): Break xalloc dependency.
1270         (includes): Drop unused include.
1271
1272         xalloc-oversized: new module
1273         * modules/xalloc-oversized: New module.
1274         * modules/xalloc (Depends-on): Add it.
1275         * lib/xalloc.h (xalloc_oversized): Move...
1276         * lib/xalloc-oversized.h: ...into new file.
1277
1278         utimecmp: drop dependency on xmalloc
1279         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
1280         due to memory pressure.
1281         * modules/utimecmp (Depends-on): Drop xalloc.
1282
1283 2011-04-27  Eric Blake  <eblake@redhat.com>
1284
1285         getcwd: fix mingw bugs
1286         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
1287         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
1288         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
1289
1290 2011-04-27  Bruno Haible  <bruno@clisp.org>
1291
1292         mkstemps: Ensure declaration on MacOS X 10.5.
1293         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
1294         * doc/glibc-functions/mkstemps.texi: Document header file problem on
1295         MacOS X.
1296
1297 2011-04-27  Bruno Haible  <bruno@clisp.org>
1298
1299         mkstemp: More documentation.
1300         * doc/posix-functions/mkstemp.texi: Document header file problem on
1301         MacOS X.
1302
1303 2011-04-27  Bruno Haible  <bruno@clisp.org>
1304
1305         mkstemp: Tweak configure message when cross-compiling.
1306         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
1307         result as a guess.
1308
1309 2011-04-27  Bruno Haible  <bruno@clisp.org>
1310
1311         clean-temp: Clarify what it does.
1312         * lib/clean-temp.h: Add more comments.
1313         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
1314         module.
1315         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
1316         * doc/glibc-functions/mkstemps.texi: Likewise.
1317         * doc/glibc-functions/mkostemps.texi: Likewise.
1318
1319 2011-04-27  Eric Blake  <eblake@redhat.com>
1320
1321         fchdir: avoid extra chdir and fix test
1322         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
1323         getcwd-lgpl.
1324         * lib/fchdir.c (get_name): Any absolute name will do; it does not
1325         have to be canonical.
1326         (canonicalize_file_name): Drop unused macro.
1327         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
1328
1329         filenamecat-lgpl: fix licence
1330         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
1331         when it was first created.
1332
1333         linkat, renameat: add missing dependency
1334         * modules/linkat (Depends-on): Require getcwd-lgpl.
1335         * modules/renameat (Depends-on): Likewise.
1336
1337         tests: reduce dependencies
1338         * tests/test-linkat.c (main): Use lighter-weight getcwd.
1339         * tests/test-renameat.c (main): Likewise.
1340         * modules/linkat-tests (Depends-on): Relax dependency.
1341         * modules/renameat-tests (Depends-on): Likewise.
1342         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
1343         dependency explicit.
1344
1345         save-cwd: reduce default dependency
1346         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
1347         * lib/save-cwd.c: Update comments.
1348         * NEWS: Document the semantic change.
1349
1350         getcwd: enhance tests
1351         * tests/test-getcwd-lgpl.c: New file, taken from...
1352         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
1353         repeat long path stress tests from m4 probe.
1354         * modules/getcwd-lgpl-tests: New module.
1355         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
1356         * m4/getcwd-abort-bug.m4: Update comment.
1357         * m4/getcwd-path-max.m4: Likewise.
1358
1359         getcwd-lgpl: new module
1360         * modules/getcwd-lgpl: New module.
1361         * lib/getcwd-lgpl.c: New file.
1362         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1363         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1364         * modules/getcwd (configure.ac): Set C witness.
1365         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
1366
1367         getcwd: tweak comments
1368         * m4/getcwd-abort-bug.m4: Fix comments.
1369         * m4/getcwd-path-max.m4: Likewise.
1370         * m4/getcwd.m4: Likewise.
1371
1372 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1373         and Eric Blake  <eblake@redhat.com>
1374
1375         mkstemp: replace if system version uses wrong permissions
1376         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
1377         read/write mode bits set in file created by mkstemp.
1378         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
1379
1380 2011-04-27  Eric Blake  <eblake@redhat.com>
1381
1382         passfd: avoid compiler warning
1383         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
1384         Reported by Laine Stump.
1385
1386 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
1387
1388         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
1389         required by the NetBSD (and perhaps other 4.4BSD derived) join.
1390
1391 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
1392         and Eric Blake  <eblake@redhat.com>
1393
1394         mkstemp: mention clean-temp module
1395         * lib/mkstemp.c: Add comment.
1396         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
1397
1398 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
1399
1400         inttypes: also provide default values for 32-bit tests
1401         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
1402         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
1403
1404 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
1405
1406         strtoumax: remove dependency on strtoimax
1407         This is like the strtoull change of yesterday.
1408         * modules/strtoumax (Files): Add lib/strtoimax.c.
1409         (Depends-on): Remove strtoimax and add verify.
1410
1411         inttypes-incomplete: new module
1412         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
1413         all but the PRI* and SCN* parts of gl_INTTYPES_H.
1414         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
1415         of gl_INTTYPES_H.
1416         (gl_INTTYPES_H): Rewrite in terms of these new macros.
1417         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
1418         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
1419         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
1420         * modules/strtoumax, modules/xstrtol (Depends-on):
1421         Depend on inttypes-incomplete, not inttypes.
1422         * modules/inttypes-incomplete: New module, containing the contents
1423         of the old modules/inttypes module, except that the Files: section
1424         omits m4/inttypes-pri.m4, and the configure.ac section invokes
1425         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
1426         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
1427         (Depends-on): Depend only on inttypes-incomplete.
1428         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
1429
1430         inttypes: omit now-redundant strtoimax and strtoumax work
1431         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
1432         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
1433
1434         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
1435         This supports apps that need pointers to strtoimax and strtoumax,
1436         and ports to HP-UX 11.00 64.bit, which has macros that expand to
1437         nonexistent functions.  See
1438         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
1439         et seq.
1440         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
1441         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
1442         a macro.
1443         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1444
1445 2011-04-25  Simon Josefsson  <simon@josefsson.org>
1446
1447         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
1448
1449 2011-04-25  Bruno Haible  <bruno@clisp.org>
1450
1451         strtol, strtoul: Mark modules as obsolete.
1452         * modules/strtol (Status, Notice): New sections.
1453         * modules/strtoul (Status, Notice): New sections.
1454
1455 2011-04-25  Bruno Haible  <bruno@clisp.org>
1456
1457         strtod: Remove check for strtod, unless supporting old platforms.
1458         * modules/strtod-obsolete: New file.
1459         * m4/strtod-obsolete.m4: New file.
1460         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
1461         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
1462         * modules/strtod (Depends-on): Add strtod-obsolete.
1463         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
1464
1465 2011-04-25  Bruno Haible  <bruno@clisp.org>
1466
1467         strcase: Make module obsolete.
1468         * modules/strcase (Status, Notice): New sections.
1469
1470 2011-04-25  Bruno Haible  <bruno@clisp.org>
1471
1472         dup2: Remove check for dup2, unless supporting old obsolete platforms.
1473         * modules/dup2-obsolete: New file.
1474         * m4/dup2-obsolete.m4: New file.
1475         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
1476         gl_FUNC_DUP2_OBSOLETE is not also defined.
1477         * modules/dup2 (Depends-on): Add dup2-obsolete.
1478         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
1479
1480 2011-04-25  Bruno Haible  <bruno@clisp.org>
1481
1482         strnlen: Avoid memchr related link error on old obsolete platforms.
1483         * modules/memchr-obsolete: New file.
1484         * m4/memchr-obsolete.m4: New file.
1485         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
1486         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
1487         * modules/memchr (Depends-on): Add memchr-obsolete.
1488         * modules/strnlen (Depends-on): Likewise.
1489         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
1490
1491 2011-04-25  Jim Meyering  <meyering@redhat.com>
1492
1493         maint.mk: makefile_at_at_check extend and clean up
1494         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
1495         in addition to */Makefile.am.
1496         Exempt legitimate uses of @VAR@ notation, e.g.,
1497         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
1498         Remove obsolete coreutils-specific comment.
1499         Prompted by discussion here:
1500         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
1501
1502 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
1503
1504         strtoul: remove dependency on strtol
1505         This is so that 'configure' need not check for strtol merely because
1506         the application needs strtoul.
1507         * modules/strtoul (Files): Add lib/strtol.c.
1508         (Depends-on): Remove strtol.
1509
1510         strtoull: remove dependency on strtoul
1511         This is like the strtoll change.
1512         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
1513         (Depends-on): Remove strtoul.
1514
1515         strtoll: remove dependency on strtol
1516         This is so that 'configure' need not check for strtol merely because
1517         the application needs strtoll.
1518         * modules/strtoll (Files): Add lib/strtol.c.
1519         (Depends-on): Remove strtol.
1520
1521 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1522
1523         inttypes: Move some configure check to module 'imaxdiv'.
1524         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
1525         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
1526         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
1527
1528 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1529
1530         inttypes: Move some configure check to module 'imaxabs'.
1531         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
1532         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
1533         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
1534
1535 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1536
1537         inttypes: Remove configure tests that are not needed since 2009-12-31.
1538         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
1539         gl_cv_header_working_inttypes_h.
1540
1541 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         * modules/strnlen (Depends-on): Remove memchr.
1544         The strnlen implementation doesn't need the memchr module's fixes; see
1545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
1546
1547         strtol: remove dependency on wchar
1548         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
1549         * modules/strtol (Depends-on): Remove wchar.
1550
1551 2011-04-21  Eric Blake  <eblake@redhat.com>
1552
1553         passfd: fix test regression on Linux
1554         * modules/passfd-tests (configure.ac): Correct socketpair check.
1555
1556         passfd: speed up configure and drop unused code
1557         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
1558         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
1559         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
1560         Instead of probing at configure for unix_scm_rights_bsd44_way,
1561         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
1562         check to a struct member probe.
1563         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
1564         (sendfd, recvfd): Update preprocessor checks.
1565         * modules/passfd (Files): Reflect rename, and drop unused file.
1566         (Depends-on): Drop unused dependency.
1567
1568         passfd: allow compilation on mingw
1569         * modules/sys_socket (Depends-on): Add sys_uio.
1570         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
1571         iovec and a minimal struct msghdr.
1572         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
1573         * tests/test-sys_socket.c (main): Enhance test.
1574         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
1575         guaranteed to provide what we need.
1576         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
1577         * modules/passfd-tests (Depends-on): Add sys_wait.
1578         * tests/test-passfd.c (main): Skip test on mingw, for now.
1579         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
1580         partial 'struct msghdr' implementation.
1581
1582         sys_uio: new module
1583         * modules/sys_uio: New module.
1584         * modules/sys_uio-tests: Likewise.
1585         * lib/sys_uio.in.h: New file.
1586         * m4/sys_uio_h.m4: Likewise.
1587         * tests/test-sys_uio.c: Likewise.
1588         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
1589         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
1590
1591 2011-04-20  Jim Meyering  <meyering@redhat.com>
1592
1593         useless-if-before-free: avoid false-positive
1594         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
1595         disjunct so that it too requires a terminating ";".  Without that,
1596         this script would identify as useless one statement from gcc that
1597         was not:
1598           if (aligned_ptr)
1599             free (((void **) aligned_ptr) [-1]);
1600
1601 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
1602
1603         doc: update users.txt.
1604         * users.txt: Add barcode.
1605
1606 2011-04-19  Bruno Haible  <bruno@clisp.org>
1607
1608         ioctl: Remove link dependency on native Windows.
1609         * lib/fd-hook.h: Renamed from lib/close-hook.h.
1610         (gl_close_fn, gl_ioctl_fn): New types.
1611         (struct fd_hook): Renamed from struct close_hook. Change type of
1612         private_close_fn field. Add private_ioctl_fn field.
1613         (close_hook_fn): Add parameter for primary close method.
1614         (execute_close_hooks, execute_all_close_hooks): Likewise.
1615         (ioctl_hook_fn): New type.
1616         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
1617         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1618         argument.
1619         (unregister_fd_hook): Renamed from unregister_close_hook.
1620         * lib/fd-hook.c: Renamed from lib/close-hook.c.
1621         Don't include <unistd.h>.
1622         (close): Remove undef.
1623         (anchor): Update.
1624         (execute_close_hooks): Add argument for primary close method.
1625         (execute_all_close_hooks): Likewise.
1626         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
1627         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
1628         argument. Allow each argument to be NULL.
1629         (unregister_fd_hook): Renamed from unregister_close_hook.
1630         * lib/close.c (rpl_close): Pass 'close' function pointer to
1631         execute_all_close_hooks.
1632         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
1633         (primary_ioctl): New function.
1634         (ioctl): Don't call ioctlsocket here. Instead, call
1635         execute_all_ioctl_hooks.
1636         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
1637         close method.
1638         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
1639         (fd_sockets_hook): Renamed from close_sockets_hook.
1640         (gl_sockets_startup, gl_sockets_cleanup): Update.
1641         * modules/fd-hook: Renamed from modules/close-hook. Update.
1642         * modules/close (Depends-on): Add fd-hook, remove close-hook.
1643         * modules/sockets (Depends-on): Likewise.
1644         * modules/ioctl (Depends-on): Add fd-hook.
1645         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
1646         GNULIB_SOCKET.
1647
1648 2011-04-19  Bruno Haible  <bruno@clisp.org>
1649
1650         Move the support of O_NONBLOCK in open() to the 'open' module.
1651         * modules/nonblocking (Depends-on): Remove 'open'.
1652         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
1653         gl_cv_have_open_O_NONBLOCK.
1654         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
1655         O_NONBLOCK support.
1656         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
1657
1658 2011-04-17  Bruno Haible  <bruno@clisp.org>
1659
1660         pipe2: Simplify code.
1661         * lib/pipe2.c (pipe2): Reduce code duplication.
1662
1663 2011-04-17  Bruno Haible  <bruno@clisp.org>
1664
1665         nonblocking: Add comment.
1666         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
1667
1668 2011-04-17  Bruno Haible  <bruno@clisp.org>
1669
1670         nonblocking: Add tests for sockets.
1671         * tests/test-nonblocking-socket.sh: New file.
1672         * tests/test-nonblocking-socket-main.c: New file.
1673         * tests/test-nonblocking-socket-child.c: New file.
1674         * tests/test-nonblocking-socket.h: New file.
1675         * tests/socket-server.h: New file.
1676         * tests/socket-client.h: New file.
1677         * modules/nonblocking-socket-tests: New file.
1678         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
1679
1680 2011-04-17  Bruno Haible  <bruno@clisp.org>
1681
1682         nonblocking: Add tests for pipes.
1683         * tests/test-nonblocking-pipe.sh: New file.
1684         * tests/test-nonblocking-pipe-main.c: New file.
1685         * tests/test-nonblocking-pipe-child.c: New file.
1686         * tests/test-nonblocking-pipe.h: New file.
1687         * tests/test-nonblocking-writer.h: New file.
1688         * tests/test-nonblocking-reader.h: New file.
1689         * tests/test-nonblocking-misc.h: New file.
1690         * modules/nonblocking-pipe-tests: New file.
1691         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
1692
1693 2011-04-16  Bruno Haible  <bruno@clisp.org>
1694
1695         gettext: Clarify the needed programmer actions.
1696         * modules/gettext (Notice): New field.
1697         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
1698
1699 2011-04-16  Bruno Haible  <bruno@clisp.org>
1700
1701         strchrnul: Tweak last commit.
1702         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
1703         bug.
1704         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
1705         as in _GL_FUNCDECL_SYS.
1706         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
1707         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
1708
1709 2011-04-15  Eric Blake  <eblake@redhat.com>
1710
1711         strchrnul: work around cygwin bug
1712         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
1713         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
1714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
1715         * modules/string (Makefile.am): Substitute it.
1716         * lib/string.in.h (strchrnul): Use it.
1717
1718 2011-04-15  Bruno Haible  <bruno@clisp.org>
1719
1720         Don't require lib/stdio-write.c when only module 'stdio' is used.
1721         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
1722         invocation.
1723         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
1724
1725 2011-04-14  Bruno Haible  <bruno@clisp.org>
1726
1727         Support non-blocking pipe I/O in read() on native Windows.
1728         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
1729         (read): New declaration.
1730         * lib/read.c: New file.
1731         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
1732         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
1733         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
1734         vscanf): New declarations.
1735         * lib/stdio-read.c: New file.
1736         * m4/read.m4: New file.
1737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
1738         REPLACE_READ.
1739         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
1740         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1741         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
1742         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
1743         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
1744         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1745         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1746         * modules/read: New file.
1747         * modules/nonblocking (Files): Add lib/stdio-read.c.
1748         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
1749         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
1750         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
1751         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
1752         * modules/pread (Depends-on): Add read.
1753         * modules/safe-read (Depends-on): Likewise.
1754         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
1755         gets, scanf, vfscanf, vscanf): Verify signatures.
1756         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
1757         problem with non-blocking pipes.
1758         * doc/posix-functions/fgetc.texi: Likewise.
1759         * doc/posix-functions/fgets.texi: Likewise.
1760         * doc/posix-functions/fread.texi: Likewise.
1761         * doc/posix-functions/fscanf.texi: Likewise.
1762         * doc/posix-functions/getc.texi: Likewise.
1763         * doc/posix-functions/getchar.texi: Likewise.
1764         * doc/posix-functions/gets.texi: Likewise.
1765         * doc/posix-functions/scanf.texi: Likewise.
1766         * doc/posix-functions/vfscanf.texi: Likewise.
1767         * doc/posix-functions/vscanf.texi: Likewise.
1768
1769 2011-04-14  Bruno Haible  <bruno@clisp.org>
1770
1771         Support non-blocking pipe I/O in write() on native Windows.
1772         * lib/write.c (rpl_write): Split a write request that failed merely
1773         because the byte count was larger than the pipe buffer's size.
1774         * doc/posix-functions/write.texi: Mention the problem with large byte
1775         counts.
1776
1777 2011-04-14  Bruno Haible  <bruno@clisp.org>
1778
1779         wchar: Ensure that wchar_t gets defined on uClibc.
1780         * lib/wchar.in.h: On uClibc, include <stddef.h>.
1781         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
1782
1783 2011-04-13  Bruno Haible  <bruno@clisp.org>
1784
1785         safe-write, full-read: Avoid unnecessary compilation units.
1786         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
1787         (Depends-on): Remove safe-read. Add ssize_t.
1788         * modules/full-read (Files): Add lib/full-write.c.
1789         (Depends-on): Add full-write.
1790
1791 2011-04-13  Bruno Haible  <bruno@clisp.org>
1792
1793         Support non-blocking pipe I/O and SIGPIPE in pwrite().
1794         * modules/pwrite (Depends-on): Add 'write'.
1795
1796 2011-04-13  Bruno Haible  <bruno@clisp.org>
1797
1798         Support non-blocking pipe I/O in write() on native Windows.
1799         * lib/unistd.in.h (write): Enable replacement also if
1800         GNULIB_UNISTD_H_NONBLOCKING is 1.
1801         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
1802         (rpl_write): When failing to write on a non-blocking pipe, change
1803         errno from ENOSPC to EAGAIN.
1804         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
1805         putchar, puts, vfprintf, vprintf): Enable replacement also if
1806         GNULIB_STDIO_H_NONBLOCKING is 1.
1807         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
1808         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
1809         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
1810         CALL_WITH_SIGPIPE_EMULATION.
1811         (CALL_WITH_SIGPIPE_EMULATION): Use them.
1812         * m4/nonblocking.m4: New file.
1813         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
1814         for non-blocking I/O support.
1815         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1816         GNULIB_UNISTD_H_NONBLOCKING.
1817         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
1818         required for non-blocking I/O support.
1819         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
1820         * modules/nonblocking (Files): Add m4/nonblocking.m4,
1821         lib/stdio-write.c, m4/asm-underscore.m4.
1822         (Depends-on): Add stdio, unistd.
1823         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
1824         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
1825         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
1826         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
1827         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
1828         problem with non-blocking pipes.
1829         * doc/posix-functions/fputc.texi: Likewise.
1830         * doc/posix-functions/fputs.texi: Likewise.
1831         * doc/posix-functions/fwrite.texi: Likewise.
1832         * doc/posix-functions/printf.texi: Likewise.
1833         * doc/posix-functions/putc.texi: Likewise.
1834         * doc/posix-functions/putchar.texi: Likewise.
1835         * doc/posix-functions/puts.texi: Likewise.
1836         * doc/posix-functions/vfprintf.texi: Likewise.
1837         * doc/posix-functions/vprintf.texi: Likewise.
1838         * doc/posix-functions/write.texi: Likewise.
1839
1840 2011-04-10  Jim Meyering  <meyering@redhat.com>
1841
1842         maint.mk: prohibit doubled words
1843         Detect them also when they're separated by a newline.
1844         There are 3 ways to customize it:
1845           - disable the test on a per file basis, as usual with rules using
1846             $(VC_LIST_EXCEPT)
1847           - replace the default doubled-word-selecting regexp (affects all files)
1848           - ignore a particular file-vs-doubled-word match
1849         I nearly used that last one to ignore the "is is" match in
1850         coreutils' NEWS file, since the text was "ls -is is ..."
1851         To do that, I would have added this line to cfg.mk:
1852           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
1853         but it would have ignored any "is is" match in NEWS.
1854         Low probability, but still...
1855         Instead, I changed the text, slightly:
1856           -  ls -is is now consistent with ls -lis in ignoring values returned
1857           +  "ls -is" is now consistent with ls -lis in ignoring values returned
1858         * top/maint.mk (prohibit_double_word_RE_): Provide default.
1859         (prohibit_doubled_word_): Define.
1860         (sc_prohibit_doubled_word): New rule.
1861         (sc_prohibit_the_the): Remove.  Subsumed by the above.
1862
1863 2011-04-10  Jim Meyering  <meyering@redhat.com>
1864
1865         maint: fix doubled-word typo in comment
1866         * m4/gethostname.m4: s/is is/it is/
1867         * m4/getdomainname.m4: Likewise.
1868
1869 2011-04-10  Jim Meyering  <meyering@redhat.com>
1870
1871         maint: remove doubled word: s/it it/it/
1872         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
1873
1874 2011-04-10  Jim Meyering  <meyering@redhat.com>
1875
1876         maint.mk: remove useless semicolon and backslash
1877         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
1878         semicolon and backslash.
1879
1880 2011-04-10  Bruno Haible  <bruno@clisp.org>
1881
1882         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
1883         * modules/stdint-tests (Depends-on): Add wchar.
1884
1885 2011-04-10  Jim Meyering  <meyering@redhat.com>
1886
1887         maint: remove doubled words in comments, e.g., s/a a/a/
1888         * lib/strptime.c (day_of_the_week): s/the the/the/
1889         * tests/test-chown.h (test_chown): s/a a/a/
1890
1891         test-chown.h: correct a cast
1892         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
1893         when the destination is a stat.st_gid.
1894
1895 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
1896
1897         getaddrinfo: Fix test for sa_len member.
1898         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
1899         include <sys/types.h> before <sys/socket.h>.
1900
1901 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
1902
1903         maint: change "can not" to "cannot"
1904         * doc/posix-functions/iconv.texi (iconv): This one crossed line
1905         boundaries.
1906
1907 2011-04-09  Jim Meyering  <meyering@redhat.com>
1908
1909         maint: change "a a" to "a"
1910         * tests/test-lchown.h (test_lchown): s/a a/a/
1911
1912         maint.mk: prohibit \<the the\>
1913         * top/maint.mk (sc_prohibit_the_the): New rule.
1914
1915         maint: fix "the the" in comment
1916         * lib/count-one-bits.h: s/the the/the/
1917
1918         maint: change "can not" to "cannot"
1919         But do not change the occurrences in maintain.texi or in
1920         build-aux/po/Makefile.in.in, which I presume comes from gettext.
1921         * doc/gnulib-tool.texi: s/can not/cannot/
1922         * doc/posix-functions/accept.texi (accept): Likewise.
1923         * doc/posix-functions/socket.texi (socket): Likewise.
1924         * lib/mbrtowc.c: Likewise.
1925
1926         maint.mk: prohibit use of "can not"
1927         * top/maint.mk (sc_prohibit_can_not): New rule.
1928         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
1929
1930 2011-04-09  Bruno Haible  <bruno@clisp.org>
1931
1932         careadlinkat: Guard against misuse of careadlinkatcwd.
1933         * lib/careadlinkat.c: Include <stdlib.h>.
1934         (careadlinkatcwd): Check that the fd argument is as expected.
1935
1936 2011-04-09  Bruno Haible  <bruno@clisp.org>
1937
1938         careadlinkat: Use common coding style.
1939         * lib/careadlinkat.c: Move gnulib includes after system includes.
1940
1941 2011-04-09  Bruno Haible  <bruno@clisp.org>
1942
1943         careadlinkat: Clarify specification.
1944         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
1945         (careadlinkatcwd): Add comment.
1946         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
1947
1948 2011-04-09  Bruno Haible  <bruno@clisp.org>
1949
1950         areadlinkat: Avoid link error on many platforms.
1951         * modules/areadlinkat (Depends-on): Add areadlink.
1952
1953 2011-04-09  Bruno Haible  <bruno@clisp.org>
1954
1955         allocator, careadlinkat: Fix double-inclusion guard.
1956         * lib/allocator.h: Fix double-inclusion guard.
1957         * lib/careadlinkat.h: Likewise.
1958
1959 2011-04-09  Bruno Haible  <bruno@clisp.org>
1960
1961         relocatable-prog-wrapper: Update after module 'areadlink' changed.
1962         * lib/relocwrapper.c: Update dependencies hierarchy.
1963         * build-aux/install-reloc: Update list of files to be compiled.
1964         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
1965         lib/allocator.[hc].
1966
1967 2011-04-08  Eric Blake  <eblake@redhat.com>
1968
1969         strftime: silence gnulib-tool warning
1970         * modules/strftime-tests (Depends-on): Drop automatic dependency.
1971
1972 2011-04-08  Bruno Haible  <bruno@clisp.org>
1973
1974         verify: Fix syntax error with GCC 4.6 in C++ mode.
1975         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
1976         (HAVE_STATIC_ASSERT): New macro.
1977         (verify_true, verify): Use 'static_assert' if it is supported and
1978         '_Static_assert' is not supported.
1979
1980 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
1981
1982         allocator: New module.
1983         * modules/allocator, lib/allocator.c: New files.
1984         * lib/allocator.h (stdlib_allocator): New decl.
1985         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
1986         Remove.  Do not include <stdlib.h>.
1987         (careadlinkat): Use stdlib_allocator instead of rolling our own.
1988         * modules/careadlinkat (Files): Remove lib/allocator.h.
1989         (Depends-on): Add allocator.
1990
1991         stdlib: let modules use system malloc, realloc
1992         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
1993         if !_GL_USE_STDLIB_ALLOC.
1994         (malloc, realloc): Limit this change to a smaller scope.
1995
1996         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
1997         (malloc, realloc): Don't #undef; no longer needed.
1998         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
1999         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2000         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2001         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2002         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2003         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2004         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
2005         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
2006
2007         careadlinkat: rename members to avoid problem
2008         * lib/allocator.h (struct allocator): Rename members from
2009         malloc/realloc to allocate/reallocate, to avoid problems if malloc
2010         and realloc are #define'd.  Reported by Eric Blake in
2011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
2012         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
2013
2014 2011-04-08  Eric Blake  <eblake@redhat.com>
2015
2016         nonblocking: reduce dependency
2017         * tests/test-nonblocking.c: Only test sockets when in use.
2018         * modules/nonblocking-tests (Depends-on): Drop socket.
2019         (Makefile.am): Link even if sockets are not present.
2020         * modules/pipe2-tests (Makefile.am): Likewise.
2021         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
2022
2023         pipe2: fix O_NONBLOCK support on mingw
2024         * modules/pipe2 (Depends-on): Add nonblocking.
2025         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
2026         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
2027         * tests/test-nonblocking.c (main): Likewise.
2028         * modules/pipe2-tests (Makefile.am): Avoid link failure.
2029
2030         fcntl-h: fix O_ACCMODE on cygwin
2031         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
2032         * lib/fcntl.in.h (O_ACCMODE): Fix it.
2033
2034         pipe-filter: drop O_NONBLOCK workarounds
2035         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
2036         * modules/pipe-filter-ii (Depends-on): Likewise.
2037         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
2038
2039         nonblocking: provide O_NONBLOCK for mingw
2040         * modules/nonblocking (Depends-on): Add open.
2041         (configure.ac): Set new witness macro.
2042         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
2043         * modules/fcntl-h (Makefile.am): Substitute it.
2044         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
2045         nonblocking module is in use.
2046         * lib/nonblocking.c: Adjust portability test.
2047         * lib/open.c (open): Don't let native open see gnulib flag.
2048         * tests/test-fcntl-h.c (main): Enhance test.
2049         * tests/test-open.h (test_open): Likewise.
2050         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
2051
2052         careadlinkat: fix compilation error on mingw
2053         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
2054         within struct allocator.
2055
2056 2011-04-06  Eric Blake  <eblake@redhat.com>
2057
2058         binary-io: relicense under LGPLv2+
2059         * modules/binary-io (License): Relax to LGPLv2+.
2060         Requested for libvirt, and required by pipe2.
2061
2062 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
2063
2064         verify: use _Static_assert if available
2065         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
2066         (verify_true, verify): Use it if available.  This generates better
2067         diagnostics with GCC 4.6.0 and later.
2068
2069 2011-04-05  Bruno Haible  <bruno@clisp.org>
2070
2071         Remove leftover generated .h files after config.status changed.
2072
2073         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
2074         GL_GENERATE_ALLOCA_H.
2075         * modules/alloca-opt (Makefile.am): Remove alloca.h if
2076         GL_GENERATE_ALLOCA_H evaluates to false.
2077
2078         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
2079         GL_GENERATE_ARGZ_H.
2080         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
2081         evaluates to false.
2082
2083         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
2084         GL_GENERATE_BYTESWAP_H.
2085         * modules/byteswap (Makefile.am): Remove byteswap.h if
2086         GL_GENERATE_BYTESWAP_H evaluates to false.
2087
2088         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
2089         GL_GENERATE_ERRNO_H.
2090         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
2091         evaluates to false.
2092
2093         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
2094         GL_GENERATE_FLOAT_H.
2095         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
2096         evaluates to false.
2097
2098         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
2099         GL_GENERATE_FNMATCH_H.
2100         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
2101         GL_GENERATE_FNMATCH_H evaluates to false.
2102
2103         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
2104         GL_GENERATE_GLOB_H.
2105         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
2106         evaluates to false.
2107
2108         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
2109         automake conditional GL_GENERATE_ICONV_H.
2110         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
2111         evaluates to false.
2112
2113         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
2114         GL_GENERATE_NETINET_IN_H.
2115         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
2116         GL_GENERATE_NETINET_IN_H evaluates to false.
2117
2118         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
2119         conditional GL_GENERATE_PTHREAD_H.
2120         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
2121         * modules/pthread (Makefile.am): Remove pthread.h if
2122         GL_GENERATE_PTHREAD_H evaluates to false.
2123
2124         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
2125         GL_GENERATE_SCHED_H.
2126         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
2127         evaluates to false.
2128
2129         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
2130         conditional GL_GENERATE_SELINUX_CONTEXT_H.
2131         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
2132         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
2133
2134         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
2135         GL_GENERATE_STDARG_H.
2136         * modules/stdarg (Makefile.am): Remove stdarg.h if
2137         GL_GENERATE_STDARG_H evaluates to false.
2138
2139         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
2140         GL_GENERATE_STDBOOL_H.
2141         * modules/stdbool (Makefile.am): Remove stdbool.h if
2142         GL_GENERATE_STDBOOL_H evaluates to false.
2143
2144         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
2145         conditional GL_GENERATE_STDDEF_H.
2146         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
2147         * modules/stddef (Makefile.am): Remove stddef.h if
2148         GL_GENERATE_STDDEF_H evaluates to false.
2149
2150         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
2151         GL_GENERATE_STDINT_H.
2152         * modules/stdint (Makefile.am): Remove stdint.h if
2153         GL_GENERATE_STDINT_H evaluates to false.
2154
2155         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
2156         GL_GENERATE_SYSEXITS_H.
2157         * modules/sysexits (Makefile.am): Remove sysexits.h if
2158         GL_GENERATE_SYSEXITS_H evaluates to false.
2159
2160         Reported by Karl Berry and Ralf Wildenhues.
2161
2162 2011-04-05  Bruno Haible  <bruno@clisp.org>
2163
2164         Ensure to rebuild generated .h files when config.status has changed.
2165         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
2166         config.status.
2167         * modules/ctype (Makefile.am): Likewise.
2168         * modules/dirent (Makefile.am): Likewise.
2169         * modules/errno (Makefile.am): Likewise.
2170         * modules/fcntl-h (Makefile.am): Likewise.
2171         * modules/float (Makefile.am): Likewise.
2172         * modules/getopt-posix (Makefile.am): Likewise.
2173         * modules/glob (Makefile.am): Likewise.
2174         * modules/iconv-h (Makefile.am): Likewise.
2175         * modules/inttypes (Makefile.am): Likewise.
2176         * modules/langinfo (Makefile.am): Likewise.
2177         * modules/locale (Makefile.am): Likewise.
2178         * modules/math (Makefile.am): Likewise.
2179         * modules/netdb (Makefile.am): Likewise.
2180         * modules/netinet_in (Makefile.am): Likewise.
2181         * modules/poll-h (Makefile.am): Likewise.
2182         * modules/pthread (Makefile.am): Likewise.
2183         * modules/pty (Makefile.am): Likewise.
2184         * modules/sched (Makefile.am): Likewise.
2185         * modules/search (Makefile.am): Likewise.
2186         * modules/selinux-h (Makefile.am): Likewise.
2187         * modules/signal (Makefile.am): Likewise.
2188         * modules/spawn (Makefile.am): Likewise.
2189         * modules/stdarg (Makefile.am): Likewise.
2190         * modules/stdbool (Makefile.am): Likewise.
2191         * modules/stddef (Makefile.am): Likewise.
2192         * modules/stdint (Makefile.am): Likewise.
2193         * modules/stdio (Makefile.am): Likewise.
2194         * modules/stdlib (Makefile.am): Likewise.
2195         * modules/string (Makefile.am): Likewise.
2196         * modules/strings (Makefile.am): Likewise.
2197         * modules/sys_file (Makefile.am): Likewise.
2198         * modules/sys_ioctl (Makefile.am): Likewise.
2199         * modules/sys_select (Makefile.am): Likewise.
2200         * modules/sys_socket (Makefile.am): Likewise.
2201         * modules/sys_stat (Makefile.am): Likewise.
2202         * modules/sys_time (Makefile.am): Likewise.
2203         * modules/sys_times (Makefile.am): Likewise.
2204         * modules/sys_utsname (Makefile.am): Likewise.
2205         * modules/sys_wait (Makefile.am): Likewise.
2206         * modules/sysexits (Makefile.am): Likewise.
2207         * modules/termios (Makefile.am): Likewise.
2208         * modules/time (Makefile.am): Likewise.
2209         * modules/unistd (Makefile.am): Likewise.
2210         * modules/wchar (Makefile.am): Likewise.
2211         * modules/wctype-h (Makefile.am): Likewise.
2212         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
2213
2214 2011-04-05  Bruno Haible  <bruno@clisp.org>
2215
2216         pipe2: Relicense under LGPLv2+.
2217         * modules/pipe2 (License): Change to LGPLv2+.
2218         Requested by Eric Blake, for libvirt.
2219
2220 2011-04-05  Bruce Korb  <bkorb@gnu.org>
2221
2222         bootstrap: compute gnulib_extra_files after updating build_aux
2223         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
2224         change build_aux or also supply gnulib_extra_files.  Handle correctly.
2225
2226 2011-04-05  Eric Blake  <eblake@redhat.com>
2227
2228         bootstrap: preserve git whitelist item sorting
2229         * build-aux/bootstrap (sort_patterns): New function.
2230         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
2231
2232 2011-04-05  Simon Josefsson  <simon@josefsson.org>
2233
2234         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
2235         sc_space_tab check.
2236
2237 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
2238
2239         areadlink, areadlinkat: rewrite in terms of careadlinkat
2240         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
2241         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
2242         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
2243         (malloc, realloc): Remove #undefs.
2244         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
2245         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
2246         readlink, ssize_t, stdint, unistd.
2247         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
2248         areadlink, stdint.
2249
2250         careadlinkat: new module
2251         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
2252         * modules/careadlinkat: New files, written by me with
2253         a review and feedback from Ben Pfaff in
2254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
2255
2256 2011-04-01  Bruno Haible  <bruno@clisp.org>
2257
2258         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
2259         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
2260         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
2261         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2262         Reported by Bruce Korb <bruce.korb@gmail.com>.
2263
2264 2011-04-01  Bruno Haible  <bruno@clisp.org>
2265
2266         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
2267         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
2268         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
2269         * modules/wcpcpy (Depends-on): Add extensions.
2270         * modules/wcpncpy (Depends-on): Likewise.
2271         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
2272         systems.
2273         * doc/posix-functions/wcpncpy.texi: Likewise.
2274         * doc/posix-functions/wcwidth.texi: Likewise.
2275
2276 2011-03-31  Eric Blake  <eblake@redhat.com>
2277
2278         nonblocking: fix mingw test failures
2279         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
2280         non-blocking flag on regular file.
2281         (get_nonblocking_flag): Set errno on invalid fd.
2282         * tests/test-nonblocking.c (main): Avoid test failure on
2283         directories if fchdir is not active.
2284         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
2285
2286 2011-03-31  Bruno Haible  <bruno@clisp.org>
2287
2288         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
2289         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
2290         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
2291         Reported by Simon Josefsson <simon@josefsson.org>.
2292
2293 2011-03-31  Bruno Haible  <bruno@clisp.org>
2294         and Eric Blake  <eblake@redhat.com>
2295
2296         nonblocking: new module
2297         * modules/nonblocking: New module.
2298         * modules/nonblocking-tests: Likewise.
2299         * lib/nonblocking.h: New file.
2300         * lib/nonblocking.c: Likewise.
2301         * tests/test-nonblocking.c: New test.
2302         * lib/ioctl.c (ioctl) [mingw]: Update comment.
2303
2304 2011-03-30  Bruno Haible  <bruno@clisp.org>
2305
2306         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
2307         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
2308         instead of 'printf' format for GCC >= 4.4.
2309         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
2310         (fprintf, printf, vfprintf, vprintf): Declare with
2311         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
2312         the system's vfprintf() function.
2313         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
2314
2315 2011-03-30  Eric Blake  <eblake@redhat.com>
2316
2317         passfd: fix scoping bug
2318         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
2319         before sendmsg/recvmsg.
2320
2321         passfd: standardize coding conventions
2322         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
2323         can be learned at compile time.
2324         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
2325         ifdefs.
2326         (sendfd, recvfd): Follow gnulib code conventions.
2327
2328         passfd: fix incorrect sendmsg arguments
2329         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
2330         incorrect msg_controllen value.
2331         * modules/passfd-tests (Depends-on): Check for alarm.
2332         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
2333         Reported by Bastien ROUCARIES.
2334
2335 2011-03-30  Bruno Haible  <bruno@clisp.org>
2336
2337         c-strcasestr: Relicense under LGPLv2+.
2338         * modules/c-strcasestr (License): Change to LGPLv2+.
2339         Requested by Eric Blake, for libvirt.
2340
2341 2011-03-30  Simon Josefsson  <simon@josefsson.org>
2342
2343         * users.txt: Add libidn2.  Fix libtasn1 link.
2344
2345 2011-03-30  Jim Meyering  <meyering@redhat.com>
2346
2347         tests: readlink* ("",... fails with EINVAL on newer kernels
2348         readlink and readlinkat have typically failed with ENOENT for
2349         the invalid, empty file name,  "".  However, with the advent
2350         of linux-2.6.39, they fail with EINVAL.
2351         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
2352         when operating on the empty file name.
2353         * tests/test-readlink.h (test_readlink): Likewise.
2354
2355 2011-03-29  Bruno Haible  <bruno@clisp.org>
2356
2357         Relicense some modules under LGPLv2+, for libidn2.
2358         * modules/array-mergesort (License): Change to LGPLv2+.
2359         * modules/c-strcaseeq (License): Likewise.
2360         * modules/striconveh (License): Likewise.
2361         * modules/striconveha (License): Likewise.
2362         * modules/uniconv/base (License): Likewise.
2363         * modules/uniconv/u8-conv-from-enc (License): Likewise.
2364         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
2365         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
2366         * modules/unictype/base (License): Likewise.
2367         * modules/unictype/bidiclass-of (License): Likewise.
2368         * modules/unictype/category-M (License): Likewise.
2369         * modules/unictype/category-none (License): Likewise.
2370         * modules/unictype/category-of (License): Likewise.
2371         * modules/unictype/category-test (License): Likewise.
2372         * modules/unictype/category-test-withtable (License): Likewise.
2373         * modules/unictype/combining-class (License): Likewise.
2374         * modules/unictype/joiningtype-of (License): Likewise.
2375         * modules/unictype/scripts (License): Likewise.
2376         * modules/uninorm/base (License): Likewise.
2377         * modules/uninorm/canonical-decomposition (License): Likewise.
2378         * modules/uninorm/composition (License): Likewise.
2379         * modules/uninorm/decompose-internal (License): Likewise.
2380         * modules/uninorm/decomposition-table (License): Likewise.
2381         * modules/uninorm/nfc (License): Likewise.
2382         * modules/uninorm/nfd (License): Likewise.
2383         * modules/uninorm/u32-normalize (License): Likewise.
2384         * modules/unistr/base (License): Likewise.
2385         * modules/unistr/u32-cpy (License): Likewise.
2386         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
2387         * modules/unistr/u32-to-u8 (License): Likewise.
2388         * modules/unistr/u32-uctomb (License): Likewise.
2389         * modules/unistr/u8-check (License): Likewise.
2390         * modules/unistr/u8-mblen (License): Likewise.
2391         * modules/unistr/u8-mbtouc (License): Likewise.
2392         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
2393         * modules/unistr/u8-mbtoucr (License): Likewise.
2394         * modules/unistr/u8-prev (License): Likewise.
2395         * modules/unistr/u8-strlen (License): Likewise.
2396         * modules/unistr/u8-to-u32 (License): Likewise.
2397         * modules/unistr/u8-uctomb (License): Likewise.
2398         * modules/unitypes (License): Likewise.
2399         Requested by Simon Josefsson.
2400
2401 2011-03-29  Simon Josefsson  <simon@josefsson.org>
2402
2403         lib-symbol-visibility: Add a notice.
2404         * modules/lib-symbol-visibility (Notice): New field.
2405
2406 2011-03-29  Bruno Haible  <bruno@clisp.org>
2407
2408         getaddrinfo: Doc fix.
2409         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
2410         section "fixed in Gnulib".
2411
2412 2011-03-28  Simon Josefsson  <simon@josefsson.org>
2413
2414         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
2415         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
2416
2417 2011-03-26  Bruno Haible  <bruno@clisp.org>
2418
2419         unictype/property-byname: Reduce the number of load-time relocations.
2420         * lib/unictype/pr_byname.c: Include <stdlib.h>.
2421         (UC_PROPERTY_INDEX_*): New enumeration values.
2422         (uc_property_byname): Convert an index from the lookup table to an
2423         uc_property_t.
2424         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
2425         values.
2426
2427 2011-03-26  Bruno Haible  <bruno@clisp.org>
2428
2429         unictype/property-byname: Allow omitted word separators and aliases.
2430         * lib/unictype/pr_byname.gperf: Add property names without word
2431         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
2432         for 'space'.
2433
2434 2011-03-26  Bruno Haible  <bruno@clisp.org>
2435
2436         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
2437         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
2438         also hyphens to space.
2439         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
2440         without spaces.
2441         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
2442
2443 2011-03-26  Bruno Haible  <bruno@clisp.org>
2444
2445         unictype/joiningtype-byname: Recognize long names as well.
2446         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
2447         a long name.
2448         * lib/unictype/joiningtype_byname.c: Include <string.h>,
2449         unictype/joiningtype_byname.h.
2450         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
2451         * lib/unictype/joiningtype_byname.gperf: New file.
2452         * modules/unictype/joiningtype-byname (Files): Add
2453         lib/unictype/joiningtype_byname.gperf.
2454         (Depends-on): Add gperf.
2455         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
2456         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
2457         long names.
2458
2459         Tests for module 'unictype/joiningtype-longname'.
2460         * modules/unictype/joiningtype-longname-tests: New file.
2461         * tests/unictype/test-joiningtype_longname.c: New file.
2462
2463         New module 'unictype/joiningtype-longname'.
2464         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
2465         * lib/unictype/joiningtype_longname.c: New file.
2466         * modules/unictype/joiningtype-longname: New file.
2467         * modules/unictype/joiningtype-all (Depends-on): Add
2468         unictype/joiningtype-longname.
2469
2470 2011-03-26  Bruno Haible  <bruno@clisp.org>
2471
2472         unictype/bidiclass-byname: Recognize long names as well.
2473         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
2474         name.
2475         * lib/unictype/bidi_byname.c: Include <string.h>,
2476         unictype/bidi_byname.h.
2477         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
2478         * lib/unictype/bidi_byname.gperf: New file.
2479         * modules/unictype/bidiclass-byname (Files): Add
2480         lib/unictype/bidi_byname.gperf.
2481         (Depends-on): Add gperf.
2482         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
2483         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
2484         long names.
2485
2486         Tests for module 'unictype/bidiclass-longname'.
2487         * modules/unictype/bidiclass-longname-tests: New file.
2488         * tests/unictype/test-bidi_longname.c: New file.
2489
2490         New module 'unictype/bidiclass-longname'.
2491         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
2492         * lib/unictype/bidi_longname.c: New file.
2493         * modules/unictype/bidiclass-longname: New file.
2494         * modules/unictype/bidiclass-all (Depends-on): Add
2495         unictype/bidiclass-longname.
2496
2497 2011-03-26  Bruno Haible  <bruno@clisp.org>
2498
2499         unictype/bidi*: Rename modules.
2500         * modules/unictype/bidiclass-all: Renamed from
2501         modules/unictype/bidicategory-all.
2502         * modules/unictype/bidiclass-name: Renamed from
2503         modules/unictype/bidiclass-name.
2504         (Description): Update.
2505         * modules/unictype/bidiclass-name-tests: Renamed from
2506         modules/unictype/bidicategory-name-tests.
2507         * modules/unictype/bidiclass-byname: Renamed from
2508         modules/unictype/bidicategory-byname.
2509         (Description): Update.
2510         * modules/unictype/bidiclass-byname-tests: Renamed from
2511         modules/unictype/bidicategory-byname-tests.
2512         * modules/unictype/bidiclass-of: Renamed from
2513         modules/unictype/bidicategory-of.
2514         (Description): Update.
2515         * modules/unictype/bidiclass-of-tests: Renamed from
2516         modules/unictype/bidicategory-of-tests.
2517         * modules/unictype/bidiclass-test: Renamed from
2518         modules/unictype/bidicategory-test.
2519         (Description): Update.
2520         * modules/unictype/bidiclass-test-tests: Renamed from
2521         modules/unictype/bidicategory-test-tests.
2522         * modules/unictype/bidicategory-all: New file, a simple redirection.
2523         * modules/unictype/bidicategory-name: Likewise.
2524         * modules/unictype/bidicategory-byname: Likewise.
2525         * modules/unictype/bidicategory-of: Likewise.
2526         * modules/unictype/bidicategory-test: Likewise.
2527         * modules/unictype/property-bidi-* (Dependencies): Update.
2528         * lib/unictype/bidi_*.c: Update comment.
2529
2530 2011-03-26  Bruno Haible  <bruno@clisp.org>
2531
2532         unictype/bidi*: Rename functions, part 2.
2533         * modules/unictype/bidicategory-name (configure.ac): Update required
2534         libunistring version.
2535         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
2536
2537 2011-03-25  Bruno Haible  <bruno@clisp.org>
2538
2539         New module 'unictype/combining-class-all'.
2540         * modules/unictype/combining-class-all: New file.
2541
2542         Tests for module 'unictype/combining-class-byname'.
2543         * modules/unictype/combining-class-byname-tests: New file.
2544         * tests/unictype/test-combiningclass_byname.c: New file.
2545
2546         New module 'unictype/combining-class-byname'.
2547         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
2548         * lib/unictype/combiningclass_byname.c: New file.
2549         * lib/unictype/combiningclass_byname.gperf: New file.
2550         * modules/unictype/combining-class-byname: New file.
2551
2552         Tests for module 'unictype/combining-class-longname'.
2553         * modules/unictype/combining-class-longname-tests: New file.
2554         * tests/unictype/test-combiningclass_longname.c: New file.
2555
2556         New module 'unictype/combining-class-longname'.
2557         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
2558         * lib/unictype/combiningclass_longname.c: New file.
2559         * modules/unictype/combining-class-longname: New file.
2560
2561         Tests for module 'unictype/combining-class-name'.
2562         * modules/unictype/combining-class-name-tests: New file.
2563         * tests/unictype/test-combiningclass_name.c: New file.
2564
2565         New module 'unictype/combining-class-name'.
2566         * lib/unictype.in.h (uc_combining_class_name): New declaration.
2567         * lib/unictype/combiningclass_name.c: New file.
2568         * modules/unictype/combining-class-name: New file.
2569
2570 2011-03-25  Bruno Haible  <bruno@clisp.org>
2571
2572         unictype/combining-class: Rename source files.
2573         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
2574         of unictype/combining.h.
2575         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
2576         Update.
2577         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
2578         * modules/unictype/combining-class (Description): Fix.
2579         (Files, Makefile.am): Update.
2580         * tests/unictype/test-combiningclass.c: Renamed from
2581         tests/unictype/test-combining.c.
2582         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
2583
2584 2011-03-25  Bruno Haible  <bruno@clisp.org>
2585
2586         unictype: Update list of canonical combining classes.
2587         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
2588
2589 2011-03-25  Bruno Haible  <bruno@clisp.org>
2590
2591         unictype/category-byname: Recognize long names as well.
2592         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
2593         a long name.
2594         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
2595         unictype/categ_byname.h.
2596         (UC_CATEGORY_INDEX_*): New enumeration values.
2597         (uc_general_category_byname): Use uc_general_category_lookup and
2598         convert from index to value.
2599         * lib/unictype/categ_byname.gperf: New file.
2600         * modules/unictype/category-byname (Files): Add
2601         lib/unictype/categ_byname.gperf.
2602         (Depends-on): Add gperf.
2603         (Makefile.am): Add rule for generating unictype/categ_byname.h.
2604         * tests/unictype/test-categ_byname.c (main): Test the recognition of
2605         long names.
2606
2607         Tests for module 'unictype/category-longname'.
2608         * modules/unictype/category-longname-tests: New file.
2609         * tests/unictype/test-categ_longname.c: New file.
2610
2611         New module 'unictype/category-longname'.
2612         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
2613         * lib/unictype/categ_longname.c: New file.
2614         * modules/unictype/category-longname: New file.
2615         * modules/unictype/category-all (Depends-on): Add it.
2616
2617 2011-03-25  Bruno Haible  <bruno@clisp.org>
2618
2619         Tests for module 'unictype/category-LC'.
2620         * modules/unictype/category-LC-tests: New file.
2621         * tests/unictype/test-categ_LC.c: New file, automatically generated.
2622
2623         New module 'unictype/category-LC'.
2624         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
2625         (UC_CATEGORY_LC): New declaration.
2626         (UC_CASED_LETTER): New macro.
2627         * lib/gen-uni-tables.c (is_category_LC): New function.
2628         (output_categories): Also handle category LC.
2629         (UC_CATEGORY_MASK_LC): New enumeration value.
2630         (general_category_byname): Also handle category LC.
2631         * lib/unictype/categ_LC.c: New file.
2632         * lib/unictype/categ_LC.h: New file, automatically generated.
2633         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
2634         category LC.
2635         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
2636         * modules/unictype/category-LC: New file.
2637         * modules/unictype/category-byname (Depends-on): Add
2638         unictype/category-LC.
2639         * modules/unictype/category-all (Depends-on): Likewise.
2640
2641 2011-03-25  Eric Blake  <eblake@redhat.com>
2642
2643         xmalloc: revert yesterday's regression
2644         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
2645         realloc's underlying behavior (allowing allocation of zero-size
2646         objects, especially if malloc-gnu is also in use).
2647
2648 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
2649
2650         maint.mk: add missing version to VC-tag
2651         * top/maint.mk: git tag was missing actual tag name; add it.
2652
2653         valgrind: do leak checking, and exit with code 1 on error (not 0)
2654         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
2655         to VALGRIND.
2656
2657 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
2658
2659         posix-modules: say what it does.
2660         * posix-modules: Add a line to the --help output saying what it does.
2661
2662 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
2663
2664         xmalloc: Do not leak if underlying realloc is C99 compatible.
2665         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
2666         This avoids a leak on C99-based systems.  See
2667         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
2668
2669 2011-03-24  Eric Blake  <eblake@redhat.com>
2670
2671         realloc: document portability problem
2672         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
2673         passing 0 size to realloc.
2674
2675 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
2676
2677         doc: update users.txt
2678         * users.txt: Add cvsps, tmpwatch
2679
2680 2011-03-23  Matt Rice  <ratmice@gmail.com>
2681
2682         doc: update users.txt
2683         * users.txt: Add gdb.
2684
2685 2011-03-23  Jim Meyering  <meyering@redhat.com>
2686
2687         doc: update users.txt
2688         Looking through matches up to the following URL (there are still
2689         several more pages), I found several projects that use gnulib:
2690         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
2691         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
2692         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
2693
2694 2011-03-22  Bruno Haible  <bruno@clisp.org>
2695
2696         unictype/bidi*: Rename functions.
2697         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
2698         uc_bidi_class, uc_is_bidi_class): New declarations.
2699         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
2700         uc_bidi_category_byname.
2701         (uc_bidi_category_byname): New function.
2702         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
2703         u_bidi_category_name.
2704         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
2705         (uc_bidi_category_name): New function.
2706         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
2707         uc_bidi_category.
2708         (uc_bidi_category): New function.
2709         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
2710         uc_is_bidi_category. Invoke uc_bidi_class.
2711         (uc_is_bidi_category): New function.
2712         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
2713         instead of uc_bidi_category_byname.
2714         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
2715         instead of uc_bidi_category_name.
2716         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
2717         uc_bidi_category.
2718         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
2719         instead of uc_is_bidi_category.
2720
2721 2011-03-21  Bruno Haible  <bruno@clisp.org>
2722
2723         New module 'unictype/joininggroup-all'.
2724         * modules/unictype/joininggroup-all: New file.
2725
2726         Tests for module 'unictype/joininggroup-of'.
2727         * modules/unictype/joininggroup-of-tests: New file.
2728         * tests/unictype/test-joininggroup_of.c: New file.
2729         * tests/unictype/test-joininggroup_of.h: New file, automatically
2730         generated by gen-uni-tables.
2731
2732         New module 'unictype/joininggroup-of'.
2733         * modules/unictype/joininggroup-of: New file.
2734         * lib/unictype/joininggroup_of.c: New file.
2735         * lib/unictype/joininggroup_of.h: New file, automatically generated by
2736         gen-uni-tables.
2737
2738         Tests for module 'unictype/joininggroup-byname'.
2739         * modules/unictype/joininggroup-byname-tests: New file.
2740         * tests/unictype/test-joininggroup_byname.c: New file.
2741
2742         New module 'unictype/joininggroup-byname'.
2743         * modules/unictype/joininggroup-byname: New file.
2744         * lib/unictype/joininggroup_byname.c: New file.
2745         * lib/unictype/joininggroup_byname.gperf: New file.
2746
2747         Tests for module 'unictype/joininggroup-name'.
2748         * modules/unictype/joininggroup-name-tests: New file.
2749         * tests/unictype/test-joininggroup_name.c: New file.
2750
2751         New module 'unictype/joininggroup-name'.
2752         * modules/unictype/joininggroup-name: New file.
2753         * lib/unictype/joininggroup_name.c: New file.
2754         * lib/unictype/joininggroup_name.h: New file.
2755
2756         New module 'unictype/joiningtype-all'.
2757         * modules/unictype/joiningtype-all: New file.
2758
2759         Tests for module 'unictype/joiningtype-of'.
2760         * modules/unictype/joiningtype-of-tests: New file.
2761         * tests/unictype/test-joiningtype_of.c: New file.
2762         * tests/unictype/test-joiningtype_of.h: New file, automatically
2763         generated by gen-uni-tables.
2764
2765         New module 'unictype/joiningtype-of'.
2766         * modules/unictype/joiningtype-of: New file.
2767         * lib/unictype/joiningtype_of.c: New file.
2768         * lib/unictype/joiningtype_of.h: New file, automatically generated by
2769         gen-uni-tables.
2770
2771         Tests for module 'unictype/joiningtype-byname'.
2772         * modules/unictype/joiningtype-byname-tests: New file.
2773         * tests/unictype/test-joiningtype_byname.c: New file.
2774
2775         New module 'unictype/joiningtype-byname'.
2776         * modules/unictype/joiningtype-byname: New file.
2777         * lib/unictype/joiningtype_byname.c: New file.
2778
2779         Tests for module 'unictype/joiningtype-name'.
2780         * modules/unictype/joiningtype-name-tests: New file.
2781         * tests/unictype/test-joiningtype_name.c: New file.
2782
2783         New module 'unictype/joiningtype-name'.
2784         * modules/unictype/joiningtype-name: New file.
2785         * lib/unictype/joiningtype_name.c: New file.
2786
2787         unictype: Add support for Arabic shaping properties.
2788         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
2789         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
2790         declarations.
2791         (UC_JOINING_GROUP_*): New enumeration values.
2792         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
2793         declarations.
2794         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
2795         (unicode_joining_type): New variable.
2796         (UC_JOINING_GROUP_*): New enumeration values.
2797         (unicode_joining_group): New variable.
2798         (fill_arabicshaping, joining_type_as_c_identifier,
2799         output_joining_type_test, output_joining_type,
2800         joining_group_as_c_identifier, output_joining_group_test,
2801         output_joining_group): New functions.
2802         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
2803         fill_arabicshaping and output_joining_type_test, output_joining_type,
2804         output_joining_group_test, output_joining_group.
2805         Reported by Simon Josefsson.
2806
2807 2011-03-21  Jim Meyering  <meyering@redhat.com>
2808
2809         strftime: fix a bug in yesterday's change
2810         * lib/strftime.c (add): Accommodate width's initial value of -1.
2811         Otherwise, nstrftime would copy uninitialized data into
2812         the result buffer.
2813
2814 2011-03-21  Jim Meyering  <meyering@redhat.com>
2815
2816         tests: add strftime-tests module
2817         * tests/test-strftime.c: New file.
2818         * modules/strftime-tests: New module.
2819
2820 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2821
2822         strftime: don't assume a byte count fits in 'int'
2823         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
2824         found this problem by static analysis, using gcc -Wstrict-overflow
2825         (GCC 4.5.2, x86-64).  This reported an optimization that depended
2826         on an integer overflow having undefined behavior, but it turns out
2827         that the argument is a size, which might not fit in 'int' anyway,
2828
2829 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2830
2831         stdio: don't require ignore_value around fwrite
2832
2833         This patch works around libc bug 11959
2834         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
2835         Without this patch, applications must often write
2836         ignore_value (fwrite (...)) even though the ignore_value is
2837         not helpful here.  It's common to write many objects, using
2838         fwrite/printf/etc., and then use ferror to detect output error.
2839
2840         I considered making this patch optional, but decided against it,
2841         because libc is obviously being inconsistent here: there is no
2842         reason libc should insist that user code must inspect fwrite
2843         return's value without also insisting that it inspect printf's,
2844         putchar's, etc.  If user code wants to have a strict style where
2845         all these functions' values are checked (so that ferror need not
2846         be checked), we could add support for that style in a new gnulib
2847         module, but in the meantime it's better to be consistent and to
2848         support common usage.
2849
2850         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
2851         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
2852         that we are compiling in checking mode, and if not C++, and
2853         if not already wrapping fwrite for some other reason.
2854         (fwrite): #define to rpl_fwrite if the latter is defined.
2855
2856 2011-03-20  Bruno Haible  <bruno@clisp.org>
2857
2858         verror: Fix compilation error introduced on 2011-02-13.
2859         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
2860         instead of __attribute__.
2861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2862
2863 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
2864             Bruno Haible  <bruno@clisp.org>
2865
2866         socklen: do not depend on sys_socket
2867         While trying to modify Emacs to use gnulib's socklen module,
2868         I discovered a circular dependency: socklen depends on sys_socket
2869         and vice versa.  Emacs can use socklen, but it does not need
2870         sys_socket because it has its own substitute for sys/socket.h.
2871         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
2872         gl_TYPE_SOCKLEN_T.
2873         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
2874         gl_PREREQ_SYS_H_SOCKET.
2875         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
2876         gl_PREREQ_SYS_H_SOCKET.
2877         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
2878         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
2879         * modules/socklen (Depends-on): Do not depend on sys_socket.
2880         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
2881
2882 2011-03-20  Jim Meyering  <meyering@redhat.com>
2883
2884         maint.mk: sort file names *after* new transformation
2885         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
2886         prefix would have led to an unwarranted failure in GNU parted.
2887         Sort after that transformation.
2888
2889 2011-03-19  Jim Meyering  <meyering@redhat.com>
2890
2891         maint.mk: fix po-file syntax-check rule
2892         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
2893         Patch by Bruno Haible.
2894
2895 2011-03-19  Bruno Haible  <bruno@clisp.org>
2896
2897         socklen: Update comment.
2898         * m4/socklen.m4: Update comment about platforms.
2899
2900 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2901             Bruno Haible  <bruno@clisp.org>
2902
2903         inet_ntop, inet_pton: Simplify.
2904         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
2905         documented to provide socklen_t and we already depend on sys_socket.
2906         * modules/inet_pton (Depends-on): Likewise.
2907         * lib/arpa_inet.in.h: Adjust comment.
2908
2909 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
2910             Bruno Haible  <bruno@clisp.org>
2911
2912         netdb: Simplify.
2913         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
2914         documented to provide socklen_t and we already depend on sys_socket.
2915         * lib/netdb.in.h: Adjust comment.
2916
2917 2011-03-19  Bruno Haible  <bruno@clisp.org>
2918
2919         sys_socket, netdb: Document problem with socklen_t.
2920         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
2921         platforms.
2922         * doc/posix-headers/netdb.texi: Likewise.
2923
2924 2011-03-18  Eric Blake  <eblake@redhat.com>
2925
2926         maint.mk: let po check work in VPATH build
2927         * top/maint.mk (po_file): Allow cfg.mk override.
2928         (sc_po_check): Allow VPATH use.
2929         Reported by Jiri Denemark.
2930
2931 2011-03-16  Jim Meyering  <meyering@redhat.com>
2932
2933         maint.mk: allow fine-grained syntax-check exclusion via Make variables
2934         Before, you would have had to create one .x-sc_ file per rule in order
2935         to exempt offending files.  Now, you may instead use a Make variable --
2936         usually defined in cfg.mk -- whose name identifies the affected rule.
2937         * top/maint.mk (_sc_excl): Define.
2938         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
2939         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
2940
2941 2011-03-13  Bruno Haible  <bruno@clisp.org>
2942
2943         ignore-value tests: Avoid warnings.
2944         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
2945         empty for gcc < 3.4.
2946
2947 2011-03-13  Bruno Haible  <bruno@clisp.org>
2948
2949         passfd: Fix link error on Solaris.
2950         * modules/passfd (Description): Correct.
2951         (Depends-on): Add socketlib.
2952         (Link): New section.
2953         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
2954
2955 2011-03-13  Bruno Haible  <bruno@clisp.org>
2956
2957         passfd: Fix link error on AIX 5.2.
2958         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
2959
2960 2011-03-13  Bruno Haible  <bruno@clisp.org>
2961
2962         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
2963         * lib/sys_socket.in.h: Include <stddef.h>.
2964         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
2965         CMSG_FIRSTHDR. Remove unused variable.
2966
2967 2011-03-13  Bruno Haible  <bruno@clisp.org>
2968
2969         passfd: Fix compilation error on OpenBSD.
2970         * lib/passfd.c: Include <sys/uio.h>.
2971
2972 2011-03-13  Bruno Haible  <bruno@clisp.org>
2973
2974         passfd test: Fix warnings.
2975         * tests/test-passfd.c: Include <sys/wait.h>.
2976         (main): Fix typo.
2977
2978 2011-03-13  Bruno Haible  <bruno@clisp.org>
2979
2980         passfd module, part 4, tweaks.
2981         * tests/test-passfd.c: Reorder includes.
2982         (main): Fix perror and printf calls.
2983
2984 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
2985
2986         passfd module, part 4.
2987         * modules/passfd-tests: New file.
2988         * tests/test-passfd.c: New file.
2989
2990 2011-03-13  Jim Meyering  <meyering@redhat.com>
2991
2992         Makefile: rely on GNU make; derive syntax-check rule names
2993         Rather than requiring that each sc_ rule be listed as a dependent
2994         of "check", use features of GNU make to derive the list.
2995         * Makefile (syntax-check-rules): Define.
2996         (check): Depend on the new variable, not the hard-coded list.
2997
2998 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
2999             Bruno Haible  <bruno@clisp.org>
3000
3001         passfd module, part 3.
3002         * lib/passfd.h (recvfd): Add a flags argument.
3003         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
3004         (recvfd): Add a flags argument.
3005         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
3006         exists.
3007         * modules/passfd (Depends-on): Add cloexec.
3008         Suggested by Eric Blake.
3009
3010 2011-03-13  Bruno Haible  <bruno@clisp.org>
3011
3012         passfd module, part 2, tweaks.
3013         * modules/passfd (Files): Reorder.
3014         (Depends-on): Remove errno.
3015         (Include): Remove <sys/socket.h>, <sys/un.h>.
3016         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
3017         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
3018         specification header. Include <sys/socket.h> always. Don't include
3019         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
3020         (sendfd): Clarify that it sets errno when it fails.
3021         (recvfd): Fix specification.
3022
3023 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3024
3025         passfd module, part 2.
3026         * modules/passfd: New file.
3027         * lib/passfd.h: New file.
3028         * lib/passfd.c: New file.
3029
3030 2011-03-12  Bruno Haible  <bruno@clisp.org>
3031
3032         wcswidth, mbswidth: Avoid integer overflow.
3033         * lib/wcswidth.c: Include <limits.h>.
3034         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
3035         * lib/mbswidth.c: Include <limits.h>.
3036         (mbsnwidth): Avoid 'int' overflow.
3037         Reported by Jim Meyering.
3038
3039 2011-03-12  Bruno Haible  <bruno@clisp.org>
3040
3041         futimens, utimensat: Avoid endless recursion on Solaris 10.
3042         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
3043         Solaris.
3044         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
3045         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
3046
3047 2011-03-11  Jim Meyering  <meyering@redhat.com>
3048
3049         maint.mk: relax a regexp to accommodate other formatting styles
3050         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
3051         between "ngettext" and the following "(".
3052
3053 2011-03-11  Pádraig Brady <P@draigBrady.com>
3054
3055         maint.mk: suppress a false positive warning
3056         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
3057         diagnostics are marked with ngettext.
3058
3059 2011-03-10  Eric Blake  <eblake@redhat.com>
3060
3061         wchar: add explicit dependencies, for Tru64
3062         * modules/mbmemcasecoll (Depends-on): Add wchar.
3063         * modules/mbtowc (Depends-on): Likewise.
3064         * modules/vasnprintf (Depends-on): Likewise.
3065         * modules/unistdio/u-printf-args (Depends-on): Likewise.
3066         * modules/wctomb (Depends-on): Likewise.
3067         Reported by Peter O'Gorman.
3068
3069 2011-03-08  Bruno Haible  <bruno@clisp.org>
3070
3071         passfd module, part 1, tweaks.
3072         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
3073         Improve indentation. Improve AC_MSG_CHECKING messages.
3074         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
3075         gl_SOCKET_FAMILIES.
3076
3077 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
3078
3079         passfd module, part 1.
3080         * m4/afunix.m4: New file.
3081         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
3082         sockets.
3083
3084 2011-03-08  Bruno Haible  <bruno@clisp.org>
3085
3086         regex-quote: New API.
3087         * lib/regex-quote.h: Include <stdbool.h>.
3088         (struct regex_quote_spec): New type.
3089         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3090         New declarations.
3091         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3092         'const struct regex_quote_spec *' argument.
3093         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
3094         (pcre_special): New constant.
3095         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
3096         New functions.
3097         (regex_quote_length, regex_quote_copy, regex_quote): Take a
3098         'const struct regex_quote_spec *' argument.
3099         * modules/regex-quote (Depends-on): Add stdbool.
3100         * tests/test-regex-quote.c (check): Update for new API. Add test for
3101         anchored results.
3102         * NEWS: Mention the API change.
3103         Reported by Reuben Thomas and Eric Blake.
3104
3105 2011-03-06  Bruno Haible  <bruno@clisp.org>
3106
3107         regex-quote: Fix creation of POSIX extended regular expressions.
3108         * lib/regex-quote.c (ere_special): Add grouping and alternation
3109         operators.
3110
3111 2011-03-05  Bruno Haible  <bruno@clisp.org>
3112
3113         doc: Improve doc regarding autopoint vs. gnulib.
3114         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
3115         disable autopoint while running autoreconf.
3116         Suggested by Ralf Wildenhues.
3117
3118 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3119
3120         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
3121         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
3122
3123 2011-03-03  Bruce Korb  <bkorb@gnu.org>
3124
3125         parse-duration: remove xalloc.h dependency
3126         * lib/parse-duration.c (parse_period): handle NULL return from
3127         strdup instead of calling xstrdup().
3128         * modules/parse-duration: remove "xalloc" dependency
3129
3130 2011-03-03  Matthew Booth  <mbooth@redhat.com>
3131
3132         bootstrap: honor m4_base when running aclocal
3133         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
3134
3135 2011-03-02  Jim Meyering  <meyering@redhat.com>
3136
3137         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
3138         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
3139         on request from Matt Booth.
3140
3141 2011-03-01  Eric Blake  <eblake@redhat.com>
3142
3143         test-link: work on Hurd
3144         * tests/test-link.h (test_link): Hurd rejects linking directories
3145         with EISDIR instead of the POSIX-mandated EPERM.
3146
3147 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
3148
3149         stdio: simplify by moving files to printf-posix, sigpipe
3150         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
3151         since this symbol is needed only if printf is replaced.
3152         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
3153         Require gl_ASM_SYMBOL_PREFIX.
3154         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
3155         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
3156         (Depends-on): Add 'raise'.
3157         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
3158         * modules/stdio (Files): Remove lib/stdio-write.c,
3159         m4/asm-underscore.m4.
3160         (Depends-on): Remove 'raise'.
3161
3162         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
3163         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
3164         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
3165         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
3166
3167 2011-02-28  Bruno Haible  <bruno@clisp.org>
3168
3169         localcharset: Assume ANSI C behaviour of free().
3170         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
3171         calling free().
3172         Suggested by Simon Josefsson <simon@josefsson.org>.
3173
3174 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
3175             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
3176             Bruno Haible  <bruno@clisp.org>  (tiny change)
3177
3178         On Cygwin, use /proc file system instead of win32 API.
3179         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
3180         Win32 file names.
3181         (DllMain): Simplify by removing Cygwin specific code.
3182         (find_shared_library_fullname): Use Linux specific implementation also
3183         for Cygwin.
3184         (get_shared_library_fullname): Update accordingly.
3185         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
3186         Win32 file names.
3187         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
3188         Cygwin specific code.
3189
3190 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
3191             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
3192
3193         Fix OpenMP flag detection for various Fortran compilers.
3194         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
3195         OpenMP-conditional compilation construct, to force compile
3196         failure with missing OpenMP flag.
3197         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
3198
3199 2011-02-25  Eric Blake  <eblake@redhat.com>
3200
3201         strstr: expand test coverage
3202         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
3203         compilation.
3204         * tests/test-memmem.c (main): Duplicate tests.
3205         * tests/test-strcasestr.c (main): Likewise.
3206         * tests/test-c-strcasestr.c (main): Likewise.
3207
3208 2011-02-25  Jim Meyering  <meyering@redhat.com>
3209
3210         maint.mk: detect missing-NL-at-EOF, too
3211         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
3212         it also detects when a file lacks a newline at EOF.
3213         (require_exactly_one_NL_at_EOF_): Renamed from
3214         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
3215         since people may well have .x-sc_... file names tied to the
3216         existing name.  Suggested by Eric Blake.
3217
3218 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
3219
3220         dirname: move m4/dos.m4 functionality into lib/dosname.h
3221
3222         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
3223         extracts symbols from it, puts them into config.h; but it's much
3224         easier to use the symbols directly.  filename.h already does this,
3225         but it disagrees with dos.m4 in some respects.  This patch
3226         introduces a different include file dosname.h that packages up
3227         dos.m4, and then later we can work on merging filename.h and
3228         dosname.h.  Applications that need only the easy-to-configure
3229         symbols should consider including dosname.h rather than dirname.h.
3230         * NEWS: Mention incompatible changes.
3231         * m4/dos.m4: Remove.
3232         * lib/dosname.h, modules/dosname: New files.
3233         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
3234         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
3235         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
3236         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
3237         Include dosname.h, not dirname.h.
3238         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
3239         Include dosname.h, for definitions of symbols like ISSLASH
3240         that used to be in config.h.
3241         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
3242         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3243         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3244         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3245         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
3246         * modules/rmdir (Files): Likewise.
3247         * modules/stat (Files): Likewise.
3248         * modules/unlink (Files): Likewise.
3249         * modules/dirname-lgpl (Depends-on): Add dosname.
3250         * modules/lstat (Depends-on): Likewise.
3251         * modules/openat (Depends-on): Likewise.
3252         * modules/rmdir (Depends-on): Likewise.
3253         * modules/savewd (Depends-on): Likewise.
3254         * modules/stat (Depends-on): Likewise.
3255         * modules/unlink (Depends-on): Likewise.
3256         * modules/openat (Depends-on): Remove dirname-lgpl.
3257         * modules/savewd (Depends-on): Likewise.
3258         * tests/test-dirname.c: Do not use removed symbols like
3259         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
3260         the remaining symbols, e.g., ISSLASH ('\\').
3261
3262 2011-02-25  Eric Blake  <eblake@redhat.com>
3263
3264         strstr: revert patches that introduced bug and pessimization
3265         * lib/str-two-way.h: Add another reference.
3266         (two_way_short_needle, two_way_long_needle): Revert changes from
3267         2011-02-24; they pessimize search speed.
3268         (critical_factorization): Partially revert changes from
3269         2010-06-22; they violate the requirement that the left half of the
3270         needle be smaller than the period of the needle.
3271
3272 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3273
3274         filenamecat: remove unnecessary dependency on dirname-lgpl
3275         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
3276         is no direct dependency, just an indirect one via filenamecat-lgpl.
3277
3278         remove: remove unnecessary use of m4/dos.m4
3279         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
3280         * modules/remove (FILES): Remove m4/dos.m4.
3281
3282         * lib/openat-proc.c: Don't include dirname.h; not needed.
3283
3284         backupfile: remove unnecessary use of m4/dos.m4
3285         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
3286         of its symbols are used by the backupfile code.  backupfile.c does
3287         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
3288         for the rare case of programs that want all their backup file
3289         names to live within 8+3 limits, and dos.m4 doesn't address that.
3290         * modules/backupfile (Files): Remove m4/dos.m4.
3291
3292 2011-02-24  Jim Meyering  <meyering@redhat.com>
3293
3294         strstr: fix a bug whereby strstr would mistakenly return NULL
3295         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
3296         in period calculation.
3297         (two_way_long_needle): Likewise.
3298         The original problem was reported by Mike Stump in
3299         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
3300         Ralf Wildenhues provided the short needle and haystack.
3301         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
3302         Add a more involved test to trigger the bug in two_way_long_needle.
3303
3304 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3305
3306         gnulib-tool: remove use of bold display in help screen
3307         * gnulib-tool (func_usage): Do not use bold display anymore in the
3308         help screen.  That was just meant to be a temporary emphasis for a
3309         backward-incompatible change.
3310
3311 2011-02-23  Bruno Haible  <bruno@clisp.org>
3312
3313         Fix misindentation of preprocessor directives.
3314         * lib/argp-namefrob.h: Reindent preprocessor directives.
3315         * lib/getopt_int.h (struct _getopt_data): Likewise.
3316         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
3317         * lib/vasnprintf.c (decode_long_double): Likewise.
3318         * tests/test-argmatch.c: Insert blank lines, for clarity.
3319         * tests/test-exclude.c: Likewise.
3320
3321 2011-02-22  Bruno Haible  <bruno@clisp.org>
3322
3323         ioctl: Fix for MacOS X in 64-bit mode.
3324         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
3325         value.
3326         Suggested by Eric Blake.
3327         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
3328
3329 2011-02-22  Jim Meyering  <meyering@redhat.com>
3330
3331         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
3332         * Makefile (sc_cpp_indent_check): Don't limit the check to files
3333         in lib/.
3334
3335 2011-02-22  Eric Blake  <eblake@redhat.com>
3336
3337         maint: avoid any CDPATH issue
3338         * Makefile (sc_cpp_indent_check): Anchor cd argument.
3339
3340         maint: adjust cpp indentation for my modules, as well
3341         * Makefile (sc_cpp_indent_check): Add my name.
3342         * lib/fbufmode.c: Filter through cppi.
3343         * lib/fpurge.c: Likewise.
3344         * lib/freadable.c: Likewise.
3345         * lib/freading.c: Likewise.
3346         * lib/fwritable.c: Likewise.
3347         * lib/fwriting.c: Likewise.
3348         * lib/sigaction.c: Likewise.
3349
3350 2011-02-22  Jim Meyering  <meyering@redhat.com>
3351
3352         maint: adjust cpp indentation to reflect nesting depth
3353         I.e., in a block of code that begins with an unnested "#if",
3354         put one space between the "#" in column 1 and following token.
3355         For example,
3356         -#include <sys/vfs.h>
3357         +# include <sys/vfs.h>
3358         Do this only in .c files that are part of a module I maintain.
3359         * lib/linkat.c: Filter through cppi.
3360         * lib/nanosleep.c: Likewise.
3361         * lib/openat.c: Likewise.
3362         * lib/openat-die.c: Likewise.
3363         * lib/dup3.c: Likewise.
3364         * lib/fchownat.c: Likewise.
3365         * lib/flock.c: Likewise.
3366         * lib/fsync.c: Likewise.
3367         * lib/fts.c: Likewise.
3368         * lib/getpass.c: Likewise.
3369         * lib/gettimeofday.c: Likewise.
3370         * lib/userspec.c: Likewise.
3371         * Makefile (sc_cpp_indent_check): New rule, to check this.
3372
3373 2011-02-22  Bruno Haible  <bruno@clisp.org>
3374
3375         New module 'wctomb'.
3376         * lib/stdlib.in.h (wctomb): New declaration.
3377         * lib/wctomb.c: New file.
3378         * lib/wctomb-impl.h: New file.
3379         * m4/wctomb.m4: New file.
3380         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
3381         REPLACE_WCTOMB.
3382         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
3383         REPLACE_WCTOMB.
3384         * modules/wctomb: New file.
3385         * tests/test-stdlib-c++.cc: Test signature of wctomb.
3386         * doc/posix-functions/wctomb.texi: Mention the new module.
3387         * modules/wctob (Depends-on): Add wctomb.
3388
3389 2011-02-22  Bruno Haible  <bruno@clisp.org>
3390
3391         New module 'mbtowc'.
3392         * lib/stdlib.in.h (mbtowc): New declaration.
3393         * lib/mbtowc.c: New file.
3394         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
3395         * m4/mbtowc.m4: New file.
3396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
3397         REPLACE_MBTOWC.
3398         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
3399         REPLACE_MBTOWC.
3400         * modules/mbtowc: New file.
3401         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
3402         * doc/posix-functions/mbtowc.texi: Mention the new module.
3403         * modules/btowc (Depends-on): Add mbtowc.
3404
3405 2011-02-22  Bruno Haible  <bruno@clisp.org>
3406
3407         wcrtomb: Add more tests for native Windows platforms.
3408         * tests/test-wcrtomb-w32-1.sh: New file.
3409         * tests/test-wcrtomb-w32-2.sh: New file.
3410         * tests/test-wcrtomb-w32-3.sh: New file.
3411         * tests/test-wcrtomb-w32-4.sh: New file.
3412         * tests/test-wcrtomb-w32-5.sh: New file.
3413         * tests/test-wcrtomb-w32.c: New file.
3414         * modules/wcrtomb-tests (Files): Add them.
3415         (Makefile.am): Arrange to run these tests.
3416         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
3417         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
3418
3419 2011-02-20  Bruno Haible  <bruno@clisp.org>
3420
3421         wcrtomb: Enhance test.
3422         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
3423
3424 2011-02-20  Bruno Haible  <bruno@clisp.org>
3425
3426         mbrtowc: Tiny optimization.
3427         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
3428
3429 2011-02-20  Jim Meyering  <meyering@redhat.com>
3430
3431         test-exclude.c: remove unmatched #endif
3432         * tests/test-exclude.c: Remove stray #endif, left over from
3433         the change of a week ago.
3434
3435 2011-02-19  Jim Meyering  <meyering@redhat.com>
3436
3437         git-version-gen: skip "-dirty" check when appropriate
3438         * build-aux/git-version-gen: Don't run any git commands when the
3439         version string comes from .tarball-version.  Prior to this, we
3440         would run git update-index --refresh even from a just-unpacked
3441         tarball directory, and that could affect a .git/ directory in a
3442         parent of the build directory.  Reported by Mike Frysinger.
3443
3444 2011-02-19  Bruno Haible  <bruno@clisp.org>
3445
3446         unictype/property-byname: Reduce the size of the 'data' segment.
3447         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
3448
3449 2011-02-19  Bruno Haible  <bruno@clisp.org>
3450
3451         unictype/scripts: Reduce the size of the 'data' segment.
3452         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
3453         '%pic'.
3454         * lib/unictype/scripts_byname.gperf: Regenerated.
3455
3456 2011-02-19  Bruno Haible  <bruno@clisp.org>
3457
3458         stdint: Update documentation.
3459         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
3460
3461 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
3462
3463         stdint: omit redundant check for wchar.h
3464         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
3465         always tests whether wchar.h exists, so remove the now-redundant test.
3466
3467 2011-02-18  Bruno Haible  <bruno@clisp.org>
3468
3469         stdint: Cut dependency to module 'wchar'.
3470         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
3471         include the necessary prerequisites.
3472         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
3473         * modules/stdint (Depends-on): Remove wchar.
3474         (Makefile.am): Substitute HAVE_WCHAR_H.
3475         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
3476
3477 2011-02-18  Eric Blake  <eblake@redhat.com>
3478
3479         longlong: skip, rather than fail, on cross-compilation
3480         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
3481         when cross-compiling; regression from 2011-02-16.
3482
3483 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3484
3485         * NEWS: Mention 2011-02-08 change to stdlib.
3486
3487 2011-02-17  Bruno Haible  <bruno@clisp.org>
3488
3489         getloadavg: Add comments about platforms.
3490         * m4/getloadavg.m4: Add comment.
3491         * lib/getloadavg.c: Likewise.
3492
3493 2011-02-17  Bruno Haible  <bruno@clisp.org>
3494
3495         getloadavg: Fix link error on Solaris 2.6.
3496         * modules/getloadavg (Link): New section.
3497         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
3498         linking test-getloadavg.
3499         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
3500         getloadavg.
3501
3502 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
3503
3504         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
3505         It was 'int', but this doesn't match the IRIX 6.5 manual.
3506         Suggested by Bruno Haible in
3507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
3508
3509 2011-02-17  Bruno Haible  <bruno@clisp.org>
3510
3511         havelib: Fix comments.
3512         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
3513         change.
3514
3515 2011-02-17  Bruno Haible  <bruno@clisp.org>
3516
3517         havelib: Update config.rpath.
3518         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
3519
3520 2011-02-17  Bruno Haible  <bruno@clisp.org>
3521
3522         getloadavg test: Add some plausibility checks.
3523         * tests/test-getloadavg.c (check_avg): Print a warning when the value
3524         is improbable.
3525
3526 2011-02-16  Eric Blake  <eblake@redhat.com>
3527
3528         maintainer-makefile: make syntax-check a no-op from tarballs
3529         * top/maint.mk (no-vc-detected): New rule.
3530         (local-checks-available): Use it to avoid hanging if someone tries
3531         'make syntax-check' from a tarball.  Also append to any non-syntax
3532         checks already defined in cfg.mk.
3533
3534 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
3535
3536         longlong: tune, particularly for common case of c99
3537
3538         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
3539         or running anything if c99, or if unsigned long long int does not
3540         work.  In either case, we know the answer without further tests.
3541         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
3542         it at most once, and use its results for both long long int and
3543         unsigned long long int.  This is more likely to be efficient in
3544         the common case where the program wants to check for both long
3545         long int and unsigned long long int.
3546         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
3547         since the answer is already known.
3548
3549 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
3550
3551         getloadavg: set errno
3552         * lib/getloadavg.c: Set errno when returning -1.  If no other
3553         error number looks appropriate, set it to ENOSYS if the getloadavg
3554         looks like it can't possibly ever work, ENOTSUP otherwise.
3555         Suggested by Bruno Haible in
3556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
3557
3558         getloadavg: trim unused parts and speed up 'configure'
3559         * NEWS: Document this.
3560         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
3561         always compiled if getloadavg is absent.
3562         Move test code to ...
3563         * tests/test-getloadavg.c: New file, containing previous
3564         contents of test from lib/getloadavg.c.  It also contains
3565         suggestions by Bruno Haible in
3566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
3567         * modules/getloadavg-tests: New file.
3568         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
3569         Do tests in the same order as they're needed for getloadavg.c.
3570         Omit setgid-related tests that generate symbols KMEM_GROUP,
3571         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
3572         Do only the tests that are needed to see whether the system has
3573         getloadavg, moving the other tests into ...
3574         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
3575         NLIST_NAME_UNION; nobody should be using it.  Do not define
3576         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
3577         relevant, as the user of this module shouldn't care how getloadavg
3578         is implemented.
3579
3580         getloadavg: omit unused var
3581         * lib/getloadavg.c (getloadavg): Omit unused local variable.
3582
3583 2011-02-15  Jim Meyering  <meyering@redhat.com>
3584
3585         doc: update users.txt
3586         * users.txt: Update iwhd's URL.
3587
3588 2011-02-13  Bruno Haible  <bruno@clisp.org>
3589
3590         Consistent macro naming for macros that use GCC __attribute__.
3591         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
3592         _ATTRIBUTE_NONNULL_.
3593         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
3594         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
3595         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
3596         ATTRIBUTE_DEPRECATED.
3597         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
3598         ATTRIBUTE_NORETURN.
3599         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3600         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3601         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3602         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
3603         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
3604         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
3605         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
3606         ATTRIBUTE_SENTINEL.
3607         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
3608         ATTRIBUTE_RETURN_CHECK.
3609         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
3610         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
3611         ATTRIBUTE_NORETURN.
3612         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
3613         Reported by Paul Eggert.
3614
3615 2011-02-13  Bruno Haible  <bruno@clisp.org>
3616
3617         Don't interfere with a program's definition of __attribute__.
3618         * lib/argp.h (__attribute__): Remove definition.
3619         (_GL_ATTRIBUTE_FORMAT): New macro.
3620         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
3621         * lib/argp-fmtstream.h (__attribute__): Remove definition.
3622         (_GL_ATTRIBUTE_FORMAT): New macro.
3623         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
3624         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
3625         GCC 3 or newer.
3626         * lib/error.h (__attribute__): Remove definition.
3627         (_GL_ATTRIBUTE_FORMAT): New macro.
3628         (error, error_at_line): Use it.
3629         * lib/hash.h (__attribute__): Remove definition.
3630         (ATTRIBUTE_WUR): Update definition. Define always.
3631         * lib/openat.h (__attribute__): Remove definition.
3632         (ATTRIBUTE_NORETURN): Update definition. Define always.
3633         * lib/sigpipe-die.h (__attribute__): Remove definition.
3634         (ATTRIBUTE_NORETURN): Update definition. Define always.
3635         * lib/vasnprintf.h (__attribute__): Remove definition.
3636         (_GL_ATTRIBUTE_FORMAT): New macro.
3637         (asnprintf, vasnprintf): Use it.
3638         * lib/xalloc.h (__attribute__): Remove definition.
3639         (ATTRIBUTE_NORETURN): Update definition. Define always.
3640         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
3641         * lib/xmemdup0.h (__attribute__): Remove definition.
3642         (ATTRIBUTE_NORETURN): Update definition. Define always.
3643         * lib/xprintf.h (__attribute__): Remove definition.
3644         (_GL_ATTRIBUTE_FORMAT): New macro.
3645         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
3646         * lib/xstrtol.h (__attribute__): Remove definition.
3647         (ATTRIBUTE_NORETURN): Update definition. Define always.
3648         * lib/xvasprintf.h (__attribute__): Remove definition.
3649         (_GL_ATTRIBUTE_FORMAT): New macro.
3650         (xasprintf, xvasprintf): Use it.
3651         * tests/test-argmatch.c (__attribute__): Remove definition.
3652         (ATTRIBUTE_NORETURN): Update definition. Define always.
3653         * tests/test-exclude.c (__attribute__): Remove definition.
3654         (ATTRIBUTE_NORETURN): Update definition. Define always.
3655         Reported by Paul Eggert.
3656
3657 2011-02-13  Bruno Haible  <bruno@clisp.org>
3658
3659         mbrtowc: Add more tests for native Windows platforms.
3660         * tests/test-mbrtowc-w32-1.sh: New file.
3661         * tests/test-mbrtowc-w32-2.sh: New file.
3662         * tests/test-mbrtowc-w32-3.sh: New file.
3663         * tests/test-mbrtowc-w32-4.sh: New file.
3664         * tests/test-mbrtowc-w32-5.sh: New file.
3665         * tests/test-mbrtowc-w32.c: New file.
3666         * modules/mbrtowc-tests (Files): Add them.
3667         (Makefile.am): Arrange to run these tests.
3668         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
3669         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
3670
3671 2011-02-13  Bruno Haible  <bruno@clisp.org>
3672
3673         mbrtowc: Work around native Windows bug.
3674         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
3675         guess when no suitable locale for testing was found.
3676         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
3677
3678 2011-02-13  Bruno Haible  <bruno@clisp.org>
3679
3680         mbsinit: Work around mingw bug.
3681         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
3682         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
3683         Windows.
3684         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
3685
3686 2011-02-13  Bruno Haible  <bruno@clisp.org>
3687
3688         mbsinit: Don't crash for a NULL argument.
3689         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
3690         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
3691
3692 2011-02-13  Bruno Haible  <bruno@clisp.org>
3693
3694         Don't interfere with a program's definition of __attribute__.
3695         * lib/stdio.in.h (__attribute__): Remove definition.
3696         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
3697         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
3698         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
3699         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
3700         * lib/string.in.h (__attribute__): Remove definition.
3701         Reported by Paul Eggert.
3702
3703 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3704
3705         stdlib: don't get in the way of non-GCC __attribute__
3706         See thread starting at
3707         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
3708         Revert previous stdlib change, installing the following instead:
3709         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
3710         to get in the way of a non-GCC compiler that supports __attribute__.
3711         (_GL_ATTRIBUTE_RETURN): New macro.
3712         (_Exit): Use it instead of __attribute__.
3713
3714 2011-02-12  Bruno Haible  <bruno@clisp.org>
3715
3716         quotearg test: Avoid test failure on mingw.
3717         * tests/test-quotearg.sh: Convert the locale identifier from native
3718         Windows syntax to Unix syntax.
3719
3720 2011-02-12  Bruno Haible  <bruno@clisp.org>
3721
3722         setlocale: Prefer gnulib's override over libintl's override.
3723         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
3724         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
3725         GNULIB_defined_setlocale is set.
3726
3727 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3728
3729         stdlib: support non-GCC __attribute__
3730
3731         Fix a serious and tricky problem encountered when attempting to
3732         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
3733         5.5, but it crashed due to memory corruption on Solaris 10 with
3734         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
3735         bits that are otherwise zero.  This tagging is optional inside
3736         Emacs but is preferred and is used when __attribute__ ((__aligned
3737         (8))) works, as it does with both recent-enough GCC and with Sun C
3738         5.11.  However, Sun C 5.11 is not GCC and does not #define
3739         __GNUC__ and __GNUC_MINOR__.
3740
3741         When I added the getloadavg module to Emacs, it brought in
3742         stdlib.in.h, which contained this fragment:
3743
3744            #ifndef __attribute__
3745            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
3746            #  define __attribute__(Spec)   /* empty */
3747            # endif
3748            #endif
3749
3750         When files that include <stdlib.h> were compiled with Sun C 5.11,
3751         the above code disabled __attribute__ ((__aligned (8))), which
3752         caused variables to not be properly aligned, which eventually led
3753         to the pointer corruption mentioned above.  (This was a bit hard
3754         to diagnose, unfortunately.)
3755
3756         Several "#define __attribute__(X) /* empty */" code snippets need
3757         to be eradicated from Gnulib to work with non-GCC compilers that
3758         support __attribute__.  The Autoconf way to do this is to test for
3759         each kind of attribute that we want support for, and selectively
3760         enable that in source code.
3761
3762         Fix this problem just for stdlib.h, by adding a test for the
3763         __noreturn__ attribute, and change stdlib.in.h to use that test
3764         when needed.  This technique can be easily generalized to the
3765         other *.in.h files and attributes, and a similar technique can be
3766         used for *.h and *.c files.  This patch is enough to solve the
3767         problem for Emacs + getloadavg, and I thought I'd publish it for
3768         feedback before undertaking further, similar fixes in other
3769         modules.
3770
3771         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
3772         because it's not needed for stdlib.h.  It merely substitutes the
3773         value directly into stdlib.h.  We may well need to #define it, or
3774         similar symbols, for other modules, but it's nice to also have an
3775         option to not #define it for applications like Emacs that do not
3776         need it.
3777
3778         * lib/stdlib.in.h (__attribute__): Do not #define.
3779         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
3780         be defined only if the _Exit module is also used.
3781         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
3782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
3783         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
3784         platforms.
3785         * modules/_Exit (Files): Add m4/attribute.m4.
3786         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
3787         * m4/attribute.m4: New file.
3788
3789 2011-02-12  Bruno Haible  <bruno@clisp.org>
3790
3791         wcsrtombs: Work around bug on native Windows.
3792         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
3793         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
3794         instead of len.
3795         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
3796
3797 2011-02-12  Bruno Haible  <bruno@clisp.org>
3798
3799         mbsrtowcs: Work around bug on native Windows.
3800         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
3801         against mingw bug.
3802         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
3803
3804 2011-02-12  Bruno Haible  <bruno@clisp.org>
3805
3806         Avoid setlocale bugs in tests.
3807         * modules/btowc (Dependencies): Add setlocale.
3808         * modules/c-strcase (Dependencies): Likewise.
3809         * modules/mbmemcasecmp (Dependencies): Likewise.
3810         * modules/mbmemcasecoll (Dependencies): Likewise.
3811         * modules/mbrtowc (Dependencies): Likewise.
3812         * modules/mbscasecmp (Dependencies): Likewise.
3813         * modules/mbscasestr (Dependencies): Likewise.
3814         * modules/mbschr (Dependencies): Likewise.
3815         * modules/mbscspn (Dependencies): Likewise.
3816         * modules/mbsinit (Dependencies): Likewise.
3817         * modules/mbsncasecmp (Dependencies): Likewise.
3818         * modules/mbsnrtowcs (Dependencies): Likewise.
3819         * modules/mbspbrk (Dependencies): Likewise.
3820         * modules/mbspcasecmp (Dependencies): Likewise.
3821         * modules/mbsrchr (Dependencies): Likewise.
3822         * modules/mbsrtowcs (Dependencies): Likewise.
3823         * modules/mbsspn (Dependencies): Likewise.
3824         * modules/mbsstr (Dependencies): Likewise.
3825         * modules/nl_langinfo (Dependencies): Likewise.
3826         * modules/quotearg (Dependencies): Likewise.
3827         * modules/unicase/locale-language (Dependencies): Likewise.
3828         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
3829         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
3830         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
3831         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
3832         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
3833         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
3834         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
3835         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
3836         * modules/vasnprintf-posix (Dependencies): Likewise.
3837         * modules/wcrtomb (Dependencies): Likewise.
3838         * modules/wcsnrtombs (Dependencies): Likewise.
3839         * modules/wcsrtombs (Dependencies): Likewise.
3840
3841 2011-02-12  Bruno Haible  <bruno@clisp.org>
3842
3843         setlocale: Workaround native Windows bug.
3844         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
3845         succeeds but sets LC_CTYPE to "C", report a failure.
3846         * tests/test-setlocale2.sh: New file.
3847         * tests/test-setlocale2.c: New file.
3848         * modules/setlocale-tests (Files): Add the new files.
3849         (Makefile.am): Enable test-setlocale2.sh test.
3850         * doc/posix-functions/setlocale.texi: Mention workaround.
3851
3852 2011-02-11  Bruno Haible  <bruno@clisp.org>
3853
3854         Tests for module 'setlocale'.
3855         * modules/setlocale-tests: New file.
3856         * tests/test-setlocale1.sh: New file.
3857         * tests/test-setlocale1.c: New file.
3858
3859         New module 'setlocale'.
3860         * lib/locale.in.h (setlocale): New declaration.
3861         * lib/setlocale.c: New file, based on
3862         gettext/gettext-runtime/intl/setlocale.c.
3863         * m4/setlocale.m4: New file.
3864         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
3865         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
3866         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
3867         REPLACE_SETLOCALE.
3868         * modules/setlocale: New file.
3869         * tests/test-locale-c++.cc: Test the declaration of setlocale.
3870         * doc/posix-functions/setlocale.texi: Mention the new module.
3871
3872 2011-02-11  Bruno Haible  <bruno@clisp.org>
3873
3874         Prepare for locale dependent tests on mingw.
3875         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
3876         because it has the wrong locale encoding.
3877         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
3878         French_France.1252 instead of "fr".
3879         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
3880         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
3881         because it has the wrong locale encoding.
3882         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
3883         native Windows, try Turkish_Turkey.65001.
3884         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
3885         Chinese_China.54936.
3886
3887         Prepare for locale dependent tests on mingw.
3888         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
3889         differently.
3890         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3891         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3892         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3894
3895 2011-02-11  Eric Blake  <eblake@redhat.com>
3896
3897         strptime: avoid compiler warnings
3898         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
3899         compiler warnings about dead code.
3900         Reported by Daniel P. Berrange.
3901
3902 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
3903
3904         doc: update users.txt
3905         * users.txt: Add rcs.
3906
3907 2011-02-10  John W. Eaton  <jwe@gnu.org>
3908
3909         doc: update users.txt
3910         * users.txt: Add octave.
3911
3912 2011-02-10  Jim Meyering  <meyering@redhat.com>
3913
3914         doc: update users.txt
3915         * users.txt: Add iwhd.
3916
3917 2011-02-09  Bruno Haible  <bruno@clisp.org>
3918
3919         gnulib-tool: Make copyright notice adjustment more robust.
3920         * gnulib-tool (func_import): In sed_transform_main_lib_file,
3921         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
3922         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
3923         License".
3924         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
3925
3926 2011-02-06  Bruno Haible  <bruno@clisp.org>
3927
3928         New module 'towctrans'.
3929         * modules/towctrans: New file.
3930         * lib/wctype.in.h (towctrans): New declaration.
3931         * lib/towctrans.c: New file.
3932         * lib/towctrans-impl.h: New file.
3933         * m4/towctrans.m4: New file.
3934         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
3935         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
3936         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
3937         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
3938         * doc/posix-functions/towctrans.texi: Mention the new module.
3939
3940 2011-02-06  Bruno Haible  <bruno@clisp.org>
3941
3942         New module 'wctrans'.
3943         * modules/wctrans: New file.
3944         * lib/wctype.in.h (wctrans): New declaration.
3945         * lib/wctrans.c: New file.
3946         * lib/wctrans-impl.h: New file.
3947         * m4/wctrans.m4: New file.
3948         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
3949         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
3950         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
3951         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
3952         * doc/posix-functions/wctrans.texi: Mention the new module.
3953
3954 2011-02-06  Bruno Haible  <bruno@clisp.org>
3955
3956         New module 'iswctype'.
3957         * modules/iswctype: New file.
3958         * lib/wctype.in.h (iswctype): New declaration.
3959         * lib/iswctype.c: New file.
3960         * lib/iswctype-impl.h: New file.
3961         * m4/iswctype.m4: New file.
3962         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
3963         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
3964         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
3965         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
3966         * doc/posix-functions/iswctype.texi: Mention the new module and the
3967         HP-UX 11.00 problem.
3968
3969 2011-02-06  Bruno Haible  <bruno@clisp.org>
3970
3971         New module 'wctype'.
3972         * modules/wctype: Change to represent the wctype() substitute.
3973         * lib/wctype.in.h (wctype): New declaration.
3974         * lib/wctype.c: New file.
3975         * lib/wctype-impl.h: New file.
3976         * m4/wctype.m4: New file.
3977         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
3978         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
3979         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
3980         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
3981         * doc/posix-functions/wctype.texi: Mention the new module and the
3982         HP-UX 11.00 problem.
3983
3984 2011-02-06  Bruno Haible  <bruno@clisp.org>
3985
3986         wctype-h: Ensure wctype_t and wctrans_t are defined.
3987         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
3988         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3989         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
3990         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
3991         HAVE_WCTRANS_T.
3992         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
3993
3994 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3995
3996         flock: fix license typo
3997
3998         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
3999         omitted.
4000
4001 2011-02-08  Bruno Haible  <bruno@clisp.org>
4002
4003         Split large sed scripts, for HP-UX sed.
4004         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
4005         to avoid HP-UX limit of 99 commands, in the near future.
4006         * modules/stdlib (Makefile.am): Likewise.
4007         * modules/unistd (Makefile.am): Likewise.
4008         * modules/wchar (Makefile.am): Likewise.
4009         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4010         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
4011         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
4012
4013 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4014             Bruno Haible  <bruno@clisp.org>
4015
4016         stdlib: improve random_r modularization
4017         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
4018         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
4019         you also need the random_r module to get this material right.
4020         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
4021         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
4022         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
4023
4024 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4025
4026         stdlib: don't depend on stdint
4027         * lib/stdlib.in.h: Don't include <stdint.h> merely because
4028         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
4029         be independent of whether stdint.h is needed.
4030         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
4031         here, instead of ...
4032         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
4033         struct random_data should be using the random_r module, not just
4034         the stdlib module (which wouldn't make sense: what package needs
4035         just struct random_data without also needing random_r?).
4036         * modules/stdlib (Depends-on): Remove stdint.
4037
4038         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
4039         See the thread rooted at
4040         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
4041         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
4042         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
4043         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
4044         __VMS)); previously it was always included (via fcntl--.h).
4045         (getloadavg): Do not use c_strtod.  Instead, approximate it by
4046         hand; this is good enough for load averages.  Also, do not use
4047         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
4048         flags directly if available and don't bother otherwise.  (Packages
4049         that need the extra reliability should use the modules that define
4050         these flags on older platforms that lack them.)
4051         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
4052         fcntl-safer.
4053
4054 2011-02-08  Jim Meyering  <meyering@redhat.com>
4055
4056         di-set.h, ino-map.h: add multiple-inclusion guard
4057         Technically, the guard is required only for ino-map.h, due to its
4058         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
4059         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
4060         * lib/ino-map.h: Likewise.
4061
4062 2011-02-06  Bruno Haible  <bruno@clisp.org>
4063
4064         iswblank: Ensure declaration on glibc systems.
4065         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
4066         * modules/iswblank (Dependencies): Add 'extensions'.
4067         * doc/posix-functions/iswblank.texi: Document the glibc problem.
4068
4069 2011-02-06  Bruno Haible  <bruno@clisp.org>
4070
4071         New module 'iswblank'.
4072         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
4073         * modules/iswblank: New file.
4074         * modules/wctype-h (Files): Remove lib/iswblank.c.
4075         (Makefile.am): Substitute GNULIB_ISWBLANK.
4076         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
4077         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
4078         (gl_WCTYPE_H_DEFAULTS): New macro.
4079         (gl_WCTYPE_H): Require it. Remove iswblank related code.
4080         * modules/iswblank-tests: New file.
4081         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
4082         * tests/test-wctype-h.c (main): Remove iswblank tests.
4083         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
4084         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
4085         of 'wctype-h'.
4086         * NEWS: Mention the change.
4087         * modules/mbchar (Depends-on): Add iswblank.
4088
4089 2011-02-08  Bruno Haible  <bruno@clisp.org>
4090
4091         di-set tests: Refactor.
4092         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
4093         unnecessary includes.
4094         (ASSERT): Remove macro.
4095         (main): Make C90 compliant by avoiding variable declaration after
4096         statement.
4097         * modules/di-set-tests (Files): Add tests/macros.h.
4098
4099 2011-02-08  Bruno Haible  <bruno@clisp.org>
4100
4101         ino-map tests: Refactor.
4102         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
4103         unnecessary includes.
4104         (ASSERT): Remove macro.
4105         (main): Make C90 compliant by avoiding variable declaration after
4106         statement.
4107         * modules/ino-map-tests (Files): Add tests/macros.h.
4108
4109 2011-02-08  Jim Meyering  <meyering@redhat.com>
4110
4111         di-set: add "const" to a cast
4112         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
4113         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
4114
4115 2011-02-06  Bruno Haible  <bruno@clisp.org>
4116
4117         Rename module 'wctype' to 'wctype-h'.
4118         * modules/wctype-h: Renamed from modules/wctype.
4119         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
4120         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
4121         (Files, Depends-on, Makefile.am): Update.
4122         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
4123         (Files, Makefile.am): Update.
4124         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
4125         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
4126         * doc/posix-headers/wctype.texi: Update.
4127         * doc/posix-functions/iswalnum.texi: Update.
4128         * doc/posix-functions/iswalpha.texi: Update.
4129         * doc/posix-functions/iswblank.texi: Update.
4130         * doc/posix-functions/iswcntrl.texi: Update.
4131         * doc/posix-functions/iswdigit.texi: Update.
4132         * doc/posix-functions/iswgraph.texi: Update.
4133         * doc/posix-functions/iswlower.texi: Update.
4134         * doc/posix-functions/iswprint.texi: Update.
4135         * doc/posix-functions/iswpunct.texi: Update.
4136         * doc/posix-functions/iswspace.texi: Update.
4137         * doc/posix-functions/iswupper.texi: Update.
4138         * doc/posix-functions/iswxdigit.texi: Update.
4139         * doc/posix-functions/towlower.texi: Update.
4140         * doc/posix-functions/towupper.texi: Update.
4141         * NEWS: Mention the change.
4142         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
4143         * modules/mbchar (Dependencies): Likewise.
4144         * modules/mbswidth (Dependencies): Likewise.
4145         * modules/quotearg (Dependencies): Likewise.
4146         * modules/regex (Dependencies): Likewise.
4147         * modules/wcscasecmp (Dependencies): Likewise.
4148         * modules/wcsncasecmp (Dependencies): Likewise.
4149         * modules/wcwidth (Dependencies): Likewise.
4150
4151 2011-02-06  Bruno Haible  <bruno@clisp.org>
4152
4153         New module 'wcswidth'.
4154         * modules/wcswidth: New file.
4155         * lib/wchar.in.h (wcswidth): New declaration.
4156         * lib/wcswidth.c: New file.
4157         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
4158         * m4/wcswidth.m4: New file.
4159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
4160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
4161         REPLACE_WCSWIDTH.
4162         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
4163         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
4164         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
4165         * doc/posix-functions/wcswidth.texi: Mention the new module.
4166
4167 2011-02-06  Bruno Haible  <bruno@clisp.org>
4168
4169         New module 'wcstok'.
4170         * modules/wcstok: New file.
4171         * lib/wchar.in.h (wcstok): New declaration.
4172         * lib/wcstok.c: New file.
4173         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
4174         * m4/wcstok.m4: New file.
4175         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
4176         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
4177         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
4178         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
4179         * doc/posix-functions/wcstok.texi: Mention the new module.
4180
4181 2011-02-06  Bruno Haible  <bruno@clisp.org>
4182
4183         New module 'wcsstr'.
4184         * modules/wcsstr: New file.
4185         * lib/wchar.in.h (wcsstr): New declaration.
4186         * lib/wcsstr.c: New file.
4187         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
4188         * m4/wcsstr.m4: New file.
4189         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
4190         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
4191         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
4192         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
4193         * doc/posix-functions/wcsstr.texi: Mention the new module.
4194
4195 2011-02-06  Bruno Haible  <bruno@clisp.org>
4196
4197         New module 'wcspbrk'.
4198         * modules/wcspbrk: New file.
4199         * lib/wchar.in.h (wcspbrk): New declaration.
4200         * lib/wcspbrk.c: New file.
4201         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
4202         * m4/wcspbrk.m4: New file.
4203         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
4204         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
4205         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
4206         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
4207         * doc/posix-functions/wcspbrk.texi: Mention the new module.
4208
4209 2011-02-06  Bruno Haible  <bruno@clisp.org>
4210
4211         New module 'wcsspn'.
4212         * modules/wcsspn: New file.
4213         * lib/wchar.in.h (wcsspn): New declaration.
4214         * lib/wcsspn.c: New file.
4215         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
4216         * m4/wcsspn.m4: New file.
4217         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
4218         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
4219         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
4220         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
4221         * doc/posix-functions/wcsspn.texi: Mention the new module.
4222
4223 2011-02-06  Bruno Haible  <bruno@clisp.org>
4224
4225         New module 'wcscspn'.
4226         * modules/wcscspn: New file.
4227         * lib/wchar.in.h (wcscspn): New declaration.
4228         * lib/wcscspn.c: New file.
4229         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
4230         * m4/wcscspn.m4: New file.
4231         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
4232         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
4233         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
4234         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
4235         * doc/posix-functions/wcscspn.texi: Mention the new module.
4236
4237 2011-02-06  Bruno Haible  <bruno@clisp.org>
4238
4239         New module 'wcsrchr'.
4240         * modules/wcsrchr: New file.
4241         * lib/wchar.in.h (wcsrchr): New declaration.
4242         * lib/wcsrchr.c: New file.
4243         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
4244         * m4/wcsrchr.m4: New file.
4245         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
4246         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
4247         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
4248         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
4249         * doc/posix-functions/wcsrchr.texi: Mention the new module.
4250
4251 2011-02-06  Bruno Haible  <bruno@clisp.org>
4252
4253         New module 'wcschr'.
4254         * modules/wcschr: New file.
4255         * lib/wchar.in.h (wcschr): New declaration.
4256         * lib/wcschr.c: New file.
4257         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
4258         * m4/wcschr.m4: New file.
4259         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
4260         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
4261         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
4262         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
4263         * doc/posix-functions/wcschr.texi: Mention the new module.
4264
4265 2011-02-06  Bruno Haible  <bruno@clisp.org>
4266
4267         New module 'wcsdup'.
4268         * modules/wcsdup: New file.
4269         * lib/wchar.in.h (wcsdup): New declaration.
4270         * lib/wcsdup.c: New file.
4271         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
4272         * m4/wcsdup.m4: New file.
4273         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
4274         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
4275         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
4276         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
4277         * doc/posix-functions/wcsdup.texi: Mention the new module.
4278
4279 2011-02-06  Bruno Haible  <bruno@clisp.org>
4280
4281         New module 'wcsxfrm'.
4282         * modules/wcsxfrm: New file.
4283         * lib/wchar.in.h (wcsxfrm): New declaration.
4284         * lib/wcsxfrm.c: New file.
4285         * lib/wcsxfrm-impl.h: New file.
4286         * m4/wcsxfrm.m4: New file.
4287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
4288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
4289         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
4290         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
4291         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
4292
4293 2011-02-06  Bruno Haible  <bruno@clisp.org>
4294
4295         New module 'wcscoll'.
4296         * modules/wcscoll: New file.
4297         * lib/wchar.in.h (wcscoll): New declaration.
4298         * lib/wcscoll.c: New file.
4299         * lib/wcscoll-impl.h: New file.
4300         * m4/wcscoll.m4: New file.
4301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
4302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
4303         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
4304         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
4305         * doc/posix-functions/wcscoll.texi: Mention the new module.
4306
4307 2011-02-06  Bruno Haible  <bruno@clisp.org>
4308
4309         New module 'wcsncasecmp'.
4310         * modules/wcsncasecmp: New file.
4311         * lib/wchar.in.h (wcsncasecmp): New declaration.
4312         * lib/wcsncasecmp.c: New file.
4313         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
4314         * m4/wcsncasecmp.m4: New file.
4315         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
4316         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
4317         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
4318         HAVE_WCSNCASECMP.
4319         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
4320         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
4321
4322 2011-02-06  Bruno Haible  <bruno@clisp.org>
4323
4324         New module 'wcscasecmp'.
4325         * modules/wcscasecmp: New file.
4326         * lib/wchar.in.h (wcscasecmp): New declaration.
4327         * lib/wcscasecmp.c: New file.
4328         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
4329         * m4/wcscasecmp.m4: New file.
4330         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
4331         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
4332         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
4333         HAVE_WCSCASECMP.
4334         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
4335         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
4336
4337 2011-02-05  Bruno Haible  <bruno@clisp.org>
4338
4339         New module 'wcsncmp'.
4340         * modules/wcsncmp: New file.
4341         * lib/wchar.in.h (wcsncmp): New declaration.
4342         * lib/wcsncmp.c: New file.
4343         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
4344         * m4/wcsncmp.m4: New file.
4345         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
4346         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
4347         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
4348         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
4349         * doc/posix-functions/wcsncmp.texi: Mention the new module.
4350
4351 2011-02-05  Bruno Haible  <bruno@clisp.org>
4352
4353         New module 'wcscmp'.
4354         * modules/wcscmp: New file.
4355         * lib/wchar.in.h (wcscmp): New declaration.
4356         * lib/wcscmp.c: New file.
4357         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
4358         * m4/wcscmp.m4: New file.
4359         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
4360         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
4361         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
4362         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
4363         * doc/posix-functions/wcscmp.texi: Mention the new module.
4364
4365 2011-02-05  Bruno Haible  <bruno@clisp.org>
4366
4367         New module 'wcsncat'.
4368         * modules/wcsncat: New file.
4369         * lib/wchar.in.h (wcsncat): New declaration.
4370         * lib/wcsncat.c: New file.
4371         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
4372         * m4/wcsncat.m4: New file.
4373         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
4374         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
4375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
4376         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
4377         * doc/posix-functions/wcsncat.texi: Mention the new module.
4378
4379 2011-02-05  Bruno Haible  <bruno@clisp.org>
4380
4381         New module 'wcscat'.
4382         * modules/wcscat: New file.
4383         * lib/wchar.in.h (wcscat): New declaration.
4384         * lib/wcscat.c: New file.
4385         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
4386         * m4/wcscat.m4: New file.
4387         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
4388         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
4389         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
4390         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
4391         * doc/posix-functions/wcscat.texi: Mention the new module.
4392
4393 2011-02-05  Bruno Haible  <bruno@clisp.org>
4394
4395         New module 'wcpncpy'.
4396         * modules/wcpncpy: New file.
4397         * lib/wchar.in.h (wcpncpy): New declaration.
4398         * lib/wcpncpy.c: New file.
4399         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
4400         * m4/wcpncpy.m4: New file.
4401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
4402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
4403         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
4404         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
4405         * doc/posix-functions/wcpncpy.texi: Mention the new module.
4406
4407 2011-02-05  Bruno Haible  <bruno@clisp.org>
4408
4409         New module 'wcsncpy'.
4410         * modules/wcsncpy: New file.
4411         * lib/wchar.in.h (wcsncpy): New declaration.
4412         * lib/wcsncpy.c: New file.
4413         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
4414         * m4/wcsncpy.m4: New file.
4415         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
4416         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
4417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
4418         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
4419         * doc/posix-functions/wcsncpy.texi: Mention the new module.
4420
4421 2011-02-05  Bruno Haible  <bruno@clisp.org>
4422
4423         New module 'wcpcpy'.
4424         * modules/wcpcpy: New file.
4425         * lib/wchar.in.h (wcpcpy): New declaration.
4426         * lib/wcpcpy.c: New file.
4427         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
4428         * m4/wcpcpy.m4: New file.
4429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
4430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
4431         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
4432         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
4433         * doc/posix-functions/wcpcpy.texi: Mention the new module.
4434
4435 2011-02-05  Bruno Haible  <bruno@clisp.org>
4436
4437         New module 'wcscpy'.
4438         * modules/wcscpy: New file.
4439         * lib/wchar.in.h (wcscpy): New declaration.
4440         * lib/wcscpy.c: New file.
4441         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
4442         * m4/wcscpy.m4: New file.
4443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
4444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
4445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
4446         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
4447         * doc/posix-functions/wcscpy.texi: Mention the new module.
4448
4449 2011-02-05  Bruno Haible  <bruno@clisp.org>
4450
4451         New module 'wcsnlen'.
4452         * modules/wcsnlen: New file.
4453         * lib/wchar.in.h (wcsnlen): New declaration.
4454         * lib/wcsnlen.c: New file.
4455         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
4456         * m4/wcsnlen.m4: New file.
4457         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
4458         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
4459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
4460         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
4461         * doc/posix-functions/wcsnlen.texi: Mention the new module.
4462
4463 2011-02-05  Bruno Haible  <bruno@clisp.org>
4464
4465         New module 'wcslen'.
4466         * modules/wcslen: New file.
4467         * lib/wchar.in.h (wcslen): New declaration.
4468         * lib/wcslen.c: New file.
4469         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
4470         * m4/wcslen.m4: New file.
4471         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
4472         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
4473         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
4474         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
4475         * doc/posix-functions/wcslen.texi: Mention the new module.
4476
4477 2011-02-05  Bruno Haible  <bruno@clisp.org>
4478
4479         New module 'wmemset'.
4480         * modules/wmemset: New file.
4481         * lib/wchar.in.h (wmemset): New declaration.
4482         * lib/wmemset.c: New file.
4483         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
4484         * m4/wmemset.m4: New file.
4485         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
4486         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
4487         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
4488         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
4489         * doc/posix-functions/wmemset.texi: Mention the new module.
4490
4491 2011-02-05  Bruno Haible  <bruno@clisp.org>
4492
4493         New module 'wmemmove'.
4494         * modules/wmemmove: New file.
4495         * lib/wchar.in.h (wmemmove): New declaration.
4496         * lib/wmemmove.c: New file.
4497         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
4498         * m4/wmemmove.m4: New file.
4499         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
4500         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
4501         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
4502         HAVE_WMEMMOVE.
4503         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
4504         * doc/posix-functions/wmemmove.texi: Mention the new module.
4505
4506 2011-02-05  Bruno Haible  <bruno@clisp.org>
4507
4508         New module 'wmemcpy'.
4509         * modules/wmemcpy: New file.
4510         * lib/wchar.in.h (wmemcpy): New declaration.
4511         * lib/wmemcpy.c: New file.
4512         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
4513         * m4/wmemcpy.m4: New file.
4514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
4515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
4516         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
4517         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
4518         * doc/posix-functions/wmemcpy.texi: Mention the new module.
4519
4520 2011-02-05  Bruno Haible  <bruno@clisp.org>
4521
4522         New module 'wmemcmp'.
4523         * modules/wmemcmp: New file.
4524         * lib/wchar.in.h (wmemcmp): New declaration.
4525         * lib/wmemcmp.c: New file.
4526         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
4527         * m4/wmemcmp.m4: New file.
4528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
4529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
4530         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
4531         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
4532         * doc/posix-functions/wmemcmp.texi: Mention the new module.
4533
4534 2011-02-07  Jim Meyering  <meyering@redhat.com>
4535
4536         di-set, ino-map: new modules, from coreutils
4537         * lib/di-set.c: New file.
4538         * lib/di-set.h: Likewise.
4539         * lib/ino-map.c: Likewise.
4540         * lib/ino-map.h: Likewise.
4541         * modules/di-set: Likewise.
4542         * modules/di-set-tests: Likewise.
4543         * modules/ino-map: Likewise.
4544         * modules/ino-map-tests: Likewise.
4545         * tests/test-di-set.c: Likewise.
4546         * tests/test-ino-map.c: Likewise.
4547
4548 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
4549
4550         getloadavg: merge minor changes from Emacs
4551
4552         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
4553         (getloadavg): Use memset, not bzero.
4554
4555         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
4556         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
4557         clash (bug#86).
4558
4559 2010-11-14  Bruno Haible  <bruno@clisp.org>
4560
4561         Allow multiple gnulib generated replacements to coexist.
4562         * lib/getopt.in.h (struct option): Avoid identical redefinition.
4563         * lib/inttypes.in.h (imaxdiv_t): Likewise.
4564         * lib/langinfo.in.h (nl_item): Likewise.
4565         * lib/math.in.h (_NaN, NAN): Likewise.
4566         * lib/netdb.in.h (struct addrinfo): Likewise.
4567         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
4568         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
4569         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
4570         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
4571         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
4572         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
4573         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
4574         pthread_mutexattr_init, pthread_mutexattr_settype,
4575         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
4576         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
4577         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
4578         pthread_spin_trylock, pthread_spin_unlock): Likewise.
4579         * lib/sched.in.h (struct sched_param): Likewise.
4580         * lib/se-selinux.in.h (security_class_t, security_context_t,
4581         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
4582         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
4583         lsetfilecon, fsetfilecon, security_check_context,
4584         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
4585         Likewise.
4586         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
4587         Likewise.
4588         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
4589         _gl_function_taking_int_returning_void_t, union sigval,
4590         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
4591         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
4592         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
4593         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
4594         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
4595         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
4596         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
4597         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
4598         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
4599         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
4600         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
4601         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
4602         socklen_t, rpl_fd_isset): Likewise.
4603         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
4604         * lib/sys_time.in.h (struct timeval): Likewise.
4605         * lib/sys_times.in.h (struct tms): Likewise.
4606         * lib/sys_utsname.in.h (struct utsname):
4607         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
4608         * lib/unistd.in.h (getpagesize): Likewise.
4609         * lib/wchar.in.h (mbstate_t): Likewise.
4610         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
4611         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
4612         towlower, towupper): Likewise.
4613         Reported by Sam Steingold <sds@gnu.org>.
4614
4615 2011-02-05  Eric Blake  <eblake@redhat.com>
4616
4617         unsetenv: work around Haiku issues
4618         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
4619         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
4620
4621 2010-12-30  Bruce Korb  <bkorb@gnu.org>
4622
4623         libposix: avoid calling error() within libposix
4624         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
4625         is defined.
4626
4627 2011-02-05  Eric Blake  <eblake@redhat.com>
4628
4629         strerror_r-posix: port to cygwin
4630         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
4631         implementation.
4632         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
4633         * tests/test-strerror_r.c (main): Fix test.
4634         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
4635         issue.
4636
4637 2011-02-05  Bruno Haible  <bruno@clisp.org>
4638
4639         New module 'wmemchr'.
4640         * modules/wmemchr: New file.
4641         * lib/wchar.in.h (wmemchr): New declaration.
4642         * lib/wmemchr.c: New file.
4643         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
4644         * m4/wmemchr.m4: New file.
4645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
4646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
4647         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
4648         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
4649         * doc/posix-functions/wmemchr.texi: Mention the new module.
4650
4651 2011-02-04  Eric Blake  <eblake@redhat.com>
4652
4653         fdopendir: detect FreeBSD bug
4654         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
4655         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
4656
4657 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4658
4659         stdbool: do not define HAVE_STDBOOL_H
4660         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
4661         AC_HEADER_STDBOOL.  All uses changed.  Do not define
4662         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
4663         imported from the latest Autoconf git.  It was motivated by Emacs,
4664         which uses gnulib but does not need HAVE_STDBOOL_H.
4665
4666 2011-02-04  Bruno Haible  <bruno@clisp.org>
4667
4668         wcsnrtombs: Prepare for new module wwcsnrtombs.
4669         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
4670         * lib/wcsnrtombs.c: Include it.
4671         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
4672
4673         wcsrtombs: Prepare for new module wwcsrtombs.
4674         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
4675         * lib/wcsrtombs.c: Include it.
4676         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
4677
4678         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
4679         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
4680         * lib/mbsnrtowcs.c: Include it.
4681         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
4682
4683         mbsrtowcs: Prepare for new module mbsrtowwcs.
4684         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
4685         * lib/mbsrtowcs.c: Include it.
4686         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
4687
4688 2011-02-04  Bruno Haible  <bruno@clisp.org>
4689
4690         vasnprintf: Reduce use of malloc for small format strings.
4691         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
4692         (arguments): Add room for the first 7 arguments.
4693         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
4694         (char_directives, u8_directives, u16_directives, u32_directives): Add
4695         room for the first 7 directives.
4696         * lib/printf-parse.c: Include <string.h>.
4697         (PRINTF_PARSE): Change memory handling code so that it uses the first
4698         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
4699         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
4700         Reported by Pádraig Brady <P@draigbrady.com>.
4701
4702 2011-01-31  Eric Blake  <eblake@redhat.com>
4703
4704         dup2: work around Haiku bug
4705         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
4706         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
4707         * doc/posix-functions/dup2.texi (dup2): Document the bug.
4708         * tests/test-dup2.c (main): Enhance test.
4709
4710 2011-01-31  Simon Josefsson  <simon@josefsson.org>
4711
4712         doc: off_t is not available in eglibc 2.11.2 stdio.h.
4713         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
4714         declared by eglibc 2.11.2.
4715         * lib/stdio.in.h: Likewise.
4716
4717 2011-01-31  Eric Blake  <eblake@redhat.com>
4718
4719         ignore-value: add missing test dependency
4720         * tests/test-ignore-value.c: Revert previous change; stdio.h
4721         provides off_t.
4722         * modules/ignore-value-tests (Depends-on): Add missing dependency.
4723
4724 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4725
4726         mktime: clarify long_int width checking
4727         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
4728         the top level, to make it clearer that the assumption about
4729         long_int width is being checked.  See
4730         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
4731
4732 2011-01-30  Simon Josefsson  <simon@josefsson.org>
4733
4734         ignore-value: Fix self-test.
4735         * tests/test-ignore-value.c: Include sys/types.h for off_t.
4736
4737 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4738
4739         TYPE_MAXIMUM: avoid theoretically undefined behavior
4740         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
4741         negative number, which the C Standard says has undefined behavior.
4742         In practice this is not a problem, but might as well do it by the book.
4743         Reported by Rich Felker and Eric Blake; see
4744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
4745         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
4746         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
4747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4748         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
4749         * m4/stdint.m4 (gl_STDINT_H): Likewise.
4750         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
4751
4752         mktime: #undef mktime before #defining it
4753         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
4754
4755         mktime: systematically normalize tm_isdst comparisons
4756         * lib/mktime.c (isdst_differ): New function.
4757         (__mktime_internal): Use it systematically for all isdst comparisons.
4758         This completes the fix for libc BZ #6723, and removes the need for
4759         normalizing tm_isdst.  See
4760         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
4761         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
4762
4763         mktime: fix some integer overflow issues and sidestep the rest
4764
4765         This was prompted by a bug report by Benjamin Lindner for MinGW
4766         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
4767         His bug is due to signed integer overflow (0 - INT_MIN), and I
4768         I scanned through mktime.c looking for other integer overflow
4769         problems, fixing all the bugs I found.
4770
4771         Although the C Standard says the resulting code is still not safe
4772         in the presence of integer overflow, in practice it should be good
4773         enough for all real-world two's-complement implementations, except
4774         for debugging environments that deliberately trap on integer
4775         overflow (e.g., gcc -ftrapv).
4776
4777         * lib/mktime.c (WRAPV): New macro.
4778         (SHR): Also check that long_int and time_t shift right in the
4779         usual way, before using the fast-but-unportable method.
4780         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
4781         used.  The code already assumed two's complement, so there's
4782         no need to test for alternatives.  All uses removed.
4783         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
4784         the C standard.  Problem reported by Rich Felker in
4785         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
4786         (twos_complement_arithmetic): Also check long_int and time_t.
4787         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
4788         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
4789         (__mktime_internal): Avoid integer overflow with unary subtraction
4790         in two instances where -1 - X is an adequate replacement for -X,
4791         since the calculations are approximate.
4792
4793 2011-01-29  Eric Blake  <eblake@redhat.com>
4794
4795         mktime: avoid infinite loop
4796         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
4797         type; behavior is still undefined but portable to all known targets.
4798         Reported by Rich Felker.
4799
4800 2011-01-29  Simon Josefsson  <simon@josefsson.org>
4801
4802         rename, unlink, same-inode: Relicense.
4803         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
4804         * modules/unlink (License): Likewise.
4805         * modules/same-inode (License): Likewise.
4806
4807 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4808
4809         mktime: avoid problems on NetBSD 5 / i386
4810         * lib/mktime.c (long_int): New type.  This works around a problem
4811         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
4812         but time_t is 64 bits, and where I expect the existing code is
4813         wrong in some cases.
4814         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
4815         (ydhms_diff): Bring back the compile-time check for wide-enough
4816         year and yday.
4817
4818         mktime: fix misspelling in comment
4819         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
4820         This merges all recent glibc changes of importance.
4821
4822 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4823
4824         move-if-change: cope with concurrent mv of identical file.
4825         * build-aux/move-if-change (CMPPROG): Accept environment
4826         variable as an override for `cmp'.
4827         (usage): Document CMPPROG.
4828         Adjust comparison to drop stdout.  Cope with failure of mv if
4829         the target file exists and is identical to the source, for
4830         parallel builds.
4831         Report from H.J. Lu against binutils in PR binutils/12283.
4832
4833 2011-01-28  Bruce Korb  <bkorb@gnu.org>
4834
4835         * users.txt: Mention sharutils.
4836
4837 2011-01-28  Simon Josefsson  <simon@josefsson.org>
4838
4839         * users.txt: Mention OATH Toolkit.
4840
4841 2011-01-27  Bruno Haible  <bruno@clisp.org>
4842
4843         Prepare for supporting FreeBSD 10.
4844         * build-aux/config.libpath: Remove handling of freebsd1*.
4845
4846 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
4847
4848         Prepare for supporting FreeBSD 10.
4849         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
4850         match FreeBSD 10.0.
4851
4852 2011-01-27  Bruno Haible  <bruno@clisp.org>
4853
4854         vma-iter, get-rusage-as: Add OpenBSD support.
4855         * modules/vma-iter (configure.ac): Test for mquery.
4856         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
4857         * lib/vma-iter.c: Include <sys/mman.h>.
4858         (vma_iterate): Add an implementation based on mquery().
4859         * lib/resource-ext.h (get_rusage_as): Update comments.
4860         * lib/get-rusage-as.c: Likewise.
4861         * lib/get-rusage-data.c: Likewise.
4862
4863 2011-01-26  Karl Berry  <karl@gnu.org>
4864
4865         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
4866         variables to make it easier to override the makeinfo program used.
4867
4868 2011-01-26  Eric Blake  <eblake@redhat.com>
4869
4870         fcntl: work around Haiku F_DUPFD bugs
4871         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
4872         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
4873         cloexec bit on duplication.
4874         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
4875
4876 2011-01-26  Bruno Haible  <bruno@clisp.org>
4877
4878         Enable memory leak tests on AIX.
4879         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
4880         * tests/test-fprintf-posix3.c (main): Likewise.
4881
4882 2011-01-26  Bruno Haible  <bruno@clisp.org>
4883
4884         Tests for module 'get-rusage-data'.
4885         * modules/get-rusage-data-tests: New file.
4886         * tests/test-get-rusage-data.c: New file.
4887
4888         New module 'get-rusage-data'.
4889         * lib/resource-ext.h (get_rusage_data): New declaration.
4890         * lib/get-rusage-data.c: New file.
4891         * modules/get-rusage-data: New file.
4892
4893 2011-01-25  Bruno Haible  <bruno@clisp.org>
4894
4895         get-rusage-as: Allow for easier testing.
4896         * lib/resource-ext.h (get_rusage_as): Add comment.
4897         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
4898         (main): New function for interactive testing.
4899
4900 2011-01-25  Bruno Haible  <bruno@clisp.org>
4901
4902         vma-iter: Treat Haiku like BeOS.
4903         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
4904         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
4905
4906 2011-01-25  Eric Blake  <eblake@redhat.com>
4907
4908         c-stack: fix regression on cygwin when libsigsegv is present
4909         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
4910
4911 2011-01-24  Bruno Haible  <bruno@clisp.org>
4912
4913         vma-iter: Avoid empty intervals.
4914         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
4915         on an empty interval.
4916
4917 2011-01-24  Jim Meyering  <meyering@redhat.com>
4918
4919         u64: remove unnecessary #include
4920         * lib/u64.h: Don't include <stddef.h>.  It was not used.
4921
4922 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4923
4924         Allow the user to avoid the HAVE_RAW_DECL_* macros.
4925         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
4926
4927 2011-01-23  Bruno Haible  <bruno@clisp.org>
4928
4929         New module 'vma-iter'.
4930         * lib/vma-iter.h: New file.
4931         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
4932         * modules/vma-iter: New file.
4933         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
4934         for get_rusage_as_via_iterator.
4935         (vma_iterate_callback): New function.
4936         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
4937         * modules/get-rusage-as (Depends-on): Add vma-iter.
4938
4939 2011-01-23  Bruno Haible  <bruno@clisp.org>
4940
4941         uninorm: Tweak includes.
4942         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
4943         Reported by Jim Meyering.
4944
4945 2011-01-23  Bruno Haible  <bruno@clisp.org>
4946
4947         get-rusage-as: Improve on NetBSD.
4948         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
4949         /proc, like on FreeBSD.
4950
4951 2011-01-23  Jim Meyering  <meyering@redhat.com>
4952
4953         xreadlink.h: remove unnecessary #include
4954         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
4955
4956         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
4957         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
4958
4959 2011-01-23  Bruno Haible  <bruno@clisp.org>
4960
4961         get-rusage-as: Fix bug.
4962         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
4963         original limit when aborting the first loop.
4964
4965 2011-01-23  Bruno Haible  <bruno@clisp.org>
4966
4967         wctype: Ensure valid C syntax.
4968         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
4969         unconditionally, instead of gl_NEXT_HEADERS conditionally.
4970
4971 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
4972
4973         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
4974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
4975         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
4976         as they are needed only for configure's test case.
4977         This removes two unnecessary symbols from config.h.
4978
4979         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
4980         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
4981         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
4982         AC_CHECK_HEADERS_ONCE on a header that we also invoke
4983         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
4984         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
4985         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
4986         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4987         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
4988         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4989         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
4990         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
4991         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
4992         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
4993         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4994         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4995         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
4996         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4997
4998 2011-01-21  Eric Blake  <eblake@redhat.com>
4999
5000         maintainer-makefile: work with older git for submodule check
5001         * top/maint.mk (public-submodule-commit): Rewrite to avoid
5002         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
5003         Reported by Matthias Bolte.
5004
5005         bootstrap: minor portability fixes
5006         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
5007         (usage): Omit leading capital and trailing . on help phrases, per
5008         GNU Coding Standards.
5009         (check_versions, top level): Prefix messages with script name.
5010
5011 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
5012
5013         bootstrap: support --no-git option
5014         * build-aux/bootstrap: Add --no-git option, to be used when
5015         --gnulib-srcdir points to the exact desired checkout.
5016
5017 2011-01-21  Eric Blake  <eblake@redhat.com>
5018
5019         strerror_r-posix: work with glibc 2.13
5020         * lib/strerror_r.c (strerror_r): Fix return type.
5021
5022 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5023             Bruno Haible  <bruno@clisp.org>
5024
5025         uN_strstr: New unit tests.
5026         * modules/unistr/u8-strstr-tests: New file.
5027         * modules/unistr/u16-strstr-tests: New file.
5028         * modules/unistr/u32-strstr-tests: New file.
5029         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
5030         * tests/unistr/test-u8-strstr.c: New file.
5031         * tests/unistr/test-u16-strstr.c: New file.
5032         * tests/unistr/test-u32-strstr.c: New file.
5033
5034 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5035             Bruno Haible  <bruno@clisp.org>
5036
5037         Make uN_strstr functions O(n) worst-case.
5038         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
5039         16-bit and 32-bit unit cases, use the unibyte algorithm from
5040         lib/mbsstr.c.
5041         * lib/unistr/u8-strstr.c: Include <string.h>.
5042         (UNIT_IS_UINT8_T): New macro.
5043         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
5044         (U_STRLEN, U_STRNLEN): New macros.
5045         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
5046         (U_STRLEN, U_STRNLEN): New macros.
5047         * modules/unistr/u8-strstr (Depends-on): Add strstr.
5048         (configure.ac): Update required libunistring version.
5049         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
5050         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
5051         malloca.
5052         (configure.ac): Update required libunistring version.
5053         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
5054         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
5055         malloca.
5056         (configure.ac): Update required libunistring version.
5057
5058 2011-01-21  Pádraig Brady  <P@draigBrady.com>
5059             Bruno Haible  <bruno@clisp.org>
5060
5061         Prepare for faster uN_strstr functions.
5062         * lib/str-kmp.h: Support definable UNITs.
5063         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
5064         needle_len argument.
5065         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
5066         * lib/mbscasestr.c (mbscasestr): Likewise.
5067
5068 2011-01-21  Pádraig Brady <P@draigBrady.com>
5069
5070         malloca-tests: make faster by unsetting MALLOC_PERTURB_
5071         * tests/test-malloca.c (main): Unset the environment variable
5072         to greatly speed up the test.
5073         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
5074         * modules/malloca-tests: Depend on unsetenv.
5075
5076 2011-01-21  Pádraig Brady <P@draigBrady.com>
5077
5078         ignore-value: remove stdint dependency
5079         * lib/ignore-value.h: Remove <stdint.h>
5080         * modules/ignore-value: Remove stdint dependency.
5081
5082 2011-01-21  Jim Meyering  <meyering@redhat.com>
5083
5084         maint.mk: adjust variable name to be consistent with other gl_ vars
5085         * top/maint.mk (gl_public_submodule_commit): Rename the variable
5086         to be lower case.
5087
5088 2011-01-20  Jim Meyering  <meyering@redhat.com>
5089
5090         maint.mk: make "check" depend on public-submodule-commit by default
5091         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
5092
5093 2011-01-20  Bruno Haible  <bruno@clisp.org>
5094
5095         mbfile, mbiter: Complete change from 2008-12-21.
5096         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
5097         * m4/mbiter.m4 (gl_MBITER): Likewise.
5098
5099 2011-01-20  Jim Meyering  <meyering@redhat.com>
5100
5101         init.sh: insert space between each function name and "()"
5102         * tests/init.sh: Make it a little easier to see that a function's
5103         name is "warn_", and not "warn" when looking at the first part of
5104         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
5105
5106 2011-01-20  Jim Meyering  <meyering@redhat.com>
5107
5108         mountlist: clean up code formatting
5109         * lib/mountlist.c (read_file_system_list): Split a long line,
5110         correct bracing style, use NULL in place of "(struct statfs *)0",
5111         don't parenthesize return value, add spaces around "=" and after
5112         ";-in-for-stmt".
5113
5114 2011-01-14  Markus Duft <mduft@gentoo.org>
5115
5116         mountlist: add support for Interix
5117         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
5118         Apply statvfs to all entries of /dev/fs.
5119         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
5120         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
5121
5122 2011-01-20  Jim Meyering  <meyering@redhat.com>
5123
5124         maint.mk: improve the public-submodule-commit rule
5125         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
5126         to suppress printing of its commands... unless V=1.
5127         Add git submodule's --quiet option to suppress printing of e.g.,
5128         "Entering gnulib" output.
5129         "cd" into $(srcdir) before running git submodule.
5130
5131 2011-01-20  Bruno Haible  <bruno@clisp.org>
5132
5133         include_next: Fix bug introduced on 2011-01-18.
5134         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
5135         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
5136         ac_cv_header_... variable if the second argument is not 'check'.
5137         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
5138         gl_NEXT_HEADERS_INTERNAL.
5139
5140 2011-01-20  Bruno Haible  <bruno@clisp.org>
5141
5142         Allow the user to avoid the GNULIB_TEST_* macros.
5143         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
5144         Suggested by Paul Eggert.
5145
5146 2011-01-14  Jim Meyering  <meyering@redhat.com>
5147
5148         bootstrap: avoid failure when there is no .gitmodules file
5149         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
5150         has been assigned to, even when its value is the empty string.
5151         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
5152         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
5153         Reported by John W. Eaton <jwe@gnu.org>.
5154
5155 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
5156
5157         assume <ctype.h>, ..., <time.h> exist
5158         For years gnulib has been assuming the existence of the headers
5159         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
5160         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
5161         them, since they don't appear to be needed.
5162         * README (Portability guidelines): Document this.
5163         * lib/flock.c: Assume <fcntl.h> exists.
5164         * lib/regex_internal.h: Assume <locale.h> exists.
5165         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
5166         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
5167         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
5168         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
5169         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
5170         * m4/regex.m4 (gl_REGEX): Likewise.
5171         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
5172         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
5173         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
5174         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
5175         * tests/test-argp.c: Likewise.
5176         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
5177
5178         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
5179         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
5180         AA_APPLE_UNIVERSAL_BUILD.  See
5181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
5182         * NEWS: Document this.
5183
5184 2011-01-19  Eric Blake  <eblake@redhat.com>
5185
5186         c-stack: assume stack overflow if SA_SIGINFO unsupported
5187         * lib/c-stack.c (SIGACTION_WORKS): Rename...
5188         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
5189         sigaction will work.
5190         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
5191         behavior match Linux.
5192         * tests/test-c-stack.c (main): Prefer NULL for pointers.
5193
5194         stdbool-tests: accomodate Haiku
5195         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
5196
5197         binary-io: fix O_TEXT on Haiku
5198         * modules/binary-io (Depends-on): Add fcntl-h.
5199         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
5200         than blindly undefining O_TEXT.
5201         Reported by Scott McCreary.
5202
5203 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5204
5205         include_next: do not check for standard headers like stddef.h
5206
5207         I found this problem when modifying Emacs to use gnulib.
5208         I noticed that it added HAVE_STDDEF_H to config.h, even though
5209         gnulib always assumes <stddef.h> exists as per README and this
5210         symbol is unnecessary.
5211         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
5212         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
5213         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
5214         faster for headers like stddef.h that are known to exist.
5215         (gl_CHECK_NEXT_HEADERS): Use it.
5216         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
5217         rather than gl_CHECK_NEXT_HEADERS.
5218         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
5219         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
5220
5221 2011-01-18  Eric Blake  <eblake@redhat.com>
5222
5223         ansi-c++-opt: skip C++ dependency style if C++ is unused
5224         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
5225         tests when we know C++ compilation is not desired.
5226         Reported by Scott McCreary.
5227
5228 2011-01-18  Bruno Haible  <bruno@clisp.org>
5229
5230         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
5231         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
5232         (main): Perform test also when getrlimit and setrlimit don't exist or
5233         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
5234         limiting the address space size using setrlimit, compare the address
5235         space size before and after the the test.
5236         * tests/test-dprintf-posix2.c: Likewise.
5237         * tests/test-fprintf-posix3.sh: Update skip messages.
5238         * tests/test-dprintf-posix2.sh: Likewise.
5239         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
5240         * modules/dprintf-posix-tests (Depends-on): Likewise.
5241         Reported by Bruce Korb <bkorb@gnu.org> and
5242         Gary V. Vaughan <gary@gnu.org>.
5243
5244 2011-01-18  Bruno Haible  <bruno@clisp.org>
5245
5246         get-rusage-as: Improvement for Cygwin.
5247         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
5248         areas that are merely reserved.
5249
5250 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
5251
5252         strftime: remove dependencies on multibyte modules
5253
5254         strftime depended on mbrlen, mbsinit, and wchar, but these modules
5255         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
5256         only if __osf__ is defined, and I suspect OSF doesn't need these
5257         other modules.  If my guess is wrong, we'll need to come up with a
5258         variant of strftime that doesn't need the multibyte modules.
5259
5260         I discovered this problem when attempting modify Emacs to use the
5261         strftime module.  With the previous gnulib, this caused Emacs to
5262         need 31 new files, ranging from lib/config.charset to
5263         m4/wint_t.m4.  This was overkill and I expect would be offputting
5264         to the Emacs maintainers.  After this change, only 6 new files are
5265         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
5266         stdbool.m4, and tm_gmtoff.m4.
5267
5268         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
5269         Suggested by Bruno Haible in
5270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
5271         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
5272         and do not check for wchar.h.
5273         * modules/strftime (Files): Remove m4/mbstate_t.m4.
5274         (Depends-on): Remove mbrlen, mbsinit, wchar.
5275
5276 2011-01-18  Bruno Haible  <bruno@clisp.org>
5277
5278         Tests for module 'get-rusage-as'.
5279         * modules/get-rusage-as-tests: New file.
5280         * tests/test-get-rusage-as.c: New file.
5281
5282         New module 'get-rusage-as'.
5283         * modules/get-rusage-as: New file.
5284         * lib/resource-ext.h: New file.
5285         * lib/get-rusage-as.c: New file.
5286
5287 2011-01-17  Eric Blake  <eblake@redhat.com>
5288
5289         sigaction: relax license from LGPLv3+ to LGPLv2+
5290         * modules/sigaction (License): Relax to LGPLv2+.
5291
5292 2011-01-14  Bruno Haible  <bruno@clisp.org>
5293
5294         filemode: Make function declarations usable in C++ mode.
5295         * lib/filemode.h: Enclose function declarations in extern "C" block.
5296         Reported by John W. Eaton <jwe@gnu.org>.
5297
5298 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
5299
5300         save-cwd: no longer include "xgetcwd.h"
5301         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
5302         This avoids a compilation failure in projects that use save-cwd
5303         without also using the xgetcwd module.
5304
5305 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5306
5307         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
5308         This is so that a program like Emacs, which needs only dtoastr,
5309         does not have to bother with distributing and compiling ftoastr
5310         and ldtoastr.
5311         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
5312         * modules/dtoastr, modules/ldtoastr: New files.
5313         * modules/ftoastr: Now works just for 'float'.
5314         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
5315         (Makefile.am): Remove ftoastr.h (not needed and no effect),
5316         dtoastr.c, ldtoastr.c.
5317
5318 2011-01-11  Jim Meyering  <meyering@redhat.com>
5319
5320         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
5321         There is no need to work around the lack of the fchdir function,
5322         since gnulib can now provide a replacement when required.
5323         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
5324         * modules/save-cwd (Depends-on): Add fchdir.
5325
5326 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
5327
5328         openat, save-cwd: avoid xmalloc
5329
5330         This removes a direct (but undocumented) dependency of openat on
5331         xalloc, along with an indirect dependency via save-cwd.  It also
5332         removes a dependency of save-cwd on xgetcwd, and thereby
5333         indirectly on xalloc.  This change causes the openat substitute
5334         to fall back on save_cwd when memory is tight, and for save_cwd to
5335         fail instead of dying when memory is tight, but that's good enough.
5336         Problem and initial idea for fix reported by Bastien Roucaries in
5337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
5338
5339         * lib/openat-proc.c: Include stdlib.h (for malloc), not
5340         xalloc.h (for xmalloc).
5341         (openat_proc_name): Use malloc, not xmalloc.
5342         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
5343         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
5344
5345         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
5346         This avoids heap allocation for file names whose lengths are in
5347         the range 512..1023, with the upper bound increasing to at most
5348         4031 depending on the platform's PATH_MAX.  (We do not want
5349         pathmax.h here as it might supply a non-constant PATH_MAX.)
5350         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
5351         Perhaps they should be moved to malloca.h?
5352         (OPENAT_BUFFER_SIZE): Use them.
5353
5354 2011-01-10  Bruno Haible  <bruno@clisp.org>
5355
5356         doc: Update users.txt.
5357         * users.txt: Add recutils.
5358
5359 2011-01-09  Karl Berry  <karl@gnu.org>
5360
5361         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
5362
5363         * doc/configmake.texi: New file.
5364         * doc/gnulib.texi: Include it.
5365         * modules/configmake: Move documentation from here.
5366
5367 2011-01-09  Bruno Haible  <bruno@clisp.org>
5368
5369         Update to Unicode 6.0.0.
5370         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
5371         (get_lbp): Update for Unicode 6.0.0.
5372         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
5373         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
5374         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
5375         U+11001, U+11038..U+11046. Remove U+06DE.
5376         (uc_width): Fix bounds of planes.
5377         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5378         lib/uniwidth/width.c.
5379         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
5380         trailing whitespace removed.
5381         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
5382         without comments, but with the original copyright notice.
5383         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
5384         * lib/unicase/ignorable.h: Likewise.
5385         * lib/unicase/tocasefold.h: Likewise.
5386         * lib/unicase/tolower.h: Likewise.
5387         * lib/unicase/totitle.h: Likewise.
5388         * lib/unicase/toupper.h: Likewise.
5389         * lib/unictype/bidi_of.h: Likewise.
5390         * lib/unictype/blocks.h: Likewise.
5391         * lib/unictype/categ_C.h: Likewise.
5392         * lib/unictype/categ_Cn.h: Likewise.
5393         * lib/unictype/categ_L.h: Likewise.
5394         * lib/unictype/categ_Ll.h: Likewise.
5395         * lib/unictype/categ_Lm.h: Likewise.
5396         * lib/unictype/categ_Lo.h: Likewise.
5397         * lib/unictype/categ_Lu.h: Likewise.
5398         * lib/unictype/categ_M.h: Likewise.
5399         * lib/unictype/categ_Mc.h: Likewise.
5400         * lib/unictype/categ_Me.h: Likewise.
5401         * lib/unictype/categ_Mn.h: Likewise.
5402         * lib/unictype/categ_N.h: Likewise.
5403         * lib/unictype/categ_Nd.h: Likewise.
5404         * lib/unictype/categ_No.h: Likewise.
5405         * lib/unictype/categ_P.h: Likewise.
5406         * lib/unictype/categ_Po.h: Likewise.
5407         * lib/unictype/categ_S.h: Likewise.
5408         * lib/unictype/categ_Sc.h: Likewise.
5409         * lib/unictype/categ_Sk.h: Likewise.
5410         * lib/unictype/categ_Sm.h: Likewise.
5411         * lib/unictype/categ_So.h: Likewise.
5412         * lib/unictype/categ_of.h: Likewise.
5413         * lib/unictype/combining.h: Likewise.
5414         * lib/unictype/ctype_alnum.h: Likewise.
5415         * lib/unictype/ctype_alpha.h: Likewise.
5416         * lib/unictype/ctype_graph.h: Likewise.
5417         * lib/unictype/ctype_lower.h: Likewise.
5418         * lib/unictype/ctype_print.h: Likewise.
5419         * lib/unictype/ctype_punct.h: Likewise.
5420         * lib/unictype/ctype_upper.h: Likewise.
5421         * lib/unictype/decdigit.h: Likewise.
5422         * lib/unictype/digit.h: Likewise.
5423         * lib/unictype/numeric.h: Likewise.
5424         * lib/unictype/pr_alphabetic.h: Likewise.
5425         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5426         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5427         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5428         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5429         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5430         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5431         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5432         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5433         * lib/unictype/pr_case_ignorable.h: Likewise.
5434         * lib/unictype/pr_cased.h: Likewise.
5435         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
5436         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
5437         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
5438         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
5439         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
5440         * lib/unictype/pr_combining.h: Likewise.
5441         * lib/unictype/pr_composite.h: Likewise.
5442         * lib/unictype/pr_currency_symbol.h: Likewise.
5443         * lib/unictype/pr_decimal_digit.h: Likewise.
5444         * lib/unictype/pr_deprecated.h: Likewise.
5445         * lib/unictype/pr_format_control.h: Likewise.
5446         * lib/unictype/pr_grapheme_base.h: Likewise.
5447         * lib/unictype/pr_grapheme_extend.h: Likewise.
5448         * lib/unictype/pr_grapheme_link.h: Likewise.
5449         * lib/unictype/pr_id_continue.h: Likewise.
5450         * lib/unictype/pr_id_start.h: Likewise.
5451         * lib/unictype/pr_ideographic.h: Likewise.
5452         * lib/unictype/pr_lowercase.h: Likewise.
5453         * lib/unictype/pr_math.h: Likewise.
5454         * lib/unictype/pr_numeric.h: Likewise.
5455         * lib/unictype/pr_other_alphabetic.h: Likewise.
5456         * lib/unictype/pr_other_id_continue.h: Likewise.
5457         * lib/unictype/pr_other_math.h: Likewise.
5458         * lib/unictype/pr_punctuation.h: Likewise.
5459         * lib/unictype/pr_sentence_terminal.h: Likewise.
5460         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5461         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5462         * lib/unictype/pr_unified_ideograph.h: Likewise.
5463         * lib/unictype/pr_uppercase.h: Likewise.
5464         * lib/unictype/pr_xid_continue.h: Likewise.
5465         * lib/unictype/pr_xid_start.h: Likewise.
5466         * lib/unictype/scripts.h: Likewise.
5467         * lib/unictype/scripts_byname.gperf: Likewise.
5468         * lib/unictype/sy_java_ident.h: Likewise.
5469         * lib/unigbrk/gbrkprop.h: Likewise.
5470         * lib/unilbrk/lbrkprop1.h: Likewise.
5471         * lib/unilbrk/lbrkprop2.h: Likewise.
5472         * lib/uninorm/decomposition-table2.h: Likewise.
5473         * lib/uniwbrk/wbrkprop.h: Likewise.
5474         * tests/unicase/test-cased.c: Likewise.
5475         * tests/unicase/test-ignorable.c: Likewise.
5476         * tests/unicase/test-uc_tolower.c: Likewise.
5477         * tests/unicase/test-uc_totitle.c: Likewise.
5478         * tests/unicase/test-uc_toupper.c: Likewise.
5479         * tests/unictype/test-categ_C.c: Likewise.
5480         * tests/unictype/test-categ_Cn.c: Likewise.
5481         * tests/unictype/test-categ_L.c: Likewise.
5482         * tests/unictype/test-categ_Ll.c: Likewise.
5483         * tests/unictype/test-categ_Lm.c: Likewise.
5484         * tests/unictype/test-categ_Lo.c: Likewise.
5485         * tests/unictype/test-categ_Lu.c: Likewise.
5486         * tests/unictype/test-categ_M.c: Likewise.
5487         * tests/unictype/test-categ_Mc.c: Likewise.
5488         * tests/unictype/test-categ_Me.c: Likewise.
5489         * tests/unictype/test-categ_Mn.c: Likewise.
5490         * tests/unictype/test-categ_N.c: Likewise.
5491         * tests/unictype/test-categ_Nd.c: Likewise.
5492         * tests/unictype/test-categ_No.c: Likewise.
5493         * tests/unictype/test-categ_P.c: Likewise.
5494         * tests/unictype/test-categ_Po.c: Likewise.
5495         * tests/unictype/test-categ_S.c: Likewise.
5496         * tests/unictype/test-categ_Sc.c: Likewise.
5497         * tests/unictype/test-categ_Sk.c: Likewise.
5498         * tests/unictype/test-categ_Sm.c: Likewise.
5499         * tests/unictype/test-categ_So.c: Likewise.
5500         * tests/unictype/test-ctype_alnum.c: Likewise.
5501         * tests/unictype/test-ctype_alpha.c: Likewise.
5502         * tests/unictype/test-ctype_graph.c: Likewise.
5503         * tests/unictype/test-ctype_lower.c: Likewise.
5504         * tests/unictype/test-ctype_print.c: Likewise.
5505         * tests/unictype/test-ctype_punct.c: Likewise.
5506         * tests/unictype/test-ctype_upper.c: Likewise.
5507         * tests/unictype/test-decdigit.h: Likewise.
5508         * tests/unictype/test-digit.h: Likewise.
5509         * tests/unictype/test-numeric.h: Likewise.
5510         * tests/unictype/test-pr_alphabetic.c: Likewise.
5511         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5512         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
5513         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
5514         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5515         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5516         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5517         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5518         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5519         * tests/unictype/test-pr_case_ignorable.c: Likewise.
5520         * tests/unictype/test-pr_cased.c: Likewise.
5521         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
5522         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
5523         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
5524         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
5525         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
5526         * tests/unictype/test-pr_combining.c: Likewise.
5527         * tests/unictype/test-pr_composite.c: Likewise.
5528         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5529         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5530         * tests/unictype/test-pr_deprecated.c: Likewise.
5531         * tests/unictype/test-pr_format_control.c: Likewise.
5532         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5533         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5534         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5535         * tests/unictype/test-pr_id_continue.c: Likewise.
5536         * tests/unictype/test-pr_id_start.c: Likewise.
5537         * tests/unictype/test-pr_ideographic.c: Likewise.
5538         * tests/unictype/test-pr_lowercase.c: Likewise.
5539         * tests/unictype/test-pr_math.c: Likewise.
5540         * tests/unictype/test-pr_numeric.c: Likewise.
5541         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5542         * tests/unictype/test-pr_other_id_continue.c: Likewise.
5543         * tests/unictype/test-pr_other_math.c: Likewise.
5544         * tests/unictype/test-pr_punctuation.c: Likewise.
5545         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5546         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5547         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5548         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5549         * tests/unictype/test-pr_uppercase.c: Likewise.
5550         * tests/unictype/test-pr_xid_continue.c: Likewise.
5551         * tests/unictype/test-pr_xid_start.c: Likewise.
5552         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5553         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5554         changes.
5555         * lib/unictype/categ_Cc.h: Likewise.
5556         * lib/unictype/categ_Cf.h: Likewise.
5557         * lib/unictype/categ_Co.h: Likewise.
5558         * lib/unictype/categ_Cs.h: Likewise.
5559         * lib/unictype/categ_Lt.h: Likewise.
5560         * lib/unictype/categ_Nl.h: Likewise.
5561         * lib/unictype/categ_Pc.h: Likewise.
5562         * lib/unictype/categ_Pd.h: Likewise.
5563         * lib/unictype/categ_Pe.h: Likewise.
5564         * lib/unictype/categ_Pf.h: Likewise.
5565         * lib/unictype/categ_Pi.h: Likewise.
5566         * lib/unictype/categ_Ps.h: Likewise.
5567         * lib/unictype/categ_Z.h: Likewise.
5568         * lib/unictype/categ_Zl.h: Likewise.
5569         * lib/unictype/categ_Zp.h: Likewise.
5570         * lib/unictype/categ_Zs.h: Likewise.
5571         * lib/unictype/ctype_blank.h: Likewise.
5572         * lib/unictype/ctype_cntrl.h: Likewise.
5573         * lib/unictype/ctype_digit.h: Likewise.
5574         * lib/unictype/ctype_space.h: Likewise.
5575         * lib/unictype/ctype_xdigit.h: Likewise.
5576         * lib/unictype/mirror.h: Likewise.
5577         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5578         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5579         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5580         * lib/unictype/pr_bidi_control.h: Likewise.
5581         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5582         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5583         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5584         * lib/unictype/pr_bidi_pdf.h: Likewise.
5585         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5586         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5587         * lib/unictype/pr_dash.h: Likewise.
5588         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5589         * lib/unictype/pr_diacritic.h: Likewise.
5590         * lib/unictype/pr_extender.h: Likewise.
5591         * lib/unictype/pr_hex_digit.h: Likewise.
5592         * lib/unictype/pr_hyphen.h: Likewise.
5593         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5594         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5595         * lib/unictype/pr_ignorable_control.h: Likewise.
5596         * lib/unictype/pr_iso_control.h: Likewise.
5597         * lib/unictype/pr_join_control.h: Likewise.
5598         * lib/unictype/pr_left_of_pair.h: Likewise.
5599         * lib/unictype/pr_line_separator.h: Likewise.
5600         * lib/unictype/pr_logical_order_exception.h: Likewise.
5601         * lib/unictype/pr_non_break.h: Likewise.
5602         * lib/unictype/pr_not_a_character.h: Likewise.
5603         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
5604         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
5605         * lib/unictype/pr_other_id_start.h: Likewise.
5606         * lib/unictype/pr_other_lowercase.h: Likewise.
5607         * lib/unictype/pr_other_uppercase.h: Likewise.
5608         * lib/unictype/pr_paired_punctuation.h: Likewise.
5609         * lib/unictype/pr_paragraph_separator.h: Likewise.
5610         * lib/unictype/pr_pattern_syntax.h: Likewise.
5611         * lib/unictype/pr_pattern_white_space.h: Likewise.
5612         * lib/unictype/pr_private_use.h: Likewise.
5613         * lib/unictype/pr_quotation_mark.h: Likewise.
5614         * lib/unictype/pr_radical.h: Likewise.
5615         * lib/unictype/pr_soft_dotted.h: Likewise.
5616         * lib/unictype/pr_space.h: Likewise.
5617         * lib/unictype/pr_titlecase.h: Likewise.
5618         * lib/unictype/pr_variation_selector.h: Likewise.
5619         * lib/unictype/pr_white_space.h: Likewise.
5620         * lib/unictype/pr_zero_width.h: Likewise.
5621         * lib/unictype/sy_c_ident.h: Likewise.
5622         * lib/unictype/sy_c_whitespace.h: Likewise.
5623         * lib/unictype/sy_java_whitespace.h: Likewise.
5624         * lib/uninorm/composition-table.gperf: Likewise.
5625         * lib/uninorm/decomposition-table1.h: Likewise.
5626         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
5627         LB8.
5628         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5629         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5630         * modules/unictype/*: Bump version number of expected libunistring
5631         version.
5632
5633 2011-01-09  Bruno Haible  <bruno@clisp.org>
5634
5635         Update to Unicode 5.2.0.
5636         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
5637         trailing whitespace removed.
5638
5639 2011-01-09  Bruno Haible  <bruno@clisp.org>
5640
5641         New Unicode character properties, from Unicode 5.2.0.
5642         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
5643         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
5644         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
5645         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
5646         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
5647         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
5648         uc_is_property_cased, uc_is_property_case_ignorable,
5649         uc_is_property_changes_when_lowercased,
5650         uc_is_property_changes_when_uppercased,
5651         uc_is_property_changes_when_titlecased,
5652         uc_is_property_changes_when_casefolded,
5653         uc_is_property_changes_when_casemapped): New declarations.
5654         * lib/unictype/pr_byname.gperf: Add the new properties.
5655         * modules/unictype/property-byname (Depends-on): Depend on the new
5656         properties modules.
5657         * modules/unictype/property-all (Depends-on): Likewise.
5658         * MODULES.html.sh (Unicode string functions): Add
5659         unictype/property-case-ignorable, unictype/property-cased,
5660         unictype/property-changes-when-casefolded,
5661         unictype/property-changes-when-casemapped,
5662         unictype/property-changes-when-lowercased,
5663         unictype/property-changes-when-titlecased,
5664         unictype/property-changes-when-uppercased.
5665
5666         New module 'unictype/property-changes-when-casemapped'.
5667         * modules/unictype/property-changes-when-casemapped: New file.
5668         * lib/unictype/pr_changes_when_casemapped.c: New file.
5669         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
5670         generated by gen-uni-tables.
5671         * modules/unictype/property-changes-when-casemapped-tests: New file.
5672         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
5673         automatically generated by gen-uni-tables.
5674
5675         New module 'unictype/property-changes-when-casefolded'.
5676         * modules/unictype/property-changes-when-casefolded: New file.
5677         * lib/unictype/pr_changes_when_casefolded.c: New file.
5678         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
5679         generated by gen-uni-tables.
5680         * modules/unictype/property-changes-when-casefolded-tests: New file.
5681         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
5682         automatically generated by gen-uni-tables.
5683
5684         New module 'unictype/property-changes-when-titlecased'.
5685         * modules/unictype/property-changes-when-titlecased: New file.
5686         * lib/unictype/pr_changes_when_titlecased.c: New file.
5687         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
5688         generated by gen-uni-tables.
5689         * modules/unictype/property-changes-when-titlecased-tests: New file.
5690         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
5691         automatically generated by gen-uni-tables.
5692
5693         New module 'unictype/property-changes-when-uppercased'.
5694         * modules/unictype/property-changes-when-uppercased: New file.
5695         * lib/unictype/pr_changes_when_uppercased.c: New file.
5696         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
5697         generated by gen-uni-tables.
5698         * modules/unictype/property-changes-when-uppercased-tests: New file.
5699         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
5700         automatically generated by gen-uni-tables.
5701
5702         New module 'unictype/property-changes-when-lowercased'.
5703         * modules/unictype/property-changes-when-lowercased: New file.
5704         * lib/unictype/pr_changes_when_lowercased.c: New file.
5705         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
5706         generated by gen-uni-tables.
5707         * modules/unictype/property-changes-when-lowercased-tests: New file.
5708         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
5709         automatically generated by gen-uni-tables.
5710
5711         New module 'unictype/property-case-ignorable'.
5712         * modules/unictype/property-case-ignorable: New file.
5713         * lib/unictype/pr_case_ignorable.c: New file.
5714         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
5715         by gen-uni-tables.
5716         * modules/unictype/property-case-ignorable-tests: New file.
5717         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
5718         generated by gen-uni-tables.
5719
5720         New module 'unictype/property-cased'.
5721         * modules/unictype/property-cased: New file.
5722         * lib/unictype/pr_cased.c: New file.
5723         * lib/unictype/pr_cased.h: New file, automatically generated by
5724         gen-uni-tables.
5725         * modules/unictype/property-cased-tests: New file.
5726         * tests/unictype/test-pr_cased.c: New file, automatically generated by
5727         gen-uni-tables.
5728
5729 2011-01-09  Bruno Haible  <bruno@clisp.org>
5730
5731         Update to Unicode 5.2.0.
5732         * lib/gen-uni-tables.c (output_predicate, output_category,
5733         output_combclass, output_bidi_category, output_decimal_digit_test,
5734         output_decimal_digit, output_digit_test, output_digit,
5735         output_numeric_test, output_numeric, output_mirror, output_scripts,
5736         output_scripts_byname, output_blocks, output_ident_category): Fix
5737         comment header.
5738         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
5739         get_wbp.
5740         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
5741         items.
5742         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
5743         Changes_When_Lowercased, Changes_When_Uppercased,
5744         Changes_When_Titlecased, Changes_When_Casefolded,
5745         Changes_When_Casemapped.
5746         (is_property_alphabetic, is_property_default_ignorable_code_point):
5747         Update for Unicode 5.2.0.
5748         (is_property_cased, is_property_case_ignorable,
5749         is_property_changes_when_lowercased,
5750         is_property_changes_when_uppercased,
5751         is_property_changes_when_titlecased,
5752         is_property_changes_when_casefolded,
5753         is_property_changes_when_casemapped): New functions.
5754         (output_properties): Output also the properties cased, case_ignorable,
5755         changes_when_lowercased, changes_when_uppercased,
5756         changes_when_titlecased, changes_when_casefolded,
5757         changes_when_casemapped.
5758         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
5759         Unicode TR#11 revision 17 -> 19.
5760         (LBP_CP): New enumeration value.
5761         (LBP_*): Adjust values accordingly.
5762         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5763         TR#14 revision 22 -> 24.
5764         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
5765         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
5766         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
5767         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
5768         is_WBP_MIDLETTER.
5769         (output_composition_tables): Allow for 24 bits instead of 16 bits in
5770         the code1 and code2 of each composition rule.
5771         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
5772         * lib/unicase/ignorable.h: Likewise.
5773         * lib/unicase/tocasefold.h: Likewise.
5774         * lib/unicase/tolower.h: Likewise.
5775         * lib/unicase/totitle.h: Likewise.
5776         * lib/unicase/toupper.h: Likewise.
5777         * lib/unictype/bidi_of.h: Likewise.
5778         * lib/unictype/blocks.h: Likewise.
5779         * lib/unictype/categ_C.h: Likewise.
5780         * lib/unictype/categ_Cf.h: Likewise.
5781         * lib/unictype/categ_Cn.h: Likewise.
5782         * lib/unictype/categ_L.h: Likewise.
5783         * lib/unictype/categ_Ll.h: Likewise.
5784         * lib/unictype/categ_Lm.h: Likewise.
5785         * lib/unictype/categ_Lo.h: Likewise.
5786         * lib/unictype/categ_Lu.h: Likewise.
5787         * lib/unictype/categ_M.h: Likewise.
5788         * lib/unictype/categ_Mc.h: Likewise.
5789         * lib/unictype/categ_Mn.h: Likewise.
5790         * lib/unictype/categ_N.h: Likewise.
5791         * lib/unictype/categ_Nd.h: Likewise.
5792         * lib/unictype/categ_Nl.h: Likewise.
5793         * lib/unictype/categ_No.h: Likewise.
5794         * lib/unictype/categ_P.h: Likewise.
5795         * lib/unictype/categ_Pd.h: Likewise.
5796         * lib/unictype/categ_Po.h: Likewise.
5797         * lib/unictype/categ_S.h: Likewise.
5798         * lib/unictype/categ_Sc.h: Likewise.
5799         * lib/unictype/categ_So.h: Likewise.
5800         * lib/unictype/categ_of.h: Likewise.
5801         * lib/unictype/combining.h: Likewise.
5802         * lib/unictype/ctype_alnum.h: Likewise.
5803         * lib/unictype/ctype_alpha.h: Likewise.
5804         * lib/unictype/ctype_graph.h: Likewise.
5805         * lib/unictype/ctype_lower.h: Likewise.
5806         * lib/unictype/ctype_print.h: Likewise.
5807         * lib/unictype/ctype_punct.h: Likewise.
5808         * lib/unictype/ctype_upper.h: Likewise.
5809         * lib/unictype/decdigit.h: Likewise.
5810         * lib/unictype/digit.h: Likewise.
5811         * lib/unictype/numeric.h: Likewise.
5812         * lib/unictype/pr_alphabetic.h: Likewise.
5813         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
5814         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
5815         * lib/unictype/pr_bidi_european_digit.h: Likewise.
5816         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
5817         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
5818         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
5819         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
5820         * lib/unictype/pr_combining.h: Likewise.
5821         * lib/unictype/pr_composite.h: Likewise.
5822         * lib/unictype/pr_currency_symbol.h: Likewise.
5823         * lib/unictype/pr_dash.h: Likewise.
5824         * lib/unictype/pr_decimal_digit.h: Likewise.
5825         * lib/unictype/pr_deprecated.h: Likewise.
5826         * lib/unictype/pr_diacritic.h: Likewise.
5827         * lib/unictype/pr_extender.h: Likewise.
5828         * lib/unictype/pr_grapheme_base.h: Likewise.
5829         * lib/unictype/pr_grapheme_extend.h: Likewise.
5830         * lib/unictype/pr_grapheme_link.h: Likewise.
5831         * lib/unictype/pr_id_continue.h: Likewise.
5832         * lib/unictype/pr_id_start.h: Likewise.
5833         * lib/unictype/pr_ideographic.h: Likewise.
5834         * lib/unictype/pr_ignorable_control.h: Likewise.
5835         * lib/unictype/pr_logical_order_exception.h: Likewise.
5836         * lib/unictype/pr_lowercase.h: Likewise.
5837         * lib/unictype/pr_numeric.h: Likewise.
5838         * lib/unictype/pr_other_alphabetic.h: Likewise.
5839         * lib/unictype/pr_punctuation.h: Likewise.
5840         * lib/unictype/pr_sentence_terminal.h: Likewise.
5841         * lib/unictype/pr_terminal_punctuation.h: Likewise.
5842         * lib/unictype/pr_unassigned_code_value.h: Likewise.
5843         * lib/unictype/pr_unified_ideograph.h: Likewise.
5844         * lib/unictype/pr_uppercase.h: Likewise.
5845         * lib/unictype/pr_xid_continue.h: Likewise.
5846         * lib/unictype/pr_xid_start.h: Likewise.
5847         * lib/unictype/pr_zero_width.h: Likewise.
5848         * lib/unictype/scripts.h: Likewise.
5849         * lib/unictype/scripts_byname.gperf: Likewise.
5850         * lib/unictype/sy_java_ident.h: Likewise.
5851         * lib/unigbrk/gbrkprop.h: Likewise.
5852         * lib/unilbrk/lbrkprop1.h: Likewise.
5853         * lib/unilbrk/lbrkprop2.h: Likewise.
5854         * lib/unilbrk/lbrktables.h: Likewise.
5855         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
5856         LBP_CP. Implement rule LB30.
5857         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
5858         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
5859         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
5860         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
5861         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
5862         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
5863         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
5864         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
5865         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
5866         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
5867         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
5868         bits instead of 16 bits in the code1 and code2 of each composition
5869         rule.
5870         (uc_composition): Update for Unicode 5.2.0.
5871         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
5872         * lib/uninorm/decomposition-table2.h: Likewise.
5873         * lib/uniwbrk/wbrkprop.h: Likewise.
5874         * tests/unicase/test-cased.c: Likewise.
5875         * tests/unicase/test-ignorable.c: Likewise.
5876         * tests/unicase/test-uc_tolower.c: Likewise.
5877         * tests/unicase/test-uc_totitle.c: Likewise.
5878         * tests/unicase/test-uc_toupper.c: Likewise.
5879         * tests/unictype/test-categ_C.c: Likewise.
5880         * tests/unictype/test-categ_Cf.c: Likewise.
5881         * tests/unictype/test-categ_Cn.c: Likewise.
5882         * tests/unictype/test-categ_L.c: Likewise.
5883         * tests/unictype/test-categ_Ll.c: Likewise.
5884         * tests/unictype/test-categ_Lm.c: Likewise.
5885         * tests/unictype/test-categ_Lo.c: Likewise.
5886         * tests/unictype/test-categ_Lu.c: Likewise.
5887         * tests/unictype/test-categ_M.c: Likewise.
5888         * tests/unictype/test-categ_Mc.c: Likewise.
5889         * tests/unictype/test-categ_Mn.c: Likewise.
5890         * tests/unictype/test-categ_N.c: Likewise.
5891         * tests/unictype/test-categ_Nd.c: Likewise.
5892         * tests/unictype/test-categ_Nl.c: Likewise.
5893         * tests/unictype/test-categ_No.c: Likewise.
5894         * tests/unictype/test-categ_P.c: Likewise.
5895         * tests/unictype/test-categ_Pd.c: Likewise.
5896         * tests/unictype/test-categ_Po.c: Likewise.
5897         * tests/unictype/test-categ_S.c: Likewise.
5898         * tests/unictype/test-categ_Sc.c: Likewise.
5899         * tests/unictype/test-categ_So.c: Likewise.
5900         * tests/unictype/test-ctype_alnum.c: Likewise.
5901         * tests/unictype/test-ctype_alpha.c: Likewise.
5902         * tests/unictype/test-ctype_graph.c: Likewise.
5903         * tests/unictype/test-ctype_lower.c: Likewise.
5904         * tests/unictype/test-ctype_print.c: Likewise.
5905         * tests/unictype/test-ctype_punct.c: Likewise.
5906         * tests/unictype/test-ctype_upper.c: Likewise.
5907         * tests/unictype/test-decdigit.h: Likewise.
5908         * tests/unictype/test-digit.h: Likewise.
5909         * tests/unictype/test-numeric.h: Likewise.
5910         * tests/unictype/test-pr_alphabetic.c: Likewise.
5911         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
5912         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
5913         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
5914         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
5915         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
5916         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
5917         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
5918         * tests/unictype/test-pr_combining.c: Likewise.
5919         * tests/unictype/test-pr_composite.c: Likewise.
5920         * tests/unictype/test-pr_currency_symbol.c: Likewise.
5921         * tests/unictype/test-pr_dash.c: Likewise.
5922         * tests/unictype/test-pr_decimal_digit.c: Likewise.
5923         * tests/unictype/test-pr_deprecated.c: Likewise.
5924         * tests/unictype/test-pr_diacritic.c: Likewise.
5925         * tests/unictype/test-pr_extender.c: Likewise.
5926         * tests/unictype/test-pr_grapheme_base.c: Likewise.
5927         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
5928         * tests/unictype/test-pr_grapheme_link.c: Likewise.
5929         * tests/unictype/test-pr_id_continue.c: Likewise.
5930         * tests/unictype/test-pr_id_start.c: Likewise.
5931         * tests/unictype/test-pr_ideographic.c: Likewise.
5932         * tests/unictype/test-pr_ignorable_control.c: Likewise.
5933         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
5934         * tests/unictype/test-pr_lowercase.c: Likewise.
5935         * tests/unictype/test-pr_numeric.c: Likewise.
5936         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
5937         * tests/unictype/test-pr_punctuation.c: Likewise.
5938         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
5939         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
5940         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
5941         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
5942         * tests/unictype/test-pr_uppercase.c: Likewise.
5943         * tests/unictype/test-pr_xid_continue.c: Likewise.
5944         * tests/unictype/test-pr_xid_start.c: Likewise.
5945         * tests/unictype/test-pr_zero_width.c: Likewise.
5946         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
5947         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
5948         changed behaviour: line breaking is now disallowed between a letter
5949         or '=' and '('.
5950         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5951         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5952         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5953         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
5954         * tests/uniwidth/test-uc_width2.sh: Same updates as in
5955         lib/uniwidth/width.c.
5956         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
5957         without comments, but with the original copyright notice.
5958         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
5959         changes.
5960         * lib/unictype/categ_Cc.h: Likewise.
5961         * lib/unictype/categ_Co.h: Likewise.
5962         * lib/unictype/categ_Cs.h: Likewise.
5963         * lib/unictype/categ_Lt.h: Likewise.
5964         * lib/unictype/categ_Me.h: Likewise.
5965         * lib/unictype/categ_Pc.h: Likewise.
5966         * lib/unictype/categ_Pe.h: Likewise.
5967         * lib/unictype/categ_Pf.h: Likewise.
5968         * lib/unictype/categ_Pi.h: Likewise.
5969         * lib/unictype/categ_Ps.h: Likewise.
5970         * lib/unictype/categ_Sk.h: Likewise.
5971         * lib/unictype/categ_Sm.h: Likewise.
5972         * lib/unictype/categ_Z.h: Likewise.
5973         * lib/unictype/categ_Zl.h: Likewise.
5974         * lib/unictype/categ_Zp.h: Likewise.
5975         * lib/unictype/categ_Zs.h: Likewise.
5976         * lib/unictype/ctype_blank.h: Likewise.
5977         * lib/unictype/ctype_cntrl.h: Likewise.
5978         * lib/unictype/ctype_digit.h: Likewise.
5979         * lib/unictype/ctype_space.h: Likewise.
5980         * lib/unictype/ctype_xdigit.h: Likewise.
5981         * lib/unictype/mirror.h: Likewise.
5982         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
5983         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
5984         * lib/unictype/pr_bidi_block_separator.h: Likewise.
5985         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
5986         * lib/unictype/pr_bidi_common_separator.h: Likewise.
5987         * lib/unictype/pr_bidi_control.h: Likewise.
5988         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
5989         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
5990         * lib/unictype/pr_bidi_pdf.h: Likewise.
5991         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
5992         * lib/unictype/pr_bidi_whitespace.h: Likewise.
5993         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
5994         * lib/unictype/pr_format_control.h: Likewise.
5995         * lib/unictype/pr_hex_digit.h: Likewise.
5996         * lib/unictype/pr_hyphen.h: Likewise.
5997         * lib/unictype/pr_ids_binary_operator.h: Likewise.
5998         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
5999         * lib/unictype/pr_iso_control.h: Likewise.
6000         * lib/unictype/pr_join_control.h: Likewise.
6001         * lib/unictype/pr_left_of_pair.h: Likewise.
6002         * lib/unictype/pr_line_separator.h: Likewise.
6003         * lib/unictype/pr_math.h: Likewise.
6004         * lib/unictype/pr_non_break.h: Likewise.
6005         * lib/unictype/pr_not_a_character.h: Likewise.
6006         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6007         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6008         * lib/unictype/pr_other_id_continue.h: Likewise.
6009         * lib/unictype/pr_other_id_start.h: Likewise.
6010         * lib/unictype/pr_other_lowercase.h: Likewise.
6011         * lib/unictype/pr_other_math.h: Likewise.
6012         * lib/unictype/pr_other_uppercase.h: Likewise.
6013         * lib/unictype/pr_paired_punctuation.h: Likewise.
6014         * lib/unictype/pr_paragraph_separator.h: Likewise.
6015         * lib/unictype/pr_pattern_syntax.h: Likewise.
6016         * lib/unictype/pr_pattern_white_space.h: Likewise.
6017         * lib/unictype/pr_private_use.h: Likewise.
6018         * lib/unictype/pr_quotation_mark.h: Likewise.
6019         * lib/unictype/pr_radical.h: Likewise.
6020         * lib/unictype/pr_soft_dotted.h: Likewise.
6021         * lib/unictype/pr_space.h: Likewise.
6022         * lib/unictype/pr_titlecase.h: Likewise.
6023         * lib/unictype/pr_variation_selector.h: Likewise.
6024         * lib/unictype/pr_white_space.h: Likewise.
6025         * lib/unictype/sy_c_ident.h: Likewise.
6026         * lib/unictype/sy_c_whitespace.h: Likewise.
6027         * lib/unictype/sy_java_whitespace.h: Likewise.
6028         * modules/uni*/*: Bump version number of expected libunistring version.
6029         Reported by Simon Josefsson.
6030
6031 2011-01-09  Karl Heuer  <kwzh@gnu.org>
6032
6033         useless-if-before-free: fix typo in --help and make the internal,
6034         automatic version date update process work once again.
6035         --help output contained a NUL character instead of the
6036         backslash-zero that was intended.  Also, the "must lie within
6037         the first 8 lines" line is on line 9, and hence not getting
6038         automatically updated.
6039         * build-aux/useless-if-before-free: Fix the former by adding a
6040         backslash, and the latter by condensing the three lines of what-it-does
6041         to a single line, leaving one line of slack for the future.
6042
6043 2011-01-09  Bruno Haible  <bruno@clisp.org>
6044
6045         uniwidth/width: Fix width of U+1D173..U+1D17A.
6046         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
6047         symbolic_width, output_width_property_test): New functions.
6048         (main): Invoke output_nonspacing_property, output_width_property_test.
6049         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
6050         U+1D173..U+1D17A.
6051         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
6052         1.
6053         * modules/uniwidth/*: Bump version number of expected libunistring
6054         version.
6055         * modules/unilbrk/*: Likewise.
6056
6057 2011-01-08  Bruno Haible  <bruno@clisp.org>
6058
6059         uninorm tests: Preserve copyright of Unicode data file.
6060         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
6061         Mention modifications.
6062
6063 2011-01-08  Bruno Haible  <bruno@clisp.org>
6064
6065         gen-uni-tables: Prepare for Unicode 5.2.0.
6066         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
6067         (debug_output_lbp, output_lbp): Update.
6068
6069 2011-01-08  Bruno Haible  <bruno@clisp.org>
6070
6071         unilbrk: Clarify gen-uni-tables.c code.
6072         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
6073         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
6074         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
6075
6076 2011-01-07  Bruno Haible  <bruno@clisp.org>
6077
6078         strtod: Restore errno when successfully parsing Infinity or NaN.
6079         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
6080         restore the original errno.
6081
6082 2011-01-07  Bruno Haible  <bruno@clisp.org>
6083
6084         remove test: Avoid failure on HP-UX 11.
6085         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
6086
6087 2011-01-07  Bruno Haible  <bruno@clisp.org>
6088
6089         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
6090         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
6091         error code.
6092
6093 2011-01-07  Pádraig Brady <P@draigBrady.com>
6094
6095         ignore-value: fixup comments, and add Eric Blake
6096         as an author since he rewrote the macros.
6097         * lib/ignore-value.h (ignore_value):  State that
6098         we now support aggregates.  Also specify exactly
6099         when the GCC warn_unused_result feature was added.
6100
6101 2011-01-06  Eric Blake  <eblake@redhat.com>
6102
6103         ignore-value: support aggregate types
6104         * lib/ignore-value.h (ignore_value): Provide separate gcc
6105         definition.
6106         * modules/ignore-value-tests: New test module.
6107         * tests/test-ignore-value.c: New test.
6108
6109         maint.mk: improve sc_prohibit_strcmp regex
6110         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
6111         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
6112         definition of STRNEQ.
6113
6114         signal: work around Haiku issue with SIGBUS
6115         * lib/siglist.h: Add comment.
6116         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
6117         strsignal's favoring of SIGSEGV.
6118         * tests/test-signal.c (main): Avoid test failure.
6119         * doc/posix-headers/signal.texi (signal.h): Document the issue.
6120         Reported by Scott McCreary.
6121
6122         maint.mk: add pre-release check to ensure submodule commits are public
6123         * top/maint.mk (public-submodule-commit): New rule.
6124         (submodule-checks): New variable.
6125         (alpha beta stable): Depend on the variable.
6126
6127 2011-01-05  Pádraig Brady <P@draigBrady.com>
6128         and Jim Meyering  <meyering@redhat.com>
6129
6130         ignore-value: make ignore_value more generic; deprecate ignore_ptr
6131         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
6132         (ATTRIBUTE_DEPRECATED): Define.
6133         (_ignore_case): New function.
6134         (ignore_value): New macro, to replace the old function.
6135         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
6136         * modules/ignore-value (Depends-on): Add stdint.
6137
6138 2011-01-04  Eric Blake  <eblake@redhat.com>
6139
6140         doc: regenerate INSTALL
6141         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
6142         @firstparagraphindent support, now that autoconf dropped it.
6143         (INSTALL_PRELUDE): Reinstate old macro.
6144         * doc/install.texi: Resync from autoconf.
6145         * doc/INSTALL: Reflect recent autoconf update.
6146         * doc/INSTALL.ISO: Likewise.
6147         * doc/INSTALL.UTF-8: Likewise.
6148         Reported by Karl Berry.
6149
6150 2011-01-04  Bruce Korb  <address@hidden>
6151
6152         git-version-gen: avoid a sub-shell
6153         * build-aux/git-version-gen: Redirect stderr in `...` via
6154         "exec 2>...", rather than via an added sub-shell.
6155
6156 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
6157
6158         git-version-gen: use (...) rather than sh -c '...'
6159         * build-aux/git-version-gen: Rather than hard-coding a shell's name
6160         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
6161
6162 2011-01-03  Jim Meyering  <meyering@redhat.com>
6163
6164         git-version-gen: convert leading TABs to spaces
6165         * build-aux/git-version-gen: Expand leading TABs.
6166
6167         git-version-gen: handle failed "git rev-list"
6168         * build-aux/git-version-gen: Rather than leaking a "fatal" error
6169         from git and proceeding as if it had succeeded but printed no SHA1
6170         checksums, suppress the diagnostic and handle the failure.
6171         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
6172
6173         git-version-gen: include command name in one more diagnostic
6174         * build-aux/git-version-gen: When the required .tarball-version file
6175         was missing or unreadable, you might see the diagnostic from "cat",
6176         but no trace of the name of the invoking script.  Now, you still see
6177         the diagnostic from cat, but also get one from "git-version-gen: ".
6178         Inspired by a patch from Bruce Korb.
6179
6180         update-copyright: adjust test to match changed code
6181         * tests/test-update-copyright.sh: Change test's expected output
6182         to match new actual output.
6183
6184 2011-01-02  Bruno Haible  <bruno@clisp.org>
6185
6186         getlogin_r: Avoid test failure on HP-UX 11.
6187         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
6188         ERANGE when the second argument is zero.
6189         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
6190         portability problem.
6191
6192 2011-01-02  Bruce Korb  <bkorb@gnu.org>
6193
6194         * build-aux/update-copyright: doc Simon's changes
6195
6196 2011-01-02  Simon Josefsson  <simon@josefsson.org>
6197
6198         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
6199         environment variable.
6200
6201 2011-01-02  Bruno Haible  <bruno@clisp.org>
6202
6203         unigbrk: Avoid gcc warnings.
6204         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
6205         unused variable.
6206         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
6207         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
6208         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
6209         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
6210         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
6211         Change type of first argument to 'const char *'.
6212         (main): Remove unused variable.
6213         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
6214         type of first argument to 'const char *'.
6215         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
6216         Likewise.
6217         (main): Change type of variable 's'.
6218         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
6219         to 'int'.
6220
6221 2011-01-02  Bruno Haible  <bruno@clisp.org>
6222
6223         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
6224         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
6225         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
6226         bug.
6227         * lib/pwrite.c: Undo 2010-12-31 patch.
6228         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
6229
6230 2011-01-02  Bruno Haible  <bruno@clisp.org>
6231
6232         pread: Fix test whether it works.
6233         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
6234
6235 2011-01-02  Bruno Haible  <bruno@clisp.org>
6236
6237         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
6238         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
6239         ends in "6". Don't require a specific month name. Try also the locale
6240         names found on HP-UX 11 and Solaris 7.
6241
6242 2011-01-02  Bruno Haible  <bruno@clisp.org>
6243
6244         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
6245         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
6246         C linkage.
6247         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
6248
6249 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6250
6251         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
6252         for consistency, since the "cluster" term is not used elsewhere.
6253         * lib/unigbrk.in.h: Update name.
6254         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
6255         * lib/unigbrk/u16-grapheme-next.c: Update name.
6256         * lib/unigbrk/u16-grapheme-prev.c: Update name.
6257         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
6258         * lib/unigbrk/u32-grapheme-next.c: Update name.
6259         * lib/unigbrk/u32-grapheme-prev.c: Update name.
6260         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
6261         * lib/unigbrk/u8-grapheme-next.c: Update name.
6262         * lib/unigbrk/u8-grapheme-prev.c: Update name.
6263         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
6264         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
6265         Suggested by Bruno Haible.
6266
6267 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6268
6269         Remove module 'u8-grapheme-len' as too redundant with
6270         'u8-grapheme-next'.
6271         * modules/unigbrk/u8-grapheme-len: Delete file.
6272         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
6273         * lib/unigbrk.in.h: Remove prototype for deleted function.
6274         * lib/unigbrk/u8-grapheme-len.c: Delete file.
6275         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
6276
6277         Remove module 'u16-grapheme-len' as too redundant with
6278         'u16-grapheme-next'.
6279         * modules/unigbrk/u16-grapheme-len: Delete file.
6280         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
6281         * lib/unigbrk.in.h: Remove prototype for deleted function.
6282         * lib/unigbrk/u16-grapheme-len.c: Delete file.
6283         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
6284
6285         Remove module 'u32-grapheme-len' as too redundant with
6286         'u32-grapheme-next'.
6287         * modules/unigbrk/u32-grapheme-len: Delete file.
6288         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
6289         * lib/unigbrk.in.h: Remove prototype for deleted function.
6290         * lib/unigbrk/u32-grapheme-len.c: Delete file.
6291         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
6292
6293         Suggested by Bruno Haible.
6294
6295 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
6296
6297         * unigbrk.in.h: Fix typo: "ben" => "been".
6298         Reported by Bruno Haible.
6299
6300 2011-01-01  Jim Meyering  <meyering@redhat.com>
6301
6302         maint: update almost all copyright ranges to include 2011
6303         Run the new "make update-copyright" rule.
6304
6305 2011-01-01  Jim Meyering  <meyering@redhat.com>
6306
6307         maint: update-copyright: exempt doc/INSTALL*
6308         * Makefile (update-copyright): Also exclude doc/INSTALL*,
6309         since they are generated.  Suggested by Bruno Haible.
6310
6311 2011-01-01  Jim Meyering  <meyering@redhat.com>
6312
6313         maint: refine the update-copyright rule
6314         * Makefile (update-copyright): Also exclude any file that includes
6315         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
6316         code that merely generates the comment.
6317
6318 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6319
6320         New module 'u8-grapheme-len'.
6321         * modules/unigbrk/u8-grapheme-len: New file.
6322         * modules/unigbrk/u8-grapheme-len-tests: New file.
6323         * lib/unigbrk.in.h: Add prototype for new function.
6324         * lib/unigbrk/u8-grapheme-len.c: New file.
6325         * tests/unigbrk/test-u8-grapheme-len.c: New file.
6326
6327         New module 'u16-grapheme-len'.
6328         * modules/unigbrk/u16-grapheme-len: New file.
6329         * modules/unigbrk/u16-grapheme-len-tests: New file.
6330         * lib/unigbrk.in.h: Add prototype for new function.
6331         * lib/unigbrk/u16-grapheme-len.c: New file.
6332         * tests/unigbrk/test-u16-grapheme-len.c: New file.
6333
6334         New module 'u32-grapheme-len'.
6335         * modules/unigbrk/u32-grapheme-len: New file.
6336         * modules/unigbrk/u32-grapheme-len-tests: New file.
6337         * lib/unigbrk.in.h: Add prototype for new function.
6338         * lib/unigbrk/u32-grapheme-len.c: New file.
6339         * tests/unigbrk/test-u32-grapheme-len.c: New file.
6340
6341         New module 'u8-grapheme-next'.
6342         * modules/unigbrk/u8-grapheme-next: New file.
6343         * modules/unigbrk/u8-grapheme-next-tests: New file.
6344         * lib/unigbrk.in.h: Add prototype for new function.
6345         * lib/unigbrk/u8-grapheme-next.c: New file.
6346         * tests/unigbrk/test-u8-grapheme-next.c: New file.
6347
6348         New module 'u16-grapheme-next'.
6349         * modules/unigbrk/u16-grapheme-next: New file.
6350         * modules/unigbrk/u16-grapheme-next-tests: New file.
6351         * lib/unigbrk.in.h: Add prototype for new function.
6352         * lib/unigbrk/u16-grapheme-next.c: New file.
6353         * tests/unigbrk/test-u16-grapheme-next.c: New file.
6354
6355         New module 'u32-grapheme-next'.
6356         * modules/unigbrk/u32-grapheme-next: New file.
6357         * modules/unigbrk/u32-grapheme-next-tests: New file.
6358         * lib/unigbrk.in.h: Add prototype for new function.
6359         * lib/unigbrk/u32-grapheme-next.c: New file.
6360         * tests/unigbrk/test-u32-grapheme-next.c: New file.
6361
6362         New module 'u8-grapheme-prev'.
6363         * modules/unigbrk/u8-grapheme-prev: New file.
6364         * modules/unigbrk/u8-grapheme-prev-tests: New file.
6365         * lib/unigbrk.in.h: Add prototype for new function.
6366         * lib/unigbrk/u8-grapheme-prev.c: New file.
6367         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
6368
6369         New module 'u16-grapheme-prev'.
6370         * modules/unigbrk/u16-grapheme-prev: New file.
6371         * modules/unigbrk/u16-grapheme-prev-tests: New file.
6372         * lib/unigbrk.in.h: Add prototype for new function.
6373         * lib/unigbrk/u16-grapheme-prev.c: New file.
6374         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
6375
6376         New module 'u32-grapheme-prev'.
6377         * modules/unigbrk/u32-grapheme-prev: New file.
6378         * modules/unigbrk/u32-grapheme-prev-tests: New file.
6379         * lib/unigbrk.in.h: Add prototype for new function.
6380         * lib/unigbrk/u32-grapheme-prev.c: New file.
6381         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
6382
6383         New module 'u8-grapheme-breaks'.
6384         * modules/unigbrk/u8-grapheme-breaks: New file.
6385         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
6386         * lib/unigbrk.in.h: Add prototype for new function.
6387         * lib/unigbrk/u8-grapheme-breaks.c: New file.
6388         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
6389
6390         New module 'u16-grapheme-breaks'.
6391         * modules/unigbrk/u16-grapheme-breaks: New file.
6392         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
6393         * lib/unigbrk.in.h: Add prototype for new function.
6394         * lib/unigbrk/u16-grapheme-breaks.c: New file.
6395         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
6396
6397         New module 'u32-grapheme-breaks'.
6398         * modules/unigbrk/u32-grapheme-breaks: New file.
6399         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
6400         * lib/unigbrk.in.h: Add prototype for new function.
6401         * lib/unigbrk/u32-grapheme-breaks.c: New file.
6402         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
6403
6404         New module 'ulc-grapheme-breaks'.
6405         * modules/unigbrk/ulc-grapheme-breaks: New file.
6406         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
6407         * m4/locale-ar.m4: New file.
6408         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
6409         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
6410         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
6411
6412 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
6413
6414         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
6415         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
6416         modified how this file was generated before I initially submitted
6417         the module, but failed to regenerate it.  This meant that several
6418         of the level2 entries were wrong.
6419         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
6420         Remove the division-by-2 that is folded into the table now that
6421         gbrkprop.h has been regenerated properly.  Now -1 entries are
6422         handled correctly.
6423
6424         New module 'unigbrk/uc-gbrk-prop-tests'.
6425         * modules/unigbrk/uc-gbrk-prop-tests: New file.
6426         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
6427         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
6428         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
6429
6430 2011-01-01  Bruno Haible  <bruno@clisp.org>
6431
6432         Avoid use of hexadecimal escapes.
6433         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
6434         instead of hexadecimal escapes.
6435
6436 2011-01-01  Jim Meyering  <meyering@redhat.com>
6437
6438         maint: new rule to update copyright year ranges
6439         * Makefile (update-copyright): New rule.
6440
6441         maint: indent with TABs in Makefile
6442         * Makefile: Expand leading sequences of spaces to TABs
6443
6444         version-etc: update the copyright year it reports
6445         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
6446
6447 2010-12-31  Bruno Haible  <bruno@clisp.org>
6448
6449         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
6450         * lib/isfinite.c (zerof, zerod, zerol): New variables.
6451         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
6452         zero.
6453
6454 2010-12-31  Bruno Haible  <bruno@clisp.org>
6455
6456         pwrite: Work around HP-UX 11.11 bug.
6457         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
6458         works and set REPLACE_PWRITE if not.
6459         * lib/pwrite.c (pwrite): Add an implementation that uses the system
6460         function.
6461         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
6462
6463 2010-12-31  Bruno Haible  <bruno@clisp.org>
6464
6465         pread: Work around HP-UX 11 bugs.
6466         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
6467         and set REPLACE_PREAD if not.
6468         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
6469
6470 2010-12-31  Eric Blake  <eblake@redhat.com>
6471
6472         nl_langinfo: fix YESEXPR on Irix 6.5
6473         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
6474         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
6475         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
6476         it.
6477
6478 2010-12-31  Bruno Haible  <bruno@clisp.org>
6479
6480         iconv: Document HP-UX 11 bug.
6481         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
6482
6483 2010-12-31  Bruno Haible  <bruno@clisp.org>
6484
6485         ldexpl: Fix link error on HP-UX 11.
6486         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
6487         LDEXPL_LIBM, using $ISNANL_LIBM.
6488
6489 2010-12-31  Eric Blake  <eblake@redhat.com>
6490
6491         ftello: avoid compilation failure with SunStudio c89
6492         * lib/ftello.c (ftello): Use lseek, not llseek.
6493
6494         tests: avoid failing coreutils tests on cygwin
6495         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
6496         (create_exe_shims_): Return 0 when skipping.
6497
6498 2010-12-31  Bruno Haible  <bruno@clisp.org>
6499
6500         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
6501         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
6502
6503 2010-12-31  Bruno Haible  <bruno@clisp.org>
6504
6505         waitpid: Fix link error in C++ mode.
6506         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
6507
6508 2010-12-31  Bruno Haible  <bruno@clisp.org>
6509
6510         isnan: Use GCC built-ins when possible.
6511         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
6512         __builtin_isnan.
6513         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
6514         (isnan): Define using GCC built-ins for GCC >= 4.0.
6515
6516 2010-12-31  Bruno Haible  <bruno@clisp.org>
6517
6518         isnand: Fix mistake.
6519         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
6520         __builtin_isnand.
6521
6522 2010-12-31  Bruno Haible  <bruno@clisp.org>
6523
6524         open: Avoid C++ error on HP-UX 11.
6525         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
6526
6527 2010-12-31  Bruno Haible  <bruno@clisp.org>
6528
6529         time_r: Add missing declarations on HP-UX 11.
6530         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
6531         instead of HAVE_LOCALTIME_R.
6532         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
6533         HAVE_LOCALTIME_R always.
6534         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
6535         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
6536         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
6537         HAVE_LOCALTIME_R.
6538         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
6539         * doc/posix-functions/localtime_r.texi: Likewise.
6540
6541 2010-12-29  Eric Blake  <eblake@redhat.com>
6542
6543         mountlist: tweak previous commit
6544         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
6545         Reported by Paul Eggert.
6546
6547         mountlist: fix local drive detection on cygwin
6548         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
6549         that works for cygwin.
6550
6551 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
6552
6553         ftoastr, snprintf: ftoastr + snprintf module
6554         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
6555         since the snprintf module now should be good enough here.
6556         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
6557         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
6558         and gl_MODULE_INDICATOR([snprintf]), but the former enables
6559         GNULIB_SNPRINTF only for the test directory, and the latter
6560         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
6561         seems to suffice by itself.
6562
6563 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
6564
6565         alloca: one step towards thread-safety
6566         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
6567         need for a static variable.  All callers changed.  This does not
6568         make the alloca replacement thread-safe, but it's one step.
6569
6570         tests: minor indenting change
6571         * tests/init.sh: Sync from coreutils housekeeping patch
6572         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
6573         to keep lines within 80 columns.
6574
6575 2010-12-28  Jim Meyering  <meyering@redhat.com>
6576
6577         regex: don't infloop on persistent failing calloc
6578         * lib/regexec.c (build_trtable): Return failure indication upon
6579         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
6580         In glibc, this was fixed for version 2.13:
6581         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
6582
6583 2010-12-28  Bruno Haible  <bruno@clisp.org>
6584             Paul Eggert <eggert@cs.ucla.edu>
6585
6586         linkat: Make implementation robust against system behaviour variations.
6587         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
6588         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
6589         way, and to -2 if it needs a generic runtime test.
6590         * lib/linkat.c (solaris_optimized_link_immediate,
6591         solaris_optimized_link_follow): New functions.
6592         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
6593         (check_same_link): Use it.
6594
6595 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
6596
6597         New module 'unigbrk/base'.
6598         * modules/unigbrk/base: New file.
6599         * lib/unigbrk.in.h: New file.
6600
6601         New module 'unigbrk/uc-gbrk-prop'.
6602         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
6603         * modules/unigbrk/uc-gbrk-prop: New file.
6604         * lib/unigbrk/gbrkprop.h: New file.
6605         * lib/unigbrk/uc-gbrk-prop.c: New file.
6606
6607         New module 'unigbrk/uc-is-grapheme-break'.
6608         * modules/unigbrk/uc-is-grapheme-break: New file.
6609         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
6610         * lib/unigbrk/uc-is-grapheme-break.c: New file.
6611         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
6612         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
6613         * tests/unigbrk/GraphemeBreakTest.txt: New file.
6614
6615         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
6616
6617 2010-12-27  Bruno Haible  <bruno@clisp.org>
6618
6619         linkat test: Avoid failure on Solaris 11 2010-11.
6620         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
6621
6622 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6623
6624         utimens: work around glibc rounding bug on more platforms
6625         * lib/utimens.c (fdutimens): Work around rounding bug even if
6626         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
6627         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
6628
6629 2010-12-27  Bruno Haible  <bruno@clisp.org>
6630
6631         select tests: Improve comments.
6632         * tests/test-select.c (do_select): Add comments.
6633
6634 2010-12-27  Bruno Haible  <bruno@clisp.org>
6635
6636         select tests: Safer way of handling timeout.
6637         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
6638         at every invocation.
6639
6640 2010-12-27  Bruno Haible  <bruno@clisp.org>
6641
6642         select tests: Use 'bool' where appropriate.
6643         * tests/test-select.c (connect_to_socket): Change argument type to
6644         'bool'.
6645
6646 2010-12-27  Bruno Haible  <bruno@clisp.org>
6647
6648         select tests: Use existing modules.
6649         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
6650         (configure.ac): Don't test for unistd.h.
6651         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
6652         declared in <unistd.h>.
6653
6654 2010-12-27  Bruno Haible  <bruno@clisp.org>
6655
6656         mbrtowc: Work around a Solaris 7 bug.
6657         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
6658         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
6659         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
6660         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
6661         MBRTOWC_NULL_ARG1_BUG.
6662         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
6663         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
6664         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
6665         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
6666
6667 2010-12-27  Jim Meyering  <meyering@redhat.com>
6668
6669         read-file.c: tweak syntax
6670         * lib/read-file.c (fread_file): Remove space after "*" in function
6671         definitions.
6672
6673 2010-12-27  Bruno Haible  <bruno@clisp.org>
6674
6675         times test: Avoid gcc warnings on OSF/1.
6676         * tests/test-times.c (main): Cast printf arguments from clock_t to
6677         'long int'.
6678
6679 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6680
6681         utimens: work around glibc rounding bug on older Linux kernels
6682         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
6683         on Linux with a glibc whose utimes might not work, then work
6684         around a longstanding glibc bug involving rounding rather than
6685         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
6686         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6687
6688 2010-12-26  Bruno Haible  <bruno@clisp.org>
6689
6690         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
6691         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
6692         _GL_CXXALIAS_SYS.
6693         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6694
6695 2010-12-26  Bruno Haible  <bruno@clisp.org>
6696
6697         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
6698         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
6699         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
6700         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
6701         looking for the declaration.
6702         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6703         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
6704         problem.
6705         * doc/posix-functions/inet_pton.texi: Likewise.
6706
6707 2010-12-26  Bruno Haible  <bruno@clisp.org>
6708
6709         arpa_inet: Use the common idioms with C++ support.
6710         * lib/arpa_inet.in.h: Include c++defs.h.
6711         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
6712         support.
6713         * modules/arpa_inet (Depends-on): Add c++defs.
6714         (Makefile.am): Substitute the contents of c++defs.h.
6715         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
6716         * modules/arpa_inet-c++-tests: New file.
6717         * tests/test-arpa_inet-c++.cc: New file.
6718
6719 2010-12-25  Bruno Haible  <bruno@clisp.org>
6720
6721         Fix more C++ link errors on Solaris 8.
6722         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
6723         $(LIB_EACCESS).
6724         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
6725         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
6726         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
6727         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
6728         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
6729
6730 2010-12-25  Bruno Haible  <bruno@clisp.org>
6731
6732         printf-posix: Fix link error when a non-GCC compiler is used.
6733         * lib/stdio.in.h (printf): When not using GCC, override printf
6734         correctly.
6735         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6736
6737 2010-12-25  Bruno Haible  <bruno@clisp.org>
6738
6739         strerror_r-posix: Update doc.
6740         * doc/posix-functions/strerror_r.texi: Update doc about the return
6741         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
6742
6743 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6744
6745         utimens: simplify the logic of the previous change
6746         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
6747         This should not affect whether the test succeeds or fails.
6748
6749         utimens: configure better on hosts with NFS clock skew
6750         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
6751         uses the clock of the local host.  It might use the clock of the
6752         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
6753         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
6754
6755 2010-12-25  Bruno Haible  <bruno@clisp.org>
6756
6757         ptsname test: Avoid failure on Solaris.
6758         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
6759         open a pseudo-terminal; don't use BSD-style ptys.
6760         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
6761
6762 2010-12-25  Bruno Haible  <bruno@clisp.org>
6763
6764         ptsname: Avoid ERANGE failure on some systems.
6765         * lib/ptsname.c (buffer): Increase size.
6766
6767 2010-12-25  Bruno Haible  <bruno@clisp.org>
6768
6769         rename, renameat: Avoid test failures at NFS mounted locations.
6770         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
6771         so that subsequent mkdir calls succeed.
6772
6773 2010-12-25  Bruno Haible  <bruno@clisp.org>
6774
6775         iswblank: Fix C++ link error on Solaris 8.
6776         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
6777         _GL_FUNCDECL_SYS.
6778
6779 2010-12-25  Bruno Haible  <bruno@clisp.org>
6780
6781         unistd: Fix C++ link error on Solaris 8.
6782         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
6783
6784 2010-12-25  Bruno Haible  <bruno@clisp.org>
6785
6786         readlink doc: Mention an old glibc bug.
6787         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
6788
6789 2010-12-25  Bruno Haible  <bruno@clisp.org>
6790
6791         fcntl-h: Fix for use of C++ on glibc systems.
6792         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
6793         also on glibc systems in C++ mode.
6794         Reported by Gary V. Vaughan <gary@gnu.org>.
6795
6796 2010-12-25  Bruno Haible  <bruno@clisp.org>
6797
6798         roundl-ieee: Make it work on OSF/1 5.1 with cc.
6799         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
6800
6801 2010-12-25  Bruno Haible  <bruno@clisp.org>
6802
6803         truncl-ieee: Make it work on OSF/1 5.1 with cc.
6804         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
6805         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
6806         test whether truncl works according to ISO C 99 with IEC 60559.
6807         * m4/truncl-ieee.m4: New file.
6808         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
6809         m4/signbit.m4.
6810         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
6811
6812 2010-12-25  Bruno Haible  <bruno@clisp.org>
6813
6814         ceill-ieee: Make it work on OSF/1 5.1 with cc.
6815         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
6816         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
6817         test whether ceill works according to ISO C 99 with IEC 60559.
6818         * m4/ceill-ieee.m4: New file.
6819         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
6820         m4/signbit.m4.
6821         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
6822
6823 2010-12-25  Bruno Haible  <bruno@clisp.org>
6824
6825         Ensure all prerequisites of <wchar.h> are included.
6826         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
6827         before <wchar.h>.
6828         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
6829         gl_MBRLEN_NUL_RETVAL): Likewise.
6830         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
6831         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
6832         AC_FUNC_MBRTOWC): Likewise.
6833         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
6834         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6835         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
6836         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
6837         Likewise.
6838         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6839         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
6840         (gl_WCHAR_H): Improve comments.
6841         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6842
6843 2010-12-25  Bruno Haible  <bruno@clisp.org>
6844
6845         strtok_r: Fix C syntax error in autoconf macro.
6846         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
6847         characters in test program.
6848
6849 2010-12-24  Bruno Haible  <bruno@clisp.org>
6850
6851         ceil, trunc, round: Fix gcc warnings.
6852         * lib/ceil.c (MIN): Undefine before redefining.
6853         * lib/trunc.c (MIN): Likewise.
6854         * lib/round.c (MIN): Likewise.
6855         Include <math.h> first.
6856
6857 2010-12-24  Bruno Haible  <bruno@clisp.org>
6858
6859         select tests: Avoid failures on OSF/1 5.1.
6860         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
6861         failure of closing the last socket; it may fail with ECONNRESET.
6862
6863 2010-12-24  Eric Blake  <eblake@redhat.com>
6864
6865         stdint: avoid HP-UX 10.20 preprocessor bug
6866         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
6867         than #if.
6868         * tests/test-floor2.c (main): Likewise.
6869         Reported by Peter O'Gorman.
6870
6871         pipe: make obsoletion transition easier
6872         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
6873         * modules/pipe (Files): Include revived file.
6874         (Include): Drop reference, to mirror getdate's behavior.
6875
6876 2010-12-24  Bruno Haible  <bruno@clisp.org>
6877
6878         sys_socket: Hide mismatch of declarations on NonStop Kernel.
6879         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
6880         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
6881         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6882
6883 2010-12-24  Bruno Haible  <bruno@clisp.org>
6884
6885         gethostname: Ensure declaration on NonStop Kernel.
6886         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
6887         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6888
6889 2010-12-24  Bruno Haible  <bruno@clisp.org>
6890
6891         sys_select: Ensure all necessary types on NonStop Kernel.
6892         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
6893         include <sys/time.h>.
6894         * doc/posix-headers/sys_select.texi: Mention that it's missing on
6895         NonStop Kernel.
6896         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6897
6898 2010-12-24  Bruno Haible  <bruno@clisp.org>
6899
6900         sys_select: Remove unneeded include.
6901         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
6902         have <sys/select.h>.
6903
6904 2010-12-24  Bruno Haible  <bruno@clisp.org>
6905
6906         gethostname: Provide a fallback for HOST_NAME_MAX.
6907         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
6908         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
6909         instead.
6910         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6911
6912 2010-12-24  Bruno Haible  <bruno@clisp.org>
6913
6914         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
6915         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
6916         (SA_RESTART): Likewise.
6917         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6918
6919 2010-12-24  Bruno Haible  <bruno@clisp.org>
6920
6921         signal: Define NSIG.
6922         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
6923         * tests/test-signal.c (nsig): New variable.
6924         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
6925
6926 2010-12-24  Bruno Haible  <bruno@clisp.org>
6927
6928         rename, renameat: Avoid test failures on OSF/1 5.1.
6929         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
6930         alternative error codes.
6931         * tests/test-renameat.c (main): Likewise.
6932
6933 2010-12-24  Bruno Haible  <bruno@clisp.org>
6934
6935         *printf: Detect large precisions bug on Solaris 10/SPARC.
6936         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
6937         by Paul Eggert.
6938         * tests/test-snprintf-posix.h (test_function): Add this test code here
6939         too.
6940         * tests/test-sprintf-posix.h (test_function): Likewise.
6941         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6942         * tests/test-vasprintf-posix.c (test_function): Likewise.
6943         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
6944         around by gnulib.
6945         * doc/posix-functions/printf.texi: Likewise.
6946         * doc/posix-functions/snprintf.texi: Likewise.
6947         * doc/posix-functions/sprintf.texi: Likewise.
6948         * doc/posix-functions/vfprintf.texi: Likewise.
6949         * doc/posix-functions/vprintf.texi: Likewise.
6950         * doc/posix-functions/vsnprintf.texi: Likewise.
6951         * doc/posix-functions/vsprintf.texi: Likewise.
6952         * doc/posix-functions/dprintf.texi: Undo last commit.
6953         * doc/posix-functions/vdprintf.texi: Likewise.
6954
6955 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
6956
6957         tests: port test-fdutimensat.c to Solaris 8
6958         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
6959         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
6960         On Solaris 8, it fails with errno == ENOSYS, because there is no
6961         futimens (so it can't use the fd), and there is no lutimens (so it
6962         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
6963
6964         vsnprintf: make more consistent with snprintf; doc fixes
6965
6966         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
6967         the byte count return problem was promoted from the snprintf-posix
6968         to the snprintf module.
6969         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6970         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
6971         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
6972         * tests/test-snprintf.c (main): Check the byte count returned.
6973         * tests/test-vsnprintf.c (main): Likewise.
6974
6975 2010-12-23  Eric Blake  <eblake@redhat.com>
6976
6977         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
6978         * modules/sigpipe (License): Relax license.
6979
6980 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6981
6982         doc: document Solaris printf bug with large float precisions
6983         * doc/posix-functions/dprintf.texi (dprintf):
6984         * doc/posix-functions/fprintf.texi (fprintf):
6985         * doc/posix-functions/printf.texi (printf):
6986         * doc/posix-functions/snprintf.texi (snprintf):
6987         * doc/posix-functions/sprintf.texi (sprintf):
6988         * doc/posix-functions/vdprintf.texi (vdprintf):
6989         * doc/posix-functions/vfprintf.texi (vfprintf):
6990         * doc/posix-functions/vprintf.texi (vprintf):
6991         * doc/posix-functions/vsnprintf.texi (vsnprintf):
6992         * doc/posix-functions/vsprintf.texi (vsprintf):
6993         Mention that these functions mishandle large floating point
6994         precisions on Solaris 10.  The same bug is also present in Solaris
6995         8, and I assume earlier.  This causes "cd gnulib-tests; make
6996         check" to fail on Solaris 8 (and I assume, later) when building
6997         the latest coreutils, in test-vasprintf-posix's call to
6998         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
6999         the wide flavors (e.g., wprintf) so this patch just updates the
7000         documentation for the narrow ones.
7001
7002         test-posixtm.c: add two tests
7003         * tests/test-posixtm.c: Add two tests, to highlight the
7004         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
7005         around this bug; this is merely to document it.
7006
7007 2010-12-22  Bruno Haible  <bruno@clisp.org>
7008
7009         getlogin_r: Work around portability problem on OSF/1.
7010         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
7011         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
7012         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
7013         test for a truncated result.
7014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
7015         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
7016         * modules/getlogin_r (Depends-on): Add memchr.
7017         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
7018
7019 2010-12-22  Bruno Haible  <bruno@clisp.org>
7020
7021         ptsname: Avoid test failure on OSF/1 5.1.
7022         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
7023         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
7024         (same_slave): New function.
7025         (main): Use it to compare ptsname's result with the expected file name.
7026
7027 2010-12-22  Bruno Haible  <bruno@clisp.org>
7028
7029         Port extended stdio modules to HP NonStop Kernel.
7030         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
7031         macros.
7032         * lib/fbufmode.c: Update comments.
7033         * lib/fflush.c: Likewise.
7034         * lib/fpurge.c: Likewise.
7035         * lib/freadable.c: Likewise.
7036         * lib/freadahead.c: Likewise.
7037         * lib/freading.c: Likewise.
7038         * lib/freadptr.c: Likewise.
7039         * lib/freadseek.c: Likewise.
7040         * lib/fseeko.c: Likewise.
7041         * lib/fseterr.c: Likewise.
7042         * lib/fwritable.c: Likewise.
7043         * lib/fwriting.c: Likewise.
7044         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
7045
7046 2010-12-22  Bruno Haible  <bruno@clisp.org>
7047
7048         ttyname_r: Work around bug on OSF/1 5.1.
7049         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
7050         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
7051         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
7052         present.
7053         * lib/ttyname_r.c (ttyname_r): Update comments.
7054
7055 2010-12-22  Bruno Haible  <bruno@clisp.org>
7056
7057         round: Implement result sign according to IEEE 754.
7058         * lib/round.c (MIN, MINUS_ZERO): New macros.
7059         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
7060         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
7061         * tests/test-round-ieee.c (main): Likewise.
7062         * tests/test-roundl-ieee.c (main): Likewise.
7063
7064         trunc: Implement result sign according to IEEE 754.
7065         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
7066         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
7067         * tests/test-trunc2.c: Include minus-zero.h.
7068         (MINUS_ZERO): New macro.
7069         (trunc_reference): Keep in sync with lib/trunc.c.
7070         * tests/test-truncf2.c: Include minus-zero.h.
7071         (MINUS_ZERO): New macro.
7072         (truncf_reference): Keep in sync with lib/trunc.c.
7073         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
7074         * tests/test-trunc-ieee.c (main): Likewise.
7075         * tests/test-truncl-ieee.c (main): Likewise.
7076
7077         ceil: Implement result sign according to IEEE 754.
7078         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
7079         (FUNC): Return -0.0 for -1 < x < 0.
7080         * tests/test-ceil2.c: Include minus-zero.h.
7081         (MINUS_ZERO): New macro.
7082         (ceil_reference): Keep in sync with lib/ceil.c.
7083         * tests/test-ceilf2.c: Include minus-zero.h.
7084         (MINUS_ZERO): New macro.
7085         (ceilf_reference): Keep in sync with lib/ceil.c.
7086         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
7087         * tests/test-ceil-ieee.c (main): Likewise.
7088         * tests/test-ceill-ieee.c (main): Likewise.
7089
7090         floor: Implement result sign according to IEEE 754.
7091         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
7092         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
7093         * tests/test-floorf2.c (floorf_reference): Likewise.
7094         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
7095         * tests/test-floor-ieee.c (main): Likewise.
7096         * tests/test-floorl-ieee.c (main): Likewise.
7097
7098 2010-12-22  Bruno Haible  <bruno@clisp.org>
7099
7100         getaddrinfo: Update doc.
7101         * doc/posix-functions/gai_strerror.texi: Return type is also different
7102         on AIX and HP-UX.
7103
7104 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
7105
7106         getaddrinfo, inet_ntop: Update doc for Solaris.
7107         * doc/posix-functions/gai_strerror.texi: Return type is also an
7108         issue on Solaris 9 and earlier.
7109         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
7110         on Solaris 10 and earlier.
7111
7112 2010-12-21  Bruno Haible  <bruno@clisp.org>
7113
7114         New module 'roundl-ieee'.
7115         * modules/roundl-ieee: New file.
7116         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
7117         test whether roundl works according to ISO C 99 with IEC 60559.
7118         * m4/roundl-ieee.m4: New file.
7119         * modules/roundl-ieee-tests: New file.
7120         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
7121         * tests/test-roundl.c (main): Remove signbit tests.
7122         * modules/roundl-tests (Depends-on): Remove signbit.
7123         * doc/posix-functions/roundl.texi: Mention the new module.
7124
7125 2010-12-21  Bruno Haible  <bruno@clisp.org>
7126
7127         New module 'truncl-ieee'.
7128         * modules/truncl-ieee: New file.
7129         * modules/truncl-ieee-tests: New file.
7130         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
7131         * tests/test-truncl.c (main): Remove signbit tests.
7132         * modules/truncl-tests (Depends-on): Remove signbit.
7133         * doc/posix-functions/truncl.texi: Mention the new module.
7134
7135 2010-12-21  Bruno Haible  <bruno@clisp.org>
7136
7137         New module 'ceill-ieee'.
7138         * modules/ceill-ieee: New file.
7139         * modules/ceill-ieee-tests: New file.
7140         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
7141         * tests/test-ceill.c (main): Remove signbit tests.
7142         * modules/ceill-tests (Depends-on): Remove signbit.
7143         * doc/posix-functions/ceill.texi: Mention the new module.
7144
7145 2010-12-21  Bruno Haible  <bruno@clisp.org>
7146
7147         New module 'floorl-ieee'.
7148         * modules/floorl-ieee: New file.
7149         * modules/floorl-ieee-tests: New file.
7150         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
7151         * tests/test-floorl.c (main): Remove signbit tests.
7152         * modules/floorl-tests (Depends-on): Remove signbit.
7153         * doc/posix-functions/floorl.texi: Mention the new module.
7154
7155 2010-12-21  Bruno Haible  <bruno@clisp.org>
7156
7157         New module 'round-ieee'.
7158         * modules/round-ieee: New file.
7159         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
7160         whether round works according to ISO C 99 with IEC 60559.
7161         * m4/round-ieee.m4: New file.
7162         * modules/round-ieee-tests: New file.
7163         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
7164         * tests/test-round1.c (main): Remove signbit tests.
7165         * modules/round-tests (Depends-on): Remove 'signbit'.
7166         * doc/posix-functions/round.texi: Mention the new module.
7167
7168 2010-12-21  Bruno Haible  <bruno@clisp.org>
7169
7170         New module 'trunc-ieee'.
7171         * modules/trunc-ieee: New file.
7172         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
7173         whether trunc works according to ISO C 99 with IEC 60559.
7174         * m4/trunc-ieee.m4: New file.
7175         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
7176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
7177         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
7178         * modules/trunc-ieee-tests: New file.
7179         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
7180         * tests/test-trunc1.c (main): Remove signbit tests.
7181         * modules/trunc-tests (Depends-on): Remove 'signbit'.
7182         * doc/posix-functions/trunc.texi: Mention the new module.
7183
7184 2010-12-21  Bruno Haible  <bruno@clisp.org>
7185
7186         New module 'ceil-ieee'.
7187         * modules/ceil-ieee: New file.
7188         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
7189         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
7190         ISO C 99 with IEC 60559.
7191         * m4/ceil-ieee.m4: New file.
7192         * modules/ceil (Files): Add lib/ceil.c.
7193         (Depends-on): Add 'float'.
7194         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7195         * lib/math.in.h (ceil): New declaration.
7196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
7197         REPLACE_CEIL.
7198         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
7199         * modules/ceil-ieee-tests: New file.
7200         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
7201         * tests/test-math-c++.cc: Check the signature of 'ceil'.
7202         * doc/posix-functions/ceil.texi: Mention the new module.
7203
7204 2010-12-21  Bruno Haible  <bruno@clisp.org>
7205
7206         New module 'floor-ieee'.
7207         * modules/floor-ieee: New file.
7208         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
7209         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
7210         ISO C 99 with IEC 60559.
7211         * m4/floor-ieee.m4: New file.
7212         * modules/floor (Files): Add lib/floor.c.
7213         (Depends-on): Add 'float'.
7214         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
7215         * lib/math.in.h (floor): New declaration.
7216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
7217         REPLACE_FLOOR.
7218         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
7219         * modules/floor-ieee-tests: New file.
7220         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
7221         * tests/test-math-c++.cc: Check the signature of 'floor'.
7222         * doc/posix-functions/floor.texi: Mention the new module.
7223
7224 2010-12-21  Bruno Haible  <bruno@clisp.org>
7225
7226         New module 'roundf-ieee'.
7227         * modules/roundf-ieee: New file.
7228         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
7229         test whether roundf works according to ISO C 99 with IEC 60559.
7230         * m4/roundf-ieee.m4: New file.
7231         * modules/roundf-ieee-tests: New file.
7232         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
7233         * tests/test-roundf1.c (main): Remove signbit tests.
7234         * modules/roundf-tests (Depends-on): Remove 'signbit'.
7235         * doc/posix-functions/roundf.texi: Mention the new module.
7236
7237 2010-12-21  Bruno Haible  <bruno@clisp.org>
7238
7239         New module 'truncf-ieee'.
7240         * modules/truncf-ieee: New file.
7241         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
7242         test whether truncf works according to ISO C 99 with IEC 60559.
7243         * m4/truncf-ieee.m4: New file.
7244         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
7245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
7246         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
7247         * modules/truncf-ieee-tests: New file.
7248         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
7249         * tests/test-truncf1.c (main): Remove signbit tests.
7250         * modules/truncf-tests (Depends-on): Remove 'signbit'.
7251         * doc/posix-functions/truncf.texi: Mention the new module.
7252
7253 2010-12-21  Bruno Haible  <bruno@clisp.org>
7254
7255         New module 'ceilf-ieee'.
7256         * modules/ceilf-ieee: New file.
7257         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
7258         test whether ceilf works according to ISO C 99 with IEC 60559.
7259         * m4/ceilf-ieee.m4: New file.
7260         * modules/ceilf-ieee-tests: New file.
7261         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
7262         * tests/test-ceilf1.c (main): Remove signbit tests.
7263         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
7264         * doc/posix-functions/ceilf.texi: Mention the new module.
7265
7266 2010-12-21  Bruno Haible  <bruno@clisp.org>
7267
7268         New module 'floorf-ieee'.
7269         * modules/floorf-ieee: New file.
7270         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
7271         test whether floorf works according to ISO C 99 with IEC 60559.
7272         * m4/floorf-ieee.m4: New file.
7273         * modules/floorf-ieee-tests: New file.
7274         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
7275         * tests/test-floorf1.c (main): Remove signbit tests.
7276         * modules/floorf-tests (Depends-on): Remove 'signbit'.
7277         * doc/posix-functions/floorf.texi: Mention the new module.
7278
7279 2010-12-21  Bruno Haible  <bruno@clisp.org>
7280
7281         Support for minus zero in autoconf macros.
7282         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
7283         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
7284         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
7285         * tests/minus-zero.h: Update comments.
7286
7287 2010-12-21  Bruno Haible  <bruno@clisp.org>
7288
7289         Tests for module 'ceil'.
7290         * modules/ceil-tests: New file.
7291         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
7292         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
7293
7294 2010-12-21  Bruno Haible  <bruno@clisp.org>
7295
7296         Tests for module 'floor'.
7297         * modules/floor-tests: New file.
7298         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
7299         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
7300
7301 2010-12-21  Bruno Haible  <bruno@clisp.org>
7302
7303         math: Fix indentation.
7304         * lib/math.in.h (floorf): Fix indentation.
7305
7306 2010-12-21  Bruno Haible  <bruno@clisp.org>
7307
7308         Fix cross-compilation guesses on Solaris.
7309         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
7310         not match "solaris2.10".
7311         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7312         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
7313         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
7314
7315 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
7316
7317         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
7318         This fixes a problem observed with the latest coreutils snapshot
7319         that caused a test to fail on Solaris 8.  src/csplit.c's call
7320         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
7321         earlier, instead of returning the number of bytes that would have
7322         been generated; this causes csplit to incorrectly report memory
7323         exhaustion.
7324         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
7325         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
7326         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
7327         comments to match.
7328         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
7329         Fix typo in matching older versions of Solaris: "solaris2.10"
7330         is matched by the shell pattern "solaris2.[0-9]*".  This matters
7331         only for guessing while cross-compiling.
7332         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
7333
7334 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
7335
7336         ftoastr: fix comment again
7337         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7338         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
7339         Also, simplify example a bit by using flags = 0.
7340
7341 2010-12-20  Bruno Haible  <bruno@clisp.org>
7342
7343         round*, trunc*: Update documentation regarding glibc.
7344         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
7345         * doc/posix-functions/round.texi: Likewise.
7346         * doc/posix-functions/roundl.texi: Likewise.
7347         * doc/posix-functions/truncf.texi: Likewise.
7348         * doc/posix-functions/trunc.texi: Likewise.
7349         * doc/posix-functions/truncl.texi: Likewise.
7350
7351 2010-12-20  Bruno Haible  <bruno@clisp.org>
7352
7353         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
7354         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
7355         * doc/posix-functions/round.texi: Likewise.
7356         * doc/posix-functions/roundl.texi: Likewise.
7357
7358 2010-12-20  Bruno Haible  <bruno@clisp.org>
7359
7360         ttyname_r: Add missing declaration on HP-UX 11.
7361         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
7362         HAVE_TTYNAME_R.
7363         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
7364         declared. Set HAVE_TTYNAME_R always.
7365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7366         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
7367         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
7368         HAVE_TTYNAME_R.
7369         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
7370
7371 2010-12-20  Bruno Haible  <bruno@clisp.org>
7372
7373         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
7374         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
7375         * doc/posix-functions/getlogin_r.texi: Likewise.
7376         * tests/test-getlogin.c: Include <errno.h>.
7377         (main): Avoid test failure on HP-UX 11.11.
7378         * tests/test-getlogin_r.c (main): Likewise.
7379
7380 2010-12-20  Bruno Haible  <bruno@clisp.org>
7381
7382         getlogin_r: Add missing declaration on HP-UX 11.
7383         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
7384         declared also when it exists as a function.
7385         * doc/posix-functions/getlogin_r.texi: Document this workaround.
7386
7387 2010-12-20  Bruno Haible  <bruno@clisp.org>
7388
7389         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
7390         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
7391         through wcrtomb.
7392
7393 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
7394
7395         ftoastr: fix comment
7396         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
7397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
7398
7399 2010-12-19  Bruno Haible  <bruno@clisp.org>
7400
7401         isnan: Ensure it is a macro.
7402         * lib/math.in.h (isnan): Define as a macro if not already a macro.
7403         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
7404         Solaris.
7405
7406 2010-12-19  Bruno Haible  <bruno@clisp.org>
7407
7408         ldexpl test: Fix link error on OSF/1 5.1.
7409         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
7410
7411 2010-12-19  Bruno Haible  <bruno@clisp.org>
7412
7413         wctype: Make it work in C++ mode on OSF/1 5.1.
7414         * lib/wctype.in.h (iswblank): Declare but not define here.
7415         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
7416         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
7417         * modules/wctype (Files): Add lib/iswblank.c.
7418
7419 2010-12-19  Bruno Haible  <bruno@clisp.org>
7420
7421         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
7422         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
7423         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
7424
7425 2010-12-19  Bruno Haible  <bruno@clisp.org>
7426
7427         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
7428         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
7429         _POSIX_PII_SOCKET.
7430         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
7431         * doc/posix-functions/recvfrom.texi: Likewise.
7432         * doc/posix-functions/send.texi: Likewise.
7433         * doc/posix-functions/sendto.texi: Likewise.
7434
7435 2010-12-19  Bruno Haible  <bruno@clisp.org>
7436
7437         tcgetsid: Add missing declaration on OSF/1 5.1.
7438         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
7439         HAVE_TCGETSID.
7440         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
7441         Don't set HAVE_TCGETSID.
7442         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
7443         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
7444         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
7445         HAVE_TCGETSID.
7446         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
7447
7448 2010-12-19  Bruno Haible  <bruno@clisp.org>
7449
7450         stdio: Fix problem with popen() declaration on OSF/1 5.1.
7451         * lib/stdio.in.h: During the include_next statement, let recursive
7452         includes of this file include only the system header file.
7453
7454 2010-12-19  Bruno Haible  <bruno@clisp.org>
7455
7456         iconv_open: Fix regression from 2010-12-04.
7457         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
7458         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
7459
7460 2010-12-19  Bruno Haible  <bruno@clisp.org>
7461
7462         stdbool test: Avoid a gcc warning.
7463         * tests/test-stdbool.c (main): Fail if e1 is false.
7464         Reported by Jim Meyering.
7465
7466 2010-12-19  Jim Meyering  <meyering@redhat.com>
7467
7468         setenv: restore to working order
7469         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
7470         mistakenly removed.
7471         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
7472         HAVE_SETENV.
7473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
7474         HAVE_SETENV.
7475
7476 2010-12-19  Bruno Haible  <bruno@clisp.org>
7477
7478         Document some different function declarations on OSF/1 5.1.
7479         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
7480         * doc/posix-functions/inet_ntop.texi: Likewise.
7481         * doc/posix-functions/gethostname.texi: Likewise.
7482         * lib/unistd.in.h (gethostname): Update comment.
7483
7484 2010-12-19  Bruno Haible  <bruno@clisp.org>
7485
7486         doc: Mention vasprintf-posix module.
7487         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
7488         the 'vasprintf-posix' module.
7489         * doc/glibc-functions/vasprintf.texi: Likewise.
7490
7491 2010-12-19  Bruno Haible  <bruno@clisp.org>
7492
7493         unsetenv: Add missing declaration on OSF/1 5.1.
7494         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
7495         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
7496         Don't set HAVE_UNSETENV. In the test program, set _BSD.
7497         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
7498         not HAVE_UNSETENV.
7499         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
7500         HAVE_UNSETENV.
7501         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
7502
7503 2010-12-19  Bruno Haible  <bruno@clisp.org>
7504
7505         setenv: Add missing declaration on OSF/1 5.1.
7506         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
7507         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
7508         declared. Don't set HAVE_SETENV.
7509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
7510         not HAVE_SETENV.
7511         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
7512         HAVE_SETENV.
7513         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
7514
7515 2010-12-19  Bruno Haible  <bruno@clisp.org>
7516
7517         nl_langinfo tests: Avoid gcc warning.
7518         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
7519
7520 2010-12-19  Bruno Haible  <bruno@clisp.org>
7521
7522         mknod: Avoid error in C++ mode on OSF/1 with GCC.
7523         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
7524         _GL_CXXALIAS_SYS.
7525
7526 2010-12-19  Bruno Haible  <bruno@clisp.org>
7527
7528         stdbool: Relax test.
7529         * tests/test-stdbool.c (e): Don't require that casts from a variable's
7530         address to 'bool' work in static initializer, for compilers other than
7531         GCC.
7532
7533 2010-12-19  Bruno Haible  <bruno@clisp.org>
7534
7535         ftello: Add missing declaration on OSF/1 5.1.
7536         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
7537         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
7538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
7539         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
7540         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
7541
7542 2010-12-19  Bruno Haible  <bruno@clisp.org>
7543
7544         fseeko: Add missing declaration on OSF/1 5.1.
7545         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
7546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
7547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
7548         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
7549         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
7550
7551 2010-12-19  Bruno Haible  <bruno@clisp.org>
7552
7553         fchdir: Add missing declaration on OSF/1 5.1.
7554         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
7555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
7556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
7557         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
7558         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
7559
7560 2010-12-19  Bruno Haible  <bruno@clisp.org>
7561
7562         relocatable-prog-wrapper: Separate from relocatable-prog.
7563         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
7564         uninstall-relocwrapper rule here.
7565         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
7566         Reported by Ian Beckwith <ianb@erislabs.net>.
7567
7568 2010-12-19  Bruno Haible  <bruno@clisp.org>
7569
7570         unistr/u8-mbsnlen: Add missing dependency.
7571         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
7572         Reported by Ian Beckwith <ianb@erislabs.net>.
7573
7574 2010-12-19  Bruno Haible  <bruno@clisp.org>
7575
7576         iconv: Make it possible again to use this module without 'iconv-h'.
7577         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
7578         if it is not defined.
7579         Reported by Ian Beckwith <ianb@erislabs.net>.
7580
7581 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7582
7583         acl: port to Solaris 8 when copying from tmpfs to ufs
7584         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
7585         error number.  Problem observed on Solaris 8 with latest
7586         coreutils, with "mv A B", where A is on a tmpfs file system and B
7587         is on a ufs file system.  This caused coreutils' mv/part-symlink
7588         test to fail.
7589
7590         tests: set fail=0 at start
7591         * tests/init.sh (setup_): Move fail=0 initialization here ...
7592         (mktempd_): ... from here, so that tests can rely on fail being
7593         set to 0 initially.  This fixes a problem in coreutils; see:
7594         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
7595
7596 2010-12-18  Bruno Haible  <bruno@clisp.org>
7597
7598         memmem-simple: Stylistic changes.
7599         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
7600         Fix preprocessor directive indentation.
7601
7602 2010-12-15  Pádraig Brady <P@draigBrady.com>
7603
7604         memmem, memmem-simple: reorganize and expand empty needle check
7605         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
7606         functional checks to memmem-simple so that one has a fully functional
7607         memmem by using just this module.
7608         Restrict the performance only check to the memmem module.
7609         Also expand the empty needle check to ensure the correct
7610         pointer is returned, not just a non NULL pointer.
7611         * doc/glibc-functions/memmem.texi: Rearrange the portability
7612         documentation to correlate with the rearranged checks.
7613         Clarify exactly how the memmem and memmem-simple modules
7614         relate to each other.
7615
7616 2010-12-15  Pádraig Brady <P@draigBrady.com>
7617             Bruno Haible  <bruno@clisp.org>
7618
7619         Improve cross-compilation guesses for uClibc.
7620         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
7621         that uClibc does not have the glibc bug.
7622         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7623         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
7624
7625 2010-12-14  Eric Blake  <eblake@redhat.com>
7626
7627         configmake: provide fallbacks for oldest supported autotools
7628         * m4/configmake.m4: New file.
7629         * modules/configmake (Files): Ship it.
7630         (configure.ac): Use it to guarantee fallbacks.
7631
7632 2010-12-13  Pádraig Brady <P@draigBrady.com>
7633
7634         read-file: Improve handling of large files
7635         * lib/read-file.c (fread_file): Minimize realloc()s
7636         for regular files, and better manage sizes around SIZE_MAX.
7637
7638 2010-12-13  Eric Blake  <eblake@redhat.com>
7639
7640         cloexec, fcntl: relax license
7641         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
7642         consent from all contributors.
7643         * modules/fcntl (License): Likewise.
7644
7645 2010-12-10  Bruno Haible  <bruno@clisp.org>
7646
7647         Tests for module 'pipe-posix'.
7648         * modules/pipe-posix-tests: New file.
7649         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
7650
7651 2010-12-10  Bruno Haible  <bruno@clisp.org>
7652
7653         pipe-posix: Make it work in C++ mode.
7654         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
7655         (pipe): Use common idiom, not a macro definition.
7656         * lib/pipe.c: New file.
7657         * m4/pipe.m4: New file.
7658         * modules/pipe-posix (Description): Enhance.
7659         (Files): Add lib/pipe.c, m4/pipe.m4.
7660         (configure.ac): Invoke gl_FUNC_PIPE.
7661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
7662         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
7663         * tests/test-unistd-c++.cc: Check the signature of pipe.
7664
7665 2010-12-10  Bruno Haible  <bruno@clisp.org>
7666
7667         Rename module 'pipe' to 'spawn-pipe'.
7668         * modules/spawn-pipe: New file, renamed from modules/pipe.
7669         (Files, configure.ac, Makefile.am): Update.
7670         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
7671         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
7672         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
7673         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
7674         "spawn-pipe.h" instead of "pipe.h".
7675         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
7676         to gl_SPAWN_PIPE.
7677         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
7678         (Files, Makefile.am): Update.
7679         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
7680         Update.
7681         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
7682         Include "spawn-pipe.h" instead of "pipe.h".
7683         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
7684         * lib/javacomp.c: Likewise.
7685         * lib/javaversion.c: Likewise.
7686         * lib/pipe-filter-gi.c: Likewise.
7687         * lib/pipe-filter-ii.c: Likewise.
7688         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
7689         * modules/javacomp (Depends-on): Likewise.
7690         * modules/javaversion (Depends-on): Likewise.
7691         * modules/pipe-filter-gi (Depends-on): Likewise.
7692         * modules/pipe-filter-ii (Depends-on): Likewise.
7693         * MODULES.html.sh (Executing programs): Update.
7694         * NEWS: Mention the change.
7695
7696 2010-12-10  Eric Blake  <eblake@redhat.com>
7697
7698         pipe-posix: new module
7699         * modules/pipe-posix: New file.
7700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
7701         (gl_UNISTD_H): Check for declaration.
7702         * modules/unistd (Makefile.am): Substitute it.
7703         * lib/unistd.in.h (pipe): Provide it for mingw.
7704         * doc/posix-functions/pipe.texi (pipe): Update documentation.
7705         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
7706
7707 2010-12-07  Bruno Haible  <bruno@clisp.org>
7708
7709         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
7710         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
7711         u8_strcmp_gnu.
7712         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
7713
7714 2010-12-06  Bruno Haible  <bruno@clisp.org>
7715
7716         Update internal documentation.
7717         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
7718
7719 2010-12-04  Bruno Haible  <bruno@clisp.org>
7720
7721         Put more information about failed tests into the test return codes.
7722         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
7723         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
7724         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7725         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7726         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7727         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
7728         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7729         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
7730         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
7731         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7732         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
7733         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
7734         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
7735         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7736         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
7737         returns a bit mask.
7738         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
7739         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
7740         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
7741         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
7742         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7743         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
7744         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
7745         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
7746         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
7747         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
7748         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7749         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
7750         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7751         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
7752         * m4/link.m4 (gl_FUNC_LINK): Likewise.
7753         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
7754         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
7755         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
7756         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
7757         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
7758         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
7759         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7760         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
7761         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
7762         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
7763         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7764         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
7765         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7766         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7767         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
7768         gl_PRINTF_PRECISION): Likewise.
7769         * m4/regex.m4 (gl_REGEX): Likewise.
7770         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7771         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
7772         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
7773         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
7774         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
7775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7777         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
7778         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7779         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7780         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
7781         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7782         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
7783         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7784         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7785         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7786         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7787         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7788         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
7789         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
7790         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
7791         enumerated value.
7792         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
7793
7794 2010-12-04  Bruno Haible  <bruno@clisp.org>
7795
7796         Update for Solaris 11 2010-11.
7797         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
7798         Express, released in November 2010.
7799
7800 2010-12-04  Bruno Haible  <bruno@clisp.org>
7801
7802         nproc: Relax license.
7803         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
7804         and Paul Eggert.
7805         Requested by Ludovic Courtès <ludo@gnu.org>.
7806
7807 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
7808
7809         utimecmp: fine-grained src to nearby coarse-grained dest
7810
7811         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
7812         and the source is on a file system with higher-resolution time
7813         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
7814         not work, and the time stamps are close together, the algorithm to
7815         determine the exact resolution from the read-back mtime was buggy:
7816         it had a "!=" where it should have had an "==".  This bug has been
7817         in the code ever since it was introduced to gnulib.
7818         Problem reported by Dan Jacobson in
7819         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
7820
7821 2010-11-30  Bruno Haible  <bruno@clisp.org>
7822
7823         strerror_r-posix: Fix autoconf test.
7824         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
7825
7826 2010-11-28  Bruno Haible  <bruno@clisp.org>
7827             Paul Eggert  <eggert@cs.ucla.edu>
7828
7829         Tests for module 'getdomainname'.
7830         * modules/getdomainname-tests: New file.
7831         * tests/test-getdomainname.c: New file, based on
7832         tests/test-gethostname.c.
7833
7834 2010-11-28  Bruno Haible  <bruno@clisp.org>
7835             Paul Eggert  <eggert@cs.ucla.edu>
7836
7837         getdomainname: Use the system function when possible.
7838         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
7839         (getdomainname): Replace if needed. Provide the declaration if it is
7840         missing. Don't use _GL_CXXALIAS_SYS_CAST.
7841         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
7842         (getdomainname): When the system has getdomainname, call the system
7843         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
7844         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
7845         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
7846         found in libnsl. Look for the declaration also in <netdb.h>. Replace
7847         the function if its second argument is of type 'int' or if it is found
7848         in libnsl.
7849         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
7850         <sys/systeminfo.h> and sysinfo().
7851         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
7852         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7853         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
7854         HAVE_GETDOMAINNAME.
7855         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
7856         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
7857         * doc/glibc-functions/getdomainname.texi: Document the problems with
7858         the getdomainname declaration.
7859
7860 2010-11-28  Bruno Haible  <bruno@clisp.org>
7861
7862         sys_socket: Ensure ss_family field on AIX.
7863         * lib/sys_socket.in.h (ss_family): New macro definition.
7864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
7865         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
7866         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7867         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7868         * modules/sys_socket (Makefile.am): Substitute
7869         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
7870         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
7871
7872 2010-11-27  Bruno Haible  <bruno@clisp.org>
7873
7874         readline: Improve configure output.
7875         * m4/readline.m4 (gl_FUNC_READLINE): Make the
7876         "checking for readline..." result understandable.
7877
7878 2010-11-27  Bruno Haible  <bruno@clisp.org>
7879
7880         *printf-posix: Detect a bug on Solaris 10/x86.
7881         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
7882         for floating-point output.
7883         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
7884         directive.
7885         * tests/test-snprintf-posix.h (test_function): Likewise.
7886         * tests/test-sprintf-posix.h (test_function): Likewise.
7887         * tests/test-vasprintf-posix.c (test_function): Likewise.
7888         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
7889         * doc/posix-functions/printf.texi: Likewise.
7890         * doc/posix-functions/snprintf.texi: Likewise.
7891         * doc/posix-functions/sprintf.texi: Likewise.
7892         * doc/posix-functions/vfprintf.texi: Likewise.
7893         * doc/posix-functions/vprintf.texi: Likewise.
7894         * doc/posix-functions/vsnprintf.texi: Likewise.
7895         * doc/posix-functions/vsprintf.texi: Likewise.
7896         * doc/glibc-functions/obstack_printf.texi: Likewise.
7897         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
7898
7899 2010-11-27  Bruno Haible  <bruno@clisp.org>
7900
7901         Fix link error when module libunistring-optional is in use.
7902         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
7903         * modules/striconveha-tests (Makefile.am): Likewise.
7904
7905 2010-11-27  Bruno Haible  <bruno@clisp.org>
7906
7907         regex: Mention link dependencies.
7908         * modules/regex (Link): New section.
7909         * modules/rpmatch (Link): Likewise.
7910         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
7911
7912 2010-11-27  Bruno Haible  <bruno@clisp.org>
7913
7914         ftoastr: Fix compilation error on Solaris.
7915         * lib/ftoastr.c: Include <config.h>.
7916
7917 2010-11-27  Bruno Haible  <bruno@clisp.org>
7918
7919         getloadavg: Update documentation.
7920         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
7921
7922 2010-11-27  Bruno Haible  <bruno@clisp.org>
7923
7924         sys_socket: Fix test whether the functions are declared.
7925         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
7926         not <sys/select.h>.
7927
7928 2010-11-27  Bruno Haible  <bruno@clisp.org>
7929
7930         getpass: Make sure to get system declaration on some platforms.
7931         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
7932         gl_USE_SYSTEM_EXTENSIONS.
7933         * modules/getpass (Depends-on): Add extensions.
7934
7935 2010-11-26  Bruno Haible  <bruno@clisp.org>
7936
7937         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
7938         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
7939         'iconv' module is present.
7940         (ICONV_CONST): New macro.
7941         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
7942         ICONV_CONST.
7943         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
7944         set ICONV_CONST.
7945         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
7946         here.
7947         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
7948         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
7949         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
7950         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
7951         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
7952         present.
7953
7954 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
7955
7956         ftoastr: comment fix
7957         * lib/ftoastr.c: "little" -> "little or no" in comment
7958
7959 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
7960
7961         stdint: port to GCC 4.3 + OSX + Octave
7962         On this platform, stdint.h is buggy and defines int64_t to long
7963         long int.  The replacement defined it to long int, causing
7964         problems with C++ style name mangling.  Instead, trust the system
7965         definition if INT64_MAX is defined, and likewise for the unsigned
7966         variant.   Problem reported by Jarno Rajahalme in
7967         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
7968         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
7969         and don't mess with int64_t and INT64_MAX in this case.
7970         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
7971
7972 2010-11-24  Bruno Haible  <bruno@clisp.org>
7973
7974         doc: Corrections regarding MacOS X 10.4 and 10.5.
7975         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
7976         MacOS X.
7977         Reported by Simon Josefsson.
7978
7979 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
7980
7981         Uninstall ".bin" files installed by relocwrapper.
7982         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
7983         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
7984         unless it is already there.
7985
7986 2010-11-21  Bruno Haible  <bruno@clisp.org>
7987
7988         Update for NetBSD 5.0.
7989         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
7990         NetBSD; the test fails on NetBSD 5.0.
7991         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
7992         about NetBSD.
7993
7994 2010-11-21  Bruno Haible  <bruno@clisp.org>
7995
7996         Update for HP-UX 11.23 and HP-UX 11.31.
7997         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
7998         HP-UX.
7999
8000 2010-11-21  Bruno Haible  <bruno@clisp.org>
8001
8002         Update for MacOS X 10.5.
8003         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
8004         MacOS X; the test fails on MacOS X 10.5.8.
8005         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
8006         about MacOS X.
8007
8008 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
8009
8010         bootstrap: add bootstrap_sync option.
8011         See discussion at
8012         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
8013         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
8014         * build-aux/bootstrap: Accept --bootstrap-sync to update
8015         bootstrap if it is not identical to the local gnulib's
8016         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
8017         enable this by default.  Accept --no-bootstrap-sync to disable
8018         it.
8019
8020 2010-11-20  Bruno Haible  <bruno@clisp.org>
8021
8022         Ensure that <features.h> is included before __GLIBC__ is tested.
8023         * lib/printf-parse.h: Include <features.h>.
8024         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
8025         Reported by Mike Frysinger <vapier@gentoo.org>.
8026
8027         Ensure that <features.h> is included before __GLIBC__ is tested.
8028         * lib/wchar.in.h: Include <features.h>.
8029         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
8030         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
8031         Reported by Mike Frysinger <vapier@gentoo.org>.
8032
8033         Ensure that <features.h> is included before __GLIBC__ is tested.
8034         * lib/arpa_inet.in.h: Include <features.h>.
8035         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
8036         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
8037         Reported by Mike Frysinger <vapier@gentoo.org>.
8038
8039         Ensure that <features.h> is included before __GLIBC__ is tested.
8040         * build-aux/link-warning.h: Include <features.h>.
8041         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
8042         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
8043         Reported by Mike Frysinger <vapier@gentoo.org>.
8044
8045         Ensure that <features.h> is included before __GLIBC__ is tested.
8046         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
8047         Reported by Mike Frysinger <vapier@gentoo.org>.
8048
8049 2010-11-20  Bruno Haible  <bruno@clisp.org>
8050
8051         memmem: Fix autoconf test.
8052         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
8053
8054 2010-11-20  Bruno Haible  <bruno@clisp.org>
8055
8056         Port to uClibc.
8057         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
8058         * lib/fcntl.in.h: Likewise.
8059         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
8060         * lib/mbrtowc.c (mbrtowc): Likewise.
8061         * lib/relocatable.c (find_shared_library_fullname): Likewise.
8062         * lib/strerror_r.c: Likewise.
8063         * lib/unistr/u8-strnlen.c: Likewise.
8064         * lib/vasnprintf.c (decimal_point_char): Likewise.
8065         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8066         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
8067         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
8068         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8069         * tests/test-sigaction.c (handler, main): Likewise.
8070         * lib/freading.h: Treat uClibc like a non-glibc platform.
8071         * lib/freading.c: Likewise.
8072         * lib/gettext.h: Likewise.
8073         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
8074         Likewise.
8075         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
8076         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
8077         * lib/propername.c (proper_name_utf8): Likewise.
8078         * lib/spawn.in.h: Likewise.
8079         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
8080         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
8081         mem_cd_iconveh_internal): Likewise.
8082         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
8083         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
8084         strstr, strcasestr): Likewise.
8085         * lib/unicodeio.c (unicode_to_mb): Likewise.
8086         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
8087         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
8088         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
8089         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
8090         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
8091         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
8092         * lib/unistr/u8-stpncpy.c: Likewise.
8093         * lib/vasnprintf.c (VASNPRINTF): Likewise.
8094         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
8095         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8096         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8097         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8098         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
8099         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
8100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
8101         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8102         Likewise.
8103         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
8104         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
8105         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8107         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8108         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8109         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8110         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8111         * tests/test-getopt.h (OPTIND_MIN): Likewise.
8112         * tests/test-striconveha.c (main): Likewise.
8113         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8114         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
8115         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
8116         * doc/posix-functions/getline.texi: Likewise.
8117         Reported by Mike Frysinger <vapier@gentoo.org>.
8118
8119 2010-11-20  Bruno Haible  <bruno@clisp.org>
8120
8121         nproc: Fix condition.
8122         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
8123         HAVE_PTHREAD_AFFINITY_NP.
8124
8125 2010-11-20  Bruno Haible  <bruno@clisp.org>
8126
8127         Fix a comment.
8128         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
8129
8130 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
8131
8132         ftoastr: don't assume snprintf
8133         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
8134         Implement a subset of snprintf here, by using sprintf safely.
8135         * modules/ftoastr (Depends-on): Remove snprintf.
8136
8137 2010-11-19  Jim Meyering  <meyering@redhat.com>
8138
8139         test-rename.h: fix compilation failure
8140         * tests/test-rename.h (test_rename): Add omitted "}".
8141
8142 2010-11-17  Jim Meyering  <meyering@redhat.com>
8143
8144         maint.mk: add a URL discussing the no-@acronym policy
8145         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
8146
8147 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8148
8149         ftoastr: depend on snprintf, improve comments
8150         * lib/ftoastr.c: Also mention Loitsch's draft.
8151         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
8152         needed in the current implementation, but it might simplify
8153         speeding up the code later.
8154         * modules/ftoastr: Depend on snprintf; this improves portability.
8155         Suggested by Bruno Haible in the same email.
8156
8157         ftoastr: port to hosts lacking strtof and strtold
8158         Problem reported by Bruno Haible in
8159         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
8160         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
8161         environment and strtold (and presumably strtof) are not available.
8162         * modules/ftoastr (Files): Add m4/c-strtod.m4.
8163         (configure.ac): Require gl_C99_STRTOLD.
8164
8165 2010-11-18  Bruno Haible  <bruno@clisp.org>
8166
8167         c-strtold: Avoid link error on AIX 7.
8168         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
8169         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
8170         (gl_C_STRTOLD): Test whether strtold_l exists.
8171         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8172
8173 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8174
8175         intprops: new macro INT_BITS_STRLEN_BOUND
8176         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
8177         ftoastr.h.  This exposes an internal of intprops.h that was formerly
8178         not exposed.  Also, it uses a slightly tighter bound than before;
8179         though this makes no practical difference, we might as well be as
8180         tight as we easily can.
8181
8182         ftoastr: new module, for lossless conversion of floats to short strings
8183         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
8184         * modules/ftoastr: New files.
8185
8186 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
8187
8188         bootstrap: port to Solaris sed
8189         * build-aux/bootstrap (get_version): Port to Solaris sed.
8190         See Ralf Wildenhues's note in
8191         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
8192
8193 2010-11-14  Jim Meyering  <meyering@redhat.com>
8194
8195         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
8196         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
8197         and move definition closer to sole use.
8198
8199 2010-11-13  Jim Meyering  <meyering@redhat.com>
8200
8201         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
8202         Now we require at least autoconf-2.59, which means the work-around
8203         is no longer needed.
8204         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
8205         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8206         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
8207         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
8208         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8209
8210 2010-11-13  Bruno Haible  <bruno@clisp.org>
8211
8212         rename, renameat: Avoid test failures at NFS mounted locations.
8213         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
8214         functions.
8215         (test_rename): Use assert_nonexistent.
8216         * tests/test-rename.c: Include <dirent.h>.
8217         * tests/test-renameat.c: Likewise.
8218         Reported by Gary V. Vaughan <gary@gnu.org>.
8219
8220         rename, renameat: Document Linux bug with NFS
8221         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
8222         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
8223         * doc/posix-functions/renameat.texi: Likewise.
8224         Suggested by Eric Blake.
8225
8226 2010-11-13  Bruno Haible  <bruno@clisp.org>
8227
8228         rename test: Add comments.
8229         * tests/test-rename.h (test_rename): Add structure and comments.
8230
8231 2010-11-13  Eric Blake  <eblake@redhat.com>
8232
8233         maintainer-makefile: cover a few more files
8234         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
8235         scripts generated within C files, for libvirt.
8236
8237 2010-11-13  Bruno Haible  <bruno@clisp.org>
8238
8239         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
8240         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
8241         character, return the number of bytes that belong together, not always
8242         1.
8243         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
8244         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
8245         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
8246         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
8247         number of bytes of an invalid character.
8248         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
8249         (main): Invoke it.
8250         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
8251         results.
8252         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
8253         malformed byte sequences.
8254         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
8255         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
8256         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
8257         Reported by Ben Pfaff and Paolo Bonzini.
8258
8259 2010-11-13  Bruno Haible  <bruno@clisp.org>
8260
8261         openat: Work around glibc bug with fchownat() and empty file names.
8262         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
8263         (gl_FUNC_FCHOWNAT): Invoke it.
8264         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
8265         * doc/posix-functions/fchownat.texi: Document the glibc bug.
8266         Reported by Gary V. Vaughan <gary@gnu.org>.
8267
8268 2010-11-13  Bruno Haible  <bruno@clisp.org>
8269
8270         openat: Ensure autoconf macro ordering.
8271         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
8272         gl_USE_SYSTEM_EXTENSIONS.
8273         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
8274
8275 2010-11-13  Bruno Haible  <bruno@clisp.org>
8276
8277         Update comments.
8278         * lib/unistr/u8-check.c: Update file name in comments.
8279         * lib/unistr/u8-mblen.c: Likewise.
8280         * lib/unistr/u8-prev.c: Likewise.
8281         * lib/unistr/u8-strmblen.c: Likewise.
8282         * lib/unistr/u8-strmbtouc.c: Likewise.
8283
8284 2010-11-13  Jim Meyering  <meyering@redhat.com>
8285
8286         tests: avoid test failure on Solaris 10 due to lack of PATH export
8287         * tests/test-update-copyright.sh: Don't forget to export PATH.
8288
8289         init.sh: ensure that IFS is defined, just in case...
8290         * tests/init.sh (setup_): Ensure that IFS is defined,
8291         so that saving and restoring it works as expected.  This
8292         appears to be useful at least for an old version of dash
8293         from a long time ago (RH 6).  See here for details:
8294         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
8295
8296         maint.mk: tighten "test a == b" check
8297         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
8298         test to files that contain something like #!/bin/sh.
8299         Without this, coreutils would get two false positives in
8300         the comments of C source files.
8301
8302 2010-11-12  Eric Blake  <eblake@redhat.com>
8303
8304         bootstrap: fix typo in previous attempt
8305         * build-aux/bootstrap (buildreq): Correct the grouping.
8306         Reported by Paul Eggert.
8307
8308         maintainer-makefile: prohibit test x == x
8309         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
8310         Based on a report by Matthias Bolte.
8311
8312         bootstrap: allow FreeBSD gzip
8313         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
8314         which has no '.' and goes to stderr.
8315         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
8316         Reported by Matthias Bolte.
8317
8318         maintainer-makefile: check for i18n setup
8319         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
8320         will likely work.
8321
8322 2010-11-12  Bruno Haible  <bruno@clisp.org>
8323
8324         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
8325         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
8326         * lib/nanosleep.c (nanosleep): Likewise.
8327
8328 2010-11-11  Bruno Haible  <bruno@clisp.org>
8329
8330         fcntl-h: Fix for use of C++ on glibc systems.
8331         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8332         also on glibc systems in C++ mode.
8333         Reported by Gary V. Vaughan <gary@gnu.org>.
8334
8335 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8336
8337         mknod: avoid false failure with dash
8338         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
8339
8340 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
8341
8342         unlink: Fix "is it should" typo in diagnostic.
8343         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
8344         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
8345
8346 2010-11-11  Bruno Haible  <bruno@clisp.org>
8347
8348         Tests for module 'strerror_r-posix'.
8349         * modules/strerror_r-posix-tests: New file.
8350         * tests/test-strerror_r.c: New file.
8351         * tests/test-string-c++.cc: Check the signature of strerror_r.
8352
8353         New module 'strerror_r-posix'.
8354         * lib/string.in.h (strerror_r): New declaration.
8355         * lib/strerror_r.c: New file.
8356         * m4/strerror_r.m4: New file.
8357         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
8358         of strerror_r.
8359         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
8360         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8361         * modules/strerror_r-posix: New file.
8362         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
8363         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
8364         * doc/posix-functions/strerror_r.texi: Mention the new module and the
8365         portability problems.
8366
8367 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
8368
8369         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
8370         line is also considered for output. Quoted function name in shell
8371         command, so temporary files for functions like MyClass::operator()
8372         are removed correctly without errors.
8373
8374 2010-11-09  Bruno Haible  <bruno@clisp.org>
8375
8376         * doc/posix-functions/strerror.texi: List more failing platforms.
8377
8378         * doc/posix-functions/strerror.texi: Add a comment.
8379
8380 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
8381
8382         fdopendir: fix bug on MacOS X when low on file descriptors
8383
8384         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
8385         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
8386         All callers changed.
8387         (fdopendir): Invoke save_cwd at the top level, not after using
8388         multiple dup() calls to use up file descriptors.  Then retry
8389         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
8390         less than the maximum number of open file descriptors, because
8391         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
8392         on Mac OS X 10.6.4 for tar 1.24
8393         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
8394         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
8395         and for tar 1.25
8396         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
8397
8398 2010-11-07  Bruno Haible  <bruno@clisp.org>
8399
8400         vasnprintf: Support I flag on glibc systems.
8401         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
8402         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
8403         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
8404         snprintf function.
8405         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
8406         glibc systems.
8407         * tests/test-vasnprintf-posix3.c: New file.
8408         * modules/vasnprintf-posix-tests (Files): Add it.
8409         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
8410
8411 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
8412
8413         [html] Fix copy/paste bug: Use unique name for compiler warnings.
8414         * MODULES.html.sh: For compiler warnings, use name
8415         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
8416
8417 2010-11-05  Eric Blake  <eblake@redhat.com>
8418
8419         ceil, floor: avoid spurious failure with icc
8420         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
8421         [denormals-as-zero] when optimizing without -mieee-fp option.
8422         * tests/test-floorf2.c (floorf_reference): Likewise.
8423         * tests/test-ceilf1.c (dummy): New function.
8424         (main): Use it to outsmart icc's optimization.
8425         * tests/test-floorf1.c (dummy, main): Likewise.
8426
8427         tests: require working signbit
8428         * modules/ceilf-tests (Depends-on): Add signbit.
8429         * modules/ceill-tests (Depends-on): Likewise.
8430         * modules/floorf-tests (Depends-on): Likewise.
8431         * modules/floorl-tests (Depends-on): Likewise.
8432         * modules/round-tests (Depends-on): Likewise.
8433         * modules/roundf-tests (Depends-on): Likewise.
8434         * modules/roundl-tests (Depends-on): Likewise.
8435         * modules/trunc-tests (Depends-on): Likewise.
8436         * modules/truncf-tests (Depends-on): Likewise.
8437         * modules/truncl-tests (Depends-on): Likewise.
8438
8439         strtod: work around icc bug
8440         * lib/strtod.c (minus_zero): Define to working value.
8441         (strtod): Use it to avoid icc bug.
8442
8443         copysign: enhance tests
8444         * modules/copysign-tests (Files): Add minus-zero.h.
8445         * tests/test-copysign.c (main): Also test zeros.
8446
8447 2010-11-04  Eric Blake  <eblake@redhat.com>
8448
8449         ceil, floor, round, trunc: enhance tests of -0
8450         * tests/test-ceilf1.c (main): Ensure correct sign of result.
8451         * tests/test-ceill.c (main): Likewise.
8452         * tests/test-floorf1.c (main): Likewise.
8453         * tests/test-floorl.c (main): Likewise.
8454         * tests/test-round1.c (main): Likewise.
8455         * tests/test-roundf1.c (main): Likewise.
8456         * tests/test-roundl.c (main): Likewise.
8457         * tests/test-trunc1.c (main): Likewise.
8458         * tests/test-truncf1.c (main): Likewise.
8459         * tests/test-truncl.c (main): Likewise.
8460
8461 2010-11-04  Eric Blake  <eblake@redhat.com>
8462
8463         frexp, tests: work around ICC bug with -zero
8464         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
8465         works with more compilers.
8466         * tests/minus-zero.h: New file.
8467         * modules/ceilf-tests (Files): Include it.
8468         * modules/ceill-tests (Files): Likewise.
8469         * modules/floorf-tests (Files): Likewise.
8470         * modules/floorl-tests (Files): Likewise.
8471         * modules/frexp-nolibm-tests (Files): Likewise.
8472         * modules/frexp-tests (Files): Likewise.
8473         * modules/frexpl-nolibm-tests (Files): Likewise.
8474         * modules/frexpl-tests (Files): Likewise.
8475         * modules/isnan-tests (Files): Likewise.
8476         * modules/isnand-nolibm-tests (Files): Likewise.
8477         * modules/isnand-tests (Files): Likewise.
8478         * modules/isnanf-nolibm-tests (Files): Likewise.
8479         * modules/isnanf-tests (Files): Likewise.
8480         * modules/isnanl-nolibm-tests (Files): Likewise.
8481         * modules/isnanl-tests (Files): Likewise.
8482         * modules/round-tests (Files): Likewise.
8483         * modules/roundf-tests (Files): Likewise.
8484         * modules/roundl-tests (Files): Likewise.
8485         * modules/ldexpl-tests (Files): Likewise.
8486         * modules/signbit-tests (Files): Likewise.
8487         * modules/snprintf-posix-tests (Files): Likewise.
8488         * modules/sprintf-posix-tests (Files): Likewise.
8489         * modules/strtod-tests (Files): Likewise.
8490         * modules/trunc-tests (Files): Likewise.
8491         * modules/truncf-tests (Files): Likewise.
8492         * modules/truncl-tests (Files): Likewise.
8493         * modules/vsnprintf-posix-tests (Files): Likewise.
8494         * modules/vsprintf-posix-tests (Files): Likewise.
8495         * modules/vasnprintf-posix-tests (Files): Likewise.
8496         * modules/vasprintf-posix-tests (Files): Likewise.
8497         * tests/test-ceilf1.c (main): Use it.
8498         * tests/test-ceill.c (main): Likewise.
8499         * tests/test-floorf1.c (main): Likewise.
8500         * tests/test-floorl.c (main): Likewise.
8501         * tests/test-frexp.c (main): Likewise.
8502         * tests/test-frexpl.c (main): Likewise.
8503         * tests/test-isnan.c (main): Likewise.
8504         * tests/test-isnand.h (main): Likewise.
8505         * tests/test-isnanf.h (main): Likewise.
8506         * tests/test-isnanl.h (main): Likewise.
8507         * tests/test-ldexpl.c (main): Likewise.
8508         * tests/test-round.c (main): Likewise.
8509         * tests/test-roundf.c (main): Likewise.
8510         * tests/test-roundl.c (main): Likewise.
8511         * tests/test-signbit.c (test_signbitf, test_signbitd)
8512         (test_signbitl): Likewise.
8513         * tests/test-snprintf-posix.h (test_function): Likewise.
8514         * tests/test-sprintf-posix.h (test_function): Likewise.
8515         * tests/test-strtod.c (main): Likewise.
8516         * tests/test-trunc1.c (main): Likewise.
8517         * tests/test-truncf1.c (main): Likewise.
8518         * tests/test-truncl.c (main): Likewise.
8519
8520         isnanl: work around icc bug
8521         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
8522
8523 2010-11-03  Eric Blake  <eblake@redhat.com>
8524
8525         tests: fix compiler warnings
8526         * tests/test-getopt.h (test_getopt): Fix condition.
8527         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8528         * tests/test-pipe2.c (main): Likewise.
8529         * tests/test-quotearg-simple.c (main): Avoid icc warning.
8530
8531         utimens: fix broken m4 test
8532         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
8533
8534 2010-10-28  Bruno Haible  <bruno@clisp.org>
8535
8536         posix_spawn*, getdtablesize: Relax license.
8537         * modules/posix_spawn (License): Change to LGPLv2+.
8538         * modules/posix_spawnp (License): Likewise.
8539         * modules/posix_spawn-internal (License): Likewise.
8540         * modules/posix_spawnattr_init (License): Likewise.
8541         * modules/posix_spawnattr_getflags (License): Likewise.
8542         * modules/posix_spawnattr_setflags (License): Likewise.
8543         * modules/posix_spawnattr_getpgroup (License): Likewise.
8544         * modules/posix_spawnattr_setpgroup (License): Likewise.
8545         * modules/posix_spawnattr_getschedparam (License): Likewise.
8546         * modules/posix_spawnattr_setschedparam (License): Likewise.
8547         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
8548         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
8549         * modules/posix_spawnattr_getsigdefault (License): Likewise.
8550         * modules/posix_spawnattr_setsigdefault (License): Likewise.
8551         * modules/posix_spawnattr_getsigmask (License): Likewise.
8552         * modules/posix_spawnattr_setsigmask (License): Likewise.
8553         * modules/posix_spawnattr_destroy (License): Likewise.
8554         * modules/posix_spawn_file_actions_init (License): Likewise.
8555         * modules/posix_spawn_file_actions_addclose (License): Likewise.
8556         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
8557         * modules/posix_spawn_file_actions_addopen (License): Likewise.
8558         * modules/posix_spawn_file_actions_destroy (License): Likewise.
8559         * modules/getdtablesize (License): Likewise.
8560         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
8561
8562 2010-10-26  Bruno Haible  <bruno@clisp.org>
8563
8564         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
8565         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
8566         Cygwin and mingw.
8567         Suggested by Eric Blake.
8568
8569 2010-10-26  Bruno Haible  <bruno@clisp.org>
8570
8571         stdio: Work around compilation error due to renameat() on Solaris 10.
8572         * lib/stdio.in.h: Include <unistd.h> on Solaris.
8573         * lib/renameat.c: Don't include <unistd.h> here.
8574         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
8575         Reported by Paul Eggert and Eric Blake.
8576
8577 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
8578
8579         renameat: port to Solaris 10, which declares renameat in unistd.h
8580
8581         * lib/renameat.c: Include unistd.h before stdio.h, because
8582         Solaris 10 declares renameat in unistd.h.  Problem encountered
8583         when building GNU tar 1.24 on Solaris 10.
8584
8585 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
8586
8587         fdopendir: fix C89 compilation
8588         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
8589         compilers.
8590
8591 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
8592
8593         inttostr: simplify by removing unnecessary redundancy
8594         * lib/anytostr.c: Don't include verify.h.
8595         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
8596         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
8597         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
8598         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
8599         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
8600         Likewise.
8601         * modules/inttostr (Depends-on): Remove 'verify'.
8602
8603 2010-10-23  Bruno Haible  <bruno@clisp.org>
8604
8605         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
8606         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
8607         Reported by Eric Blake.
8608
8609 2010-10-23  Bruno Haible  <bruno@clisp.org>
8610
8611         Tests: Fix LOCALE_JA on MirBSD 10.
8612         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
8613         to an UTF-8 locale.
8614         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
8615         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8616         Reported by Eric Blake.
8617
8618 2010-10-21  Bruno Haible  <bruno@clisp.org>
8619
8620         nl_langinfo test: Avoid test failure on NetBSD 5.
8621         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
8622         Reported by Eric Blake.
8623
8624 2010-10-21  Eric Blake  <eblake@redhat.com>
8625
8626         c-stack: work around libsigsegv 2.8 bug
8627         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
8628         overflow on at least PowerPC64.
8629
8630 2010-10-17  Bruno Haible  <bruno@clisp.org>
8631
8632         userspec: Drop redundant file.
8633         * modules/userspec (Files): Remove lib/inttostr.h.
8634
8635 2010-10-17  Bruno Haible  <bruno@clisp.org>
8636
8637         nl_langinfo tests: Silence some warnings.
8638         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
8639         Reported by Jim Meyering.
8640
8641 2010-10-17  Bruno Haible  <bruno@clisp.org>
8642
8643         Make use of GCC's attribute __alloc_size__.
8644         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
8645         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
8646         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
8647         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
8648         __alloc_size__.
8649         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
8650         Suggested by Jim Meyering.
8651
8652 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
8653
8654         bootstrap: anchor .gitignore entries.
8655         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
8656         with...
8657         (insert_vc_ignore): ... this new function, which prepends `/' to
8658         all .gitignore entries before passing them to
8659         insert_sorted_if_absent.
8660
8661 2010-10-16  Bruno Haible  <bruno@clisp.org>
8662
8663         nextafter: Fix configure check.
8664         * modules/nextafter (configure.ac): Correct expected prototype.
8665
8666 2010-10-16  Bruno Haible  <bruno@clisp.org>
8667
8668         termios: Update documentation.
8669         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
8670
8671 2010-10-16  Bruno Haible  <bruno@clisp.org>
8672
8673         tests: Make them compile with TinyCC.
8674         * tests/test-strstr.c (main): Remove parentheses around array
8675         initializer.
8676
8677 2010-10-15  Eric Blake  <eblake@redhat.com>
8678
8679         ignore-value: make header idempotent
8680         * lib/ignore-value.h: Add double-inclusion guards.
8681         Reported by Stefan Berger.
8682
8683 2010-10-15  Jim Meyering  <meyering@redhat.com>
8684
8685         GNUmakefile: handle "stable" target, not "major"
8686         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
8687         lists in maint.mk and announce-gen.  Without this, "make stable"
8688         would fail to ensure that $(VERSION) is up to date.
8689
8690 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
8691
8692         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
8693         & co.
8694
8695 2010-10-14  Bruno Haible  <bruno@clisp.org>
8696
8697         vasnprintf: Don't set errno to 0.
8698         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
8699         block that sets it to 0.
8700         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
8701
8702 2010-10-14  Bruno Haible  <bruno@clisp.org>
8703
8704         socketlib: Fix.
8705         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
8706         gl_PREREQ_SYS_H_WINSOCK2.
8707         Reported by Ian Beckwith <ianb@erislabs.net>.
8708
8709 2010-10-13  Jim Meyering  <meyering@redhat.com>
8710
8711         test-select-stdin.c: avoid warn_unused_result warnings
8712         * tests/test-select-stdin.c: Include "macros.h".
8713         ASSERT that read and fflush succeed.
8714
8715 2010-10-13  Jim Meyering  <meyering@redhat.com>
8716
8717         git-version-gen: do require git-VC'd files in cwd
8718         * build-aux/git-version-gen: Reject a git version string
8719         if there are no commits associated with the current directory.
8720         This avoids an unlikely false-positive (unrelated dir whose parent
8721         repository also contains a tag matching v*), as pointed out
8722         by Giuseppe Scrivano in
8723         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
8724
8725 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8726
8727         argv-iter: omit nonconforming declaration
8728         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
8729         enum arg_iter_err declaration, which doesn't conform to C99.
8730         Solaris 10 cc warns about this.
8731
8732 2010-10-13  Eric Blake  <eblake@redhat.com>
8733
8734         termios: fix compilation on mingw
8735         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
8736         (gl_TERMIOS_H): Adjust it on mingw.
8737         * modules/termios (Makefile.am): Substitute new key.
8738         * lib/termios.in.h (includes): Make include_next conditional.
8739         * doc/posix-headers/termios.texi (termios.h): Update
8740         documentation.
8741         Reported by Daniel P. Berrange.
8742
8743 2010-10-13  Jim Meyering  <meyering@redhat.com>
8744
8745         git-version-gen: don't require that .git/ be in the current dir
8746         * build-aux/git-version-gen: Adjust this script so that it works
8747         when run from any working directory beneath the top-level .git/-
8748         containing directory.  Inspired by a patch from Giuseppe Scrivano,
8749         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
8750
8751         test-select: avoid warn_unused_result warnings
8752         * tests/test-select.c: Include "macros.h".
8753         ASSERT that each call to read, write, and pipe succeeds.
8754         While not technically required, also check each "close".
8755         * modules/select-tests (Files): Add tests/macros.h.
8756
8757         test-symlinkat: remove declaration of unused local
8758         * tests/test-symlinkat.c (main): Remove unused local, "buf".
8759
8760         test-inttostr: avoid shadowing warnings
8761         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
8762         and use malloc rather than the stack for the same reason as
8763         mentioned in the comment justifying the other allocation.
8764
8765 2010-10-11  Bruno Haible  <bruno@clisp.org>
8766
8767         stdlib: Allow multiple gnulib generated replacements to coexist.
8768         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
8769         Reported by Sam Steingold <sds@gnu.org>.
8770
8771 2010-10-11  Jim Meyering  <meyering@redhat.com>
8772
8773         fix a documentation typo
8774         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
8775
8776 2010-10-11  Eric Blake  <eblake@redhat.com>
8777
8778         futimens: work around Solaris 11 bug
8779         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
8780         * tests/test-futimens.h (test_futimens): Enhance, rather than
8781         weaken test.
8782         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8783
8784 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
8785
8786         Indentation.
8787         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
8788         higher-level operators more to the left.
8789
8790 2010-10-11  Jim Meyering  <meyering@redhat.com>
8791
8792         test-futimens: avoid unwarranted test failure on Solaris 5.11
8793         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
8794         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
8795         because it tries to dereference the NULL name argument.
8796
8797 2010-10-11  Bruno Haible  <bruno@clisp.org>
8798
8799         Indentation.
8800         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
8801         indentation.
8802
8803 2010-10-11  Jim Meyering  <meyering@redhat.com>
8804
8805         spawn.in.h: make indentation consistent with parentheses
8806         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
8807         Make indentation consistent with parentheses.
8808
8809 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
8810
8811         Fix mismatched parens in previous commit
8812         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
8813         parens.
8814
8815 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
8816
8817         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
8818
8819         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
8820         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
8821         * lib/malloca.c: Include "verify.h".
8822         (verify1): Remove, replacing with a verify call.
8823         * lib/relocwrapper.c (verify1): Likewise.
8824         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
8825         Likewise.
8826         * modules/malloca (Depends-on): Add 'verify'.
8827         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
8828         * modules/vasnprintf (Depends-on): Add 'verify'.
8829         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8830         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8831         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8832         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8833         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8834         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8835         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8836
8837         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
8838
8839         Formerly the style was sometimes 2*X - 1, because the C standard
8840         was wrongly thought to disallow ?: in integral constant expressions.
8841         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
8842         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
8843         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
8844         * lib/stdint.in.h (_verify_intmax_size): Likewise.
8845         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
8846         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
8847         verify that time_t cannot be floating.
8848
8849 2010-10-08  Eric Blake  <eblake@redhat.com>
8850
8851         time: enforce recent POSIX ruling that time_t is integral
8852         * lib/time.in.h (__time_t_must_be_integral): Detect any
8853         problematic systems, allowing the rest of gnulib to assume POSIX.
8854
8855 2010-10-08  Jim Meyering  <meyering@redhat.com>
8856
8857         fdopendir: fix a bug on systems lacking openat and /proc support
8858         OpenBSD 4.7 is one such system.  The most noticeable effect was
8859         failure of any application making nontrivial use of fts: rm, du,
8860         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
8861           ./rm: traversal failed: `a': Bad file descriptor
8862         Debugging that, you see that even though FD 6 was closed just
8863         prior to the opendir call in fd_clone_opendir, its resulting
8864         dir->dd_fd was 8, rather than the expected value of 6:
8865
8866         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
8867         93                close (fd);
8868         (gdb) n
8869         94                dir = fd_clone_opendir (dupfd);
8870         (gdb) n
8871         95                saved_errno = errno;
8872         (gdb) p dir->dd_fd
8873         $11 = 8
8874
8875         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
8876         The problem is that on OpenBSD, fd_clone_opendir has to resort
8877         to using the old-style save/restore CWD mechanism, due to its
8878         lack of openat/proc support, and *that* would steal the FD (6)
8879         that opendir was supposed to use.
8880
8881         The fix is to squirrel away the desired FD so that save_cwd uses a
8882         different one, and then free the dest FD right before calling opendir.
8883         That guarantees opendir will use the required file descriptor.
8884
8885         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
8886
8887 2010-10-08  Bruno Haible  <bruno@clisp.org>
8888
8889         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
8890         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
8891
8892 2010-10-08  Bruno Haible  <bruno@clisp.org>
8893
8894         nanosleep: Make replacement POSIX compliant.
8895         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
8896         is out of range.
8897         Reported by Jim Meyering.
8898
8899 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
8900
8901         bootstrap: add hook for altering gnulib.mk, for Bison
8902         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
8903         the Bison bootstrapping process can rewrite file names and variables
8904         in this file before later parts of 'bootstrap' use the file.
8905         Bison wants to include lib/gnulib.mk from the top-level makefile,
8906         so it needs the file names in this file to be relative to the top
8907         level, not relative to lib; plus it needs variable names to be
8908         rewritten.
8909         (slurp): Use the new function.
8910
8911         bootstrap: reformat for readability
8912         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
8913
8914 2010-10-08  Eric Blake  <eblake@redhat.com>
8915
8916         docs: update cygwin progress
8917         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
8918         1.7.7.
8919         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
8920         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
8921         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
8922         * doc/posix-functions/carg.texi (carg): Likewise.
8923         * doc/posix-functions/cargf.texi (cargf): Likewise.
8924         * doc/posix-functions/casin.texi (casin): Likewise.
8925         * doc/posix-functions/casinf.texi (casinf): Likewise.
8926         * doc/posix-functions/casinh.texi (casinh): Likewise.
8927         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
8928         * doc/posix-functions/catan.texi (catan): Likewise.
8929         * doc/posix-functions/catanf.texi (catanf): Likewise.
8930         * doc/posix-functions/catanh.texi (catanh): Likewise.
8931         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
8932         * doc/posix-functions/ccos.texi (ccos): Likewise.
8933         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
8934         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
8935         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
8936         * doc/posix-functions/cexp.texi (cexp): Likewise.
8937         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
8938         * doc/posix-functions/cimag.texi (cimag): Likewise.
8939         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
8940         * doc/posix-functions/clog.texi (clog): Likewise.
8941         * doc/posix-functions/clogf.texi (clogf): Likewise.
8942         * doc/posix-functions/conj.texi (conj): Likewise.
8943         * doc/posix-functions/conjf.texi (conjf): Likewise.
8944         * doc/posix-functions/cpow.texi (cpow): Likewise.
8945         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
8946         * doc/posix-functions/cproj.texi (cproj): Likewise.
8947         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
8948         * doc/posix-functions/creal.texi (creal): Likewise.
8949         * doc/posix-functions/crealf.texi (crealf): Likewise.
8950         * doc/posix-functions/csin.texi (csin): Likewise.
8951         * doc/posix-functions/csinf.texi (csinf): Likewise.
8952         * doc/posix-functions/csinh.texi (csinh): Likewise.
8953         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
8954         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
8955         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
8956         * doc/posix-functions/ctan.texi (ctan): Likewise.
8957         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
8958         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
8959         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
8960         * doc/posix-headers/complex.texi (complex.h): Likewise.
8961
8962 2010-10-07  Jim Meyering  <meyering@redhat.com>
8963
8964         parse-datetime: avoid compilation failure on OpenBSD 4.7
8965         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
8966         This works around a compilation failure on OpenBSD 4.7:
8967         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
8968
8969 2010-10-07  Eric Blake  <eblake@redhat.com>
8970
8971         docs: update cygwin progress
8972         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
8973         1.7.6.
8974         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
8975         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
8976         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
8977         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
8978         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
8979         Likewise.
8980         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
8981         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
8982         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
8983         Likewise.
8984         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
8985         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
8986         Likewise.
8987         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
8988         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
8989         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
8990         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
8991         Likewise.
8992         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
8993         Likewise.
8994         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
8995
8996         docs: update parse-datetime history
8997         * doc/parse-datetime.texi (Authors of parse_datetime): Better
8998         documentation of this function's history and alternatives.
8999
9000         cygwin: use more robust version check
9001         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
9002         exclude an eventual cygwin 1.9.1.
9003         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9004         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9005         (gl_FUNC_STRCASESTR): Likewise.
9006         Reported by Bruno Haible.
9007
9008 2010-10-06  Bruno Haible  <bruno@clisp.org>
9009
9010         string, sys_select: Avoid #including large headers unless necessary.
9011         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
9012         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
9013         OSF/1, BeOS, Haiku.
9014         Reported by Jim Meyering.
9015
9016 2010-10-05  Eric Blake  <eblake@redhat.com>
9017
9018         memmem, strstr, strcasestr: fix bug with long periodic needle
9019         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
9020         periodic needle having false positive.
9021         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
9022         and cygwin 1.7.7.
9023         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
9024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
9025         (gl_FUNC_STRCASESTR): Likewise.
9026         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9027         * tests/test-memmem.c (main): Expose the bug.
9028         * tests/test-strcasestr.c (main): Likewise.
9029         * tests/test-strstr.c (main): Likewise.
9030         * tests/test-c-strcasestr.c (main): Likewise.
9031         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
9032         * doc/posix-functions/strstr.texi (strstr): Likewise.
9033         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9034         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
9035
9036 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9037
9038         parse-datetime: do some more renaming
9039         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
9040         parse_datetime, not get_date.  Mention the renaming.
9041         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
9042         in comments.
9043         * m4/bison.m4: Likewise.
9044
9045 2010-10-05  Eric Blake  <eblake@redhat.com>
9046
9047         parse-datetime: better name than get_date
9048         * NEWS: Reword the deprecation notice.
9049         * modules/get_date: Rename to modules/parse-datetime.
9050         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
9051         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
9052         * lib/get_date.y: Rename to lib/parse-datetime.y.
9053         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
9054         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
9055         * doc/getdate.texi: Provide fallback wrapper.
9056         * lib/getdate.h: Move guts, and wrap...
9057         * lib/parse-datetime.h: ...new file.
9058         * lib/parse-datetime.y (get_date): Rename...
9059         (parse_datetime): ...to this.
9060         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
9061         (gl_PARSE_DATETIME): ...to this.
9062         * doc/posix-functions/getdate.texi (get_date): Provide fallback
9063         documentation.
9064         * modules/getdate (Files): Provide fallback docs and header.
9065         (Notice, Depends-on): Update references.
9066         * tests/test-parse-datetime.c: Likewise.
9067         * DEPENDENCIES: Likewise.
9068         * MODULES.html.sh (Date and time <time.h>): Likewise.
9069         * doc/parse-datetime.texi (Date input formats)
9070         (Authors of parse_datetime): Likewise.
9071         * modules/parse-datetime (Files, configure.ac, Makefile.am)
9072         (Include): Likewise.
9073         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
9074         * gnulib-tool: Likewise.
9075         * m4/bison.m4 (gl_BISON): Likewise.
9076         Suggested by Bruno Haible.
9077
9078 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
9079
9080         more ports to Solaris tr, which needs [] around ranges
9081         * gnulib-tool: Solaris tr needs [] around ranges.
9082         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9083         * tests/test-pipe-filter-gi1.c (main): Likewise.
9084         * tests/test-pipe-filter-ii1.c (main): Likewise.
9085
9086 2010-10-05  Eric Blake  <eblake@redhat.com>
9087
9088         bootstrap: fix Solaris regression
9089         * build-aux/bootstrap (check_versions): Solaris tr still needs []
9090         around ranges.
9091         Reported by Pádraig Brady.
9092
9093         bootstrap: work with pkg-config
9094         * build-aux/bootstrap (check_versions): Also transliterate - in
9095         prerequisite name.
9096         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
9097         prerequisites that were already found, to avoid confusion.
9098         Reported by Justin Clift.
9099
9100         faccessat: remove unused wrappers
9101         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
9102         presence of these wrappers dragged in -lgen on Solaris.
9103         Reported by Clemens Brogi; fix suggested by Paul Eggert.
9104
9105 2010-10-05  Jim Meyering  <meyering@redhat.com>
9106
9107         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
9108         * Makefile (sc_pragma_columns): New syntax-check rule.
9109
9110 2010-10-04  Bruno Haible  <bruno@clisp.org>
9111
9112         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
9113         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
9114         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
9115         Reported by Bruce Korb and Eric Blake.
9116
9117 2010-10-04  Bruno Haible  <bruno@clisp.org>
9118
9119         threadlib: Make option --with-libpth-prefix work.
9120         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
9121         use $LIBPTH, not just -lpth.
9122
9123 2010-10-04  Bruno Haible  <bruno@clisp.org>
9124
9125         Avoid line length limitation from HP NonStop system header files.
9126         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
9127         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
9128         * lib/ctype.in.h: Likewise.
9129         * lib/dirent.in.h: Likewise.
9130         * lib/errno.in.h: Likewise.
9131         * lib/fcntl.in.h: Likewise.
9132         * lib/float.in.h: Likewise.
9133         * lib/getopt.in.h: Likewise.
9134         * lib/iconv.in.h: Likewise.
9135         * lib/inttypes.in.h: Likewise.
9136         * lib/langinfo.in.h: Likewise.
9137         * lib/locale.in.h: Likewise.
9138         * lib/math.in.h: Likewise.
9139         * lib/netdb.in.h: Likewise.
9140         * lib/netinet_in.in.h: Likewise.
9141         * lib/poll.in.h: Likewise.
9142         * lib/pthread.in.h: Likewise.
9143         * lib/pty.in.h: Likewise.
9144         * lib/sched.in.h: Likewise.
9145         * lib/se-selinux.in.h: Likewise.
9146         * lib/search.in.h: Likewise.
9147         * lib/signal.in.h: Likewise.
9148         * lib/spawn.in.h: Likewise.
9149         * lib/stdarg.in.h: Likewise.
9150         * lib/stddef.in.h: Likewise.
9151         * lib/stdint.in.h: Likewise.
9152         * lib/stdio.in.h: Likewise.
9153         * lib/stdlib.in.h: Likewise.
9154         * lib/string.in.h: Likewise.
9155         * lib/strings.in.h: Likewise.
9156         * lib/sys_file.in.h: Likewise.
9157         * lib/sys_ioctl.in.h: Likewise.
9158         * lib/sys_select.in.h: Likewise.
9159         * lib/sys_socket.in.h: Likewise.
9160         * lib/sys_stat.in.h: Likewise.
9161         * lib/sys_time.in.h: Likewise.
9162         * lib/sys_times.in.h: Likewise.
9163         * lib/sys_utsname.in.h: Likewise.
9164         * lib/sys_wait.in.h: Likewise.
9165         * lib/sysexits.in.h: Likewise.
9166         * lib/termios.in.h: Likewise.
9167         * lib/time.in.h: Likewise.
9168         * lib/unistd.in.h: Likewise.
9169         * lib/wchar.in.h: Likewise.
9170         * lib/wctype.in.h: Likewise.
9171         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
9172         * modules/ctype (Makefile.am): Likewise.
9173         * modules/dirent (Makefile.am): Likewise.
9174         * modules/errno (Makefile.am): Likewise.
9175         * modules/fcntl-h (Makefile.am): Likewise.
9176         * modules/float (Makefile.am): Likewise.
9177         * modules/getopt-posix (Makefile.am): Likewise.
9178         * modules/iconv-h (Makefile.am): Likewise.
9179         * modules/inttypes (Makefile.am): Likewise.
9180         * modules/langinfo (Makefile.am): Likewise.
9181         * modules/locale (Makefile.am): Likewise.
9182         * modules/math (Makefile.am): Likewise.
9183         * modules/netdb (Makefile.am): Likewise.
9184         * modules/netinet_in (Makefile.am): Likewise.
9185         * modules/poll-h (Makefile.am): Likewise.
9186         * modules/pthread (Makefile.am): Likewise.
9187         * modules/pty (Makefile.am): Likewise.
9188         * modules/sched (Makefile.am): Likewise.
9189         * modules/search (Makefile.am): Likewise.
9190         * modules/selinux-h (Makefile.am): Likewise.
9191         * modules/signal (Makefile.am): Likewise.
9192         * modules/spawn (Makefile.am): Likewise.
9193         * modules/stdarg (Makefile.am): Likewise.
9194         * modules/stddef (Makefile.am): Likewise.
9195         * modules/stdint (Makefile.am): Likewise.
9196         * modules/stdio (Makefile.am): Likewise.
9197         * modules/stdlib (Makefile.am): Likewise.
9198         * modules/string (Makefile.am): Likewise.
9199         * modules/strings (Makefile.am): Likewise.
9200         * modules/sys_file (Makefile.am): Likewise.
9201         * modules/sys_ioctl (Makefile.am): Likewise.
9202         * modules/sys_select (Makefile.am): Likewise.
9203         * modules/sys_socket (Makefile.am): Likewise.
9204         * modules/sys_stat (Makefile.am): Likewise.
9205         * modules/sys_time (Makefile.am): Likewise.
9206         * modules/sys_times (Makefile.am): Likewise.
9207         * modules/sys_utsname (Makefile.am): Likewise.
9208         * modules/sys_wait (Makefile.am): Likewise.
9209         * modules/sysexits (Makefile.am): Likewise.
9210         * modules/termios (Makefile.am): Likewise.
9211         * modules/time (Makefile.am): Likewise.
9212         * modules/unistd (Makefile.am): Likewise.
9213         * modules/wchar (Makefile.am): Likewise.
9214         * modules/wctype (Makefile.am): Likewise.
9215
9216 2010-10-04  Bruno Haible  <bruno@clisp.org>
9217
9218         read-file tests: Avoid a test failure on NonStop Kernel.
9219         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
9220         a regular file.
9221         Reported by Joachim Schmitz <schmitz@hp.com>.
9222
9223 2010-10-03  Bruno Haible  <bruno@clisp.org>
9224
9225         gnulib-tool: Fixes for --create-testdir with --libtool.
9226         * gnulib-tool (func_get_automake_snippet): Don't augment
9227         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
9228         an executable.
9229         (func_create_testdir): Handle module 'alloca' like func_import.
9230         Reported by Bruce Korb <bruce.korb@gmail.com>.
9231
9232 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
9233
9234         Avoid some lines longer than 80 characters.
9235         * lib/stdint.in.h: Break long comment lines.
9236         * lib/math.in.h: Likewise.
9237         (_GL_NUM_UINT_WORDS): New macro, for readability.
9238         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
9239         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
9240         * lib/stdlib.in.h: Likewise.
9241         * lib/spawn.in.h: Likewise.
9242         * lib/sys_socket.in.h: Update an URL.
9243         * lib/sys_stat.in.h: Break long line.
9244
9245 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
9246
9247         Improve pmccabe2html.
9248         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
9249         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
9250         when the sources change. Remove the line in the HTML about "Used
9251         ranges" (which implied that there might be other unused ranges),
9252         rename "Resume" to "Summary" (easier to understand for more users).
9253         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
9254         styles, and some unnecessary blank lines.
9255
9256 2010-10-03  Bruno Haible  <bruno@clisp.org>
9257             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9258
9259         acl: Add support for ACLs on NonStop Kernel.
9260         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
9261         Check whether the function aclsort() exists.
9262         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
9263         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9264         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9265         (acl_nontrivial [HAVE_ACLSORT]: New function.
9266         (file_has_acl): Implement for NonStop Kernel.
9267         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9268         (qset_acl): Implement for NonStop Kernel.
9269         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
9270         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
9271         (main): Implement for NonStop Kernel.
9272         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
9273         Kernel. Handle this flavor.
9274         * tests/test-set-mode-acl.sh: Likewise.
9275         * tests/test-copy-acl.sh: Likewise.
9276         * tests/test-copy-file.sh: Likewise.
9277
9278 2010-10-03  Bruno Haible  <bruno@clisp.org>
9279
9280         Info about ACLs on NonStop Kernel.
9281         * doc/acl-resources.txt: Add info about NonStop Kernel.
9282         References by Joachim Schmitz <schmitz@hp.com>.
9283
9284 2010-10-02  Bruno Haible  <bruno@clisp.org>
9285
9286         Define missing EDQUOT on NonStop Kernel.
9287         * lib/errno.in.h (EDQUOT): Assign a value if missing.
9288         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
9289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
9290         missing.
9291         * doc/posix-headers/errno.texi: Mention the NSK bug.
9292         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
9293         Reported by Joachim Schmitz <schmitz@hp.com>.
9294
9295 2010-10-02  Bruno Haible  <bruno@clisp.org>
9296
9297         Update doc for POSIX:2008.
9298         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
9299         Update URL of POSIX specification.
9300
9301 2010-10-02  Bruno Haible  <bruno@clisp.org>
9302
9303         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
9304         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
9305         from gnulib, not from Automake.
9306
9307 2010-10-02  Bruno Haible  <bruno@clisp.org>
9308
9309         New module 'system-posix'.
9310         * modules/system-posix: New file.
9311         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
9312         module is present.
9313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
9314         GNULIB_SYSTEM_POSIX.
9315         * modules/stdlib (Depends-on): Remove sys_wait.
9316         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
9317         * doc/posix-functions/system.texi: Mention the new module.
9318         * doc/posix-headers/stdlib.texi: Likewise.
9319         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
9320         define test_sys_wait_macros to a no-op.
9321         Reported by Sam Steingold <sds@gnu.org>.
9322
9323 2010-09-30  Bruno Haible  <bruno@clisp.org>
9324
9325         More renaming from 'getdate' to 'get_date'.
9326         * doc/get_date.texi: Renamed from doc/getdate.texi.
9327         * modules/get_date (Files): Update.
9328         * MODULES.html.sh (Date and time <time.h>): Update.
9329         * DEPENDENCIES: Update.
9330         * gnulib-tool: Update comment.
9331         * m4/bison.m4 (gl_BISON): Likewise.
9332         * m4/get_date.m4 (gl_GET_DATE): Likewise.
9333
9334 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
9335
9336         bootstrap: support ACLOCAL_FLAGS during aclocal
9337         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
9338         can add additional -I dir for third-party .m4 files.
9339
9340 2010-09-30  Eric Blake  <eblake@redhat.com>
9341
9342         bootstrap: use glibtoolize on MacOS
9343         * build-aux/bootstrap (check_versions): Convert libtool into
9344         libtoolize.
9345         (tool search): Move libtool check earlier, and look for
9346         glibtoolize for MacOS.
9347         (gnulib_tool_options): Auto-add --libtool when appropriate.
9348         Reported by Justin Clift.
9349
9350         poll: fix typo that broke test on MacOS
9351         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
9352         Reported by Justin Clift.
9353
9354         getdate: rename to get_date
9355         Note: getdate.h is not renamed, to minimize client impact.
9356         * modules/getdate: Mark obsolete.  Move old contents...
9357         * modules/get_date: ...to new module name.
9358         * modules/getdate-tests: Move...
9359         * modules/get_date-tests: ...here.
9360         * m4/getdate.m4: Move...
9361         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
9362         * lib/getdate.y: Move...
9363         * lib/get_date.y: ...here.
9364         * tests/test-getdate.c: Move...
9365         * tests/test-get_date.c: ...here.
9366         * doc/posix-functions/getdate.texi (getdate): Update name.
9367         * NEWS: Mention the change.
9368
9369 2010-09-29  Bruno Haible  <bruno@clisp.org>
9370
9371         Separate the module 'waitpid' from the module 'sys_wait'.
9372         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
9373         present.
9374         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
9375         gl_MODULE_INDICATOR_FOR_TESTS.
9376         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
9377         * modules/sys_wait (Depends-on): Remove waitpid.
9378         (Makefile.am): Substitute GNULIB_WAITPID.
9379         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
9380         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
9381         signature only if the 'waitpid' module is present.
9382         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
9383         * NEWS: Mention the change.
9384         * modules/grantpt (Depends-on): Add waitpid.
9385         * modules/wait-process (Depends-on): Likewise.
9386
9387 2010-09-29  Bruno Haible  <bruno@clisp.org>
9388
9389         More tests for module 'sys_wait'.
9390         * modules/sys_wait-c++-tests: New file.
9391         * tests/test-sys_wait-c++.cc: New file.
9392         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
9393         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9394
9395 2010-09-29  Bruno Haible  <bruno@clisp.org>
9396
9397         New module 'waitpid'.
9398         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
9399         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
9400         Don't include <process.h>.
9401         (waitpid): Declare only, using modern idiom.
9402         * m4/waitpid.m4: New file.
9403         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
9404         * modules/waitpid: New file.
9405         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
9406         (Makefile.am): Update.
9407         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9408
9409 2010-09-28  Bruno Haible  <bruno@clisp.org>
9410
9411         poll: Assume ANSI C.
9412         * lib/poll.c (poll): Use an ANSI C declaration.
9413
9414 2010-09-28  Bruno Haible  <bruno@clisp.org>
9415
9416         poll-h: Create poll.h on all platforms.
9417         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
9418         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
9419         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
9420         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
9421         (gl_REPLACE_POLL_H): Don't set POLL_H.
9422         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
9423         * modules/poll-h (Depends-on): Add include_next.
9424         (Makefile.am): Create poll.h unconditionally. Substitute also
9425         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
9426
9427 2010-09-28  Bruno Haible  <bruno@clisp.org>
9428
9429         Tests for module 'poll-h'.
9430         * modules/poll-h-c++-tests: New file.
9431         * tests/test-poll-h-c++.cc: New file.
9432
9433         Tests for module 'poll-h'.
9434         * modules/poll-h-tests: New file.
9435         * tests/test-poll-h.c: New file.
9436
9437 2010-09-28  Bruno Haible  <bruno@clisp.org>
9438
9439         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
9440         * modules/poll-h (Depends-on): Add 'extensions'.
9441
9442 2010-09-28  Bruno Haible  <bruno@clisp.org>
9443
9444         New module 'poll-h'.
9445         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
9446         (poll): Use modern idiom.
9447         * modules/poll-h: New file.
9448         * modules/poll (Files): Remove lib/poll.in.h.
9449         (Depends-on): Add poll-h.
9450         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
9451         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
9452         * m4/poll_h.m4: New file.
9453         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
9454         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
9455         and invoke gl_REPLACE_POLL_H.
9456         * lib/poll.c: Use common idiom.
9457         * tests/test-poll.c: Likewise.
9458         * doc/posix-headers/poll.texi: Mention the poll-h module.
9459         Suggested by Eric Blake.
9460
9461 2010-09-26  Bruno Haible  <bruno@clisp.org>
9462
9463         sys_wait: Implement WSTOPSIG.
9464         * lib/sys_wait.in.h (WSTOPSIG): New macro.
9465         Reported by Simon Josefsson.
9466
9467 2010-09-26  Simon Josefsson  <simon@josefsson.org>
9468
9469         stdlib, sys_wait: Avoid compilation error on mingw.
9470         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
9471
9472 2010-09-26  Bruno Haible  <bruno@clisp.org>
9473
9474         stdlib tests: Avoid code duplication.
9475         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
9476         * modules/sys_wait-tests (Files): Likewise.
9477         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
9478         * tests/test-stdlib.c: Include test-sys_wait.h.
9479         (main): Invoke test_sys_wait_macros.
9480         * tests/test-sys_wait.c: Include test-sys_wait.h.
9481         (main): Invoke test_sys_wait_macros.
9482
9483 2010-09-25  Simon Josefsson  <simon@josefsson.org>
9484
9485         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
9486         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
9487         sure Windows sockets are working before calling getaddrinfo.
9488         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
9489         * doc/gnulib.texi (Windows sockets): Fix typo.
9490
9491 2010-09-25  Bruno Haible  <bruno@clisp.org>
9492
9493         Tests for module 'regex-quote'.
9494         * modules/regex-quote-tests: New file.
9495         * tests/test-regex-quote.c: New file.
9496
9497         New module 'regex-quote'.
9498         * lib/regex-quote.h: New file.
9499         * lib/regex-quote.c: New file.
9500         * modules/regex-quote: New file.
9501         Suggested by Reuben Thomas <rrt@sc3d.org>.
9502
9503 2010-09-24  Bruno Haible  <bruno@clisp.org>
9504
9505         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
9506         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
9507
9508 2010-09-23  Bruno Haible  <bruno@clisp.org>
9509
9510         setenv: Relax license.
9511         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
9512         Blake.
9513         Requested by Eric Blake.
9514
9515 2010-09-22  Bruno Haible  <bruno@clisp.org>
9516
9517         termios: Relax license.
9518         * modules/termios (License): Change to LGPLv2+.
9519         Requested by Eric Blake.
9520
9521 2010-09-22  Bruno Haible  <bruno@clisp.org>
9522
9523         threadlib: Allow the package to change the default to 'no'.
9524         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
9525         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
9526         Reported by Paul Eggert.
9527
9528 2010-09-22  Pádraig Brady  <P@draigbrady.com>
9529             Bruno Haible  <bruno@clisp.org>
9530
9531         Fix endless loop in mbmemcasecoll.
9532         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
9533         byte.
9534         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
9535
9536 2010-09-22  Bruno Haible  <bruno@clisp.org>
9537
9538         Tests for module 'memcoll'.
9539         * modules/memcoll-tests: New file.
9540         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
9541
9542         memcoll, xmemcoll: Clarify size vs. length.
9543         * modules/memcoll.c (memcoll0): Clarify specification.
9544         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
9545         passed to collate_error.
9546
9547 2010-09-22  Bruno Haible  <bruno@clisp.org>
9548
9549         Tests for module 'memcasecmp'.
9550         * modules/memcasecmp-tests: New file.
9551         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
9552
9553 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
9554
9555         * lib/pthread.in.h: Add split double-inclusion guard, and include
9556         system <pthread.h> if there is one.  Use @@-style as in other
9557         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
9558         pthread.h doesn't.
9559         (pthread_mutexattr_destroy, pthread_mutexattr_init):
9560         (pthread_mutexattr_settype, pthread_mutex_trylock):
9561         New static inline functions, if there's no system <pthread.h>.
9562         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
9563         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
9564         Approximate with mutexes if the system lacks spinlocks, as in
9565         MacOS.
9566         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
9567         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
9568         @@-style.  Check for spinlocks separately.
9569         (gl_PTHREAD_DEFAULTS): New macro.
9570         * modules/pthread: Redo to use a more typical style for in.h files.
9571
9572 2010-09-21  Eric Blake  <eblake@redhat.com>
9573
9574         net_if: enhance tests
9575         * tests/test-net_if.c (main): Move signature checks earlier.
9576         Print failures to stderr.
9577         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
9578         Document the bug that we do not yet fix.
9579
9580 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9581
9582         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
9583         about gnulib, not GSS.
9584
9585 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
9586
9587         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
9588         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
9589         for Emacs.
9590         * build-aux/pmccabe2html: Make Makefile.am example code more
9591         cut-and-paste friendly.
9592
9593 2010-09-21  Simon Josefsson  <simon@josefsson.org>
9594
9595         * tests/test-net_if.c: New file.
9596         * modules/net_if-tests: New file.
9597
9598 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
9599
9600         pthread: add pthread_spin_destroy
9601         * lib/pthread.in.h (pthread_spin_destroy): New function.
9602
9603 2010-09-19  Bruno Haible  <bruno@clisp.org>
9604
9605         gnulib-tool: Fix --help output.
9606         * gnulib-tool (func_usage): Fix help message.
9607         Reported by Reuben Thomas <rrt@sc3d.org>.
9608
9609 2010-09-18  Jim Meyering  <meyering@redhat.com>
9610
9611         maint.mk: avoid unexpanded \n in two diagnostics
9612         * top/maint.mk (sc_prohibit_always_true_header_tests):
9613         Don't use a literal \n in a halt=... assignment.  It would not be
9614         expanded, and the two \n bytes would appear in the diagnostic output
9615         rather than the desired newline.  Use halt=$$(printf ... instead.
9616         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
9617
9618 2010-09-18  Bruno Haible  <bruno@clisp.org>
9619
9620         netinet_in: Doc tweak.
9621         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
9622         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9623
9624 2010-09-18  Jim Meyering  <meyering@redhat.com>
9625
9626         init.sh: correct an outdated comment
9627         * tests/init.sh (create_exe_shims_):  s/function/alias/
9628
9629         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
9630         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
9631         a file named "*.exe" is removed between the glob expansion and the
9632         processing of that oddly named file.
9633
9634 2010-09-17  Eric Blake  <eblake@redhat.com>
9635
9636         mirbsd: add some more support
9637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
9638         in BSD family.
9639         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
9640         devices as OpenBSD.
9641         * m4/host-os.m4 (mirbsd): Add MirBSD.
9642
9643         tests: fix unportable assumption on sys/wait.h
9644         * tests/test-sys_wait.c (main): Relax test.
9645         * tests/test-stdlib.c (main): Likewise.
9646
9647         init.sh: accomodate directory with no .exes
9648         * tests/init.sh: Accomodate directory containing only scripts.
9649
9650         tests: avoid compiler warning
9651         * tests/test-stdlib.c (main): Use the variable.
9652
9653         fdutimens, fdutimensat: update signature, again
9654         * lib/utimens.h (gl_futimens): Delete, and move signature...
9655         (fdutimens): ...here.
9656         (fdutimensat): Rearrange signature.
9657         (lutimensat): Rename variable for clarity.
9658         * lib/fdutimensat.c (fdutimensat): Update signature.
9659         * lib/utimens.c (fdutimens): Likewise.
9660         (gl_futimens): Delete.
9661         (utimens, lutimens): Update callers.
9662         * lib/futimens.c (futimens): Likewise.
9663         * tests/test-fdutimensat.c: Likewise.
9664         * tests/test-utimens.c: Likewise.
9665         * tests/test-futimens.h: Update comment.
9666         * NEWS: Mention this.
9667         Suggested by Paul Eggert.
9668
9669 2010-09-17  Bruno Haible  <bruno@clisp.org>
9670
9671         Take over the maintenance of some older macros from Autoconf.
9672         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
9673         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
9674         GNU Autoconf.
9675         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
9676         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
9677
9678 2010-09-17  Eric Blake  <eblake@redhat.com>
9679
9680         fdutimensat: drop atflag validation
9681         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
9682         with valid fd, to close a race scenario where futimens is
9683         unsupported and FILE was replaced by a symlink.
9684         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
9685         accordingly.
9686         Suggested by Paul Eggert.
9687
9688 2010-09-16  Bruno Haible  <bruno@clisp.org>
9689
9690         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
9691         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
9692
9693 2010-09-16  Bruno Haible  <bruno@clisp.org>
9694
9695         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
9696         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
9697         login_tty exists.
9698         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9699
9700 2010-09-16  Bruno Haible  <bruno@clisp.org>
9701
9702         login_tty: Make the replacement code work on BSD systems.
9703         * lib/login_tty.c: Include <sys/ioctl.h>.
9704         (login_tty): Use ioctl TIOCSCTTY when available.
9705         * modules/login_tty (Depends-on): Add sys_ioctl.
9706         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9707
9708 2010-09-16  Bruno Haible  <bruno@clisp.org>
9709
9710         login_tty: Stricter unit test.
9711         * modules/login_tty-tests (Depends-on): Add tcgetsid.
9712         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
9713         and tcgetsid() after login_tty.
9714         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9715
9716 2010-09-16  Bruno Haible  <bruno@clisp.org>
9717
9718         New module 'tcgetsid'.
9719         * lib/tcgetsid.c: New file.
9720         * m4/tcgetsid.m4: New file.
9721         * modules/tcgetsid: New file.
9722         * modules/termios (Depends-on): Add c++defs, warn-on-use.
9723         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
9724         GNULIB_TCGETSID, HAVE_TCGETSID.
9725         * lib/termios.in.h: Include <sys/types.h>.
9726         (tcgetsid): New declaration.
9727         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
9728         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
9729         * doc/posix-functions/tcgetsid.texi: Mention the new module.
9730         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
9731
9732 2010-09-16  Bruno Haible  <bruno@clisp.org>
9733
9734         Tests for module 'termios'.
9735         * modules/termios-c++-tests: New file.
9736         * modules/termios-tests: New file.
9737         * tests/test-termios-c++.cc: New file.
9738         * tests/test-termios.c: New file.
9739
9740         New module 'termios'.
9741         * modules/termios: New file.
9742         * lib/termios.in.h: New file.
9743         * m4/termios_h.m4: New file.
9744         * doc/posix-headers/termios.texi: Mention the new module.
9745
9746 2010-09-16  Eric Blake  <eblake@redhat.com>
9747
9748         fdutimensat: add an atflag parameter
9749         * lib/fdutimensat.c (fdutimensat): Add new parameter.
9750         * lib/utimens.h (fdutimensat): Update prototype.
9751         * tests/test-fdutimensat.c: Adjust test to match.
9752         * NEWS: Document the change.
9753         Suggested by Paul Eggert.
9754
9755 2010-09-16  Bruno Haible  <bruno@clisp.org>
9756
9757         Fix typos in comments.
9758         * lib/striconveh.h: Fix typo in comment.
9759         * lib/login_tty.c (login_tty): Likewise.
9760
9761 2010-09-15  Bruno Haible  <bruno@clisp.org>
9762
9763         stdlib: clarify MirBSD WEXITSTATUS bug
9764         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
9765         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9766
9767 2010-09-15  Eric Blake  <eblake@redhat.com>
9768
9769         stdlib: work around MirBSD WEXITSTATUS bug
9770         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
9771         * modules/stdlib (Depends-on): Add sys_wait.
9772         * tests/test-sys_wait.c (main): Enhance test.
9773         * tests/test-stdlib.c (main): Likewise.
9774         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
9775
9776         docs: mention MacOS issue with WEXITSTATUS(constant)
9777         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
9778         issue.
9779         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
9780
9781         strnlen: add tests
9782         * modules/strnlen-tests: New file.
9783         * tests/test-strnlen.c: Likewise.
9784
9785 2010-09-14  Bruno Haible  <bruno@clisp.org>
9786
9787         unistr/base: Avoid link errors when module 'libunistring' is also used.
9788         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
9789         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
9790         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
9791         Declare also when HAVE_LIBUNISTRING is set.
9792         Reported by Pádraig Brady <P@draigbrady.com>.
9793
9794 2010-09-14  Eric Blake  <eblake@redhat.com>
9795
9796         test-rawmemchr: make more robust
9797         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
9798         (Depends-on, configure.ac): Add needed prerequisites to use it.
9799         * modules/memchr-tests (Files, Depends-on, configure.ac):
9800         Likewise, to avoid implicit reliance on memchr module prereqs.
9801         * tests/test-memchr.c (main): Ensure proper masking.
9802         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
9803         reads.
9804
9805         memchr: detect glibc Alpha bug
9806         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
9807         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
9808         Alpha.
9809         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
9810         * tests/test-memchr.c (main): Enhance test.
9811         Reported by Nelson H. F. Beebe.
9812
9813 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9814
9815         fts, getcwd, glob: audit for dirfd returning -1
9816         * lib/fts.c (opendir): Remove #define; no longer used.
9817         (opendirat): New arg PDIR_FD.  All callers changed.
9818         (fts_build, _opendir2): Use new opendirat to avoid the need for
9819         dirfd, or for checking whether dirfd returns a negative value.
9820         Don't use opendir; always use openat followed by fdopendir.
9821         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
9822         it.
9823         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
9824         returns -1 here.
9825         * modules/fts (Depends-on): Remove dirfd.
9826         * modules/getcwd (Depends-on): Likewise.
9827
9828 2010-09-13  Eric Blake  <eblake@redhat.com>
9829
9830         float: fix broken MirBSD header
9831         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
9832         * doc/posix-headers/float.texi (float.h): Document it.
9833
9834 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
9835
9836         fts: use O_NOFOLLOW to avoid race condition when opening a directory
9837         * lib/fts.c (opendirat): New arg extra_flags.
9838         (__opendir2): Use it to avoid following symlinks when opening
9839         a directory, if symlinks are not supposed to be followed.  See
9840         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
9841
9842         fdopendir: preserve argument fd before returning
9843         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
9844         (fdopendir_with_dup, fd_clone_opendir): New static functions.
9845         (fdopendir): Use them, arranging for FD to be open to the same
9846         directory that it was when it started.  (It might be temporarily
9847         closed while fdopendir is running, so this not thread- or
9848         signal-safe.)  Be careful to do the right thing even when file
9849         descriptors are scarce and dup fails with errno == EMFILE.  See
9850         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
9851
9852 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
9853
9854         regex: Pass the system regex if its only problem is 32-bit regoff_t.
9855         * NEWS: Document change.
9856         * m4/regex.m4: Disable test for regoff_t size.
9857
9858 2010-09-13  Jim Meyering  <meyering@redhat.com>
9859
9860         fts: don't operate on an invalid file descriptor after failed dup
9861         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
9862         negative file descriptor.
9863
9864 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
9865
9866         savedir: add streamsavedir, deprecate fdsavedir
9867         * NEWS: Mention deprecation of fdsavedir.
9868         * lib/savedir.c (streamsavedir): New extern function, whose name
9869         ends in "savedir" to be consistent with the others.  This differs
9870         from savedirstream in that it doesn't close its argument.  The
9871         next version of GNU tar will use this instead of fdsavedir, to
9872         avoid some race conditions and conserve file descriptors.
9873         (savedirstream): Reimplement as a wrapper around streamsavedir.
9874         (fdsavedir): Add a comment deprecating this function.  As far as
9875         I know, only GNU tar used it, and GNU tar doesn't need it any more.
9876         * lib/savedir.h (streamsavedir): New decl.
9877         (fdsavedir): Add a comment deprecating this.
9878
9879 2010-09-10  Bruno Haible  <bruno@clisp.org>
9880
9881         langinfo: Fix last commit.
9882         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
9883         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
9884         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9885
9886 2010-09-10  Bruno Haible  <bruno@clisp.org>
9887
9888         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
9889         * lib/progreloc.c (O_EXEC): Define fallback.
9890
9891 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
9894         * NEWS: Document recent changes to fcntl-h.
9895         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
9896         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
9897         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
9898         Similarly for O_SEARCH; this last was already true, but not documented.
9899         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
9900         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
9901         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
9902         Likewise.
9903         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
9904         is zero, not whether it is defined.
9905         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
9906         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
9907         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
9908
9909 2010-09-10  Bruno Haible  <bruno@clisp.org>
9910
9911         langinfo, nl_langinfo: Fix for IRIX 5.3.
9912         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
9913         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
9914         HAVE_LANGINFO_YESEXPR.
9915         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
9916         HAVE_LANGINFO_YESEXPR.
9917         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
9918         HAVE_LANGINFO_T_FMT_AMPM is 0.
9919         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
9920         HAVE_LANGINFO_YESEXPR is 0.
9921         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
9922         NOEXPR.
9923         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
9924         * doc/posix-functions/nl_langinfo.texi: Likewise.
9925         Reported by Eric Blake.
9926
9927 2010-09-10  Bruno Haible  <bruno@clisp.org>
9928
9929         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
9930         * doc/glibc-functions/login_tty.texi: Mention the include file problem
9931         on FreeBSD 8.0 and OpenBSD 4.6.
9932         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
9933         * m4/pty_h.m4 (gl_PTY_H): Likewise.
9934         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
9935         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
9936         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
9937         ac_includes_default.
9938         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
9939
9940 2010-09-09  Eric Blake  <eblake@redhat.com>
9941
9942         strsignal: work around NetBSD bug
9943         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
9944         * lib/string.in.h (includes): Likewise.
9945         * doc/posix-functions/strsignal.texi (strsignal): Document the
9946         bug.
9947         Reported by Nelson H. F. Beebe.
9948
9949         gnulib-tool: work with NetBSD /bin/sh
9950         * gnulib-tool (func_cache_var, func_cache_lookup_module)
9951         (func_get_description, func_get_comment, func_get_status)
9952         (func_get_notice, func_get_applicability, func_get_filelist)
9953         (func_get_dependencies, func_get_autoconf_early_snippet)
9954         (func_get_autoconf_snippet, func_get_automake_snippet)
9955         (func_get_include_directive, func_get_link_directive)
9956         (func_get_license, func_get_maintainer, func_import): Avoid
9957         shell syntax errors from parsing syntax extensions.
9958
9959 2010-09-09  Bruno Haible  <bruno@clisp.org>
9960
9961         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
9962         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
9963         a reliable way to determine whether the 'alias' command works.
9964
9965 2010-09-08  Jim Meyering  <meyering@redhat.com>
9966
9967         init.sh: penalize a set-x-impaired shell; don't disqualify it
9968         * tests/init.sh: Too many shells corrupt application stderr when
9969         you set -x, so we can't afford to disqualify them, since at least
9970         on Irix-6.5, that would disqualify all bourne shells.
9971         Instead, use a two-pass approach.
9972         On the first pass, try to find a shell that meets the stricter
9973         condition that set -x does not corrupt stderr.
9974         If no shell meets the stricter condition, retest each candidate
9975         shell, but without that extra condition.  Finally, when
9976         VERBOSE=yes is requested and set -x might cause trouble, simply
9977         issue a warning and refrain from enabling debug output.
9978
9979 2010-09-08  Eric Blake  <eblake@redhat.com>
9980
9981         unsetenv: fix OpenBSD bug
9982         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
9983         * doc/posix-functions/unsetenv.texi (unsetenv): Update
9984         documentation.
9985         Reported by Jim Meyering.
9986
9987         strtod: work around IRIX 6.5 bug
9988         * lib/strtod.c (strtod): Reparse number on shorter string if
9989         exponent parse was invalid.
9990         * tests/test-strtod.c (main): Add check for "0x1p 2".
9991         Reported by Tom G. Christensen.
9992
9993         getopt: optimize previous patch
9994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
9995         empty variable.  Speed up awk script.
9996         Reported by Paolo Bonzini.
9997
9998 2010-09-08  Jim Meyering  <meyering@redhat.com>
9999
10000         test.sh: disqualify shells for which set -x corrupts stderr
10001         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
10002         and OpenBSD 4.7.  They make it so with "set -x", environment settings
10003         appear in stderr output.  For example, this command:
10004             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
10005         prints "P=1" on those two systems:
10006
10007 2010-09-08  Bruno Haible  <bruno@clisp.org>
10008
10009         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
10010         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
10011         commands, because some shells ignore redirections when there is an
10012         error in the command lookup.
10013         Reported by Eric Blake.
10014
10015 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
10016
10017         * lib/regex.h: Fix a mention of `regex_compile' (should be
10018         `re_compile_pattern').
10019         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
10020         (re_set_registers): Correct name of parameter in comment.
10021
10022         * doc/regex.texi: Add documentation for missing syntax flags.
10023         Remove commented-out documentation of defunct syntax option
10024         RE_NO_EMPTY_ALTS.
10025         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
10026         Add documentation of re_set_registers.
10027         Document trick to re-use a pattern buffer by setting fastmap manually.
10028         Update documentation of struct re_pattern_buffer per public members.
10029         Uncomment documentation of equivalence class operators and
10030         collating symbol operators, since they are now implemented,
10031         Explain leftmost-longest matching in relation to alternatives.
10032         Tidy documentation of substring matching.
10033         Remove POSIX documentation, which is done better in
10034         glibc, and refer the reader there. Keep BSD API documentation, as
10035         that is not readily available elsewhere.
10036
10037 2010-09-07  Eric Blake  <eblake@redhat.com>
10038
10039         getopt: handle POSIXLY_CORRECT set but not exported
10040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
10041         export state of POSIXLY_CORRECT, due to bash set -o posix.
10042         Reported by Dustin J. Mitchell.
10043
10044 2010-09-05  Bruno Haible  <bruno@clisp.org>
10045
10046         gnulib-tool: Highlight the changed options.
10047         * gnulib-tool (func_usage): Display the --import, --add-import,
10048         --remove-import explanations in bold font.
10049
10050 2010-09-06  Karl Berry  <karl@gnu.org>
10051
10052         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
10053
10054 2010-09-05  Bruno Haible  <bruno@clisp.org>
10055
10056         uniwidth/width: Update comment.
10057         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
10058         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
10059
10060 2010-09-05  Bruno Haible  <bruno@clisp.org>
10061
10062         isinf, isnan: Relax license.
10063         * modules/isinf (License): Change from GPL to LGPL, with consent from
10064         Ben Pfaff.
10065         * modules/isnan (License): Likewise.
10066         Requested by Ludovic Courtès.
10067
10068 2010-09-04  Bruno Haible  <bruno@clisp.org>
10069
10070         gnulib-tool: Help migration from --import to --add-import or --update.
10071         * gnulib-tool: Emit a verbose error message when --import is used
10072         without any module name.
10073
10074 2010-09-04  Bruno Haible  <bruno@clisp.org>
10075
10076         Update doc about gnulib-tool.
10077         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
10078         'gnulib-tool --update' in more detail.
10079         Reported by Eric Blake.
10080
10081 2010-09-04  Bruno Haible  <bruno@clisp.org>
10082
10083         gnulib-tool: Change --import. New options --add/remove-import.
10084         * gnulib-tool: New options --add-import, --remove-import.
10085         (func_usage): Document them.
10086         (have_associative): Define always.
10087         (func_import): In import mode, don't merge the specified settings with
10088         the cached settings. Implement remove-import mode.
10089         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
10090         Explain when to use them versus --import.
10091         (Simple update): Use --add-import instead of --import.
10092         * NEWS: Mention the change.
10093
10094 2010-09-04  Bruno Haible  <bruno@clisp.org>
10095
10096         * doc/gnulib-tool.texi (Initial import): Update paragraph about
10097         separate gnulib.mk.
10098
10099 2010-09-04  Bruno Haible  <bruno@clisp.org>
10100
10101         gnulib-tool: Don't talk about CVS any more.
10102         * gnulib-tool (func_usage, func_import): Write "version control"
10103         instead of CVS.
10104
10105 2010-09-04  Jim Meyering  <meyering@redhat.com>
10106
10107         maint.mk: avoid obscure sc_copyright_check failure in coreutils
10108         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
10109         false positives (whose names may be ill-chosen) when searching
10110         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
10111         would cause a false-positive.
10112
10113         avoid coreutils "make distcheck" failure
10114         Coreutils tests with an absolute build directory name that contains
10115         a space.  Not quoting this directory name caused a failure.
10116         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
10117         * tests/test-vc-list-files-cvs.sh: Likewise.
10118
10119 2010-09-04  Bruno Haible  <bruno@clisp.org>
10120
10121         gnulib-tool: Avoid error when run in a package without Makefile.am.
10122         * gnulib-tool: When collecting the m4dirs in a package that does not
10123         have a Makefile.am, eliminate those directories that contain no
10124         gnulib-cache.m4. Fix expression that counts these directories.
10125
10126 2010-09-04  Bruno Haible  <bruno@clisp.org>
10127
10128         update-copyright test: Improve output when perl is missing or too old.
10129         * tests/test-update-copyright.sh: Move test of Perl version down after
10130         the test whether Perl exists. Provide an explanation relating Perl's
10131         error message to Automake's SKIP: message.
10132
10133 2010-09-04  Bruno Haible  <bruno@clisp.org>
10134
10135         Don't augment PATH in TESTS_ENVIRONMENT.
10136         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
10137         set abs_aux_dir instead of augmenting PATH.
10138         * modules/vc-list-files-tests (Makefile.am): Likewise.
10139         * tests/test-update-copyright.sh: Augment PATH here.
10140         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
10141         path_prepend_.
10142         * tests/test-vc-list-files-git.sh: Likewise.
10143
10144 2010-09-04  Jim Meyering  <meyering@redhat.com>
10145
10146         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
10147         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
10148
10149 2010-09-04  Bruno Haible  <bruno@clisp.org>
10150
10151         strdup: Fix compilation error in C++ mode.
10152         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
10153         the macro.
10154
10155 2010-09-04  Bruno Haible  <bruno@clisp.org>
10156
10157         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
10158         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
10159         macro into a function.
10160         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
10161
10162 2010-09-04  Bruno Haible  <bruno@clisp.org>
10163
10164         Set PATH_SEPARATOR the same way autoconf does.
10165         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
10166         the value of PATH_SEPARATOR the same way autoconf-generated configure
10167         scripts do.
10168         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
10169         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
10170
10171 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10172
10173         Set PATH_SEPARATOR the same way autoconf does.
10174         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
10175         the same way autoconf-generated configure scripts do.
10176         * posix-modules: Likewise.
10177
10178 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
10179
10180         hash: fix safe_hasher const typo
10181         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
10182         const; otherwise, there is a type error later.
10183
10184 2010-09-02  Jim Meyering  <meyering@redhat.com>
10185
10186         test-update-copyright.sh: require perl 5.8.0
10187         * tests/test-update-copyright.sh: Require 5.8.0,
10188         which Tom G. Christensen has confirmed is adequate,
10189         while 5.6.1 is not.
10190
10191 2010-09-02  Eric Blake  <eblake@redhat.com>
10192
10193         tests: init.sh improvements for re-exec'ing with zsh
10194         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
10195         -vx through shell re-exec.
10196         Reported by Tom G. Christensen.
10197
10198         wctype: fix typo in previous commit
10199         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
10200         Reported by Ludovic Courtès.
10201
10202 2010-09-02  Jim Meyering  <meyering@redhat.com>
10203
10204         test-update-copyright.sh: skip test if Perl is too old
10205         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
10206         Reported by Tom G. Christensen.
10207
10208 2010-09-02  Bruno Haible  <bruno@clisp.org>
10209
10210         wctype: Avoid compilation error on IRIX 6.5.30.
10211         * lib/wctype.in.h (iswblank): Declare with a replacement if
10212         REPLACE_ISWBLANK is set.
10213         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
10214         declared. Set REPLACE_ISWBLANK.
10215         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
10216         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
10217         * doc/posix-headers/wctype.texi: Likewise.
10218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10219
10220 2010-09-01  Bruno Haible  <bruno@clisp.org>
10221
10222         New module 'socketlib'.
10223         * modules/socketlib: New file.
10224         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
10225         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
10226         * modules/sockets (Depends-on): Add socketlib.
10227         Suggested by Sam Steingold <sds@gnu.org>.
10228
10229 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10230
10231         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
10232
10233         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
10234         when one needs search access to a directory but not read access.
10235         On systems where it is available, it works in some cases where
10236         O_RDONLY does not, namely on directories that are searchable but
10237         not readable, and which need only to be searchable.  If O_SEARCH
10238         is not available, fall back to the traditional method of using
10239         O_RDONLY.
10240
10241         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
10242         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
10243         when opening a directory that needs only to be searchable.
10244         * lib/chdir-safer.c (chdir_no_follow): Likewise.
10245         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
10246         * lib/openat-proc.c (openat_proc_name): Likewise.
10247         * lib/openat.c (openat_needs_fchdir): Likewise.
10248         * lib/save-cwd.c (save_cwd): Likewise.
10249         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
10250
10251 2010-08-28  Bruno Haible  <bruno@clisp.org>
10252
10253         New module 'host-cpu-c-abi'.
10254         * modules/host-cpu-c-abi: New file.
10255         * m4/host-cpu-c-abi.m4: New file, based on part of
10256         clisp/src/m4/general.m4.
10257         Requested by Sam Steingold <sds@gnu.org>.
10258
10259 2010-08-31  Eric Blake  <eblake@redhat.com>
10260         and Jim Meyering  <meyering@redhat.com>
10261
10262         hash: factor, and guard against misbehaving hasher function
10263         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
10264         of table->hasher's return value.  Also protect against a hash value
10265         so large that adding it to table->bucket results in a NULL pointer.
10266         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
10267         Use it in place of open-coded check-and-abort.
10268
10269 2010-08-30  Bruno Haible  <bruno@clisp.org>
10270
10271         hash: silence spurious clang warning
10272         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
10273         Reported by Eric Blake.
10274
10275 2010-08-30  Eric Blake  <eblake@redhat.com>
10276
10277         strstr, memmem, strcasestr: avoid leaked shell message
10278         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
10279         FreeBSD.
10280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
10281         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
10282
10283         tests: silence clang warning
10284         * tests/test-malloca.c (do_allocation): Avoid dead store.
10285
10286 2010-08-29  Bruno Haible  <bruno@clisp.org>
10287
10288         gettext: Fix recent mistake.
10289         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
10290
10291 2010-08-29  Bruno Haible  <bruno@clisp.org>
10292
10293         selinux-h: Offer a --without-selinux option.
10294         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
10295         --without-selinux was specified, skip all tests and define
10296         HAVE_SELINUX_SELINUX_H to 0.
10297         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
10298         set LIB_SELINUX to empty.
10299         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
10300         gl_LIBSELINUX. If --without-selinux was specified, replace
10301         selinux/context.h.
10302         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
10303
10304 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10305             Bruno Haible  <bruno@clisp.org>
10306
10307         Make the module 'realloc-gnu' work again on AIX and OSF/1.
10308         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
10309         of HAVE_REALLOC.
10310         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
10311         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
10312         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
10313         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10314
10315 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10316             Bruno Haible  <bruno@clisp.org>
10317
10318         Make the module 'calloc-gnu' work again on AIX and OSF/1.
10319         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
10320         HAVE_CALLOC.
10321         * lib/xmalloc.c: Update accordingly.
10322         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
10323         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
10324         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
10325
10326 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10327             Bruno Haible  <bruno@clisp.org>
10328
10329         Make the module 'malloc-gnu' work again on AIX and OSF/1.
10330         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
10331         HAVE_MALLOC.
10332         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
10333         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
10334         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
10335
10336 2010-08-29  Bruno Haible  <bruno@clisp.org>
10337
10338         Update modules list.
10339         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10340         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
10341         (String handling <string.h>): Add astrxfrm.
10342         (File system functions): Add readlinkat.
10343
10344 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10345
10346         Tests for module 'realloc-gnu'.
10347         * modules/realloc-gnu-tests: New file.
10348         * tests/test-realloc-gnu.c: New file.
10349
10350         Tests for module 'calloc-gnu'.
10351         * modules/calloc-gnu-tests: New file.
10352         * tests/test-calloc-gnu.c: New file.
10353
10354         Tests for module 'malloc-gnu'.
10355         * modules/malloc-gnu-tests: New file.
10356         * tests/test-malloc-gnu.c: New file.
10357
10358 2010-08-28  Bruno Haible  <bruno@clisp.org>
10359
10360         Rename module 'realloc' -> 'realloc-gnu'.
10361         * modules/realloc-gnu: New file, copied from modules/realloc.
10362         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
10363         obsolete.
10364         * modules/mgetgroups (Depends-on): Update.
10365         * doc/posix-functions/realloc.texi: Update.
10366         * NEWS: Mention the change.
10367
10368         Rename module 'calloc' -> 'calloc-gnu'.
10369         * modules/calloc-gnu: New file, copied from modules/calloc.
10370         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
10371         obsolete.
10372         * doc/posix-functions/calloc.texi: Update.
10373         * NEWS: Mention the change.
10374
10375         Rename module 'malloc' -> 'malloc-gnu'.
10376         * modules/malloc-gnu: New file, copied from modules/malloc.
10377         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
10378         obsolete.
10379         * modules/argp (Depends-on): Update.
10380         * modules/regex (Depends-on): Update.
10381         * doc/posix-functions/malloc.texi: Update.
10382         * NEWS: Mention the change.
10383
10384 2010-08-28  Eric Blake  <eblake@redhat.com>
10385
10386         pread, pwrite: add missing dependency
10387         * modules/pread (Depends-on): Add extensions.
10388         * modules/pwrite (Depends-on): Likewise.
10389
10390 2010-08-28  Bruno Haible  <bruno@clisp.org>
10391
10392         unistr/u*-strchr: Fix tests dependencies.
10393         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
10394         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
10395         Reported by Ian Beckwith <ianb@erislabs.net>.
10396
10397 2010-08-28  Bruno Haible  <bruno@clisp.org>
10398
10399         read-file: Don't occupy too much unused memory.
10400         * lib/read-file.c (fread_file): Shrink the buffer at the end.
10401
10402 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
10403             Eric Blake  <eblake@redhat.com>
10404             Bruno Haible  <bruno@clisp.org>
10405
10406         read-file: Avoid memory reallocations with regular files.
10407         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
10408         (fread_file): With regular files, use the remaining length as the
10409         initial buffer size.  Check against overflow.
10410         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
10411         sys_stat.
10412
10413 2010-08-28  Bruno Haible  <bruno@clisp.org>
10414
10415         ftello: Relax license.
10416         * modules/ftello (License): Relax to LGPLv2+.
10417         Reported by Eric Blake.
10418
10419 2010-08-28  Bruno Haible  <bruno@clisp.org>
10420
10421         Avoid relocwrapper link errors due to gnulib replacement functions.
10422         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
10423         function.
10424         Reported by Ben Pfaff <blp@cs.stanford.edu>.
10425
10426 2010-08-28  Bruno Haible  <bruno@clisp.org>
10427
10428         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
10429         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
10430         defined.
10431         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
10432         Suggested by Eric Blake.
10433
10434 2010-08-28  Bruno Haible  <bruno@clisp.org>
10435
10436         sys_socket, netdb: Ensure socklen_t gets defined.
10437         * modules/sys_socket (Depends-on): Add socklen.
10438         * modules/netdb (Depends-on): Likewise.
10439         * modules/getaddrinfo (Depends-on): Remove socklen.
10440         * modules/getsockopt (Depends-on): Likewise.
10441         * modules/setsockopt (Depends-on): Likewise.
10442         * tests/test-sys_socket.c: Check that socklen_t is defined.
10443         * tests/test-netdb.c: Likewise.
10444         * m4/socklen.m4: Update comments.
10445         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10446
10447 2010-08-27  Eric Blake  <eblake@redhat.com>
10448
10449         login_tty: add missing dependency
10450         * modules/login_tty (Depends-on): Add pty.
10451
10452 2010-08-26  Eric Blake  <eblake@redhat.com>
10453
10454         lib-symbol-versions: fix m4 quoting
10455         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
10456         format for AC_LINK_IFELSE.
10457
10458         glob: fix compile test
10459         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
10460
10461         btowc: fix missing file
10462         * modules/btowc (Files): Also ship locale-fr.m4.
10463
10464         lseek: fix link test
10465         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
10466         AC_LINK_IFELSE.
10467
10468         include_next: silence autoconf 2.68 warning
10469         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
10470         AC_COMPILE_IFELSE as special.
10471         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
10472         autoconf < 2.68.
10473
10474         acl: fix compilation test
10475         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
10476         AC_COMPILE_IFELSE.
10477
10478 2010-08-26  Bruno Haible  <bruno@clisp.org>
10479
10480         Modernize AC_TRY_RUN invocations.
10481         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
10482         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
10483         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
10484         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
10485         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
10486         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
10487         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
10488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
10489         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10490         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10491         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
10492         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
10493         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
10494         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10495         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
10496         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
10497         gl_MBRLEN_NUL_RETVAL): Likewise.
10498         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10499         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10500         Likewise.
10501         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10502         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
10503         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
10504         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
10505         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
10506         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
10507         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
10508         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10509         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
10510         Likewise.
10511         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
10512         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
10513         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
10514         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10515         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10516         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
10517         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
10518         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
10519         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10521
10522 2010-08-26  Bruno Haible  <bruno@clisp.org>
10523
10524         Modernize AC_TRY_LINK invocations.
10525         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
10526         AC_TRY_LINK.
10527         * m4/argp.m4 (gl_ARGP): Likewise.
10528         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10529         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10530         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10531         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10532         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10533         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
10534         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10535         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10536         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10537         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10538         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10539         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
10540         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
10541         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10542         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
10543         * m4/hostent.m4 (gl_HOSTENT): Likewise.
10544         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
10545         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
10546         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
10547         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
10548         Likewise.
10549         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
10550         Likewise.
10551         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
10552         Likewise.
10553         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
10554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
10555         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
10556         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10557         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10558         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
10559         * m4/servent.m4 (gl_SERVENT): Likewise.
10560         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10561         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10562         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10563         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10564         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
10565         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10566         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10567         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10568         * modules/tsearch-tests (configure.ac): Likewise.
10569
10570 2010-08-26  Bruno Haible  <bruno@clisp.org>
10571
10572         Modernize AC_TRY_COMPILE invocations.
10573         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
10574         AC_TRY_COMPILE.
10575         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
10576         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
10577         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
10578         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
10579         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
10580         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
10581         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10582         * m4/lock.m4 (gl_LOCK): Likewise.
10583         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
10584         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
10585         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
10586         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
10587         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
10588         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
10589         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10590         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
10591         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
10592         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
10593         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
10594         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
10595         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
10596         extraneous semicolon.
10597
10598 2010-08-26  Jim Meyering  <meyering@redhat.com>
10599
10600         stat-time: relax license LGPL
10601         * modules/stat-time (License): Change from GPL to LGPL,
10602         with consent from all contributors, for use in libguile.
10603         Requested by Ludovic Courtès.
10604
10605 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
10606
10607         poll: return immediately on POLLHUP.
10608         * lib/poll.c (poll): Always set timeout before wait_timeout is
10609         computed.
10610
10611 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10612
10613         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
10614         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
10615         rmdir ("dir/.//"), unlinkat.
10616
10617 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
10618
10619         stdbool: avoid spurious failure with modern xlc
10620         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10621
10622 2010-08-24  Bruno Haible  <bruno@clisp.org>
10623
10624         getloadavg: simplify code
10625         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
10626         gl_have_func. Update comments.
10627
10628 2010-08-24  Eric Blake  <eblake@redhat.com>
10629
10630         getloadavg: don't define SVR4 on cygwin
10631         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
10632         only define SVR4 when -lkvm is required.
10633         Reported by Yaakov Selkowitz.
10634
10635 2010-08-24  Bruno Haible  <bruno@clisp.org>
10636
10637         priv-set: fix comment
10638         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
10639
10640 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         priv-set: fix comments
10643         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
10644         to match code, as suggested by David Bartley in:
10645         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
10646
10647 2010-08-23  Eric Blake  <eblake@redhat.com>
10648
10649         stdbool: avoid rejecting clang
10650         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
10651         * tests/test-stdbool.c: Enable more tests if using the system
10652         <stdbool.h> instead of the gnulib replacement.
10653         (main): Move xlc bug test to a runtime test for all compilers.
10654         Reported by Anders Kaseorg.
10655
10656         argz: fix shell quoting issue
10657         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
10658         Reported by Charles Wilson.
10659
10660 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
10661             Erik Faye-Lund <kusmabite@gmail.com>
10662
10663         poll, select: handle ERROR_BROKEN_PIPE.
10664         * lib/poll.c (win32_compute_revents): Return POLLHUP when
10665         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10666         * lib/select.c (win32_compute_revents): Do not mark a pipe
10667         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
10668
10669 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
10670
10671         fts: allow compilation with C++
10672         * lib/fts_.h: Specify extern "C" linkage with C++.
10673
10674 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10675
10676         Fix gnulib-tool sed script de-commentation for AIX sed.
10677         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
10678         sed.
10679
10680 2010-08-17  Eric Blake  <eblake@redhat.com>
10681
10682         test-stddef: test for (some) offsetof bugs
10683         * tests/test-stddef.c: Enhance test to ensure correct type of
10684         offsetof.
10685         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
10686         that we are not fixing at this time.
10687
10688 2010-08-15  Bruno Haible  <bruno@clisp.org>
10689
10690         stpncpy: Allow stpncpy to be defined as a macro.
10691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
10692         if it's already correctly declared.
10693         * lib/string.in.h (stpncpy): Undefine before redefining.
10694         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
10695
10696 2010-08-14  Bruno Haible  <bruno@clisp.org>
10697
10698         Rename module 'memxfrm' to 'amemxfrm'.
10699         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
10700         (amemxfrm): Renamed from memxfrm.
10701         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
10702         (amemxfrm): Renamed from memxfrm.
10703         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
10704         * NEWS: Mention the change.
10705         * MODULES.html.sh (String handling <string.h>): Update.
10706         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
10707         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
10708         * lib/unicase/u16-casexfrm.c: Likewise.
10709         * lib/unicase/u32-casexfrm.c: Likewise.
10710         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
10711         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
10712         * lib/uninorm/u16-normxfrm.c: Likewise.
10713         * lib/uninorm/u32-normxfrm.c: Likewise.
10714         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
10715         memxfrm.
10716         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
10717         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
10718         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
10719         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
10720         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
10721         Suggested by Paul Eggert.
10722
10723 2010-08-14  Bruno Haible  <bruno@clisp.org>
10724
10725         Tests for module 'astrxfrm'.
10726         * modules/astrxfrm-tests: New file.
10727         * tests/test-astrxfrm.c: New file.
10728
10729         New module 'astrxfrm'.
10730         * lib/astrxfrm.h: New file.
10731         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
10732         * modules/astrxfrm: New file.
10733
10734 2010-08-14  Reuben Thomas <rrt@sc3d.org>
10735
10736         regex: Tweak doc.
10737         * doc/regex.texi (Overview): Don't mention regex.c.
10738         (GNU Regular Expression Compiling): Likewise.
10739         (Match-end-of-line Operator): Mention 'not_eol'.
10740
10741 2010-08-14  Brian Gough  <bjg@gnu.org>
10742             Bruno Haible  <bruno@clisp.org>
10743
10744         git-merge-changelog: add doc relating to use with bzr and hg.
10745         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
10746
10747 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
10748
10749         pthread: fix pthread.h creation for srcdir != builddir
10750         * modules/pthread (Makefile.am): Fix the rule to work also in a
10751         non-srcdir build.
10752
10753 2010-08-13  Karl Berry  <karl@gnu.org>
10754
10755         * doc/regex.texi (Predefined Syntaxes): @smallexample.
10756         * doc/posix-*/*: force line break before @url of POSIX
10757         specifications.
10758         Suggested by Werner Lemberg.
10759
10760 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10761
10762         strtod: fix const diagnostic
10763         * lib/strtod.c (strtod): Don't assign const char * to char *,
10764         as this elicits a warning from GCC when warnings are enabled.
10765
10766 2010-08-10  Pádraig Brady <P@draigbrady.com>
10767         and Eric Blake  <eblake@redhat.com>
10768
10769         copy-acl: ignore ENOTSUP on HP-UX
10770         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
10771         so that it is available for HP-UX.
10772         * lib/copy-acl.c (qcopy_acl): Use it.
10773         Reported by Patrick M. Callahan.
10774
10775 2010-08-10  Eric Blake  <eblake@redhat.com>
10776
10777         open, chown: relax license
10778         * modules/open (License): Change to LGPLv2+, with consent by all
10779         authors, for use in augeas.
10780         * modules/chown (License): Likewise.
10781         * modules/lchown (Likewise): Likewise.
10782         Requested by Adam Stokes.
10783
10784 2010-08-09  Karl Berry  <karl@gnu.org>
10785
10786         * build-aux/ar-lib: new file, import from Automake.
10787         * config/srclist.txt: autocheck for updates.
10788
10789 2010-08-09  Eric Blake  <eblake@redhat.com>
10790
10791         readlinkat: adjust client modules
10792         * modules/areadlinkat (Depends-on): Use readlinkat, not
10793         symlinkat.
10794         * modules/areadlinkat-with-size (Depends-on): Likewise.
10795
10796         mknod: be more vocal about danger of running tests as root
10797         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
10798         root, since that is just asking for problems.
10799         Suggested by Bruno Haible, based on a report by Rainer Tammer.
10800
10801         readlinkat: split into its own module
10802         * modules/symlinkat: Split readlinkat...
10803         * modules/readlinkat: ...into separate module.
10804         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
10805         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
10806         * lib/symlinkat.c (readlinkat): Move...
10807         * lib/readlinkat.c: ...into new file.
10808         * modules/symlinkat-tests: Split readlinkat test...
10809         * modules/readlinkat-tests: ...into separate module.
10810         * tests/test-symlinkat.c: Split...
10811         * tests/test-readlinkat.c: ...into new file.
10812         * NEWS: Document the split.
10813         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
10814         * lib/unistd.in.h (readlinkat): Likewise.
10815         Suggested by Bruno Haible.
10816
10817 2010-08-08  Bruno Haible  <bruno@clisp.org>
10818
10819         memxfrm: Speed up.
10820         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
10821         that usually only one call to strxfrm is necessary for each string
10822         part.
10823         Reported by Paul Eggert <eggert@cs.ucla.edu>.
10824
10825 2010-08-07  Karl Berry  <karl@gnu.org>
10826
10827         * doc/posix-headers/limits.texi,
10828         * doc/posix-functions/malloc.texi,
10829         * doc/posix-functions/strsignal.texi: missing @item.
10830         * doc/ld-version-script.texi: spurious leading i.
10831         * doc/regex.texi (Interval Operators): no commas inside @var.
10832
10833 2010-08-01  Bruno Haible  <bruno@clisp.org>
10834
10835         Integrate the regex documentation.
10836         * doc/gnulib.texi: Define 'cn' index.
10837         (Regular expressions): New a chapter that includes regex.texi and
10838         regexprops-generic.texi.
10839         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
10840         syntax.
10841
10842         Whitespace cleanup.
10843         * doc/regex.texi: Remove trailing spaces.
10844
10845         Add regex documentation.
10846         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
10847         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
10848         Written by Kathy A. Hargreaves and Karl Berry.
10849
10850 2010-08-01  Bruno Haible  <bruno@clisp.org>
10851
10852         link: Update documentation.
10853         * doc/posix-functions/link.texi: Update regarding Solaris.
10854
10855 2010-07-31  Bruno Haible  <bruno@clisp.org>
10856
10857         Update modules list.
10858         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
10859         (String handling <string.h>): Add memcmp2, memxfrm.
10860         (Container data structures): Add xlist, xsublist, xoset.
10861         (Core language properties): Add alignof, unused-parameter.
10862         (Process control, Numeric conversion functions <stdlib.h>): Renamed
10863         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
10864         (Unibyte characters <ctype.h>): New section.
10865         (String handling <string.h>): New section.
10866         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
10867         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
10868         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
10869         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
10870         tan, tanh, tanl, y0, y1, yn.
10871         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
10872         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
10873         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
10874         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
10875         unlockpt, vdprintf, vdprintf-posix.
10876         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
10877         (File system functions): Add concat-filename, sys_file, sys_ioctl,
10878         xconcat-filename.
10879         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
10880         getdtablesize, pipe2, pipe2-safer.
10881         (Security): New section.
10882         (Networking functions): Add accept4.
10883         (Signal handling): Add sigpipe.
10884         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
10885         mbmemcasecoll.
10886         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
10887         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
10888         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
10889         pipe-filter-ii.
10890         (Misc): Add argp-version-etc, login_tty, parse-duration.
10891
10892 2010-07-31  Bruno Haible  <bruno@clisp.org>
10893
10894         Improve doc in MODULES.html.
10895         * modules/linkat (Description): Add the word "function".
10896         * modules/mkfifo (Description): Likewise.
10897         * modules/mknod (Description): Likewise.
10898         * modules/remove (Description): Likewise.
10899         * modules/renameat (Description): Likewise.
10900         * modules/stat (Description): Likewise.
10901         * modules/symlink (Description): Likewise.
10902         * modules/unlink (Description): Likewise.
10903
10904 2010-07-31  Bruno Haible  <bruno@clisp.org>
10905
10906         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
10907         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
10908         option --enable/disable-c++ instead of --enable/disable-cxx.
10909         * NEWS: Mention the change.
10910
10911 2010-07-31  Bruno Haible  <bruno@clisp.org>
10912
10913         readlink, areadlink: Relax test a bit.
10914         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
10915         alternative to ENOTDIR.
10916         * tests/test-areadlink.h (test_areadlink): Likewise.
10917         Reported by Rainer Tammer.
10918
10919 2010-07-31  Bruno Haible  <bruno@clisp.org>
10920
10921         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
10922         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
10923         character, perform the search using U_STRCHR.
10924         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
10925         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
10926         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
10927         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
10928         Suggested by Paolo Bonzini.
10929
10930 2010-07-31  Bruno Haible  <bruno@clisp.org>
10931
10932         unistr/u*-strstr: Fix dependencies.
10933         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
10934         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
10935         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
10936
10937 2010-07-31  Bruno Haible  <bruno@clisp.org>
10938
10939         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
10940         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
10941         the beginning of the loop.
10942         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
10943         cases in 'switch' statement.
10944
10945         unistr/u8-strchr: Fix several bugs.
10946         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
10947         the string. When not found, return NULL, not a pointer near the end.
10948
10949         More tests for unistr/u8-strchr.
10950         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
10951         that the function does not read past the first occurrence of the byte
10952         being searched.
10953         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
10954         * tests/unistr/test-u16-strchr.c (main): New function.
10955         * tests/unistr/test-u32-strchr.c (main): New function.
10956
10957 2010-07-31  Bruno Haible  <bruno@clisp.org>
10958
10959         posix-modules: Ignore backup files of documentation files.
10960         * posix-modules: grep only through files named *.texi.
10961
10962 2010-07-31  Bruno Haible  <bruno@clisp.org>
10963
10964         symlinkat: Fix documentation.
10965         * doc/posix-functions/readlinkat.texi: Fix module name.
10966
10967 2010-07-31  Bruno Haible  <bruno@clisp.org>
10968
10969         fchownat: Replace also when chown has the trailing slash bug.
10970         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
10971         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
10972         introduced on 2010-04-10.
10973         Reported by Rainer Tammer.
10974
10975 2010-07-31  Bruno Haible  <bruno@clisp.org>
10976
10977         linkat: Work around AIX 7.1 bug.
10978         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
10979         whether linkat handles trailing slash correctly. If not, replace linkat
10980         and define LINKAT_TRAILING_SLASH_BUG.
10981         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
10982         check whether (fd1,file1) points to a directory if file1 or file2 ends
10983         in a slash. Code taken from lib/link.c.
10984         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
10985         Reported by Rainer Tammer.
10986
10987 2010-07-31  Bruno Haible  <bruno@clisp.org>
10988
10989         Correctly determine whether pow is available in libc on AIX 7 with xlc.
10990         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
10991         This disables an xlc optimization that was causing wrong test results.
10992         Reported by Rainer Tammer.
10993
10994 2010-07-31  Bruno Haible  <bruno@clisp.org>
10995
10996         iconv: Work around AIX 6.1..7.1 bug.
10997         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
10998         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
10999         cross-compiling, guess no on all versions of AIX.
11000         Reported by Rainer Tammer.
11001
11002 2010-07-31  Bruno Haible  <bruno@clisp.org>
11003
11004         readlink: Relax test a bit.
11005         * tests/test-readlink.h (test_readlink): Allow different errno value
11006         when readlink is called with a file name that ends in / and refers to
11007         a file.
11008         Suggested by Eric Blake.
11009         Reported by Rainer Tammer.
11010
11011 2010-07-31  Bruno Haible  <bruno@clisp.org>
11012
11013         copysign: Does not require -lm on glibc systems.
11014         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
11015         gl_COMMON_DOUBLE_MATHFUNC.
11016         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
11017
11018 2010-07-31  Bruno Haible  <bruno@clisp.org>
11019
11020         duplocale: Work around AIX 7.1 bug.
11021         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
11022         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
11023         * lib/duplocale.c (rpl_duplocale): Update comment.
11024         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
11025         Reported by Rainer Tammer.
11026
11027 2010-07-30  Bruno Haible  <bruno@clisp.org>
11028
11029         dirfd: Avoid link error on AIX 7.1.
11030         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
11031         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
11032         exist, set REPLACE_DIRFD.
11033         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
11034         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
11035         * doc/posix-functions/dirfd.texi: Update.
11036         Reported by Rainer Tammer.
11037
11038 2010-07-30  Eric Blake  <eblake@redhat.com>
11039
11040         strtod: next round of AIX fixes
11041         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
11042         exponent.
11043         * tests/test-strtod.c (main): Enhance tests.
11044         * doc/posix-functions/strtod.texi (strtod): Document next bug.
11045         Reported by Rainer Tammer.
11046
11047         futimens: fix configure check
11048         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
11049         Reported by Bruno Haible.
11050
11051 2010-07-30  Bruno Haible  <bruno@clisp.org>
11052
11053         getline: Update regarding AIX.
11054         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
11055         Reported by Rainer Tammer.
11056
11057 2010-07-30  Bruno Haible  <bruno@clisp.org>
11058
11059         wcwidth: Drop replacement on AIX 7.
11060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
11061         AIX 7.
11062         Reported by Rainer Tammer.
11063
11064 2010-07-30  Bruno Haible  <bruno@clisp.org>
11065
11066         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
11067         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
11068         a 'char *'.
11069         Reported by Rainer Tammer.
11070
11071 2010-07-30  Bruno Haible  <bruno@clisp.org>
11072
11073         unlink: Update regarding AIX.
11074         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
11075         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
11076         Reported by Rainer Tammer.
11077
11078 2010-07-30  Bruno Haible  <bruno@clisp.org>
11079
11080         symlink: Update regarding AIX.
11081         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
11082         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
11083         Reported by Rainer Tammer.
11084
11085 2010-07-30  Bruno Haible  <bruno@clisp.org>
11086
11087         strndup: Update regarding AIX.
11088         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
11089         AIX 7.
11090         Reported by Rainer Tammer.
11091
11092 2010-07-30  Bruno Haible  <bruno@clisp.org>
11093
11094         stat: Update regarding AIX.
11095         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
11096         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
11097         Reported by Rainer Tammer.
11098
11099 2010-07-30  Bruno Haible  <bruno@clisp.org>
11100
11101         truncl: Fix autoconf test.
11102         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
11103         whether truncl works.
11104         Reported by Rainer Tammer.
11105
11106 2010-07-30  Bruno Haible  <bruno@clisp.org>
11107
11108         round: Update regarding AIX.
11109         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
11110         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
11111         Reported by Rainer Tammer.
11112
11113 2010-07-30  Bruno Haible  <bruno@clisp.org>
11114
11115         rename: Update regarding AIX.
11116         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
11117         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
11118         Reported by Rainer Tammer.
11119
11120 2010-07-30  Bruno Haible  <bruno@clisp.org>
11121
11122         printf.m4: Update regarding AIX.
11123         * m4/printf.m4: Update comments regarding AIX.
11124         Reported by Rainer Tammer.
11125
11126 2010-07-30  Bruno Haible  <bruno@clisp.org>
11127
11128         iconv: Update regarding AIX.
11129         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
11130         AIX 7.
11131         Reported by Rainer Tammer.
11132
11133 2010-07-30  Bruno Haible  <bruno@clisp.org>
11134
11135         getopt: Update regarding AIX.
11136         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
11137         no on AIX.
11138         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
11139         Reported by Rainer Tammer.
11140
11141 2010-07-30  Bruno Haible  <bruno@clisp.org>
11142
11143         ldexpl; Update regarding AIX.
11144         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
11145         on AIX 7.
11146         Reported by Rainer Tammer.
11147
11148 2010-07-30  Bruno Haible  <bruno@clisp.org>
11149
11150         frexpl: Update regarding AIX.
11151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
11152         on AIX 7.
11153         Reported by Rainer Tammer.
11154
11155 2010-07-30  Bruno Haible  <bruno@clisp.org>
11156
11157         open, fopen: Update regarding AIX.
11158         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
11159         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11160         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
11161         * doc/posix-functions/fopen.texi: Likewise.
11162         Reported by Rainer Tammer.
11163
11164 2010-07-30  Bruno Haible  <bruno@clisp.org>
11165
11166         chown: Update doc regarding AIX.
11167         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
11168         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
11169         Reported by Rainer Tammer.
11170
11171 2010-07-30  Eric Blake  <eblake@redhat.com>
11172
11173         strtod: fix bug in replacement function on AIX
11174         * lib/strtod.c (strtod): Special case broken "0x" parse in
11175         underlying strtod.
11176         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
11177         * doc/posix-functions/strtod.texi (strtod): Likewise.
11178         Reported by Rainer Tammer.
11179
11180 2010-07-30  Bruno Haible  <bruno@clisp.org>
11181
11182         mbrlen: Fix cross-compilation guess for AIX.
11183         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
11184         guess. Leftover from 2008-12-22.
11185
11186 2010-07-30  Bruno Haible  <bruno@clisp.org>
11187
11188         mbrtowc: Fix cross-compilation guess for AIX.
11189         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
11190         guess. Leftover from 2008-12-21.
11191
11192 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
11193
11194         init.sh: work around trap limitation of some shells
11195         * tests/init.sh (setup_): Move exit trap outside of shell function.
11196
11197 2010-07-29  Eric Blake  <eblake@redhat.com>
11198
11199         strtod: aid debugging
11200         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
11201         understanding why strtod is rejected.
11202
11203 2010-07-28  Bruno Haible  <bruno@clisp.org>
11204
11205         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
11206         * lib/unistr/u8-chr.c: Include <string.h>.
11207         * tests/unistr/test-u8-chr.c: Likewise.
11208         * tests/unistr/test-u16-chr.c: Likewise.
11209         * tests/unistr/test-u32-chr.c: Likewise.
11210         * tests/unistr/test-u8-strchr.c: Likewise.
11211         * tests/unistr/test-u16-strchr.c: Likewise.
11212         * tests/unistr/test-u32-strchr.c: Likewise.
11213         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
11214         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
11215         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
11216         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
11217
11218 2010-07-28  Bruno Haible  <bruno@clisp.org>
11219
11220         Use spaces for indentation, not tabs.
11221         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
11222
11223 2010-07-27  Bruno Haible  <bruno@clisp.org>
11224
11225         mbspcasecmp: Fix function specification.
11226         * lib/string.in.h (mbspcasecmp): Fix specification comment.
11227         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
11228         Reported by Eric Blake <eblake@redhat.com>.
11229
11230 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
11231
11232         timespec: use cast and not conditional, as truncation isn't possible
11233         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
11234         instead of a conditional.  Comment about the situation in more detail.
11235         This undoes most of the 2009-10-29 patch.
11236
11237 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
11238
11239         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
11240         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
11241         * lib/unistr/u8-strchr.c: Likewise.
11242         * modules/unistr/u8-chr: Depend on memchr.
11243
11244         unistr/u*-strchr: add tests
11245         * modules/unistr/u8-strchr-tests: New file.
11246         * modules/unistr/u16-strchr-tests: New file.
11247         * modules/unistr/u32-strchr-tests: New file.
11248         * tests/unistr/test-strchr.h: New file.
11249         * tests/unistr/test-u8-strchr.c: New file.
11250         * tests/unistr/test-u16-strchr.c: New file.
11251         * tests/unistr/test-u32-strchr.c: New file.
11252
11253         unistr/u*-chr: test multibyte sequences more
11254         * tests/unistr/test-chr.h: Do complete testing of the characters in the
11255         test vector.
11256         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
11257         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
11258         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
11259
11260         unistr/u*-chr: test multibyte sequences
11261         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
11262
11263         unistr/u*-chr: prepare for multibyte tests
11264         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
11265         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
11266         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
11267         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
11268         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
11269         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
11270
11271 2010-07-18  Bruno Haible  <bruno@clisp.org>
11272
11273         unistr/u8-strchr: Optimize non-ASCII argument case.
11274         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
11275         because the first byte often matches anyway.
11276         Reported by Pádraig Brady <P@draigbrady.com>.
11277
11278 2010-07-15  Karl Berry  <karl@gnu.org>
11279
11280         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
11281
11282 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
11283
11284         getcwd: on Solaris, work better if ancestors are inaccessible
11285         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
11286         buffer and size, try again with a large buffer.  This works better
11287         on Solaris, since its getcwd succeeds even if the path to the root
11288         is inaccessible, and this is helpful in common cases such as .zfs
11289         hidden directories.  Problem reported by J Chapman Flack in
11290         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
11291         Use system getcwd if it's declared, not merely if it's partly
11292         working; use the partly-working test only to avoid needless effort
11293         if the system getcwd fails.
11294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
11295         comment that was already obsolete and is now even more obsolete.
11296         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
11297         now might call strdup.
11298
11299 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
11300
11301         pthread: Add enough so that coreutils/src/sort.c compiles.
11302         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
11303         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
11304         gnulib. Include <sched.h> and <time.h>, as per POSIX.
11305         Include <sys/types.h>, in case it defines pthread_t.
11306         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
11307         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
11308         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
11309         (pthread_rwlockattr_t, pthread_spinlock_t):
11310         New typedefs, if HAVE_PTHREAD_T is not defined.
11311         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
11312         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
11313         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
11314         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
11315         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
11316         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
11317         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
11318         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
11319         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
11320         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
11321         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
11322         New macros.
11323         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
11324         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
11325         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
11326         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
11327         (pthread_spin_unlock): New dummy functions.
11328         (pthread_create): Return EAGAIN; don't set errno.
11329         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
11330         require AC_C_INLINE.
11331         * modules/pthread (Depends-on): Add sched, time.
11332         (pthread.h): Use AM_V_GEN.
11333
11334 2010-07-13  Bruno Haible  <bruno@clisp.org>
11335
11336         striconveh: Don't malloc memory if the result buffer is sufficient.
11337         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
11338         buffer if its size is sufficient.
11339         Reported by Ludovic Courtès <ludo@gnu.org>.
11340
11341 2010-07-13  Bruno Haible  <bruno@clisp.org>
11342
11343         strtod: Add safety check.
11344         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
11345
11346 2010-07-12  Bruno Haible  <bruno@clisp.org>
11347
11348         Unify tests that set gl_cv_func_ldexpl_no_libm.
11349         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
11350         gl_FUNC_LDEXPL.
11351         (gl_FUNC_LDEXPL): Invoke it.
11352         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11353
11354 2010-07-12  Bruno Haible  <bruno@clisp.org>
11355
11356         Unify tests that set gl_cv_func_ldexp_no_libm.
11357         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
11358         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
11359         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
11360         (configure.ac): Simply invoke gl_FUNC_LDEXP.
11361         * modules/strtod (Files): Add m4/ldexp.m4.
11362
11363 2010-07-12  Bruno Haible  <bruno@clisp.org>
11364
11365         Unify tests that set gl_cv_func_frexpl_no_libm.
11366         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
11367         gl_FUNC_FREXPL_NO_LIBM.
11368         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
11369         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11370
11371 2010-07-12  Bruno Haible  <bruno@clisp.org>
11372
11373         Unify tests that set gl_cv_func_frexp_no_libm.
11374         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
11375         gl_FUNC_FREXP_NO_LIBM.
11376         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
11377         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11378
11379 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11380
11381         memcoll: clarify sizes versus lengths, document better, and tweak perf
11382         * lib/memcoll.c (strcoll_loop, memcoll0):
11383         Improve quality of descriptive comments.  Name variables
11384         consistently as to whether they are lengths (which do not include
11385         terminating null) versus sizes (which do).
11386         * lib/xmemcoll.c (xmemcoll0): Likewise.
11387         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
11388         returned when s1size == 0; this is easier to compile and saves
11389         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
11390
11391 2010-07-12  Bruno Haible  <bruno@clisp.org>
11392
11393         Tests for module '_Exit'.
11394         * modules/_Exit-tests: New file.
11395         * tests/test-_Exit.sh: New file.
11396         * tests/test-_Exit.c: New file.
11397
11398         New module '_Exit'.
11399         * lib/stdlib.in.h (__attribute__): New macro.
11400         (_Exit): New declaration.
11401         * lib/_Exit.c: New file.
11402         * m4/_Exit.m4: New file.
11403         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
11404         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
11405         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
11406         * modules/_Exit: New file.
11407         * tests/test-stdlib-c++.cc (_Exit): Check signature.
11408         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
11409
11410 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
11411
11412         strtod: make it more-accurate typically, and don't require libm
11413         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
11414         Include limits.h.  Don't include string.h.
11415         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
11416         (locale_isspace): New function, so that no casts are needed to
11417         check whether *s is a space.
11418         (ldexp): Provide an unused dummy if not available.
11419         (scale_radix_exp, parse_number, underlying_strtod): New functions.
11420         (strtod): Use them.  This implementation prefers to use the
11421         underlying strtod if available, falling back on our own code
11422         only to fix known bugs.  This is more likely to produce an
11423         accurate result.  Also, it avoids the use of libm functions.
11424         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
11425         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
11426         was absent, but it caused a test failure with coreutils.
11427         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
11428         with libm.
11429         * modules/strtod (Makefile.am, Link): libm is no longer needed.
11430         * modules/strtod-tests (Makefile.am): Likewise.
11431
11432 2010-07-11  Pádraig Brady  <P@draigBrady.com>
11433             Bruno Haible  <bruno@clisp.org>
11434
11435         unistr/u8-strchr: Optimize ASCII argument case.
11436         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
11437
11438 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11439
11440         (x)memcoll: minor tweaks
11441         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
11442         is after the type that it qualifies.
11443         (memcoll0): Likewise.
11444         * lib/memcoll.h (memcoll0): Likewise.
11445         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
11446         * lib/xmemcoll.h (xmemcoll0): Likewise.
11447         * lib/memcoll.c (memcoll0): Correct the comment.  This function
11448         differs from memcoll in that the NUL byte is part of the argument.
11449         Omit the abort-checks, as performance is a real issue here.  Plus,
11450         the checks were wrong anyway (an off-by-one error).  Omit local
11451         variable 'diff', as it's a bit clearer that way.
11452         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
11453         no longer needed.
11454
11455 2010-07-08  Chen Guo <chenguo4@yahoo.com>
11456
11457         (x)memcoll: speedup when input is known to be NUL delimited
11458         * lib/memcoll.c: Include stdlib.
11459         (memcoll0) New function.
11460         (strcoll_loop) New function, refactored for use in both memcoll
11461         and memcoll0.
11462         * lib/memcoll.h: Add prototype for memcoll0.
11463         * lib/xmemcoll.c: (xmemcoll0) New function.
11464         (collate_error) New function, refactored for use in both xmemcoll
11465         and xmemcoll0.
11466         * lib/xmemcoll.h: Add prototype for xmemcoll0.
11467         * m4/memcoll.m4: add inline invocation.
11468
11469 2010-07-06  Pádraig Brady  <P@draigBrady.com>
11470
11471         * build-aux/bootstrap: Remove any local translations
11472         from the translation project synchronization directory,
11473         so that local only translations are not distributed.
11474
11475 2010-07-04  Bruno Haible  <bruno@clisp.org>
11476
11477         fsusage: Clarify which code applies to which platforms.
11478         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
11479         platform.
11480         * lib/fsusage.c (get_fs_usage): Likewise.
11481
11482 2010-07-04  Bruno Haible  <bruno@clisp.org>
11483
11484         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
11485         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
11486         Reported by Martin Lambers <marlam@marlam.de>.
11487
11488 2010-07-04  Jim Meyering  <meyering@redhat.com>
11489
11490         hash: once again explicitly disallow insertion of NULL
11491         * lib/hash.c (hash_insert0): Reinstate just-removed test:
11492         inserting a NULL pointer cannot work with these functions.
11493         Add a comment with details.
11494         This reverts part of the 2010-07-01 commit, 5bef1a35
11495         "hash: extend module to deal with non-pointer keys".
11496
11497 2010-07-01  Bruno Haible  <bruno@clisp.org>
11498
11499         stdbool: Update doc.
11500         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
11501         Info from Christian Weisgerber <naddy@mips.inka.de>.
11502
11503 2010-07-01  Jim Meyering  <meyering@redhat.com>
11504
11505         hash: extend module to deal with non-pointer keys
11506         * lib/hash.c (hash_insert0): New interface, much like hash_insert
11507         but that allows insertion of non-pointer entries.
11508         Do not disallow an ENTRY value of NULL.
11509         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
11510         * lib/hash.h (hash_insert0): Declare.
11511
11512 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
11513
11514         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
11515         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
11516         not present (i.e. with autoconf 2.59 and when using gettextize, not
11517         gnulib), require AC_GNU_SOURCE instead.
11518
11519 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
11520
11521         idpriv-drop: Fix tests.
11522         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
11523         not to the test-idpriv-droptemp program.
11524
11525 2010-06-29  Bruno Haible  <bruno@clisp.org>
11526
11527         string: Fix syntax error with g++ 2.96.
11528         * lib/string.in.h (__pure__): Remove definition.
11529         (_GL_ATTRIBUTE_PURE): New macro.
11530         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
11531         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
11532         Reported by Christian Weisgerber <naddy@mips.inka.de>.
11533
11534 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
11535
11536         unitypes: Fix bug introduced on 2010-05-18.
11537         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
11538
11539 2010-06-22  Eric Blake  <eblake@redhat.com>
11540
11541         memmem: slight optimization
11542         * lib/str-two-way.h (critical_factorization): Update comments.
11543         Reduce work during factorization phase.
11544         Reported by Carlos Bueno <carlos@bueno.org>.
11545
11546 2010-06-21  Bruno Haible  <bruno@clisp.org>
11547
11548         Fix HAVE_CALLOC_POSIX misnomer.
11549         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
11550         !HAVE_CALLOC_POSIX.
11551         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
11552         HAVE_CALLOC_POSIX.
11553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
11554         instead of HAVE_CALLOC_POSIX.
11555         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
11556         HAVE_CALLOC_POSIX.
11557
11558         Use modern idiom for calloc() replacement.
11559         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
11560         AC_FUNC_CALLOC.
11561         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
11562         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
11563         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11564         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
11565         (gl_REPLACE_CALLOC): New macro.
11566
11567 2010-06-21  Bruno Haible  <bruno@clisp.org>
11568
11569         Fix HAVE_REALLOC_POSIX misnomer.
11570         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
11571         !HAVE_REALLOC_POSIX.
11572         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
11573         HAVE_REALLOC_POSIX.
11574         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
11575         instead of HAVE_REALLOC_POSIX.
11576         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
11577         HAVE_REALLOC_POSIX.
11578
11579         Use modern idiom for realloc() replacement.
11580         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
11581         AC_FUNC_REALLOC.
11582         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
11583         Autoconf's AC_FUNC_REALLOC.
11584         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11585         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
11586         (gl_REPLACE_REALLOC): New macro.
11587         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11588
11589 2010-06-21  Bruno Haible  <bruno@clisp.org>
11590
11591         Fix HAVE_MALLOC_POSIX misnomer.
11592         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
11593         !HAVE_MALLOC_POSIX.
11594         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
11595         HAVE_MALLOC_POSIX.
11596         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
11597         instead of HAVE_MALLOC_POSIX.
11598         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
11599         HAVE_MALLOC_POSIX.
11600
11601         Use modern idiom for malloc() replacement.
11602         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
11603         AC_FUNC_MALLOC.
11604         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
11605         Autoconf's AC_FUNC_MALLOC.
11606         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
11607         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
11608         (gl_REPLACE_MALLOC): New macro.
11609         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
11610
11611 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
11612
11613         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
11614         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
11615         This macro takes 3 arguments, not 4.
11616
11617 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
11618
11619         ipv6: fix detection under mingw
11620         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
11621         in6_addr.
11622
11623 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
11624
11625         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
11626         that strtod() works when cross-compiling to a glibc version known
11627         to work.
11628
11629 2010-06-15  Bruno Haible  <bruno@clisp.org>
11630
11631         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
11632
11633 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
11634
11635         select: Correct timeout.
11636         * lib/select.c (rpl_select): Compute wait_timeout correctly.
11637
11638 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
11639
11640         git-version-gen: init shell var to avoid env var influence
11641         * build-aux/git-version-gen (v): Init shell var to empty.
11642
11643 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
11644
11645         priv-set: Don't assume that priv.h exists merely because getppriv does.
11646         See Jan Andersen's bug report about AIX 5L in
11647         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
11648         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
11649         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
11650         * lib/priv-set.h: Likewise.
11651         * tests/test-priv-set.c: Likewise.
11652
11653 2010-06-13  Bruno Haible  <bruno@clisp.org>
11654
11655         relocatable: Make it easier to test whether to install wrappers.
11656         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
11657         RELOCATABLE_VIA_WRAPPER.
11658
11659 2010-06-13  Bruno Haible  <bruno@clisp.org>
11660
11661         gnulib-tool: Display specified modules and dependencies differently.
11662         * gnulib-tool (func_show_module_list): New function.
11663         (func_import, func_create_testdir): Invoke it.
11664         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
11665
11666 2010-06-13  Bruno Haible  <bruno@clisp.org>
11667
11668         gnulib-tool: Align code of func_import and func_create_testdir.
11669         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
11670         specified_modules.
11671
11672 2010-06-12  Jim Meyering  <meyering@redhat.com>
11673
11674         test-inttostr: avoid spurious failure on Solaris 9
11675         * tests/test-inttostr.c (main): Skip the test when snprintf fails
11676         to accept "%ju".  Reported by Bruno Haible.
11677
11678 2010-06-11  Jim Meyering  <meyering@redhat.com>
11679
11680         test-sys_socket: mark variables as used more readably
11681         * tests/test-sys_socket.c (main): Mark otherwise unused variables
11682         as "used" explicitly via (void) statement casts.  This is more
11683         readable than using them in an artificial return expression.
11684         Suggestion from Bruno Haible.
11685
11686 2010-06-11  Bruno Haible  <bruno@clisp.org>
11687
11688         Avoid some more warnings from "gcc -Wwrite-strings".
11689         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
11690         to 'const char *'.
11691         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
11692         * tests/test-c-strcasestr.c (main): Likewise.
11693         * tests/test-mbscasestr1.c (main): Likewise.
11694         * tests/test-mbscasestr2.c (main): Likewise.
11695         * tests/test-memmem.c (main): Likewise.
11696         * tests/test-strstr.c (main): Likewise.
11697         * tests/test-strcasestr.c (main): Likewise.
11698
11699 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11700
11701         init.sh: change framework_failure_ to fail with status 99, not 1
11702         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
11703         automake's parallel-tests rule that this is an unexpected failure,
11704         even if the test is listed in XFAIL_TESTS.
11705
11706 2010-06-11  Jim Meyering  <meyering@redhat.com>
11707
11708         test-inttostr: avoid warnings about 4-6KB literal strings
11709         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
11710         Include "macros.h", for its definition of ASSERT.
11711         (CK): s/assert/ASSERT/
11712         * modules/inttostr-tests (Files): Add macros.h.
11713
11714         init.sh: don't use $ME_ or skip_ before they are defined
11715         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
11716         their first uses.  Also hoist their companions: warn_, fail_,
11717         framework_failure_, $stderr_fileno.  Prompted by a patch from
11718         Stefano Lattarini.
11719
11720         test-sys_socket: avoid set-but-not-used warnings from gcc
11721         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
11722         avoid warning about set-but-not-used variables.
11723
11724         test-xvasprintf: avoid 'const' discard warnings
11725         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
11726         "const" when assigning from literal strings.
11727         (test_xasprintf): Add "void" in function argument list to placate
11728         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
11729
11730         tests: avoid compilation warnings in argmatch and exclude tests...
11731         in packages that define ARGMATCH_DIE_DECL, like coreutils.
11732         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
11733         Since it always exits, declare with the "noreturn" attribute.
11734         * tests/test-argmatch.c: Likewise.
11735
11736         tests: avoid 'const' discard warnings in mbsstr tests
11737         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
11738         * tests/test-mbsstr2.c (main): Likewise.
11739
11740         test-verify: avoid warning from gcc's -Wmissing-declarations
11741         * tests/test-verify.c (function): Declare to be static.
11742
11743         test-inttostr.c: include <string.h> for use of strcmp
11744         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
11745
11746         test-linkat: avoid failed assertion on "other" architectures
11747         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
11748         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
11749         sparc: https://bugs.launchpad.net/bugs/591968
11750
11751 2010-06-11  Jim Meyering  <meyering@redhat.com>
11752
11753         printf.m4: avoid autoconf's "Expanded Before Required" warning
11754         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
11755         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
11756         autoconf warning.
11757
11758 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
11759
11760         Replacement header templates are now named with ".in", not "_".
11761         * doc/gnulib-intro.texi: Correct.
11762
11763 2010-06-10  Jim Meyering  <meyering@redhat.com>
11764
11765         inttostr-tests: depend on snprintf, not snprintf-posix
11766         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
11767         snprintf-posix, to avoid this aclocal failure:
11768           missing file gnulib-tests/vasnprintf.c
11769           configure.ac:45: error: expected source file, required through \
11770           AC_LIBSOURCES, not found
11771
11772 2010-06-10  Jim Meyering  <meyering@redhat.com>
11773
11774         inttostr: add a new function, inttostr, and tests
11775         The namesake function was not available.  The existence of the
11776         template file, inttostr.c makes its addition nontrivial.
11777         * lib/anytostr.c: Rename from inttostr.c.
11778         (anytostr): Rename from inttostr.
11779         * lib/inttostr.c: New file.
11780         * modules/inttostr (Files): Add anytostr.c.
11781         (Makefile.am): Set lib_SOURCES instead of ...
11782         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
11783         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
11784         * lib/offtostr.c: Likewise.
11785         * lib/uinttostr.c: Likewise.
11786         * lib/umaxtostr.c: Likewise.
11787         * modules/inttostr-tests: New file.
11788         * tests/test-inttostr.c: New file.  Test these functions.
11789
11790 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
11791             Bruno Haible  <bruno@clisp.org>
11792
11793         Add "Extending Gnulib" chapter to manual.
11794         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
11795         chapter.
11796         (Extending Gnulib): New chapter.
11797         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
11798         chapter.
11799
11800 2010-06-09  Bruno Haible  <bruno@clisp.org>
11801
11802         Avoid relocwrapper link errors due to gnulib replacement functions.
11803         * lib/areadlink.c: Use the system's malloc, realloc functions.
11804         (areadlink): Set errno to ENOMEM explicitly.
11805         * modules/areadlink (Depends-on): Remove malloc-posix.
11806         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11807
11808 2010-06-09  Bruno Haible  <bruno@clisp.org>
11809
11810         Avoid relocwrapper link errors due to gnulib replacement functions.
11811         * lib/canonicalize-lgpl.c: Use the system's malloc function.
11812         * lib/malloca.c: Likewise.
11813         * lib/relocatable.c: Likewise.
11814         * lib/progreloc.c: Use the system's malloc, sprintf functions.
11815         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
11816         * lib/setenv.c: Use the system's malloc, realloc functions.
11817         * lib/strerror.c: Use the system's sprintf function.
11818         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11819
11820 2010-06-04  Bruno Haible  <bruno@clisp.org>
11821
11822         Prefer documented low-level autoconf macro names.
11823         * m4/lib-link.m4: Use m4_translit instead of translit.
11824         * m4/environ.m4: Likewise.
11825         * m4/mathfunc.m4: Likewise.
11826         * m4/onceonly.m4: Likewise.
11827         * m4/stdint.m4: Likewise.
11828         Suggested by Eric Blake.
11829
11830 2010-06-04  Martin Lambers  <marlam@marlam.de>
11831             Bruno Haible  <bruno@clisp.org>
11832
11833         havelib: Allow library names with '+' characters.
11834         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
11835         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
11836
11837 2010-06-09  Bruno Haible  <bruno@clisp.org>
11838
11839         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
11840         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
11841         realloc failed.
11842
11843 2010-06-08  Peter Simons  <simons@cryp.to>
11844
11845         maint.mk: make the news-check rule more configurable
11846         * top/maint.mk (news-check-lines-spec) New variable.
11847         (news-check): Use "sed -n 1,10p" in place of "head".
11848
11849 2010-06-07  Jim Meyering  <meyering@redhat.com>
11850
11851         do-release-commit-and-tag: fix typo in --help
11852         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
11853
11854         regex: avoid new dead-code warning with gcc-4.6.0
11855         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
11856         if-block containing a while-loop.  It's been unused for at least
11857         5 years.
11858
11859 2010-06-05  Bruno Haible  <bruno@clisp.org>
11860
11861         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
11862         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
11863
11864 2010-06-04  Bruno Haible  <bruno@clisp.org>
11865
11866         Update to GNU gettext 0.18.1.
11867         * modules/gettext (configure.ac): Require gettext infrastructure from
11868         version 0.18.1.
11869
11870 2010-06-03  Bruno Haible  <bruno@clisp.org>
11871
11872         Don't use AC_LIBOBJ with file names in subdirectories.
11873         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
11874         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
11875         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
11876         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
11877         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
11878         gl_LIBUNISTRING_LIBSOURCE.
11879         (Makefile.am): Augment lib_SOURCES here, conditionally.
11880         * NEWS: Drop requirement for Automake option 'subdir-objects'.
11881
11882 2010-06-03  Bruno Haible  <bruno@clisp.org>
11883
11884         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
11885         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
11886         expansion does not end with a newline.
11887         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
11888         unnecessary newline.
11889
11890 2010-06-03  Bruno Haible  <bruno@clisp.org>
11891
11892         Reduce dependencies.
11893         * tests/test-quotearg.h: New file, extracted from
11894         tests/test-quotearg.c.
11895         * tests/test-quotearg-simple.c: New file, extracted from
11896         tests/test-quotearg.c.
11897         * tests/test-quotearg.c: Don't include <ctype.h>.
11898         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
11899         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
11900         use_quote_double_quotes, use_quotearg_colon): Moved to
11901         tests/test-quotearg.h.
11902         (results_g, flag_results, custom_quotes, custom_results): Moved
11903         to tests/test-quotearg-simple.c.
11904         (main): Moved the part that does not depend on gettext to
11905         tests/test-quotearg-simple.c. Return 77 if the test cannot be
11906         performed.
11907         * modules/quotearg-simple: New file.
11908         * modules/quotearg-simple-tests: New file.
11909         * modules/quotearg (Depends-on): Add quotearg-simple.
11910         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
11911         (Files): Add tests/test-quotearg.h.
11912         Reported by Paolo Bonzini.
11913
11914 2010-06-03  Bruno Haible  <bruno@clisp.org>
11915
11916         Reduce dependencies.
11917         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
11918
11919 2010-06-03  Bruno Haible  <bruno@clisp.org>
11920
11921         time: Undefine more broken macros.
11922         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
11923         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
11924         Reported by Eric Blake.
11925
11926 2010-06-03  Bruno Haible  <bruno@clisp.org>
11927
11928         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
11929         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
11930         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
11931         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
11932         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
11933         Reported by Ludovic Courtès <ludo@gnu.org>.
11934
11935 2010-06-02  Eric Blake  <eblake@redhat.com>
11936
11937         time: work with mingw + pthreads-win32 library
11938         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
11939         if timespec is defined only in pthread.h.
11940         * modules/time (Makefile.am): Substitute it.
11941         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
11942         <pthread.h>, when needed.
11943         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
11944         from the library.
11945
11946 2010-05-31  Bruno Haible  <bruno@clisp.org>
11947
11948         Avoid expanding two macros in the wrong order.
11949         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
11950         gl_LIBUNISTRING if it is defined.
11951         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
11952         autoconf >= 2.64.
11953         Reported by Ludovic Courtès <ludo@gnu.org>.
11954
11955 2010-05-27  Jim Meyering  <meyering@redhat.com>
11956
11957         maint.mk: also prohibit "#undef" of always-defined symbols
11958         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
11959         Allow more than one space before the symbol name.
11960         (sc_prohibit_always-defined_macros): Use grep's -E, now that
11961         the regexp uses alternation.
11962
11963 2010-05-26  Eric Blake  <eblake@redhat.com>
11964
11965         maint.mk: avoid echo -e
11966         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
11967         Convert all uses of echo -* to printf.
11968         Reported by Matthias Bolte.
11969
11970 2010-05-25  Bruno Haible  <bruno@clisp.org>
11971
11972         Update to GNU gettext 0.18, part 2.
11973         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
11974         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
11975
11976 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11977
11978         Add missing include in test-pwrite.c.
11979         * tests/test-pwrite.c: Include string.h, for strcmp.
11980
11981 2010-05-24  Bruno Haible  <bruno@clisp.org>
11982
11983         * NEWS: Mention requirement for Automake option 'subdir-objects'.
11984
11985 2010-05-24  Bruno Haible  <bruno@clisp.org>
11986
11987         Don't use conversion with transliteration in u{8,16,32}_strcoll.
11988         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
11989         iconveh_error argument.
11990         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
11991         U_STRCONV_TO_LOCALE.
11992         * lib/unistr/u16-strcoll.c: Likewise.
11993         * lib/unistr/u32-strcoll.c: Likewise.
11994         * modules/unistr/u8-strcoll (Depends-on): Add
11995         uniconv/u8-strconv-to-enc, localcharset. Remove
11996         uniconv/u8-strconv-to-locale.
11997         (configure.ac): Bump version number.
11998         * modules/unistr/u16-strcoll (Depends-on): Add
11999         uniconv/u16-strconv-to-enc, localcharset. Remove
12000         uniconv/u16-strconv-to-locale.
12001         (configure.ac): Bump version number.
12002         * modules/unistr/u32-strcoll (Depends-on): Add
12003         uniconv/u32-strconv-to-enc, localcharset. Remove
12004         uniconv/u32-strconv-to-locale.
12005         (configure.ac): Bump version number.
12006
12007 2010-05-24  Bruno Haible  <bruno@clisp.org>
12008
12009         Avoid a test failure on NetBSD 5.0.
12010         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
12011         an iconv() bug.
12012
12013 2010-05-24  Bruno Haible  <bruno@clisp.org>
12014
12015         Adjust #include directive style.
12016         * modules/regex (Includes): Recommend to write <regex.h>.
12017
12018 2010-05-24  Bruno Haible  <bruno@clisp.org>
12019
12020         regex: Don't require alloca.
12021         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
12022         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
12023         only inside if (0).
12024
12025 2010-05-23  Jim Meyering  <meyering@redhat.com>
12026
12027         test-renameat.c: include <sys/stat.h>
12028         * tests/test-renameat.c: Include <sys/stat.h>; required for
12029         definition of S_IS* macros.
12030
12031 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
12032
12033         Update maintainer documentation for 'relocatable-prog' module.
12034         * doc/relocatable-maint.texi: Update.
12035         Comments by Bruno Haible.
12036
12037 2010-05-23  Bruno Haible  <bruno@clisp.org>
12038
12039         git-merge-changelog: Enable --split-merged-entry by default.
12040         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
12041         (usage): Don't mention this option any more.
12042         Reported by Ralf Wildenhues.
12043
12044 2010-05-23  Jim Meyering  <meyering@redhat.com>
12045
12046         test-pwrite: do not leave behind a test file named "out"
12047         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
12048         The trivial-looking use of init.sh is really necessary.
12049         It ensures that the temporary file, "out", is created in
12050         a temporary directory, and removed upon termination.
12051         * tests/test-pwrite.sh: Re-add file.
12052         * modules/pwrite-tests: Reference it.
12053
12054 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12055
12056         Fix output redirection buglet in init.sh.
12057         * tests/init.sh: Fix redirection of stderr.
12058
12059 2010-05-20  Simon Josefsson  <simon@josefsson.org>
12060
12061         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
12062
12063 2010-05-17  Simon Josefsson  <simon@josefsson.org>
12064
12065         * modules/valgrind-tests: New file.
12066         * m4/valgrind-tests.m4: New file.
12067         * doc/valgrind-tests.texi: New file.
12068         * doc/gnulib.texi (Running self-tests under valgrind): New
12069         section.
12070
12071 2010-05-19  Bruno Haible  <bruno@clisp.org>
12072
12073         Clean up dead code in recent commit.
12074         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
12075         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
12076         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
12077         Suggested by Paolo Bonzini.
12078
12079 2010-05-19  Bruno Haible  <bruno@clisp.org>
12080
12081         Avoid valgrind error reports from libunistring.
12082         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
12083         * modules/libunistring (Files): Add it.
12084         * modules/libunistring-optional (Files): Likewise.
12085
12086 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
12087             Bruno Haible  <bruno@clisp.org>
12088
12089         New module 'libunistring-optional'.
12090         * modules/libunistring-optional: New file.
12091         * m4/libunistring-base.m4: New file.
12092         * m4/libunistring-optional.m4: New file.
12093         * lib/unicase.in.h: Renamed from lib/unicase.h.
12094         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
12095         * lib/unictype.in.h: Renamed from lib/unictype.h.
12096         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
12097         * lib/uniname.in.h: Renamed from lib/uniname.h.
12098         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
12099         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
12100         * lib/unistr.in.h: Renamed from lib/unistr.h.
12101         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
12102         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
12103         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
12104         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
12105         gl_LIBUNISTRING. If the library was found, determine the installed
12106         version and set LIBUNISTRING_VERSION.
12107         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
12108         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
12109         handle a configuration option --with-included-libunistring.
12110         * modules/libunistring (Files): Add m4/absolute-header.m4.
12111         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
12112         Add m4/libunistring-base.m4.
12113         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12114         (Makefile.am): Build unicase.h from unicase.in.h.
12115         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
12116         Add m4/libunistring-base.m4.
12117         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12118         (Makefile.am): Build uniconv.h from uniconv.in.h.
12119         * modules/unictype/base (Files): Use unictype.in.h instead of
12120         unictype.h. Add m4/libunistring-base.m4.
12121         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12122         (Makefile.am): Build unictype.h from unictype.in.h.
12123         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
12124         Add m4/libunistring-base.m4.
12125         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12126         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
12127         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
12128         Add m4/libunistring-base.m4.
12129         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12130         (Makefile.am): Build uniname.h from uniname.in.h.
12131         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
12132         Add m4/libunistring-base.m4.
12133         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12134         (Makefile.am): Build uninorm.h from uninorm.in.h.
12135         * modules/unistdio/base (Files): Use unistdio.in.h instead of
12136         unistdio.h. Add m4/libunistring-base.m4.
12137         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12138         (Makefile.am): Build unistdio.h from unistdio.in.h.
12139         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
12140         Add m4/libunistring-base.m4.
12141         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12142         (Makefile.am): Build unistr.h from unistr.in.h.
12143         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
12144         Add m4/libunistring-base.m4.
12145         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12146         (Makefile.am): Build unitypes.h from unitypes.in.h.
12147         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
12148         Add m4/libunistring-base.m4.
12149         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12150         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
12151         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
12152         uniwidth.h. Add m4/libunistring-base.m4.
12153         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
12154         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
12155         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
12156         instead of augmenting lib_SOURCES.
12157         * modules/unicase/empty-suffix-context: Likewise.
12158         * modules/unicase/locale-language: Likewise.
12159         * modules/unicase/tolower: Likewise.
12160         * modules/unicase/totitle: Likewise.
12161         * modules/unicase/toupper: Likewise.
12162         * modules/unicase/u8-casecmp: Likewise.
12163         * modules/unicase/u8-casecoll: Likewise.
12164         * modules/unicase/u8-casefold: Likewise.
12165         * modules/unicase/u8-casexfrm: Likewise.
12166         * modules/unicase/u8-ct-casefold: Likewise.
12167         * modules/unicase/u8-ct-tolower: Likewise.
12168         * modules/unicase/u8-ct-totitle: Likewise.
12169         * modules/unicase/u8-ct-toupper: Likewise.
12170         * modules/unicase/u8-is-cased: Likewise.
12171         * modules/unicase/u8-is-casefolded: Likewise.
12172         * modules/unicase/u8-is-lowercase: Likewise.
12173         * modules/unicase/u8-is-titlecase: Likewise.
12174         * modules/unicase/u8-is-uppercase: Likewise.
12175         * modules/unicase/u8-prefix-context: Likewise.
12176         * modules/unicase/u8-suffix-context: Likewise.
12177         * modules/unicase/u8-tolower: Likewise.
12178         * modules/unicase/u8-totitle: Likewise.
12179         * modules/unicase/u8-toupper: Likewise.
12180         * modules/unicase/u16-casecmp: Likewise.
12181         * modules/unicase/u16-casecoll: Likewise.
12182         * modules/unicase/u16-casefold: Likewise.
12183         * modules/unicase/u16-casexfrm: Likewise.
12184         * modules/unicase/u16-ct-casefold: Likewise.
12185         * modules/unicase/u16-ct-tolower: Likewise.
12186         * modules/unicase/u16-ct-totitle: Likewise.
12187         * modules/unicase/u16-ct-toupper: Likewise.
12188         * modules/unicase/u16-is-cased: Likewise.
12189         * modules/unicase/u16-is-casefolded: Likewise.
12190         * modules/unicase/u16-is-lowercase: Likewise.
12191         * modules/unicase/u16-is-titlecase: Likewise.
12192         * modules/unicase/u16-is-uppercase: Likewise.
12193         * modules/unicase/u16-prefix-context: Likewise.
12194         * modules/unicase/u16-suffix-context: Likewise.
12195         * modules/unicase/u16-tolower: Likewise.
12196         * modules/unicase/u16-totitle: Likewise.
12197         * modules/unicase/u16-toupper: Likewise.
12198         * modules/unicase/u32-casecmp: Likewise.
12199         * modules/unicase/u32-casecoll: Likewise.
12200         * modules/unicase/u32-casefold: Likewise.
12201         * modules/unicase/u32-casexfrm: Likewise.
12202         * modules/unicase/u32-ct-casefold: Likewise.
12203         * modules/unicase/u32-ct-tolower: Likewise.
12204         * modules/unicase/u32-ct-totitle: Likewise.
12205         * modules/unicase/u32-ct-toupper: Likewise.
12206         * modules/unicase/u32-is-cased: Likewise.
12207         * modules/unicase/u32-is-casefolded: Likewise.
12208         * modules/unicase/u32-is-lowercase: Likewise.
12209         * modules/unicase/u32-is-titlecase: Likewise.
12210         * modules/unicase/u32-is-uppercase: Likewise.
12211         * modules/unicase/u32-prefix-context: Likewise.
12212         * modules/unicase/u32-suffix-context: Likewise.
12213         * modules/unicase/u32-tolower: Likewise.
12214         * modules/unicase/u32-totitle: Likewise.
12215         * modules/unicase/u32-toupper: Likewise.
12216         * modules/unicase/ulc-casecmp: Likewise.
12217         * modules/unicase/ulc-casecoll: Likewise.
12218         * modules/unicase/ulc-casexfrm: Likewise.
12219         * modules/uniconv/u8-conv-from-enc: Likewise.
12220         * modules/uniconv/u8-conv-to-enc: Likewise.
12221         * modules/uniconv/u8-strconv-from-enc: Likewise.
12222         * modules/uniconv/u8-strconv-from-locale: Likewise.
12223         * modules/uniconv/u8-strconv-to-enc: Likewise.
12224         * modules/uniconv/u8-strconv-to-locale: Likewise.
12225         * modules/uniconv/u16-conv-from-enc: Likewise.
12226         * modules/uniconv/u16-conv-to-enc: Likewise.
12227         * modules/uniconv/u16-strconv-from-enc: Likewise.
12228         * modules/uniconv/u16-strconv-from-locale: Likewise.
12229         * modules/uniconv/u16-strconv-to-enc: Likewise.
12230         * modules/uniconv/u16-strconv-to-locale: Likewise.
12231         * modules/uniconv/u32-conv-from-enc: Likewise.
12232         * modules/uniconv/u32-conv-to-enc: Likewise.
12233         * modules/uniconv/u32-strconv-from-enc: Likewise.
12234         * modules/uniconv/u32-strconv-from-locale: Likewise.
12235         * modules/uniconv/u32-strconv-to-enc: Likewise.
12236         * modules/uniconv/u32-strconv-to-locale: Likewise.
12237         * modules/unictype/bidicategory-byname: Likewise.
12238         * modules/unictype/bidicategory-name: Likewise.
12239         * modules/unictype/bidicategory-of: Likewise.
12240         * modules/unictype/bidicategory-test: Likewise.
12241         * modules/unictype/block-list: Likewise.
12242         * modules/unictype/block-test: Likewise.
12243         * modules/unictype/category-C: Likewise.
12244         * modules/unictype/category-Cc: Likewise.
12245         * modules/unictype/category-Cf: Likewise.
12246         * modules/unictype/category-Cn: Likewise.
12247         * modules/unictype/category-Co: Likewise.
12248         * modules/unictype/category-Cs: Likewise.
12249         * modules/unictype/category-L: Likewise.
12250         * modules/unictype/category-Ll: Likewise.
12251         * modules/unictype/category-Lm: Likewise.
12252         * modules/unictype/category-Lo: Likewise.
12253         * modules/unictype/category-Lt: Likewise.
12254         * modules/unictype/category-Lu: Likewise.
12255         * modules/unictype/category-M: Likewise.
12256         * modules/unictype/category-Mc: Likewise.
12257         * modules/unictype/category-Me: Likewise.
12258         * modules/unictype/category-Mn: Likewise.
12259         * modules/unictype/category-N: Likewise.
12260         * modules/unictype/category-Nd: Likewise.
12261         * modules/unictype/category-Nl: Likewise.
12262         * modules/unictype/category-No: Likewise.
12263         * modules/unictype/category-P: Likewise.
12264         * modules/unictype/category-Pc: Likewise.
12265         * modules/unictype/category-Pd: Likewise.
12266         * modules/unictype/category-Pe: Likewise.
12267         * modules/unictype/category-Pf: Likewise.
12268         * modules/unictype/category-Pi: Likewise.
12269         * modules/unictype/category-Po: Likewise.
12270         * modules/unictype/category-Ps: Likewise.
12271         * modules/unictype/category-S: Likewise.
12272         * modules/unictype/category-Sc: Likewise.
12273         * modules/unictype/category-Sk: Likewise.
12274         * modules/unictype/category-Sm: Likewise.
12275         * modules/unictype/category-So: Likewise.
12276         * modules/unictype/category-Z: Likewise.
12277         * modules/unictype/category-Zl: Likewise.
12278         * modules/unictype/category-Zp: Likewise.
12279         * modules/unictype/category-Zs: Likewise.
12280         * modules/unictype/category-and: Likewise.
12281         * modules/unictype/category-and-not: Likewise.
12282         * modules/unictype/category-byname: Likewise.
12283         * modules/unictype/category-name: Likewise.
12284         * modules/unictype/category-none: Likewise.
12285         * modules/unictype/category-of: Likewise.
12286         * modules/unictype/category-or: Likewise.
12287         * modules/unictype/category-test: Likewise.
12288         * modules/unictype/combining-class: Likewise.
12289         * modules/unictype/ctype-alnum: Likewise.
12290         * modules/unictype/ctype-alpha: Likewise.
12291         * modules/unictype/ctype-blank: Likewise.
12292         * modules/unictype/ctype-cntrl: Likewise.
12293         * modules/unictype/ctype-digit: Likewise.
12294         * modules/unictype/ctype-graph: Likewise.
12295         * modules/unictype/ctype-lower: Likewise.
12296         * modules/unictype/ctype-print: Likewise.
12297         * modules/unictype/ctype-punct: Likewise.
12298         * modules/unictype/ctype-space: Likewise.
12299         * modules/unictype/ctype-upper: Likewise.
12300         * modules/unictype/ctype-xdigit: Likewise.
12301         * modules/unictype/decimal-digit: Likewise.
12302         * modules/unictype/digit: Likewise.
12303         * modules/unictype/mirror: Likewise.
12304         * modules/unictype/numeric: Likewise.
12305         * modules/unictype/property-alphabetic: Likewise.
12306         * modules/unictype/property-ascii-hex-digit: Likewise.
12307         * modules/unictype/property-bidi-arabic-digit: Likewise.
12308         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
12309         * modules/unictype/property-bidi-block-separator: Likewise.
12310         * modules/unictype/property-bidi-boundary-neutral: Likewise.
12311         * modules/unictype/property-bidi-common-separator: Likewise.
12312         * modules/unictype/property-bidi-control: Likewise.
12313         * modules/unictype/property-bidi-embedding-or-override: Likewise.
12314         * modules/unictype/property-bidi-eur-num-separator: Likewise.
12315         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
12316         * modules/unictype/property-bidi-european-digit: Likewise.
12317         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
12318         * modules/unictype/property-bidi-left-to-right: Likewise.
12319         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
12320         * modules/unictype/property-bidi-other-neutral: Likewise.
12321         * modules/unictype/property-bidi-pdf: Likewise.
12322         * modules/unictype/property-bidi-segment-separator: Likewise.
12323         * modules/unictype/property-bidi-whitespace: Likewise.
12324         * modules/unictype/property-byname: Likewise.
12325         * modules/unictype/property-combining: Likewise.
12326         * modules/unictype/property-composite: Likewise.
12327         * modules/unictype/property-currency-symbol: Likewise.
12328         * modules/unictype/property-dash: Likewise.
12329         * modules/unictype/property-decimal-digit: Likewise.
12330         * modules/unictype/property-default-ignorable-code-point: Likewise.
12331         * modules/unictype/property-deprecated: Likewise.
12332         * modules/unictype/property-diacritic: Likewise.
12333         * modules/unictype/property-extender: Likewise.
12334         * modules/unictype/property-format-control: Likewise.
12335         * modules/unictype/property-grapheme-base: Likewise.
12336         * modules/unictype/property-grapheme-extend: Likewise.
12337         * modules/unictype/property-grapheme-link: Likewise.
12338         * modules/unictype/property-hex-digit: Likewise.
12339         * modules/unictype/property-hyphen: Likewise.
12340         * modules/unictype/property-id-continue: Likewise.
12341         * modules/unictype/property-id-start: Likewise.
12342         * modules/unictype/property-ideographic: Likewise.
12343         * modules/unictype/property-ids-binary-operator: Likewise.
12344         * modules/unictype/property-ids-trinary-operator: Likewise.
12345         * modules/unictype/property-ignorable-control: Likewise.
12346         * modules/unictype/property-iso-control: Likewise.
12347         * modules/unictype/property-join-control: Likewise.
12348         * modules/unictype/property-left-of-pair: Likewise.
12349         * modules/unictype/property-line-separator: Likewise.
12350         * modules/unictype/property-logical-order-exception: Likewise.
12351         * modules/unictype/property-lowercase: Likewise.
12352         * modules/unictype/property-math: Likewise.
12353         * modules/unictype/property-non-break: Likewise.
12354         * modules/unictype/property-not-a-character: Likewise.
12355         * modules/unictype/property-numeric: Likewise.
12356         * modules/unictype/property-other-alphabetic: Likewise.
12357         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
12358         * modules/unictype/property-other-grapheme-extend: Likewise.
12359         * modules/unictype/property-other-id-continue: Likewise.
12360         * modules/unictype/property-other-id-start: Likewise.
12361         * modules/unictype/property-other-lowercase: Likewise.
12362         * modules/unictype/property-other-math: Likewise.
12363         * modules/unictype/property-other-uppercase: Likewise.
12364         * modules/unictype/property-paired-punctuation: Likewise.
12365         * modules/unictype/property-paragraph-separator: Likewise.
12366         * modules/unictype/property-pattern-syntax: Likewise.
12367         * modules/unictype/property-pattern-white-space: Likewise.
12368         * modules/unictype/property-private-use: Likewise.
12369         * modules/unictype/property-punctuation: Likewise.
12370         * modules/unictype/property-quotation-mark: Likewise.
12371         * modules/unictype/property-radical: Likewise.
12372         * modules/unictype/property-sentence-terminal: Likewise.
12373         * modules/unictype/property-soft-dotted: Likewise.
12374         * modules/unictype/property-space: Likewise.
12375         * modules/unictype/property-terminal-punctuation: Likewise.
12376         * modules/unictype/property-test: Likewise.
12377         * modules/unictype/property-titlecase: Likewise.
12378         * modules/unictype/property-unassigned-code-value: Likewise.
12379         * modules/unictype/property-unified-ideograph: Likewise.
12380         * modules/unictype/property-uppercase: Likewise.
12381         * modules/unictype/property-variation-selector: Likewise.
12382         * modules/unictype/property-white-space: Likewise.
12383         * modules/unictype/property-xid-continue: Likewise.
12384         * modules/unictype/property-xid-start: Likewise.
12385         * modules/unictype/property-zero-width: Likewise.
12386         * modules/unictype/scripts: Likewise.
12387         * modules/unictype/syntax-c-ident: Likewise.
12388         * modules/unictype/syntax-c-whitespace: Likewise.
12389         * modules/unictype/syntax-java-ident: Likewise.
12390         * modules/unictype/syntax-java-whitespace: Likewise.
12391         * modules/unilbrk/u8-possible-linebreaks: Likewise.
12392         * modules/unilbrk/u8-width-linebreaks: Likewise.
12393         * modules/unilbrk/u16-possible-linebreaks: Likewise.
12394         * modules/unilbrk/u16-width-linebreaks: Likewise.
12395         * modules/unilbrk/u32-possible-linebreaks: Likewise.
12396         * modules/unilbrk/u32-width-linebreaks: Likewise.
12397         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
12398         * modules/unilbrk/ulc-width-linebreaks: Likewise.
12399         * modules/uniname/uniname: Likewise.
12400         * modules/uninorm/canonical-decomposition: Likewise.
12401         * modules/uninorm/composition: Likewise.
12402         * modules/uninorm/decomposing-form: Likewise.
12403         * modules/uninorm/decomposition: Likewise.
12404         * modules/uninorm/filter: Likewise.
12405         * modules/uninorm/nfc: Likewise.
12406         * modules/uninorm/nfd: Likewise.
12407         * modules/uninorm/nfkc: Likewise.
12408         * modules/uninorm/nfkd: Likewise.
12409         * modules/uninorm/u8-normalize: Likewise.
12410         * modules/uninorm/u8-normcmp: Likewise.
12411         * modules/uninorm/u8-normcoll: Likewise.
12412         * modules/uninorm/u8-normxfrm: Likewise.
12413         * modules/uninorm/u16-normalize: Likewise.
12414         * modules/uninorm/u16-normcmp: Likewise.
12415         * modules/uninorm/u16-normcoll: Likewise.
12416         * modules/uninorm/u16-normxfrm: Likewise.
12417         * modules/uninorm/u32-normalize: Likewise.
12418         * modules/uninorm/u32-normcmp: Likewise.
12419         * modules/uninorm/u32-normcoll: Likewise.
12420         * modules/uninorm/u32-normxfrm: Likewise.
12421         * modules/unistdio/u8-asnprintf: Likewise.
12422         * modules/unistdio/u8-asprintf: Likewise.
12423         * modules/unistdio/u8-snprintf: Likewise.
12424         * modules/unistdio/u8-sprintf: Likewise.
12425         * modules/unistdio/u8-u8-asnprintf: Likewise.
12426         * modules/unistdio/u8-u8-asprintf: Likewise.
12427         * modules/unistdio/u8-u8-snprintf: Likewise.
12428         * modules/unistdio/u8-u8-sprintf: Likewise.
12429         * modules/unistdio/u8-u8-vasnprintf: Likewise.
12430         * modules/unistdio/u8-u8-vasprintf: Likewise.
12431         * modules/unistdio/u8-u8-vsnprintf: Likewise.
12432         * modules/unistdio/u8-u8-vsprintf: Likewise.
12433         * modules/unistdio/u8-vasnprintf: Likewise.
12434         * modules/unistdio/u8-vasprintf: Likewise.
12435         * modules/unistdio/u8-vsnprintf: Likewise.
12436         * modules/unistdio/u8-vsprintf: Likewise.
12437         * modules/unistdio/u16-asnprintf: Likewise.
12438         * modules/unistdio/u16-asprintf: Likewise.
12439         * modules/unistdio/u16-snprintf: Likewise.
12440         * modules/unistdio/u16-sprintf: Likewise.
12441         * modules/unistdio/u16-u16-asnprintf: Likewise.
12442         * modules/unistdio/u16-u16-asprintf: Likewise.
12443         * modules/unistdio/u16-u16-snprintf: Likewise.
12444         * modules/unistdio/u16-u16-sprintf: Likewise.
12445         * modules/unistdio/u16-u16-vasnprintf: Likewise.
12446         * modules/unistdio/u16-u16-vasprintf: Likewise.
12447         * modules/unistdio/u16-u16-vsnprintf: Likewise.
12448         * modules/unistdio/u16-u16-vsprintf: Likewise.
12449         * modules/unistdio/u16-vasnprintf: Likewise.
12450         * modules/unistdio/u16-vasprintf: Likewise.
12451         * modules/unistdio/u16-vsnprintf: Likewise.
12452         * modules/unistdio/u16-vsprintf: Likewise.
12453         * modules/unistdio/u32-asnprintf: Likewise.
12454         * modules/unistdio/u32-asprintf: Likewise.
12455         * modules/unistdio/u32-snprintf: Likewise.
12456         * modules/unistdio/u32-sprintf: Likewise.
12457         * modules/unistdio/u32-u32-asnprintf: Likewise.
12458         * modules/unistdio/u32-u32-asprintf: Likewise.
12459         * modules/unistdio/u32-u32-snprintf: Likewise.
12460         * modules/unistdio/u32-u32-sprintf: Likewise.
12461         * modules/unistdio/u32-u32-vasnprintf: Likewise.
12462         * modules/unistdio/u32-u32-vasprintf: Likewise.
12463         * modules/unistdio/u32-u32-vsnprintf: Likewise.
12464         * modules/unistdio/u32-u32-vsprintf: Likewise.
12465         * modules/unistdio/u32-vasnprintf: Likewise.
12466         * modules/unistdio/u32-vasprintf: Likewise.
12467         * modules/unistdio/u32-vsnprintf: Likewise.
12468         * modules/unistdio/u32-vsprintf: Likewise.
12469         * modules/unistdio/ulc-asnprintf: Likewise.
12470         * modules/unistdio/ulc-asprintf: Likewise.
12471         * modules/unistdio/ulc-fprintf: Likewise.
12472         * modules/unistdio/ulc-snprintf: Likewise.
12473         * modules/unistdio/ulc-sprintf: Likewise.
12474         * modules/unistdio/ulc-vasnprintf: Likewise.
12475         * modules/unistdio/ulc-vasprintf: Likewise.
12476         * modules/unistdio/ulc-vfprintf: Likewise.
12477         * modules/unistdio/ulc-vsnprintf: Likewise.
12478         * modules/unistdio/ulc-vsprintf: Likewise.
12479         * modules/unistr/u8-check: Likewise.
12480         * modules/unistr/u8-chr: Likewise.
12481         * modules/unistr/u8-cmp: Likewise.
12482         * modules/unistr/u8-cmp2: Likewise.
12483         * modules/unistr/u8-cpy: Likewise.
12484         * modules/unistr/u8-cpy-alloc: Likewise.
12485         * modules/unistr/u8-endswith: Likewise.
12486         * modules/unistr/u8-mblen: Likewise.
12487         * modules/unistr/u8-mbsnlen: Likewise.
12488         * modules/unistr/u8-mbtouc: Likewise.
12489         * modules/unistr/u8-mbtouc-unsafe: Likewise.
12490         * modules/unistr/u8-mbtoucr: Likewise.
12491         * modules/unistr/u8-move: Likewise.
12492         * modules/unistr/u8-next: Likewise.
12493         * modules/unistr/u8-prev: Likewise.
12494         * modules/unistr/u8-set: Likewise.
12495         * modules/unistr/u8-startswith: Likewise.
12496         * modules/unistr/u8-stpcpy: Likewise.
12497         * modules/unistr/u8-stpncpy: Likewise.
12498         * modules/unistr/u8-strcat: Likewise.
12499         * modules/unistr/u8-strchr: Likewise.
12500         * modules/unistr/u8-strcmp: Likewise.
12501         * modules/unistr/u8-strcoll: Likewise.
12502         * modules/unistr/u8-strcpy: Likewise.
12503         * modules/unistr/u8-strcspn: Likewise.
12504         * modules/unistr/u8-strdup: Likewise.
12505         * modules/unistr/u8-strlen: Likewise.
12506         * modules/unistr/u8-strmblen: Likewise.
12507         * modules/unistr/u8-strmbtouc: Likewise.
12508         * modules/unistr/u8-strncat: Likewise.
12509         * modules/unistr/u8-strncmp: Likewise.
12510         * modules/unistr/u8-strncpy: Likewise.
12511         * modules/unistr/u8-strnlen: Likewise.
12512         * modules/unistr/u8-strpbrk: Likewise.
12513         * modules/unistr/u8-strrchr: Likewise.
12514         * modules/unistr/u8-strspn: Likewise.
12515         * modules/unistr/u8-strstr: Likewise.
12516         * modules/unistr/u8-strtok: Likewise.
12517         * modules/unistr/u8-to-u16: Likewise.
12518         * modules/unistr/u8-to-u32: Likewise.
12519         * modules/unistr/u8-uctomb: Likewise.
12520         * modules/unistr/u16-check: Likewise.
12521         * modules/unistr/u16-chr: Likewise.
12522         * modules/unistr/u16-cmp: Likewise.
12523         * modules/unistr/u16-cmp2: Likewise.
12524         * modules/unistr/u16-cpy: Likewise.
12525         * modules/unistr/u16-cpy-alloc: Likewise.
12526         * modules/unistr/u16-endswith: Likewise.
12527         * modules/unistr/u16-mblen: Likewise.
12528         * modules/unistr/u16-mbsnlen: Likewise.
12529         * modules/unistr/u16-mbtouc: Likewise.
12530         * modules/unistr/u16-mbtouc-unsafe: Likewise.
12531         * modules/unistr/u16-mbtoucr: Likewise.
12532         * modules/unistr/u16-move: Likewise.
12533         * modules/unistr/u16-next: Likewise.
12534         * modules/unistr/u16-prev: Likewise.
12535         * modules/unistr/u16-set: Likewise.
12536         * modules/unistr/u16-startswith: Likewise.
12537         * modules/unistr/u16-stpcpy: Likewise.
12538         * modules/unistr/u16-stpncpy: Likewise.
12539         * modules/unistr/u16-strcat: Likewise.
12540         * modules/unistr/u16-strchr: Likewise.
12541         * modules/unistr/u16-strcmp: Likewise.
12542         * modules/unistr/u16-strcoll: Likewise.
12543         * modules/unistr/u16-strcpy: Likewise.
12544         * modules/unistr/u16-strcspn: Likewise.
12545         * modules/unistr/u16-strdup: Likewise.
12546         * modules/unistr/u16-strlen: Likewise.
12547         * modules/unistr/u16-strmblen: Likewise.
12548         * modules/unistr/u16-strmbtouc: Likewise.
12549         * modules/unistr/u16-strncat: Likewise.
12550         * modules/unistr/u16-strncmp: Likewise.
12551         * modules/unistr/u16-strncpy: Likewise.
12552         * modules/unistr/u16-strnlen: Likewise.
12553         * modules/unistr/u16-strpbrk: Likewise.
12554         * modules/unistr/u16-strrchr: Likewise.
12555         * modules/unistr/u16-strspn: Likewise.
12556         * modules/unistr/u16-strstr: Likewise.
12557         * modules/unistr/u16-strtok: Likewise.
12558         * modules/unistr/u16-to-u32: Likewise.
12559         * modules/unistr/u16-to-u8: Likewise.
12560         * modules/unistr/u16-uctomb: Likewise.
12561         * modules/unistr/u32-check: Likewise.
12562         * modules/unistr/u32-chr: Likewise.
12563         * modules/unistr/u32-cmp: Likewise.
12564         * modules/unistr/u32-cmp2: Likewise.
12565         * modules/unistr/u32-cpy: Likewise.
12566         * modules/unistr/u32-cpy-alloc: Likewise.
12567         * modules/unistr/u32-endswith: Likewise.
12568         * modules/unistr/u32-mblen: Likewise.
12569         * modules/unistr/u32-mbsnlen: Likewise.
12570         * modules/unistr/u32-mbtouc: Likewise.
12571         * modules/unistr/u32-mbtouc-unsafe: Likewise.
12572         * modules/unistr/u32-mbtoucr: Likewise.
12573         * modules/unistr/u32-move: Likewise.
12574         * modules/unistr/u32-next: Likewise.
12575         * modules/unistr/u32-prev: Likewise.
12576         * modules/unistr/u32-set: Likewise.
12577         * modules/unistr/u32-startswith: Likewise.
12578         * modules/unistr/u32-stpcpy: Likewise.
12579         * modules/unistr/u32-stpncpy: Likewise.
12580         * modules/unistr/u32-strcat: Likewise.
12581         * modules/unistr/u32-strchr: Likewise.
12582         * modules/unistr/u32-strcmp: Likewise.
12583         * modules/unistr/u32-strcoll: Likewise.
12584         * modules/unistr/u32-strcpy: Likewise.
12585         * modules/unistr/u32-strcspn: Likewise.
12586         * modules/unistr/u32-strdup: Likewise.
12587         * modules/unistr/u32-strlen: Likewise.
12588         * modules/unistr/u32-strmblen: Likewise.
12589         * modules/unistr/u32-strmbtouc: Likewise.
12590         * modules/unistr/u32-strncat: Likewise.
12591         * modules/unistr/u32-strncmp: Likewise.
12592         * modules/unistr/u32-strncpy: Likewise.
12593         * modules/unistr/u32-strnlen: Likewise.
12594         * modules/unistr/u32-strpbrk: Likewise.
12595         * modules/unistr/u32-strrchr: Likewise.
12596         * modules/unistr/u32-strspn: Likewise.
12597         * modules/unistr/u32-strstr: Likewise.
12598         * modules/unistr/u32-strtok: Likewise.
12599         * modules/unistr/u32-to-u16: Likewise.
12600         * modules/unistr/u32-to-u8: Likewise.
12601         * modules/unistr/u32-uctomb: Likewise.
12602         * modules/uniwbrk/u8-wordbreaks: Likewise.
12603         * modules/uniwbrk/u16-wordbreaks: Likewise.
12604         * modules/uniwbrk/u32-wordbreaks: Likewise.
12605         * modules/uniwbrk/ulc-wordbreaks: Likewise.
12606         * modules/uniwbrk/wordbreak-property: Likewise.
12607         * modules/uniwidth/u8-strwidth: Likewise.
12608         * modules/uniwidth/u8-width: Likewise.
12609         * modules/uniwidth/u16-strwidth: Likewise.
12610         * modules/uniwidth/u16-width: Likewise.
12611         * modules/uniwidth/u32-strwidth: Likewise.
12612         * modules/uniwidth/u32-width: Likewise.
12613         * modules/uniwidth/width: Likewise.
12614         * modules/unicase/cased-tests (Makefile.am): Link all test programs
12615         with $(LIBUNISTRING).
12616         * modules/unicase/ignorable-tests: Likewise.
12617         * modules/unicase/locale-language-tests: Likewise.
12618         * modules/unicase/tolower-tests: Likewise.
12619         * modules/unicase/totitle-tests: Likewise.
12620         * modules/unicase/toupper-tests: Likewise.
12621         * modules/unicase/u8-casecmp-tests: Likewise.
12622         * modules/unicase/u8-casecoll-tests: Likewise.
12623         * modules/unicase/u8-casefold-tests: Likewise.
12624         * modules/unicase/u8-is-cased-tests: Likewise.
12625         * modules/unicase/u8-is-casefolded-tests: Likewise.
12626         * modules/unicase/u8-is-lowercase-tests: Likewise.
12627         * modules/unicase/u8-is-titlecase-tests: Likewise.
12628         * modules/unicase/u8-is-uppercase-tests: Likewise.
12629         * modules/unicase/u8-tolower-tests: Likewise.
12630         * modules/unicase/u8-totitle-tests: Likewise.
12631         * modules/unicase/u8-toupper-tests: Likewise.
12632         * modules/unicase/u16-casecmp-tests: Likewise.
12633         * modules/unicase/u16-casecoll-tests: Likewise.
12634         * modules/unicase/u16-casefold-tests: Likewise.
12635         * modules/unicase/u16-is-cased-tests: Likewise.
12636         * modules/unicase/u16-is-casefolded-tests: Likewise.
12637         * modules/unicase/u16-is-lowercase-tests: Likewise.
12638         * modules/unicase/u16-is-titlecase-tests: Likewise.
12639         * modules/unicase/u16-is-uppercase-tests: Likewise.
12640         * modules/unicase/u16-tolower-tests: Likewise.
12641         * modules/unicase/u16-totitle-tests: Likewise.
12642         * modules/unicase/u16-toupper-tests: Likewise.
12643         * modules/unicase/u32-casecmp-tests: Likewise.
12644         * modules/unicase/u32-casecoll-tests: Likewise.
12645         * modules/unicase/u32-casefold-tests: Likewise.
12646         * modules/unicase/u32-is-cased-tests: Likewise.
12647         * modules/unicase/u32-is-casefolded-tests: Likewise.
12648         * modules/unicase/u32-is-lowercase-tests: Likewise.
12649         * modules/unicase/u32-is-titlecase-tests: Likewise.
12650         * modules/unicase/u32-is-uppercase-tests: Likewise.
12651         * modules/unicase/u32-tolower-tests: Likewise.
12652         * modules/unicase/u32-totitle-tests: Likewise.
12653         * modules/unicase/u32-toupper-tests: Likewise.
12654         * modules/unicase/ulc-casecmp-tests: Likewise.
12655         * modules/unicase/ulc-casecoll-tests: Likewise.
12656         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
12657         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
12658         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
12659         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
12660         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
12661         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
12662         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
12663         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
12664         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
12665         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
12666         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
12667         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
12668         * modules/unictype/bidicategory-byname-tests: Likewise.
12669         * modules/unictype/bidicategory-name-tests: Likewise.
12670         * modules/unictype/bidicategory-of-tests: Likewise.
12671         * modules/unictype/bidicategory-test-tests: Likewise.
12672         * modules/unictype/block-list-tests: Likewise.
12673         * modules/unictype/block-of-tests: Likewise.
12674         * modules/unictype/block-test-tests: Likewise.
12675         * modules/unictype/category-C-tests: Likewise.
12676         * modules/unictype/category-Cc-tests: Likewise.
12677         * modules/unictype/category-Cf-tests: Likewise.
12678         * modules/unictype/category-Cn-tests: Likewise.
12679         * modules/unictype/category-Co-tests: Likewise.
12680         * modules/unictype/category-Cs-tests: Likewise.
12681         * modules/unictype/category-L-tests: Likewise.
12682         * modules/unictype/category-Ll-tests: Likewise.
12683         * modules/unictype/category-Lm-tests: Likewise.
12684         * modules/unictype/category-Lo-tests: Likewise.
12685         * modules/unictype/category-Lt-tests: Likewise.
12686         * modules/unictype/category-Lu-tests: Likewise.
12687         * modules/unictype/category-M-tests: Likewise.
12688         * modules/unictype/category-Mc-tests: Likewise.
12689         * modules/unictype/category-Me-tests: Likewise.
12690         * modules/unictype/category-Mn-tests: Likewise.
12691         * modules/unictype/category-N-tests: Likewise.
12692         * modules/unictype/category-Nd-tests: Likewise.
12693         * modules/unictype/category-Nl-tests: Likewise.
12694         * modules/unictype/category-No-tests: Likewise.
12695         * modules/unictype/category-P-tests: Likewise.
12696         * modules/unictype/category-Pc-tests: Likewise.
12697         * modules/unictype/category-Pd-tests: Likewise.
12698         * modules/unictype/category-Pe-tests: Likewise.
12699         * modules/unictype/category-Pf-tests: Likewise.
12700         * modules/unictype/category-Pi-tests: Likewise.
12701         * modules/unictype/category-Po-tests: Likewise.
12702         * modules/unictype/category-Ps-tests: Likewise.
12703         * modules/unictype/category-S-tests: Likewise.
12704         * modules/unictype/category-Sc-tests: Likewise.
12705         * modules/unictype/category-Sk-tests: Likewise.
12706         * modules/unictype/category-Sm-tests: Likewise.
12707         * modules/unictype/category-So-tests: Likewise.
12708         * modules/unictype/category-Z-tests: Likewise.
12709         * modules/unictype/category-Zl-tests: Likewise.
12710         * modules/unictype/category-Zp-tests: Likewise.
12711         * modules/unictype/category-Zs-tests: Likewise.
12712         * modules/unictype/category-and-not-tests: Likewise.
12713         * modules/unictype/category-and-tests: Likewise.
12714         * modules/unictype/category-byname-tests: Likewise.
12715         * modules/unictype/category-name-tests: Likewise.
12716         * modules/unictype/category-none-tests: Likewise.
12717         * modules/unictype/category-of-tests: Likewise.
12718         * modules/unictype/category-or-tests: Likewise.
12719         * modules/unictype/category-test-withtable-tests: Likewise.
12720         * modules/unictype/combining-class-tests: Likewise.
12721         * modules/unictype/ctype-alnum-tests: Likewise.
12722         * modules/unictype/ctype-alpha-tests: Likewise.
12723         * modules/unictype/ctype-blank-tests: Likewise.
12724         * modules/unictype/ctype-cntrl-tests: Likewise.
12725         * modules/unictype/ctype-digit-tests: Likewise.
12726         * modules/unictype/ctype-graph-tests: Likewise.
12727         * modules/unictype/ctype-lower-tests: Likewise.
12728         * modules/unictype/ctype-print-tests: Likewise.
12729         * modules/unictype/ctype-punct-tests: Likewise.
12730         * modules/unictype/ctype-space-tests: Likewise.
12731         * modules/unictype/ctype-upper-tests: Likewise.
12732         * modules/unictype/ctype-xdigit-tests: Likewise.
12733         * modules/unictype/decimal-digit-tests: Likewise.
12734         * modules/unictype/digit-tests: Likewise.
12735         * modules/unictype/mirror-tests: Likewise.
12736         * modules/unictype/numeric-tests: Likewise.
12737         * modules/unictype/property-alphabetic-tests: Likewise.
12738         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
12739         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
12740         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
12741         * modules/unictype/property-bidi-block-separator-tests: Likewise.
12742         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
12743         * modules/unictype/property-bidi-common-separator-tests: Likewise.
12744         * modules/unictype/property-bidi-control-tests: Likewise.
12745         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
12746         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
12747         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
12748         * modules/unictype/property-bidi-european-digit-tests: Likewise.
12749         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
12750         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
12751         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
12752         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
12753         * modules/unictype/property-bidi-pdf-tests: Likewise.
12754         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
12755         * modules/unictype/property-bidi-whitespace-tests: Likewise.
12756         * modules/unictype/property-byname-tests: Likewise.
12757         * modules/unictype/property-combining-tests: Likewise.
12758         * modules/unictype/property-composite-tests: Likewise.
12759         * modules/unictype/property-currency-symbol-tests: Likewise.
12760         * modules/unictype/property-dash-tests: Likewise.
12761         * modules/unictype/property-decimal-digit-tests: Likewise.
12762         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
12763         * modules/unictype/property-deprecated-tests: Likewise.
12764         * modules/unictype/property-diacritic-tests: Likewise.
12765         * modules/unictype/property-extender-tests: Likewise.
12766         * modules/unictype/property-format-control-tests: Likewise.
12767         * modules/unictype/property-grapheme-base-tests: Likewise.
12768         * modules/unictype/property-grapheme-extend-tests: Likewise.
12769         * modules/unictype/property-grapheme-link-tests: Likewise.
12770         * modules/unictype/property-hex-digit-tests: Likewise.
12771         * modules/unictype/property-hyphen-tests: Likewise.
12772         * modules/unictype/property-id-continue-tests: Likewise.
12773         * modules/unictype/property-id-start-tests: Likewise.
12774         * modules/unictype/property-ideographic-tests: Likewise.
12775         * modules/unictype/property-ids-binary-operator-tests: Likewise.
12776         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
12777         * modules/unictype/property-ignorable-control-tests: Likewise.
12778         * modules/unictype/property-iso-control-tests: Likewise.
12779         * modules/unictype/property-join-control-tests: Likewise.
12780         * modules/unictype/property-left-of-pair-tests: Likewise.
12781         * modules/unictype/property-line-separator-tests: Likewise.
12782         * modules/unictype/property-logical-order-exception-tests: Likewise.
12783         * modules/unictype/property-lowercase-tests: Likewise.
12784         * modules/unictype/property-math-tests: Likewise.
12785         * modules/unictype/property-non-break-tests: Likewise.
12786         * modules/unictype/property-not-a-character-tests: Likewise.
12787         * modules/unictype/property-numeric-tests: Likewise.
12788         * modules/unictype/property-other-alphabetic-tests: Likewise.
12789         * modules/unictype/property-other-default-ignorable-code-point-tests:
12790         Likewise.
12791         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
12792         * modules/unictype/property-other-id-continue-tests: Likewise.
12793         * modules/unictype/property-other-id-start-tests: Likewise.
12794         * modules/unictype/property-other-lowercase-tests: Likewise.
12795         * modules/unictype/property-other-math-tests: Likewise.
12796         * modules/unictype/property-other-uppercase-tests: Likewise.
12797         * modules/unictype/property-paired-punctuation-tests: Likewise.
12798         * modules/unictype/property-paragraph-separator-tests: Likewise.
12799         * modules/unictype/property-pattern-syntax-tests: Likewise.
12800         * modules/unictype/property-pattern-white-space-tests: Likewise.
12801         * modules/unictype/property-private-use-tests: Likewise.
12802         * modules/unictype/property-punctuation-tests: Likewise.
12803         * modules/unictype/property-quotation-mark-tests: Likewise.
12804         * modules/unictype/property-radical-tests: Likewise.
12805         * modules/unictype/property-sentence-terminal-tests: Likewise.
12806         * modules/unictype/property-soft-dotted-tests: Likewise.
12807         * modules/unictype/property-space-tests: Likewise.
12808         * modules/unictype/property-terminal-punctuation-tests: Likewise.
12809         * modules/unictype/property-test-tests: Likewise.
12810         * modules/unictype/property-titlecase-tests: Likewise.
12811         * modules/unictype/property-unassigned-code-value-tests: Likewise.
12812         * modules/unictype/property-unified-ideograph-tests: Likewise.
12813         * modules/unictype/property-uppercase-tests: Likewise.
12814         * modules/unictype/property-variation-selector-tests: Likewise.
12815         * modules/unictype/property-white-space-tests: Likewise.
12816         * modules/unictype/property-xid-continue-tests: Likewise.
12817         * modules/unictype/property-xid-start-tests: Likewise.
12818         * modules/unictype/property-zero-width-tests: Likewise.
12819         * modules/unictype/scripts-tests: Likewise.
12820         * modules/unictype/syntax-c-ident-tests: Likewise.
12821         * modules/unictype/syntax-c-whitespace-tests: Likewise.
12822         * modules/unictype/syntax-java-ident-tests: Likewise.
12823         * modules/unictype/syntax-java-whitespace-tests: Likewise.
12824         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
12825         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
12826         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
12827         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
12828         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
12829         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
12830         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
12831         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
12832         * modules/uniname/uniname-tests: Likewise.
12833         * modules/uninorm/canonical-decomposition-tests: Likewise.
12834         * modules/uninorm/compat-decomposition-tests: Likewise.
12835         * modules/uninorm/composition-tests: Likewise.
12836         * modules/uninorm/decomposing-form-tests: Likewise.
12837         * modules/uninorm/decomposition-tests: Likewise.
12838         * modules/uninorm/filter-tests: Likewise.
12839         * modules/uninorm/nfc-tests: Likewise.
12840         * modules/uninorm/nfd-tests: Likewise.
12841         * modules/uninorm/nfkc-tests: Likewise.
12842         * modules/uninorm/nfkd-tests: Likewise.
12843         * modules/uninorm/u8-normcmp-tests: Likewise.
12844         * modules/uninorm/u8-normcoll-tests: Likewise.
12845         * modules/uninorm/u16-normcmp-tests: Likewise.
12846         * modules/uninorm/u16-normcoll-tests: Likewise.
12847         * modules/uninorm/u32-normcmp-tests: Likewise.
12848         * modules/uninorm/u32-normcoll-tests: Likewise.
12849         * modules/unistdio/u8-asnprintf-tests: Likewise.
12850         * modules/unistdio/u8-vasnprintf-tests: Likewise.
12851         * modules/unistdio/u8-vasprintf-tests: Likewise.
12852         * modules/unistdio/u8-vsnprintf-tests: Likewise.
12853         * modules/unistdio/u8-vsprintf-tests: Likewise.
12854         * modules/unistdio/u16-asnprintf-tests: Likewise.
12855         * modules/unistdio/u16-vasnprintf-tests: Likewise.
12856         * modules/unistdio/u16-vasprintf-tests: Likewise.
12857         * modules/unistdio/u16-vsnprintf-tests: Likewise.
12858         * modules/unistdio/u16-vsprintf-tests: Likewise.
12859         * modules/unistdio/u32-asnprintf-tests: Likewise.
12860         * modules/unistdio/u32-vasnprintf-tests: Likewise.
12861         * modules/unistdio/u32-vasprintf-tests: Likewise.
12862         * modules/unistdio/u32-vsnprintf-tests: Likewise.
12863         * modules/unistdio/u32-vsprintf-tests: Likewise.
12864         * modules/unistdio/ulc-asnprintf-tests: Likewise.
12865         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
12866         * modules/unistdio/ulc-vasprintf-tests: Likewise.
12867         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
12868         * modules/unistdio/ulc-vsprintf-tests: Likewise.
12869         * modules/unistr/u8-check-tests: Likewise.
12870         * modules/unistr/u8-chr-tests: Likewise.
12871         * modules/unistr/u8-cmp-tests: Likewise.
12872         * modules/unistr/u8-cmp2-tests: Likewise.
12873         * modules/unistr/u8-cpy-alloc-tests: Likewise.
12874         * modules/unistr/u8-cpy-tests: Likewise.
12875         * modules/unistr/u8-mblen-tests: Likewise.
12876         * modules/unistr/u8-mbsnlen-tests: Likewise.
12877         * modules/unistr/u8-mbtouc-tests: Likewise.
12878         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
12879         * modules/unistr/u8-mbtoucr-tests: Likewise.
12880         * modules/unistr/u8-move-tests: Likewise.
12881         * modules/unistr/u8-next-tests: Likewise.
12882         * modules/unistr/u8-prev-tests: Likewise.
12883         * modules/unistr/u8-set-tests: Likewise.
12884         * modules/unistr/u8-stpcpy-tests: Likewise.
12885         * modules/unistr/u8-stpncpy-tests: Likewise.
12886         * modules/unistr/u8-strcat-tests: Likewise.
12887         * modules/unistr/u8-strcmp-tests: Likewise.
12888         * modules/unistr/u8-strcoll-tests: Likewise.
12889         * modules/unistr/u8-strcpy-tests: Likewise.
12890         * modules/unistr/u8-strdup-tests: Likewise.
12891         * modules/unistr/u8-strlen-tests: Likewise.
12892         * modules/unistr/u8-strmblen-tests: Likewise.
12893         * modules/unistr/u8-strmbtouc-tests: Likewise.
12894         * modules/unistr/u8-strncat-tests: Likewise.
12895         * modules/unistr/u8-strncmp-tests: Likewise.
12896         * modules/unistr/u8-strncpy-tests: Likewise.
12897         * modules/unistr/u8-strnlen-tests: Likewise.
12898         * modules/unistr/u8-to-u16-tests: Likewise.
12899         * modules/unistr/u8-to-u32-tests: Likewise.
12900         * modules/unistr/u8-uctomb-tests: Likewise.
12901         * modules/unistr/u16-check-tests: Likewise.
12902         * modules/unistr/u16-chr-tests: Likewise.
12903         * modules/unistr/u16-cmp-tests: Likewise.
12904         * modules/unistr/u16-cmp2-tests: Likewise.
12905         * modules/unistr/u16-cpy-alloc-tests: Likewise.
12906         * modules/unistr/u16-cpy-tests: Likewise.
12907         * modules/unistr/u16-mblen-tests: Likewise.
12908         * modules/unistr/u16-mbsnlen-tests: Likewise.
12909         * modules/unistr/u16-mbtouc-tests: Likewise.
12910         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
12911         * modules/unistr/u16-mbtoucr-tests: Likewise.
12912         * modules/unistr/u16-move-tests: Likewise.
12913         * modules/unistr/u16-next-tests: Likewise.
12914         * modules/unistr/u16-prev-tests: Likewise.
12915         * modules/unistr/u16-set-tests: Likewise.
12916         * modules/unistr/u16-stpcpy-tests: Likewise.
12917         * modules/unistr/u16-stpncpy-tests: Likewise.
12918         * modules/unistr/u16-strcat-tests: Likewise.
12919         * modules/unistr/u16-strcmp-tests: Likewise.
12920         * modules/unistr/u16-strcoll-tests: Likewise.
12921         * modules/unistr/u16-strcpy-tests: Likewise.
12922         * modules/unistr/u16-strdup-tests: Likewise.
12923         * modules/unistr/u16-strlen-tests: Likewise.
12924         * modules/unistr/u16-strmblen-tests: Likewise.
12925         * modules/unistr/u16-strmbtouc-tests: Likewise.
12926         * modules/unistr/u16-strncat-tests: Likewise.
12927         * modules/unistr/u16-strncmp-tests: Likewise.
12928         * modules/unistr/u16-strncpy-tests: Likewise.
12929         * modules/unistr/u16-strnlen-tests: Likewise.
12930         * modules/unistr/u16-to-u32-tests: Likewise.
12931         * modules/unistr/u16-to-u8-tests: Likewise.
12932         * modules/unistr/u16-uctomb-tests: Likewise.
12933         * modules/unistr/u32-check-tests: Likewise.
12934         * modules/unistr/u32-chr-tests: Likewise.
12935         * modules/unistr/u32-cmp-tests: Likewise.
12936         * modules/unistr/u32-cmp2-tests: Likewise.
12937         * modules/unistr/u32-cpy-alloc-tests: Likewise.
12938         * modules/unistr/u32-cpy-tests: Likewise.
12939         * modules/unistr/u32-mblen-tests: Likewise.
12940         * modules/unistr/u32-mbsnlen-tests: Likewise.
12941         * modules/unistr/u32-mbtouc-tests: Likewise.
12942         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
12943         * modules/unistr/u32-mbtoucr-tests: Likewise.
12944         * modules/unistr/u32-move-tests: Likewise.
12945         * modules/unistr/u32-next-tests: Likewise.
12946         * modules/unistr/u32-prev-tests: Likewise.
12947         * modules/unistr/u32-set-tests: Likewise.
12948         * modules/unistr/u32-stpcpy-tests: Likewise.
12949         * modules/unistr/u32-stpncpy-tests: Likewise.
12950         * modules/unistr/u32-strcat-tests: Likewise.
12951         * modules/unistr/u32-strcmp-tests: Likewise.
12952         * modules/unistr/u32-strcoll-tests: Likewise.
12953         * modules/unistr/u32-strcpy-tests: Likewise.
12954         * modules/unistr/u32-strdup-tests: Likewise.
12955         * modules/unistr/u32-strlen-tests: Likewise.
12956         * modules/unistr/u32-strmblen-tests: Likewise.
12957         * modules/unistr/u32-strmbtouc-tests: Likewise.
12958         * modules/unistr/u32-strncat-tests: Likewise.
12959         * modules/unistr/u32-strncmp-tests: Likewise.
12960         * modules/unistr/u32-strncpy-tests: Likewise.
12961         * modules/unistr/u32-strnlen-tests: Likewise.
12962         * modules/unistr/u32-to-u16-tests: Likewise.
12963         * modules/unistr/u32-to-u8-tests: Likewise.
12964         * modules/unistr/u32-uctomb-tests: Likewise.
12965         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
12966         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
12967         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
12968         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
12969         * modules/uniwidth/u8-strwidth-tests: Likewise.
12970         * modules/uniwidth/u8-width-tests: Likewise.
12971         * modules/uniwidth/u16-strwidth-tests: Likewise.
12972         * modules/uniwidth/u16-width-tests: Likewise.
12973         * modules/uniwidth/u32-strwidth-tests: Likewise.
12974         * modules/uniwidth/u32-width-tests: Likewise.
12975         * modules/uniwidth/width-tests: Likewise.
12976
12977 2010-05-18  Richard Jones  <rjones@redhat.com>
12978
12979         doc: users.txt: list hivex
12980         * users.txt: Add hivex.
12981
12982 2010-05-18  Richard Jones  <rjones@redhat.com>
12983
12984         doc: users.txt: list febootstrap
12985         * users.txt: Add febootstrap.
12986
12987 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
12988
12989         bootstrap: fix an error when gnulib is not used as a git submodule
12990         * build-aux/bootstrap (gnulib_path): If its length is zero then
12991         assign "gnulib" to it.
12992         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
12993
12994 2010-05-16  Bruno Haible  <bruno@clisp.org>
12995
12996         Avoid autoconf warnings about AM_ICONV.
12997         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
12998         2.64.
12999
13000 2010-05-16  Bruno Haible  <bruno@clisp.org>
13001
13002         absolute-header: Make the macro usable in more situations.
13003         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
13004         from gl_ABSOLUTE_HEADER.
13005         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
13006
13007 2010-05-16  James Youngman  <jay@gnu.org>
13008
13009         doc: update users.txt
13010         * users.txt: Add CSSC.
13011
13012 2010-05-16  Jim Meyering  <meyering@redhat.com>
13013
13014         init.sh: fix an error in the previous change; add more comments
13015         * tests/init.sh: Compare exit code in loop against 9, not 2.
13016         Patch by Bruno Haible.
13017         Make the two tests more similar by adding an empty "then" clause.
13018         Add comments.
13019
13020         init.sh: avoid unnecessary shell re-exec
13021         * tests/init.sh: Improve the re-exec-required check to first test the
13022         current shell.  If it passes the test, do not search for a shell that
13023         does pass, and do not re-exec.  This test is particularly contorted to
13024         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
13025         of $(...) evokes a syntax error and causes immediate shell exit with
13026         status 2.  Bruno Haible reported that the re-exec made it impossible
13027         to single-step through any init.sh-using script.
13028
13029 2010-05-16  Bruno Haible  <bruno@clisp.org>
13030
13031         Fix collision between gnulib's and libintl's printf replacements.
13032         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
13033         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
13034         (printf): When using GNU C, map the __printf__ function to rpl_printf
13035         via __asm__. When not using GNU C, define rpl_printf instead of
13036         __printf__.
13037         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
13038         commit.
13039         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
13040         commit.
13041         * m4/asm-underscore.m4: New file.
13042         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
13043         * modules/stdio (Files): Add m4/asm-underscore.m4.
13044         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
13045         Reported by Ben Pfaff.
13046
13047 2010-05-16  Bruno Haible  <bruno@clisp.org>
13048
13049         verify: Avoid skipping the test on openSUSE 11.0.
13050         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
13051
13052 2010-05-13  Bruno Haible  <bruno@clisp.org>
13053
13054         Avoid useless warnings from G++.
13055         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
13056         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
13057         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13058
13059 2010-05-11  Jim Meyering  <meyering@redhat.com>
13060
13061         maint.mk: tweak preceding change
13062         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
13063         regexps tighter by anchoring at EOL, and make the new group "shy"
13064         for slightly decreased overhead.
13065
13066 2010-05-11  Eric Blake  <eblake@redhat.com>
13067
13068         maint.mk: gnulib doesn't guarantee NSIG
13069         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
13070
13071 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13072
13073         test-pwrite.c: Remove unused variable declaration.
13074         * tests/test-pwrite.c (main): Remove read_buf declaration.
13075
13076         Remove useless test-pwrite.sh file.
13077         * tests/test-pwrite.sh: Delete file.
13078         * modules/pwrite-tests: Remove references.
13079         Reported by Bruno Haible.
13080
13081 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
13082
13083         init.sh: fix a typo
13084         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
13085
13086 2010-05-10  Jim Meyering  <meyering@redhat.com>
13087
13088         maint.mk: avoid using a temporary file in the always-defined-macros check
13089         * top/maint.mk (.re-defmac): Remove rule.
13090         (gl_trap_): Remove definition.
13091         (sc_prohibit_always-defined_macros): Rewrite not to create and
13092         depend on a temporary file.  Instead, depend on GNU grep's ability
13093         to read a list of regular expressions from stdin when given "-f -".
13094
13095 2010-05-09  Bruno Haible  <bruno@clisp.org>
13096
13097         Update to GNU gettext 0.18, part 1.
13098         * m4/gettext.m4: Update to GNU gettext 0.18.
13099         * m4/intl.m4: Likewise.
13100         * m4/po.m4: Likewise.
13101         * modules/gettext (Files): Add m4/fcntl-o.m4.
13102         (configure.ac): Require gettext infrastructure from version 0.18.
13103
13104 2010-05-09  Jim Meyering  <meyering@redhat.com>
13105
13106         init.sh: enable MALLOC_PERTURB_
13107         * tests/init.sh: Enable glibc's malloc-perturbing option.
13108
13109         maint.mk: improve sc_cross_check_PATH_usage_in_tests
13110         With my recent change in init.sh from the two-line form:
13111             -#   : ${srcdir=.}
13112             -#   . "$srcdir/init.sh"; path_prepend_ .
13113             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
13114         I noticed that using the one-line form would cause this test
13115         to fail with a false-positive, or to stop working altogether,
13116         depending on whether help-version changed or all the tests did.
13117         * top/maint.mk (_hv_regex): Remove this definition.
13118         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
13119         (_hv_regex_strong): Use a stronger regex to check for conformance.
13120         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
13121         Give a separate diagnostic for lack of conforming use.
13122
13123         maint.mk: prohibit definition of symbols defined by gnulib
13124         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
13125         definition of symbols defined by gnulib.
13126
13127 2010-05-09  Bruno Haible  <bruno@clisp.org>
13128
13129         acl: Avoid test failure on Cygwin-hosted mingw.
13130         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
13131
13132 2010-05-09  Bruno Haible  <bruno@clisp.org>
13133
13134         error: Use system's fcntl function.
13135         * lib/error.c (fcntl): Undefine.
13136
13137 2010-05-09  Jim Meyering  <meyering@redhat.com>
13138
13139         verify: adjust formatting to be more consistent
13140         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
13141         argument-list '('s, and after one comma.
13142
13143 2010-05-09  Bruno Haible  <bruno@clisp.org>
13144
13145         error: More reliable output on mingw.
13146         * lib/error.c: Include <windows.h>.
13147         (is_open): New function.
13148         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
13149         defined.
13150
13151 2010-05-09  Bruno Haible  <bruno@clisp.org>
13152
13153         vasnprintf: Fix syntax errors in libintl build on mingw.
13154         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
13155         pad_ourselves and prec_ourselves after use.
13156
13157 2010-05-08  Bruno Haible  <bruno@clisp.org>
13158
13159         * lib/config.charset: Update comments for Cygwin 1.7.
13160         * lib/localcharset.c: Likewise.
13161
13162 2010-05-07  Jim Meyering  <meyering@redhat.com>
13163
13164         init.sh: improve comments
13165         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
13166         . "${srcdir=.}/init.sh"; path_prepend_ .
13167         Add a note about path_prepend_ and the alternative of using
13168         TESTS_ENVIRONMENT.
13169
13170 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
13171
13172         exclude: Unescape hashed patterns in wildcard mode.
13173         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
13174         to the hash list.
13175         * tests/test-exclude8.sh: New test case.
13176         * modules/exclude-tests: Add new test.
13177
13178 2010-05-05  Eric Blake  <eblake@redhat.com>
13179
13180         verify: automate tests
13181         * modules/verify-tests: New module.
13182         * tests/test-verify.sh: New file.
13183         * tests/test-verify.c: Guard each negative test with a unique id.
13184         Also avoid warning about unused left hand of comma expressions.
13185
13186 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13187
13188         Further improvements to verify.h, suggested by Eric Blake.
13189         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
13190         the GL_* versions, to avoid collision with OpenGL.
13191         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
13192         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
13193         than testing merely whether it's defined.
13194
13195         Modify verify.h to pacify gcc -Wredundant_decls.
13196         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
13197         These use the prefix "GL_" since they're likely to be useful elsewhere.
13198         We may need to break them out into a different .h file.
13199         (__COUNTER__): Define to 0 if the compiler doesn't support it.
13200         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
13201         of verify_function__.
13202
13203 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13204
13205         Tests for module pwrite.
13206         * modules/pwrite-tests: New file.
13207         * tests/test-pwrite.sh: New file.
13208         * tests/test-pwrite.c: New file.
13209
13210         New module pwrite.
13211         * lib/unistd.in.h (pwrite): New declaration.
13212         * lib/pwrite.c: New file, from glibc with modifications.
13213         * m4/pwrite.m4: New file.
13214         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
13215         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
13216         REPLACE_PWRITE.
13217         * modules/pwrite: New file.
13218         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
13219         REPLACE_PWRITE.
13220         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
13221         * doc/posix-functions/pwrite.texi: Mention the new module.
13222
13223 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
13224
13225         pread: Update documentation.
13226         * doc/posix-functions/pread.texi: Mention the 'pread' module.
13227
13228 2010-05-04  Eric Blake  <eblake@redhat.com>
13229
13230         docs: update cygwin progress
13231         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
13232         this bug.
13233         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
13234         Added in cygwin 1.7.2.
13235         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
13236         Likewise.
13237         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
13238         Likewise.
13239         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13240         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13241         * doc/glibc-functions/accept4.texi (accept4): Likewise.
13242         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
13243         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
13244         Mention nproc module.
13245         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
13246         bug in cygwin 1.7.5 addition.
13247         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
13248         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
13249         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
13250         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
13251         1.7.5.
13252         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
13253         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
13254         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
13255         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
13256         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
13257         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
13258         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
13259         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
13260         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
13261         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
13262         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
13263         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
13264         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
13265         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
13266         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
13267         Likewise.
13268         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
13269         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
13270         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
13271         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
13272         Likewise.
13273         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
13274         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
13275         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
13276         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
13277         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
13278         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
13279         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
13280         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
13281         Likewise.
13282         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
13283         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
13284         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
13285         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
13286         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
13287         Likewise.
13288         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
13289         Likewise.
13290         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
13291         Likewise.
13292         * doc/glibc-functions/xdrrec_endofrecord.texi
13293         (xdrrec_endofrecord): Likewise.
13294         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
13295         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
13296         Likewise.
13297         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
13298         Likewise.
13299
13300 2010-05-04  Jim Meyering  <meyering@redhat.com>
13301
13302         gendocs.sh: make its "-s FILE" option more useful
13303         * build-aux/gendocs.sh: When honoring the -s FILE option, update
13304         $PACKAGE to reflect the probably-different basename of "FILE".
13305
13306 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
13307
13308         bootstrap: don't ignore download_po_files failure
13309         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
13310         failure.
13311
13312 2010-05-03  Jim Meyering  <meyering@redhat.com>
13313
13314         maint.mk: allow to pass options to gendocs.sh
13315         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
13316         (gendocs_options_): New overridable variable.
13317
13318         gnu-web-doc-update: don't ignore configure or build failure
13319         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
13320
13321         announce-gen: backslash-escape '@'s in --help output
13322         * build-aux/announce-gen: Fix syntax errors.
13323
13324         maint.mk, announce-gen: allow project-specific announcement mail headers
13325         * top/maint.mk (translation_project_): Define default.
13326         (announcement_Cc_, announcement_mail_headers_): Likewise.
13327         (announcement): Invoke announce-gen with new --mail-headers option.
13328         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
13329
13330         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
13331         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
13332         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
13333         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
13334         line in the "err2" output file when running "make check" in verbose
13335         mode (i.e., with set -x enabled).
13336
13337 2010-05-03  Bruno Haible  <bruno@clisp.org>
13338
13339         wctob: Fix for weird platforms.
13340         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
13341         argument value.
13342
13343 2010-05-03  Jim Meyering  <meyering@redhat.com>
13344
13345         maint.mk: prohibit unwarranted use of <strings.h>
13346         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
13347         strings.h in a file that does not also use strcasecmp, strncasecmp,
13348         ffs or ffsll.
13349
13350         maint.mk: remove obsolete comments
13351         * top/maint.mk: Remove stale, commented-out rules.
13352
13353 2010-05-02  Bruno Haible  <bruno@clisp.org>
13354
13355         wcwidth: Declare also when it's aliased.
13356         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
13357         macro.
13358
13359 2010-05-02  Bruno Haible  <bruno@clisp.org>
13360
13361         Fix regression from 2010-04-25.
13362         * gnulib-tool (func_modules_transitive_closure): Check the status of
13363         all modules, not only of the tests that are of the form foo-tests where
13364         foo is a module.
13365
13366 2010-05-02  Bruno Haible  <bruno@clisp.org>
13367
13368         wctob: Work around nasty Cygwin 1.7.2 bug.
13369         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
13370         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
13371
13372 2010-05-01  Bruno Haible  <bruno@clisp.org>
13373
13374         fpurge: Sharper test.
13375         * tests/test-fpurge.c (main): Add one more ftell check.
13376         * modules/fpurge-tests (Depends-on): Add ftell.
13377         Suggested by Eric Blake.
13378
13379 2010-05-01  Bruno Haible  <bruno@clisp.org>
13380
13381         ftello: Another test.
13382         * tests/test-ftello3.c: New file.
13383         * modules/ftello-tests (Files): Add it.
13384         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13385         MOSTLYCLEANFILES.
13386
13387         ftell: Another test.
13388         * tests/test-ftell3.c: New file.
13389         * modules/ftell-tests (Files): Add it.
13390         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
13391         MOSTLYCLEANFILES.
13392
13393 2010-05-01  Bruno Haible  <bruno@clisp.org>
13394
13395         ftell, ftello: Work around Solaris bug.
13396         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
13397         * lib/ftello.c: Include stdio-impl.h.
13398         (ftello): On Solaris, when _IOWRT is set, compute the result without
13399         looking at _IOREAD.
13400         * modules/ftello (Files): Add lib/stdio-impl.h.
13401         * doc/posix-functions/ftell.texi: Mention Solaris bug.
13402         * doc/posix-functions/ftello.texi: Likewise.
13403         Reported by Eric Blake.
13404
13405 2010-05-01  Bruno Haible  <bruno@clisp.org>
13406
13407         freading: Adapt to special meaning of _IOREAD flag on Solaris.
13408         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
13409         the _IOWRT flag is also set.
13410
13411 2010-05-01  Bruno Haible  <bruno@clisp.org>
13412
13413         Fix doc about a HP-UX stdio bug.
13414         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
13415         * doc/posix-functions/ftello.texi: Likewise.
13416
13417 2010-05-01  Bruno Haible  <bruno@clisp.org>
13418
13419         lseek test: Fix failure on Solaris.
13420         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
13421         output.
13422
13423 2010-04-30  Jim Meyering  <meyering@redhat.com>
13424
13425         bootstrap: don't ignore failure to generate po*/Makevars
13426         * build-aux/bootstrap (with_gettext): Don't ignore failure
13427         to create po/Makevars or runtime-po/Makevars.
13428
13429 2010-04-29  Eric Blake  <eblake@redhat.com>
13430
13431         headers: relax license to LGPLv2+
13432         * modules/fcntl-h (License): Relax license.
13433         * modules/getopt-posix (License): Likewise.
13434         * modules/locale (License): Likewise.
13435         * modules/math (License): Likewise.
13436         * modules/pty (License): Likewise.
13437         * modules/sched (License): Likewise.
13438         * modules/search (License): Likewise.
13439         * modules/spawn (License): Likewise.
13440         * modules/stdarg (License): Likewise.
13441         * modules/sysexits (License): Likewise.
13442
13443 2010-04-29  Jim Meyering  <meyering@redhat.com>
13444
13445         inttypes: relax license to LGPLv2+
13446         * modules/inttypes (License): Relax license.
13447
13448 2010-04-29  Simon Josefsson  <simon@josefsson.org>
13449
13450         * top/maint.mk (indent): Run twice to produce idempotent results.
13451
13452 2010-04-28  Bruno Haible  <bruno@clisp.org>
13453
13454         getdate: Generate getdate.c in the source directory.
13455         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
13456         MOSTLYCLEANFILES.
13457         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
13458
13459 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
13460
13461         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
13462         is not declared as a const *; avoid warnings in that case.
13463
13464 2010-04-28  Eric Blake  <eblake@redhat.com>
13465
13466         canonicalize-lgpl: avoid compiler warning
13467         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
13468         declaration' / 'extraneous semicolon' warning with some compilers.
13469         Reported by Andreas Gruenbacher.
13470
13471 2010-04-28  Jim Meyering  <meyering@redhat.com>
13472
13473         init.sh: ensure a more reliable exit status when exiting via trap
13474         * tests/init.sh (setup_): Don't rely on $? in signal handler.
13475         Inspired by patches from Dmitry V. Levin.
13476         Also trap on signal 3 (SIGQUIT).
13477
13478 2010-04-27  Bruno Haible  <bruno@clisp.org>
13479
13480         Update doc about utimes().
13481         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
13482         'utimens' module.
13483         Reported by Andreas Gruenbacher <agruen@suse.de>.
13484
13485 2010-04-27  Eric Blake  <eblake@redhat.com>
13486
13487         full-read, full-write: relax license
13488         * modules/full-read (License): Drop to LGPLv2+.
13489         * modules/full-write (License): Likewise.
13490         * modules/safe-read (License): Likewise.
13491         * modules/safe-write (License): Likewise.
13492
13493         pthread: mention library for linking
13494         * modules/pthread (Link): Mention $(LIB_PTHREAD).
13495
13496 2010-04-27  Jim Meyering  <meyering@redhat.com>
13497
13498         maint.mk: fix a bug introduced in last change
13499         * top/maint.mk (gl_assured_headers_): Now that all names are on
13500         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
13501         is not anchored to end of word, it should be adequate.
13502
13503         maint.mk: avoid side-effect in latest syntax-check
13504         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
13505         to run commands via $(shell...), and hence to incur cost only when
13506         the new rule is actually run.
13507
13508         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
13509         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
13510         and use that to create a regexp used to detect all #if HAVE_..._H uses.
13511         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
13512         (gl_assured_headers_, az_, AZ_): Define.
13513         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
13514
13515 2010-04-26  Jim Meyering  <jim@meyering.net>
13516             Bruno Haible  <bruno@clisp.org>
13517
13518         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
13519         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
13520         Prompted by an exchange with Gilles Espinasse.
13521
13522 2010-04-26  Jim Meyering  <meyering@redhat.com>
13523
13524         git-version-gen: aesthetic tweak
13525         * build-aux/git-version-gen: Use "$nl" rather than a literal,
13526         so that the command remains on a single line.
13527
13528 2010-04-26  Eric Blake  <eblake@redhat.com>
13529
13530         git-version-gen: allow use on EBCDIC hosts
13531         * build-aux/git-version-gen (dirty): Use literal rather than tying
13532         ourselves to ascii.
13533         Reported by Steve Goetze.
13534
13535 2010-04-25  Bruno Haible  <bruno@clisp.org>
13536
13537         netdb: Add support for GNULIB_POSIXCHECK.
13538         * lib/netdb.in.h: Include warn-on-use.h.
13539         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
13540         functions are used when GNULIB_POSIXCHECK is defined and the
13541         getaddrinfo module is not in use.
13542         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
13543         freeaddrinfo, gai_strerror, getnameinfo are declared.
13544         * modules/netdb (Depends-on): Add warn-on-use.
13545         (Makefile.am): Include warn-on-use.h in netdb.h.
13546
13547 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
13548
13549         build: avoid "make check" failure without .git/ directory
13550         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
13551         there is no .git/ directory.
13552
13553 2010-04-25  Bruno Haible  <bruno@clisp.org>
13554
13555         ptsname: Fix misuse of ttyname_r.
13556         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
13557         of errno.
13558
13559 2010-04-25  Bruno Haible  <bruno@clisp.org>
13560
13561         ttyname_r: Make it work on Solaris 10.
13562         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
13563         if the system function has the POSIX declaration. Test whether the
13564         function fails if the buffer is less than 128 bytes large.
13565         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
13566         system's ttyname_r function. Provide a reasonably large buffer.
13567         * modules/ttyname_r (Depends-on): Add extensions.
13568         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
13569
13570 2010-04-25  Bruno Haible  <bruno@clisp.org>
13571
13572         Use the 'extensions' module for some more functions on Solaris.
13573         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
13574         module.
13575         * doc/posix-functions/ctime_r.texi: Likewise.
13576         * doc/posix-functions/getgrgid_r.texi: Likewise.
13577         * doc/posix-functions/getgrnam_r.texi: Likewise.
13578         * doc/posix-functions/getpwnam_r.texi: Likewise.
13579         * doc/posix-functions/getpwuid_r.texi: Likewise.
13580         * doc/posix-functions/readdir_r.texi: Likewise.
13581         * doc/posix-functions/sigwait.texi: Likewise.
13582         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
13583         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
13584
13585 2010-04-25  Bruno Haible  <bruno@clisp.org>
13586
13587         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
13588         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
13589         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
13590         * lib/ttyname_r.c: Include <limits.h>.
13591         (ttyname_r): Define using the system's ttyname_r function, if it exists
13592         and not on Solaris.
13593         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
13594         set.
13595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
13596         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
13597         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
13598         Reported by Simon Josefsson.
13599
13600 2010-04-25  Bruno Haible  <bruno@clisp.org>
13601
13602         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
13603         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
13604         * doc/posix-functions/ctime_r.texi: Likewise.
13605         * doc/posix-functions/getgrgid_r.texi: Likewise.
13606         * doc/posix-functions/getgrnam_r.texi: Likewise.
13607         * doc/posix-functions/getlogin_r.texi: Likewise.
13608         * doc/posix-functions/getpwnam_r.texi: Likewise.
13609         * doc/posix-functions/getpwuid_r.texi: Likewise.
13610         * doc/posix-functions/readdir_r.texi: Likewise.
13611         * doc/posix-functions/sigwait.texi: Likewise.
13612         * doc/posix-functions/ttyname_r.texi: Likewise.
13613         Reported by Simon Josefsson.
13614
13615 2010-04-25  Bruno Haible  <bruno@clisp.org>
13616
13617         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
13618         * gnulib-tool (func_usage): Document that --with-*-tests options apply
13619         also to --create-testdir.
13620         (func_acceptable): Don't consider the status of *-tests modules here.
13621         (func_modules_transitive_closure): Consider it here, before including a
13622         test module.
13623         (func_import, func_create_testdir): Set inc_all_direct_tests,
13624         inc_all_indirect_tests.
13625         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
13626         --create-testdir and --create-megatestdir.
13627
13628 2010-04-25  Bruno Haible  <bruno@clisp.org>
13629
13630         gnulib-tool: Add --without-*-tests options.
13631         * gnulib-tool (func_usage): Document the --without-*-tests options.
13632         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
13633         excl_unportable_tests): New variables.
13634         Fail if they are specified with --import or --update.
13635         (func_acceptable): Respect the excl_*_tests variables.
13636         (func_import): Set the excl_*_tests variables to empty.
13637
13638 2010-04-25  Simon Josefsson  <simon@josefsson.org>
13639             Bruno Haible  <bruno@clisp.org>
13640
13641         Work around a MacOS X 10.4 bug with openpty.
13642         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
13643         * tests/test-openpty.c (main): Close the master side explicitly.
13644
13645 2010-04-25  Bruno Haible  <bruno@clisp.org>
13646
13647         strnlen: Fix a C++ test error on MacOS X and Solaris.
13648         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
13649         the function is not declared.
13650         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
13651         Simon Josefsson.
13652
13653 2010-04-24  Bruno Haible  <bruno@clisp.org>
13654
13655         Avoid a gcc warning.
13656         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
13657         of correct type for %08lx directive.
13658         Reported by Eric Blake.
13659
13660 2010-04-24  Bruno Haible  <bruno@clisp.org>
13661
13662         vasnprintf: Correct errno value in case of out-of-memory.
13663         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
13664         or sprintf. Use the errno value from SNPRINTF or sprintf.
13665         Reported by Ian Beckwith <ianb@erislabs.net>.
13666
13667 2010-04-24  Bruno Haible  <bruno@clisp.org>
13668
13669         ansi-c++-opt: Find correct compiler when cross-compiling.
13670         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
13671         AC_CHECK_PROGS.
13672         Reported by Simon Josefsson.
13673
13674 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
13675
13676         vc-list-files: Add support for subversion
13677         * build-aux/vc-list-files: Use "svn list" to generate the list of
13678         files controlled by subversion.
13679
13680 2010-04-23  Jim Meyering  <meyering@redhat.com>
13681
13682         vc-list-files tests: convert to use init.sh
13683         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
13684         path_prepend_.
13685         Use Exit, not exit.
13686         Use skip_ rather than open coding it.
13687         Remove trap set-up and compare definitions.
13688         * tests/test-vc-list-files-git.sh: Likewise.
13689         * modules/vc-list-files-tests (Files): Add tests/init.sh.
13690
13691 2010-04-22  Simon Josefsson  <simon@josefsson.org>
13692
13693         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
13694         backup files.
13695
13696 2010-04-21  Simon Josefsson  <simon@josefsson.org>
13697
13698         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
13699
13700 2010-04-20  Eric Blake  <eblake@redhat.com>
13701
13702         tests: be robust to ignored SIGPIPE
13703         * tests/test-select-in.sh: Consume all output.
13704         * tests/test-lseek.sh: Check correct exit status, while avoiding
13705         EPIPE.
13706
13707 2010-04-20  Simon Josefsson  <simon@josefsson.org>
13708             Bruno Haible  <bruno@clisp.org>
13709
13710         visibility: Don't use -fvisibility if it leads to a warning.
13711         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
13712         yes, don't pretend that visibility works if it leads to a warning.
13713         Reported by Mike Gran <spk121@yahoo.com>.
13714
13715 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
13716
13717         * build-aux/bootstrap: Use "git -h" for testing for supported options
13718         instead of "git --help".  The short-form option only shows a summary,
13719         and doesn't layout the full man page.  Grep for the full option name
13720         in the summary, too.
13721
13722 2010-04-19  Bruno Haible  <bruno@clisp.org>
13723
13724         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
13725         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
13726         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
13727         mention of RELOCATABLE_STRIP.
13728         Reported by Sylvain Beucler <beuc@beuc.net>.
13729
13730 2010-04-19  Bruno Haible  <bruno@clisp.org>
13731
13732         * lib/diffseq.h: Fix typo in comment.
13733         Reported by Eric Blake.
13734
13735 2010-04-19  Bruno Haible  <bruno@clisp.org>
13736
13737         ioctl: Move autoconf macro to a .m4 file.
13738         * m4/ioctl.m4: New file, extracted from modules/ioctl.
13739         * modules/ioctl (Files): Add it.
13740         (configure.ac): Simply invoke gl_FUNC_IOCTL.
13741         Reported by Ian Beckwith <ianb@erislabs.net>.
13742
13743 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
13744             Bruno Haible  <bruno@clisp.org>
13745
13746         diffseq: Accommodate use-case with abstract arrays.
13747         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
13748         is not defined.
13749         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
13750         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
13751
13752 2010-04-18  Bruno Haible  <bruno@clisp.org>
13753
13754         * doc/posix-headers/stdbool.texi: More precise wording.
13755
13756 2010-04-17  Jim Meyering  <meyering@redhat.com>
13757
13758         maint.mk: use gnu-style indentation in an embedded perl script
13759         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
13760         Rename variable: s/two/last_two_bytes/
13761
13762 2010-04-16  Eric Blake  <eblake@redhat.com>
13763
13764         test-stdbool: skip test that fails with Solaris CC
13765         * tests/test-stdbool.c (f): Skip test that causes compilation
13766         error under buggy C++ compiler.
13767         * lib/stdbool.in.h: Document the limitation.
13768         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
13769
13770         setenv: allow compilation with C++
13771         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
13772         register keyword.
13773
13774         stdint: allow test to pass with C++
13775         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
13776
13777         getopt: allow compilation with C++
13778         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
13779         struct.
13780         * lib/getopt.c (_getopt_internal_r): Use correct type.
13781         Reported by Dagobert Michelson, via Joel E. Denny.
13782
13783 2010-04-16  Bruno Haible  <bruno@clisp.org>
13784
13785         Override netdb.h always.
13786         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
13787         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
13788         Reported by Ludovic Courtès <ludo@gnu.org>.
13789
13790 2010-04-15  Bruno Haible  <bruno@clisp.org>
13791
13792         openpty: Fix mistake from 2010-03-21.
13793         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
13794         Reported by Simon Josefsson.
13795
13796 2010-04-15  Eric Blake  <eblake@redhat.com>
13797
13798         test-forkpty: fix expected signature
13799         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
13800         Reported by Simon Josefsson.
13801
13802 2010-04-15  Jim Meyering  <meyering@redhat.com>
13803
13804         maint.mk: texinfo_suffix_re_: correct the default regexp
13805         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
13806
13807         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
13808         make it configurable via texinfo_suffix_re_.
13809
13810 2010-04-14  Eric Blake  <eblake@redhat.com>
13811
13812         strtok_r: relax license to LGPLv2+
13813         * modules/strtok_r (License): Relax license.
13814         Reported by Matthias Bolte.
13815
13816 2010-04-14  Simon Josefsson  <simon@josefsson.org>
13817
13818         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
13819         version 1.4.4 by default instead of requiring the libgcrypt
13820         version used during build.  This makes it possible to use the
13821         application with older but still binary compatible libgcrypt
13822         versions.
13823
13824 2010-04-13  Eric Blake  <eblake@redhat.com>
13825
13826         getopt-gnu: match recent glibc fixes and posix ruling
13827         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
13828         '+' handling, when requesting extensions.
13829         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
13830         'W;' handling.
13831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
13832         * doc/posix-functions/getopt.texi (getopt): Document this.
13833         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13834         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13835         Likewise.
13836
13837         getopt: merge bug fixes from glibc
13838         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
13839         diagnostics.  Honor '+:' correctly.  Reject ';'.
13840
13841         getopt-posix: detect MacOS bug
13842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
13843         optind when missing a required argument.
13844         * doc/posix-functions/getopt.texi (getopt): Document the bug.
13845         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13846         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13847         Likewise.
13848
13849         getopt-posix: avoid spurious failure on Solaris
13850         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
13851         an indicator that setting optind=1 is sufficient for reset.
13852
13853         getopt-posix: avoid spurious failure on FreeBSD
13854         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
13855         in POSIX mode, since the m4 test uses it.
13856
13857         gnulib-tool: silence warning on BSD sh
13858         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
13859
13860 2010-04-13  Jim Meyering  <meyering@redhat.com>
13861
13862         doc: users.txt: GNU patch now uses gnulib
13863         * users.txt: Add patch.
13864
13865 2010-04-12  Jim Meyering  <meyering@redhat.com>
13866
13867         maint.mk: generate more concise timing data for syntax-check rules
13868         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
13869         " done" from each line that reports a syntax-check test duration.
13870
13871 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
13872
13873         git-version-gen: use "git update-index..." rather than "git status"
13874         * build-aux/git-version-gen: Use git update-index --refresh, not
13875         "git status".  With some versions of git, "git status" would fail
13876         to update the index and result in an unwarranted "-dirty" suffix.
13877
13878 2010-04-11  Jim Meyering  <meyering@redhat.com>
13879
13880         openat: correct formatting (no semantic change)
13881         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
13882         Suggested by Bruno Haible.
13883
13884 2010-04-11  Bruno Haible  <bruno@clisp.org>
13885
13886         Stricter declaration checking in testdirs.
13887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13888         If for_tests is true, augment AM_CPPFLAGS to define
13889         GNULIB_STRICT_CHECKING.
13890         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
13891         GNULIB_STRICT_CHECKING is defined, verify that the function is
13892         declared.
13893
13894 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
13895             Bruno Haible  <bruno@clisp.org>
13896
13897         libunistring: Improve configure output.
13898         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
13899         Don't say "consider installing GNU libunistring" when checking again
13900         with libiconv.
13901
13902 2010-04-11  Bruno Haible  <bruno@clisp.org>
13903
13904         libunistring: Correct value of $LTLIBUNISTRING.
13905         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
13906         correct the value of $LTLIBUNISTRING.
13907
13908 2010-04-11  Bruno Haible  <bruno@clisp.org>
13909
13910         havelib: Add static libraries to LIBS in the right order.
13911         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
13912         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
13913
13914 2010-04-11  Bruno Haible  <bruno@clisp.org>
13915
13916         libunistring: Detect libunistring also when it depends on libiconv.
13917         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
13918         the second AC_LIB_HAVE_LINKFLAGS invocation.
13919
13920 2010-04-11  James Youngman  <jay@gnu.org>
13921
13922         close-stream: declare local scalars to be "const"
13923         * lib/close-stream.c (close_stream): Make boolean variables const
13924         to document the fact that we set but do not change them.
13925
13926 2010-04-11  Bruno Haible  <bruno@clisp.org>
13927
13928         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
13929
13930 2010-04-11  Jim Meyering  <meyering@redhat.com>
13931
13932         maint.mk: don't include dist-check.mk
13933         * top/maint.mk: Remove bogus include directive.
13934
13935         maint.mk: improve empty-line-at-EOF check
13936         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
13937         solution, rather than tail+Perl-based one.  The latter would read
13938         a few kilobytes from the end of each file, and did not handle empty
13939         files properly.
13940
13941         maint.mk: print the elapsed time for each syntax-check rule
13942         * top/maint.mk (sc_m_rules_): Save start time in a file.
13943         (sc_z_rules_): New rules: remove temp file and print elapsed time.
13944         (local-check): Interpose the .z rules
13945
13946 2010-04-11  Jim Meyering  <meyering@redhat.com>
13947
13948         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
13949         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
13950         empty file with one that ends in an empty line.
13951
13952 2010-04-10  Bruno Haible  <bruno@clisp.org>
13953
13954         mkdir: Make it work on mingw64.
13955         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
13956         * lib/mkdir.c: Update comment.
13957         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
13958
13959 2010-04-10  Bruno Haible  <bruno@clisp.org>
13960
13961         Don't override improved macro from newer autoconf.
13962         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
13963         autoconf >= 2.62.
13964         Reported by Joel E. Denny <jdenny@clemson.edu>.
13965
13966 2010-04-10  Jim Meyering  <meyering@redhat.com>
13967
13968         maint.mk: new syntax-check rule: prohibit empty lines at end of file
13969         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
13970
13971         maint.mk: correct a diagnostic
13972         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
13973         in diagnostic; now use $prohibit.
13974
13975 2010-04-10  Bruno Haible  <address@hidden>
13976
13977         fchownat: Fix a C++ test error on Solaris 8.
13978         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
13979         the function does not exist.
13980
13981 2010-04-10  Bruno Haible  <bruno@clisp.org>
13982
13983         vasnprintf: Add more tests.
13984         * tests/test-vasnprintf-posix.c: Include <errno.h>.
13985         (test_function): Test converting an invalid wide string.
13986
13987         vasnprintf: Correct handling of unconvertible wide string arguments.
13988         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
13989         VASNPRINTF.
13990         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
13991         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
13992         smaller than the expected maximum need for the directive. Set errno to
13993         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
13994         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
13995         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
13996         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
13997         * modules/vasnprintf (Files): Add m4/printf.m4.
13998         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
13999
14000 2010-04-10  Bruno Haible  <bruno@clisp.org>
14001
14002         vasnprintf: Fix crash in %ls directive.
14003         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
14004         string is passed as argument to %ls, with no precision and no width.
14005         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14006
14007 2010-04-10  Bruno Haible  <bruno@clisp.org>
14008
14009         vasnprintf: Fix multiple test failures on mingw.
14010         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
14011         _snprintf, or snwprintf, not _snwprintf.
14012
14013 2010-04-10  Bruno Haible  <bruno@clisp.org>
14014
14015         write: Fix a C++ test error on mingw.
14016         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
14017
14018 2010-04-10  Bruno Haible  <bruno@clisp.org>
14019
14020         vasnprintf test: Reduce code duplication.
14021         * tests/test-vasnprintf.c (test_function): New function, extracted from
14022         test_vasnprintf.
14023         (test_vasnprintf, test_asnprintf): Invoke it.
14024
14025 2010-04-10  Bruno Haible  <bruno@clisp.org>
14026
14027         strnlen: Fix warning in C++ mode on MacOS X.
14028         * lib/string.in.h (strnlen): Use the modern idiom.
14029         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
14030         defining strnlen as a macro already in <config.h>.
14031         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14032         REPLACE_STRNLEN.
14033         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
14034         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14035
14036 2010-04-08  James Youngman  <jay@gnu.org>
14037
14038         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
14039         the example.
14040
14041 2010-04-09  Jim Meyering  <meyering@redhat.com>
14042
14043         maint.mk: print better diagnostic when there is no $(_hv_file)
14044         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
14045         announce that when $(_hv_file) (aka help-version) does not exist.
14046
14047         init.sh: run tr in the "C" locale to avoid multibyte interpretation
14048         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
14049         not try to interpret its random input bytes.  Jarno Rajahalme reported
14050         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
14051         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
14052         (mktempd_): Likewise, just in case.
14053
14054         ftruncate: add two years to projected module removal date: 2012
14055         * m4/ftruncate.m4: Adjust comments.
14056
14057         ftruncate: mark module as obsolete; even MinGW provides it, now
14058         * modules/ftruncate (Status): Obsolete.
14059         (Notice): Say that.
14060         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
14061         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
14062
14063 2010-04-08  Bruno Haible  <bruno@clisp.org>
14064
14065         Fix side effects from tests-related modules.
14066         * modules/dprintf-posix (Comment): New section.
14067         * modules/fprintf-posix (Comment): Likewise.
14068         * modules/obstack-printf-posix (Comment): Likewise.
14069         * modules/printf-posix (Comment): Likewise.
14070         * modules/snprintf-posix (Comment): Likewise.
14071         * modules/sprintf-posix (Comment): Likewise.
14072         * modules/vasnprintf-posix (Comment): Likewise.
14073         * modules/vasprintf-posix (Comment): Likewise.
14074         * modules/vdprintf-posix (Comment): Likewise.
14075         * modules/vfprintf-posix (Comment): Likewise.
14076         * modules/vprintf-posix (Comment): Likewise.
14077         * modules/vsnprintf-posix (Comment): Likewise.
14078         * modules/vsprintf-posix (Comment): Likewise.
14079         * modules/xprintf-posix (Comment): Likewise.
14080         * modules/xvasprintf-posix (Comment): Likewise.
14081         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
14082         * modules/floorf-tests (Depends-on): Likewise.
14083         * modules/round-tests (Depends-on): Likewise.
14084         * modules/roundf-tests (Depends-on): Likewise.
14085         * modules/trunc-tests (Depends-on): Likewise.
14086         * modules/truncf-tests (Depends-on): Likewise.
14087         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
14088         'fprintf-posix' module is not present.
14089         * tests/test-floorf2.c (check): Likewise.
14090         * tests/test-trunc2.c (check): Likewise.
14091         * tests/test-truncf2.c (check): Likewise.
14092         * tests/test-round2.c (equal): Likewise.
14093         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14094
14095 2010-04-07  Karl Berry  <karl@gnu.org>
14096
14097         * config/srclist.txt,
14098         * config/srclistvars.sh,
14099         * config/srclist-update: doc fixes.
14100
14101 2010-04-07  Jim Meyering  <meyering@redhat.com>
14102
14103         maint.mk: add a PATH crosschecking syntax-check rule
14104         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
14105         Useful if you use a test like the one in help-version (coreutils,
14106         diffutils, grep, gzip) that ensures $(VERSION) matches what is
14107         printed by prog --version.
14108
14109 2010-04-06  Bruno Haible  <bruno@clisp.org>
14110
14111         Fix link error on mingw.
14112         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
14113         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
14114
14115 2010-04-06  Bruno Haible  <bruno@clisp.org>
14116
14117         Assume rmdir exists.
14118         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
14119
14120 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
14121
14122         doc: update users.txt
14123         * users.txt: Add gcal.
14124
14125 2010-04-06  Jim Meyering  <meyering@redhat.com>
14126
14127         init.sh: simply unset TMPDIR rather than risking env -i
14128         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
14129         although it probably works fine on all Unix-based systems, some
14130         systems (Cygwin?) cannot tolerate a totally cleared environment.
14131         Suggestion from Eric Blake.
14132
14133 2010-04-06  Jim Meyering  <meyering@redhat.com>
14134
14135         init.sh: portability fix: use env's POSIX-specified -i option not -u
14136         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
14137         than unportable env -u.  Solaris 5.11's env lacks support for -u.
14138
14139 2010-04-05  Bruno Haible  <bruno@clisp.org>
14140
14141         btowc: Work around Cygwin 1.7.2 bug.
14142         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
14143         does not map NUL to 0.
14144         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
14145
14146 2010-04-05  Bruno Haible  <bruno@clisp.org>
14147
14148         Make the multithread modules work on Cygwin 1.7.2.
14149         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
14150         imported symbols can be declared weak, so that it returns "no" on
14151         Cygwin 1.7.2.
14152
14153 2010-04-05  Bruno Haible  <bruno@clisp.org>
14154
14155         Use the module 'strncat'.
14156         * modules/unistr/u8-strncat (Depends-on): Add strncat.
14157
14158         Tests for module 'strncat'.
14159         * modules/strncat-tests: New file.
14160         * tests/test-strncat.c: New file.
14161
14162         New module 'strncat'.
14163         * lib/string.in.h (strncat): New declaration.
14164         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
14165         * m4/strncat.m4: New file, based on m4/memchr.m4.
14166         * modules/strncat: New file.
14167         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
14168         is declared.
14169         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
14170         REPLACE_STRNCAT.
14171         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
14172         REPLACE_STRNCAT.
14173         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
14174         module.
14175         * tests/test-string-c++.cc: Check signature of strncat.
14176
14177 2010-04-05  Jim Meyering  <meyering@redhat.com>
14178
14179         xstrtoumax-tests: convert to use init.sh
14180         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
14181         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14182         Use Exit, not exit.
14183         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14184
14185         xstrtoimax-tests: convert to use init.sh
14186         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
14187         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14188         Use Exit, not exit.
14189         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14190
14191 2010-04-05  Bruno Haible  <bruno@clisp.org>
14192
14193         sys_socket: Avoid #define replacements in C++ mode.
14194         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
14195         warning to the function if possible, rather than #defining the symbol
14196         to a dysfunctional alias.
14197
14198 2010-04-05  Bruno Haible  <bruno@clisp.org>
14199
14200         fseeko: Fix C++ test error on mingw.
14201         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
14202         gl_FUNC_FSEEKO.
14203         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
14204         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
14205         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
14206         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
14207
14208 2010-04-05  Bruno Haible  <bruno@clisp.org>
14209
14210         duplocale: Improve test output.
14211         * tests/test-duplocale.c (main): Print reason for skipped test.
14212
14213 2010-04-05  Bruno Haible  <bruno@clisp.org>
14214
14215         Assume rmdir exists.
14216         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
14217         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
14218
14219 2010-04-05  Bruno Haible  <bruno@clisp.org>
14220
14221         Fix link error on Solaris 8 with cc.
14222         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
14223
14224 2010-04-05  Bruno Haible  <bruno@clisp.org>
14225
14226         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14227         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
14228
14229 2010-04-05  Bruno Haible  <bruno@clisp.org>
14230
14231         vasprintf: Update documentation.
14232         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
14233
14234 2010-04-05  Bruno Haible  <bruno@clisp.org>
14235
14236         ptsname: Improve test.
14237         * tests/test-ptsname.c (main): Also try the various master names of BSD
14238         systems.
14239
14240 2010-04-05  Bruno Haible  <bruno@clisp.org>
14241
14242         memchr: Avoid a possible C++ test error.
14243         * lib/string.in.h (memchr): Provide declaration if function is missing.
14244         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
14245         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
14246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
14247         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
14248
14249 2010-04-05  Bruno Haible  <bruno@clisp.org>
14250
14251         strtok_r: Improve idiom.
14252         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
14253         AC_LIBOBJ is used.
14254
14255 2010-04-05  Bruno Haible  <bruno@clisp.org>
14256
14257         strdup: Improve idiom.
14258         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
14259         AC_LIBOBJ is used.
14260         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
14261         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
14262         when AC_LIBOBJ is used.
14263
14264 2010-04-05  Bruno Haible  <bruno@clisp.org>
14265
14266         mbsinit, mbrtowc, wcrtomb: Improve idioms.
14267         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
14268         don't set REPLACE_MBSINIT to 1.
14269         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
14270         don't set REPLACE_MBRTOWC to 1.
14271         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
14272         exist, don't set REPLACE_MBSRTOWCS to 1.
14273         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
14274         exist, don't set REPLACE_MBSNRTOWCS to 1.
14275         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
14276         don't set REPLACE_WCRTOMB to 1.
14277         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
14278         exist, don't set REPLACE_WCSRTOMBS to 1.
14279         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
14280         exist, don't set REPLACE_WCSNRTOMBS to 1.
14281
14282 2010-04-05  Bruno Haible  <bruno@clisp.org>
14283
14284         ldexpl: Improve idiom.
14285         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
14286         make sure to set HAVE_DECL_LDEXPL to 0.
14287
14288 2010-04-05  Jim Meyering  <meyering@redhat.com>
14289
14290         xstrtol-tests: convert to use init.sh
14291         * modules/xstrtol-tests (Files): Add tests/init.sh.
14292         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14293         Use Exit, not exit.
14294         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14295
14296         atexit-tests: convert to use init.sh
14297         * modules/atexit-tests (Files): Add tests/init.sh.
14298         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
14299         Use Exit, not exit.
14300         Remove uses of $EXEEXT and "./" to run a program in the current dir.
14301
14302         init.sh: fix typo
14303         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
14304
14305         init.sh: make it easier for a test script to write to the tty, ...
14306         when using automake's parallel-tests mode.
14307         * tests/init.sh (stderr_fileno_): Define overridable variable.
14308         (warn_): New function, to use it.
14309         (fail_, skip_, framework_failure_): Use warn_.
14310
14311 2010-04-04  Bruno Haible  <bruno@clisp.org>
14312
14313         btowc: Avoid warning.
14314         * lib/btowc.c: Include <stdlib.h>.
14315         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
14316
14317 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14318             Bruno Haible  <bruno@clisp.org>
14319
14320         wchar: Port to NetBSD 1.5.
14321         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
14322         * lib/wctype.in.h (WEOF): Likewise.
14323
14324 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
14325             Bruno Haible  <bruno@clisp.org>
14326
14327         Port extended stdio to NetBSD 1.5.
14328         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
14329         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
14330         older.
14331
14332 2010-04-04  Bruno Haible  <bruno@clisp.org>
14333
14334         string: Remove unused substitution.
14335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
14336         HAVE_DECL_STRERROR.
14337         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
14338
14339 2010-04-04  Bruno Haible  <bruno@clisp.org>
14340
14341         strtod: Avoid a possible C++ test error.
14342         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
14343         set REPLACE_STRTOD.
14344
14345 2010-04-04  Bruno Haible  <bruno@clisp.org>
14346
14347         strerror: Update documentation.
14348         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
14349
14350 2010-04-04  Bruno Haible  <bruno@clisp.org>
14351
14352         stdio: Fix some C++ test errors on Solaris 8 with GCC.
14353         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
14354         _GL_CXXALIAS_SYS_CAST.
14355
14356 2010-04-04  Bruno Haible  <bruno@clisp.org>
14357
14358         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
14359         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
14360         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
14361         REPLACE_FREXPL to 1.
14362         * doc/posix-functions/frexpl.texi: Update documentation.
14363
14364 2010-04-04  Bruno Haible  <bruno@clisp.org>
14365
14366         math: Fix some C++ test errors on Solaris 8 and Cygwin.
14367         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
14368
14369 2010-04-04  Bruno Haible  <bruno@clisp.org>
14370
14371         Implement nanosleep for native Windows.
14372         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
14373
14374 2010-04-04  Bruno Haible  <bruno@clisp.org>
14375
14376         math: Fix some C++ test errors on Solaris 8.
14377         * lib/math.in.h (truncf, trunc): Use simpler idiom.
14378
14379 2010-04-04  Bruno Haible  <bruno@clisp.org>
14380
14381         math: Fix some C++ test errors on Cygwin.
14382         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
14383         truncl): Provide declaration if the system does not have it.
14384         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
14385         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
14386         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
14387         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
14388         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
14389         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
14390         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
14391         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
14392         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
14393         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
14394         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
14395         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
14396         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
14397         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
14398         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
14399         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
14400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
14401         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14402         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14403         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
14404         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
14405         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
14406
14407 2010-04-04  Bruno Haible  <bruno@clisp.org>
14408
14409         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
14410         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14411         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
14412         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
14413         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14414         * m4/isinf.m4 (gl_ISINF): Likewise.
14415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14416
14417 2010-04-04  Bruno Haible  <bruno@clisp.org>
14418
14419         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
14420         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14421
14422 2010-04-04  Bruno Haible  <bruno@clisp.org>
14423
14424         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
14425         * modules/tmpfile (configure.ac): Update.
14426
14427         tmpfile: Fix C++ test error on mingw.
14428         * lib/stdio.in.h (tmpfile): New declaration.
14429         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
14430         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
14431         * modules/tmpfile (Depends-on): Add stdio.
14432         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
14433         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
14434         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
14435         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
14436         REPLACE_TMPFILE.
14437         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
14438
14439 2010-04-04  Bruno Haible  <bruno@clisp.org>
14440
14441         ioctl: Fix C++ test error on mingw.
14442         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
14443         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
14444         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
14445
14446 2010-04-03  Bruno Haible  <bruno@clisp.org>
14447
14448         wcwidth: Fix C++ test error on mingw.
14449         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
14450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
14451         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
14452
14453 2010-04-03  Bruno Haible  <bruno@clisp.org>
14454
14455         nanosleep: Fix C++ test error on mingw.
14456         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
14457         * lib/time.in.h (nanosleep): Use modern idiom.
14458         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
14459         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
14460         REPLACE_NANOSLEEP to 1.
14461         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
14462         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
14463
14464 2010-04-03  Bruno Haible  <bruno@clisp.org>
14465
14466         strptime: Fix C++ test error on mingw.
14467         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
14468         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
14469         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
14470         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
14471         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
14472         not REPLACE_STRPTIME.
14473         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
14474         REPLACE_STRPTIME.
14475
14476 2010-04-03  Bruno Haible  <bruno@clisp.org>
14477
14478         timegm: Fix C++ test error on mingw.
14479         * lib/time.in.h (timegm): Use modern idiom.
14480         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
14481         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
14482         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
14483         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
14484
14485 2010-04-03  Bruno Haible  <bruno@clisp.org>
14486
14487         timegm: Assume declaration if function exists.
14488         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
14489         if it exists. Don't clobber ac_cv_func_timegm.
14490
14491 2010-04-03  Bruno Haible  <bruno@clisp.org>
14492
14493         time_r: Fix C++ test error on mingw.
14494         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
14495         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
14496         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
14497         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
14498         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
14499
14500 2010-04-03  Bruno Haible  <bruno@clisp.org>
14501
14502         time_r: Minor updates.
14503         * modules/time_r (Description): Mention the provided functions.
14504         * lib/time_r.c: Don't include <string.h>.
14505         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
14506         * doc/posix-functions/localtime_r.texi: Likewise.
14507
14508 2010-04-03  Bruno Haible  <bruno@clisp.org>
14509
14510         time: Fix regression introduced on 2010-03-08.
14511         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
14512         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
14513
14514 2010-04-03  Jim Meyering  <meyering@redhat.com>
14515
14516         maint.mk: don't silently disable project-specific syntax-check rules
14517         * top/maint.mk (_prohibit_regexp): Define, to help people realize
14518         that they need to convert their project-specific syntax-check rules
14519         to use the new _sc_search_regexp.
14520
14521 2010-04-03  Bruno Haible  <bruno@clisp.org>
14522
14523         fchdir: Fix regression introduced on 2010-03-08.
14524         * lib/unistd.in.h (fchdir): Fix declaration.
14525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
14526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
14527         REPLACE_FCHDIR.
14528         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
14529         REPLACE_FCHDIR.
14530
14531 2010-04-03  Bruno Haible  <bruno@clisp.org>
14532
14533         getpagesize: Fix C++ test error on mingw.
14534         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
14535         system does not declare the function.
14536         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
14537         declared.
14538         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14539         HAVE_DECL_GETPAGESIZE.
14540         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
14541
14542 2010-04-03  Bruno Haible  <bruno@clisp.org>
14543
14544         stdio: Make C++ tests work on mingw.
14545         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
14546         does not declare the function.
14547
14548 2010-04-03  Bruno Haible  <bruno@clisp.org>
14549
14550         ftello: Fix C++ test error on mingw.
14551         * lib/stdio.in.h (ftello): Use modern idiom.
14552         * lib/ftello.c (ftello): Renamed from rpl_ftello.
14553         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
14554         is missing and that it needs to be replaced.
14555         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
14556         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
14557         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
14558
14559 2010-04-03  Bruno Haible  <bruno@clisp.org>
14560
14561         fseeko: Fix C++ test error on mingw.
14562         * lib/stdio.in.h (fseeko): Use modern idiom.
14563         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
14564         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
14565         is missing and that it needs to be replaced.
14566         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
14567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
14568         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
14569
14570 2010-04-03  Bruno Haible  <bruno@clisp.org>
14571
14572         mkstemp: Fix C++ test error on mingw.
14573         * lib/stdlib.in.h (mkstemp): Use modern idiom.
14574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
14575         function is missing and that it needs to be replaced.
14576         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
14577         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
14578
14579 2010-04-03  Bruno Haible  <bruno@clisp.org>
14580
14581         stpncpy: Fix C++ test error on mingw.
14582         * lib/string.in.h (stpncpy): Use modern idiom.
14583         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
14584         function is missing and that it needs to be replaced.
14585         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
14586         REPLACE_STPNCPY.
14587         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
14588
14589 2010-04-03  Bruno Haible  <bruno@clisp.org>
14590
14591         sys_stat: Fix C++ test error on mingw.
14592         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
14593         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
14594
14595 2010-04-03  Bruno Haible  <bruno@clisp.org>
14596
14597         pty: Update doc.
14598         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
14599
14600 2010-04-03  Bruno Haible  <bruno@clisp.org>
14601
14602         unistd: Fix C++ test error on mingw.
14603         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
14604
14605 2010-04-03  Bruno Haible  <bruno@clisp.org>
14606
14607         Update doc regarding mingw.
14608         * doc/glibc-functions/openpty.texi: Update regarding mingw.
14609         * doc/glibc-functions/login_tty.texi: Likewise.
14610         * doc/glibc-functions/forkpty.texi: Likewise.
14611
14612 2010-04-03  Bruno Haible  <bruno@clisp.org>
14613
14614         stdlib: Avoid compilation failure of c-strtold on mingw.
14615         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
14616
14617 2010-04-03  Bruno Haible  <bruno@clisp.org>
14618
14619         locale: Make C++ tests work on Cygwin and mingw.
14620         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
14621         cannot provide the function.
14622         Reported by Simon Josefsson.
14623
14624 2010-04-03  Bruno Haible  <bruno@clisp.org>
14625
14626         localename: Port to MacOS X 10.6.
14627         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
14628         memory layout of the locales in MacOS X 10.6 as well.
14629         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
14630
14631 2010-04-02  Bruno Haible  <bruno@clisp.org>
14632
14633         gnulib-tool: Ensure that long-running tests are executed last.
14634         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
14635         running tests after the one for the other tests.
14636
14637 2010-04-02  Bruno Haible  <bruno@clisp.org>
14638
14639         gnulib-tool: Ensure the tests in the main directory are executed first.
14640         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
14641         start with the current directory.
14642
14643 2010-04-02  Bruno Haible  <bruno@clisp.org>
14644
14645         Tests for module 'havelib', moved here from GNU gettext.
14646         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
14647         modifications.
14648         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
14649         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
14650         with modifications.
14651         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
14652         modifications.
14653         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
14654         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
14655         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
14656         with modifications.
14657         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
14658         with modifications.
14659         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
14660         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
14661         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
14662         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
14663         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
14664         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
14665         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
14666         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
14667         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
14668         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
14669         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
14670         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
14671         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
14672         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
14673         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
14674         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
14675         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
14676         with modifications.
14677         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
14678         with modifications.
14679         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
14680         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
14681         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
14682         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
14683         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
14684         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
14685         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
14686         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
14687         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
14688         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
14689         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
14690         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
14691         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
14692         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
14693         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
14694         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
14695         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
14696         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
14697         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
14698         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
14699         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
14700         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
14701         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
14702         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
14703         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
14704         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
14705         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
14706         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
14707         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
14708         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
14709         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
14710         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
14711         * tests/havelib/rpathx/rpathx.c: New file, from
14712         gettext/autoconf-lib-link.
14713         * tests/havelib/rpathx/Makefile.am: New file, from
14714         gettext/autoconf-lib-link.
14715         * tests/havelib/rpathx/configure.ac: New file, from
14716         gettext/autoconf-lib-link with modifications.
14717         * tests/havelib/rpathy/rpathy.c: New file, from
14718         gettext/autoconf-lib-link.
14719         * tests/havelib/rpathy/Makefile.am: New file, from
14720         gettext/autoconf-lib-link.
14721         * tests/havelib/rpathy/configure.ac: New file, from
14722         gettext/autoconf-lib-link with modifications.
14723         * tests/havelib/rpathz/rpathz.c: New file, from
14724         gettext/autoconf-lib-link.
14725         * tests/havelib/rpathz/Makefile.am: New file, from
14726         gettext/autoconf-lib-link.
14727         * tests/havelib/rpathz/configure.ac: New file, from
14728         gettext/autoconf-lib-link with modifications.
14729         * tests/havelib/rpathlx/usex.c: New file, from
14730         gettext/autoconf-lib-link.
14731         * tests/havelib/rpathlx/Makefile.am: New file, from
14732         gettext/autoconf-lib-link.
14733         * tests/havelib/rpathlx/configure.ac: New file, from
14734         gettext/autoconf-lib-link with modifications.
14735         * tests/havelib/rpathly/usey.c: New file, from
14736         gettext/autoconf-lib-link.
14737         * tests/havelib/rpathly/Makefile.am: New file, from
14738         gettext/autoconf-lib-link.
14739         * tests/havelib/rpathly/configure.ac: New file, from
14740         gettext/autoconf-lib-link with modifications.
14741         * tests/havelib/rpathlz/usez.c: New file, from
14742         gettext/autoconf-lib-link.
14743         * tests/havelib/rpathlz/Makefile.am: New file, from
14744         gettext/autoconf-lib-link.
14745         * tests/havelib/rpathlz/configure.ac: New file, from
14746         gettext/autoconf-lib-link with modifications.
14747         * tests/havelib/rpathlyx/usey.c: New file, from
14748         gettext/autoconf-lib-link.
14749         * tests/havelib/rpathlyx/Makefile.am: New file, from
14750         gettext/autoconf-lib-link.
14751         * tests/havelib/rpathlyx/configure.ac: New file, from
14752         gettext/autoconf-lib-link with modifications.
14753         * tests/havelib/rpathlzyx/usez.c: New file, from
14754         gettext/autoconf-lib-link.
14755         * tests/havelib/rpathlzyx/Makefile.am: New file, from
14756         gettext/autoconf-lib-link.
14757         * tests/havelib/rpathlzyx/configure.ac: New file, from
14758         gettext/autoconf-lib-link with modifications.
14759         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
14760         with modifications.
14761
14762 2010-04-02  Bruno Haible  <bruno@clisp.org>
14763
14764         gnulib-tool: Create distributed built sources also for the tests.
14765         * gnulib-tool (func_create_testdir): Also generate distributed built
14766         sources in the tests directory.
14767
14768 2010-04-02  Bruno Haible  <bruno@clisp.org>
14769
14770         gnulib-tool: Obey user's environment variables.
14771         * gnulib-tool (func_create_testdir): When creating built sources,
14772         respect the environment variables for autoconf, automake, etc. given by
14773         the user.
14774
14775 2010-04-02  Bruno Haible  <bruno@clisp.org>
14776
14777         gnulib-tool: Provide the value of --m4-base to modules.
14778         * gnulib-tool (func_import, func_create_testdir): Emit a definition
14779         of gl_m4_base.
14780
14781 2010-04-02  Eric Blake  <eblake@redhat.com>
14782
14783         maint.mk: fix some fallout
14784         * NEWS: Document the incompatible change, and its effect on cfg.mk.
14785         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
14786
14787 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14788
14789         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
14790         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
14791         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
14792         (sc_cast_of_x_alloc_return_value): Likewise.
14793         (sc_cast_of_alloca_return_value): Likewise.
14794         (sc_space_tab): Likewise.
14795         (sc_prohibit_atoi_atof): Likewise.
14796         (sc_prohibit_magic_number_exit): Likewise.
14797         (sc_error_exit_success): Likewise.
14798         (sc_file_system): Likewise.
14799         (sc_prohibit_have_config_h): Likewise.
14800         (sc_require_config_h): Likewise.
14801         (sc_prohibit_HAVE_MBRTOWC): Likewise.
14802         (sc_obsolete_symbols): Likewise.
14803         (sc_changelog): Likewise.
14804         (sc_program_name): Likewise.
14805         (sc_the_the): Likewise.
14806         (sc_trailing_blank): Likewise.
14807         (sc_two_space_separator_in_usage): Likewise.
14808         (sc_useless_cpp_parens): Likewise.
14809         (sc_GPL_version): Likewise.
14810         (sc_GFDL_version): Likewise.
14811         (sc_texinfo_acronym): Likewise.
14812         (sc_prohibit_cvs_keyword): Likewise.
14813         (sc_prohibit_stat_st_blocks): Likewise.
14814         (sc_prohibit_S_IS_definition): Likewise.
14815         (sc_redundant_const): Likewise.
14816         (sc_makefile_TAB_only_indentation): Likewise.
14817         (sc_m4_quote_check): Likewise.
14818         (sc_makefile_path_separator_check): Likewise.
14819         (sc_copyright_check): Likewise.
14820         (sc_Wundef_boolean): Likewise.
14821         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
14822
14823         maint.mk: match 0 or more whitespace-before-function-call '('
14824         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
14825         that have zero or two-and-more spaces between the function name
14826         and the open parenthesis.
14827         (sc_error_message_warn_fatal): Likewise.
14828         (sc_error_message_uppercase): Likewise.
14829         (sc_error_message_period): Likewise.
14830
14831 2010-03-31  Eric Blake  <eblake@redhat.com>
14832
14833         maint.mk: check for [ as well as test
14834         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
14835         Based on a libvirt report by Matthias Bolte.
14836
14837         gnumakefile: don't squelch _version output
14838         * top/GNUmakefile (_version): Create one-shot dependency rather
14839         than using $(shell) when version must be regenerated.
14840         (_autoreconf): Run verbosely, by default.
14841
14842         sys_time: avoid compiler warnings
14843         * lib/sys_time.in.h (includes): Ensure gcc pragma is
14844         unconditional, fixing regression from 2010-03-29.
14845         Reported by Simon Josefsson.
14846
14847 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
14848
14849         maint.mk: s/_header_without_use/_sc_header_without_use/
14850         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
14851         (sc_prohibit_assert_without_use): Use the new name.
14852         (sc_prohibit_close_stream_without_use): Likewise.
14853         (sc_prohibit_getopt_without_use): Likewise.
14854         (sc_prohibit_quotearg_without_use): Likewise.
14855         (sc_prohibit_quote_without_use): Likewise.
14856         (sc_prohibit_long_options_without_use): Likewise.
14857         (sc_prohibit_inttostr_without_use): Likewise.
14858         (sc_prohibit_ignore_value_without_use): Likewise.
14859         (sc_prohibit_error_without_use): Likewise.
14860         (sc_prohibit_xalloc_without_use): Likewise.
14861         (sc_prohibit_hash_without_use): Likewise.
14862         (sc_prohibit_hash_pjw_without_use): Likewise.
14863         (sc_prohibit_safe_read_without_use): Likewise.
14864         (sc_prohibit_argmatch_without_use): Likewise.
14865         (sc_prohibit_canonicalize_without_use): Likewise.
14866         (sc_prohibit_root_dev_ino_without_use): Likewise.
14867         (sc_prohibit_openat_without_use): Likewise.
14868         (sc_prohibit_c_ctype_without_use): Likewise.
14869         (sc_prohibit_signal_without_use): Likewise.
14870         (sc_prohibit_intprops_without_use): Likewise.
14871
14872 2010-03-30  Eric Blake  <eblake@redhat.com>
14873
14874         maint: improve module indicators
14875         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
14876         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
14877         columns, and avoid extra macro expansion.
14878
14879         fdopendir: work around FreeBSD bug
14880         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
14882         * modules/dirent (Makefile.am): Substitute it.
14883         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
14884         declaration.
14885         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
14886         fix.
14887         Reported by Christian Weisgerber <naddy@mips.inka.de>.
14888
14889 2010-03-29  Bruno Haible  <bruno@clisp.org>
14890
14891         Emit #pragma system_header after the inclusion guard, not before.
14892         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
14893         guard that spans the entire file, not before. This enables an
14894         optimization in GCC's preprocessor.
14895         * lib/ctype.in.h: Likewise.
14896         * lib/dirent.in.h: Likewise.
14897         * lib/errno.in.h: Likewise.
14898         * lib/float.in.h: Likewise.
14899         * lib/getopt.in.h: Likewise.
14900         * lib/iconv.in.h: Likewise.
14901         * lib/langinfo.in.h: Likewise.
14902         * lib/locale.in.h: Likewise.
14903         * lib/math.in.h: Likewise.
14904         * lib/netdb.in.h: Likewise.
14905         * lib/netinet_in.in.h: Likewise.
14906         * lib/pty.in.h: Likewise.
14907         * lib/sched.in.h: Likewise.
14908         * lib/se-selinux.in.h: Likewise.
14909         * lib/search.in.h: Likewise.
14910         * lib/spawn.in.h: Likewise.
14911         * lib/stdarg.in.h: Likewise.
14912         * lib/stdint.in.h: Likewise.
14913         * lib/string.in.h: Likewise.
14914         * lib/strings.in.h: Likewise.
14915         * lib/sys_file.in.h: Likewise.
14916         * lib/sys_ioctl.in.h: Likewise.
14917         * lib/sys_time.in.h: Likewise.
14918         * lib/sys_times.in.h: Likewise.
14919         * lib/sys_utsname.in.h: Likewise.
14920         * lib/sys_wait.in.h: Likewise.
14921         * lib/sysexits.in.h: Likewise.
14922         * lib/wctype.in.h: Likewise.
14923
14924 2010-03-28  James Youngman  <jay@gnu.org>
14925
14926         save-cwd: don't leak a file descriptor when the caller execs.
14927         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
14928         saved file descriptor.
14929         * modules/save-cwd (Depends-on): Depend on cloexec.
14930
14931 2010-03-29  Bruno Haible  <bruno@clisp.org>
14932
14933         Remove vestiges of fts-lgpl module.
14934         * lib/fts_.h: Assume GNULIB_FTS is 1.
14935         * lib/fts.c: Likewise.
14936         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
14937
14938 2010-03-28  Bruno Haible  <bruno@clisp.org>
14939
14940         Fix definition of tests witness macro.
14941         * gnulib-tool (func_import): Fix definition of witness macro.
14942
14943 2010-03-28  Bruno Haible  <bruno@clisp.org>
14944
14945         Fix ioctl's protoype on glibc systems.
14946         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
14947         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
14948         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
14949         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
14950         signature. If not, arrange to replace the ioctl function.
14951         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
14952         REPLACE_IOCTL.
14953         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
14954         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
14955         Reported by Ludovic Courtès <ludo@gnu.org>.
14956
14957 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
14958
14959         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
14960         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
14961         made it so grep -r --include=GLOB* ... did not work.
14962
14963 2010-03-26  Jim Meyering  <meyering@redhat.com>
14964             Eric Blake  <eblake@redhat.com>
14965
14966         maint.mk: prohibit use of test's -o and -a operators
14967         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
14968
14969 2010-03-28  Bruno Haible  <bruno@clisp.org>
14970
14971         Remove unused GNULIB_XYZ macro definitions.
14972         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
14973         invocation.
14974
14975 2010-03-28  Bruno Haible  <bruno@clisp.org>
14976
14977         Mark privileged tests modules.
14978         * modules/idpriv-drop-tests (Status): New section.
14979         * modules/idpriv-droptemp-tests (Status): New section.
14980
14981 2010-03-28  Bruno Haible  <bruno@clisp.org>
14982
14983         Split C++ tests into separate tests modules.
14984         * modules/dirent-c++-tests: New file, extracted from
14985         modules/dirent-tests.
14986         * modules/dirent-tests: Depend on it.
14987         * modules/fcntl-h-c++-tests: New file, extracted from
14988         modules/fcntl-h-tests.
14989         * modules/fcntl-h-tests: Depend on it.
14990         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
14991         * modules/glob-tests: Depend on it.
14992         * modules/iconv-h-c++-tests: New file, extracted from
14993         modules/iconv-h-tests.
14994         * modules/iconv-h-tests: Depend on it.
14995         * modules/langinfo-c++-tests: New file, extracted from
14996         modules/langinfo-tests.
14997         * modules/langinfo-tests: Depend on it.
14998         * modules/locale-c++-tests: New file, extracted from
14999         modules/locale-tests.
15000         * modules/locale-tests: Depend on it.
15001         * modules/math-c++-tests: New file, extracted from modules/math-tests.
15002         * modules/math-tests: Depend on it.
15003         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
15004         * modules/pty-tests: Depend on it.
15005         * modules/search-c++-tests: New file, extracted from
15006         modules/search-tests.
15007         * modules/search-tests: Depend on it.
15008         * modules/signal-c++-tests: New file, extracted from
15009         modules/signal-tests.
15010         * modules/signal-tests: Depend on it.
15011         * modules/spawn-c++-tests: New file, extracted from
15012         modules/spawn-tests.
15013         * modules/spawn-tests: Depend on it.
15014         * modules/stdio-c++-tests: New file, extracted from
15015         modules/stdio-tests.
15016         * modules/stdio-tests: Depend on it.
15017         * modules/stdlib-c++-tests: New file, extracted from
15018         modules/stdlib-tests.
15019         * modules/stdlib-tests: Depend on it.
15020         * modules/string-c++-tests: New file, extracted from
15021         modules/string-tests.
15022         * modules/string-tests: Depend on it.
15023         * modules/sys_ioctl-c++-tests: New file, extracted from
15024         modules/sys_ioctl-tests.
15025         * modules/sys_ioctl-tests: Depend on it.
15026         * modules/sys_select-c++-tests: New file, extracted from
15027         modules/sys_select-tests.
15028         * modules/sys_select-tests: Depend on it.
15029         * modules/sys_socket-c++-tests: New file, extracted from
15030         modules/sys_socket-tests.
15031         * modules/sys_socket-tests: Depend on it.
15032         * modules/sys_stat-c++-tests: New file, extracted from
15033         modules/sys_stat-tests.
15034         * modules/sys_stat-tests: Depend on it.
15035         * modules/sys_time-c++-tests: New file, extracted from
15036         modules/sys_time-tests.
15037         * modules/sys_time-tests: Depend on it.
15038         * modules/time-c++-tests: New file, extracted from modules/time-tests.
15039         * modules/time-tests: Depend on it.
15040         * modules/unistd-c++-tests: New file, extracted from
15041         modules/unistd-tests.
15042         * modules/unistd-tests: Depend on it.
15043         * modules/wchar-c++-tests: New file, extracted from
15044         modules/wchar-tests.
15045         * modules/wchar-tests: Depend on it.
15046         * modules/wctype-c++-tests: New file, extracted from
15047         modules/wctype-tests.
15048         * modules/wctype-tests: Depend on it.
15049         Reported by Simon Josefsson.
15050
15051 2010-03-28  Bruno Haible  <bruno@clisp.org>
15052
15053         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
15054         * gnulib-tool (func_exists_module): New function, extracted from
15055         func_verify_module.
15056         (func_verify_module): Use it.
15057         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
15058         'foo' only if 'foo' exists.
15059         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
15060         module.
15061
15062 2010-03-28  Bruno Haible  <bruno@clisp.org>
15063
15064         gnulib-tool: Add support for special categories of tests.
15065         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
15066         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
15067         (func_usage): Document them.
15068         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
15069         inc_unportable_tests, inc_all_tests): New variables.
15070         (func_acceptable): Consider these variables.
15071         (func_modules_transitive_closure): Make it work when the 'Status' field
15072         consists of multiple words.
15073         (func_import): Store and restore the values of inc_cxx_tests,
15074         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
15075         inc_all_tests in gnulib-comp.m4.
15076         (func_create_testdir): Set inc_all_tests to true.
15077         * doc/gnulib.texi (Extra tests modules): New section.
15078         Suggested by Jim Meyering.
15079
15080 2010-03-28  Bruno Haible  <bruno@clisp.org>
15081
15082         ansi-c++-opt: Allow turning off the C++ build by default.
15083         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
15084         gl_CXX_CHOICE_DEFAULT_NO is defined.
15085         Requested by Eric Blake.
15086
15087 2010-03-28  Bruno Haible  <bruno@clisp.org>
15088
15089         unistd: Avoid #define replacements in C++ mode.
15090         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15091         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15092         setsockopt, shutdown, select): In C++, attach a warning to the function
15093         if possible, rather than #defining the symbol to a dysfunctional alias.
15094         Reported by John W. Eaton <jwe@gnu.org>.
15095
15096 2010-03-28  Bruno Haible  <bruno@clisp.org>
15097
15098         Fix link errors on mingw.
15099         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
15100         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
15101         $(LIBSOCKET).
15102         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
15103         $(LIBSOCKET).
15104
15105 2010-03-28  Bruno Haible  <bruno@clisp.org>
15106             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15107
15108         lib-ignore: Determine different options for different compilers.
15109         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
15110         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
15111         Add comments.
15112         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
15113         * NEWS: Mention the change.
15114
15115 2010-03-27  Bruno Haible  <bruno@clisp.org>
15116
15117         Remove unused GNULIB_XYZ macro definitions.
15118         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
15119         * modules/fseek (configure.ac): Likewise.
15120         * modules/ioctl (configure.ac): Likewise.
15121         * modules/open (configure.ac): Likewise.
15122         * modules/stdlib-safer (configure.ac): Likewise.
15123
15124 2010-03-27  Bruno Haible  <bruno@clisp.org>
15125
15126         Add a remark about certain modules.
15127         * modules/malloc (Comment): New section.
15128         * modules/realloc (Comment): Likewise.
15129         * modules/sigpipe (Comment): Likewise.
15130
15131 2010-03-27  Bruno Haible  <bruno@clisp.org>
15132
15133         Resolve conflict between the two kinds of module indicators.
15134         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
15135         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
15136         * modules/canonicalize (configure.ac): Invoke
15137         gl_MODULE_INDICATOR_FOR_TESTS.
15138         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
15139         GNULIB_XYZ.
15140         * tests/test-dirent-c++.cc: Likewise.
15141         * tests/test-dirent-safer.c: Likewise.
15142         * tests/test-dup2.c: Likewise.
15143         * tests/test-fchdir.c: Likewise.
15144         * tests/test-fcntl-h-c++.cc: Likewise.
15145         * tests/test-getopt.c: Likewise.
15146         * tests/test-getopt.h: Likewise.
15147         * tests/test-langinfo-c++.cc: Likewise.
15148         * tests/test-locale-c++.cc: Likewise.
15149         * tests/test-math-c++.cc: Likewise.
15150         * tests/test-pty-c++.cc: Likewise.
15151         * tests/test-search-c++.cc: Likewise.
15152         * tests/test-signal-c++.cc: Likewise.
15153         * tests/test-spawn-c++.cc: Likewise.
15154         * tests/test-stdio-c++.cc: Likewise.
15155         * tests/test-stdlib-c++.cc: Likewise.
15156         * tests/test-string-c++.cc: Likewise.
15157         * tests/test-sys_ioctl-c++.cc: Likewise.
15158         * tests/test-sys_select-c++.cc: Likewise.
15159         * tests/test-sys_socket-c++.cc: Likewise.
15160         * tests/test-sys_stat-c++.cc: Likewise.
15161         * tests/test-sys_time-c++.cc: Likewise.
15162         * tests/test-time-c++.cc: Likewise.
15163         * tests/test-unistd-c++.cc: Likewise.
15164         * tests/test-wchar-c++.cc: Likewise.
15165         * tests/uninorm/test-u8-nfc.c: Likewise.
15166         * tests/uninorm/test-u8-nfd.c: Likewise.
15167         * tests/uninorm/test-u8-nfkc.c: Likewise.
15168         * tests/uninorm/test-u8-nfkd.c: Likewise.
15169         * tests/uninorm/test-u16-nfc.c: Likewise.
15170         * tests/uninorm/test-u16-nfd.c: Likewise.
15171         * tests/uninorm/test-u16-nfkc.c: Likewise.
15172         * tests/uninorm/test-u16-nfkd.c: Likewise.
15173         * tests/uninorm/test-u32-nfc.c: Likewise.
15174         * tests/uninorm/test-u32-nfc-big.c: Likewise.
15175         * tests/uninorm/test-u32-nfd.c: Likewise.
15176         * tests/uninorm/test-u32-nfd-big.c: Likewise.
15177         * tests/uninorm/test-u32-nfkc.c: Likewise.
15178         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
15179         * tests/uninorm/test-u32-nfkd.c: Likewise.
15180         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
15181         * tests/uninorm/test-u32-normalize-big.c: Likewise.
15182
15183 2010-03-27  Bruno Haible  <bruno@clisp.org>
15184
15185         Distinguish two kinds of module indicators.
15186         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
15187         gl_MODULE_INDICATOR.
15188         (gl_MODULE_INDICATOR): New macro.
15189         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
15190         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
15191         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15192         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15193         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15194         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15195         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15196         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15197         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15198         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15199         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15200         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15202         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15203         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15204         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15205         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15206         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15207         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15208         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15209         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15210         * modules/cloexec (configure.ac): Likewise.
15211         * modules/getopt-gnu (configure.ac): Likewise.
15212         * modules/uninorm/u8-normalize (configure.ac): Likewise.
15213         * modules/uninorm/u16-normalize (configure.ac): Likewise.
15214         * modules/uninorm/u32-normalize (configure.ac): Likewise.
15215         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
15216
15217 2010-03-27  Bruno Haible  <bruno@clisp.org>
15218
15219         New module description field 'Comment'.
15220         * gnulib-tool: New option --extract-comment.
15221         (func_usage): Document it.
15222         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
15223         (func_get_comment): New function.
15224         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
15225
15226 2010-03-27  Bruno Haible  <bruno@clisp.org>
15227
15228         Addendum to 2010-02-07 commit.
15229         * gnulib-tool (func_usage): Document --extract-applicability option.
15230
15231 2010-03-27  Bruno Haible  <bruno@clisp.org>
15232
15233         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
15234         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
15235         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
15236         rather than link errors.
15237
15238 2010-03-27  Bruno Haible  <bruno@clisp.org>
15239
15240         Avoid side effects from tests-related modules on the compilation of lib.
15241         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
15242         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
15243         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
15244         parameter. Emit into AM_CPPFLAGS a definition of the designated C
15245         macro.
15246         (func_import): Define a witness macro. Assign it a value that depends
15247         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
15248         tests-related modules.
15249         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
15250         Reported by Jim Meyering.
15251
15252 2010-03-27  Bruno Haible  <bruno@clisp.org>
15253
15254         Factorize common .m4 code.
15255         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
15256         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
15257         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
15258         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
15259         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
15260         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
15261         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
15262         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
15263         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
15264         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
15265         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
15266         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
15267         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
15268         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
15269         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
15270         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
15271         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
15272         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
15273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
15274         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
15275         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
15276         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
15277         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
15278         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
15279         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
15280         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
15281         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
15282         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
15283         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
15284         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
15285         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
15286         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
15287
15288 2010-03-27  Bruno Haible  <bruno@clisp.org>
15289
15290         Fix a compilation error on Cygwin with g++ >= 4.3.
15291         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
15292         if it is undefined or if we alias it to chmod.
15293         (lstat): Don't warn about the use of this function if it is undefined
15294         or if we alias it to stat.
15295         Reported by Simon Josefsson.
15296
15297 2010-03-27  Bruno Haible  <bruno@clisp.org>
15298
15299         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
15300         * modules/getlogin (configure.ac): Update.
15301
15302         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
15303         * modules/getlogin_r (configure.ac): Update.
15304
15305         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
15306         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
15307         * modules/inet_ntop (configure.ac): Update.
15308
15309         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
15310         * modules/inet_pton (configure.ac): Update.
15311
15312         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
15313         * modules/mbslen (configure.ac): Update.
15314
15315         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
15316         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
15317         * modules/forkpty (configure.ac): Update.
15318         * modules/openpty (configure.ac): Update.
15319
15320 2010-03-26  Simon Josefsson  <simon@josefsson.org>
15321
15322         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
15323         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
15324
15325 2010-03-25  Eric Blake  <eblake@redhat.com>
15326
15327         maint: use pragma consistently across replacement headers
15328         * lib/ctype.in.h (system_header): Hoist for consistent placement.
15329         * lib/dirent.in.h (system_header): Likewise.
15330         * lib/errno.in.h (system_header): Likewise.
15331         * lib/float.in.h (system_header): Likewise.
15332         * lib/getopt.in.h (system_header): Likewise.
15333         * lib/iconv.in.h (system_header): Likewise.
15334         * lib/inttypes.in.h (system_header): Likewise.
15335         * lib/langinfo.in.h (system_header): Likewise.
15336         * lib/locale.in.h (system_header): Likewise.
15337         * lib/math.in.h (system_header): Likewise.
15338         * lib/netdb.in.h (system_header): Likewise.
15339         * lib/netinet_in.in.h (system_header): Likewise.
15340         * lib/pty.in.h (system_header): Likewise.
15341         * lib/sched.in.h (system_header): Likewise.
15342         * lib/se-selinux.in.h (system_header): Likewise.
15343         * lib/search.in.h (system_header): Likewise.
15344         * lib/spawn.in.h (system_header): Likewise.
15345         * lib/stdarg.in.h (system_header): Likewise.
15346         * lib/stdint.in.h (system_header): Likewise.
15347         * lib/string.in.h (system_header): Likewise.
15348         * lib/strings.in.h (system_header): Likewise.
15349         * lib/sys_file.in.h (system_header): Likewise.
15350         * lib/sys_ioctl.in.h (system_header): Likewise.
15351         * lib/sys_socket.in.h (system_header): Likewise.
15352         * lib/sys_times.in.h (system_header): Likewise.
15353         * lib/sys_utsname.in.h (system_header): Likewise.
15354         * lib/sys_wait.in.h (system_header): Likewise.
15355         * lib/sysexits.in.h (system_header): Likewise.
15356         * lib/unistd.in.h (system_header): Likewise.
15357         * lib/wctype.in.h (system_header): Likewise.
15358
15359         arpa/inet: fix mingw compilation warning
15360         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
15361         Reported by Matthew Bolte.
15362
15363 2010-03-25  Bruno Haible  <bruno@clisp.org>
15364
15365         Avoid collision between gnulib wrapper and libintl wrapper.
15366         * lib/printf.c (printf): Don't define if a printf wrapper is already
15367         defined in intl/printf.c.
15368         Reported by Michel Boaventura <michel@michelboaventura.com>.
15369
15370 2010-03-25  Bruno Haible  <bruno@clisp.org>
15371
15372         Use ANSI C.
15373         * lib/readutmp.h (getutent): Provide ANSI C prototype.
15374
15375 2010-03-25  Bruno Haible  <bruno@clisp.org>
15376
15377         Minor formatting changes.
15378         * lib/acosl.c: Insert space before function argument list.
15379         * lib/argz.c: Likewise.
15380         * lib/asinl.c: Likewise.
15381         * lib/expl.c: Likewise.
15382         * lib/gen-uni-tables.c: Likewise.
15383         * lib/gettext.h: Likewise.
15384         * lib/glthread/lock.h: Likewise.
15385         * lib/tanl.c: Likewise.
15386         * lib/uniname/uniname.c: Likewise.
15387         * tests/test-idpriv-drop.c: Likewise.
15388         * tests/test-idpriv-droptemp.c: Likewise.
15389         * tests/test-lock.c: Likewise.
15390         * tests/test-tls.c: Likewise.
15391         * lib/argp-help.c: Insert space before function-like macro argument
15392         list.
15393         * lib/memcmp.c: Likewise.
15394         * tests/test-base64.c: Likewise.
15395         * lib/localename.c: Insert space before sizeof's argument list.
15396         * lib/safe-alloc.h: Likewise.
15397         * lib/file-set.h: Insert space before macro argument list.
15398         * tests/test-argp.c: Likewise.
15399         * lib/argp-namefrob.h: Insert space before function parameter list.
15400         * lib/getaddrinfo.c: Likewise.
15401         * lib/netdb.in.h: Likewise.
15402         * lib/parse-duration.h: Likewise.
15403         * lib/parse-duration.c: Likewise.
15404         * lib/poll.c: Likewise.
15405         * lib/select.c: Likewise.
15406         * lib/trim.h: Likewise.
15407         * tests/test-usleep.c: Likewise.
15408         * lib/ldexpl.c: Insert space before function parameter list and before
15409         function argument list.
15410         * lib/logl.c: Likewise.
15411         * lib/sqrtl.c: Likewise.
15412         * lib/trim.c: Likewise.
15413         * lib/cosl.c: Use GNU style indentation. Insert space before function
15414         argument list.
15415         * lib/sinl.c: Likewise.
15416         * lib/tsearch.c: Insert space after 'for'.
15417         Reported by Jim Meyering.
15418
15419 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
15420
15421         * maint.mk (sc_Wundef_boolean): Check for the presence of the
15422         config header before grepping, as it's not present before
15423         autoreconf/configure are run.  Reported by Simon Josefsson.
15424
15425 2010-03-23  Bruno Haible  <bruno@clisp.org>
15426
15427         pt_chown: Make it work with automake < 1.11.
15428         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
15429         Reported by Simon Josefsson.
15430
15431 2010-03-23  Bruno Haible  <bruno@clisp.org>
15432
15433         pt_chown: Don't depend on GPLed modules.
15434         * lib/pt_chown.c: Don't include idpriv.h.
15435         (main): Don't drop privileges.
15436         * modules/pt_chown (Depends-on): Remove idpriv-drop.
15437         Reported by Simon Josefsson.
15438
15439 2010-03-24  Simon Josefsson  <simon@josefsson.org>
15440
15441         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
15442         suggestions from karl@freefriends.org (Karl Berry).
15443
15444 2010-03-22  Eric Blake  <eblake@redhat.com>
15445
15446         gethostname: further tweaks
15447         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
15448         are overriding gethostname.
15449         Suggested by Bruno Haible.
15450
15451 2010-03-21  Bruno Haible  <bruno@clisp.org>
15452
15453         Fix comments.
15454         * lib/forkpty.c (rpl_forkpty): Fix comment.
15455         * lib/openpty.c (rpl_openpty): Likewise.
15456         Reported by Eric Blake.
15457
15458 2010-03-22  Eric Blake  <eblake@redhat.com>
15459
15460         gethostname: fix build on mingw
15461         * lib/unistd.in.h (includes): Work around fact that mingw
15462         <winsock2.h> re-includes <unistd.h>, by avoiding any
15463         redeclarations if we are being included by <winsock2.h>.
15464         Reported by Matthias Bolte.
15465
15466 2010-03-21  Bruno Haible  <bruno@clisp.org>
15467
15468         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15469         * lib/forkpty.c (forkpty): New replacement function, from glibc with
15470         modifications.
15471         * lib/pty.in.h (forkpty): Update declaration. Add comments.
15472         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
15473         provide the replacement.
15474         * modules/forkpty (Depends-on): Add openpty, login_tty.
15475         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
15476         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
15477         * doc/glibc-functions/forkpty.texi: More supported platforms.
15478         * config/srclist.txt: Add forkpty.c (commented).
15479
15480 2010-03-21  Bruno Haible  <bruno@clisp.org>
15481
15482         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
15483         (Makefile.am): Verify that PTY_LIB is defined.
15484
15485         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
15486
15487 2010-03-21  Bruno Haible  <bruno@clisp.org>
15488
15489         Tests for module 'login_tty'.
15490         * modules/login_tty-tests: New file.
15491         * tests/test-login_tty.c: New file.
15492
15493         New module 'login_tty'.
15494         * lib/login_tty.c: New file.
15495         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
15496         * modules/login_tty: New file.
15497         * doc/glibc-functions/login_tty.texi: Mention the new module.
15498
15499 2010-03-21  Bruno Haible  <bruno@clisp.org>
15500
15501         login_tty: Documentation.
15502         * doc/glibc-functions/login_tty.texi: New file.
15503         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
15504
15505 2010-03-21  Bruno Haible  <bruno@clisp.org>
15506
15507         pty: Consistent macro naming.
15508         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
15509         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
15510         * modules/pty (configure.ac): Update.
15511
15512 2010-03-21  Bruno Haible  <bruno@clisp.org>
15513
15514         Tests for openpty: Make stricter.
15515         * tests/test-openpty.c (main): Add test of canonical processing and
15516         erase.
15517         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
15518
15519         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
15520         * lib/openpty.c (openpty): New replacement function.
15521         * lib/pty.in.h: Include <termios.h>.
15522         (openpty): Update declaration. Add comments.
15523         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
15524         is not declared, arrange to provide the replacement. Check for _getpty
15525         and posix_openpt.
15526         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
15527         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
15528         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
15529         * modules/pty-tests (test_pty_c___LDADD): New variable.
15530         * doc/glibc-functions/openpty.texi: More supported platforms.
15531
15532 2010-03-21  Bruno Haible  <bruno@clisp.org>
15533
15534         setenv: Tweaks.
15535         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
15536         the test program.
15537         * doc/posix-functions/setenv.texi: Update platforms list.
15538
15539 2010-03-21  Bruno Haible  <bruno@clisp.org>
15540
15541         New module 'unlockpt'.
15542         * lib/unlockpt.c: New file, from glibc with modifications.
15543         * m4/unlockpt.m4: New file.
15544         * modules/unlockpt: New file.
15545         * lib/stdlib.in.h (unlockpt): New declaration.
15546         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
15547         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
15548         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
15549         HAVE_UNLOCKPT.
15550         * doc/posix-functions/unlockpt.texi: Mention the new module.
15551         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
15552         * config/srclist.txt: Add unlockpt.c (commented).
15553
15554 2010-03-21  Jim Meyering  <meyering@redhat.com>
15555
15556         maint.mk: prohibit inclusion of "intprops.h" without use
15557         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
15558
15559 2010-03-21  Bruno Haible  <bruno@clisp.org>
15560
15561         New module 'grantpt'.
15562         * lib/grantpt.c: New file, from glibc with modifications.
15563         * m4/grantpt.m4: New file.
15564         * modules/grantpt: New file.
15565         * lib/stdlib.in.h (grantpt): New declaration.
15566         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
15567         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
15568         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
15569         HAVE_GRANTPT.
15570         * doc/posix-functions/grantpt.texi: Mention the new module.
15571         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
15572         * config/srclist.txt: Add grantpt.c (commented).
15573
15574 2010-03-21  Bruno Haible  <bruno@clisp.org>
15575
15576         New module 'pt_chown'.
15577         * lib/pt_chown.c: New file, from glibc with modifications.
15578         * lib/pty-private.h: New file, from glibc with modifications.
15579         * modules/pt_chown: New file.
15580         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
15581
15582 2010-03-21  Bruno Haible  <bruno@clisp.org>
15583
15584         Tests for module 'ptsname'.
15585         * modules/ptsname-tests: New file.
15586         * tests/test-ptsname.c: New file.
15587
15588         New module 'ptsname'.
15589         * lib/ptsname.c: New file, from glibc with modifications.
15590         * m4/ptsname.m4: New file.
15591         * modules/ptsname: New file.
15592         * lib/stdlib.in.h (ptsname): New declaration.
15593         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
15594         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
15595         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
15596         HAVE_PTSNAME.
15597         * doc/posix-functions/ptsname.texi: Mention the new module.
15598         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
15599         * config/srclist.txt: Add ptsname.c (commented).
15600
15601 2010-03-21  Bruno Haible  <bruno@clisp.org>
15602
15603         Tests for module 'ttyname_r'.
15604         * modules/ttyname_r-tests: New file.
15605         * tests/test-ttyname_r.c: New file.
15606
15607         New module 'ttyname_r'.
15608         * lib/ttyname_r.c: New file.
15609         * m4/ttyname_r.m4: New file.
15610         * modules/ttyname_r: New file.
15611         * lib/unistd.in.h (ttyname_r): New declaration.
15612         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
15613         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
15614         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
15615         HAVE_TTYNAME_R.
15616         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
15617         * doc/posix-functions/ttyname_r.texi: Mention the new module.
15618
15619 2010-03-20  Bruno Haible  <bruno@clisp.org>
15620
15621         signal: Undefine macro definitions in C++ mode.
15622         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
15623         sigfillset): Undefine macro definitions from the system header in C++
15624         mode.
15625         Reported by John W. Eaton <jwe@gnu.org>.
15626
15627 2010-03-20  Bruno Haible  <bruno@clisp.org>
15628
15629         Ensure no #include statements inside extern "C" { ... }.
15630         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
15631         contain #include statements.
15632         * lib/time.in.h: Likewise.
15633
15634 2010-03-20  Bruno Haible  <bruno@clisp.org>
15635
15636         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
15637         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
15638         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
15639         Reported by John W. Eaton <jwe@gnu.org>.
15640
15641 2010-03-20  Bruno Haible  <bruno@clisp.org>
15642
15643         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
15644         Reported by Jim Meyering.
15645
15646 2010-03-20  Bruno Haible  <bruno@clisp.org>
15647
15648         pipe: Set errno upon failure.
15649         * lib/pipe.h: Specify that when -1 is returned, errno is set.
15650         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
15651         errno value in error message.
15652
15653 2010-03-20  Bruno Haible  <bruno@clisp.org>
15654             Jim Meyering  <meyering@redhat.com>
15655
15656         lchown: Avoid "unused variable" warning.
15657         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
15658
15659 2010-03-20  Bruno Haible  <bruno@clisp.org>
15660
15661         Work around unlink() bug on MacOS X 10.5.6.
15662         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
15663         attempting to unlink a parent directory.
15664         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
15665         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
15666         activate for the replacement function.
15667         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
15668
15669 2010-03-20  Bruno Haible  <bruno@clisp.org>
15670
15671         Fix link errors on Solaris 8.
15672         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
15673         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
15674
15675 2010-03-19  Jim Meyering  <meyering@redhat.com>
15676
15677         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
15678         The _LIBC implementation of build_range_exp correctly honors the
15679         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
15680         However, the non-_LIBC implementation would ignore that syntax-bit
15681         flag and return REG_ERANGE unconditionally.
15682         This change makes it honor that flag.
15683         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
15684         Make two pointer parameters "const".
15685         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
15686         (parse_bracket_exp): Update caller.
15687
15688         regex.m4: correct the reversed range endpoint ([b-a]) test
15689         * m4/regex.m4: When requiring that [b-a] evoke failure,
15690         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
15691         test pass once again for x86-based systems.
15692
15693 2010-03-19  Bruno Haible  <bruno@clisp.org>
15694
15695         scandir: Fix link error on Solaris 8.
15696         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
15697         macros.
15698
15699 2010-03-19  Bruno Haible  <bruno@clisp.org>
15700
15701         getusershell: Fix documentation.
15702         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
15703         module.
15704         * doc/glibc-functions/setusershell.texi: Likewise.
15705
15706         getusershell: Provide declaration, missing on Solaris 9.
15707         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
15708         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
15709         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
15710         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
15711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15712         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
15713         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
15714         HAVE_GETUSERSHELL.
15715         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
15716
15717 2010-03-19  Bruno Haible  <bruno@clisp.org>
15718
15719         wctype: Provide iswblank function.
15720         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
15721         exists and is fine.
15722         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
15723         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
15724         * tests/test-wctype.c (main): Re-enable the iswblank tests.
15725         * doc/posix-functions/iswblank.texi: Update.
15726
15727 2010-03-19  Bruno Haible  <bruno@clisp.org>
15728
15729         Tests of module 'pty' in C++ mode.
15730         * modules/pty-tests: New file.
15731         * tests/test-pty-c++.cc: New file.
15732         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
15733
15734 2010-03-19  Eric Blake  <eblake@redhat.com>
15735
15736         logb: fix documentation
15737         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
15738         1.5 declaration bug.
15739
15740         forkpty, openpty: prefer glibc's const-safe prototype
15741         * lib/forkpty.c (rpl_forkpty): New file.
15742         * lib/openpty.c (rpl_openpty): Likewise.
15743         * modules/forkpty (Files): Distribute it.
15744         * modules/openpty (Files): Likewise.
15745         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
15746         check...
15747         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
15748         replacement for for non-const BSD signature.
15749         * modules/pty (Makefile.am): Substitute witnesses.
15750         * lib/pty.in.h (forkpty, openpty): Declare replacements.
15751         * tests/test-forkpty.c: Update signature check.
15752         * tests/test-openpty.c: Likewise.
15753         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
15754         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15755
15756         forkpty, openpty: split functions into new modules
15757         * modules/pty (Makefile.am): Substitute new witnesses.
15758         (Libraries): Move library detection...
15759         * modules/forkpty: ...into new module.
15760         * modules/openpty: Another new module.
15761         * modules/pty-tests: Rename and split...
15762         * modules/forkpty-tests: ...to this...
15763         * modules/openpty-tests: ...and this.
15764         * tests/test-pty.c: Rename and split...
15765         * tests/test-forkpty.c: ...to this...
15766         * tests/test-openpty.c: ...and this.
15767         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
15768         (gl_PTY): Split library searching...
15769         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
15770         (gl_FORKPTY, gl_OPENPTY): New macros.
15771         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
15772         * NEWS: Mention the split.
15773         * MODULES.html.sh (Misc): Document the modules.
15774         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
15775         * doc/glibc-functions/openpty.texi (openpty): Likewise.
15776
15777         pty: improve replacement header
15778         * lib/pty.in.h: New file.
15779         * modules/pty (Files): Ship it.
15780         (Makefile.am): Always build replacement.
15781         * m4/pty.m4: Rename...
15782         * m4/pty_h.m4: ...to this.
15783         (gl_PTY): Modernize setting of witness macros; update check of
15784         forkpty to take proper advantage of cache.
15785         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
15786
15787         getopt: avoid compiler warning
15788         * lib/getopt.c (attribute_hidden): Remove unused macro.
15789
15790 2010-03-18  Bruno Haible  <bruno@clisp.org>
15791
15792         Fix link errors on Solaris 8.
15793         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
15794         * modules/search-tests (test_search_c___LDADD): Likewise.
15795         * modules/signal-tests (test_signal_c___LDADD): Likewise.
15796         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
15797         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
15798         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
15799         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
15800         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
15801         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
15802
15803 2010-03-18  Bruno Haible  <bruno@clisp.org>
15804
15805         Fix bug introduced on 2010-03-14.
15806         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
15807         (gl_SPAWN_H): Require it.
15808         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
15809         Reported by Simon Josefsson.
15810
15811 2010-03-18  Bruno Haible  <bruno@clisp.org>
15812
15813         Fix typo introduced on 2009-12-31.
15814         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
15815         posix_spawn_file_actions_adddup2.
15816
15817 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
15818         and Eric Blake  <eblake@redhat.com>
15819
15820         test-vc-list-files-git: make more robust
15821         * tests/test-vc-list-files-git.sh: Unset problematic environment
15822         variables.  Chain commands together.
15823
15824 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
15825
15826         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
15827         `AC_CHECK_DECL' invocation.
15828
15829 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
15830
15831         * lib/inttostr.c (inttostr): Make sure the invocation of verify
15832         appears before executable statements. Suggested by Petr Sumbera
15833         <Petr.Sumbera@Sun.COM>.
15834
15835 2010-03-14  Bruno Haible  <bruno@clisp.org>
15836
15837         * tests/test-flock.c (test_exclusive): Comment out a test that causes
15838         portability problems. Instead use a simpler test.
15839         (main): Check that invalid arguments are rejected only on Linux.
15840
15841 2010-03-14  Bruno Haible  <bruno@clisp.org>
15842
15843         Fix bug introduced on 2009-12-31.
15844         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
15845         gl_PREREQ_SYS_H_WINSOCK2 always.
15846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
15847         SYS_SOCKET_H variable.
15848         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
15849         Update comments.
15850         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
15851         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
15852         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15854         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15855
15856 2010-03-14  Bruno Haible  <bruno@clisp.org>
15857
15858         Fix values returned by sinl, cosl.
15859         * lib/trigl.h: Add specification comments.
15860         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
15861         that combines the values from the precomputed table with the values of
15862         the Chebyshev polynomials.
15863
15864 2010-03-14  Bruno Haible  <bruno@clisp.org>
15865
15866         Fix compilation error when modules 'posix_spawn[p]' are not used.
15867         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
15868         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
15869
15870 2010-03-14  Bruno Haible  <bruno@clisp.org>
15871
15872         Fix compilation error on mingw when module 'time_r' is not used.
15873         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
15874         is 1.
15875         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
15876         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
15877         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
15878         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
15879
15880 2010-03-14  Bruno Haible  <bruno@clisp.org>
15881
15882         Fix compilation error with Sun C.
15883         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
15884         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
15885         instead of GCC specific ULONG_LONG_MAX.
15886         * lib/xstrtoll.c: Likewise.
15887         * lib/xstrtoull.c: Likewise.
15888
15889 2010-03-13  Bruno Haible  <bruno@clisp.org>
15890
15891         Allow the user to disable C++ code and tests.
15892         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
15893         (gl_PROG_ANSI_CXX): Require it.
15894
15895 2010-03-13  Bruno Haible  <bruno@clisp.org>
15896
15897         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
15898         cases.
15899
15900 2010-03-13  Bruno Haible  <bruno@clisp.org>
15901
15902         Test that gnulib does not break the standard C++ headers.
15903         * tests/test-locale-c++2.cc: New file.
15904         * modules/locale-tests (Files): Add it.
15905         (Makefile.am): Compile it for test-locale-c++.
15906         * tests/test-math-c++2.cc: New file.
15907         * modules/math-tests (Files): Add it.
15908         (Makefile.am): Compile it for test-math-c++.
15909         * tests/test-signal-c++2.cc: New file.
15910         * modules/signal-tests (Files): Add it.
15911         (Makefile.am): Compile it for test-signal-c++.
15912         * tests/test-stdio-c++2.cc: New file.
15913         * modules/stdio-tests (Files): Add it.
15914         (Makefile.am): Compile it for test-stdio-c++.
15915         * tests/test-stdlib-c++2.cc: New file.
15916         * modules/stdlib-tests (Files): Add it.
15917         (Makefile.am): Compile it for test-stdlib-c++.
15918         * tests/test-string-c++2.cc: New file.
15919         * modules/string-tests (Files): Add it.
15920         (Makefile.am): Compile it for test-string-c++.
15921         * tests/test-time-c++2.cc: New file.
15922         * modules/time-tests (Files): Add it.
15923         (Makefile.am): Compile it for test-time-c++.
15924         Reported by John W. Eaton <jwe@gnu.org>.
15925
15926 2010-03-13  Bruno Haible  <bruno@clisp.org>
15927
15928         * gnulib-tool (func_usage): Clarify which options are available for
15929         --create-testdir and --create-megatestdir.
15930
15931 2010-03-13  Bruno Haible  <bruno@clisp.org>
15932
15933         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
15934         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
15935         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
15936         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15937         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
15938         when appropriate.
15939         Reported by Jim Meyering.
15940
15941 2010-03-12  Simon Josefsson  <simon@josefsson.org>
15942
15943         * gnulib-tool (func_import): Explain origin of code.
15944
15945 2010-03-12  Bruno Haible  <bruno@clisp.org>
15946
15947         Fix problem with automake's definition of CXXLINK.
15948         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
15949         Reported by Simon Josefsson and Ludovic Courtès.
15950
15951 2010-03-12  Bruno Haible  <bruno@clisp.org>
15952
15953         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
15954         stable releases.
15955
15956 2010-03-11  Bruno Haible  <bruno@clisp.org>
15957
15958         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
15959         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
15960         whether the system provides one variant or multiple variants of the
15961         function.
15962         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
15963         C++ compilers.
15964         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
15965         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
15966         Reported by Jim Meyering.
15967
15968 2010-03-09  Simon Josefsson  <simon@josefsson.org>
15969
15970         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
15971
15972 2010-03-08  Bruno Haible  <bruno@clisp.org>
15973
15974         gnulib-tool: Add support for --libtool in --create-testdir.
15975         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
15976         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
15977
15978 2010-03-08  Eric Blake  <eblake@redhat.com>
15979
15980         gnulib-tool.texi: mention possibility of git submodule
15981         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
15982         submodules.
15983         * doc/.gitignore: Ignore another generated file.
15984
15985 2010-03-08  Karl Berry  <karl@gnu.org>
15986
15987         * doc/gnulib-tool.texi (VCS Issues): Mention third option
15988         of committing gnulib files while skipping others.
15989
15990 2010-03-07  Bruno Haible  <bruno@clisp.org>
15991
15992         Tests of module 'wctype' in C++ mode.
15993         * tests/test-wctype-c++.cc: New file.
15994         * modules/wctype-tests (Files): Add it and tests/signature.h.
15995         (Depends-on): Add ansi-c++-opt.
15996         (Makefile.am): Arrange to compile and run test-wctype-c++.
15997
15998         Tests of module 'wchar' in C++ mode.
15999         * tests/test-wchar-c++.cc: New file.
16000         * modules/wchar-tests (Files): Add it and tests/signature.h.
16001         (Depends-on): Add ansi-c++-opt.
16002         (Makefile.am): Arrange to compile and run test-wchar-c++.
16003         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
16004         gl_MODULE_INDICATOR.
16005
16006         Tests of module 'unistd' in C++ mode.
16007         * tests/test-unistd-c++.cc: New file.
16008         * modules/unistd-tests (Files): Add it and tests/signature.h.
16009         (Depends-on): Add ansi-c++-opt.
16010         (Makefile.am): Arrange to compile and run test-unistd-c++.
16011         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
16012         gl_MODULE_INDICATOR.
16013
16014         Tests of module 'time' in C++ mode.
16015         * tests/test-time-c++.cc: New file.
16016         * modules/time-tests (Files): Add it and tests/signature.h.
16017         (Depends-on): Add ansi-c++-opt.
16018         (Makefile.am): Arrange to compile and run test-time-c++.
16019         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16020
16021         Tests of module 'sys_time' in C++ mode.
16022         * tests/test-sys_time-c++.cc: New file.
16023         * modules/sys_time-tests (Files): Add it and tests/signature.h.
16024         (Depends-on): Add ansi-c++-opt.
16025         (Makefile.am): Arrange to compile and run test-sys_time-c++.
16026         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
16027         gl_MODULE_INDICATOR.
16028
16029         Tests of module 'sys_stat' in C++ mode.
16030         * tests/test-sys_stat-c++.cc: New file.
16031         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
16032         (Depends-on): Add ansi-c++-opt.
16033         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
16034         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
16035         gl_MODULE_INDICATOR.
16036
16037         Tests of module 'sys_socket' in C++ mode.
16038         * tests/test-sys_socket-c++.cc: New file.
16039         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
16040         (Depends-on): Add ansi-c++-opt.
16041         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
16042         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
16043         gl_MODULE_INDICATOR.
16044
16045         Tests of module 'sys_select' in C++ mode.
16046         * tests/test-sys_select-c++.cc: New file.
16047         * modules/sys_select-tests (Files): Add it and tests/signature.h.
16048         (Depends-on): Add ansi-c++-opt.
16049         (Makefile.am): Arrange to compile and run test-sys_select-c++.
16050         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
16051         gl_MODULE_INDICATOR.
16052
16053         Tests of module 'sys_ioctl' in C++ mode.
16054         * tests/test-sys_ioctl-c++.cc: New file.
16055         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
16056         (Depends-on): Add ansi-c++-opt.
16057         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
16058         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
16059         gl_MODULE_INDICATOR.
16060
16061         Tests of module 'string' in C++ mode.
16062         * tests/test-string-c++.cc: New file.
16063         * modules/string-tests (Files): Add it and tests/signature.h.
16064         (Depends-on): Add ansi-c++-opt.
16065         (Makefile.am): Arrange to compile and run test-string-c++.
16066         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
16067         gl_MODULE_INDICATOR.
16068
16069         Tests of module 'stdlib' in C++ mode.
16070         * tests/test-stdlib-c++.cc: New file.
16071         * modules/stdlib-tests (Files): Add it and tests/signature.h.
16072         (Depends-on): Add ansi-c++-opt.
16073         (Makefile.am): Arrange to compile and run test-stdlib-c++.
16074         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
16075         gl_MODULE_INDICATOR.
16076
16077         Tests of module 'stdio' in C++ mode.
16078         * tests/test-stdio-c++.cc: New file.
16079         * modules/stdio-tests (Files): Add it and tests/signature.h.
16080         (Depends-on): Add ansi-c++-opt.
16081         (Makefile.am): Arrange to compile and run test-stdio-c++.
16082         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
16083         gl_MODULE_INDICATOR.
16084
16085         Tests of module 'spawn' in C++ mode.
16086         * tests/test-spawn-c++.cc: New file.
16087         * modules/spawn-tests (Files): Add it and tests/signature.h.
16088         (Depends-on): Add ansi-c++-opt.
16089         (Makefile.am): Arrange to compile and run test-spawn-c++.
16090         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
16091         gl_MODULE_INDICATOR.
16092
16093         Tests of module 'signal' in C++ mode.
16094         * tests/test-signal-c++.cc: New file.
16095         * modules/signal-tests (Files): Add it and tests/signature.h.
16096         (Depends-on): Add ansi-c++-opt.
16097         (Makefile.am): Arrange to compile and run test-signal-c++.
16098         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
16099         gl_MODULE_INDICATOR.
16100
16101         Tests of module 'search' in C++ mode.
16102         * tests/test-search-c++.cc: New file.
16103         * modules/search-tests (Files): Add it and tests/signature.h.
16104         (Depends-on): Add ansi-c++-opt.
16105         (Makefile.am): Arrange to compile and run test-search-c++.
16106         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
16107         gl_MODULE_INDICATOR.
16108
16109         Tests of module 'math' in C++ mode.
16110         * tests/test-math-c++.cc: New file.
16111         * modules/math-tests (Files): Add it and tests/signature.h.
16112         (Depends-on): Add ansi-c++-opt.
16113         (Makefile.am): Arrange to compile and run test-math-c++.
16114         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
16115
16116         Tests of module 'locale' in C++ mode.
16117         * tests/test-locale-c++.cc: New file.
16118         * modules/locale-tests (Files): Add it and tests/signature.h.
16119         (Depends-on): Add ansi-c++-opt.
16120         (Makefile.am): Arrange to compile and run test-locale-c++.
16121         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
16122         gl_MODULE_INDICATOR.
16123
16124         Tests of module 'langinfo' in C++ mode.
16125         * tests/test-langinfo-c++.cc: New file.
16126         * modules/langinfo-tests (Files): Add it and tests/signature.h.
16127         (Depends-on): Add ansi-c++-opt.
16128         (Makefile.am): Arrange to compile and run test-langinfo-c++.
16129         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
16130         gl_MODULE_INDICATOR.
16131
16132         Tests of module 'iconv-h' in C++ mode.
16133         * tests/test-iconv-h-c++.cc: New file.
16134         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
16135         (Depends-on): Add ansi-c++-opt.
16136         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
16137
16138         Tests of module 'glob' in C++ mode.
16139         * tests/test-glob-c++.cc: New file.
16140         * modules/glob-tests (Files): Add it.
16141         (Depends-on): Add ansi-c++-opt.
16142         (Makefile.am): Arrange to compile and run test-glob-c++.
16143
16144         Tests of module 'fcntl-h' in C++ mode.
16145         * tests/test-fcntl-h-c++.cc: New file.
16146         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
16147         (Depends-on): Add ansi-c++-opt.
16148         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
16149         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
16150         gl_MODULE_INDICATOR.
16151
16152         Tests of module 'dirent' in C++ mode.
16153         * tests/test-dirent-c++.cc: New file.
16154         * modules/dirent-tests (Files): Add it and tests/signature.h.
16155         (Depends-on): Add ansi-c++-opt.
16156         (Makefile.am): Arrange to compile and run test-dirent-c++.
16157         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16158         gl_MODULE_INDICATOR.
16159
16160         New module 'ansi-c++-opt'.
16161         * modules/ansi-c++-opt: New file.
16162         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
16163
16164         Document C++ namespace mode.
16165         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
16166
16167         wctype: Avoid #define replacements in C++ mode.
16168         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
16169         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
16170         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
16171         In C++, define a namespaced alias symbol.
16172         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
16173         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
16174         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
16175         rule.
16176
16177         wchar: Avoid #define replacements in C++ mode.
16178         * lib/wchar.in.h: Include c++defs.h.
16179         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
16180         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
16181         symbol.
16182         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
16183         * modules/wchar (Depends-on): Add c++defs.
16184         (Makefile.am): Update wchar.h rule.
16185
16186         unistd: Avoid #define replacements in C++ mode.
16187         * lib/unistd.in.h: Include c++defs.h.
16188         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
16189         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
16190         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
16191         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
16192         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
16193         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
16194         symbol.
16195         (environ): Update.
16196         * modules/unistd (Depends-on): Add c++defs.
16197         (Makefile.am): Update unistd.h rule.
16198
16199         time: Avoid #define replacements in C++ mode.
16200         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
16201         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
16202         define a namespaced alias symbol.
16203         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
16204         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
16205         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
16206         * modules/time (Depends-on): Add c++defs, warn-on-use.
16207         (Makefile.am): Update time.h rule.
16208         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
16209         * modules/nanosleep (configure.ac): Likewise.
16210         * modules/strptime (configure.ac): Likewise.
16211         * modules/timegm (configure.ac): Likewise.
16212
16213         sys_time: Avoid #define replacements in C++ mode.
16214         * lib/sys_time.in.h: Include c++defs.h.
16215         (gettimeofday): In C++, define a namespaced alias symbol.
16216         * modules/sys_time (Depends-on): Add c++defs.
16217         (Makefile.am): Update sys/time.h rule.
16218
16219         sys_stat: Avoid #define replacements in C++ mode.
16220         * lib/sys_stat.in.h: Include c++defs.h.
16221         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
16222         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
16223         namespaced alias symbol.
16224         In C++, define a namespaced alias symbol.
16225         * modules/sys_stat (Depends-on): Add c++defs.
16226         (Makefile.am): Update sys/stat.h rule.
16227
16228         sys_socket: Avoid #define replacements in C++ mode.
16229         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
16230         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
16231         definitions also when the system has a <sys/socket.h>.
16232         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16233         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
16234         In C++, define a namespaced alias symbol.
16235         * modules/sys_socket (Depends-on): Add c++defs.
16236         (Makefile.am): Update sys/socket.h rule.
16237
16238         sys_select: Avoid #define replacements in C++ mode.
16239         * lib/sys_select.in.h: Include c++defs.h. Enable the function
16240         definitions also when the system has a <sys/select.h>.
16241         (select): In C++, define a namespaced alias symbol.
16242         * modules/sys_select (Depends-on): Add c++defs.
16243         (Makefile.am): Update sys/select.h rule.
16244
16245         sys_ioctl: Avoid #define replacements in C++ mode.
16246         * lib/sys_ioctl.in.h: Include c++defs.h.
16247         (ioctl): In C++, define a namespaced alias symbol.
16248         * modules/sys_ioctl (Depends-on): Add c++defs.
16249         (Makefile.am): Update sys/ioctl.h rule.
16250
16251         string: Avoid #define replacements in C++ mode.
16252         * lib/string.in.h: Include c++defs.h.
16253         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
16254         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
16255         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
16256         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
16257         strsignal, strverscmp): In C++, define a namespaced alias symbol.
16258         * modules/string (Depends-on): Add c++defs.
16259         (Makefile.am): Update string.h rule.
16260
16261         stdlib: Avoid #define replacements in C++ mode.
16262         * lib/stdlib.in.h: Include c++defs.h.
16263         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
16264         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
16265         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
16266         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
16267         symbol.
16268         * modules/stdlib (Depends-on): Add c++defs.
16269         (Makefile.am): Update stdlib.h rule.
16270
16271         stdio: Avoid #define replacements in C++ mode.
16272         * lib/stdio.in.h: Include c++defs.h.
16273         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
16274         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
16275         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
16276         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
16277         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
16278         namespaced alias symbol.
16279         * modules/stdio (Depends-on): Add c++defs.
16280         (Makefile.am): Update stdio.h rule.
16281
16282         spawn: Avoid #define replacements in C++ mode.
16283         * lib/spawn.in.h: Include c++defs.h.
16284         (posix_spawn, posix_spawnp, posix_spawnattr_init,
16285         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
16286         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
16287         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
16288         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
16289         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
16290         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
16291         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
16292         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
16293         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
16294         In C++, define a namespaced alias symbol.
16295         * modules/spawn (Depends-on): Add c++defs.
16296         (Makefile.am): Update spawn.h rule.
16297
16298         signal: Avoid #define replacements in C++ mode.
16299         * lib/signal.in.h: Include c++defs.h.
16300         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
16301         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
16302         namespaced alias symbol.
16303         * modules/signal (Depends-on): Add c++defs.
16304         (Makefile.am): Update signal.h rule.
16305
16306         search: Avoid #define replacements in C++ mode.
16307         * lib/search.in.h: Include c++defs.h.
16308         (_gl_search_compar_fn, _gl_search_action_fn): New types.
16309         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
16310         symbol.
16311         * modules/search (Depends-on): Add c++defs.
16312         (Makefile.am): Update search.h rule.
16313
16314         math: Avoid #define replacements in C++ mode.
16315         * lib/math.in.h: Include c++defs.h.
16316         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
16317         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
16318         trunc, truncl): In C++, define a namespaced alias symbol.
16319         * modules/math (Depends-on): Add c++defs.
16320         (Makefile.am): Update math.h rule.
16321
16322         locale: Avoid #define replacements in C++ mode.
16323         * lib/locale.in.h: Include c++defs.h.
16324         (duplocale): In C++, define a namespaced alias symbol.
16325         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
16326         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
16327         * modules/locale (Depends-on): Add c++defs.
16328         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
16329
16330         langinfo: Avoid #define replacements in C++ mode.
16331         * lib/langinfo.in.h: Include c++defs.h.
16332         (nl_langinfo): In C++, define a namespaced alias symbol.
16333         * modules/langinfo (Depends-on): Add c++defs.
16334         (Makefile.am): Update langinfo.h rule.
16335
16336         iconv-h: Avoid #define replacements in C++ mode.
16337         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
16338         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
16339         symbol.
16340         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16341         whenever iconv is present.
16342         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
16343         (Makefile.am): Update iconv.h rule.
16344
16345         glob: Avoid #define replacements in C++ mode.
16346         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
16347         (_gl_glob_errfunc_fn): New type.
16348         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
16349         symbol.
16350         * modules/glob (Depends-on): Add c++defs, warn-on-use.
16351         (Makefile.am): Update glob.h rule.
16352
16353         fcntl-h: Avoid #define replacements in C++ mode.
16354         * lib/fcntl.in.h: Include c++defs.h.
16355         (fcntl, open, openat): In C++, define a namespaced alias symbol.
16356         * modules/fcntl-h (Depends-on): Add c++defs.
16357         (Makefile.am): Update fcntl.h rule.
16358
16359         dirent: Avoid #define replacements in C++ mode.
16360         * lib/dirent.in.h: Include c++defs.h.
16361         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
16362         namespaced alias symbol.
16363         (dirfd): Update declaration.
16364         * modules/dirent (Depends-on): Add c++defs.
16365         (Makefile.am): Update dirent.h rule.
16366
16367         ctype: Make it usable in C++ code.
16368         * lib/ctype.in.h: Include c++defs.h.
16369         (isblank): Declare as extern "C".
16370         * modules/ctype (Depends-on): Add c++defs.
16371         (Makefile.am): Update ctype.h rule.
16372
16373         New module 'c++defs'.
16374         * modules/c++defs: New file.
16375         * build-aux/c++defs.h: New file.
16376         Reported by John W. Eaton <jwe@gnu.org>.
16377
16378 2010-03-07  Bruno Haible  <bruno@clisp.org>
16379
16380         logb: Provide missing declaration for Cygwin.
16381         * lib/math.in.h (logb): New declaration.
16382         * m4/logb.m4: New file.
16383         * modules/logb (Files): Add m4/logb.m4.
16384         (Depends-on): Add math.
16385         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
16386         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
16387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
16388         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
16389         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
16390
16391 2010-03-07  Bruno Haible  <bruno@clisp.org>
16392
16393         Fix test-cond link error.
16394         * tests/test-cond.c: Include <stdio.h>.
16395
16396 2010-03-07  Bruno Haible  <bruno@clisp.org>
16397
16398         Fix test-dirent-safer link error.
16399         * modules/dirent-safer-tests (Makefile.am): Define
16400         test_dirent_safer_LDADD.
16401
16402 2010-03-07  Bruno Haible  <bruno@clisp.org>
16403
16404         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
16405         among default module list.
16406
16407 2010-03-07  Bruno Haible  <bruno@clisp.org>
16408
16409         Fix link error on platforms with GNU libiconv.
16410         * modules/unistr/u8-strcoll-tests (Makefile): Define
16411         test_u8_strcoll_LDADD.
16412         * modules/unistr/u16-strcoll-tests (Makefile): Define
16413         test_u16_strcoll_LDADD.
16414         * modules/unistr/u32-strcoll-tests (Makefile): Define
16415         test_u32_strcoll_LDADD.
16416
16417 2010-03-07  Bruno Haible  <bruno@clisp.org>
16418
16419         Use POSIX declarations for socket functions.
16420         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
16421         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
16422         rpl_sendto): Change declaration to match POSIX.
16423         * lib/connect.c (rpl_connect): Likewise.
16424         * lib/accept.c (rpl_accept): Likewise.
16425         * lib/bind.c (rpl_bind): Likewise.
16426         * lib/getpeername.c (rpl_getpeername): Likewise.
16427         * lib/getsockname.c (rpl_getsockname): Likewise.
16428         * lib/recv.c (rpl_recv): Likewise.
16429         * lib/send.c (rpl_send): Likewise.
16430         * lib/recvfrom.c (rpl_recvfrom): Likewise.
16431         * lib/sendto.c (rpl_sendto): Likewise.
16432
16433 2010-03-06  Bruno Haible  <bruno@clisp.org>
16434
16435         Clarify access, euidaccess, faccessat.
16436         * doc/posix-functions/faccessat.texi: Mention security problem under
16437         "Other problems", not "Portability problems".
16438         * doc/posix-functions/access.texi: Likewise. Mention a related security
16439         problem.
16440         * doc/glibc-functions/euidaccess.texi: Mention security problems.
16441         * lib/euidaccess.c: Add comments about platforms.
16442         * lib/unistd.in.h (access, euidaccess): Add warnings.
16443
16444 2010-03-07  Bruno Haible  <bruno@clisp.org>
16445
16446         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
16447         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
16448         (POSIX_SPAWN_SETSCHEDULER): Likewise.
16449         (POSIX_SPAWN_USEVFORK): Define in a way that works when
16450         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16451         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
16452         declare when POSIX_SPAWN_SETSCHEDULER is zero.
16453         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
16454         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
16455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
16456         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
16457         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
16458         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
16459         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
16460         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
16461         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
16462         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
16463         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
16464         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
16465         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
16466         Likewise.
16467         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
16468         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
16469         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
16470         Likewise.
16471         * tests/test-spawn.c (main): Make it work when
16472         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
16473
16474 2010-03-07  Bruno Haible  <bruno@clisp.org>
16475
16476         Fix incorrect Makefile.am generation in German locale.
16477         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16478         Execute sed command with character range in C locale.
16479
16480 2010-03-06  Bruno Haible  <bruno@clisp.org>
16481
16482         Tests for module 'iconv-h'.
16483         * modules/iconv-h-tests: New file.
16484         * tests/test-iconv-h.c: New file.
16485
16486         New module 'iconv-h'.
16487         * modules/iconv-h: New file.
16488         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
16489         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
16490         (configure.ac): Remove gl_ICONV_H.
16491         (Makefile.am): Remove rule for iconv.h.
16492
16493 2010-03-06  Bruno Haible  <bruno@clisp.org>
16494
16495         More consistent naming of *.m4 files.
16496         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
16497         * modules/wctype (Files): Update.
16498
16499         More consistent naming of *.m4 files.
16500         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
16501         * modules/wchar (Files): Update.
16502
16503 2010-03-06  Jim Meyering  <meyering@redhat.com>
16504
16505         euidaccess: relax license to LGPLv2+
16506         * modules/euidaccess (License): Relax to LGPLv2+.
16507
16508 2010-03-06  Bruno Haible  <bruno@clisp.org>
16509
16510         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
16511         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
16512         (Makefile.am): Augment lib_SOURCES instead.
16513
16514 2010-03-04  Jim Meyering  <meyering@redhat.com>
16515
16516         utime: remove obsolete module
16517         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
16518         unnecessary for years, and has been marked as obsolete for 10 months.
16519         * modules/utime: Remove file.
16520         * lib/utime.c: Remove file.
16521         * m4/utime.m4: Remove file.
16522         * m4/utimes-null.m4: Remove file.
16523         * doc/posix-functions/utime.texi (utime): Remove reference to
16524         the module.  Move the sole "fixed by gnulib" item into the
16525         "problems not fixed by Gnulib" list.
16526         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
16527
16528 2010-03-05  Simon Josefsson  <simon@josefsson.org>
16529
16530         * modules/exit (License): Relax license to LGPLv2+.
16531         (Status): Mark as obsolete.
16532         * NEWS: Mention deprecated 'exit' module.
16533         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
16534         of now obsolete 'exit'.
16535
16536 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16537
16538         fts-lgpl: remove unused module
16539         * modules/fts-lgpl: Remove.
16540         * MODULES.html.sh (func_all_modules): Adjust.
16541         * check-module (find_included_lib_files): Adjust.
16542         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
16543
16544 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
16545
16546         copy-acl: enhance Solaris ACL error handling
16547         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
16548         * lib/set-mode-acl.c (qset_acl): Likewise.
16549
16550 2010-03-02  Bruno Haible  <bruno@clisp.org>
16551
16552         spawn: Don't override the system defined values on FreeBSD 8.
16553         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
16554         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
16555         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
16556         if HAVE_POSIX_SPAWN is 1.
16557         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
16558
16559 2010-03-01  Bruno Haible  <bruno@clisp.org>
16560
16561         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
16562         regarding Automake.
16563
16564 2010-02-25  Bruno Haible  <bruno@clisp.org>
16565
16566         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
16567         * gnulib-tool: Define 'echo' as a function only before the ksh alias
16568         setting, not afterwards.
16569         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
16570
16571 2010-02-24  Eric Blake  <eblake@redhat.com>
16572
16573         bootstrap, git-version-gen: use timestamp
16574         * build-aux/git-version-gen (scriptversion): Force UTC.
16575         * build-aux/bootstrap (scriptversion): New variable.
16576
16577         bootstrap: allow older git
16578         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
16579         older than 1.6.4.  Requested by the libvirt project.
16580
16581 2010-02-23  Eric Blake  <eblake@redhat.com>
16582
16583         warn-on-use: work with old autoconf
16584         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
16585         AS_VAR semantics of autoconf 2.60.
16586         Reported by Bruno Haible.
16587
16588         bootstrap: improve some comments
16589         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
16590         clarification comments.
16591
16592         gettimeofday: provide correct function
16593         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
16594         when replacement is declared, otherwise provide gettimeofday.
16595         Reported by Michael Goffioul.
16596
16597 2010-02-23  Jim Meyering  <meyering@redhat.com>
16598
16599         lib-ignore: relax license to "unlimited", not LGPLv2+
16600         * modules/lib-ignore (License): Relax to "unlimited".
16601
16602 2010-02-23  Jim Meyering  <meyering@redhat.com>
16603
16604         lib-ignore: relax license to LGPLv2+
16605         * modules/lib-ignore (License): Relax to LGPLv2+.
16606
16607 2010-02-22  Eric Blake  <eblake@redhat.com>
16608
16609         lseek: avoid bash 3.2 broken pipe bug
16610         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
16611         warning from bash 3.2.
16612         Reported by Ben Pfaff, with analysis from Bruno Haible.
16613
16614         bootstrap: support non-FSF copyright holder
16615         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
16616         bootstrap.conf override of COPYRIGHT_HOLDER.
16617         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
16618
16619         bootstrap: interoperate with gettext 0.14.1
16620         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
16621
16622         bootstrap: allow for alternate submodule location
16623         * build-aux/bootstrap (gnulib_path): New variable; use instead of
16624         hardcoding submodule location.
16625         (gnulib_mk): Allow direct use of Makefile.am.
16626
16627         bootstrap: use GNULIB_SRCDIR to reduce disk usage
16628         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
16629         rather than reconfiguring where the submodule points.
16630
16631         gettimeofday: restore support for platforms that lack function
16632         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
16633         replacement if function is missing.
16634         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
16635         * modules/sys_time (Makefile.am): Substitute it.
16636         * lib/sys_time.in.h (gettimeofday): Check it.
16637         Reported by Michael Goffioul.
16638
16639 2010-02-21  Bruno Haible  <bruno@clisp.org>
16640
16641         * lib/stdio.in.h (obstack_printf): Fix typo.
16642
16643 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
16644
16645         vc-list-files: use bzr ls's -R option
16646         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
16647         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
16648
16649 2010-02-21  Jim Meyering  <meyering@redhat.com>
16650
16651         init.sh: fix EXEEXT shims to work also for names like test-prog
16652         * tests/init.sh: Re-exec a better shell, when needed.
16653         If the current shell lacks support for posix $(...), an init.sh-using
16654         test will now try to find a shell that supports that.  If EXEEXT is
16655         nonempty, we also require support for hyphen-in-alias-name and shell
16656         substitutions like ${var#glob}.  Failure to find such a shell results
16657         in a skipped test.
16658
16659 2010-02-21  Bruno Haible  <bruno@clisp.org>
16660
16661         Really work around around "broken pipe" error message from bash 3.2.
16662         * gnulib-tool (func_reset_sigpipe): Remove function.
16663         (echo): In bash 3.2, define to a function that uses printf.
16664         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
16665
16666 2010-02-20  Bruno Haible  <bruno@clisp.org>
16667
16668         Restore support for automake 1.9.6 with autoconf 2.61.
16669         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
16670         Reported by James Youngman <jay@gnu.org>.
16671
16672 2010-02-20  Bruno Haible  <bruno@clisp.org>
16673
16674         Improve *printf warning condition.
16675         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
16676         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
16677         and the function is overridden due to SIGPIPE emulation.
16678
16679 2010-02-20  Bruno Haible  <bruno@clisp.org>
16680
16681         * lib/stdio.in.h: Tweak comments.
16682
16683 2010-02-19  Bruno Haible  <bruno@clisp.org>
16684
16685         Make it easier to find modules. New gnulib-tool option '--find'.
16686         * gnulib-tool: New option --find.
16687         (func_usage): Document it.
16688         (func_sanitize_modulelist): New function, extracted from
16689         func_all_modules.
16690         (func_all_modules): Invoke it.
16691         * doc/gnulib-tool.texi (Which modules?): New node.
16692
16693 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
16694
16695         * lib/sys_select.in.h: Provide select replacement even if
16696         sys/select.h exists on a system, for Interix.
16697
16698 2010-02-18  Jim Meyering  <meyering@redhat.com>
16699
16700         init.sh: don't use $(...) just yet
16701         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
16702         to accommodate e.g., Solaris' /bin/sh.
16703
16704 2010-02-17  Bruno Haible  <bruno@clisp.org>
16705
16706         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
16707         Reported by Ludovic Courtès <ludo@gnu.org>.
16708
16709 2010-02-16  Simon Josefsson  <simon@josefsson.org>
16710
16711         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
16712         linking with -lintl.
16713
16714 2010-02-17  Simon Josefsson  <simon@josefsson.org>
16715
16716         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
16717         if not provided by the system's netdb.h.  Reported by
16718         ludo@gnu.org (Ludovic Courtès).
16719
16720 2010-02-15  Jim Meyering  <meyering@redhat.com>
16721
16722         init.sh: improve portability and efficiency
16723         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
16724         "dummy" in a for loop.
16725         Use '!', not '^' to select the complement of a character set used
16726         in a "case" statement.
16727         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
16728         Suggestions from Eric Blake.
16729
16730         init.sh: automatically accommodate programs with the .exe suffix
16731         Automatically arrange for an invocation of "prog" to execute the
16732         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
16733         may use the simpler "prog", yet still work when built on a system
16734         that requires specifying the added suffix.
16735         Do this by constructing a function named "prog" that invokes
16736         "prog.exe" for each .exe file in selected directories.
16737         * tests/init.sh (find_exe_basenames_): New function.
16738         (create_exe_shim_functions_): New function.
16739         (path_prepend_): Use it.
16740
16741         maint.mk: mark syntax-check sc_*.m rules as .PHONY
16742         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
16743         "make -t syntax-check" doesn't create a ton of sc_*.m files.
16744
16745 2010-02-14  Jim Meyering  <meyering@redhat.com>
16746
16747         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
16748         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
16749         (sc_prohibit_hash_pjw_without_use): New rule.
16750
16751         maint.mk: allow the default upload destination dir to be overridden
16752         * top/maint.mk (upload_dest_dir_): Define with a default that
16753         preserves the status quo.
16754         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
16755         Reported by Peter Simons.
16756
16757         maint.mk: prohibit inclusion of "hash.h" without_use
16758         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
16759
16760 2010-02-10  Jim Meyering  <meyering@redhat.com>
16761
16762         maint.mk: prohibit inclusion of "ignore-value.h" without_use
16763         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
16764
16765 2010-02-09  Eric Blake  <ebb9@byu.net>
16766         and Bruno Haible  <bruno@clisp.org>
16767
16768         obstack-printf-posix: ensure declaration
16769         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
16770         extracted from gl_FUNC_OBSTACK_PRINTF.
16771         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
16772         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16773         Likewise.
16774         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
16775         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
16776         0.
16777
16778 2010-02-08  Bruno Haible  <bruno@clisp.org>
16779
16780         gnulib-tool: Fix typo in 2010-02-07 commit.
16781         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
16782         Reported by Eric Blake.
16783
16784 2010-02-07  Bruno Haible  <bruno@clisp.org>
16785
16786         gnulib-tool: Fix up caching patches.
16787         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
16788         option --no-cache. Use associative arrays when supported by the shell.
16789         (sed_comments): New variable.
16790         (modcache): Renamed from do_cache.
16791         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
16792         abbreviate unnecessarily.
16793         (have_associative): New variable.
16794         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
16795         way also for ksh and zsh.
16796         (func_init_sed_convert_to_cache_statements): New function, extracted
16797         from func_cache_lookup_module. Add support for associative arrays.
16798         Don't set the c_MODULE_cached variable here. Ignore all lines before
16799         the first field header. Remove only the final newline, not all trailing
16800         newlines. Support empty fields correctly. Limit the use of 'eval' to
16801         assignments.
16802         (func_get_description, func_get_status, func_get_notice,
16803         func_get_applicability, func_get_filelist, func_get_dependencies,
16804         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
16805         func_get_automake_snippet, func_get_include_directive,
16806         func_get_link_directive, func_get_license, func_get_maintainer):
16807         Update documentation. List the unoptimized code first. Add support for
16808         associative arrays. Limit the use of 'eval' to assignments.
16809         (func_get_applicability): Undo stylistic pessimisations.
16810         (func_get_automake_snippet, func_get_include_directive): Reduce code
16811         duplication.
16812         (func_modules_transitive_closure, func_modules_add_dummy,
16813         func_modules_notice, func_modules_to_filelist, func_add_file,
16814         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
16815         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
16816         func_create_testdir, func_create_megatestdir): Update documentation.
16817
16818 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16819
16820         * gnulib-tool (func_cache_lookup_module): Store the module name
16821         belonging to the cache variable; error out if two different
16822         module names map to the same cache variable name.
16823
16824 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16825
16826         gnulib-tool: Make caching optional.
16827         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
16828         Update matching short versions of --no-changelog.
16829         (func_usage): Update.
16830         (sed_extract_cache_prog): Renamed from ...
16831         (sed_extract_prog): ... this; revert to old extraction script.
16832         (func_get_description, func_get_status)
16833         (func_get_notice, func_get_applicability, func_get_filelist)
16834         (func_get_dependencies, func_get_autoconf_early_snippet)
16835         (func_get_autoconf_snippet, func_get_automake_snippet)
16836         (func_get_include_directive, func_get_link_directive)
16837         (func_get_license, func_get_maintainer): If $do_cache is false,
16838         use old, non-caching extraction scripts.
16839         Suggestion by Bruno Haible.
16840
16841 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16842
16843         gnulib-tool: cache module metainformation.
16844         * gnulib-tool (sed_extract_prog): Match newline before each
16845         header, and rewrite header to a shell variable suffix.
16846         (func_cache_var, func_cache_lookup_module): New functions,
16847         to turn a module name into a cache variable prefix, and to
16848         look up and cache module metainformation.
16849         (func_get_description, func_get_status)
16850         (func_get_notice, func_get_applicability, func_get_filelist)
16851         (func_get_dependencies, func_get_autoconf_early_snippet)
16852         (func_get_autoconf_snippet, func_get_automake_snippet)
16853         (func_get_include_directive, func_get_link_directive)
16854         (func_get_license, func_get_maintainer): Use
16855         func_cache_lookup_module.
16856
16857 2010-02-07  Bruno Haible  <bruno@clisp.org>
16858
16859         fnctl: Fix missing dependency.
16860         * modules/fcntl (Depends-on): Add getdtablesize.
16861         Reported by John W. Eaton <jwe@gnu.org>.
16862
16863 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16864
16865         Argp: fix recognition of short alias options.
16866
16867         * lib/argp-parse.c (convert_options): Fix improper use of
16868         `|' between character values.
16869         * tests/test-argp.c (group1_option): New alias option
16870         --read (-r).
16871         (group1_parser): Special handling for 'r'.
16872         (test15): New test case.
16873         (test_fun): Add test15.
16874         * tests/test-argp-2.sh: Update expected --help and --usage
16875         outputs.
16876
16877 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
16878
16879         * tests/test-argp.c: Fix indentation.
16880
16881 2010-02-04  Eric Blake  <ebb9@byu.net>
16882
16883         gettimeofday: expose type of second argument
16884         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
16885         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
16886         * tests/test-gettimeofday.c: Use it to silence warning.
16887         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
16888         the issue.
16889
16890 2010-02-03  Jim Meyering  <meyering@redhat.com>
16891
16892         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
16893         * lib/regcomp.c (TYPE_SIGNED): Define.
16894         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
16895
16896         regcomp.c: avoid a new -Wshadow warning
16897         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
16898
16899 2010-02-01  Jim Meyering  <meyering@redhat.com>
16900
16901         removing useless parentheses in cpp #define directives
16902         For motivation, see commit c0221df4, "define STREQ(a,b)
16903         consistently, removing useless parentheses"
16904         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
16905         * lib/mountlist.c (MNT_IGNORE): Likewise.
16906         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
16907
16908 2010-02-01  Eric Blake  <ebb9@byu.net>
16909
16910         sys_time: use link-warning
16911         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
16912         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
16913         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
16914         * modules/sys_time (Depends-on): Add warn-on-use.
16915         (Makefile.am): Always build replacement.
16916         (configure.ac): Update substitutions.
16917         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
16918         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
16919         bother with SYS_TIME_H.
16920         * modules/gettimeofday (configure.ac): Declare indicator.
16921         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
16922         in use.
16923
16924         closein-tests: silence compiler warning
16925         * tests/test-closein.c (main): Ignore fread result.
16926         * modules/closein-tests (Depends-on): Add ignore-value.
16927
16928         tests: silence warning about system return
16929         * tests/test-areadlink-with-size.c (main): Ignore system result.
16930         * tests/test-areadlink.c (main): Likewise.
16931         * tests/test-areadlinkat-with-size.c (main): Likewise.
16932         * tests/test-areadlinkat.c (main): Likewise.
16933         * tests/test-canonicalize-lgpl.c (main): Likewise.
16934         * tests/test-canonicalize.c (main): Likewise.
16935         * tests/test-chown.c (main): Likewise.
16936         * tests/test-fchownat.c (main): Likewise.
16937         * tests/test-fdutimensat.c (main): Likewise.
16938         * tests/test-fstatat.c (main): Likewise.
16939         * tests/test-futimens.c (main): Likewise.
16940         * tests/test-lchown.c (main): Likewise.
16941         * tests/test-link.c (main): Likewise.
16942         * tests/test-linkat.c (main): Likewise.
16943         * tests/test-lstat.c (main): Likewise.
16944         * tests/test-mkdir.c (main): Likewise.
16945         * tests/test-mkdirat.c (main): Likewise.
16946         * tests/test-mkfifo.c (main): Likewise.
16947         * tests/test-mkfifoat.c (main): Likewise.
16948         * tests/test-mknod.c (main): Likewise.
16949         * tests/test-readlink.c (main): Likewise.
16950         * tests/test-remove.c (main): Likewise.
16951         * tests/test-rename.c (main): Likewise.
16952         * tests/test-renameat.c (main): Likewise.
16953         * tests/test-rmdir.c (main): Likewise.
16954         * tests/test-symlink.c (main): Likewise.
16955         * tests/test-symlinkat.c (main): Likewise.
16956         * tests/test-unlink.c (main): Likewise.
16957         * tests/test-unlinkat.c (main): Likewise.
16958         * tests/test-utimens.c (main): Likewise.
16959         * tests/test-utimensat.c (main): Likewise.
16960         * modules/areadlink-tests (Depends-on): Add ignore-value.
16961         * modules/areadlink-with-size-tests (Depends-on): Likewise.
16962         * modules/areadlinkat-tests (Depends-on): Likewise.
16963         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
16964         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16965         * modules/canonicalize-tests (Depends-on): Likewise.
16966         * modules/chown-tests (Depends-on): Likewise.
16967         * modules/fdutimensat-tests (Depends-on): Likewise.
16968         * modules/futimens-tests (Depends-on): Likewise.
16969         * modules/lchown-tests (Depends-on): Likewise.
16970         * modules/link-tests (Depends-on): Likewise.
16971         * modules/linkat-tests (Depends-on): Likewise.
16972         * modules/lstat-tests (Depends-on): Likewise.
16973         * modules/mkdir-tests (Depends-on): Likewise.
16974         * modules/mkfifo-tests (Depends-on): Likewise.
16975         * modules/mkfifoat-tests (Depends-on): Likewise.
16976         * modules/mknod-tests (Depends-on): Likewise.
16977         * modules/openat-tests (Depends-on): Likewise.
16978         * modules/readlink-tests (Depends-on): Likewise.
16979         * modules/remove-tests (Depends-on): Likewise.
16980         * modules/rename-tests (Depends-on): Likewise.
16981         * modules/renameat-tests (Depends-on): Likewise.
16982         * modules/rmdir-tests (Depends-on): Likewise.
16983         * modules/symlink-tests (Depends-on): Likewise.
16984         * modules/symlinkat-tests (Depends-on): Likewise.
16985         * modules/unlink-tests (Depends-on): Likewise.
16986         * modules/utimens-tests (Depends-on): Likewise.
16987         * modules/utimensat-tests (Depends-on): Likewise.
16988
16989 2010-01-31  Bruno Haible  <bruno@clisp.org>
16990
16991         Perform the same test for many <math.h> functions.
16992         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
16993         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
16994         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
16995         of gl_MATHFUNC.
16996         * modules/acos (configure.ac): Likewise.
16997         * modules/asin (configure.ac): Likewise.
16998         * modules/atan (configure.ac): Likewise.
16999         * modules/atan2 (configure.ac): Likewise.
17000         * modules/cbrt (configure.ac): Likewise.
17001         * modules/copysign (configure.ac): Likewise.
17002         * modules/cos (configure.ac): Likewise.
17003         * modules/cosh (configure.ac): Likewise.
17004         * modules/erf (configure.ac): Likewise.
17005         * modules/erfc (configure.ac): Likewise.
17006         * modules/exp (configure.ac): Likewise.
17007         * modules/fmod (configure.ac): Likewise.
17008         * modules/hypot (configure.ac): Likewise.
17009         * modules/j0 (configure.ac): Likewise.
17010         * modules/j1 (configure.ac): Likewise.
17011         * modules/jn (configure.ac): Likewise.
17012         * modules/lgamma (configure.ac): Likewise.
17013         * modules/log (configure.ac): Likewise.
17014         * modules/log10 (configure.ac): Likewise.
17015         * modules/log1p (configure.ac): Likewise.
17016         * modules/pow (configure.ac): Likewise.
17017         * modules/remainder (configure.ac): Likewise.
17018         * modules/sin (configure.ac): Likewise.
17019         * modules/sinh (configure.ac): Likewise.
17020         * modules/tan (configure.ac): Likewise.
17021         * modules/tanh (configure.ac): Likewise.
17022         * modules/y0 (configure.ac): Likewise.
17023         * modules/y1 (configure.ac): Likewise.
17024         * modules/yn (configure.ac): Likewise.
17025         Suggested by Paolo Bonzini.
17026
17027 2010-01-31  Bruno Haible  <bruno@clisp.org>
17028
17029         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
17030
17031 2010-01-31  Bruno Haible  <bruno@clisp.org>
17032
17033         Work around getdelim() bug on FreeBSD 8.0.
17034         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
17035         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
17036         not work.
17037         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
17038         is 1.
17039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
17040         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
17041         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
17042         a non-zero size.
17043         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
17044
17045 2010-01-31  Bruno Haible  <bruno@clisp.org>
17046
17047         Work around getline() bug on FreeBSD 8.0.
17048         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
17049         and a non-zero size.
17050         * tests/test-getline.c (main): Likewise.
17051         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
17052         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
17053
17054 2010-01-28  Eric Blake  <ebb9@byu.net>
17055
17056         regex: fix build failure
17057         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
17058         platforms.
17059
17060 2010-01-28  Jim Meyering  <meyering@redhat.com>
17061
17062         regex: do not ignore memory allocation failure
17063         * lib/regex_internal.c (create_cd_newstate): Detect
17064         re_node_set_init_copy failure.   Extracted from glibc commit
17065         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17066
17067         regex: sync more white-space changes from libc
17068         * lib/regex_internal.c: White-space only changes.
17069         * lib/regexec.c: Likewise.
17070
17071         regex: add many uses of __attribute_warn_unused_result__
17072         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
17073         * lib/regexec.c: Likewise.
17074         Extracted from a messy glibc commit.
17075
17076         regcomp.c: spelling and merge-artifact from glibc
17077         * lib/regcomp.c: Merge remainder of glibc's
17078         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17079
17080         regcomp.c: sync white-space changes from glibc
17081         * lib/regcomp.c: Merge to accommodate white space
17082         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
17083
17084         regcomp.c: do not ignore internal return values
17085         * lib/regcomp.c: Do not ignore internal return values.
17086         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
17087         but without its white-space changes and spelling fixes.
17088
17089         regex_internal.h: define __attribute_warn_unused_result__
17090         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
17091
17092         maint: add a syntax-check rule to check for vulnerable Makefile.in
17093         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
17094
17095 2010-01-27  Jim Meyering  <meyering@redhat.com>
17096
17097         ncftpput-ftp: clean up spaces
17098         * build-aux/ncftpput-ftp: Make Copyright line consistent.
17099         Remove trailing blanks.
17100
17101 2010-01-27  Simon Josefsson  <simon@josefsson.org>
17102
17103         * build-aux/git-version-gen: Fix copyright statement.
17104         * build-aux/gnupload: Likewise.
17105         * tests/test-arcfour.c: Likewise.
17106         * tests/test-arctwo.c: Likewise.
17107         * tests/test-count-one-bits.c: Likewise.
17108         * tests/test-crc.c: Likewise.
17109         * tests/test-des.c: Likewise.
17110         * tests/test-gc-arcfour.c: Likewise.
17111         * tests/test-gc-arctwo.c: Likewise.
17112         * tests/test-gc-des.c: Likewise.
17113         * tests/test-gc-hmac-md5.c: Likewise.
17114         * tests/test-gc-hmac-sha1.c: Likewise.
17115         * tests/test-gc-md2.c: Likewise.
17116         * tests/test-gc-md4.c: Likewise.
17117         * tests/test-gc-md5.c: Likewise.
17118         * tests/test-gc-pbkdf2-sha1.c: Likewise.
17119         * tests/test-gc-rijndael.c: Likewise.
17120         * tests/test-gc-sha1.c: Likewise.
17121         * tests/test-gc.c: Likewise.
17122         * tests/test-gethostname.c: Likewise.
17123         * tests/test-gettimeofday.c: Likewise.
17124         * tests/test-hash.c: Likewise.
17125         * tests/test-hmac-md5.c: Likewise.
17126         * tests/test-hmac-sha1.c: Likewise.
17127         * tests/test-md2.c: Likewise.
17128         * tests/test-md4.c: Likewise.
17129         * tests/test-md5.c: Likewise.
17130         * tests/test-memchr.c: Likewise.
17131         * tests/test-memchr2.c: Likewise.
17132         * tests/test-memcmp.c: Likewise.
17133         * tests/test-memmem.c: Likewise.
17134         * tests/test-memrchr.c: Likewise.
17135         * tests/test-rawmemchr.c: Likewise.
17136         * tests/test-read-file.c: Likewise.
17137         * tests/test-rijndael.c: Likewise.
17138         * tests/test-sockets.c: Likewise.
17139         * tests/test-strchrnul.c: Likewise.
17140         * tests/test-strstr.c: Likewise.
17141         * tests/test-strtod.c: Likewise.
17142         * build-aux/ncftpput-ftp: Likewise.
17143
17144 2010-01-26  Eric Blake  <ebb9@byu.net>
17145
17146         ignore-value: update recommended header name
17147         * modules/ignore-value (Include): Only use <> for headers that
17148         exist in glibc.
17149
17150 2010-01-26  Jim Meyering  <meyering@redhat.com>
17151
17152         test-userspec.c: avoid compiler warnings
17153         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
17154         and "initialization discards qualifiers..." warnings.
17155         Put the first "uid" in its own scope, and make char* members "const".
17156
17157 2010-01-25  Bruno Haible  <bruno@clisp.org>
17158
17159         gnulib-tool: Make warning diagnostics consistent.
17160         * gnulib-tool (func_warning): New function.
17161         Use it everywhere where gnulib-tool produces output to stderr and it is
17162         not a fatal error.
17163
17164 2010-01-25  Bruno Haible  <bruno@clisp.org>
17165
17166         Fix test dependencies.
17167         * modules/xstrtol-tests (Depends-on): Add inttypes.
17168         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
17169
17170 2010-01-25 Pádraig Brady <P@draigBrady.com>
17171
17172         syntax-check: detect incorrect boolean macro values in config.h
17173         * modules/maintainer-makefile (configure.ac): Parameterize the location
17174         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
17175         The logic is from Eric Blake and the location indicated by Jim Meyering.
17176         Note the more natural CONFIG_HEADER name is prohibited by automake
17177         for backwards compatibility reasons.
17178         * top/maint.mk (sc_Wundef_boolean): New rule.
17179
17180 2010-01-25  Jim Meyering  <meyering@redhat.com>
17181
17182         bootstrap: detect MacOS 10.6's shasum, too
17183         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
17184         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
17185
17186 2010-01-23  Jim Meyering  <meyering@redhat.com>
17187
17188         xstrtoll: new module
17189         * modules/xstrtoll: New file.
17190         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
17191         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
17192         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
17193         ./configure fails if you use this module and lack "long long".
17194         * modules/xstrtoll-tests: New module.
17195         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
17196         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
17197         new init.sh-based test framework.
17198
17199 2010-01-24  Bruno Haible  <bruno@clisp.org>
17200
17201         Tests for module 'yn'.
17202         * modules/yn-tests: New file.
17203         * tests/test-yn.c: New file.
17204
17205         Tests for module 'y1'.
17206         * modules/y1-tests: New file.
17207         * tests/test-y1.c: New file.
17208
17209         Tests for module 'y0'.
17210         * modules/y0-tests: New file.
17211         * tests/test-y0.c: New file.
17212
17213         Tests for module 'tanh'.
17214         * modules/tanh-tests: New file.
17215         * tests/test-tanh.c: New file.
17216
17217         Tests for module 'tan'.
17218         * modules/tan-tests: New file.
17219         * tests/test-tan.c: New file.
17220
17221         Tests for module 'sqrt'.
17222         * modules/sqrt-tests: New file.
17223         * tests/test-sqrt.c: New file.
17224
17225         Tests for module 'sinh'.
17226         * modules/sinh-tests: New file.
17227         * tests/test-sinh.c: New file.
17228
17229         Tests for module 'sin'.
17230         * modules/sin-tests: New file.
17231         * tests/test-sin.c: New file.
17232
17233         Tests for module 'rint'.
17234         * modules/rint-tests: New file.
17235         * tests/test-rint.c: New file.
17236
17237         Tests for module 'remainder'.
17238         * modules/remainder-tests: New file.
17239         * tests/test-remainder.c: New file.
17240
17241         Tests for module 'pow'.
17242         * modules/pow-tests: New file.
17243         * tests/test-pow.c: New file.
17244
17245         Tests for module 'nextafter'.
17246         * modules/nextafter-tests: New file.
17247         * tests/test-nextafter.c: New file.
17248
17249         Tests for module 'modf'.
17250         * modules/modf-tests: New file.
17251         * tests/test-modf.c: New file.
17252
17253         Tests for module 'logb'.
17254         * modules/logb-tests: New file.
17255         * tests/test-logb.c: New file.
17256
17257         Tests for module 'log1p'.
17258         * modules/log1p-tests: New file.
17259         * tests/test-log1p.c: New file.
17260
17261         Tests for module 'log10'.
17262         * modules/log10-tests: New file.
17263         * tests/test-log10.c: New file.
17264
17265         Tests for module 'log'.
17266         * modules/log-tests: New file.
17267         * tests/test-log.c: New file.
17268
17269         Tests for module 'lgamma'.
17270         * modules/lgamma-tests: New file.
17271         * tests/test-lgamma.c: New file.
17272
17273         Tests for module 'ldexp'.
17274         * modules/ldexp-tests: New file.
17275         * tests/test-ldexp.c: New file.
17276
17277         Tests for module 'jn'.
17278         * modules/jn-tests: New file.
17279         * tests/test-jn.c: New file.
17280
17281         Tests for module 'j1'.
17282         * modules/j1-tests: New file.
17283         * tests/test-j1.c: New file.
17284
17285         Tests for module 'j0'.
17286         * modules/j0-tests: New file.
17287         * tests/test-j0.c: New file.
17288
17289         Tests for module 'hypot'.
17290         * modules/hypot-tests: New file.
17291         * tests/test-hypot.c: New file.
17292
17293         Tests for module 'fmod'.
17294         * modules/fmod-tests: New file.
17295         * tests/test-fmod.c: New file.
17296
17297         Tests for module 'fabs'.
17298         * modules/fabs-tests: New file.
17299         * tests/test-fabs.c: New file.
17300
17301         Tests for module 'exp'.
17302         * modules/exp-tests: New file.
17303         * tests/test-exp.c: New file.
17304
17305         Tests for module 'erfc'.
17306         * modules/erfc-tests: New file.
17307         * tests/test-erfc.c: New file.
17308
17309         Tests for module 'erf'.
17310         * modules/erf-tests: New file.
17311         * tests/test-erf.c: New file.
17312
17313         Tests for module 'cosh'.
17314         * modules/cosh-tests: New file.
17315         * tests/test-cosh.c: New file.
17316
17317         Tests for module 'cos'.
17318         * modules/cos-tests: New file.
17319         * tests/test-cos.c: New file.
17320
17321         Tests for module 'copysign'.
17322         * modules/copysign-tests: New file.
17323         * tests/test-copysign.c: New file.
17324
17325         Tests for module 'cbrt'.
17326         * modules/cbrt-tests: New file.
17327         * tests/test-cbrt.c: New file.
17328
17329         Tests for module 'atan2'.
17330         * modules/atan2-tests: New file.
17331         * tests/test-atan2.c: New file.
17332
17333         Tests for module 'atan'.
17334         * modules/atan-tests: New file.
17335         * tests/test-atan.c: New file.
17336
17337         Tests for module 'asin'.
17338         * modules/asin-tests: New file.
17339         * tests/test-asin.c: New file.
17340
17341         Tests for module 'acos'.
17342         * modules/acos-tests: New file.
17343         * tests/test-acos.c: New file.
17344
17345 2010-01-24  Bruno Haible  <bruno@clisp.org>
17346
17347         Fix tests for common <math.h> functions.
17348         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
17349         code snippet that references the function pointer, rather than merely
17350         calling the function. Substitute the FUNC_LIBM variable.
17351         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
17352         * modules/acos (configure.ac): Likewise.
17353         * modules/asin (configure.ac): Likewise.
17354         * modules/atan (configure.ac): Likewise.
17355         * modules/atan2 (configure.ac): Likewise.
17356         * modules/cbrt (configure.ac): Likewise.
17357         * modules/copysign (configure.ac): Likewise.
17358         * modules/cos (configure.ac): Likewise.
17359         * modules/cosh (configure.ac): Likewise.
17360         * modules/erf (configure.ac): Likewise.
17361         * modules/erfc (configure.ac): Likewise.
17362         * modules/exp (configure.ac): Likewise.
17363         * modules/fabs (configure.ac): Likewise.
17364         * modules/fmod (configure.ac): Likewise.
17365         * modules/hypot (configure.ac): Likewise.
17366         * modules/j0 (configure.ac): Likewise.
17367         * modules/j1 (configure.ac): Likewise.
17368         * modules/jn (configure.ac): Likewise.
17369         * modules/ldexp (configure.ac): Likewise.
17370         * modules/lgamma (configure.ac): Likewise.
17371         * modules/log (configure.ac): Likewise.
17372         * modules/log10 (configure.ac): Likewise.
17373         * modules/log1p (configure.ac): Likewise.
17374         * modules/logb (configure.ac): Likewise.
17375         * modules/modf (configure.ac): Likewise.
17376         * modules/nextafter (configure.ac): Likewise.
17377         * modules/pow (configure.ac): Likewise.
17378         * modules/remainder (configure.ac): Likewise.
17379         * modules/rint (configure.ac): Likewise.
17380         * modules/sin (configure.ac): Likewise.
17381         * modules/sinh (configure.ac): Likewise.
17382         * modules/tan (configure.ac): Likewise.
17383         * modules/tanh (configure.ac): Likewise.
17384         * modules/y0 (configure.ac): Likewise.
17385         * modules/y1 (configure.ac): Likewise.
17386         * modules/yn (configure.ac): Likewise.
17387
17388 2010-01-24  Bruno Haible  <bruno@clisp.org>
17389
17390         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
17391         * tests/test-acosl.c (x): New variable.
17392         (main): Store argument in x and fetch it from x.
17393         * tests/test-asinl.c (x): New variable.
17394         (main): Store argument in x and fetch it from x.
17395         * tests/test-atanl.c (x): New variable.
17396         (main): Store argument in x and fetch it from x.
17397         * tests/test-cosl.c (x): New variable.
17398         (main): Store argument in x and fetch it from x.
17399         * tests/test-expl.c (x): New variable.
17400         (main): Store argument in x and fetch it from x.
17401         * tests/test-logl.c (x): New variable.
17402         (main): Store argument in x and fetch it from x.
17403         * tests/test-sinl.c (x): New variable.
17404         (main): Store argument in x and fetch it from x.
17405         * tests/test-sqrtl.c (x): New variable.
17406         (main): Store argument in x and fetch it from x.
17407         * tests/test-tanl.c (x): New variable.
17408         (main): Store argument in x and fetch it from x.
17409
17410 2010-01-24  Bruno Haible  <bruno@clisp.org>
17411
17412         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
17413         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
17414         assignments to the initial TESTS_ENVIRONMENT.
17415         * doc/gnulib.texi (Unit test modules): Document it.
17416         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
17417         TESTS_ENVIRONMENT.
17418         * modules/btowc-tests (Makefile.am): Likewise.
17419         * modules/c-stack-tests (Makefile.am): Likewise.
17420         * modules/c-strcase-tests (Makefile.am): Likewise.
17421         * modules/copy-file-tests (Makefile.am): Likewise.
17422         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
17423         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
17424         * modules/mbrtowc-tests (Makefile.am): Likewise.
17425         * modules/mbscasecmp-tests (Makefile.am): Likewise.
17426         * modules/mbscasestr-tests (Makefile.am): Likewise.
17427         * modules/mbschr-tests (Makefile.am): Likewise.
17428         * modules/mbscspn-tests (Makefile.am): Likewise.
17429         * modules/mbsinit-tests (Makefile.am): Likewise.
17430         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
17431         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
17432         * modules/mbspbrk-tests (Makefile.am): Likewise.
17433         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
17434         * modules/mbsrchr-tests (Makefile.am): Likewise.
17435         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
17436         * modules/mbsspn-tests (Makefile.am): Likewise.
17437         * modules/mbsstr-tests (Makefile.am): Likewise.
17438         * modules/nl_langinfo-tests (Makefile.am): Likewise.
17439         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
17440         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
17441         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
17442         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
17443         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
17444         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
17445         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
17446         * modules/wcrtomb-tests (Makefile.am): Likewise.
17447         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
17448         * modules/wcsrtombs-tests (Makefile.am): Likewise.
17449         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
17450         assignments from TESTS_ENVIRONMENT.
17451         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
17452         augmentation.
17453         * modules/argp-version-etc-tests (Makefile.am): Likewise.
17454         * modules/atexit-tests (Makefile.am): Likewise.
17455         * modules/binary-io-tests (Makefile.am): Likewise.
17456         * modules/closein-tests (Makefile.am): Likewise.
17457         * modules/dprintf-posix-tests (Makefile.am): Likewise.
17458         * modules/exclude-tests (Makefile.am): Likewise.
17459         * modules/fflush-tests (Makefile.am): Likewise.
17460         * modules/fpending-tests (Makefile.am): Likewise.
17461         * modules/fprintf-posix-tests (Makefile.am): Likewise.
17462         * modules/freadahead-tests (Makefile.am): Likewise.
17463         * modules/freadptr-tests (Makefile.am): Likewise.
17464         * modules/freadseek-tests (Makefile.am): Likewise.
17465         * modules/fseek-tests (Makefile.am): Likewise.
17466         * modules/fseeko-tests (Makefile.am): Likewise.
17467         * modules/ftell-tests (Makefile.am): Likewise.
17468         * modules/ftello-tests (Makefile.am): Likewise.
17469         * modules/idpriv-drop-tests (Makefile.am): Likewise.
17470         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
17471         * modules/lseek-tests (Makefile.am): Likewise.
17472         * modules/parse-duration-tests (Makefile.am): Likewise.
17473         * modules/perror-tests (Makefile.am): Likewise.
17474         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
17475         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
17476         * modules/pipe-tests (Makefile.am): Likewise.
17477         * modules/pread-tests (Makefile.am): Likewise.
17478         * modules/printf-posix-tests (Makefile.am): Likewise.
17479         * modules/select-tests (Makefile.am): Likewise.
17480         * modules/sigpipe-tests (Makefile.am): Likewise.
17481         * modules/tsearch-tests (Makefile.am): Likewise.
17482         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
17483         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
17484         * modules/uniname/uniname-tests (Makefile.am): Likewise.
17485         * modules/uniwidth/width-tests (Makefile.am): Likewise.
17486         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
17487         * modules/version-etc-tests (Makefile.am): Likewise.
17488         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
17489         * modules/vprintf-posix-tests (Makefile.am): Likewise.
17490         * modules/xalloc-die-tests (Makefile.am): Likewise.
17491         * modules/xprintf-posix-tests (Makefile.am): Likewise.
17492         * modules/xstrtoimax-tests (Makefile.am): Likewise.
17493         * modules/xstrtol-tests (Makefile.am): Likewise.
17494         * modules/xstrtoumax-tests (Makefile.am): Likewise.
17495         * modules/yesno-tests (Makefile.am): Likewise.
17496         Suggested by Jim Meyering.
17497
17498 2010-01-24  Bruno Haible  <bruno@clisp.org>
17499
17500         More documentation.
17501         * doc/gnulib.texi (Writing modules): New chapter.
17502         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
17503         the new chapter.
17504
17505 2010-01-24  Jim Meyering  <meyering@redhat.com>
17506
17507         maint.mk: do not prepend "./" after filtering
17508         * top/maint.mk (_prepend_srcdir_prefix): New variable
17509         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
17510         "./" when $(srcdir) is ".".
17511
17512         define STREQ(a,b) consistently, removing useless parentheses
17513         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
17514         since the only risk is that "a" or "b" contains an unparenthesized
17515         comma, but if either did that, STREQ would have 3 or more arguments.
17516         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
17517         * lib/fts.c (STREQ): Remove unnecessary parentheses.
17518         * lib/hash-triple.c (STREQ): Likewise.
17519         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
17520         * lib/getugroups.c (STREQ): Likewise.
17521
17522 2010-01-23  Jim Meyering  <meyering@redhat.com>
17523
17524         maint.mk: fix syntax-check in a non-srcdir build directory
17525         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
17526         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
17527
17528 2010-01-22  Jim Meyering  <meyering@redhat.com>
17529
17530         userspec: add unit tests
17531         * tests/test-userspec.c: New file.
17532         * modules/userspec-tests: Likewise.
17533
17534 2010-01-21  Jim Meyering  <meyering@redhat.com>
17535
17536         maint.mk: handle source file names containing "." robustly
17537         * top/maint.mk (_dot_escaped_srcdir): Define.
17538         (VC_LIST): Use it in LHS of sed substitution.
17539
17540 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
17541
17542         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
17543         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
17544         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
17545         from a non-srcdir build.
17546
17547 2010-01-20  Eric Blake  <ebb9@byu.net>
17548
17549         warn-on-use: use instead of link-warning
17550         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
17551         * modules/unistd (Depends-on, Makefile.am): Likewise.
17552         * modules/arpa_inet (Depends-on): Replace link-warning with
17553         warn-on-use.
17554         (Makefile.am): Update rules accordingly.
17555         * modules/ctype (Depends-on, Makefile.am): Likewise.
17556         * modules/dirent (Depends-on, Makefile.am): Likewise.
17557         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
17558         * modules/inttypes (Depends-on, Makefile.am): Likewise.
17559         * modules/langinfo (Depends-on, Makefile.am): Likewise.
17560         * modules/locale (Depends-on, Makefile.am): Likewise.
17561         * modules/math (Depends-on, Makefile.am): Likewise.
17562         * modules/search (Depends-on, Makefile.am): Likewise.
17563         * modules/signal (Depends-on, Makefile.am): Likewise.
17564         * modules/spawn (Depends-on, Makefile.am): Likewise.
17565         * modules/stdlib (Depends-on, Makefile.am): Likewise.
17566         * modules/string (Depends-on, Makefile.am): Likewise.
17567         * modules/strings (Depends-on, Makefile.am): Likewise.
17568         * modules/sys_file (Depends-on, Makefile.am): Likewise.
17569         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
17570         * modules/sys_select (Depends-on, Makefile.am): Likewise.
17571         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
17572         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
17573         * modules/sys_times (Depends-on, Makefile.am): Likewise.
17574         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
17575         * modules/wchar (Depends-on, Makefile.am): Likewise.
17576         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
17577         should be poisoned.
17578         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
17579         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
17580         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
17581         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
17582         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17583         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17584         * m4/math_h.m4 (gl_MATH_H): Likewise.
17585         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17586         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
17587         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17588         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
17589         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
17590         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
17591         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
17592         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
17593         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
17594         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17595         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
17596         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
17597         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17598         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17599         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17600         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17601         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
17602         GL_LINK_WARNING.
17603         * lib/ctype.in.h: Likewise.
17604         * lib/dirent.in.h: Likewise.
17605         * lib/fcntl.in.h: Likewise.
17606         * lib/inttypes.in.h: Likewise.
17607         * lib/langinfo.in.h: Likewise.
17608         * lib/locale.in.h: Likewise.
17609         * lib/math.in.h: Likewise.
17610         * lib/search.in.h: Likewise.
17611         * lib/signal.in.h: Likewise.
17612         * lib/spawn.in.h: Likewise.
17613         * lib/stdio.in.h: Likewise.
17614         * lib/stdlib.in.h: Likewise.
17615         * lib/string.in.h: Likewise.
17616         * lib/strings.in.h: Likewise.
17617         * lib/sys_file.in.h: Likewise.
17618         * lib/sys_ioctl.in.h: Likewise.
17619         * lib/sys_select.in.h: Likewise.
17620         * lib/sys_socket.in.h: Likewise.
17621         * lib/sys_stat.in.h: Likewise.
17622         * lib/sys_times.in.h: Likewise.
17623         * lib/sys_utsname.in.h: Likewise.
17624         * lib/unistd.in.h: Likewise.
17625         * lib/wchar.in.h: Likewise.
17626
17627 2010-01-20  Bruno Haible  <bruno@clisp.org>
17628
17629         Avoid duplicate -lm.
17630         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
17631         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
17632         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
17633         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
17634         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
17635         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
17636         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
17637         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
17638         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
17639         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
17640         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
17641         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17642         Reported by Paolo Bonzini.
17643
17644 2010-01-19  Bruno Haible  <bruno@clisp.org>
17645
17646         langinfo, nl_langinfo: Relicense under LGPLv2+.
17647         * modules/langinfo (License): Change to LGPLv2+.
17648         * modules/nl_langinfo (License): Likewise.
17649         Patch by David Lutterkort <lutter@redhat.com>.
17650
17651 2010-01-19  Bruno Haible  <bruno@clisp.org>
17652
17653         Avoid compilation error with cc on OSF/1 5.1.
17654         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
17655         statement, not before.
17656         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17657
17658 2010-01-18  Bruno Haible  <bruno@clisp.org>
17659
17660         Avoid a link error due to the __printf__ symbol.
17661         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
17662         and 2.6.x.
17663         (__format__, __printf__): Remove definitions.
17664         * lib/argp-fmtstream.h: Likewise.
17665         * lib/argp.h: Likewise.
17666         * lib/error.h: Likewise.
17667         * lib/vasnprintf.h: Likewise.
17668         * lib/xprintf.h: Likewise.
17669         * lib/xvasprintf.h: Likewise.
17670         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17671
17672 2010-01-18  Bruno Haible  <bruno@clisp.org>
17673
17674         Tests for module 'tanl'.
17675         * modules/tanl-tests: New file.
17676         * tests/test-tanl.c: New file.
17677
17678         Tests for module 'sqrtl'.
17679         * modules/sqrtl-tests: New file.
17680         * tests/test-sqrtl.c: New file.
17681
17682         Tests for module 'sinl'.
17683         * modules/sinl-tests: New file.
17684         * tests/test-sinl.c: New file.
17685
17686         Tests for module 'logl'.
17687         * modules/logl-tests: New file.
17688         * tests/test-logl.c: New file.
17689
17690         Tests for module 'expl'.
17691         * modules/expl-tests: New file.
17692         * tests/test-expl.c: New file.
17693
17694         Tests for module 'cosl'.
17695         * modules/cosl-tests: New file.
17696         * tests/test-cosl.c: New file.
17697
17698         Tests for module 'atanl'.
17699         * modules/atanl-tests: New file.
17700         * tests/test-atanl.c: New file.
17701
17702         Tests for module 'asinl'.
17703         * modules/asinl-tests: New file.
17704         * tests/test-asinl.c: New file.
17705
17706         Tests for module 'acosl'.
17707         * modules/acosl-tests: New file.
17708         * tests/test-acosl.c: New file.
17709
17710         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17711         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
17712         tanl): Use the standard gnulib idiom.
17713         * lib/cosl.c: Don't include trigl.c and sincosl.c.
17714         * lib/sinl.c: Likewise.
17715         * lib/tanl.c: Don't include trigl.c.
17716         (kernel_tanl): Make static.
17717         * lib/sincosl.c: Include trigl.h first.
17718         * lib/trigl.c: Likewise.
17719         * m4/acosl.m4: New file.
17720         * m4/asinl.m4: New file.
17721         * m4/atanl.m4: New file.
17722         * m4/cosl.m4: New file.
17723         * m4/expl.m4: New file.
17724         * m4/logl.m4: New file.
17725         * m4/sinl.m4: New file.
17726         * m4/sqrtl.m4: New file.
17727         * m4/tanl.m4: New file.
17728         * m4/mathl.m4: Remove file.
17729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
17730         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
17731         Don't initialize GNULIB_MATHL.
17732         * modules/acosl: New file.
17733         * modules/asinl: New file.
17734         * modules/atanl: New file.
17735         * modules/cosl: New file.
17736         * modules/expl: New file.
17737         * modules/logl: New file.
17738         * modules/sinl: New file.
17739         * modules/sqrtl: New file.
17740         * modules/tanl: New file.
17741         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
17742         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
17743         substitute GNULIB_MATHL.
17744         * modules/mathl: Rewritten.
17745         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
17746         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
17747         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
17748         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
17749         * doc/posix-functions/expl.texi: Mention the 'expl' module.
17750         * doc/posix-functions/logl.texi: Mention the 'logl' module.
17751         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
17752         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
17753         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
17754
17755 2010-01-18  Bruno Haible  <bruno@clisp.org>
17756
17757         sqrt: Make gl_FUNC_SQRT requirable.
17758         * m4/sqrt.m4: New file.
17759         * modules/sqrt (Files): Add it.
17760         (configure.ac): Invoke gl_FUNC_SQRT.
17761
17762 2010-01-18  Bruno Haible  <bruno@clisp.org>
17763
17764         New modules for common <math.h> functions.
17765         * m4/mathfunc.m4: New file.
17766         * modules/acos: New file.
17767         * modules/asin: New file.
17768         * modules/atan: New file.
17769         * modules/atan2: New file.
17770         * modules/cbrt: New file.
17771         * modules/copysign: New file.
17772         * modules/cos: New file.
17773         * modules/cosh: New file.
17774         * modules/erf: New file.
17775         * modules/erfc: New file.
17776         * modules/exp: New file.
17777         * modules/fabs: New file.
17778         * modules/fmod: New file.
17779         * modules/hypot: New file.
17780         * modules/j0: New file.
17781         * modules/j1: New file.
17782         * modules/jn: New file.
17783         * modules/ldexp: New file.
17784         * modules/lgamma: New file.
17785         * modules/log: New file.
17786         * modules/log10: New file.
17787         * modules/log1p: New file.
17788         * modules/logb: New file.
17789         * modules/modf: New file.
17790         * modules/nextafter: New file.
17791         * modules/pow: New file.
17792         * modules/remainder: New file.
17793         * modules/rint: New file.
17794         * modules/sin: New file.
17795         * modules/sinh: New file.
17796         * modules/sqrt: New file.
17797         * modules/tan: New file.
17798         * modules/tanh: New file.
17799         * modules/y0: New file.
17800         * modules/y1: New file.
17801         * modules/yn: New file.
17802         * doc/posix-functions/acos.texi: Mention the 'acos' module.
17803         * doc/posix-functions/asin.texi: Mention the 'asin' module.
17804         * doc/posix-functions/atan.texi: Mention the 'atan' module.
17805         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
17806         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
17807         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
17808         * doc/posix-functions/cos.texi: Mention the 'cos' module.
17809         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
17810         * doc/posix-functions/erf.texi: Mention the 'erf' module.
17811         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
17812         * doc/posix-functions/exp.texi: Mention the 'exp' module.
17813         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
17814         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
17815         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
17816         * doc/posix-functions/j0.texi: Mention the 'j0' module.
17817         * doc/posix-functions/j1.texi: Mention the 'j1' module.
17818         * doc/posix-functions/jn.texi: Mention the 'jn' module.
17819         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
17820         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
17821         * doc/posix-functions/log.texi: Mention the 'log' module.
17822         * doc/posix-functions/log10.texi: Mention the 'log10' module.
17823         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
17824         * doc/posix-functions/logb.texi: Mention the 'logb' module.
17825         * doc/posix-functions/modf.texi: Mention the 'modf' module.
17826         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
17827         * doc/posix-functions/pow.texi: Mention the 'pow' module.
17828         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
17829         * doc/posix-functions/rint.texi: Mention the 'rint' module.
17830         * doc/posix-functions/sin.texi: Mention the 'sin' module.
17831         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
17832         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
17833         * doc/posix-functions/tan.texi: Mention the 'tan' module.
17834         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
17835         * doc/posix-functions/y0.texi: Mention the 'y0' module.
17836         * doc/posix-functions/y1.texi: Mention the 'y1' module.
17837         * doc/posix-functions/yn.texi: Mention the 'yn' module.
17838
17839 2010-01-18  Jim Meyering  <meyering@redhat.com>
17840
17841         ignore-value: relax license to LGPLv2+
17842         * modules/ignore-value (License): Relax to LGPLv2+.
17843
17844         getdate: don't leak when TZ contains two or more '"'s
17845         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
17846         double quote in TZ after the first one.
17847
17848         readtokens: do not leak internal token_lengths buffer
17849         * lib/readtokens.c (readtokens): Free the local, lengths,
17850         when the supplied "token_lengths" parameter is NULL.
17851
17852 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17853
17854         Fix a couple of missing LIBTHREAD link failures on AIX.
17855         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
17856         $(LIBTHREAD).
17857         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
17858
17859         Link test-poll against INET_PTON_LIB.
17860         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
17861         for inet_pton on Solaris 10.
17862
17863 2010-01-17  Bruno Haible  <bruno@clisp.org>
17864
17865         unistdio/*-sprintf: Fix typo in module description.
17866         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
17867         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
17868         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
17869         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
17870         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
17871         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
17872         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
17873         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17874
17875 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17876
17877         gnulib-tool: fix filelist for AIX, HP-UX ksh.
17878         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
17879         variables in shell case patterns, for AIX and HP-UX ksh.
17880
17881         Split large sed scripts, for HP-UX sed.
17882         * modules/stdio: Split sed scripts around 50 sed commands,
17883         to avoid HP-UX limit of 99 commands, in the near future.
17884         * modules/string: Likewise.
17885         * modules/unistd: Likewise.
17886
17887         gnulib-tool: avoid writing in the current directory.
17888         * gnulib-tool (func_emit_lib_Makefile_am)
17889         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
17890         not in the current directory, so concurrent gnulib-tool
17891         instances do not interfere.
17892
17893 2010-01-16  Jim Meyering  <meyering@redhat.com>
17894
17895         doc: update users.txt
17896         * users.txt: Add grep.
17897         (diffutils, gzip): Update URLs.
17898
17899 2010-01-12  Bruno Haible  <bruno@clisp.org>
17900
17901         posix_spawn: Avoid test failure on Cygwin.
17902         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
17903         characters.
17904         Reported by Simon Josefsson.
17905
17906 2010-01-12  Bruno Haible  <bruno@clisp.org>
17907
17908         * tests/test-cond.c (main): When skipping the test, show the reason.
17909
17910 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17911
17912         * lib/striconv.c (str_cd_iconv): Avoid if before free.
17913
17914 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17915
17916         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
17917         VC_LIST_ALWAYS_EXCLUDE_REGEX.
17918
17919 2010-01-12  Eric Blake  <ebb9@byu.net>
17920
17921         build: guarantee AS_VAR_IF
17922         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
17923         (gl_AS_VAR_IF): Move...
17924         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
17925         Reported by Simon Josefsson.
17926
17927 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17928
17929         * lib/stdio.in.h: Fix typo.
17930
17931 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17932
17933         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
17934         libgpg-error.
17935
17936 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17937
17938         * tests/test-xalloc-die.sh: Use $EXEEXT.
17939
17940 2010-01-12  Simon Josefsson  <simon@josefsson.org>
17941             Bruno Haible  <bruno@clisp.org>
17942
17943         getlogin, getlogin_r: Avoid test failure.
17944         * tests/test-getlogin.c: Include <stdio.h>.
17945         (main): Skip the test when the function fails because stdin is not a
17946         tty.
17947         * tests/test-getlogin_r.c: Include <stdio.h>.
17948         (main): Skip the test when the function fails because stdin is not a
17949         tty.
17950
17951 2010-01-11  Eric Blake  <ebb9@byu.net>
17952
17953         tests: avoid more large file warnings
17954         * tests/test-fflush.c: Avoid warning about ftell use.
17955         * tests/test-fseek.c: Avoid warning about fseek use.
17956
17957 2010-01-10  Bruno Haible  <bruno@clisp.org>
17958
17959         nproc: Work better on Linux when /proc and /sys are not mounted.
17960         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
17961         as lower bound when, on glibc/Linux systems,
17962         sysconf (_SC_NPROCESSORS_CONF) returns 1.
17963         Suggested by Pádraig Brady <P@draigbrady.com>.
17964         Reported by Dmitry V. Levin <ldv@altlinux.org>.
17965
17966         nproc: Refactor.
17967         * lib/nproc.c (num_processors_via_affinity_mask): New function,
17968         extracted from num_processors.
17969         (num_processors): Call it.
17970
17971 2010-01-11  Jim Meyering  <meyering@redhat.com>
17972
17973         utimecmp: avoid new warning from upcoming gcc-4.5.0
17974         * lib/utimecmp.c (BILLION): Define using #define rather than an
17975         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
17976
17977 2010-01-11  Eric Blake  <ebb9@byu.net>
17978
17979         math: add portability warnings for classification macros
17980         * modules/math (Depends-on): Add warn-on-use.
17981         (Makefile.am): Provide new substitutions.
17982         * m4/math_h.m4 (gl_MATH_H): Require inline.
17983         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
17984         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
17985         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
17986         implement warnings.
17987
17988         unistd: warn on use of environ without module
17989         * modules/unistd (Depends-on): Add warn-on-use.
17990         (Makefile.am): Provide new substitutions.
17991         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
17992         * lib/unistd.in.h (environ): Wrap with a warning helper function.
17993
17994         stdio: warn on suspicious uses
17995         * modules/stdio (Depends-on): Add warn-on-use.
17996         (Makefile.am): Provide new substitutions.
17997         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
17998         fseeko.
17999         * lib/stdio.in.h (gets): Always warn on use.
18000         (fseek, ftell): Adjust when warnings are issued, and honor
18001         _GL_NO_LARGE_FILES as a way to silence the warning.
18002         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
18003         any warning about large file offsets.
18004         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
18005         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
18006         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
18007         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
18008         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
18009         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
18010         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
18011         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
18012
18013         warn-on-use: new module
18014         * modules/warn-on-use: New file.
18015         * build-aux/warn-on-use.h: Likewise.
18016         * m4/warn-on-use.m4: Likewise.
18017         * MODULES.html.sh (Support for building): Mention it.
18018
18019 2010-01-10  Bruno Haible  <bruno@clisp.org>
18020
18021         Tests for module 'unistr/u32-strdup'.
18022         * modules/unistr/u32-strdup-tests: New file.
18023         * tests/unistr/test-u32-strdup.c: New file.
18024
18025         Tests for module 'unistr/u16-strdup'.
18026         * modules/unistr/u16-strdup-tests: New file.
18027         * tests/unistr/test-u16-strdup.c: New file.
18028
18029         Tests for module 'unistr/u8-strdup'.
18030         * modules/unistr/u8-strdup-tests: New file.
18031         * tests/unistr/test-u8-strdup.c: New file.
18032         * tests/unistr/test-strdup.h: New file.
18033
18034         Tests for module 'unistr/u32-strncmp'.
18035         * modules/unistr/u32-strncmp-tests: New file.
18036         * tests/unistr/test-u32-strncmp.c: New file.
18037
18038         Tests for module 'unistr/u16-strncmp'.
18039         * modules/unistr/u16-strncmp-tests: New file.
18040         * tests/unistr/test-u16-strncmp.c: New file.
18041
18042         Tests for module 'unistr/u8-strncmp'.
18043         * modules/unistr/u8-strncmp-tests: New file.
18044         * tests/unistr/test-u8-strncmp.c: New file.
18045         * tests/unistr/test-strncmp.h: New file.
18046
18047         Tests for module 'unistr/u32-strcoll'.
18048         * modules/unistr/u32-strcoll-tests: New file.
18049         * tests/unistr/test-u32-strcoll.c: New file.
18050
18051         Tests for module 'unistr/u16-strcoll'.
18052         * modules/unistr/u16-strcoll-tests: New file.
18053         * tests/unistr/test-u16-strcoll.c: New file.
18054
18055         Tests for module 'unistr/u8-strcoll'.
18056         * modules/unistr/u8-strcoll-tests: New file.
18057         * tests/unistr/test-u8-strcoll.c: New file.
18058
18059         Tests for module 'unistr/u32-strcmp'.
18060         * modules/unistr/u32-strcmp-tests: New file.
18061         * tests/unistr/test-u32-strcmp.c: New file.
18062         * tests/unistr/test-u32-strcmp.h: New file.
18063
18064         Tests for module 'unistr/u16-strcmp'.
18065         * modules/unistr/u16-strcmp-tests: New file.
18066         * tests/unistr/test-u16-strcmp.c: New file.
18067         * tests/unistr/test-u16-strcmp.h: New file.
18068
18069         Tests for module 'unistr/u8-strcmp'.
18070         * modules/unistr/u8-strcmp-tests: New file.
18071         * tests/unistr/test-u8-strcmp.c: New file.
18072         * tests/unistr/test-u8-strcmp.h: New file.
18073         * tests/unistr/test-strcmp.h: New file.
18074
18075         Tests for module 'unistr/u32-strncat'.
18076         * modules/unistr/u32-strncat-tests: New file.
18077         * tests/unistr/test-u32-strncat.c: New file.
18078
18079         Tests for module 'unistr/u16-strncat'.
18080         * modules/unistr/u16-strncat-tests: New file.
18081         * tests/unistr/test-u16-strncat.c: New file.
18082
18083         Tests for module 'unistr/u8-strncat'.
18084         * modules/unistr/u8-strncat-tests: New file.
18085         * tests/unistr/test-u8-strncat.c: New file.
18086         * tests/unistr/test-strncat.h: New file.
18087
18088         Tests for module 'unistr/u32-strcat'.
18089         * modules/unistr/u32-strcat-tests: New file.
18090         * tests/unistr/test-u32-strcat.c: New file.
18091
18092         Tests for module 'unistr/u16-strcat'.
18093         * modules/unistr/u16-strcat-tests: New file.
18094         * tests/unistr/test-u16-strcat.c: New file.
18095
18096         Tests for module 'unistr/u8-strcat'.
18097         * modules/unistr/u8-strcat-tests: New file.
18098         * tests/unistr/test-u8-strcat.c: New file.
18099         * tests/unistr/test-strcat.h: New file.
18100
18101         Tests for module 'unistr/u32-stpncpy'.
18102         * modules/unistr/u32-stpncpy-tests: New file.
18103         * tests/unistr/test-u32-stpncpy.c: New file.
18104
18105         Tests for module 'unistr/u16-stpncpy'.
18106         * modules/unistr/u16-stpncpy-tests: New file.
18107         * tests/unistr/test-u16-stpncpy.c: New file.
18108
18109         Tests for module 'unistr/u8-stpncpy'.
18110         * modules/unistr/u8-stpncpy-tests: New file.
18111         * tests/unistr/test-u8-stpncpy.c: New file.
18112         * tests/unistr/test-stpncpy.h: New file.
18113
18114         Tests for module 'unistr/u32-strncpy'.
18115         * modules/unistr/u32-strncpy-tests: New file.
18116         * tests/unistr/test-u32-strncpy.c: New file.
18117
18118         Tests for module 'unistr/u16-strncpy'.
18119         * modules/unistr/u16-strncpy-tests: New file.
18120         * tests/unistr/test-u16-strncpy.c: New file.
18121
18122         Tests for module 'unistr/u8-strncpy'.
18123         * modules/unistr/u8-strncpy-tests: New file.
18124         * tests/unistr/test-u8-strncpy.c: New file.
18125         * tests/unistr/test-strncpy.h: New file.
18126
18127         Tests for module 'unistr/u32-stpcpy'.
18128         * modules/unistr/u32-stpcpy-tests: New file.
18129         * tests/unistr/test-u32-stpcpy.c: New file.
18130
18131         Tests for module 'unistr/u16-stpcpy'.
18132         * modules/unistr/u16-stpcpy-tests: New file.
18133         * tests/unistr/test-u16-stpcpy.c: New file.
18134
18135         Tests for module 'unistr/u8-stpcpy'.
18136         * modules/unistr/u8-stpcpy-tests: New file.
18137         * tests/unistr/test-u8-stpcpy.c: New file.
18138         * tests/unistr/test-stpcpy.h: New file.
18139
18140         Tests for module 'unistr/u32-strcpy'.
18141         * modules/unistr/u32-strcpy-tests: New file.
18142         * tests/unistr/test-u32-strcpy.c: New file.
18143
18144         Tests for module 'unistr/u16-strcpy'.
18145         * modules/unistr/u16-strcpy-tests: New file.
18146         * tests/unistr/test-u16-strcpy.c: New file.
18147
18148         Tests for module 'unistr/u8-strcpy'.
18149         * modules/unistr/u8-strcpy-tests: New file.
18150         * tests/unistr/test-u8-strcpy.c: New file.
18151         * tests/unistr/test-strcpy.h: New file.
18152
18153         Tests for module 'unistr/u32-strnlen'.
18154         * modules/unistr/u32-strnlen-tests: New file.
18155         * tests/unistr/test-u32-strnlen.c: New file.
18156
18157         Tests for module 'unistr/u16-strnlen'.
18158         * modules/unistr/u16-strnlen-tests: New file.
18159         * tests/unistr/test-u16-strnlen.c: New file.
18160
18161         Tests for module 'unistr/u8-strnlen'.
18162         * modules/unistr/u8-strnlen-tests: New file.
18163         * tests/unistr/test-u8-strnlen.c: New file.
18164         * tests/unistr/test-strnlen.h: New file.
18165
18166         Tests for module 'unistr/u32-strlen'.
18167         * modules/unistr/u32-strlen-tests: New file.
18168         * tests/unistr/test-u32-strlen.c: New file.
18169
18170         Tests for module 'unistr/u16-strlen'.
18171         * modules/unistr/u16-strlen-tests: New file.
18172         * tests/unistr/test-u16-strlen.c: New file.
18173
18174         Tests for module 'unistr/u8-strlen'.
18175         * modules/unistr/u8-strlen-tests: New file.
18176         * tests/unistr/test-u8-strlen.c: New file.
18177
18178         Tests for module 'unistr/u32-prev'.
18179         * modules/unistr/u32-prev-tests: New file.
18180         * tests/unistr/test-u32-prev.c: New file.
18181
18182         Tests for module 'unistr/u16-prev'.
18183         * modules/unistr/u16-prev-tests: New file.
18184         * tests/unistr/test-u16-prev.c: New file.
18185
18186         Tests for module 'unistr/u8-prev'.
18187         * modules/unistr/u8-prev-tests: New file.
18188         * tests/unistr/test-u8-prev.c: New file.
18189
18190         Tests for module 'unistr/u32-next'.
18191         * modules/unistr/u32-next-tests: New file.
18192         * tests/unistr/test-u32-next.c: New file.
18193
18194         Tests for module 'unistr/u16-next'.
18195         * modules/unistr/u16-next-tests: New file.
18196         * tests/unistr/test-u16-next.c: New file.
18197
18198         Tests for module 'unistr/u8-next'.
18199         * modules/unistr/u8-next-tests: New file.
18200         * tests/unistr/test-u8-next.c: New file.
18201
18202         Tests for module 'unistr/u32-strmbtouc'.
18203         * modules/unistr/u32-strmbtouc-tests: New file.
18204         * tests/unistr/test-u32-strmbtouc.c: New file.
18205
18206         Tests for module 'unistr/u16-strmbtouc'.
18207         * modules/unistr/u16-strmbtouc-tests: New file.
18208         * tests/unistr/test-u16-strmbtouc.c: New file.
18209
18210         Tests for module 'unistr/u8-strmbtouc'.
18211         * modules/unistr/u8-strmbtouc-tests: New file.
18212         * tests/unistr/test-u8-strmbtouc.c: New file.
18213
18214         Tests for module 'unistr/u32-strmblen'.
18215         * modules/unistr/u32-strmblen-tests: New file.
18216         * tests/unistr/test-u32-strmblen.c: New file.
18217
18218         Tests for module 'unistr/u16-strmblen'.
18219         * modules/unistr/u16-strmblen-tests: New file.
18220         * tests/unistr/test-u16-strmblen.c: New file.
18221
18222         Tests for module 'unistr/u8-strmblen'.
18223         * modules/unistr/u8-strmblen-tests: New file.
18224         * tests/unistr/test-u8-strmblen.c: New file.
18225
18226         Tests for module 'unistr/u32-cpy-alloc'.
18227         * modules/unistr/u32-cpy-alloc-tests: New file.
18228         * tests/unistr/test-u32-cpy-alloc.c: New file.
18229
18230         Tests for module 'unistr/u16-cpy-alloc'.
18231         * modules/unistr/u16-cpy-alloc-tests: New file.
18232         * tests/unistr/test-u16-cpy-alloc.c: New file.
18233
18234         Tests for module 'unistr/u8-cpy-alloc'.
18235         * modules/unistr/u8-cpy-alloc-tests: New file.
18236         * tests/unistr/test-u8-cpy-alloc.c: New file.
18237         * tests/unistr/test-cpy-alloc.h: New file.
18238
18239         Tests for module 'unistr/u32-mbsnlen'.
18240         * modules/unistr/u32-mbsnlen-tests: New file.
18241         * tests/unistr/test-u32-mbsnlen.c: New file.
18242
18243         Tests for module 'unistr/u16-mbsnlen'.
18244         * modules/unistr/u16-mbsnlen-tests: New file.
18245         * tests/unistr/test-u16-mbsnlen.c: New file.
18246
18247         Tests for module 'unistr/u8-mbsnlen'.
18248         * modules/unistr/u8-mbsnlen-tests: New file.
18249         * tests/unistr/test-u8-mbsnlen.c: New file.
18250
18251         Tests for module 'unistr/u32-chr'.
18252         * modules/unistr/u32-chr-tests: New file.
18253         * tests/unistr/test-u32-chr.c: New file.
18254
18255         Tests for module 'unistr/u16-chr'.
18256         * modules/unistr/u16-chr-tests: New file.
18257         * tests/unistr/test-u16-chr.c: New file.
18258
18259         Tests for module 'unistr/u8-chr'.
18260         * modules/unistr/u8-chr-tests: New file.
18261         * tests/unistr/test-u8-chr.c: New file.
18262         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
18263
18264         Tests for module 'unistr/u32-cmp2'.
18265         * modules/unistr/u32-cmp2-tests: New file.
18266         * tests/unistr/test-u32-cmp2.c: New file.
18267
18268         Tests for module 'unistr/u16-cmp2'.
18269         * modules/unistr/u16-cmp2-tests: New file.
18270         * tests/unistr/test-u16-cmp2.c: New file.
18271
18272         Tests for module 'unistr/u8-cmp2'.
18273         * modules/unistr/u8-cmp2-tests: New file.
18274         * tests/unistr/test-u8-cmp2.c: New file.
18275         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
18276
18277         Tests for module 'unistr/u32-cmp'.
18278         * modules/unistr/u32-cmp-tests: New file.
18279         * tests/unistr/test-u32-cmp.c: New file.
18280
18281         Tests for module 'unistr/u16-cmp'.
18282         * modules/unistr/u16-cmp-tests: New file.
18283         * tests/unistr/test-u16-cmp.c: New file.
18284
18285         Tests for module 'unistr/u8-cmp'.
18286         * modules/unistr/u8-cmp-tests: New file.
18287         * tests/unistr/test-u8-cmp.c: New file.
18288         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
18289
18290         Tests for module 'unistr/u32-set'.
18291         * modules/unistr/u32-set-tests: New file.
18292         * tests/unistr/test-u32-set.c: New file.
18293
18294         Tests for module 'unistr/u16-set'.
18295         * modules/unistr/u16-set-tests: New file.
18296         * tests/unistr/test-u16-set.c: New file.
18297
18298         Tests for module 'unistr/u8-set'.
18299         * modules/unistr/u8-set-tests: New file.
18300         * tests/unistr/test-u8-set.c: New file.
18301         * tests/unistr/test-set.h: New file.
18302
18303         Tests for module 'unistr/u32-move'.
18304         * modules/unistr/u32-move-tests: New file.
18305         * tests/unistr/test-u32-move.c: New file.
18306
18307         Tests for module 'unistr/u16-move'.
18308         * modules/unistr/u16-move-tests: New file.
18309         * tests/unistr/test-u16-move.c: New file.
18310
18311         Tests for module 'unistr/u8-move'.
18312         * modules/unistr/u8-move-tests: New file.
18313         * tests/unistr/test-u8-move.c: New file.
18314         * tests/unistr/test-move.h: New file.
18315
18316         Tests for module 'unistr/u32-cpy'.
18317         * modules/unistr/u32-cpy-tests: New file.
18318         * tests/unistr/test-u32-cpy.c: New file.
18319
18320         Tests for module 'unistr/u16-cpy'.
18321         * modules/unistr/u16-cpy-tests: New file.
18322         * tests/unistr/test-u16-cpy.c: New file.
18323
18324         Tests for module 'unistr/u8-cpy'.
18325         * modules/unistr/u8-cpy-tests: New file.
18326         * tests/unistr/test-u8-cpy.c: New file.
18327         * tests/unistr/test-cpy.h: New file.
18328
18329 2010-01-09  Bruno Haible  <bruno@clisp.org>
18330
18331         Tests for module 'unistr/u32-uctomb'.
18332         * modules/unistr/u32-uctomb-tests: New file.
18333         * tests/unistr/test-u32-uctomb.c: New file.
18334
18335         Tests for module 'unistr/u16-uctomb'.
18336         * modules/unistr/u16-uctomb-tests: New file.
18337         * tests/unistr/test-u16-uctomb.c: New file.
18338
18339         Tests for module 'unistr/u8-uctomb'.
18340         * modules/unistr/u8-uctomb-tests: New file.
18341         * tests/unistr/test-u8-uctomb.c: New file.
18342
18343         Tests for module 'unistr/u32-mbtoucr'.
18344         * modules/unistr/u32-mbtoucr-tests: New file.
18345         * tests/unistr/test-u32-mbtoucr.c: New file.
18346
18347         Tests for module 'unistr/u16-mbtoucr'.
18348         * modules/unistr/u16-mbtoucr-tests: New file.
18349         * tests/unistr/test-u16-mbtoucr.c: New file.
18350
18351         Tests for module 'unistr/u8-mbtoucr'.
18352         * modules/unistr/u8-mbtoucr-tests: New file.
18353         * tests/unistr/test-u8-mbtoucr.c: New file.
18354
18355         Tests for module 'unistr/u32-mbtouc'.
18356         * modules/unistr/u32-mbtouc-tests: New file.
18357         * tests/unistr/test-u32-mbtouc.c: New file.
18358
18359         Tests for module 'unistr/u16-mbtouc'.
18360         * modules/unistr/u16-mbtouc-tests: New file.
18361         * tests/unistr/test-u16-mbtouc.c: New file.
18362
18363         Tests for module 'unistr/u8-mbtouc'.
18364         * modules/unistr/u8-mbtouc-tests: New file.
18365         * tests/unistr/test-u8-mbtouc.c: New file.
18366
18367         Tests for module 'unistr/u32-mbtouc-unsafe'.
18368         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
18369         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
18370         * tests/unistr/test-u32-mbtouc.h: New file.
18371
18372         Tests for module 'unistr/u16-mbtouc-unsafe'.
18373         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
18374         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
18375         * tests/unistr/test-u16-mbtouc.h: New file.
18376
18377         Tests for module 'unistr/u8-mbtouc-unsafe'.
18378         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
18379         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
18380         * tests/unistr/test-u8-mbtouc.h: New file.
18381
18382         Tests for module 'unistr/u32-mblen'.
18383         * modules/unistr/u32-mblen-tests: New file.
18384         * tests/unistr/test-u32-mblen.c: New file.
18385
18386         Tests for module 'unistr/u16-mblen'.
18387         * modules/unistr/u16-mblen-tests: New file.
18388         * tests/unistr/test-u16-mblen.c: New file.
18389
18390         Tests for module 'unistr/u8-mblen'.
18391         * modules/unistr/u8-mblen-tests: New file.
18392         * tests/unistr/test-u8-mblen.c: New file.
18393
18394         Tests for module 'unistr/u32-to-u16'.
18395         * modules/unistr/u32-to-u16-tests: New file.
18396         * tests/unistr/test-u32-to-u16.c: New file.
18397
18398         Tests for module 'unistr/u32-to-u8'.
18399         * modules/unistr/u32-to-u8-tests: New file.
18400         * tests/unistr/test-u32-to-u8.c: New file.
18401
18402         Tests for module 'unistr/u16-to-u32'.
18403         * modules/unistr/u16-to-u32-tests: New file.
18404         * tests/unistr/test-u16-to-u32.c: New file.
18405
18406         Tests for module 'unistr/u16-to-u8'.
18407         * modules/unistr/u16-to-u8-tests: New file.
18408         * tests/unistr/test-u16-to-u8.c: New file.
18409
18410         Tests for module 'unistr/u8-to-u32'.
18411         * modules/unistr/u8-to-u32-tests: New file.
18412         * tests/unistr/test-u8-to-u32.c: New file.
18413
18414         Tests for module 'unistr/u8-to-u16'.
18415         * modules/unistr/u8-to-u16-tests: New file.
18416         * tests/unistr/test-u8-to-u16.c: New file.
18417
18418         Tests for module 'unistr/u32-check'.
18419         * modules/unistr/u32-check-tests: New file.
18420         * tests/unistr/test-u32-check.c: New file.
18421
18422         Tests for module 'unistr/u16-check'.
18423         * modules/unistr/u16-check-tests: New file.
18424         * tests/unistr/test-u16-check.c: New file.
18425
18426         Tests for module 'unistr/u8-check'.
18427         * modules/unistr/u8-check-tests: New file.
18428         * tests/unistr/test-u8-check.c: New file.
18429
18430         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
18431         (category_equals): New function.
18432         (main): Add more tests.
18433         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
18434
18435         * tests/unictype/test-bidi_byname.c (main): Add more tests.
18436
18437 2010-01-10  Bruno Haible  <bruno@clisp.org>
18438
18439         unistr/u*-strcoll: Try harder to distinguish different strings.
18440         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
18441         compare s1 and s2 to see if they are different.
18442
18443 2010-01-10  Bruno Haible  <bruno@clisp.org>
18444
18445         unistr/u*-stpncpy: Fix the return value.
18446         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
18447         description of the return value consistent with stpncpy in glibc.
18448         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
18449         written non-NUL unit.
18450
18451 2010-01-10  Bruno Haible  <bruno@clisp.org>
18452
18453         unistr/u*-next: Add missing dependencies.
18454         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
18455         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
18456         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
18457
18458 2010-01-10  Bruno Haible  <bruno@clisp.org>
18459
18460         unistr/u8-mbsnlen: Fix return value for incomplete character.
18461         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
18462         u8_mblen.
18463         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
18464         Remove unistr/u8-mblen.
18465         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
18466         u16_mblen.
18467         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
18468         Remove unistr/u16-mblen.
18469
18470 2010-01-10  Bruno Haible  <bruno@clisp.org>
18471
18472         wchar: Fix compilation error when <wchar.h> is used from coreutils.
18473         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
18474         Reported by Brian Gough <bjg@gnu.org> and
18475         Chris Clayton <chris2553@googlemail.com> via
18476         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
18477
18478 2010-01-09  Bruno Haible  <bruno@clisp.org>
18479
18480         unistr/u16-to-u32: Reject invalid input.
18481         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
18482         u16_mbtouc.
18483         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
18484         Remove unistr/u16-mbtouc.
18485
18486         unistr/u16-to-u8: Reject invalid input.
18487         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
18488         u16_mbtouc.
18489         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
18490         Remove unistr/u16-mbtouc.
18491
18492         unistr/u8-to-u32: Reject invalid input.
18493         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
18494         u8_mbtouc.
18495         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
18496         Remove unistr/u8-mbtouc.
18497
18498         unistr/u8-to-u16: Reject invalid input.
18499         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
18500         u8_mbtouc.
18501         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
18502         Remove unistr/u8-mbtouc.
18503
18504 2010-01-09  Bruno Haible  <bruno@clisp.org>
18505
18506         Tests for module 'getlogin'.
18507         * modules/getlogin-tests: New file.
18508         * tests/test-getlogin.c: New file.
18509
18510         New module 'getlogin'.
18511         * lib/unistd.in.h (getlogin): New declaration.
18512         * lib/getlogin.c: New file.
18513         * m4/getlogin.m4: New file.
18514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
18515         HAVE_GETLOGIN.
18516         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
18517         HAVE_GETLOGIN.
18518         * modules/getlogin: New file.
18519         * doc/posix-functions/getlogin.texi: Mention the new module.
18520         Reported by John W. Eaton <jwe@gnu.org>.
18521
18522 2010-01-09  Bruno Haible  <bruno@clisp.org>
18523
18524         getlogin_r: Support for native Windows.
18525         * lib/getlogin_r.c: Include <windows.h>
18526         (getlogin_r): Implement for native Windows.
18527         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
18528         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
18529         via John W. Eaton <jwe@gnu.org>.
18530
18531 2010-01-09  Bruno Haible  <bruno@clisp.org>
18532
18533         getlogin_r: Small fixes.
18534         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
18535         succeeds.
18536         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
18537         before testing whether getlogin_r is declared. No need to set
18538         HAVE_DECL_GETLOGIN_R to 1.
18539         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
18540
18541 2010-01-09  Bruno Haible  <bruno@clisp.org>
18542
18543         * lib/unistd.in.h (getlogin_r): Add comment.
18544
18545 2010-01-09  Bruno Haible  <bruno@clisp.org>
18546
18547         Tests for module 'getlogin_r'.
18548         * modules/getlogin_r-tests: New file.
18549         * tests/test-getlogin_r.c: New file.
18550
18551 2010-01-09  Jim Meyering  <meyering@redhat.com>
18552
18553         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
18554         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
18555         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
18556
18557 2010-01-08  Simon Josefsson  <simon@josefsson.org>
18558
18559         * lib/dup2.c (rpl_dup2): Improve comment.
18560
18561 2010-01-08  Eric Blake  <ebb9@byu.net>
18562
18563         maint.mk: allow packages to add makefile @@ exceptions
18564         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
18565         (sc_makefile_check): Rename...
18566         (sc_makefile_at_at_check): ...to this, and use hook.
18567
18568         dup2: work around mingw bug
18569         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
18570         Reported by Simon Josefsson.
18571
18572 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
18573
18574         glob: Fix C++ compilation.
18575         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
18576         C++.
18577
18578 2010-01-07  Bruno Haible  <bruno@clisp.org>
18579
18580         Fix indentation of wctype.in.h, broken since 2007-01-06.
18581         * lib/wctype.in.h: Fix indentation of preprocessor directives.
18582
18583 2010-01-07  Bruno Haible  <bruno@clisp.org>
18584
18585         mbslen: Avoid collision with system function.
18586         * lib/string.in.h [MirBSD]: Include <wchar.h>.
18587         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
18588         * m4/mbslen.m4: New file.
18589         * modules/mbslen (Files): Add it.
18590         (configure.ac): Invoke gl_MBSLEN.
18591         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
18592         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
18593         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
18594         via Ian Beckwith <ianb@erislabs.net>.
18595
18596 2010-01-07  Bruno Haible  <bruno@clisp.org>
18597
18598         dirent: Document the last fix.
18599         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
18600
18601 2010-01-07  Bruno Haible  <bruno@clisp.org>
18602
18603         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
18604         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
18605         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
18606         va_list are defined.
18607         * doc/posix-headers/stdio.texi: Document the bug of missing types.
18608         Reported by Eric Blake.
18609
18610 2010-01-07  Bruno Haible  <bruno@clisp.org>
18611
18612         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
18613         * modules/xlist (Depends-on): Add 'list',
18614         * modules/xoset (Depends-on): Add 'oset'.
18615         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18616
18617 2010-01-07  Bruno Haible  <bruno@clisp.org>
18618
18619         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
18620         * doc/posix-functions/strncasecmp.texi: Likewise.
18621
18622 2010-01-07  Bruno Haible  <bruno@clisp.org>
18623
18624         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
18625
18626 2010-01-07  John W. Eaton  <jwe@octave.org>
18627
18628         wctype: allow C++ use
18629         * lib/wctype.in.h: Add extern "C" block for C++.
18630
18631 2010-01-06  Eric Blake  <ebb9@byu.net>
18632
18633         maint.mk: detect incorrect GFDL usage
18634         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
18635
18636 2010-01-06  Jim Meyering  <meyering@redhat.com>
18637         and Eric Blake  <ebb9@byu.net>
18638
18639         maint.mk: ignore multi-line copyright in NEWS
18640         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
18641
18642 2010-01-06  Eric Blake  <ebb9@byu.net>
18643
18644         select: add missing dependency
18645         * modules/select-tests (Depends-on): Move sockets dependency...
18646         * modules/select (Depends-on): ...here.
18647         Reported by Ian Beckwith.
18648
18649         doc: regenerate INSTALL
18650         * doc/INSTALL: Reflect recent autoconf update.
18651         * doc/INSTALL.ISO: Likewise.
18652         * doc/INSTALL.UTF-8: Likewise.
18653
18654         pread: fix compilation on glibc
18655         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
18656         Reported by Ralf Wildenhues.
18657
18658         dirent: fix test failure
18659         * lib/dirent.in.h (includes): Guarantee ino_t.
18660         Reported by Ralf Wildenhues.
18661
18662 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
18663
18664         linkat, renameat: avoid bad free
18665         * lib/at-func2.c (at_func2): Fix typo.
18666         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
18667
18668 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18669
18670         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
18671         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
18672         to avoid failure of symlink test later.
18673
18674 2010-01-06  Eric Blake  <ebb9@byu.net>
18675
18676         stdio, unistd: guarantee ssize_t
18677         * lib/unistd.in.h (includes): Ensure that types required by POSIX
18678         2008 are exposed when needed.
18679         * lib/stdio.in.h (includes): Likewise.
18680         Reported by Ralf Wildenhues.
18681
18682 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
18683
18684         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
18685         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
18686         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
18687
18688 2010-01-06  Jim Meyering  <meyering@redhat.com>
18689
18690         readtokens: this module *does* require xalloc.h
18691         It uses only functions that were omitted by the old syntax-check rule.
18692         * lib/readtokens.c: Include "xalloc.h" once again.
18693         * modules/readtokens (Depends-on): Add xalloc.
18694         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
18695
18696 2010-01-05  Eric Blake  <ebb9@byu.net>
18697
18698         maint: support 'make announcement' from a VPATH build
18699         * top/maint.mk (announcement): Look for correct NEWS file.
18700
18701 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
18702
18703         utimens (fdutimens): ignore a negative FD, per contract
18704         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
18705         when we have a valid file descriptor.  Otherwise, using a brand
18706         new glibc (with just-patched futimens that now fails with EBADF)
18707         would cause this function to fail with ENOSYS.
18708         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
18709         See also http://bugzilla.redhat.com/552320.
18710
18711 2010-01-05  Eric Blake  <ebb9@byu.net>
18712
18713         strcase: document what it provides
18714         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
18715         gnulib module.
18716         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
18717         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
18718
18719 2010-01-05  Jim Meyering  <meyering@redhat.com>
18720
18721         maint: remove useless inclusions of "xalloc.h"
18722         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
18723         * lib/readtokens.c: Likewise.
18724         * lib/same.c: Likewise.
18725         * modules/getloadavg (Depends-on): Remove xalloc.
18726         * modules/readtokens: Likewise.
18727         * modules/same: Likewise.
18728
18729         maint.mk: include 4 more function names in alloca.h-checking regexp
18730         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
18731         regexp.  Before, we would give a false-positive (saying alloca.h
18732         is included unnecessarily) when the only uses involved omitted symbols.
18733
18734         xalloc.h: use consistent formatting
18735         * lib/xalloc.h: Move declarations to start in the first column.
18736
18737 2010-01-05  Eric Blake  <ebb9@byu.net>
18738
18739         mkdir: avoid xalloc
18740         * lib/mkdir.c (includes): Drop unused header.
18741         Reported by John W. Eaton.
18742
18743 2010-01-04  Jim Meyering  <meyering@redhat.com>
18744
18745         nl_langinfo: avoid configure-time syntax error
18746         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
18747         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
18748         the empty string.  Don't let that provoke a shell syntax error.
18749
18750         regcomp, regexec, fnmatch: avoid array bounds read error
18751         * lib/regcomp.c (build_equiv_class): From glibc:
18752         Use only the low 24 bits of a findidx return value as an index
18753         into the weights array.  Patch by Ulrich Drepper:
18754         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
18755         * lib/regexec.c (check_node_accept_bytes): Likewise.
18756         * lib/fnmatch_loop.c (FCT): Likewise.
18757
18758         regcomp: skip collseq lookup when there are no rules
18759         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
18760         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
18761
18762         regcomp: recognize ill-formed { } expressions
18763         * lib/regcomp.c (parse_dup_op): From glibc:
18764         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
18765
18766         regcomp: fix typo in comment
18767         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
18768         s/satisfy/satisfies/.
18769
18770         regcomp: sync from glibc: remove dead store
18771         * lib/regcomp.c (duplicate_node_closure): Remove useless
18772         search_duplicated_node call and dead store.
18773
18774         regcomp: sync from glibc; always use nl_langinfo
18775         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
18776         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
18777         * modules/regex (Depends-on): Add nl_langinfo.
18778
18779 2010-01-04  Eric Blake  <ebb9@byu.net>
18780
18781         fdopendir: fix configure test
18782         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
18783
18784 2010-01-01  Bruno Haible  <bruno@clisp.org>
18785
18786         wchar: Remove unused configure check.
18787         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
18788
18789 2010-01-01  Eric Blake  <ebb9@byu.net>
18790
18791         headers: make check of system header explicit
18792         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
18793         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
18794         ourselves.
18795         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18796         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18797         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
18798         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
18799         internals.
18800         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
18801         missing.
18802         Suggested by Bruno Haible.
18803
18804 2010-01-01  Jim Meyering  <meyering@redhat.com>
18805
18806         ChangeLog: tweak to eliminate unnecessary copyright line
18807         * ChangeLog: Remove a copyright line that was mistakenly updated
18808         by today's update-copyright run.  Reported by Eric Blake.
18809
18810         test-update-copyright: don't let envvar setting cause test failure
18811         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
18812
18813 2010-01-01  Bruno Haible  <bruno@clisp.org>
18814
18815         localename: Avoid gcc warning.
18816         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
18817         function if it is not used.
18818
18819 2010-01-01  Jim Meyering  <meyering@redhat.com>
18820
18821         update nearly all FSF copyright year lists to include 2010
18822         Use the same procedure as for 2009, outlined in
18823         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
18824
18825         version-etc: set COPYRIGHT_YEAR to 2010
18826         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
18827
18828 2009-12-31  Eric Blake  <ebb9@byu.net>
18829
18830         doc: correct availability of cygwin 1.5.x getopt
18831         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
18832         variables.
18833         * doc/posix-functions/opterr.texi (opterr): Likewise.
18834         * doc/posix-functions/optind.texi (optind): Likewise.
18835         * doc/posix-functions/optopt.texi (optopt): Likewise.
18836         * doc/posix-functions/tzname.texi (tzname): Likewise.
18837
18838         openat: update maintainer
18839         * modules/openat (Maintainer): Add myself.
18840
18841         utimens: avoid shadowing warning
18842         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
18843         buffers into one, to avoid shadowing, as well as avoiding a
18844         redundant stat.
18845         Reported by Jim Meyering.
18846
18847         test-dup2: avoid compiler warning
18848         * tests/test-dup2.c (is_inheritable): Only define if used.
18849
18850 2010-01-01  Bruno Haible  <bruno@clisp.org>
18851
18852         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
18853         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
18854         defined, use wctomb instead of wcrtomb.
18855
18856 2010-01-01  Bruno Haible  <bruno@clisp.org>
18857
18858         iconv: Reject native Solaris iconv.
18859         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
18860         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
18861
18862 2009-12-31  Bruno Haible  <bruno@clisp.org>
18863
18864         * tests/test-signal.c (main): Remove test of 'SIG'.
18865
18866 2009-12-31  Bruno Haible  <bruno@clisp.org>
18867
18868         spawn: Fix incomplete fix.
18869         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18870         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18871         warnings for GNULIB_POSIXCHECK again.
18872         Reported by Eric Blake.
18873
18874 2009-12-31  Bruno Haible  <bruno@clisp.org>
18875
18876         Avoid namespace pollution on glibc systems.
18877         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
18878         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
18879         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
18880         glibc systems.
18881
18882 2009-12-31  Bruno Haible  <bruno@clisp.org>
18883
18884         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
18885         (gl_REPLACE_WCHAR_H): Turn into a no-op.
18886         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
18887         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18888         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18889         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18890         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18891
18892 2009-12-31  Bruno Haible  <bruno@clisp.org>
18893
18894         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
18895         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
18896         afterwards.
18897
18898 2009-12-31  Bruno Haible  <bruno@clisp.org>
18899
18900         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
18901         SYS_UTSNAME_H.
18902
18903 2009-12-31  Bruno Haible  <bruno@clisp.org>
18904
18905         spawn: Fix misapplied patch.
18906         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
18907         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
18908         warnings for GNULIB_POSIXCHECK.
18909
18910 2009-12-31  Bruno Haible  <bruno@clisp.org>
18911
18912         times: Update after sys_times changed.
18913         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
18914         * modules/times (Files): Add it.
18915         (configure.ac): Invoke gl_FUNC_TIMES.
18916
18917 2009-12-31  Bruno Haible  <bruno@clisp.org>
18918
18919         Use AC_C_INLINE where necessary.
18920         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
18921         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18922         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
18923         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
18924         * m4/mbfile.m4 (gl_MBFILE): Likewise.
18925         * m4/mbiter.m4 (gl_MBITER): Likewise.
18926         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
18927         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18928         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
18929         * modules/u64 (configure.ac): Likewise.
18930
18931 2009-12-31  Bruno Haible  <bruno@clisp.org>
18932
18933         Use AC_C_INLINE instead of module 'inline' where possible.
18934         * modules/inline (Description): Clarify purpose.
18935         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
18936         * modules/count-one-bits (Depends-on): Remove inline.
18937         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
18938         * modules/openat (Depends-on): Remove inline.
18939         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
18940         instead of depending on module 'inline'.
18941         * modules/filevercmp (Depends-on, configure.ac): Likewise.
18942         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
18943         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
18944         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
18945         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
18946         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
18947         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
18948         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
18949         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
18950         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
18951         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
18952         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
18953         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
18954         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
18955         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
18956         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
18957         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
18958         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
18959         Likewise.
18960         * modules/unictype/property-ascii-hex-digit (Depends-on,
18961         configure.ac): Likewise.
18962         * modules/unictype/property-bidi-arabic-digit (Depends-on,
18963         configure.ac): Likewise.
18964         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
18965         configure.ac): Likewise.
18966         * modules/unictype/property-bidi-block-separator (Depends-on,
18967         configure.ac): Likewise.
18968         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
18969         configure.ac): Likewise.
18970         * modules/unictype/property-bidi-common-separator (Depends-on,
18971         configure.ac): Likewise.
18972         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
18973         Likewise.
18974         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
18975         configure.ac): Likewise.
18976         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
18977         configure.ac): Likewise.
18978         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
18979         configure.ac): Likewise.
18980         * modules/unictype/property-bidi-european-digit (Depends-on,
18981         configure.ac): Likewise.
18982         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
18983         configure.ac): Likewise.
18984         * modules/unictype/property-bidi-left-to-right (Depends-on,
18985         configure.ac): Likewise.
18986         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
18987         configure.ac): Likewise.
18988         * modules/unictype/property-bidi-other-neutral (Depends-on,
18989         configure.ac): Likewise.
18990         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
18991         Likewise.
18992         * modules/unictype/property-bidi-segment-separator (Depends-on,
18993         configure.ac): Likewise.
18994         * modules/unictype/property-bidi-whitespace (Depends-on,
18995         configure.ac): Likewise.
18996         * modules/unictype/property-combining (Depends-on, configure.ac):
18997         Likewise.
18998         * modules/unictype/property-composite (Depends-on, configure.ac):
18999         Likewise.
19000         * modules/unictype/property-currency-symbol (Depends-on,
19001         configure.ac): Likewise.
19002         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
19003         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
19004         Likewise.
19005         * modules/unictype/property-default-ignorable-code-point (Depends-on,
19006         configure.ac): Likewise.
19007         * modules/unictype/property-deprecated (Depends-on, configure.ac):
19008         Likewise.
19009         * modules/unictype/property-diacritic (Depends-on, configure.ac):
19010         Likewise.
19011         * modules/unictype/property-extender (Depends-on, configure.ac):
19012         Likewise.
19013         * modules/unictype/property-format-control (Depends-on, configure.ac):
19014         Likewise.
19015         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
19016         Likewise.
19017         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
19018         Likewise.
19019         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
19020         Likewise.
19021         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
19022         Likewise.
19023         * modules/unictype/property-hyphen (Depends-on, configure.ac):
19024         Likewise.
19025         * modules/unictype/property-id-continue (Depends-on, configure.ac):
19026         Likewise.
19027         * modules/unictype/property-id-start (Depends-on, configure.ac):
19028         Likewise.
19029         * modules/unictype/property-ideographic (Depends-on, configure.ac):
19030         Likewise.
19031         * modules/unictype/property-ids-binary-operator (Depends-on,
19032         configure.ac): Likewise.
19033         * modules/unictype/property-ids-trinary-operator (Depends-on,
19034         configure.ac): Likewise.
19035         * modules/unictype/property-ignorable-control (Depends-on,
19036         configure.ac): Likewise.
19037         * modules/unictype/property-iso-control (Depends-on, configure.ac):
19038         Likewise.
19039         * modules/unictype/property-join-control (Depends-on, configure.ac):
19040         Likewise.
19041         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
19042         Likewise.
19043         * modules/unictype/property-line-separator (Depends-on, configure.ac):
19044         Likewise.
19045         * modules/unictype/property-logical-order-exception (Depends-on,
19046         configure.ac): Likewise.
19047         * modules/unictype/property-lowercase (Depends-on, configure.ac):
19048         Likewise.
19049         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
19050         * modules/unictype/property-non-break (Depends-on, configure.ac):
19051         Likewise.
19052         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
19053         Likewise.
19054         * modules/unictype/property-numeric (Depends-on, configure.ac):
19055         Likewise.
19056         * modules/unictype/property-other-alphabetic (Depends-on,
19057         configure.ac): Likewise.
19058         * modules/unictype/property-other-default-ignorable-code-point
19059         (Depends-on, configure.ac): Likewise.
19060         * modules/unictype/property-other-grapheme-extend (Depends-on,
19061         configure.ac): Likewise.
19062         * modules/unictype/property-other-id-continue (Depends-on,
19063         configure.ac): Likewise.
19064         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
19065         Likewise.
19066         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
19067         Likewise.
19068         * modules/unictype/property-other-math (Depends-on, configure.ac):
19069         Likewise.
19070         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
19071         Likewise.
19072         * modules/unictype/property-paired-punctuation (Depends-on,
19073         configure.ac): Likewise.
19074         * modules/unictype/property-paragraph-separator (Depends-on,
19075         configure.ac): Likewise.
19076         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
19077         Likewise.
19078         * modules/unictype/property-pattern-white-space (Depends-on,
19079         configure.ac): Likewise.
19080         * modules/unictype/property-private-use (Depends-on, configure.ac):
19081         Likewise.
19082         * modules/unictype/property-punctuation (Depends-on, configure.ac):
19083         Likewise.
19084         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
19085         Likewise.
19086         * modules/unictype/property-radical (Depends-on, configure.ac):
19087         Likewise.
19088         * modules/unictype/property-sentence-terminal (Depends-on,
19089         configure.ac): Likewise.
19090         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
19091         Likewise.
19092         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
19093         * modules/unictype/property-terminal-punctuation (Depends-on,
19094         configure.ac): Likewise.
19095         * modules/unictype/property-titlecase (Depends-on, configure.ac):
19096         Likewise.
19097         * modules/unictype/property-unassigned-code-value (Depends-on,
19098         configure.ac): Likewise.
19099         * modules/unictype/property-unified-ideograph (Depends-on,
19100         configure.ac): Likewise.
19101         * modules/unictype/property-uppercase (Depends-on, configure.ac):
19102         Likewise.
19103         * modules/unictype/property-variation-selector (Depends-on,
19104         configure.ac): Likewise.
19105         * modules/unictype/property-white-space (Depends-on, configure.ac):
19106         Likewise.
19107         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
19108         Likewise.
19109         * modules/unictype/property-xid-start (Depends-on, configure.ac):
19110         Likewise.
19111         * modules/unictype/property-zero-width (Depends-on, configure.ac):
19112         Likewise.
19113         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
19114         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
19115         Likewise.
19116
19117 2009-12-31  Bruno Haible  <bruno@clisp.org>
19118
19119         Remove unnecessary AC_C_INLINE invocation.
19120         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
19121         since 2009-08-21.
19122
19123 2009-12-31  Jim Meyering  <meyering@redhat.com>
19124
19125         maint.mk: don't require explicit gpg_key_ID in cfg.mk
19126         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
19127         With this change, we can all remove the gpg_key_ID = ... definition
19128         from our respective cfg.mk files.
19129
19130         maint.mk: create announcement template in ~/, not in /tmp
19131         * top/maint.mk (emit_upload_commands): Adjust.
19132         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
19133         Remove temporary file, .ci-msg.
19134
19135 2009-12-31  Eric Blake  <ebb9@byu.net>
19136
19137         link-warning: always build headers with link warnings
19138         * modules/arpa_inet (Makefile.am): Always build replacement
19139         header.
19140         * modules/ctype (Makefile.am): Likewise.
19141         * modules/dirent (Makefile.am): Likewise.
19142         * modules/inttypes (Makefile.am): Likewise.
19143         * modules/langinfo (Makefile.am): Likewise.
19144         * modules/locale (Makefile.am): Likewise.
19145         * modules/spawn (Makefile.am): Likewise.
19146         * modules/sys_file (Makefile.am): Likewise.
19147         * modules/sys_ioctl (Makefile.am): Likewise.
19148         * modules/sys_select (Makefile.am): Likewise.
19149         * modules/sys_socket (Makefile.am): Likewise.
19150         * modules/sys_times (Makefile.am): Likewise.
19151         * modules/sys_utsname (Makefile.am): Likewise.
19152         * modules/sys_wait (Makefile.am): Likewise.
19153         * modules/wchar (Makefile.am): Likewise.
19154         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
19155         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
19156         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
19157         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
19158         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
19159         Likewise.
19160         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19161         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
19162         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
19163         Likewise.
19164         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
19165         Likewise.
19166         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19167         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
19168         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
19169         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19170         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19171         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19172         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19173         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
19174         (gl_WCHAR_H_DEFAULTS): Likewise.
19175
19176 2009-12-31  Eric Blake  <ebb9@byu.net>
19177
19178         signal, spawn: use link warnings
19179         * lib/signal.in.h (sigset_t): Make unconditional.
19180         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
19181         (sigpending, sigprocmask, sigaction): Add link warnings.
19182         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
19183         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
19184         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
19185         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
19186         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
19187         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
19188         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
19189         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
19190         (posix_spawn_file_actions_destroy)
19191         (posix_spawn_file_actions_addopen)
19192         (posix_spawn_file_actions_addclose)
19193         (posix_spawn_file_actions_adddup2): Likewise.
19194         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
19195         * tests/test-signal.c (main): Enhance test.
19196
19197         spawn: improve wrapper support
19198         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
19199         (gl_SPAWN_H_DEFAULTS): New defaults.
19200         * modules/spawn (Makefile.am): Substitute them.
19201         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
19202         Only declare if missing or broken.
19203
19204         sys_times, sys_utsname: use include_next
19205         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
19206         header.
19207         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
19208         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
19209         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
19210         * modules/sys_times (Depends-on): Add include_next.
19211         (Makefile.am): Substitute additional values.
19212         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
19213         * lib/sys_times.in.h (includes): Include native header, if
19214         available.
19215         * lib/sys_utsname.in.h (includes): Likewise.
19216         * tests/test-sys_times.c (main): Enhance test.
19217
19218         fdutimensat: revert prior patch
19219         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
19220         utimens.h.
19221         Reported by Bruno Haible.
19222
19223 2009-12-30  Eric Blake  <ebb9@byu.net>
19224
19225         sys_wait: drop link-warning dependency
19226         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
19227         link-warning efforts.
19228         * lib/sys_wait.in.h: Likewise.
19229
19230         fdutimensat: remove bogus dependency
19231         * modules/fdutimensat (Depends-on): Drop inline.
19232
19233         unistd: fix typo
19234         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
19235
19236 2009-12-30  Bruno Haible  <bruno@clisp.org>
19237
19238         Fix compilation error with Solaris cc.
19239         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
19240         * lib/unicase/u16-is-invariant.c: Likewise.
19241         * lib/unicase/u32-is-invariant.c: Likewise.
19242         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19243
19244 2009-12-30  Bruno Haible  <bruno@clisp.org>
19245
19246         Fix test crash.
19247         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
19248         locales.
19249         Reported by Simon Josefsson <simon@josefsson.org>.
19250
19251 2009-12-30  Bruno Haible  <bruno@clisp.org>
19252
19253         Fix compilation error on most platforms.
19254         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
19255         Reported by Simon Josefsson <simon@josefsson.org>
19256         and Nelson H. F. Beebe <beebe@math.utah.edu>.
19257
19258 2009-12-30  Eric Blake  <ebb9@byu.net>
19259
19260         futimens, utimensat: work around ntfs-3g bug
19261         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
19262         a ctime bug is present, and expand workaround to cover ntfs-3g.
19263         * lib/utimens.c (fdutimens, lutimens): Likewise.
19264         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
19265         (validate_timespec): Adjust return value.
19266         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
19267         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19268         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
19269
19270 2009-12-29  Eric Blake  <ebb9@byu.net>
19271
19272         link-warning: make usage consistent
19273         * modules/ctype (Depends-on): Add link-warning.
19274         (Makefile.am): Update rules accordingly.
19275         * modules/langinfo (Depends-on, Makefile.am): Likewise.
19276         * modules/locale (Depends-on, Makefile.am): Likewise.
19277         * modules/sys_file (Makefile.am): Likewise.
19278         * modules/getopt-posix (Makefile.am): Delete unused link warning
19279         efforts.
19280         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
19281         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
19282         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
19283         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
19284
19285         stdio: remove unused variables
19286         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
19287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
19288         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
19289
19290         tests: test more substitute headers
19291         * modules/ctype-tests: New file.
19292         * modules/dirent-tests: Likewise.
19293         * modules/spawn-tests: Likewise.
19294         * modules/sys_file-tests: Likewise.
19295         * modules/sys_ioctl-tests: Likewise.
19296         * modules/sys_wait-tests: Likewise.
19297         * tests/test-ctype.c: Likewise.
19298         * tests/test-dirent.c: Likewise.
19299         * tests/test-spawn.c: Likewise.
19300         * tests/test-sys_file.c: Likewise.
19301         * tests/test-sys_ioctl.c: Likewise.
19302         * tests/test-sys_wait.c: Likewise.
19303         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
19304         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
19305         whether or not flock is in use.
19306
19307         tests: remove License section from module
19308         * modules/arpa_inet-tests: Remove unneeded section.
19309         * modules/byteswap-tests: Likewise.
19310         * modules/ceilf-tests: Likewise.
19311         * modules/ceill-tests: Likewise.
19312         * modules/crypto/des-tests: Likewise.
19313         * modules/crypto/gc-arcfour-tests: Likewise.
19314         * modules/crypto/gc-arctwo-tests: Likewise.
19315         * modules/crypto/gc-des-tests: Likewise.
19316         * modules/crypto/gc-hmac-md5-tests: Likewise.
19317         * modules/crypto/gc-hmac-sha1-tests: Likewise.
19318         * modules/crypto/gc-md2-tests: Likewise.
19319         * modules/crypto/gc-md4-tests: Likewise.
19320         * modules/crypto/gc-md5-tests: Likewise.
19321         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
19322         * modules/crypto/gc-rijndael-tests: Likewise.
19323         * modules/crypto/gc-sha1-tests: Likewise.
19324         * modules/crypto/gc-tests: Likewise.
19325         * modules/crypto/md2-tests: Likewise.
19326         * modules/crypto/md4-tests: Likewise.
19327         * modules/fcntl-h-tests: Likewise.
19328         * modules/floorf-tests: Likewise.
19329         * modules/floorl-tests: Likewise.
19330         * modules/frexp-nolibm-tests: Likewise.
19331         * modules/frexp-tests: Likewise.
19332         * modules/frexpl-nolibm-tests: Likewise.
19333         * modules/frexpl-tests: Likewise.
19334         * modules/getaddrinfo-tests: Likewise.
19335         * modules/inttypes-tests: Likewise.
19336         * modules/isfinite-tests: Likewise.
19337         * modules/isinf-tests: Likewise.
19338         * modules/ldexpl-tests: Likewise.
19339         * modules/locale-tests: Likewise.
19340         * modules/math-tests: Likewise.
19341         * modules/netdb-tests: Likewise.
19342         * modules/netinet_in-tests: Likewise.
19343         * modules/printf-frexp-tests: Likewise.
19344         * modules/printf-frexpl-tests: Likewise.
19345         * modules/priv-set-tests: Likewise.
19346         * modules/random_r-tests: Likewise.
19347         * modules/round-tests: Likewise.
19348         * modules/roundf-tests: Likewise.
19349         * modules/roundl-tests: Likewise.
19350         * modules/search-tests: Likewise.
19351         * modules/select-tests: Likewise.
19352         * modules/signal-tests: Likewise.
19353         * modules/stdbool-tests: Likewise.
19354         * modules/stddef-tests: Likewise.
19355         * modules/stdint-tests: Likewise.
19356         * modules/stdio-tests: Likewise.
19357         * modules/stdlib-tests: Likewise.
19358         * modules/string-tests: Likewise.
19359         * modules/strings-tests: Likewise.
19360         * modules/sys_select-tests: Likewise.
19361         * modules/sys_socket-tests: Likewise.
19362         * modules/sys_stat-tests: Likewise.
19363         * modules/sys_time-tests: Likewise.
19364         * modules/sys_utsname-tests: Likewise.
19365         * modules/sysexits-tests: Likewise.
19366         * modules/time-tests: Likewise.
19367         * modules/trunc-tests: Likewise.
19368         * modules/truncf-tests: Likewise.
19369         * modules/truncl-tests: Likewise.
19370         * modules/tsearch-tests: Likewise.
19371         * modules/unistd-tests: Likewise.
19372         * modules/wchar-tests: Likewise.
19373         * modules/wctype-tests: Likewise.
19374
19375         tests: fix license on several tests
19376         * tests/test-des.c: Update to GPLv3+.
19377         * tests/test-flock.c: Likewise.
19378         * tests/test-fsync.c: Likewise.
19379         * tests/test-futimens.h: Likewise.
19380         * tests/test-gc-arcfour.c: Likewise.
19381         * tests/test-gc-arctwo.c: Likewise.
19382         * tests/test-gc-des.c: Likewise.
19383         * tests/test-gc-hmac-md5.c: Likewise.
19384         * tests/test-gc-hmac-sha1.c: Likewise.
19385         * tests/test-gc-md2.c: Likewise.
19386         * tests/test-gc-md4.c: Likewise.
19387         * tests/test-gc-md5.c: Likewise.
19388         * tests/test-gc-pbkdf2-sha1.c: Likewise.
19389         * tests/test-gc-rijndael.c: Likewise.
19390         * tests/test-gc-sha1.c: Likewise.
19391         * tests/test-gc.c: Likewise.
19392         * tests/test-getcwd.c: Likewise.
19393         * tests/test-link.c: Likewise.
19394         * tests/test-link.h: Likewise.
19395         * tests/test-lutimens.h: Likewise.
19396         * tests/test-md2.c: Likewise.
19397         * tests/test-md4.c: Likewise.
19398         * tests/test-mkdir.h: Likewise.
19399         * tests/test-rename.c: Likewise.
19400         * tests/test-rename.h: Likewise.
19401         * tests/test-safe-alloc.c: Likewise.
19402         * tests/test-utimens-common.h: Likewise.
19403         * tests/test-utimens.h: Likewise.
19404
19405         maint: sync license texts
19406         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
19407         * doc/gpl-3.0.texi: Revert copyright year update.
19408         * doc/lgpl-3.0.texi: Likewise.
19409
19410 2009-12-29  Jim Meyering  <meyering@redhat.com>
19411
19412         update nearly all FSF copyright year lists to include 2009
19413         The files named by the following are exempted:
19414             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
19415               test -f "$dst" && { echo "$dst"; continue; }
19416               test -d "$dst" || continue
19417               echo "$dst"/$(basename "$src")
19418             done > exempt
19419             git ls-files tests/unictype >> exempt
19420         In the remaining files, convert to all-interval notation if
19421         - there is already at least one year interval like 2000-2003
19422         - the file is maintained by me
19423         - the file is in lib/uni*/, where that style already prevails
19424         Otherwise, use update-copyright's default.
19425
19426 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19427         and Eric Blake  <ebb9@byu.net>
19428
19429         tests: don't require debug system() to pass
19430         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
19431         * tests/test-rmdir.h (test_rmdir_func): Likewise.
19432         * tests/test-unlink.h (test_unlink_func): Likewise.
19433         * tests/test-fstatat.c (main): ...into callers.
19434         * tests/test-lstat.c (main): Likewise.
19435         * tests/test-rmdir.c (main): Likewise.
19436         * tests/test-unlink.c (main): Likewise.
19437         * tests/test-unlinkat.c (main): Likewise.
19438         * tests/test-areadlink-with-size.c (main): Don't require a
19439         debug-only system call to pass, aiding cross-testing to mingw.
19440         * tests/test-areadlink.c (main): Likewise.
19441         * tests/test-areadlinkat-with-size.c (main): Likewise.
19442         * tests/test-areadlinkat.c (main): Likewise.
19443         * tests/test-canonicalize-lgpl.c (main): Likewise.
19444         * tests/test-canonicalize.c (main): Likewise.
19445         * tests/test-chown.c (main): Likewise.
19446         * tests/test-fchownat.c (main): Likewise.
19447         * tests/test-lchown.c (main): Likewise.
19448         * tests/test-fdutimensat.c (main): Likewise.
19449         * tests/test-futimens.c (main): Likewise.
19450         * tests/test-link.c (main): Likewise.
19451         * tests/test-linkat.c (main): Likewise.
19452         * tests/test-mkdir.c (main): Likewise.
19453         * tests/test-mkdirat.c (main): Likewise.
19454         * tests/test-mkfifo.c (main): Likewise.
19455         * tests/test-mkfifoat.c (main): Likewise.
19456         * tests/test-mknod.c (main): Likewise.
19457         * tests/test-readlink.c (main): Likewise.
19458         * tests/test-remove.c (main): Likewise.
19459         * tests/test-rename.c (main): Likewise.
19460         * tests/test-renameat.c (main): Likewise.
19461         * tests/test-symlink.c (main): Likewise.
19462         * tests/test-symlinkat.c (main): Likewise.
19463         * tests/test-utimens.c (main): Likewise.
19464         * tests/test-utimensat.c (main): Likewise.
19465
19466 2009-12-29  Simon Josefsson  <simon@josefsson.org>
19467
19468         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
19469         on $(UNUSED_PARAMETER_H) to avoid build failure.
19470
19471 2009-12-28  Jim Meyering  <meyering@redhat.com>
19472
19473         update-copyright: you may specify a max. line length other than 72
19474         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
19475
19476         maint: use consistent FSF copyright line syntax
19477         * lib/posixtm.c: Add missing comma in FSF copyright line.
19478         * lib/posixtm.h: Likewise.
19479         * lib/getugroups.c: Add missing ", Inc.".
19480
19481         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
19482         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
19483         FSF copyright line.  Remove trailing blanks.
19484
19485 2009-12-28  Eric Blake  <ebb9@byu.net>
19486
19487         test-dup2: reduce dependencies
19488         * modules/cloexec (Configure.ac): Set witness.
19489         * modules/dup2-tests (Depends-on): Drop cloexec.
19490         * tests/test-dup2.c (main): Skip portion of test if cloexec module
19491         not present.
19492         Suggested by Bruno Haible.
19493
19494 2009-12-26  Bruno Haible  <bruno@clisp.org>
19495
19496         Remove an unneeded dependency.
19497         * modules/fseterr (Depends-on): Remove dup2.
19498
19499 2009-12-26  Eric Blake  <ebb9@byu.net>
19500
19501         tests: use macros.h in more places
19502         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
19503         (ASSERT_STREAM): Provide default of stderr.
19504         * tests/test-dirent-safer.c: Include macros.h, using alternate
19505         stream for assertions.
19506         * tests/test-dup-safer.c: Likewise.
19507         * tests/test-freopen-safer.c: Likewise.
19508         * tests/test-getopt.c: Likewise.
19509         * tests/test-openat-safer.c: Likewise.
19510         * tests/test-pipe.c: Likewise.
19511         * tests/test-popen-safer.c: Likewise.
19512         * modules/dirent-safer-tests (Files): Include macros.h.
19513         * modules/unistd-safer-tests (Files): Likewise.
19514         * modules/freopen-safer-tests (Files): Likewise.
19515         * modules/getopt-posix-tests (Files): Likewise.
19516         * modules/openat-safer-tests (Files): Likewise.
19517         * modules/pipe-tests (Files): Likewise.
19518
19519 2009-12-26  Bruno Haible  <bruno@clisp.org>
19520
19521         javacomp: Portability fix.
19522         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
19523         that it also works on Solaris.
19524
19525 2009-12-26  Bruno Haible  <bruno@clisp.org>
19526
19527         localename: Fix storage allocation of gl_locale_name_thread's result.
19528         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
19529         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
19530         all platforms that have 'uselocale'.
19531         (gl_locale_name_thread_unsafe): New function, extracted from
19532         gl_locale_name_thread.
19533         (gl_locale_name_thread): Call struniq on all platforms that have
19534         'uselocale'.
19535         * tests/test-localename.c (test_locale_name_thread): Check that the
19536         resulting strings are permanently allocated.
19537         * modules/localename-tests (Depends-on): Add strdup.
19538
19539 2009-12-26  Bruno Haible  <bruno@clisp.org>
19540
19541         * tests/test-localename.c (categories): Fill in the strings.
19542
19543 2009-12-26  Jim Meyering  <meyering@redhat.com>
19544
19545         isdir: complete the removal of m4/isdir.m4
19546         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
19547
19548         isdir: clean up, since at least grep still uses it
19549         * lib/isdir.c: Include "isdir.h".
19550         (S_ISDIR): Remove now-unneeded definition.
19551         * modules/isdir (Files): Add lib/isdir.h.
19552         * lib/isdir.h: New file, with declaration.
19553         * m4/isdir.m4: Remove file -- unneeded.
19554
19555 2009-12-25  Bruno Haible  <bruno@clisp.org>
19556
19557         selinux-h: Make generated .h files standalone.
19558         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
19559         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
19560         * lib/se-selinux.in.h: Likewise.
19561         * modules/selinux-h (Depends-on): Add unused-parameter.
19562         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
19563         selinux/selinux.h and selinux/context.h.
19564         Suggested by Eric Blake.
19565
19566 2009-12-25  Bruno Haible  <bruno@clisp.org>
19567
19568         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
19569         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
19570         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
19571         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
19572         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
19573
19574 2009-12-24  Bruno Haible  <bruno@clisp.org>
19575
19576         openat: Fix warning.
19577         * lib/openat-proc.c: Include <unistd.h>.
19578
19579 2009-12-24  Bruno Haible  <bruno@clisp.org>
19580
19581         New module 'unused-parameter'.
19582         * build-aux/unused-parameter.h: New file, extracted from earlier
19583         gnulib-common.m4.
19584         * modules/unused-parameter: New file.
19585         * lib/unistr.h: Include unused-parameter.h.
19586         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
19587         _GL_UNUSED.
19588         * modules/unistr/base (Depends-on): Add unused-parameter.
19589
19590 2009-12-24  Bruno Haible  <bruno@clisp.org>
19591
19592         Add missing dependencies to 'extensions' module.
19593         * m4/extensions.m4: Add comment.
19594         * modules/accept4 (Depends-on): Add extensions.
19595         * modules/dup3 (Depends-on): Likewise.
19596         * modules/fcntl (Depends-on): Likewise.
19597         * modules/futimens (Depends-on): Likewise.
19598         * modules/mknod (Depends-on): Likewise.
19599         * modules/pipe2 (Depends-on): Likewise.
19600         * modules/stat-time (Depends-on): Likewise.
19601         * modules/strcasestr-simple (Depends-on): Likewise.
19602         * modules/strsignal (Depends-on): Likewise.
19603         * modules/utimensat (Depends-on): Likewise.
19604         * modules/localcharset (Depends-on): Likewise. Needed because of
19605         gl_FCNTL_O_FLAGS.
19606         * modules/wcrtomb (Depends-on): Likewise. Needed because of
19607         AC_TYPE_MBSTATE_T.
19608         * modules/wcsnrtombs (Depends-on): Likewise.
19609         * modules/wcsrtombs (Depends-on): Likewise.
19610
19611 2009-12-24  Bruno Haible  <bruno@clisp.org>
19612
19613         binary-io: Avoid gcc warning due to SET_BINARY.
19614         * lib/binary-io.h (SET_BINARY): Cast the result to void.
19615         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
19616
19617 2009-12-24  Bruno Haible  <bruno@clisp.org>
19618
19619         Avoid future namespace pollution on glibc systems.
19620         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
19621         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
19622         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
19623         glibc systems.
19624
19625 2009-12-24  Bruno Haible  <bruno@clisp.org>
19626
19627         Refactor common macros used in tests.
19628         * tests/macros.h: New file.
19629         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
19630         and/or <stdlib.h>, if appropriate.
19631         (ASSERT, SIZEOF): Remove macros.
19632         * tests/test-areadlink-with-size.c: Likewise.
19633         * tests/test-areadlinkat.c: Likewise.
19634         * tests/test-areadlinkat-with-size.c: Likewise.
19635         * tests/test-argmatch.c: Likewise.
19636         * tests/test-argv-iter.c: Likewise.
19637         * tests/test-array-mergesort.c: Likewise.
19638         * tests/test-array_list.c: Likewise.
19639         * tests/test-array_oset.c: Likewise.
19640         * tests/test-avltree_list.c: Likewise.
19641         * tests/test-avltree_oset.c: Likewise.
19642         * tests/test-avltreehash_list.c: Likewise.
19643         * tests/test-base64.c: Likewise.
19644         * tests/test-binary-io.c: Likewise.
19645         * tests/test-bitrotate.c: Likewise.
19646         * tests/test-btowc.c: Likewise.
19647         * tests/test-byteswap.c: Likewise.
19648         * tests/test-c-ctype.c: Likewise.
19649         * tests/test-c-stack.c: Likewise.
19650         * tests/test-c-strcasecmp.c: Likewise.
19651         * tests/test-c-strcasestr.c: Likewise.
19652         * tests/test-c-strncasecmp.c: Likewise.
19653         * tests/test-c-strstr.c: Likewise.
19654         * tests/test-canonicalize-lgpl.c: Likewise.
19655         * tests/test-canonicalize.c: Likewise.
19656         * tests/test-carray_list.c: Likewise.
19657         * tests/test-ceilf1.c: Likewise.
19658         * tests/test-ceilf2.c: Likewise.
19659         * tests/test-ceill.c: Likewise.
19660         * tests/test-chown.c: Likewise.
19661         * tests/test-cloexec.c: Likewise.
19662         * tests/test-copy-acl.c: Likewise.
19663         * tests/test-copy-file.c: Likewise.
19664         * tests/test-count-one-bits.c: Likewise.
19665         * tests/test-dprintf-posix.c: Likewise.
19666         * tests/test-dup2.c: Likewise.
19667         * tests/test-dup3.c: Likewise.
19668         * tests/test-duplocale.c: Likewise.
19669         * tests/test-fbufmode.c: Likewise.
19670         * tests/test-fchdir.c: Likewise.
19671         * tests/test-fchownat.c: Likewise.
19672         * tests/test-fcntl-safer.c: Likewise.
19673         * tests/test-fcntl.c: Likewise.
19674         * tests/test-fdopendir.c: Likewise.
19675         * tests/test-fdutimensat.c: Likewise.
19676         * tests/test-fflush2.c: Likewise.
19677         * tests/test-file-has-acl.c: Likewise.
19678         * tests/test-filevercmp.c: Likewise.
19679         * tests/test-flock.c: Likewise.
19680         * tests/test-floorf1.c: Likewise.
19681         * tests/test-floorf2.c: Likewise.
19682         * tests/test-floorl.c: Likewise.
19683         * tests/test-fnmatch.c: Likewise.
19684         * tests/test-fopen.h: Likewise.
19685         * tests/test-fpending.c: Likewise.
19686         * tests/test-fprintf-posix.c: Likewise.
19687         * tests/test-fpurge.c: Likewise.
19688         * tests/test-freadable.c: Likewise.
19689         * tests/test-freadahead.c: Likewise.
19690         * tests/test-freading.c: Likewise.
19691         * tests/test-freadptr.c: Likewise.
19692         * tests/test-freadptr2.c: Likewise.
19693         * tests/test-freadseek.c: Likewise.
19694         * tests/test-freopen.c: Likewise.
19695         * tests/test-frexp.c: Likewise.
19696         * tests/test-frexpl.c: Likewise.
19697         * tests/test-fseek.c: Likewise.
19698         * tests/test-fseeko.c: Likewise.
19699         * tests/test-fstatat.c: Likewise.
19700         * tests/test-fstrcmp.c: Likewise.
19701         * tests/test-fsync.c: Likewise.
19702         * tests/test-ftell.c: Likewise.
19703         * tests/test-ftello.c: Likewise.
19704         * tests/test-func.c: Likewise.
19705         * tests/test-futimens.c: Likewise.
19706         * tests/test-fwritable.c: Likewise.
19707         * tests/test-fwriting.c: Likewise.
19708         * tests/test-getcwd.c: Likewise.
19709         * tests/test-getdate.c: Likewise.
19710         * tests/test-getdelim.c: Likewise.
19711         * tests/test-getdtablesize.c: Likewise.
19712         * tests/test-getgroups.c: Likewise.
19713         * tests/test-getline.c: Likewise.
19714         * tests/test-getndelim2.c: Likewise.
19715         * tests/test-glob.c: Likewise.
19716         * tests/test-hash.c: Likewise.
19717         * tests/test-i-ring.c: Likewise.
19718         * tests/test-iconv-utf.c: Likewise.
19719         * tests/test-iconv.c: Likewise.
19720         * tests/test-idpriv-drop.c: Likewise.
19721         * tests/test-idpriv-droptemp.c: Likewise.
19722         * tests/test-inet_ntop.c: Likewise.
19723         * tests/test-inet_pton.c: Likewise.
19724         * tests/test-isblank.c: Likewise.
19725         * tests/test-isfinite.c: Likewise.
19726         * tests/test-isinf.c: Likewise.
19727         * tests/test-isnan.c: Likewise.
19728         * tests/test-isnand.h: Likewise.
19729         * tests/test-isnanf.h: Likewise.
19730         * tests/test-isnanl.h: Likewise.
19731         * tests/test-lchown.c: Likewise.
19732         * tests/test-ldexpl.c: Likewise.
19733         * tests/test-link.c: Likewise.
19734         * tests/test-linkat.c: Likewise.
19735         * tests/test-linked_list.c: Likewise.
19736         * tests/test-linkedhash_list.c: Likewise.
19737         * tests/test-localename.c: Likewise.
19738         * tests/test-lseek.c: Likewise.
19739         * tests/test-lstat.c: Likewise.
19740         * tests/test-mbmemcasecmp.c: Likewise.
19741         * tests/test-mbmemcasecoll.c: Likewise.
19742         * tests/test-mbrtowc.c: Likewise.
19743         * tests/test-mbscasecmp.c: Likewise.
19744         * tests/test-mbscasestr1.c: Likewise.
19745         * tests/test-mbscasestr2.c: Likewise.
19746         * tests/test-mbscasestr3.c: Likewise.
19747         * tests/test-mbscasestr4.c: Likewise.
19748         * tests/test-mbschr.c: Likewise.
19749         * tests/test-mbscspn.c: Likewise.
19750         * tests/test-mbsinit.c: Likewise.
19751         * tests/test-mbsncasecmp.c: Likewise.
19752         * tests/test-mbsnrtowcs.c: Likewise.
19753         * tests/test-mbspbrk.c: Likewise.
19754         * tests/test-mbspcasecmp.c: Likewise.
19755         * tests/test-mbsrchr.c: Likewise.
19756         * tests/test-mbsrtowcs.c: Likewise.
19757         * tests/test-mbsspn.c: Likewise.
19758         * tests/test-mbsstr1.c: Likewise.
19759         * tests/test-mbsstr2.c: Likewise.
19760         * tests/test-mbsstr3.c: Likewise.
19761         * tests/test-memchr.c: Likewise.
19762         * tests/test-memchr2.c: Likewise.
19763         * tests/test-memcmp.c: Likewise.
19764         * tests/test-memmem.c: Likewise.
19765         * tests/test-memrchr.c: Likewise.
19766         * tests/test-mkdir.c: Likewise.
19767         * tests/test-mkdirat.c: Likewise.
19768         * tests/test-mkfifo.c: Likewise.
19769         * tests/test-mkfifoat.c: Likewise.
19770         * tests/test-mknod.c: Likewise.
19771         * tests/test-nanosleep.c: Likewise.
19772         * tests/test-nl_langinfo.c: Likewise.
19773         * tests/test-obstack-printf.c: Likewise.
19774         * tests/test-open.c: Likewise.
19775         * tests/test-openat.c: Likewise.
19776         * tests/test-pipe-filter-gi1.c: Likewise.
19777         * tests/test-pipe-filter-gi2-main.c: Likewise.
19778         * tests/test-pipe-filter-ii1.c: Likewise.
19779         * tests/test-pipe-filter-ii2-main.c: Likewise.
19780         * tests/test-pipe2.c: Likewise.
19781         * tests/test-popen.h: Likewise.
19782         * tests/test-posixtm.c: Likewise.
19783         * tests/test-pread.c: Likewise.
19784         * tests/test-printf-frexp.c: Likewise.
19785         * tests/test-printf-frexpl.c: Likewise.
19786         * tests/test-printf-posix.c: Likewise.
19787         * tests/test-priv-set.c: Likewise.
19788         * tests/test-quotearg.c: Likewise.
19789         * tests/test-random_r.c: Likewise.
19790         * tests/test-rawmemchr.c: Likewise.
19791         * tests/test-rbtree_list.c: Likewise.
19792         * tests/test-rbtree_oset.c: Likewise.
19793         * tests/test-rbtreehash_list.c: Likewise.
19794         * tests/test-readlink.c: Likewise.
19795         * tests/test-remove.c: Likewise.
19796         * tests/test-rename.c: Likewise.
19797         * tests/test-renameat.c: Likewise.
19798         * tests/test-rmdir.c: Likewise.
19799         * tests/test-round1.c: Likewise.
19800         * tests/test-roundf1.c: Likewise.
19801         * tests/test-roundl.c: Likewise.
19802         * tests/test-safe-alloc.c: Likewise.
19803         * tests/test-sameacls.c: Likewise.
19804         * tests/test-set-mode-acl.c: Likewise.
19805         * tests/test-setenv.c: Likewise.
19806         * tests/test-sigaction.c: Likewise.
19807         * tests/test-signbit.c: Likewise.
19808         * tests/test-sleep.c: Likewise.
19809         * tests/test-snprintf-posix.c: Likewise.
19810         * tests/test-snprintf.c: Likewise.
19811         * tests/test-sprintf-posix.c: Likewise.
19812         * tests/test-stat-time.c: Likewise.
19813         * tests/test-stat.c: Likewise.
19814         * tests/test-strcasestr.c: Likewise.
19815         * tests/test-strchrnul.c: Likewise.
19816         * tests/test-strerror.c: Likewise.
19817         * tests/test-striconv.c: Likewise.
19818         * tests/test-striconveh.c: Likewise.
19819         * tests/test-striconveha.c: Likewise.
19820         * tests/test-strsignal.c: Likewise.
19821         * tests/test-strstr.c: Likewise.
19822         * tests/test-strtod.c: Likewise.
19823         * tests/test-strverscmp.c: Likewise.
19824         * tests/test-symlink.c: Likewise.
19825         * tests/test-symlinkat.c: Likewise.
19826         * tests/test-trunc1.c: Likewise.
19827         * tests/test-trunc2.c: Likewise.
19828         * tests/test-truncf1.c: Likewise.
19829         * tests/test-truncf2.c: Likewise.
19830         * tests/test-truncl.c: Likewise.
19831         * tests/test-uname.c: Likewise.
19832         * tests/test-unlink.c: Likewise.
19833         * tests/test-unlinkat.c: Likewise.
19834         * tests/test-unsetenv.c: Likewise.
19835         * tests/test-usleep.c: Likewise.
19836         * tests/test-utimens.c: Likewise.
19837         * tests/test-utimensat.c: Likewise.
19838         * tests/test-vasnprintf-posix.c: Likewise.
19839         * tests/test-vasnprintf-posix2.c: Likewise.
19840         * tests/test-vasnprintf.c: Likewise.
19841         * tests/test-vasprintf-posix.c: Likewise.
19842         * tests/test-vasprintf.c: Likewise.
19843         * tests/test-vdprintf-posix.c: Likewise.
19844         * tests/test-vfprintf-posix.c: Likewise.
19845         * tests/test-vprintf-posix.c: Likewise.
19846         * tests/test-vsnprintf-posix.c: Likewise.
19847         * tests/test-vsnprintf.c: Likewise.
19848         * tests/test-vsprintf-posix.c: Likewise.
19849         * tests/test-wcrtomb.c: Likewise.
19850         * tests/test-wcsnrtombs.c: Likewise.
19851         * tests/test-wcsrtombs.c: Likewise.
19852         * tests/test-wctype.c: Likewise.
19853         * tests/test-wcwidth.c: Likewise.
19854         * tests/test-xfprintf-posix.c: Likewise.
19855         * tests/test-xmemdup0.c: Likewise.
19856         * tests/test-xprintf-posix.c: Likewise.
19857         * tests/test-xvasprintf.c: Likewise.
19858         * tests/unicase/test-locale-language.c: Likewise.
19859         * tests/unicase/test-mapping-part1.h: Likewise.
19860         * tests/unicase/test-predicate-part1.h: Likewise.
19861         * tests/unicase/test-u8-casecmp.c: Likewise.
19862         * tests/unicase/test-u8-casecoll.c: Likewise.
19863         * tests/unicase/test-u8-casefold.c: Likewise.
19864         * tests/unicase/test-u8-is-cased.c: Likewise.
19865         * tests/unicase/test-u8-is-casefolded.c: Likewise.
19866         * tests/unicase/test-u8-is-lowercase.c: Likewise.
19867         * tests/unicase/test-u8-is-titlecase.c: Likewise.
19868         * tests/unicase/test-u8-is-uppercase.c: Likewise.
19869         * tests/unicase/test-u8-tolower.c: Likewise.
19870         * tests/unicase/test-u8-totitle.c: Likewise.
19871         * tests/unicase/test-u8-toupper.c: Likewise.
19872         * tests/unicase/test-u16-casecmp.c: Likewise.
19873         * tests/unicase/test-u16-casecoll.c: Likewise.
19874         * tests/unicase/test-u16-casefold.c: Likewise.
19875         * tests/unicase/test-u16-is-cased.c: Likewise.
19876         * tests/unicase/test-u16-is-casefolded.c: Likewise.
19877         * tests/unicase/test-u16-is-lowercase.c: Likewise.
19878         * tests/unicase/test-u16-is-titlecase.c: Likewise.
19879         * tests/unicase/test-u16-is-uppercase.c: Likewise.
19880         * tests/unicase/test-u16-tolower.c: Likewise.
19881         * tests/unicase/test-u16-totitle.c: Likewise.
19882         * tests/unicase/test-u16-toupper.c: Likewise.
19883         * tests/unicase/test-u32-casecmp.c: Likewise.
19884         * tests/unicase/test-u32-casecoll.c: Likewise.
19885         * tests/unicase/test-u32-casefold.c: Likewise.
19886         * tests/unicase/test-u32-is-cased.c: Likewise.
19887         * tests/unicase/test-u32-is-casefolded.c: Likewise.
19888         * tests/unicase/test-u32-is-lowercase.c: Likewise.
19889         * tests/unicase/test-u32-is-titlecase.c: Likewise.
19890         * tests/unicase/test-u32-is-uppercase.c: Likewise.
19891         * tests/unicase/test-u32-tolower.c: Likewise.
19892         * tests/unicase/test-u32-totitle.c: Likewise.
19893         * tests/unicase/test-u32-toupper.c: Likewise.
19894         * tests/unicase/test-ulc-casecmp.c: Likewise.
19895         * tests/unicase/test-ulc-casecoll.c: Likewise.
19896         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
19897         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
19898         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
19899         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
19900         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
19901         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
19902         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
19903         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
19904         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
19905         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
19906         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
19907         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
19908         * tests/unictype/test-bidi_byname.c: Likewise.
19909         * tests/unictype/test-bidi_name.c: Likewise.
19910         * tests/unictype/test-bidi_of.c: Likewise.
19911         * tests/unictype/test-bidi_test.c: Likewise.
19912         * tests/unictype/test-block_list.c: Likewise.
19913         * tests/unictype/test-block_of.c: Likewise.
19914         * tests/unictype/test-block_test.c: Likewise.
19915         * tests/unictype/test-categ_and.c: Likewise.
19916         * tests/unictype/test-categ_and_not.c: Likewise.
19917         * tests/unictype/test-categ_byname.c: Likewise.
19918         * tests/unictype/test-categ_name.c: Likewise.
19919         * tests/unictype/test-categ_none.c: Likewise.
19920         * tests/unictype/test-categ_of.c: Likewise.
19921         * tests/unictype/test-categ_or.c: Likewise.
19922         * tests/unictype/test-categ_test_withtable.c: Likewise.
19923         * tests/unictype/test-combining.c: Likewise.
19924         * tests/unictype/test-decdigit.c: Likewise.
19925         * tests/unictype/test-digit.c: Likewise.
19926         * tests/unictype/test-mirror.c: Likewise.
19927         * tests/unictype/test-numeric.c: Likewise.
19928         * tests/unictype/test-pr_byname.c: Likewise.
19929         * tests/unictype/test-pr_test.c: Likewise.
19930         * tests/unictype/test-predicate-part1.h: Likewise.
19931         * tests/unictype/test-scripts.c: Likewise.
19932         * tests/unictype/test-sy_c_ident.c: Likewise.
19933         * tests/unictype/test-sy_java_ident.c: Likewise.
19934         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
19935         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
19936         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
19937         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
19938         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
19939         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
19940         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
19941         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
19942         * tests/uninorm/test-canonical-decomposition.c: Likewise.
19943         * tests/uninorm/test-compat-decomposition.c: Likewise.
19944         * tests/uninorm/test-composition.c: Likewise.
19945         * tests/uninorm/test-decomposing-form.c: Likewise.
19946         * tests/uninorm/test-decomposition.c: Likewise.
19947         * tests/uninorm/test-u8-nfc.c: Likewise.
19948         * tests/uninorm/test-u8-nfd.c: Likewise.
19949         * tests/uninorm/test-u8-nfkc.c: Likewise.
19950         * tests/uninorm/test-u8-nfkd.c: Likewise.
19951         * tests/uninorm/test-u8-normcmp.c: Likewise.
19952         * tests/uninorm/test-u8-normcoll.c: Likewise.
19953         * tests/uninorm/test-u16-nfc.c: Likewise.
19954         * tests/uninorm/test-u16-nfd.c: Likewise.
19955         * tests/uninorm/test-u16-nfkc.c: Likewise.
19956         * tests/uninorm/test-u16-nfkd.c: Likewise.
19957         * tests/uninorm/test-u16-normcmp.c: Likewise.
19958         * tests/uninorm/test-u16-normcoll.c: Likewise.
19959         * tests/uninorm/test-u32-nfc.c: Likewise.
19960         * tests/uninorm/test-u32-nfd.c: Likewise.
19961         * tests/uninorm/test-u32-nfkc.c: Likewise.
19962         * tests/uninorm/test-u32-nfkd.c: Likewise.
19963         * tests/uninorm/test-u32-normalize-big.c: Likewise.
19964         * tests/uninorm/test-u32-normcmp.c: Likewise.
19965         * tests/uninorm/test-u32-normcoll.c: Likewise.
19966         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
19967         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
19968         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
19969         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
19970         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
19971         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
19972         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
19973         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
19974         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
19975         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
19976         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
19977         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
19978         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
19979         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
19980         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
19981         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
19982         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
19983         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
19984         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
19985         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
19986         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
19987         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
19988         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
19989         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
19990         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
19991         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
19992         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
19993         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
19994         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
19995         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
19996         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
19997         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
19998         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
19999         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20000         * tests/uniwidth/test-u8-width.c: Likewise.
20001         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20002         * tests/uniwidth/test-u16-width.c: Likewise.
20003         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20004         * tests/uniwidth/test-u32-width.c: Likewise.
20005         * tests/uniwidth/test-uc_width.c: Likewise.
20006         * tests/uniwidth/test-uc_width2.c: Likewise.
20007         * modules/acl-tests (Files): Add tests/macros.h.
20008         * modules/areadlink-tests (Files): Likewise.
20009         * modules/areadlink-with-size-tests (Files): Likewise.
20010         * modules/areadlinkat-tests (Files): Likewise.
20011         * modules/areadlinkat-with-size-tests (Files): Likewise.
20012         * modules/argmatch-tests (Files): Likewise.
20013         * modules/argv-iter-tests (Files): Likewise.
20014         * modules/array-list-tests (Files): Likewise.
20015         * modules/array-mergesort-tests (Files): Likewise.
20016         * modules/array-oset-tests (Files): Likewise.
20017         * modules/avltree-list-tests (Files): Likewise.
20018         * modules/avltree-oset-tests (Files): Likewise.
20019         * modules/avltreehash-list-tests (Files): Likewise.
20020         * modules/base64-tests (Files): Likewise.
20021         * modules/binary-io-tests (Files): Likewise.
20022         * modules/bitrotate-tests (Files): Likewise.
20023         * modules/btowc-tests (Files): Likewise.
20024         * modules/byteswap-tests (Files): Likewise.
20025         * modules/c-ctype-tests (Files): Likewise.
20026         * modules/c-stack-tests (Files): Likewise.
20027         * modules/c-strcase-tests (Files): Likewise.
20028         * modules/c-strcasestr-tests (Files): Likewise.
20029         * modules/c-strstr-tests (Files): Likewise.
20030         * modules/canonicalize-lgpl-tests (Files): Likewise.
20031         * modules/canonicalize-tests (Files): Likewise.
20032         * modules/carray-list-tests (Files): Likewise.
20033         * modules/ceilf-tests (Files): Likewise.
20034         * modules/ceill-tests (Files): Likewise.
20035         * modules/chown-tests (Files): Likewise.
20036         * modules/cloexec-tests (Files): Likewise.
20037         * modules/copy-file-tests (Files): Likewise.
20038         * modules/count-one-bits-tests (Files): Likewise.
20039         * modules/dprintf-posix-tests (Files): Likewise.
20040         * modules/dup2-tests (Files): Likewise.
20041         * modules/dup3-tests (Files): Likewise.
20042         * modules/duplocale-tests (Files): Likewise.
20043         * modules/fbufmode-tests (Files): Likewise.
20044         * modules/fchdir-tests (Files): Likewise.
20045         * modules/fcntl-safer-tests (Files): Likewise.
20046         * modules/fcntl-tests (Files): Likewise.
20047         * modules/fdopendir-tests (Files): Likewise.
20048         * modules/fdutimensat-tests (Files): Likewise.
20049         * modules/fflush-tests (Files): Likewise.
20050         * modules/filevercmp-tests (Files): Likewise.
20051         * modules/flock-tests (Files): Likewise.
20052         * modules/floorf-tests (Files): Likewise.
20053         * modules/floorl-tests (Files): Likewise.
20054         * modules/fnmatch-tests (Files): Likewise.
20055         * modules/fopen-safer-tests (Files): Likewise.
20056         * modules/fopen-tests (Files): Likewise.
20057         * modules/fpending-tests (Files): Likewise.
20058         * modules/fprintf-posix-tests (Files): Likewise.
20059         * modules/fpurge-tests (Files): Likewise.
20060         * modules/freadable-tests (Files): Likewise.
20061         * modules/freadahead-tests (Files): Likewise.
20062         * modules/freading-tests (Files): Likewise.
20063         * modules/freadptr-tests (Files): Likewise.
20064         * modules/freadseek-tests (Files): Likewise.
20065         * modules/freopen-tests (Files): Likewise.
20066         * modules/frexp-nolibm-tests (Files): Likewise.
20067         * modules/frexp-tests (Files): Likewise.
20068         * modules/frexpl-nolibm-tests (Files): Likewise.
20069         * modules/frexpl-tests (Files): Likewise.
20070         * modules/fseek-tests (Files): Likewise.
20071         * modules/fseeko-tests (Files): Likewise.
20072         * modules/fstrcmp-tests (Files): Likewise.
20073         * modules/fsync-tests (Files): Likewise.
20074         * modules/ftell-tests (Files): Likewise.
20075         * modules/ftello-tests (Files): Likewise.
20076         * modules/func-tests (Files): Likewise.
20077         * modules/futimens-tests (Files): Likewise.
20078         * modules/fwritable-tests (Files): Likewise.
20079         * modules/fwriting-tests (Files): Likewise.
20080         * modules/getcwd-tests (Files): Likewise.
20081         * modules/getdate-tests (Files): Likewise.
20082         * modules/getdelim-tests (Files): Likewise.
20083         * modules/getdtablesize-tests (Files): Likewise.
20084         * modules/getgroups-tests (Files): Likewise.
20085         * modules/getline-tests (Files): Likewise.
20086         * modules/getndelim2-tests (Files): Likewise.
20087         * modules/glob-tests (Files): Likewise.
20088         * modules/hash-tests (Files): Likewise.
20089         * modules/i-ring-tests (Files): Likewise.
20090         * modules/iconv-tests (Files): Likewise.
20091         * modules/iconv_open-utf-tests (Files): Likewise.
20092         * modules/idpriv-drop-tests (Files): Likewise.
20093         * modules/idpriv-droptemp-tests (Files): Likewise.
20094         * modules/inet_ntop-tests (Files): Likewise.
20095         * modules/inet_pton-tests (Files): Likewise.
20096         * modules/isblank-tests (Files): Likewise.
20097         * modules/isfinite-tests (Files): Likewise.
20098         * modules/isinf-tests (Files): Likewise.
20099         * modules/isnan-tests (Files): Likewise.
20100         * modules/isnand-nolibm-tests (Files): Likewise.
20101         * modules/isnand-tests (Files): Likewise.
20102         * modules/isnanf-nolibm-tests (Files): Likewise.
20103         * modules/isnanf-tests (Files): Likewise.
20104         * modules/isnanl-nolibm-tests (Files): Likewise.
20105         * modules/isnanl-tests (Files): Likewise.
20106         * modules/lchown-tests (Files): Likewise.
20107         * modules/ldexpl-tests (Files): Likewise.
20108         * modules/link-tests (Files): Likewise.
20109         * modules/linkat-tests (Files): Likewise.
20110         * modules/linked-list-tests (Files): Likewise.
20111         * modules/linkedhash-list-tests (Files): Likewise.
20112         * modules/localename-tests (Files): Likewise.
20113         * modules/lseek-tests (Files): Likewise.
20114         * modules/lstat-tests (Files): Likewise.
20115         * modules/mbmemcasecmp-tests (Files): Likewise.
20116         * modules/mbmemcasecoll-tests (Files): Likewise.
20117         * modules/mbrtowc-tests (Files): Likewise.
20118         * modules/mbscasecmp-tests (Files): Likewise.
20119         * modules/mbscasestr-tests (Files): Likewise.
20120         * modules/mbschr-tests (Files): Likewise.
20121         * modules/mbscspn-tests (Files): Likewise.
20122         * modules/mbsinit-tests (Files): Likewise.
20123         * modules/mbsncasecmp-tests (Files): Likewise.
20124         * modules/mbsnrtowcs-tests (Files): Likewise.
20125         * modules/mbspbrk-tests (Files): Likewise.
20126         * modules/mbspcasecmp-tests (Files): Likewise.
20127         * modules/mbsrchr-tests (Files): Likewise.
20128         * modules/mbsrtowcs-tests (Files): Likewise.
20129         * modules/mbsspn-tests (Files): Likewise.
20130         * modules/mbsstr-tests (Files): Likewise.
20131         * modules/memchr-tests (Files): Likewise.
20132         * modules/memchr2-tests (Files): Likewise.
20133         * modules/memcmp-tests (Files): Likewise.
20134         * modules/memmem-tests (Files): Likewise.
20135         * modules/memrchr-tests (Files): Likewise.
20136         * modules/mkdir-tests (Files): Likewise.
20137         * modules/mkfifo-tests (Files): Likewise.
20138         * modules/mkfifoat-tests (Files): Likewise.
20139         * modules/mknod-tests (Files): Likewise.
20140         * modules/nanosleep-tests (Files): Likewise.
20141         * modules/nl_langinfo-tests (Files): Likewise.
20142         * modules/obstack-printf-tests (Files): Likewise.
20143         * modules/open-tests (Files): Likewise.
20144         * modules/openat-tests (Files): Likewise.
20145         * modules/pipe-filter-gi-tests (Files): Likewise.
20146         * modules/pipe-filter-ii-tests (Files): Likewise.
20147         * modules/pipe2-tests (Files): Likewise.
20148         * modules/popen-safer-tests (Files): Likewise.
20149         * modules/popen-tests (Files): Likewise.
20150         * modules/posixtm-tests (Files): Likewise.
20151         * modules/pread-tests (Files): Likewise.
20152         * modules/printf-frexp-tests (Files): Likewise.
20153         * modules/printf-frexpl-tests (Files): Likewise.
20154         * modules/printf-posix-tests (Files): Likewise.
20155         * modules/priv-set-tests (Files): Likewise.
20156         * modules/quotearg-tests (Files): Likewise.
20157         * modules/random_r-tests (Files): Likewise.
20158         * modules/rawmemchr-tests (Files): Likewise.
20159         * modules/rbtree-list-tests (Files): Likewise.
20160         * modules/rbtree-oset-tests (Files): Likewise.
20161         * modules/rbtreehash-list-tests (Files): Likewise.
20162         * modules/readlink-tests (Files): Likewise.
20163         * modules/remove-tests (Files): Likewise.
20164         * modules/rename-tests (Files): Likewise.
20165         * modules/renameat-tests (Files): Likewise.
20166         * modules/rmdir-tests (Files): Likewise.
20167         * modules/round-tests (Files): Likewise.
20168         * modules/roundf-tests (Files): Likewise.
20169         * modules/roundl-tests (Files): Likewise.
20170         * modules/safe-alloc-tests (Files): Likewise.
20171         * modules/setenv-tests (Files): Likewise.
20172         * modules/sigaction-tests (Files): Likewise.
20173         * modules/signbit-tests (Files): Likewise.
20174         * modules/sleep-tests (Files): Likewise.
20175         * modules/snprintf-posix-tests (Files): Likewise.
20176         * modules/snprintf-tests (Files): Likewise.
20177         * modules/sprintf-posix-tests (Files): Likewise.
20178         * modules/stat-tests (Files): Likewise.
20179         * modules/stat-time-tests (Files): Likewise.
20180         * modules/strcasestr-tests (Files): Likewise.
20181         * modules/strchrnul-tests (Files): Likewise.
20182         * modules/strerror-tests (Files): Likewise.
20183         * modules/striconv-tests (Files): Likewise.
20184         * modules/striconveh-tests (Files): Likewise.
20185         * modules/striconveha-tests (Files): Likewise.
20186         * modules/strsignal-tests (Files): Likewise.
20187         * modules/strstr-tests (Files): Likewise.
20188         * modules/strtod-tests (Files): Likewise.
20189         * modules/strverscmp-tests (Files): Likewise.
20190         * modules/symlink-tests (Files): Likewise.
20191         * modules/symlinkat-tests (Files): Likewise.
20192         * modules/trunc-tests (Files): Likewise.
20193         * modules/truncf-tests (Files): Likewise.
20194         * modules/truncl-tests (Files): Likewise.
20195         * modules/uname-tests (Files): Likewise.
20196         * modules/unicase/cased-tests (Files): Likewise.
20197         * modules/unicase/ignorable-tests (Files): Likewise.
20198         * modules/unicase/locale-language-tests (Files): Likewise.
20199         * modules/unicase/tolower-tests (Files): Likewise.
20200         * modules/unicase/totitle-tests (Files): Likewise.
20201         * modules/unicase/toupper-tests (Files): Likewise.
20202         * modules/unicase/u8-casecmp-tests (Files): Likewise.
20203         * modules/unicase/u8-casecoll-tests (Files): Likewise.
20204         * modules/unicase/u8-casefold-tests (Files): Likewise.
20205         * modules/unicase/u8-is-cased-tests (Files): Likewise.
20206         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
20207         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
20208         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
20209         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
20210         * modules/unicase/u8-tolower-tests (Files): Likewise.
20211         * modules/unicase/u8-totitle-tests (Files): Likewise.
20212         * modules/unicase/u8-toupper-tests (Files): Likewise.
20213         * modules/unicase/u16-casecmp-tests (Files): Likewise.
20214         * modules/unicase/u16-casecoll-tests (Files): Likewise.
20215         * modules/unicase/u16-casefold-tests (Files): Likewise.
20216         * modules/unicase/u16-is-cased-tests (Files): Likewise.
20217         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
20218         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
20219         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
20220         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
20221         * modules/unicase/u16-tolower-tests (Files): Likewise.
20222         * modules/unicase/u16-totitle-tests (Files): Likewise.
20223         * modules/unicase/u16-toupper-tests (Files): Likewise.
20224         * modules/unicase/u32-casecmp-tests (Files): Likewise.
20225         * modules/unicase/u32-casecoll-tests (Files): Likewise.
20226         * modules/unicase/u32-casefold-tests (Files): Likewise.
20227         * modules/unicase/u32-is-cased-tests (Files): Likewise.
20228         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
20229         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
20230         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
20231         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
20232         * modules/unicase/u32-tolower-tests (Files): Likewise.
20233         * modules/unicase/u32-totitle-tests (Files): Likewise.
20234         * modules/unicase/u32-toupper-tests (Files): Likewise.
20235         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
20236         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
20237         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
20238         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
20239         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
20240         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
20241         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
20242         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
20243         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
20244         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
20245         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
20246         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
20247         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
20248         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
20249         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
20250         * modules/unictype/bidicategory-name-tests (Files): Likewise.
20251         * modules/unictype/bidicategory-of-tests (Files): Likewise.
20252         * modules/unictype/bidicategory-test-tests (Files): Likewise.
20253         * modules/unictype/block-list-tests (Files): Likewise.
20254         * modules/unictype/block-of-tests (Files): Likewise.
20255         * modules/unictype/block-test-tests (Files): Likewise.
20256         * modules/unictype/category-C-tests (Files): Likewise.
20257         * modules/unictype/category-Cc-tests (Files): Likewise.
20258         * modules/unictype/category-Cf-tests (Files): Likewise.
20259         * modules/unictype/category-Cn-tests (Files): Likewise.
20260         * modules/unictype/category-Co-tests (Files): Likewise.
20261         * modules/unictype/category-Cs-tests (Files): Likewise.
20262         * modules/unictype/category-L-tests (Files): Likewise.
20263         * modules/unictype/category-Ll-tests (Files): Likewise.
20264         * modules/unictype/category-Lm-tests (Files): Likewise.
20265         * modules/unictype/category-Lo-tests (Files): Likewise.
20266         * modules/unictype/category-Lt-tests (Files): Likewise.
20267         * modules/unictype/category-Lu-tests (Files): Likewise.
20268         * modules/unictype/category-M-tests (Files): Likewise.
20269         * modules/unictype/category-Mc-tests (Files): Likewise.
20270         * modules/unictype/category-Me-tests (Files): Likewise.
20271         * modules/unictype/category-Mn-tests (Files): Likewise.
20272         * modules/unictype/category-N-tests (Files): Likewise.
20273         * modules/unictype/category-Nd-tests (Files): Likewise.
20274         * modules/unictype/category-Nl-tests (Files): Likewise.
20275         * modules/unictype/category-No-tests (Files): Likewise.
20276         * modules/unictype/category-P-tests (Files): Likewise.
20277         * modules/unictype/category-Pc-tests (Files): Likewise.
20278         * modules/unictype/category-Pd-tests (Files): Likewise.
20279         * modules/unictype/category-Pe-tests (Files): Likewise.
20280         * modules/unictype/category-Pf-tests (Files): Likewise.
20281         * modules/unictype/category-Pi-tests (Files): Likewise.
20282         * modules/unictype/category-Po-tests (Files): Likewise.
20283         * modules/unictype/category-Ps-tests (Files): Likewise.
20284         * modules/unictype/category-S-tests (Files): Likewise.
20285         * modules/unictype/category-Sc-tests (Files): Likewise.
20286         * modules/unictype/category-Sk-tests (Files): Likewise.
20287         * modules/unictype/category-Sm-tests (Files): Likewise.
20288         * modules/unictype/category-So-tests (Files): Likewise.
20289         * modules/unictype/category-Z-tests (Files): Likewise.
20290         * modules/unictype/category-Zl-tests (Files): Likewise.
20291         * modules/unictype/category-Zp-tests (Files): Likewise.
20292         * modules/unictype/category-Zs-tests (Files): Likewise.
20293         * modules/unictype/category-and-not-tests (Files): Likewise.
20294         * modules/unictype/category-and-tests (Files): Likewise.
20295         * modules/unictype/category-byname-tests (Files): Likewise.
20296         * modules/unictype/category-name-tests (Files): Likewise.
20297         * modules/unictype/category-none-tests (Files): Likewise.
20298         * modules/unictype/category-of-tests (Files): Likewise.
20299         * modules/unictype/category-or-tests (Files): Likewise.
20300         * modules/unictype/category-test-withtable-tests (Files): Likewise.
20301         * modules/unictype/combining-class-tests (Files): Likewise.
20302         * modules/unictype/ctype-alnum-tests (Files): Likewise.
20303         * modules/unictype/ctype-alpha-tests (Files): Likewise.
20304         * modules/unictype/ctype-blank-tests (Files): Likewise.
20305         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
20306         * modules/unictype/ctype-digit-tests (Files): Likewise.
20307         * modules/unictype/ctype-graph-tests (Files): Likewise.
20308         * modules/unictype/ctype-lower-tests (Files): Likewise.
20309         * modules/unictype/ctype-print-tests (Files): Likewise.
20310         * modules/unictype/ctype-punct-tests (Files): Likewise.
20311         * modules/unictype/ctype-space-tests (Files): Likewise.
20312         * modules/unictype/ctype-upper-tests (Files): Likewise.
20313         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
20314         * modules/unictype/decimal-digit-tests (Files): Likewise.
20315         * modules/unictype/digit-tests (Files): Likewise.
20316         * modules/unictype/mirror-tests (Files): Likewise.
20317         * modules/unictype/numeric-tests (Files): Likewise.
20318         * modules/unictype/property-alphabetic-tests (Files): Likewise.
20319         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
20320         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
20321         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
20322         Likewise.
20323         * modules/unictype/property-bidi-block-separator-tests (Files):
20324         Likewise.
20325         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
20326         Likewise.
20327         * modules/unictype/property-bidi-common-separator-tests (Files):
20328         Likewise.
20329         * modules/unictype/property-bidi-control-tests (Files): Likewise.
20330         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
20331         Likewise.
20332         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
20333         Likewise.
20334         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
20335         Likewise.
20336         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
20337         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
20338         Likewise.
20339         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
20340         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
20341         Likewise.
20342         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
20343         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
20344         * modules/unictype/property-bidi-segment-separator-tests (Files):
20345         Likewise.
20346         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
20347         * modules/unictype/property-byname-tests (Files): Likewise.
20348         * modules/unictype/property-combining-tests (Files): Likewise.
20349         * modules/unictype/property-composite-tests (Files): Likewise.
20350         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
20351         * modules/unictype/property-dash-tests (Files): Likewise.
20352         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
20353         * modules/unictype/property-default-ignorable-code-point-tests (Files):
20354         Likewise.
20355         * modules/unictype/property-deprecated-tests (Files): Likewise.
20356         * modules/unictype/property-diacritic-tests (Files): Likewise.
20357         * modules/unictype/property-extender-tests (Files): Likewise.
20358         * modules/unictype/property-format-control-tests (Files): Likewise.
20359         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
20360         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
20361         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
20362         * modules/unictype/property-hex-digit-tests (Files): Likewise.
20363         * modules/unictype/property-hyphen-tests (Files): Likewise.
20364         * modules/unictype/property-id-continue-tests (Files): Likewise.
20365         * modules/unictype/property-id-start-tests (Files): Likewise.
20366         * modules/unictype/property-ideographic-tests (Files): Likewise.
20367         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
20368         * modules/unictype/property-ids-trinary-operator-tests (Files):
20369         Likewise.
20370         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
20371         * modules/unictype/property-iso-control-tests (Files): Likewise.
20372         * modules/unictype/property-join-control-tests (Files): Likewise.
20373         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
20374         * modules/unictype/property-line-separator-tests (Files): Likewise.
20375         * modules/unictype/property-logical-order-exception-tests (Files):
20376         Likewise.
20377         * modules/unictype/property-lowercase-tests (Files): Likewise.
20378         * modules/unictype/property-math-tests (Files): Likewise.
20379         * modules/unictype/property-non-break-tests (Files): Likewise.
20380         * modules/unictype/property-not-a-character-tests (Files): Likewise.
20381         * modules/unictype/property-numeric-tests (Files): Likewise.
20382         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
20383         * modules/unictype/property-other-default-ignorable-code-point-tests
20384         (Files): Likewise.
20385         * modules/unictype/property-other-grapheme-extend-tests (Files):
20386         Likewise.
20387         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
20388         * modules/unictype/property-other-id-start-tests (Files): Likewise.
20389         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
20390         * modules/unictype/property-other-math-tests (Files): Likewise.
20391         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
20392         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
20393         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
20394         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
20395         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
20396         * modules/unictype/property-private-use-tests (Files): Likewise.
20397         * modules/unictype/property-punctuation-tests (Files): Likewise.
20398         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
20399         * modules/unictype/property-radical-tests (Files): Likewise.
20400         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
20401         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
20402         * modules/unictype/property-space-tests (Files): Likewise.
20403         * modules/unictype/property-terminal-punctuation-tests (Files):
20404         Likewise.
20405         * modules/unictype/property-test-tests (Files): Likewise.
20406         * modules/unictype/property-titlecase-tests (Files): Likewise.
20407         * modules/unictype/property-unassigned-code-value-tests (Files):
20408         Likewise.
20409         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
20410         * modules/unictype/property-uppercase-tests (Files): Likewise.
20411         * modules/unictype/property-variation-selector-tests (Files): Likewise.
20412         * modules/unictype/property-white-space-tests (Files): Likewise.
20413         * modules/unictype/property-xid-continue-tests (Files): Likewise.
20414         * modules/unictype/property-xid-start-tests (Files): Likewise.
20415         * modules/unictype/property-zero-width-tests (Files): Likewise.
20416         * modules/unictype/scripts-tests (Files): Likewise.
20417         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
20418         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
20419         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
20420         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
20421         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
20422         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
20423         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
20424         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
20425         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
20426         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
20427         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
20428         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
20429         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
20430         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
20431         * modules/uninorm/composition-tests (Files): Likewise.
20432         * modules/uninorm/decomposing-form-tests (Files): Likewise.
20433         * modules/uninorm/decomposition-tests (Files): Likewise.
20434         * modules/uninorm/filter-tests (Files): Likewise.
20435         * modules/uninorm/nfc-tests (Files): Likewise.
20436         * modules/uninorm/nfd-tests (Files): Likewise.
20437         * modules/uninorm/nfkc-tests (Files): Likewise.
20438         * modules/uninorm/nfkd-tests (Files): Likewise.
20439         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
20440         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
20441         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
20442         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
20443         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
20444         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
20445         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
20446         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
20447         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
20448         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
20449         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
20450         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
20451         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
20452         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
20453         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
20454         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
20455         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
20456         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
20457         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
20458         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
20459         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
20460         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
20461         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
20462         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
20463         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
20464         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
20465         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
20466         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
20467         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
20468         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
20469         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
20470         * modules/uniwidth/u8-width-tests (Files): Likewise.
20471         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
20472         * modules/uniwidth/u16-width-tests (Files): Likewise.
20473         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
20474         * modules/uniwidth/u32-width-tests (Files): Likewise.
20475         * modules/uniwidth/width-tests (Files): Likewise.
20476         * modules/unlink-tests (Files): Likewise.
20477         * modules/unsetenv-tests (Files): Likewise.
20478         * modules/usleep-tests (Files): Likewise.
20479         * modules/utimens-tests (Files): Likewise.
20480         * modules/utimensat-tests (Files): Likewise.
20481         * modules/vasnprintf-posix-tests (Files): Likewise.
20482         * modules/vasnprintf-tests (Files): Likewise.
20483         * modules/vasprintf-posix-tests (Files): Likewise.
20484         * modules/vasprintf-tests (Files): Likewise.
20485         * modules/vdprintf-posix-tests (Files): Likewise.
20486         * modules/vfprintf-posix-tests (Files): Likewise.
20487         * modules/vprintf-posix-tests (Files): Likewise.
20488         * modules/vsnprintf-posix-tests (Files): Likewise.
20489         * modules/vsnprintf-tests (Files): Likewise.
20490         * modules/vsprintf-posix-tests (Files): Likewise.
20491         * modules/wcrtomb-tests (Files): Likewise.
20492         * modules/wcsnrtombs-tests (Files): Likewise.
20493         * modules/wcsrtombs-tests (Files): Likewise.
20494         * modules/wctype-tests (Files): Likewise.
20495         * modules/wcwidth-tests (Files): Likewise.
20496         * modules/xmemdup0-tests (Files): Likewise.
20497         * modules/xprintf-posix-tests (Files): Likewise.
20498         * modules/xvasprintf-tests (Files): Likewise.
20499
20500 2009-12-24  Eric Blake  <ebb9@byu.net>
20501
20502         test-nanosleep: fix typo
20503         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
20504         patch.
20505         Reported by Bruno Haible.
20506
20507 2009-12-24  Bruno Haible  <bruno@clisp.org>
20508
20509         Reduce namespace pollution on glibc systems.
20510         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
20511         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
20512         systems.
20513         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
20514         <getopt.h> on glibc systems.
20515         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
20516         systems.
20517         * lib/fcntl.c: Include <unistd.h> here instead.
20518
20519 2009-12-24  Bruno Haible  <bruno@clisp.org>
20520
20521         * lib/stdlib.in.h (includes): Fix typo in today's commit.
20522
20523 2009-12-24  Eric Blake  <ebb9@byu.net>
20524
20525         tests: add signature checks
20526         * tests/signature.h (SIGNATURE_CHECK): New file.
20527         * modules/atexit-tests (Files): Use it.
20528         * modules/btowc-tests (Files): Likewise.
20529         * modules/canonicalize-lgpl-tests (Files): Likewise.
20530         * modules/ceilf-tests (Files): Likewise.
20531         * modules/ceill-tests (Files): Likewise.
20532         * modules/chown-tests (Files): Likewise.
20533         * modules/dprintf-posix-tests (Files): Likewise.
20534         * modules/dup2-tests (Files): Likewise.
20535         * modules/dup3-tests (Files): Likewise.
20536         * modules/duplocale-tests (Files): Likewise.
20537         * modules/fchdir-tests (Files): Likewise.
20538         * modules/fcntl-tests (Files): Likewise.
20539         * modules/fdopendir-tests (Files): Likewise.
20540         * modules/fflush-tests (Files): Likewise.
20541         * modules/flock-tests (Files): Likewise.
20542         * modules/floorf-tests (Files): Likewise.
20543         * modules/floorl-tests (Files): Likewise.
20544         * modules/fnmatch-tests (Files): Likewise.
20545         * modules/fopen-tests (Files): Likewise.
20546         * modules/fprintf-posix-tests (Files): Likewise.
20547         * modules/freopen-tests (Files): Likewise.
20548         * modules/frexp-nolibm-tests (Files): Likewise.
20549         * modules/frexp-tests (Files): Likewise.
20550         * modules/frexpl-nolibm-tests (Files): Likewise.
20551         * modules/frexpl-tests (Files): Likewise.
20552         * modules/fseek-tests (Files): Likewise.
20553         * modules/fseeko-tests (Files): Likewise.
20554         * modules/fsync-tests (Files): Likewise.
20555         * modules/ftell-tests (Files): Likewise.
20556         * modules/ftello-tests (Files): Likewise.
20557         * modules/futimens-tests (Files): Likewise.
20558         * modules/getaddrinfo-tests (Files): Likewise.
20559         * modules/getcwd-tests (Files): Likewise.
20560         * modules/getdelim-tests (Files): Likewise.
20561         * modules/getdtablesize-tests (Files): Likewise.
20562         * modules/getgroups-tests (Files): Likewise.
20563         * modules/gethostname-tests (Files): Likewise.
20564         * modules/getline-tests (Files): Likewise.
20565         * modules/getopt-posix-tests (Files): Likewise.
20566         * modules/gettimeofday-tests (Files): Likewise.
20567         * modules/glob-tests (Files): Likewise.
20568         * modules/iconv-tests (Files): Likewise.
20569         * modules/inet_ntop-tests (Files): Likewise.
20570         * modules/inet_pton-tests (Files): Likewise.
20571         * modules/isblank-tests (Files): Likewise.
20572         * modules/lchown-tests (Files): Likewise.
20573         * modules/ldexpl-tests (Files): Likewise.
20574         * modules/link-tests (Files): Likewise.
20575         * modules/linkat-tests (Files): Likewise.
20576         * modules/lseek-tests (Files): Likewise.
20577         * modules/lstat-tests (Files): Likewise.
20578         * modules/mbrtowc-tests (Files): Likewise.
20579         * modules/mbsinit-tests (Files): Likewise.
20580         * modules/mbsnrtowcs-tests (Files): Likewise.
20581         * modules/mbsrtowcs-tests (Files): Likewise.
20582         * modules/memchr-tests (Files): Likewise.
20583         * modules/memcmp-tests (Files): Likewise.
20584         * modules/memmem-tests (Files): Likewise.
20585         * modules/memrchr-tests (Files): Likewise.
20586         * modules/mkdir-tests (Files): Likewise.
20587         * modules/mkfifo-tests (Files): Likewise.
20588         * modules/mkfifoat-tests (Files): Likewise.
20589         * modules/mknod-tests (Files): Likewise.
20590         * modules/nanosleep-tests (Files): Likewise.
20591         * modules/nl_langinfo-tests (Files): Likewise.
20592         * modules/obstack-printf-tests (Files): Likewise.
20593         * modules/open-tests (Files): Likewise.
20594         * modules/openat-tests (Files): Likewise.
20595         * modules/perror-tests (Files): Likewise.
20596         * modules/pipe2-tests (Files): Likewise.
20597         * modules/poll-tests (Files): Likewise.
20598         * modules/popen-tests (Files): Likewise.
20599         * modules/posix_spawn-tests (Files): Likewise.
20600         * modules/posix_spawnp-tests (Files): Likewise.
20601         * modules/pread-tests (Files): Likewise.
20602         * modules/printf-posix-tests (Files): Likewise.
20603         * modules/pty-tests (Files): Likewise.
20604         * modules/random_r-tests (Files): Likewise.
20605         * modules/rawmemchr-tests (Files): Likewise.
20606         * modules/readlink-tests (Files): Likewise.
20607         * modules/remove-tests (Files): Likewise.
20608         * modules/rename-tests (Files): Likewise.
20609         * modules/renameat-tests (Files): Likewise.
20610         * modules/rmdir-tests (Files): Likewise.
20611         * modules/round-tests (Files): Likewise.
20612         * modules/roundf-tests (Files): Likewise.
20613         * modules/roundl-tests (Files): Likewise.
20614         * modules/select-tests (Files): Likewise.
20615         * modules/setenv-tests (Files): Likewise.
20616         * modules/sigaction-tests (Files): Likewise.
20617         * modules/sleep-tests (Files): Likewise.
20618         * modules/snprintf-posix-tests (Files): Likewise.
20619         * modules/snprintf-tests (Files): Likewise.
20620         * modules/sprintf-posix-tests (Files): Likewise.
20621         * modules/stat-tests (Files): Likewise.
20622         * modules/strcasestr-tests (Files): Likewise.
20623         * modules/strchrnul-tests (Files): Likewise.
20624         * modules/strerror-tests (Files): Likewise.
20625         * modules/strsignal-tests (Files): Likewise.
20626         * modules/strstr-tests (Files): Likewise.
20627         * modules/strtod-tests (Files): Likewise.
20628         * modules/strverscmp-tests (Files): Likewise.
20629         * modules/symlink-tests (Files): Likewise.
20630         * modules/symlinkat-tests (Files): Likewise.
20631         * modules/times-tests (Files): Likewise.
20632         * modules/trunc-tests (Files): Likewise.
20633         * modules/truncf-tests (Files): Likewise.
20634         * modules/truncl-tests (Files): Likewise.
20635         * modules/tsearch-tests (Files): Likewise.
20636         * modules/uname-tests (Files): Likewise.
20637         * modules/unlink-tests (Files): Likewise.
20638         * modules/unsetenv-tests (Files): Likewise.
20639         * modules/usleep-tests (Files): Likewise.
20640         * modules/utimensat-tests (Files): Likewise.
20641         * modules/vasprintf-tests (Files): Likewise.
20642         * modules/vdprintf-posix-tests (Files): Likewise.
20643         * modules/vfprintf-posix-tests (Files): Likewise.
20644         * modules/vprintf-posix-tests (Files): Likewise.
20645         * modules/vsnprintf-posix-tests (Files): Likewise.
20646         * modules/vsnprintf-tests (Files): Likewise.
20647         * modules/vsprintf-posix-tests (Files): Likewise.
20648         * modules/wcrtomb-tests (Files): Likewise.
20649         * modules/wcsnrtombs-tests (Files): Likewise.
20650         * modules/wcsrtombs-tests (Files): Likewise.
20651         * modules/wcwidth-tests (Files): Likewise.
20652         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
20653         * tests/test-isinf.c (isinf): Likewise.
20654         * tests/test-isnan.c (isnan): Likewise.
20655         * tests/test-signbit.c (signbit): Likewise.
20656         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
20657         declaration, either as macro or with correct signature.
20658         (select): Ensure function under test is declared with correct
20659         signature in correct header.
20660         * tests/test-atexit.c (atexit): Likewise.
20661         * tests/test-btowc.c (btowc): Likewise.
20662         * tests/test-canonicalize-lgpl.c (realpath)
20663         (canonicalize_file_name): Likewise.
20664         * tests/test-ceilf1.c (ceilf): Likewise.
20665         * tests/test-ceill.c (ceill): Likewise.
20666         * tests/test-chown.c (chown): Likewise.
20667         * tests/test-dprintf-posix.c (dprintf): Likewise.
20668         * tests/test-dup2.c (dup2): Likewise.
20669         * tests/test-dup3.c (dup3): Likewise.
20670         * tests/test-duplocale.c (duplocale): Likewise.
20671         * tests/test-fchdir.c (fchdir): Likewise.
20672         * tests/test-fchownat.c (fchownat): Likewise.
20673         * tests/test-fcntl.c (fcntl): Likewise.
20674         * tests/test-fdopendir.c (fdopendir): Likewise.
20675         * tests/test-fflush.c (fflush): Likewise.
20676         * tests/test-flock.c (flock): Likewise.
20677         * tests/test-floorf1.c (floorf): Likewise.
20678         * tests/test-floorl.c (floorl): Likewise.
20679         * tests/test-fnmatch.c (fnmatch): Likewise.
20680         * tests/test-fopen.c (fopen): Likewise.
20681         * tests/test-fprintf-posix.c (fprintf): Likewise.
20682         * tests/test-freopen.c (freopen): Likewise.
20683         * tests/test-frexp.c (frexp): Likewise.
20684         * tests/test-frexpl.c (frexpl): Likewise.
20685         * tests/test-fseek.c (fseek): Likewise.
20686         * tests/test-fseeko.c (fseeko): Likewise.
20687         * tests/test-fstatat.c (fstatat): Likewise.
20688         * tests/test-fsync.c (fsync): Likewise.
20689         * tests/test-ftell.c (ftell): Likewise.
20690         * tests/test-ftello.c (ftello): Likewise.
20691         * tests/test-futimens.c (futimens): Likewise.
20692         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
20693         (gai_strerror): Likewise.
20694         * tests/test-getcwd.c (getcwd): Likewise.
20695         * tests/test-getdelim.c (getdelim): Likewise.
20696         * tests/test-getdtablesize.c (getdtablesize): Likewise.
20697         * tests/test-getgroups.c (getgroups): Likewise.
20698         * tests/test-gethostname.c (gethostname): Likewise.
20699         * tests/test-getline.c (getline): Likewise.
20700         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
20701         Likewise.
20702         * tests/test-gettimeofday.c (gettimeofday): Likewise.
20703         * tests/test-glob.c (glob, globfree): Likewise.
20704         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
20705         * tests/test-inet_ntop.c (inet_ntop): Likewise.
20706         * tests/test-inet_pton.c (inet_pton): Likewise.
20707         * tests/test-isblank.c (isblank): Likewise.
20708         * tests/test-lchown.c (lchown): Likewise.
20709         * tests/test-ldexpl.c (ldexpl): Likewise.
20710         * tests/test-link.c (link): Likewise.
20711         * tests/test-linkat.c (linkat): Likewise.
20712         * tests/test-lseek.c (lseek): Likewise.
20713         * tests/test-lstat.c (lstat): Likewise.
20714         * tests/test-mbrtowc.c (mbrtowc): Likewise.
20715         * tests/test-mbsinit.c (mbsinit): Likewise.
20716         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
20717         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
20718         * tests/test-memchr.c (memchr): Likewise.
20719         * tests/test-memcmp.c (memcmp): Likewise.
20720         * tests/test-memmem.c (memmem): Likewise.
20721         * tests/test-memrchr.c (memrchr): Likewise.
20722         * tests/test-mkdir.c (mkdir): Likewise.
20723         * tests/test-mkdirat.c (mkdirat): Likewise.
20724         * tests/test-mkfifo.c (mkfifo): Likewise.
20725         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
20726         * tests/test-mknod.c (mknod): Likewise.
20727         * tests/test-nanosleep.c (nanosleep): Likewise.
20728         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
20729         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
20730         Likewise.
20731         * tests/test-open.c (open): Likewise.
20732         * tests/test-openat.c (openat): Likewise.
20733         * tests/test-perror.c (perror): Likewise.
20734         * tests/test-pipe2.c (pipe2): Likewise.
20735         * tests/test-poll.c (poll): Likewise.
20736         * tests/test-popen.c (popen, pclose): Likewise.
20737         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
20738         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
20739         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
20740         (posix_spawn_file_actions_destroy)
20741         (posix_spawn_file_actions_addclose)
20742         (posix_spawn_file_actions_addopen)
20743         (posix_spawn_file_actions_adddup2): Likewise.
20744         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
20745         * tests/test-pread.c (pread): Likewise.
20746         * tests/test-printf-posix.c (printf): Likewise.
20747         * tests/test-pty.c (openpty, forkpty): Likewise.
20748         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
20749         (random_r): Likewise.
20750         * tests/test-rawmemchr.c (rawmemchr): Likewise.
20751         * tests/test-readlink.c (readlink): Likewise.
20752         * tests/test-remove.c (remove): Likewise.
20753         * tests/test-rename.c (rename): Likewise.
20754         * tests/test-renameat.c (renameat): Likewise.
20755         * tests/test-rmdir.c (rmdir): Likewise.
20756         * tests/test-round1.c (round): Likewise.
20757         * tests/test-roundf1.c (roundf): Likewise.
20758         * tests/test-roundl.c (roundl): Likewise.
20759         * tests/test-setenv.c (setenv): Likewise.
20760         * tests/test-sigaction.c (sigaction): Likewise.
20761         * tests/test-sleep.c (sleep): Likewise.
20762         * tests/test-snprintf.c (snprintf): Likewise.
20763         * tests/test-sprintf-posix.c (sprintf): Likewise.
20764         * tests/test-stat.c (stat): Likewise.
20765         * tests/test-stpncpy.c (stpncpy): Likewise.
20766         * tests/test-strcasestr.c (strcasestr): Likewise.
20767         * tests/test-strchrnul.c (strchrnul): Likewise.
20768         * tests/test-strerror.c (strerror): Likewise.
20769         * tests/test-strsignal.c (strsignal): Likewise.
20770         * tests/test-strstr.c (strstr): Likewise.
20771         * tests/test-strtod.c (strtod): Likewise.
20772         * tests/test-strverscmp.c (strverscmp): Likewise.
20773         * tests/test-symlink.c (symlink): Likewise.
20774         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
20775         * tests/test-times.c (times): Likewise.
20776         * tests/test-trunc1.c (trunc): Likewise.
20777         * tests/test-truncf1.c (truncf): Likewise.
20778         * tests/test-truncl.c (truncl): Likewise.
20779         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
20780         Likewise.
20781         * tests/test-uname.c (uname): Likewise.
20782         * tests/test-unlink.c (unlink): Likewise.
20783         * tests/test-unlinkat.c (unlinkat): Likewise.
20784         * tests/test-unsetenv.c (unsetenv): Likewise.
20785         * tests/test-usleep.c (usleep): Likewise.
20786         * tests/test-utimensat.c (utimensat): Likewise.
20787         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
20788         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
20789         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
20790         * tests/test-vprintf-posix.c (vprintf): Likewise.
20791         * tests/test-vsnprintf.c (vsnprintf): Likewise.
20792         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
20793         * tests/test-wcrtomb.c (wcrtomb): Likewise.
20794         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
20795         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
20796         * tests/test-wcwidth.c (wcwidth): Likewise.
20797
20798         build: pull in conditional headers during GNULIB_POSIXCHECK
20799         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
20800         definitions from any conditionally-included headers.
20801         * lib/stdlib.in.h (includes): Likewise.
20802         * lib/unistd.in.h (includes): Likewise.
20803
20804 2009-12-24  Bruno Haible  <bruno@clisp.org>
20805
20806         * tests/test-argv-iter.c: Include header file being tested immediately
20807         after config.h.
20808         * tests/test-base64.c: Likewise.
20809         * tests/test-flock.c: Likewise.
20810         * tests/test-fsync.c: Likewise.
20811         * tests/test-getdate.c: Likewise.
20812         * tests/test-getndelim2.c: Likewise.
20813         * tests/test-isfinite.c: Likewise.
20814         * tests/test-isinf.c: Likewise.
20815         * tests/test-strerror.c: Likewise.
20816         * tests/test-strsignal.c: Likewise.
20817
20818 2009-12-23  Eric Blake  <ebb9@byu.net>
20819
20820         unistd: work around cygwin bug
20821         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
20822         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
20823         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
20824
20825 2009-12-23  Bruno Haible  <bruno@clisp.org>
20826
20827         localename: More tests.
20828         * tests/test-localename.c (SIZEOF): New macro.
20829         (categories): New variable.
20830         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
20831         test_locale_name_default): Add test w.r.t. thread locale.
20832         (test_locale_name_thread): New function.
20833         (main): Invoke it.
20834
20835         localename: Make aware of thread locale.
20836         * lib/localename.h (gl_locale_name_thread): New declaration.
20837         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
20838         behaviour with respect to thread locale.
20839         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
20840         <langinfo.h>, glthread/lock.h.
20841         (SIZE_BITS): New macro.
20842         (string_hash): New function.
20843         (struct hash_node): New type.
20844         (HASH_TABLE_SIZE): New macro.
20845         (struniq_hash_table, struniq_lock): New variables.
20846         (struniq): New function.
20847         (gl_locale_name_thread): New function.
20848         (gl_locale_name): Invoke it.
20849         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
20850         * modules/localename (Depends-on): Add lock.
20851         Reported by Mike Gran <spk121@yahoo.com>.
20852
20853 2009-12-23  Eric Blake  <ebb9@byu.net>
20854
20855         va-args: new module
20856         * modules/va-args: New file.
20857         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
20858         * MODULES.html.sh (Core language properties): Mention it.
20859
20860         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
20861         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
20862         named alias for __attribute__((__unused__)).
20863         * lib/chown.c: Update client.
20864         * lib/fchmodat.c: Likewise.
20865         * lib/fts.c: Likewise.
20866         * lib/getdate.y: Likewise.
20867         * lib/getgroups.c: Likewise.
20868         * lib/getopt.c: Likewise.
20869         * lib/getugroups.c: Likewise.
20870         * lib/mkdir.c: Likewise.
20871         * lib/mkfifo.c: Likewise.
20872         * lib/mkfifoat.c: Likewise.
20873         * lib/mknod.c: Likewise.
20874         * lib/mknodat.c: Likewise.
20875         * lib/readlink.c: Likewise.
20876         * lib/se-context.in.h: Likewise.
20877         * lib/se-selinux.in.h: Likewise.
20878         * lib/sockets.c: Likewise.
20879         * lib/symlink.c: Likewise.
20880         * lib/symlinkat.c: Likewise.
20881         * lib/unicodeio.c: Likewise.
20882         * lib/unistr.h: Likewise.
20883         * tests/test-areadlink.c: Likewise.
20884         * tests/test-areadlinkat.c: Likewise.
20885         * tests/test-filenamecat.c: Likewise.
20886         * tests/test-fseeko.c: Likewise.
20887         * tests/test-ftello.c: Likewise.
20888         * tests/test-getdate.c: Likewise.
20889         * tests/test-getgroups.c: Likewise.
20890         * tests/test-gethostname.c: Likewise.
20891         * tests/test-quotearg.c: Likewise.
20892         * tests/test-version-etc.c: Likewise.
20893         * tests/test-xalloc-die.c: Likewise.
20894         * tests/test-xfprintf-posix.c: Likewise.
20895         * tests/test-xprintf-posix.c: Likewise.
20896         * tests/test-xvasprintf.c: Likewise.
20897
20898         tests: avoid compiler warnings
20899         * tests/test-fcntl.c (main): Delete unused parameters.
20900         * tests/test-freopen-safer.c (main): Likewise.
20901         * tests/test-xalloc-die.c (main): Mark unused parameters.
20902         * tests/test-fseeko.c (main): Likewise.
20903         * tests/test-ftello.c (main): Likewise.
20904         * tests/test-nanosleep.c (main): Avoid declaration warning.
20905         * tests/test-sleep.c (main): Likewise.
20906         * tests/test-unsetenv.c (main): Silence warning about string
20907         literal.
20908         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
20909
20910 2009-12-23  Bruno Haible  <bruno@clisp.org>
20911
20912         * tests/test-localename.c (test_locale_name): New function, extracted
20913         from main. Also test mixed situations.
20914         (test_locale_name_posix, test_locale_name_environ,
20915         test_locale_name_default): New functions.
20916         (main): Invoke them all.
20917         * modules/localename-tests (configure.ac): Test for newlocale.
20918
20919 2009-12-23  Bruno Haible  <bruno@clisp.org>
20920
20921         unistd: Ensure getcwd gets declared before being overridden.
20922         * lib/unistd.in.h: Conditionally include <io.h>.
20923
20924 2009-12-22  Bruno Haible  <bruno@clisp.org>
20925
20926         wchar: Diagnose broken combination of glibc and gcc versions and flags.
20927         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
20928         (gl_WCHAR_H): Invoke it.
20929         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
20930         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
20931         Reported by Karl Berry <karl@freefriends.org>.
20932
20933 2009-12-22  Eric Blake  <ebb9@byu.net>
20934
20935         math, unistd: avoid redundant includes
20936         * lib/math.in.h (isnan): No need to re-include <math.h>.
20937         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
20938
20939         getsubopt: work around cygwin bug
20940         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
20941         avoid conflicting with system getsubopt.
20942         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
20943         bug.
20944
20945         getopt: synchronize from glibc
20946         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
20947         parameter order.  Adjust all callers.
20948         (_getopt_internal_r, main): Adjust quoting in error messages.
20949         Drop considerations for outdated POSIX 1003.2 error message.
20950         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
20951         callers.
20952         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
20953
20954         test-getopt: test stderr behavior
20955         * modules/getopt-posix-tests (Depends-on): Add dup2.
20956         * tests/test-getopt.c (ASSERT): Avoid stderr.
20957         (main): Move stderr to a temporary file.
20958         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
20959         Instead, add parameter to inform caller if output occurred.
20960         (test_getopt): Adjust all existing tests to expect silence, and
20961         add new tests of leading ":".
20962         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20963         glibc shortcomings with leading "-:" or "+:" in optstring.
20964         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20965         Likewise.
20966         * doc/posix-functions/getopt.texi (getopt): Likewise.
20967
20968         test-getopt: enhance test
20969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
20970         supports optind=0.
20971         * tests/test-getopt.c (OPTIND_MIN): Move...
20972         * tests/test-getopt.h (OPTIND_MIN): ...here.
20973         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
20974         Require that optind=0 works, since modern BSD supports it in
20975         addition to optreset, and since coreutils expects it.
20976         (test_getopt_long_only): New test.
20977         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
20978         glibc shortcomings with 'W;', and enforcement of optind=0.
20979         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20980         Likewise.
20981
20982 2009-12-21  Bruno Haible  <bruno@clisp.org>
20983
20984         localename: Improvements for MacOS X and Cygwin.
20985         * lib/localename.h (gl_locale_name_environ): New declaration.
20986         * lib/localename.c (gl_locale_name_environ): New function, extracted from
20987         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
20988         (gl_locale_name_posix): Invoke it.
20989         (gl_locale_name_default): Add comments. Use Windows native API also on
20990         Cygwin.
20991
20992 2009-12-21  Bruno Haible  <bruno@clisp.org>
20993
20994         Update list of Win32 locale ids.
20995         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
20996         (LANG_SAMI): Renamed from LANG_SAAMI.
20997         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
20998         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
20999         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
21000         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
21001         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
21002         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
21003         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
21004         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
21005         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
21006         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
21007         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
21008         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
21009         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
21010         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
21011         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
21012         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
21013         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
21014         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
21015         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
21016         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
21017         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
21018         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
21019         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
21020         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
21021         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
21022         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
21023         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
21024         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
21025         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
21026         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
21027         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
21028         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
21029         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
21030         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
21031         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
21032         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
21033         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
21034         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
21035         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
21036         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
21037         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
21038         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
21039         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
21040         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
21041         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
21042         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
21043         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
21044         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
21045         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
21046         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
21047         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
21048         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
21049         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
21050         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
21051         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
21052         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
21053         Add more languages and countries for Sami, Sorbian. Add more countries
21054         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
21055         for Pashto. Change country for Syriac, Tswana.
21056
21057 2009-12-21  Eric Blake  <ebb9@byu.net>
21058
21059         test-utimens: avoid spurious failure
21060         * tests/test-chown.h (nap): Factor...
21061         * tests/nap.h: ...into new file.
21062         * tests/test-lchown.h (nap): Avoid duplication.
21063         * tests/test-utimens-common.h (nap): Use shared implementation,
21064         necessary on file systems with 1-second resolution.
21065         * modules/chown-tests (Files): Include new file.
21066         * modules/fdutimensat-tests (Files): Likewise.
21067         * modules/futimens-tests (Files): Likewise.
21068         * modules/lchown-tests (Files): Likewise.
21069         * modules/openat-tests (Files): Likewise.
21070         * modules/utimens-tests (Files): Likewise.
21071         * modules/utimensat-tests (Files): Likewise.
21072
21073 2009-12-19  Eric Blake  <ebb9@byu.net>
21074
21075         futimens, utimensat: work around Linux bug
21076         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
21077         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
21078         * lib/utimensat.c (rpl_utimensat): Work around it.
21079         * lib/futimens.c (rpl_futimens): Adjust comment.
21080
21081         utimens: work around Linux ctime bug
21082         * lib/utimens.c (detect_ctime_bug): New helper function.
21083         (update_timespec): Differentiate between workaround needed for
21084         this bug vs. what is needed for systems that lack utimensat.
21085         (fdutimens, lutimens): Work around bug.
21086
21087         utimens: check for ctime update
21088         * tests/test-utimens-common.h (check_ctime): Define.
21089         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
21090         * tests/test-futimens.h (test_futimens): Likewise.
21091         * tests/test-lutimens.h (test_lutimens): Likewise.
21092         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21093         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
21094
21095 2009-12-19  Bruno Haible  <bruno@clisp.org>
21096
21097         dprintf-posix: Check against memory leak fixed on 2009-12-15.
21098         * tests/test-dprintf-posix2.sh: New file.
21099         * tests/test-dprintf-posix2.c: New file.
21100         * modules/dprintf-posix-tests (Files): Add them.
21101         (configure.ac): Check for getrlimit and setrlimit.
21102         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21103
21104 2009-12-19  Bruno Haible  <bruno@clisp.org>
21105
21106         fprintf-posix: Check against memory leak fixed on 2009-12-15.
21107         * tests/test-fprintf-posix3.sh: New file.
21108         * tests/test-fprintf-posix3.c: New file.
21109         * modules/fprintf-posix-tests (Files): Add them.
21110         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
21111
21112 2009-12-19  Eric Blake  <ebb9@byu.net>
21113
21114         dirfd: fix prototype
21115         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
21116         * lib/dirfd.c (dirfd): Likewise.
21117
21118         canonicalize: reduce memory usage
21119         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
21120         allocation to size.
21121         Reported by Solar Designer <solar@openwall.com>.
21122
21123 2009-12-19  Bruno Haible  <bruno@clisp.org>
21124
21125         New module attribute 'Applicability'.
21126         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
21127         * gnulib-tool: New option --extract-applicability.
21128         (func_usage): Document it.
21129         (sed_extract_prog): Recognize it.
21130         (func_get_applicability): New function.
21131         (func_import): Generalize handling of 'link-warning' module.
21132         * modules/link-warning (Applicability): New section.
21133         * modules/arg-nonnull (Applicability): New section.
21134         Repoted by Simon Josefsson <simon@josefsson.org>.
21135
21136 2009-12-19  Bruno Haible  <bruno@clisp.org>
21137
21138         fflush: tweak
21139         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
21140         * lib/fseeko.c (rpl_fseeko): Likewise.
21141
21142 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
21143
21144         * lib/gl_list.h: Fix typo in comment.
21145
21146 2009-12-16  Eric Blake  <ebb9@byu.net>
21147
21148         fcntl: use to simplify other modules
21149         * modules/cloexec (Depends-on): Add fcntl.
21150         * modules/fchdir (Depends-on): Likewise.
21151         * modules/fd-safer-flag (Depends-on): Likewise.
21152         * modules/unistd-safer (Depends-on): Likewise.
21153         * modules/dup3 (configure.ac): Set module indicator.
21154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
21155         missing.
21156         * lib/fchdir.c (_gl_register_dup): Fix comment.
21157         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
21158         * lib/dup-safer.c (dup_safer): Likewise.
21159         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
21160         * lib/dup3.c (dup3): Likewise.
21161         * tests/test-fchdir.c (main): Enhance test.
21162         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
21163
21164         fcntl: port portions of fcntl to mingw
21165         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
21166         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
21167         replacement for mingw.
21168         * modules/fcntl (Description): Update.
21169         (Depends-on): Add dup2.
21170         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
21171         * modules/fcntl-h (Makefile.am): Substitute it.
21172         * lib/fcntl.in.h (fcntl): Update declaration.
21173         (F_DUPFD, F_GETFD): New macros, when needed.
21174         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
21175         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
21176         * tests/test-fcntl.c (check_flags, main): Enhance test for items
21177         we now guarantee.
21178
21179         fcntl: work around cygwin bug in F_DUPFD
21180         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
21181         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
21182         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
21183         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
21184         * doc/posix-functions/fcntl.texi (fcntl): Document it.
21185
21186         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
21187         * modules/fcntl (Files): List new files.
21188         (configure.ac): Run a test.
21189         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
21190         * lib/fcntl.c (rpl_fcntl): Likewise.
21191         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
21192         (gl_FCNTL_H): Always replace fcntl.h.
21193         * modules/fcntl-h (Makefile.am): Substitute witnesses.
21194         * lib/fcntl.in.h (fcntl): Declare replacement.
21195         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
21196         needed, plus a witness.
21197         * doc/posix-functions/fcntl.texi (fcntl): Document this.
21198         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
21199         * tests/test-fcntl.c: New file.
21200         * modules/fcntl-tests: Likewise.
21201
21202         binary-io: avoid potential compilation warning
21203         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
21204         directives.
21205
21206         fflush: avoid compilation error on NetBSD
21207         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
21208         between off_t and fpos_t, since the latter is sometimes a struct.
21209         * lib/fseeko.c (rpl_fseeko): Likewise.
21210         Reported by Alexander Nasonov <alnsn@yandex.ru>.
21211
21212 2009-12-15  Eric Blake  <ebb9@byu.net>
21213
21214         fcntl-h, stdio, sys_ioctl: fix declarations
21215         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
21216         function must not take arguments.
21217         * lib/sys_ioctl.in.h (ioctl): Likewise.
21218         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
21219         (open): Add a link warning.
21220
21221 2009-12-15  Jim Meyering  <meyering@redhat.com>
21222
21223         areadlink, areadlink-with-size: relax license to LGPLv2+
21224         * modules/areadlink (License): Relax to LGPLv2+.
21225         * modules/areadlink-with-size (License): Likewise.
21226
21227 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
21228             Bruno Haible  <bruno@clisp.org>
21229
21230         *printf: Fix memory leak.
21231         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
21232         * lib/vfprintf.c (vfprintf): Likewise.
21233         * lib/dprintf.c (dprintf): Likewise.
21234         * lib/vdprintf.c (vdprintf): Likewise.
21235
21236 2009-12-14  Eric Blake  <ebb9@byu.net>
21237
21238         accept4: adjust module dependencies
21239         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
21240
21241         utimens: one more try at avoiding compiler warning
21242         * lib/utimens.c (lutimens): Lower scope of result.
21243
21244 2009-12-13  Bruno Haible  <bruno@clisp.org>
21245
21246         Move the malloc checking from module 'list' to new module 'xlist'.
21247         * modules/xlist: New file.
21248         * lib/gl_xlist.h: New file.
21249         * lib/gl_xlist.c: New file.
21250         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
21251         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
21252         gl_list_add_last, gl_list_add_before, gl_list_add_after,
21253         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
21254         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
21255         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
21256         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
21257         gl_sortedlist_nx_add): New declarations.
21258         (struct gl_list_implementation): Rename and change methods accordingly.
21259         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
21260         (gl_list_nx_create): Renamed from gl_list_create.
21261         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21262         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21263         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21264         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21265         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21266         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21267         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21268         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21269         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
21270         gl_list_create_empty.
21271         (gl_list_nx_create): Renamed from gl_list_create.
21272         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
21273         (gl_list_nx_set_at): Renamed from gl_list_set_at.
21274         (gl_list_nx_add_first): Renamed from gl_list_add_first.
21275         (gl_list_nx_add_last): Renamed from gl_list_add_last.
21276         (gl_list_nx_add_before): Renamed from gl_list_add_before.
21277         (gl_list_nx_add_after): Renamed from gl_list_add_after.
21278         (gl_list_nx_add_at): Renamed from gl_list_add_at.
21279         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
21280         * lib/gl_array_list.c: Don't include xalloc.h.
21281         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
21282         NULL upon out-of-memory.
21283         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
21284         out-of-memory.
21285         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
21286         Change return type to 'int'.
21287         (gl_array_nx_set_at): Renamed from gl_array_set_at.
21288         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21289         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
21290         upon out-of-memory.
21291         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
21292         upon out-of-memory.
21293         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
21294         upon out-of-memory.
21295         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
21296         upon out-of-memory.
21297         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
21298         out-of-memory.
21299         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
21300         Update.
21301         (gl_array_list_implementation): Update.
21302         * lib/gl_carray_list.c: Don't include xalloc.h.
21303         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
21304         Return NULL upon out-of-memory.
21305         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
21306         out-of-memory.
21307         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
21308         Change return type to 'int'.
21309         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
21310         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
21311         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
21312         upon out-of-memory.
21313         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
21314         upon out-of-memory.
21315         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
21316         out-of-memory.
21317         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
21318         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
21319         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
21320         Update.
21321         (gl_carray_list_implementation): Update.
21322         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
21323         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
21324         gl_linked_create_empty. Return NULL upon out-of-memory.
21325         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
21326         out-of-memory.
21327         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
21328         Change return type to 'int'. Return -1 upon out-of-memory.
21329         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
21330         out-of-memory.
21331         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
21332         upon out-of-memory.
21333         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
21334         upon out-of-memory.
21335         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
21336         NULL upon out-of-memory.
21337         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
21338         upon out-of-memory.
21339         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
21340         out-of-memory.
21341         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
21342         Update.
21343         * lib/gl_linked_list.c: Don't include xalloc.h.
21344         (gl_linked_list_implementation): Update.
21345         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
21346         (add_to_bucket): Change return type to 'int'.
21347         (gl_linkedhash_list_implementation): Update.
21348         * lib/gl_anytree_list1.h (free_subtree): New function.
21349         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
21350         gl_tree_create_empty. Return NULL upon out-of-memory.
21351         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
21352         Change return type to 'int'. Return -1 upon out-of-memory.
21353         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
21354         out-of-memory.
21355         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
21356         (gl_tree_remove_node): New function, moved here from
21357         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
21358         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
21359         Update.
21360         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
21361         malloc, not xmalloc. Return NULL upon out-of-memory.
21362         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21363         out-of-memory.
21364         (gl_tree_remove_node_from_tree): New function, extracted from
21365         gl_tree_remove_node.
21366         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21367         upon out-of-memory.
21368         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21369         out-of-memory.
21370         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21371         upon out-of-memory.
21372         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21373         upon out-of-memory.
21374         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21375         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
21376         not xmalloc. Return NULL upon out-of-memory.
21377         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
21378         out-of-memory.
21379         (gl_tree_remove_node_from_tree): New function, extracted from
21380         gl_tree_remove_node.
21381         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
21382         upon out-of-memory.
21383         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
21384         out-of-memory.
21385         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
21386         upon out-of-memory.
21387         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
21388         upon out-of-memory.
21389         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
21390         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
21391         gl_anytree_list1.h before gl_anyavltree_list2.h.
21392         (gl_avltree_list_implementation): Update.
21393         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
21394         gl_anytree_list1.h before gl_anyavltree_list2.h.
21395         (gl_rbtree_list_implementation): Update.
21396         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
21397         Change return type to 'int'. Return -1 upon out-of-memory. Use
21398         __builtin_expect.
21399         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
21400         (gl_avltreehash_list_implementation): Update.
21401         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
21402         (gl_rbtreehash_list_implementation): Update.
21403         * modules/array-list (Depends-on): Remove xalloc.
21404         * modules/carray-list (Depends-on): Likewise.
21405         * modules/linked-list (Depends-on): Likewise.
21406         * modules/linkedhash-list (Depends-on): Likewise.
21407         * modules/avltree-list (Depends-on): Likewise.
21408         * modules/rbtree-list (Depends-on): Likewise.
21409         * modules/avltreehash-list (Depends-on): Likewise.
21410         * modules/rbtreehash-list (Depends-on): Likewise.
21411
21412         * modules/xsublist: New file.
21413         * lib/gl_xsublist.h: New file.
21414         * lib/gl_xsublist.c: New file.
21415         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
21416         (gl_sublist_nx_create): New declaration.
21417         * lib/gl_sublist.c: Don't include xalloc.h.
21418         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
21419         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
21420         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
21421         Change return type to 'int'. Return -1 upon out-of-memory.
21422         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
21423         upon out-of-memory.
21424         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
21425         NULL upon out-of-memory.
21426         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
21427         upon out-of-memory.
21428         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
21429         NULL upon out-of-memory.
21430         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
21431         NULL upon out-of-memory.
21432         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
21433         upon out-of-memory.
21434         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
21435         (gl_sublist_list_implementation): Update.
21436         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
21437         upon out-of-memory.
21438         * modules/sublist (Depends-on): Remove xalloc.
21439
21440         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
21441         * tests/test-carray_list.c: Likewise.
21442         * tests/test-linked_list.c: Likewise.
21443         * tests/test-linkedhash_list.c: Likewise.
21444         * tests/test-avltree_list.c: Likewise.
21445         * tests/test-rbtree_list.c: Likewise.
21446         * tests/test-avltreehash_list.c: Likewise.
21447         * tests/test-rbtreehash_list.c: Likewise.
21448         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
21449         * modules/carray-list-tests (Makefile.am): Likewise.
21450         * modules/linked-list-tests (Makefile.am): Likewise.
21451         * modules/linkedhash-list-tests (Makefile.am): Likewise.
21452         * modules/avltree-list-tests (Makefile.am): Likewise.
21453         * modules/rbtree-list-tests (Makefile.am): Likewise.
21454         * modules/avltreehash-list-tests (Makefile.am): Likewise.
21455         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
21456
21457         * NEWS: Mention the changes.
21458
21459         * lib/clean-temp.c: Include gl_xlist.h.
21460         * modules/clean-temp (Depends-on): Add xlist.
21461
21462         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
21463         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
21464
21465         * tests/test-array_oset.c: Include gl_xlist.h.
21466         * modules/array-oset-tests (Depends-on): Add xlist.
21467
21468         Reported by José E. Marchesi <jemarch@gnu.org>.
21469
21470 2009-12-13  Bruno Haible  <bruno@clisp.org>
21471
21472         Move the malloc checking from module 'oset' to new module 'xoset'.
21473         * modules/xoset: New file.
21474         * lib/gl_xoset.h: New file.
21475         * lib/gl_xoset.c: New file.
21476         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
21477         declarations.
21478         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
21479         (struct gl_oset_implementation): Rename and change methods accordingly.
21480         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
21481         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21482         'int'. Mark as __warn_unused_result__.
21483         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
21484         gl_oset_create_empty.
21485         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
21486         'int'.
21487         * lib/gl_array_oset.c: Don't include xalloc.h.
21488         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
21489         malloc, not xmalloc.
21490         (grow): Change return type to 'int'. Don't call xalloc_die.
21491         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
21492         to 'int'.
21493         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
21494         'int'.
21495         (gl_array_oset_implementation): Update.
21496         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
21497         gl_tree_create_empty.
21498         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
21499         'int'.
21500         * lib/gl_avltree_oset.c: Don't include xalloc.h.
21501         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21502         xmalloc.
21503         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21504         not xmalloc.
21505         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21506         xmalloc.
21507         (gl_avltree_oset_implementation): Update.
21508         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
21509         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
21510         xmalloc.
21511         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
21512         not xmalloc.
21513         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
21514         xmalloc.
21515         (gl_rbtree_oset_implementation): Update.
21516         * modules/array-oset (Depends-on): Remove xalloc.
21517         * modules/avltree-oset (Depends-on): Likewise.
21518         * modules/rbtree-oset (Depends-on): Likewise.
21519         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
21520         * tests/test-avltree_oset.c: Likewise.
21521         * tests/test-rbtree_oset.c: Likewise.
21522         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21523         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
21524         * modules/rbtree-oset-tests (Makefile.am): Likewise.
21525         * NEWS: Mention the change.
21526
21527 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
21528
21529         maint.mk: allow a project to override release-prep commands
21530         * top/maint.mk (alpha, beta, stable): Move release-preparatory
21531         commands into a new rule.
21532         (release-prep): New rule.
21533         (release-prep-hook): New overridable variable.
21534
21535 2009-12-13  Bruno Haible  <bruno@clisp.org>
21536
21537         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
21538
21539 2009-12-13  Jim Meyering  <meyering@redhat.com>
21540
21541         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
21542         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
21543
21544 2009-12-12  Bruno Haible  <bruno@clisp.org>
21545
21546         duplocale: Tweak.
21547         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
21548
21549 2009-12-12  Karl Berry  <karl@gnu.org>
21550
21551         * config/srclist.txt (strtoll.c): tab changes, no more sync.
21552
21553 2009-12-12  Bruno Haible  <bruno@clisp.org>
21554
21555         * m4/po.m4: Undo incorrect untabification.
21556
21557 2009-12-12  Bruno Haible  <bruno@clisp.org>
21558
21559         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
21560         * modules/c-strtod (Depends-on): Add locale.
21561         * modules/c-strtold (Depends-on): Likewise.
21562
21563 2009-12-12  Bruno Haible  <bruno@clisp.org>
21564
21565         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
21566
21567 2009-12-11  Eric Blake  <ebb9@byu.net>
21568
21569         setenv: relax requirement in light of POSIX ruling
21570         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
21571         not NULL.
21572         * tests/test-setenv.c (main): Relax test.
21573         * tests/test-unsetenv.c (main): Likewise.
21574         * doc/posix-functions/setenv.texi (setenv): Document this.
21575         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
21576
21577 2009-12-11  Bruno Haible  <bruno@clisp.org>
21578
21579         New module 'fd-safer-flag'.
21580         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
21581         * lib/dup-safer.c (dup_safer_flag): Remove function.
21582         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
21583         * lib/fd-safer.c (fd_safer_flag): Remove function.
21584         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
21585         * modules/cloexec (configure.ac): Drop indicator macro.
21586         * modules/fd-safer-flag: New file.
21587         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
21588         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
21589         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
21590
21591 2009-12-11  Bruno Haible  <bruno@clisp.org>
21592
21593         Tests for module 'nl_langinfo'.
21594         * modules/nl_langinfo-tests: New file.
21595         * tests/test-nl_langinfo.sh: New file.
21596         * tests/test-nl_langinfo.c: New file.
21597
21598         New module 'nl_langinfo'.
21599         * lib/nl_langinfo.c: New file.
21600         * m4/nl_langinfo.m4: New file.
21601         * modules/nl_langinfo: New file.
21602         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
21603
21604 2009-12-11  Bruno Haible  <bruno@clisp.org>
21605
21606         Tests for module 'langinfo'.
21607         * modules/langinfo-tests: New file.
21608         * tests/test-langinfo.c: New file.
21609
21610         New module 'langinfo'.
21611         * lib/langinfo.in.h: New file.
21612         * m4/langinfo_h.m4: New file.
21613         * modules/langinfo: New file.
21614         * doc/posix-headers/langinfo.texi: Mention the new module.
21615
21616 2009-12-11  Bruno Haible  <bruno@clisp.org>
21617
21618         * lib/config.charset: Untabify.
21619
21620 2009-12-11  Bruno Haible  <bruno@clisp.org>
21621
21622         * modules/unistd-safer (configure.ac): Drop indicator macro.
21623
21624 2009-12-11  Bruno Haible  <bruno@clisp.org>
21625
21626         Move pipe2-safer code to its own file.
21627         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
21628         * lib/pipe-safer.c (pipe2_safer): Remove function.
21629         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
21630         (Makefile.am): Add it to lib_SOURCES.
21631
21632 2009-12-10  Bruno Haible  <bruno@clisp.org>
21633
21634         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
21635
21636 2009-12-10  Bruno Haible  <bruno@clisp.org>
21637
21638         Declare which arguments expect non-NULL values, for GCC and clang.
21639         * build-aux/arg-nonnull.h: New file.
21640         * modules/arg-nonnull: New file.
21641         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
21642         (inet_ntop, inet_pton): Use it.
21643         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
21644         (closedir, dirfd, opendir, scandir, alphasort): Use it.
21645         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
21646         (open, openat): Use it.
21647         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
21648         (fnmatch): Use it.
21649         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
21650         (getopt, getopt_long, getopt_long_only): Use it.
21651         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
21652         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
21653         Use it.
21654         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
21655         (iconv_open): Use it.
21656         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
21657         (strtoimax, strtoumax): Use it.
21658         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
21659         (duplocale): Use it.
21660         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
21661         (frexp, frexpl): Use it.
21662         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
21663         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
21664         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
21665         (tsearch, tfind, tdelete, twalk): Use it.
21666         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
21667         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
21668         sigpending): Use it.
21669         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
21670         (posix_spawn, posix_spawnp, posix_spawnattr_init,
21671         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
21672         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
21673         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
21674         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
21675         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
21676         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
21677         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
21678         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
21679         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
21680         Use it.
21681         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
21682         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
21683         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
21684         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
21685         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
21686         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
21687         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
21688         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
21689         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
21690         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
21691         strtoull, unsetenv): Use it.
21692         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
21693         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
21694         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
21695         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
21696         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
21697         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
21698         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
21699         (strcasecmp, strncasecmp): Use it.
21700         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
21701         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
21702         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
21703         rpl_setsockopt): Use it.
21704         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
21705         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
21706         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
21707         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
21708         (gettimeofday): Use it.
21709         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
21710         (times): Use it.
21711         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
21712         (uname): Use it.
21713         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
21714         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
21715         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
21716         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
21717         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
21718         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
21719         unlinkat, write): Use it.
21720         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
21721         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
21722         * lib/argv-iter.h: Include arg-nonnull.h.
21723         (_ATTRIBUTE_NONNULL_): Remove macro.
21724         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
21725         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
21726         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
21727         optimization.
21728         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
21729         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
21730         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
21731         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
21732         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
21733         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
21734         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
21735         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
21736         * modules/arpa_inet (Depends-on): Add arg-nonnull.
21737         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
21738         * modules/dirent (Depends-on): Add arg-nonnull.
21739         (Makefile.am): Insert arg-nonnull.h into dirent.h.
21740         * modules/fcntl-h (Depends-on): Add arg-nonnull.
21741         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
21742         * modules/fnmatch (Depends-on): Add arg-nonnull.
21743         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
21744         * modules/getopt-posix (Depends-on): Add arg-nonnull.
21745         (Makefile.am): Insert arg-nonnull.h into getopt.h.
21746         * modules/glob (Depends-on): Add arg-nonnull.
21747         (Makefile.am): Insert arg-nonnull.h into glob.h.
21748         * modules/iconv_open (Depends-on): Add arg-nonnull.
21749         (Makefile.am): Insert arg-nonnull.h into iconv.h.
21750         * modules/inttypes (Depends-on): Add arg-nonnull.
21751         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
21752         * modules/locale (Depends-on): Add arg-nonnull.
21753         (Makefile.am): Insert arg-nonnull.h into locale.h.
21754         * modules/math (Depends-on): Add arg-nonnull.
21755         (Makefile.am): Insert arg-nonnull.h into math.h.
21756         * modules/netdb (Depends-on): Add arg-nonnull.
21757         (Makefile.am): Insert arg-nonnull.h into netdb.h.
21758         * modules/search (Depends-on): Add arg-nonnull.
21759         (Makefile.am): Insert arg-nonnull.h into search.h.
21760         * modules/signal (Depends-on): Add arg-nonnull.
21761         (Makefile.am): Insert arg-nonnull.h into signal.h.
21762         * modules/spawn (Depends-on): Add arg-nonnull.
21763         (Makefile.am): Insert arg-nonnull.h into spawn.h.
21764         * modules/stdio (Depends-on): Add arg-nonnull.
21765         (Makefile.am): Insert arg-nonnull.h into stdio.h.
21766         * modules/stdlib (Depends-on): Add arg-nonnull.
21767         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
21768         * modules/string (Depends-on): Add arg-nonnull.
21769         (Makefile.am): Insert arg-nonnull.h into string.h.
21770         * modules/strings (Depends-on): Add arg-nonnull.
21771         (Makefile.am): Insert arg-nonnull.h into strings.h.
21772         * modules/sys_socket (Depends-on): Add arg-nonnull.
21773         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
21774         * modules/sys_stat (Depends-on): Add arg-nonnull.
21775         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
21776         * modules/sys_time (Depends-on): Add arg-nonnull.
21777         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
21778         * modules/sys_times (Depends-on): Add arg-nonnull.
21779         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
21780         * modules/sys_utsname (Depends-on): Add arg-nonnull.
21781         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
21782         * modules/time (Depends-on): Add arg-nonnull.
21783         (Makefile.am): Insert arg-nonnull.h into time.h.
21784         * modules/unistd (Depends-on): Add arg-nonnull.
21785         (Makefile.am): Insert arg-nonnull.h into unistd.h.
21786         * modules/wchar (Depends-on): Add arg-nonnull.
21787         (Makefile.am): Insert arg-nonnull.h into wchar.h.
21788         * modules/argv-iter (Depends-on): Add arg-nonnull.
21789         * tests/test-canonicalize.c (null_ptr): New function.
21790         (main): Use it.
21791         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
21792         (main): Use it.
21793         * tests/test-memmem.c (null_ptr): New function.
21794         (main): Use it.
21795         Reported by Jim Meyering.
21796
21797 2009-12-10  Bruno Haible  <bruno@clisp.org>
21798
21799         Use spaces for indentation, not tabs.
21800         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21801         * m4/*.m4: Untabify.
21802         * build-aux/*.h: Untabify.
21803         * tests/**/*.[hc]: Untabify.
21804         * README: New section "Indent with spaces, not TABs", based on
21805         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
21806         * NEWS: Mention the change.
21807
21808 2009-12-10  Bruno Haible  <bruno@clisp.org>
21809
21810         pty test: Fix link error.
21811         * modules/pty-tests (Makefile.am): Add the default LDADD value to
21812         test_pty_LDADD.
21813
21814 2009-12-07  Simon Josefsson  <simon@josefsson.org>
21815
21816         * modules/pty: New file.
21817         * modules/pty-tests: New file.
21818         * m4/pty.m4: New file.
21819         * tests/test-pty.c: New file.
21820         * doc/glibc-headers/pty.texi: Modified.
21821         * doc/glibc-functions/forkpty.texi: Modified.
21822         * doc/glibc-functions/openpty.texi: Modified.
21823
21824 2009-12-10  Bruno Haible  <bruno@clisp.org>
21825
21826         Avoid syntax error in C++ mode.
21827         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
21828
21829 2009-12-10  Bruno Haible  <bruno@clisp.org>
21830
21831         Use sed with option -e.
21832         * gnulib-tool (func_version, func_emit_copyright_notice,
21833         func_emit_initmacro_end, func_import, func_create_testdir): Pass
21834         option -e to sed.
21835         * modules/link-warning (Makefile.am): Likewise.
21836
21837 2009-12-10  Jim Meyering  <meyering@redhat.com>
21838
21839         mgetgroups: do not write bytes beyond end of malloc'd buffer
21840         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
21841         username, we call getgroups with a one-element-shorter buffer,
21842         but still told it the length was original, max_n_groups.
21843
21844 2009-12-09  Eric Blake  <ebb9@byu.net>
21845
21846         cloexec: relax license
21847         * modules/cloexec (Maintainer): Add myself.
21848         (License): Use LGPL, not GPL.
21849
21850         link-warning: optimize generation
21851         * modules/link-warning (Makefile.am): Reduce process usage.
21852
21853 2009-12-09  Bruno Haible  <bruno@clisp.org>
21854
21855         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
21856         workaround was added on 2009-11-17.
21857
21858 2009-12-09  Jim Meyering  <meyering@redhat.com>
21859             Bruno Haible  <bruno@clisp.org>
21860
21861         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
21862         * modules/link-warning (Makefile.am): Make the comment-removing sed
21863         command more robust in the face of bootstrap-prepended comment lines.
21864
21865 2009-12-09  Bruno Haible  <bruno@clisp.org>
21866
21867         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
21868         most one group.
21869
21870 2009-12-09  Simon Josefsson <simon@josefsson.org>
21871             Bruno Haible  <bruno@clisp.org>
21872
21873         * build-aux/link-warning.h: Add copyright notice.
21874         * modules/link-warning (Makefile.am): Generate link-warning.h from
21875         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
21876         * NEWS: Mention change in link-warning module.
21877         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
21878         * modules/dirent (Makefile.am): Add dependency to dirent.h.
21879         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
21880         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
21881         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
21882         * modules/math (Makefile.am): Add dependency to math.h.
21883         * modules/search (Makefile.am): Add dependency to search.h.
21884         * modules/signal (Makefile.am): Add dependency to signal.h.
21885         * modules/spawn (Makefile.am): Add dependency to spawn.h.
21886         * modules/stdio (Makefile.am): Add dependency to stdio.h.
21887         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
21888         * modules/string (Makefile.am): Add dependency to string.h.
21889         * modules/strings (Makefile.am): Add dependency to strings.h.
21890         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
21891         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
21892         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
21893         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
21894         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
21895         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
21896         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
21897         * modules/unistd (Makefile.am): Add dependency to unistd.h.
21898         * modules/wchar (Makefile.am): Add dependency to wchar.h.
21899
21900 2009-12-09  Bruno Haible  <bruno@clisp.org>
21901
21902         fchdir: Optimize away rpl_fstat when possible.
21903         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
21904         REPLACE_OPEN_DIRECTORY.
21905         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
21906
21907 2009-12-09  Bruno Haible  <bruno@clisp.org>
21908
21909         * lib/fchdir.c: Update comment.
21910
21911 2009-12-09  Bruno Haible  <bruno@clisp.org>
21912
21913         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
21914
21915 2009-12-08  Eric Blake  <ebb9@byu.net>
21916
21917         fchdir: avoid memory leak on re-registration.
21918         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
21919
21920 2009-12-08  Jim Meyering  <meyering@redhat.com>
21921
21922         init.sh: avoid Solaris 10 /bin/sh portability problem
21923         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
21924         sourced script:
21925           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
21926           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
21927           bar
21928         tests/init.sh relied on that, accepting a --set-path=DIR argument,
21929         and two tests used that idiom.
21930         * tests/init.sh: Update suggested usage comments.
21931         (path_prepend_): New function, to be used in place
21932         of the --src-path=DIR option.
21933         (setup_): Move PATH-prepending code into path_prepend_.
21934         * tests/test-pread.sh: Adapt to new usage.
21935         * tests/test-xalloc-die.sh: Likewise.
21936
21937 2009-12-08  Simon Josefsson  <simon@josefsson.org>
21938
21939         * doc/gnulib.texi (Glibc pty.h): Add.
21940         * doc/glibc-functions/forkpty.texi: Add.
21941         * doc/glibc-functions/openpty.texi: Add.
21942         Suggested by Bruno Haible.
21943
21944 2009-12-08  Eric Blake  <ebb9@byu.net>
21945
21946         fchdir: fix logic bugs
21947         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
21948         * tests/test-fchdir.c (main): Enhance test.
21949         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
21950         is in use.
21951
21952         dup2: fix logic bugs
21953         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
21954         REPLACE_DUP2 to decide when rpl_dup2 is needed.
21955         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
21956         exists.
21957         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
21958
21959 2009-12-07  Eric Blake  <ebb9@byu.net>
21960
21961         unlink: fix m4 detection
21962         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
21963
21964         unistd-safer: add unit test
21965         * modules/unistd-safer-tests: New file.
21966         * tests/test-dup-safer.c: Likewise.
21967         * tests/test-cloexec.c (setmode): Avoid compiler warning.
21968         * tests/test-dup2.c (setmode): Likewise.
21969         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
21970
21971         cloexec: preserve text vs. binary across dup_cloexec
21972         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
21973         mode.
21974         * modules/dup2-tests (Depends-on): Add binary-io.
21975         * modules/cloexec-tests (Depends-on): Likewise.
21976         * tests/test-dup2.c (setmode, is_mode): New helpers.
21977         (main): Add tests that translation mode is preserved.
21978         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
21979         Reported by Bruno Haible.
21980
21981         mgetgroups: reduce duplicate listings
21982         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
21983         resulting array.
21984         * tests/test-chown.h (test_chown): Simplify client.
21985         * tests/test-lchown.h (test_lchown): Likewise.
21986
21987 2009-12-06  Bruno Haible  <bruno@clisp.org>
21988
21989         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
21990         value.
21991
21992 2009-12-06  Bruno Haible  <bruno@clisp.org>
21993
21994         * lib/progname.c: Include stdio.h, stdlib.h.
21995         (set_program_name): Reject a NULL argument.
21996
21997 2009-12-05  Eric Blake  <ebb9@byu.net>
21998
21999         pipe2-safer: new module
22000         * modules/pipe2-safer: New file.
22001         * lib/unistd-safer.h (pipe2_safer): New prototype.
22002         * lib/unistd--.h (pipe2): New wrapper.
22003         * lib/pipe-safer.c (pipe2_safer): New function.
22004         * modules/pipe (Depends-on): Add pipe2-safer.
22005         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
22006
22007         stdlib-safer: preserve cloexec flag for mkostemp[s]
22008         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
22009         fd_safer_flag.
22010
22011         unistd-safer: allow preservation of cloexec status via flag
22012         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
22013         prototypes.
22014         * lib/dup-safer.c (dup_safer_flag): New function.
22015         * lib/fd-safer.c (fd_safer_flag): Likewise.
22016         * modules/cloexec (configure.ac): Set witness.
22017
22018         test-dup2: enhance test
22019         * modules/dup2-tests (Depends-on): Add cloexec.
22020         * tests/test-dup2.c (main): Enhance test.
22021
22022         cloexec: add dup_cloexec
22023         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
22024         header and comments.
22025         * lib/cloexec.c (set_cloexec_flag): Add comments.
22026         (dup_cloexec): New function, with mingw implementation borrowed
22027         from...
22028         * lib/w32spawn.h (dup_noinherit): ...here.
22029         * modules/execute (Depends-on): Add cloexec.
22030         * modules/pipe (Depends-on): Likewise.
22031         * modules/cloexec (Depends-on): Add dup2.
22032         * modules/cloexec-tests (Files): New file.
22033         * tests/test-cloexec.c: Likewise.
22034
22035         test-xalloc-die: fix test for mingw
22036         * modules/xalloc-die-tests (Files): Add tests/init.sh.
22037         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
22038         directory and .exe suffix off argv[0] output.
22039
22040         test-fseeko: fix test for mingw
22041         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
22042         than undefining fseek, so test will pass on mingw.
22043
22044 2009-12-05  Bruno Haible  <bruno@clisp.org>
22045
22046         * lib/progname.h (set_program_name): Clarify specification.
22047         * lib/progname.c (set_program_name): Likewise.
22048         Reported by Jim Meyering.
22049
22050 2009-12-05  Jim Meyering  <meyering@redhat.com>
22051
22052         maint.mk: backslash-escape parens in default regexp
22053         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
22054         backslash-escape the literal parentheses.
22055
22056         maint.mk: news-date-check: use grep -E
22057         * top/maint.mk (today): Define a Make variable, not a...
22058         (news-date-check): ...shell variable.
22059         (news-date-regexp): Use the Make variable.
22060         Use grep's -E option.  Change the failing diagnostic to mention
22061         the variable, $(news-date-regexp).
22062
22063 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
22064
22065         maintainer-makefile: allow customization of NEWS entry format
22066         * top/maint.mk (news-date-regexp): New overridable variable.
22067         (news-date-check): Use it.
22068
22069 2009-12-04  Eric Blake  <ebb9@byu.net>
22070
22071         mgetgroups: add xgetgroups, and avoid ENOSYS failures
22072         * lib/mgetgroups.h (xgetgroups): New prototype.
22073         * lib/mgetgroups.c (xgetgroups): New wrapper.
22074         (mgetgroups): Handle ENOSYS.
22075         * modules/mgetgroups (Depends-on): Add realloc.
22076         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
22077
22078         mgetgroups: avoid argument promotion issues with -1
22079         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
22080         for invalid gid_t.
22081         * tests/test-chown.h (getegid, test_chown): Likewise.
22082         * tests/test-lchown.h (getegid, test_lchown): Likewise.
22083
22084 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
22085
22086         exclude: Fix header file problems.
22087         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
22088
22089 2009-12-01  Jim Meyering  <meyering@redhat.com>
22090
22091         fts: fts_open: do not let an empty string cause immediate failure
22092         This is required in support of GNU rm, for which the command
22093         "rm A '' B" must process and remove both A and B, in spite of
22094         the empty string argument.
22095         * lib/fts.c (fts_open): Do not let the presence of an empty string
22096         cause fts_open to fail immediately.  Most fts-using tools must be
22097         able to process all arguments, in order, and can be expected to
22098         diagnose such arguments themselves.
22099
22100 2009-11-30  Eric Blake  <ebb9@byu.net>
22101
22102         utimens: fix compilation error
22103         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
22104         Declare variable at right scope.
22105
22106 2009-11-29  Jim Meyering  <meyering@redhat.com>
22107
22108         bootstrap: handle perl-5.11's changed --version output
22109         * build-aux/bootstrap (get_version): Handle perl separately,
22110         since perl-5.11's --version output is different.
22111
22112 2009-11-28  Jim Meyering  <meyering@redhat.com>
22113
22114         userspec: depend on the inttostr module, too
22115         * modules/userspec (Depends-on): Add inttostr.
22116
22117         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
22118         * lib/userspec.c (parse_with_separator): Do not accept a user ID
22119         number of MAXUID when it evaluates to (uid_t) -1.
22120         Likewise for group ID.  Reported by Matt McCutchen in
22121         <http://savannah.gnu.org/bugs/?28113>
22122
22123         userspec: reformat to use spaces, not TABs
22124         * lib/userspec.c: Expand TABs to spaces.
22125         Add Emacs' "indent-tabs-mode: nil" hint.
22126
22127 2009-11-27  Eric Blake  <ebb9@byu.net>
22128
22129         getopt-gnu: flush out another BSD bug
22130         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
22131         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
22132         flush out BSD bug.
22133         * tests/test-getopt.h (test_getopt): End lists with NULL.
22134         * tests/test-getopt_long.h (test_getopt_long): Likewise.
22135         (test_getopt_long_posix): Enhance test.
22136         * modules/getopt-posix-tests (Depends-on): Add stdbool.
22137         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
22138         getopt-gnu.
22139         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22140         Likewise.
22141
22142 2009-11-27  Simon Josefsson  <simon@josefsson.org>
22143
22144         * modules/idpriv-droptemp-tests (Notice): Fix text.
22145
22146 2009-11-27  Jim Meyering  <meyering@redhat.com>
22147
22148         test-xalloc-die: avoid spurious failure due to libtool argv difference
22149         In a libtool-enabled project, this test would fail due to a difference
22150         in the emitted program name, e.g.,
22151         -test-xalloc-die: memory exhausted
22152         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
22153         Use program to avoid that.
22154         * modules/xalloc-die-tests (Depends-on): Add progname.
22155         * tests/test-xalloc-die.c: Include progname.h".
22156         (program_name): Remove decl.
22157         (main): Call set_program_name.
22158         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
22159
22160 2009-11-26  Richard Jones  <rjones@redhat.com>
22161
22162         w32sock: leave win32 error in place.
22163         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
22164
22165 2009-11-26  Eric Blake  <ebb9@byu.net>
22166
22167         init.sh: suggest to use skip_ and fail_ functions in comments
22168         * tests/init.sh: Add a sentence.
22169
22170 2009-11-25  Bruno Haible  <bruno@clisp.org>
22171
22172         init.sh: add documentation in comments
22173         * tests/init.sh: Add some developer and user documentation.
22174
22175 2009-11-26  Jim Meyering  <meyering@redhat.com>
22176
22177         init.sh: accommodate even those who specify bogus srcdir manually
22178         * tests/init.sh: Normally, srcdir is guaranteed by automake and
22179         configure-time tests to be sanitized, so that there is no need to
22180         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
22181         (with no double quotes) suffices.  However, since tests may be
22182         invoked manually, and since you may explicitly set srcdir to the
22183         name of a directory containing spaces, do quote its uses here.
22184         * tests/test-pread.sh: Likewise.
22185         Suggested by Bruno Haible.
22186
22187         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
22188         * tests/test-pread.sh: Write no data into the pipe, because
22189         test-pread actually reads none.  This avoids a diagnostic,
22190         "bash: echo: write error: Broken pipe", that arises in the unusual
22191         event something is ignoring SIGPIPE, and might be interpreted
22192         as some sort of failure.  Reported by Bruno Haible.
22193
22194 2009-11-25  Jim Meyering  <meyering@redhat.com>
22195
22196         test-pread: cover failure with ESPIPE and EINVAL
22197         * tests/test-pread.c (main): Test for failure, too.
22198         * tests/test-pread.sh: Invoke with stdin on a pipe.
22199         Suggested by Eric Blake.
22200
22201         pread: improvement and fix
22202         * modules/pread (Depends-on): Depend on lseek, for portability to
22203         e.g., mingw.  Suggested by Eric Blake.
22204         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
22205
22206         unistd.in.h: correct declaration of pread
22207         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
22208         Reported by Richard W.M. Jones.
22209
22210         test-pread.sh: distribute the test script
22211         * modules/pread-tests (Files): Include test-pread.sh.
22212
22213         test-pread.sh: clean up
22214         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
22215         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
22216         That is unnecessary, since it's always ".".
22217         Suggestion from Eric Blake.
22218
22219         test-pread.sh: make executable
22220         * tests/test-pread.sh: Set executable bit.
22221         Reported by Eric Blake.
22222
22223         correct typo in test-pread.sh
22224         * tests/test-pread.sh: Add #! line.
22225
22226         test pread
22227         * tests/test-pread.c: New file.
22228         * tests/test-pread.sh: Likewise.
22229         * modules/pread-tests: Likewise.
22230
22231         pread: new module
22232         * modules/pread: New file.
22233         * lib/unistd.in.h (pread): Define/declare.
22234         * lib/pread.c (pread): New file.
22235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
22236         * modules/unistd (Makefile.am): Substitute witnesses.
22237         * doc/posix-functions/pread.texi (pread): Update.
22238         * MODULES.html.sh: Add pread.
22239
22240 2009-11-25  Jim Meyering  <meyering@redhat.com>
22241
22242         tests/init.sh: new file to be used via most *.sh tests
22243         * tests/init.sh: New file.
22244
22245 2009-11-25  Eric Blake  <ebb9@byu.net>
22246
22247         utimens: work around older Linux failure with symlinks
22248         * lib/utimens.c (lutimensat_works_really): New variable.
22249         (fdutimens, lutimens): Use it to manage kernels that support
22250         nanosecond times on files, but not on symlinks.
22251         Reported by OndÅ™ej Vašík.
22252
22253         utimes: fix configure grammar
22254         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
22255
22256 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
22257
22258         regex: Fix fastmap for multibyte character ranges.
22259         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
22260         characters when a multibyte character range is included.
22261
22262 2009-11-22  Andy Wingo  <wingo@pobox.com>
22263
22264         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
22265         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
22266
22267 2009-11-24  Bruno Haible  <bruno@clisp.org>
22268
22269         doc: Most *_l functions exist in MacOS X 10.5.
22270         * doc/posix-functions/duplocale.texi: Update platforms list.
22271         * doc/posix-functions/freelocale.texi: Likewise.
22272         * doc/posix-functions/newlocale.texi: Likewise.
22273         * doc/posix-functions/uselocale.texi: Likewise.
22274         * doc/posix-functions/isalnum_l.texi: Likewise.
22275         * doc/posix-functions/isalpha_l.texi: Likewise.
22276         * doc/posix-functions/isblank_l.texi: Likewise.
22277         * doc/posix-functions/iscntrl_l.texi: Likewise.
22278         * doc/posix-functions/isdigit_l.texi: Likewise.
22279         * doc/posix-functions/isgraph_l.texi: Likewise.
22280         * doc/posix-functions/islower_l.texi: Likewise.
22281         * doc/posix-functions/isprint_l.texi: Likewise.
22282         * doc/posix-functions/ispunct_l.texi: Likewise.
22283         * doc/posix-functions/isspace_l.texi: Likewise.
22284         * doc/posix-functions/isupper_l.texi: Likewise.
22285         * doc/posix-functions/iswalnum_l.texi: Likewise.
22286         * doc/posix-functions/iswalpha_l.texi: Likewise.
22287         * doc/posix-functions/iswblank_l.texi: Likewise.
22288         * doc/posix-functions/iswcntrl_l.texi: Likewise.
22289         * doc/posix-functions/iswctype_l.texi: Likewise.
22290         * doc/posix-functions/iswdigit_l.texi: Likewise.
22291         * doc/posix-functions/iswgraph_l.texi: Likewise.
22292         * doc/posix-functions/iswlower_l.texi: Likewise.
22293         * doc/posix-functions/iswprint_l.texi: Likewise.
22294         * doc/posix-functions/iswpunct_l.texi: Likewise.
22295         * doc/posix-functions/iswspace_l.texi: Likewise.
22296         * doc/posix-functions/iswupper_l.texi: Likewise.
22297         * doc/posix-functions/iswxdigit_l.texi: Likewise.
22298         * doc/posix-functions/isxdigit_l.texi: Likewise.
22299         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
22300         * doc/posix-functions/strcasecmp_l.texi: Likewise.
22301         * doc/posix-functions/strcoll_l.texi: Likewise.
22302         * doc/posix-functions/strfmon_l.texi: Likewise.
22303         * doc/posix-functions/strftime_l.texi: Likewise.
22304         * doc/posix-functions/strncasecmp_l.texi: Likewise.
22305         * doc/posix-functions/strxfrm_l.texi: Likewise.
22306         * doc/posix-functions/tolower_l.texi: Likewise.
22307         * doc/posix-functions/toupper_l.texi: Likewise.
22308         * doc/posix-functions/towctrans_l.texi: Likewise.
22309         * doc/posix-functions/towlower_l.texi: Likewise.
22310         * doc/posix-functions/towupper_l.texi: Likewise.
22311         * doc/posix-functions/wcscoll_l.texi: Likewise.
22312         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
22313         * doc/posix-functions/wctrans_l.texi: Likewise.
22314         * doc/posix-functions/wctype_l.texi: Likewise.
22315         * doc/glibc-functions/strptime_l.texi: Likewise.
22316         * doc/glibc-functions/strtod_l.texi: Likewise.
22317         * doc/glibc-functions/strtof_l.texi: Likewise.
22318         * doc/glibc-functions/strtol_l.texi: Likewise.
22319         * doc/glibc-functions/strtold_l.texi: Likewise.
22320         * doc/glibc-functions/strtoll_l.texi: Likewise.
22321         * doc/glibc-functions/strtoul_l.texi: Likewise.
22322         * doc/glibc-functions/strtoull_l.texi: Likewise.
22323         * doc/glibc-functions/wcsftime_l.texi: Likewise.
22324         * doc/glibc-functions/wcstod_l.texi: Likewise.
22325         * doc/glibc-functions/wcstof_l.texi: Likewise.
22326         * doc/glibc-functions/wcstol_l.texi: Likewise.
22327         * doc/glibc-functions/wcstold_l.texi: Likewise.
22328         * doc/glibc-functions/wcstoll_l.texi: Likewise.
22329         * doc/glibc-functions/wcstoul_l.texi: Likewise.
22330         * doc/glibc-functions/wcstoull_l.texi: Likewise.
22331
22332 2009-11-24  Bruno Haible  <bruno@clisp.org>
22333
22334         duplocale: Fix logic bug.
22335         * lib/duplocale.c: Don't include <langinfo.h>.
22336         (_NL_LOCALE_NAME): Remove macro.
22337         (rpl_duplocale): Use setlocale instead of nl_langinfo.
22338         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
22339
22340 2009-11-23  Jim Meyering  <meyering@redhat.com>
22341
22342         test-update-copyright: don't hard-code /usr/bin/perl
22343         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
22344         perl to print the current year.  Gilles Espinasse reported that
22345         the replaced use of perl was hard-coded as /usr/bin/perl.
22346
22347 2009-11-23  Bruno Haible  <bruno@clisp.org>
22348
22349         duplocale: Add support for glibc 2.3.x.
22350         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
22351
22352 2009-11-22  Bruno Haible  <bruno@clisp.org>
22353
22354         vasnprintf: Tiny optimization.
22355         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
22356         MacOS X.
22357
22358 2009-11-22  Bruno Haible  <bruno@clisp.org>
22359
22360         Tests for module 'duplocale'.
22361         * modules/duplocale-tests: New file.
22362         * tests/test-duplocale.c: New file.
22363
22364         New module 'duplocale'.
22365         * m4/duplocale.m4: New file.
22366         * lib/locale.in.h (duplocale): New declaration.
22367         * lib/duplocale.c: New file.
22368         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
22369         gl_LOCALE_H_DEFAULTS): New macros.
22370         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
22371         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
22372         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
22373         REPLACE_DUPLOCALE.
22374         * modules/duplocale: New file.
22375         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
22376
22377 2009-11-22  Bruno Haible  <bruno@clisp.org>
22378
22379         * modules/locale-tests (configure.ac): Test for newlocale function.
22380         * tests/test-locale.c: When the system has extended locale functions,
22381         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
22382
22383         locale: Make locale_t available when possible.
22384         * lib/locale.in.h: Include <xlocale.h> when it exists.
22385         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
22386         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
22387         * modules/locale (Depends-on): Add extensions.
22388         (Makefile.am): Also substitute HAVE_XLOCALE_H.
22389         * doc/posix-headers/locale.texi: Document the problem with locale_t.
22390
22391 2009-11-22  Bruno Haible  <bruno@clisp.org>
22392
22393         Add comments.
22394         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
22395         invocation.
22396         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22397         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22398         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22399
22400 2009-11-22  Bruno Haible  <bruno@clisp.org>
22401
22402         error: account for the possibility of freopen (stdout).
22403         * lib/error.c: Include <unistd.h>.
22404         (flush_stdout): New function, extracted from error and error_at_line.
22405         Determine stdout's fd dynamically.
22406         (error, error_at_line): Invoke flush_stdout.
22407         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
22408         * modules/error (Depends-on): Add unistd.
22409
22410 2009-11-22  Bruno Haible  <bruno@clisp.org>
22411
22412         diffseq: Add comment.
22413         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
22414
22415 2009-11-22  Jim Meyering  <meyering@redhat.com>
22416
22417         c-stack: avoid defining an unused static function
22418         * lib/c-stack.c (find_stack_direction): Do not define this function
22419         when it will not be used.
22420
22421         diffseq: avoid spurious gcc warnings
22422         * lib/diffseq.h (IF_LINT2): Define.
22423         (compareseq): Use it to initialize two members of "part".
22424         This avoids two used-uninitialized warnings.
22425
22426 2009-11-21  Jim Meyering  <meyering@redhat.com>
22427
22428         c-stack: avoid "ignoring return value of `write'" warning
22429         * lib/c-stack.c: Include "ignore-value.h".
22430         (die): Explicitly ignore each write return value.
22431         * modules/c-stack (Depends-on): Add ignore-value.
22432
22433 2009-11-21  Bruno Haible  <bruno@clisp.org>
22434
22435         diffseq: reduce scope of variable 'best'.
22436         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
22437         variable, earlier used for two different purposes.
22438
22439 2009-11-21  Jim Meyering  <meyering@redhat.com>
22440
22441         diffseq: remove useless assignment to "best"
22442         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
22443         assignment.  At that point "best" is already guaranteed to be zero.
22444
22445 2009-11-20  Eric Blake  <ebb9@byu.net>
22446
22447         build: mention ftp redirector in release announcements
22448         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
22449         values that used to come from cfg.mk; mention FTP redirect URL.
22450         * build-aux/announce-gen: Mention the mirror list.
22451         Suggested by Karl Berry.
22452
22453         nanosleep: improve port to mingw
22454         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
22455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
22456         LIB_NANOSLEEP, but only when needed.
22457         * modules/select (Link): Document LIBSOCKET.
22458         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
22459         enough.
22460
22461         nanosleep: work around cygwin bug
22462         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
22463         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
22464         bug.
22465         (getnow): Delete, not needed.
22466         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
22467         LIB_CLOCK_GETTIME.
22468         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
22469         clock-time, gettime.
22470         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
22471         bug.
22472         * modules/nanosleep-tests: New test.
22473         * tests/test-nanosleep.c: New file.
22474
22475         sleep: work around cygwin bug
22476         * lib/sleep.c (rpl_sleep): Work around the bug.
22477         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
22478         (gl_PREREQ_SLEEP): Delete unused macro.
22479         * modules/sleep (Depends-on): Add verify.
22480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22481         * modules/unistd (Makefile.am): Substitute witness.
22482         * lib/unistd.in.h (sleep): Update prototype.
22483         * doc/posix-functions/sleep.texi (sleep): Document the bug.
22484         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
22485         * modules/sleep-tests (Depends-on): Check for alarm.
22486
22487 2009-11-20  Jim Meyering  <meyering@redhat.com>
22488
22489         maint.mk: improve sc_prohibit_magic_number_exit
22490         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
22491         so it does not match uses like System.exit(1).
22492         Add comments showing how to correct all offenders.
22493
22494 2009-11-19  Eric Blake  <ebb9@byu.net>
22495
22496         xalloc-die-tests: add missing library
22497         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
22498
22499         test-xvasprintf: silence compiler warnings
22500         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
22501         empty string from gcc.
22502
22503 2009-11-19  Jim Meyering  <meyering@redhat.com>
22504
22505         xfreopen: new module, from coreutils
22506         * modules/xfreopen: New module.
22507         * lib/xfreopen.c: New file.
22508         * lib/xfreopen.h: New file.
22509         * MODULES.html.sh (File stream based Input/Output"): Add it.
22510
22511 2009-11-19  Eric Blake  <ebb9@byu.net>
22512
22513         manywarnings: depend on warnings
22514         * modules/manywarnings (Depends-on): Add warnings.
22515
22516         build: avoid compiler warnings
22517         * lib/select.c (rpl_select): Delete unused variable.
22518         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
22519
22520 2009-11-18  Eric Blake  <ebb9@byu.net>
22521
22522         tests: avoid false negative with --with-packager
22523         * tests/test-version-etc.sh: Discard packager information.
22524         * tests/test-argp-version-etc-1.sh: Likewise.
22525         Reported by Mike Frysinger.
22526
22527         utimens: fix regression on Solaris
22528         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
22529         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
22530         can only change fd timestamps via futimesat.  Instead, use an
22531         additional witness macro to avoid BSD bug.
22532         Reported by Jim Meyering.
22533
22534 2009-11-17  Eric Blake  <ebb9@byu.net>
22535
22536         usleep: use it to simplify tests
22537         * modules/stat-time-tests (Depends-on): Add usleep.
22538         (configure.ac): Drop usleep check.
22539         * modules/chown-tests (Depends-on, configure.ac): Likewise.
22540         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
22541         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
22542         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
22543         * modules/openat-tests (Depends-on, configure.ac): Likewise.
22544         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
22545         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
22546         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
22547         Likewise.
22548         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
22549         * tests/test-lchown.h (nap): Likewise.
22550         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
22551         * tests/test-stat-time.c (nap): Likewise.
22552         * tests/test-utimens-common.h (nap): Update comments.
22553
22554         usleep: new module
22555         * modules/usleep: New file.
22556         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22557         * lib/usleep.c (usleep): Likewise.
22558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
22559         * modules/unistd (Makefile.am): Substitute witnesses.
22560         * lib/unistd.in.h (usleep): Add declaration.
22561         * doc/pastposix-functions/usleep.texi (usleep): Document this.
22562         * MODULES.html.sh (Date and time): Likewise.
22563         * modules/usleep-tests (Depends-on): New test.
22564         * tests/test-usleep.c: New file.
22565
22566         chown: work around OpenBSD bug
22567         * lib/chown.c (rpl_chown): Work around the bug.
22568         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
22569         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
22570         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
22571         * modules/chown (Depends-on): Add stdbool.
22572         * modules/lchown (Depends-on): Likewise.
22573         * doc/posix-functions/chown.texi (chown): Document the bug.
22574         * doc/posix-functions/lchown.texi (lchown): Likewise.
22575         * tests/test-lchown.h (test_chown): Relax test.
22576
22577         mkstemp: avoid conflict with C++ keyword template
22578         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
22579         * lib/mkostemp.c (mkostemp): Likewise.
22580         * lib/mkostemps.c (mkostemps): Likewise.
22581         * lib/mkstemp.c (mkstemp): Likewise.
22582         * lib/mkstemps.c (mkstemps): Likewise.
22583
22584         xalloc-die-tests: optimize
22585         * tests/test-xalloc-die.sh: Reduce number of processes.
22586
22587 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22588
22589         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
22590         patch from ludo@gnu.org (Ludovic Courtès).
22591
22592 2009-11-17  Jim Meyering  <meyering@redhat.com>
22593
22594         version-etc: use proper license string
22595         * modules/version-etc (License): Use LGPL, not LGPLv3+.
22596         * modules/version-etc-fsf: Likewise.
22597
22598 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22599
22600         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
22601         printed to stdout.  Deal with EOL differences.
22602
22603 2009-11-17  Eric Blake  <ebb9@byu.net>
22604
22605         unsetenv: work around Solaris bug
22606         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
22607         * lib/unsetenv.c (rpl_unsetenv): Work around it.
22608         Reported by Jim Meyering.
22609
22610         vasnprintf: avoid compiler warnings
22611         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
22612         variables.
22613         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
22614
22615 2009-11-17  Simon Josefsson  <simon@josefsson.org>
22616
22617         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
22618         settings since xalloc-die is no longer the self test,
22619         xalloc-die.sh is.
22620
22621 2009-11-17  Jim Meyering  <meyering@redhat.com>
22622
22623         test-xalloc-die.sh: make the code agree with the commit log
22624         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
22625         at the end, just in case you happen to have a test-xalloc-die
22626         program in some other PATH directory.
22627
22628         test-xalloc-die.sh: fix a portability bug
22629         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
22630         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
22631         Otherwise, argv[0] (as often seen in diagnostics) would be too
22632         system-dependent, sometimes with, and sometimes without the leading "./".
22633
22634         version-etc-fsf: relax license to LGPLv3+
22635         * modules/version-etc-fsf (License): Relax license.
22636
22637 2009-11-16  Eric Blake  <ebb9@byu.net>
22638
22639         xalloc-die-tests: avoid printing null pointer
22640         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
22641         shell script.
22642         * tests/test-xalloc-die.c (program_name): Declare.
22643         * tests/test-xalloc-die.sh (tmpfiles): New file.
22644
22645         setenv, unsetenv: work around various bugs
22646         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
22647         (setenv) [HAVE_SETENV]: Work around bugs.
22648         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
22649         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
22650         for bugs.
22651         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
22652         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
22653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
22654         * modules/stdlib (Makefile.am): Update substitutions.
22655         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
22656         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
22657         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22658         * modules/setenv-tests: New test.
22659         * modules/unsetenv-tests: Likewise.
22660         * tests/test-setenv.c: New file.
22661         * tests/test-unsetenv.c: Likewise.
22662
22663 2009-11-16  Jim Meyering  <meyering@redhat.com>
22664
22665         version-etc: relax license to LGPLv3+
22666         * modules/version-etc (License): Relax license.
22667
22668         better AC_REQUIRE expanded-before-required-warning avoidance
22669         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
22670         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
22671         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
22672         which is no longer needed.
22673
22674 2009-11-16  Eric Blake  <ebb9@byu.net>
22675
22676         test-freading: clean up temporary file
22677         * tests/test-freading.c (main): Remove file on success, and use
22678         ASSERT more liberally.
22679         Reported by Jim Meyering.
22680
22681 2009-11-16  Jim Meyering  <meyering@redhat.com>
22682
22683         avoid new AC_REQUIRE expanded-before-required warnings
22684         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
22685         merely using it.
22686         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
22687         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
22688
22689 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22690
22691         * tests/test-xalloc-die.c: New file.
22692         * modules/xalloc-die-tests: New file.
22693         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
22694         XFAIL_TESTS so it can be appended by modules.
22695
22696 2009-11-15  Simon Josefsson  <simon@josefsson.org>
22697
22698         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
22699         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
22700
22701 2009-11-14  Eric Blake  <ebb9@byu.net>
22702
22703         fnmatch: avoid compiler warning
22704         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
22705         to silence compiler warning about mismatch signedness in ?:.
22706         Reported by Robert Millan.
22707
22708         intprops: add double-inclusion guard
22709         * lib/intprops.h: Allow idempotent includes.
22710         Suggested by Bruce Korb.
22711
22712         openat: detect Solaris fchownat bug
22713         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
22714         penalizing glibc chownat when only lchownat is broken.
22715         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
22716         trailing slash bugs.
22717         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
22718         * modules/openat-tests (Files): Include more files.
22719         (Depends-on): Add mgetgroups, sleep, stat-time.
22720         (configure.ac): Add additional checks.
22721         (Makefile.am): Build new test.
22722         * tests/test-fchownat.c: New file.
22723
22724         lchown: detect Solaris and FreeBSD bug
22725         * lib/lchown.c (rpl_lchown): Work around bug.
22726         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
22727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22728         * modules/unistd (Makefile.am): Populate it.
22729         * lib/unistd.in.h (lchown): Update declaration.
22730         * doc/posix-functions/lchown.texi (lchown): Document the bug.
22731         * modules/lchown-tests: New file.
22732         * tests/test-lchown.h (test_lchown): Likewise.
22733         * tests/test-lchown.c (main): Likewise.
22734
22735         chown: detect Solaris and FreeBSD bug
22736         * lib/chown.c (rpl_chown): Work around bug.
22737         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
22738         (gl_PREREQ_CHOWN): Delete.
22739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
22740         * modules/unistd (Makefile.am): Populate it.
22741         * lib/unistd.in.h (chown): Update declaration.
22742         * lib/lchown.c (chown): Update client.
22743         * modules/lchown (Depends-on): Add lstat.
22744         * doc/posix-functions/chown.texi (chown): Document the bug.
22745         * doc/posix-functions/getgroups.texi (getgroups): Document
22746         getgroups pitfall.
22747         * modules/chown-tests: New file.
22748         * tests/test-chown.h (test_chown): Likewise.
22749         * tests/test-chown.c (main): Likewise.
22750
22751 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
22752
22753         gnulib-tool: correctly detect absence of m4 directories
22754         * gnulib-tool: Avoid extra newline on data passed to wc -l.
22755
22756 2009-11-14  Jim Meyering  <meyering@redhat.com>
22757
22758         maint.mk: Prohibit inclusion of "xalloc.h" without use.
22759         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
22760
22761 2009-11-14  John W. Eaton  <jwe@gnu.org>
22762
22763         strftime.h: wrap funtion declaration in extern "C" block
22764         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
22765
22766 2009-11-13  Eric Blake  <ebb9@byu.net>
22767
22768         getgroups: avoid compiler warning
22769         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
22770
22771         getgroups: work around FreeBSD bug
22772         * lib/getgroups.c (rpl_getgroups): Work around the bug.
22773         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
22774         * doc/posix-functions/getgroups.texi (getgroups): Document it.
22775         * tests/test-getgroups.c (main): Fix buffer overrun.
22776
22777         getgroups: avoid compilation failure
22778         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
22779         * modules/getgroups (Depends-on): Add stdint.
22780
22781 2009-11-13  Jim Meyering  <meyering@redhat.com>
22782
22783         test-getgroups: avoid compilation failure
22784         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
22785
22786 2009-11-13  Eric Blake  <ebb9@byu.net>
22787
22788         mgetgroups: new module, taken from coreutils
22789         * modules/mgetgroups: New file.
22790         * lib/mgetgroups.h: Likewise.
22791         * lib/mgetgroups.c (mgetgroups): Likewise.
22792         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
22793         * MODULES.html.sh (Users and groups): Mention it.
22794
22795         getgroups: don't expose GETGROUPS_T to user
22796         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
22797         an element at a time if GETGROUPS_T is wrong size.
22798         * lib/getugroups.h (getugroups): Change signature.
22799         * lib/unistd.in.h (getgroups): Likewise.
22800         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
22801         signature needs fixing.
22802         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
22803         AC_TYPE_GETGROUPS.
22804         * modules/group-member (Depends-on): Add getgroups.
22805         * lib/group-member.c (group_info, get_group_info): Use gid_t.
22806         (group_member): Rely on getgroups replacement.
22807         * lib/getugroups.c (getugroups): Use gid_t.
22808         * tests/test-getgroups.c (main): Likewise.
22809         * NEWS: Mention the signature change.
22810         * doc/posix-functions/getgroups.texi (getgroups): Mention the
22811         problem with signature.
22812         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
22813         GETGROUPS_T is still useful for setgroups.
22814
22815         getgroups, getugroups: provide stubs for mingw
22816         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
22817         * lib/getugroups.c (getugroups): Likewise.
22818         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
22819         function.  Modernize replacement scheme.
22820         (gl_PREREQ_GETGROUPS): Delete.
22821         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
22822         * modules/getgroups (configure.ac): Declare witness.
22823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
22824         * modules/unistd (Depends-on): Substitute witness.
22825         * lib/unistd.in.h (getgroups): Declare replacement.
22826
22827         getgroups: avoid calling exit
22828         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
22829         drop xalloc.
22830         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
22831         dependencies.
22832         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
22833         exiting, in the rare case of malloc failure.
22834
22835         getgroups: fix logic error
22836         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
22837         has more than 20 groups.
22838         * modules/getgroups-tests: New test.
22839         * tests/test-getgroups.c: New file.
22840
22841 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22842
22843         * tests/test-base64.c: Improve.
22844
22845 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22846
22847         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
22848         Blake <ebb9@byu.net>.
22849
22850 2009-11-13  Simon Josefsson  <simon@josefsson.org>
22851
22852         * tests/test-xvasprintf.c: Add %s%s related checks.
22853
22854 2009-11-12  Eric Blake  <ebb9@byu.net>
22855
22856         version-etc: match standards.texi style
22857         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
22858         and use <> only for URLs.
22859
22860 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
22861
22862         fts: do not fail on a submount during traversal
22863         * lib/fts.c (fts_build): Read the stat info again after opening
22864         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
22865         Original report at http://bugzilla.redhat.com/501848.
22866
22867 2009-11-12  Jim Meyering  <meyering@redhat.com>
22868
22869         bootstrap: sync from coreutils
22870         * build-aux/bootstrap (bootstrap_epilogue): New function.
22871         Use git_modules_config in one more place.  This make bootstrap's
22872         --gnulib-srcdir option more useful for testing.
22873
22874         bootstrap: generalize autoheader check
22875         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
22876         AC_CONFIG_HEADERS.
22877
22878 2009-11-11  Eric Blake  <ebb9@byu.net>
22879
22880         mkfifoat: use new modules for Solaris and BSD bugs
22881         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
22882         * lib/mkfifoat.c (mknodat): Split...
22883         * lib/mknodat.c (mknodat): ...into new file.
22884         * modules/mkfifoat (Files): Ship new file.
22885         (Depends-on): Add mkfifo, mknod.
22886         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
22887         (Depends-on): Add symlink.
22888         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
22889         redundant with test_mkfifo.h.
22890         (do_mkfifoat, do_mknodat): New helpers.
22891
22892         mknod: new module
22893         * modules/mknod: New file.
22894         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
22895         * lib/mknod.c (mknod): Likewise.
22896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22897         defaults.
22898         * modules/sys_stat (Makefile.am): Substitute them.
22899         * lib/sys_stat.in.h (mknod): Declare replacement.
22900         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22901         Document it.
22902         * doc/posix-functions/mknod.texi (mknod): Likewise.
22903         * modules/mknod-tests: New test.
22904         * tests/test-mknod.c: Likewise.
22905
22906         mkfifo: new module
22907         * modules/mkfifo: New file.
22908         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22909         * lib/mkfifo.c (mkfifo): Likewise.
22910         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
22911         defaults.
22912         * modules/sys_stat (Makefile.am): Substitute them.
22913         * lib/sys_stat.in.h (mkfifo): Declare replacement.
22914         * MODULES.html.sh (Support for systems lacking POSIX:2008):
22915         Document it.
22916         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
22917         * modules/mkfifo-tests: New test.
22918         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
22919         from test-mkfifoat.c.
22920         * tests/test-mkfifo.c: New file.
22921
22922         readlink: detect FreeBSD bug
22923         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
22924         slash on symlink.
22925         * doc/posix-functions/readlink.texi (readlink): Document the bug.
22926         * tests/test-readlink.h (test_readlink): Enhance test.
22927
22928         symlink: detect FreeBSD bug
22929         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
22930         slash on symlink.
22931         * doc/posix-functions/symlink.texi (symlink): Document the bug.
22932         * tests/test-symlink.h (test_symlink): Enhance test.
22933
22934 2009-11-10  Eric Blake  <ebb9@byu.net>
22935
22936         link: detect FreeBSD bug
22937         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
22938         symlink.
22939         * doc/posix-functions/link.texi (link): Document the bug.
22940         * tests/test-link.h (test_link): Enhance test.
22941         * tests/test-linkat.c (main): Update caller.
22942
22943         unlink, remove: detect FreeBSD bug
22944         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
22945         slash on symlink.
22946         * doc/posix-functions/unlink.texi (unlink): Document the bug.
22947         * doc/posix-functions/remove.texi (remove): Likewise.
22948         * tests/test-unlink.h (test_unlink): Enhance test.
22949         * tests/test-remove.c (main): Likewise.
22950
22951 2009-11-09  Eric Blake  <ebb9@byu.net>
22952
22953         rename: detect FreeBSD bug
22954         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
22955         slash on symlink.
22956         * modules/renameat-tests (Depends-on): Add filenamecat.
22957         * tests/test-rename.h (test_rename): Allow one more errno.
22958         * tests/test-renameat.c (main): Likewise.
22959         * doc/posix-functions/rename.texi (rename): Document the bug.
22960
22961         open: detect FreeBSD bug
22962         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
22963         symlink.
22964         * doc/posix-functions/open.texi (open): Document the bug.
22965         * doc/posix-functions/utimes.texi (utimes): Likewise.
22966         * tests/test-open.h (test_open): Add parameters, and test symlink
22967         handling.
22968         * tests/test-open.c (main): Adjust caller.
22969         * tests/test-fcntl-safer.c (main): Likewise.
22970         * modules/open-tests (Depends-on): Add stdbool, symlink.
22971         * modules/fcntl-safer-tests (Depends-on): Likewise.
22972         * tests/test-openat.c (main): Add test-open tests.
22973
22974         stat: detect FreeBSD bug
22975         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
22976         symlink.
22977         * doc/posix-functions/stat.texi (stat): Document the bug.
22978         * tests/test-stat.h (test_stat_func): Add argument.
22979         * tests/test-stat.c (main): Adjust caller.
22980         * tests/test-fstatat.c (main): Likewise.
22981         * modules/stat-tests (Depends-on): Add stdbool, symlink.
22982         Reported by Jim Meyering.
22983
22984 2009-11-09  James Youngman  <jay@gnu.org>
22985
22986         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
22987         * lib/strftime.c: Correct placement of #include "ignore-value.h".
22988
22989 2009-11-08  Jim Meyering  <meyering@redhat.com>
22990
22991         utimens: remove invalid futimesat call
22992         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
22993         It used the file descriptor of the target file as the DIR_FD
22994         parameter and NULL as the file name.  That caused failure with
22995         errno == EFAULT on FreeBSD-8.0-rc2
22996
22997 2009-11-07  Eric Blake  <ebb9@byu.net>
22998
22999         fflush, freadseek: use fseeko, not fseek
23000         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
23001         (clear_ungetc_buffer): Avoid potential problems on large files.
23002         * lib/freadseek.c (freadseek): Likewise.
23003         * modules/freadseek (Depends-on): Add fseeko.
23004         * modules/fseek (configure.ac): Set a witness.
23005         * tests/test-fflush.c (main): Use fseeko.
23006         * tests/test-fpurge.c (fseek): Disable link warning.
23007         * tests/test-freadable.c (fseek): Likewise.
23008         * tests/test-freading.c (fseek): Likewise.
23009         * tests/test-fseeko.c (fseek): Likewise.
23010         * tests/test-ftell.c (fseek): Likewise.
23011         * tests/test-ftello.c (fseek): Likewise.
23012         * tests/test-fwritable.c (fseek): Likewise.
23013         * tests/test-fwriting.c (fseek): Likewise.
23014
23015 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23016
23017         * modules/memchr (Depends-on): Drop getpagesize dependency.
23018
23019 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23020
23021         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
23022         Reported by Ludovic Courtès.
23023         * build-aux/pmccabe2html: Improve example usage.
23024         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
23025
23026 2009-11-06  Jim Meyering  <meyering@redhat.com>
23027
23028         do-release-commit-and-tag: New module.
23029         Automate the release-commit and tag process.
23030         * build-aux/do-release-commit-and-tag: New script, from coreutils.
23031         * modules/do-release-commit-and-tag: New file.
23032         * MODULES.html.sh (Support for maintaining and releasing): Add it.
23033
23034 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23035
23036         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
23037         because test-select.c uses inet_pton.
23038
23039 2009-11-06  Simon Josefsson  <simon@josefsson.org>
23040
23041         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
23042         GETADDRINFO_LIB.  Bump serial number.
23043         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
23044         Suggested by Eric Blake <ebb9@byu.net>.
23045
23046 2009-11-05  Eric Blake  <ebb9@byu.net>
23047
23048         strtod: detect darwin bug
23049         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
23050         Reported by Leo Davis.
23051
23052         freopen-safer: new module
23053         * modules/freopen-safer: New module.
23054         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
23055         * lib/freopen-safer.c (freopen_safer): New file.
23056         * lib/stdio-safer.h (freopen_safer): New declaration.
23057         * lib/stdio--.h (freopen): New override.
23058         * MODULES.html.sh (File stream based Input/Output): Mention it.
23059         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
23060         freopen-safer module.
23061         * doc/posix-functions/stderr.texi (stderr): Likewise.
23062         * doc/posix-functions/stdin.texi (stdin): Likewise.
23063         * doc/posix-functions/stdout.texi (stdout): Likewise.
23064         * modules/freopen-safer-tests: New test.
23065         * tests/test-reopen-safer.c: New file.
23066
23067 2009-11-05  Jim Meyering  <meyering@redhat.com>
23068
23069         maint.mk: Prohibit inclusion of "close-stream.h" without use.
23070         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
23071
23072 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23073
23074         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
23075
23076 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23077
23078         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
23079
23080 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23081
23082         Fix link error.
23083         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23084         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23085
23086 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23087
23088         * tests/test-func.c: Also test value of __func__.
23089
23090 2009-11-05  Simon Josefsson  <simon@josefsson.org>
23091
23092         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
23093         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
23094
23095 2009-11-05  Bruno Haible  <bruno@clisp.org>
23096
23097         Fix link error.
23098         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
23099         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23100         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
23101
23102 2009-11-05  Bruno Haible  <bruno@clisp.org>
23103
23104         Tests for module 'inet_pton'.
23105         * modules/inet_pton-tests: New file.
23106         * tests/test-inet_pton.c: New file.
23107
23108 2009-11-05  Bruno Haible  <bruno@clisp.org>
23109
23110         Tests for module 'inet_ntop'.
23111         * modules/inet_ntop-tests: New file.
23112         * tests/test-inet_ntop.c: New file.
23113
23114 2009-11-04  Eric Blake  <ebb9@byu.net>
23115
23116         stdlib-safer: wrap all mkstemp variants
23117         * modules/mkostemp (configure.ac): Set witness.
23118         * modules/mkostemps (configure.ac): Likewise.
23119         * modules/mkstemps (configure.ac): Likewise.
23120         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
23121         (mkstemps_safer): Wrap more functions.
23122         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
23123         wrapping.
23124         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
23125         (mkstemps_safer): Implement the wrappers.
23126
23127         mkstemps, mkostemps: new modules
23128         * modules/mkostemps: New module.
23129         * modules/mkstemps: Likewise.
23130         * lib/mkostemps.c (mkostemps): New file.
23131         * lib/mkstemps.c (mkstemps): Likewise.
23132         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
23133         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
23134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
23135         * modules/stdlib (Makefile.am): Substitute them.
23136         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
23137         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
23138         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23139         * doc/gnulib.texi (Glibc stdlib.h): Include them.
23140         * MODULES.html.sh (File system functions): Mention them.
23141
23142         tempname: resync from glibc
23143         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
23144         same values for __GT_FILE as glibc.  Abort even when assertions
23145         are disabled.
23146         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
23147         match its value otherwise.  Allow idempotent inclusion.
23148         * lib/mkdtemp.c (mkdtemp): Adjust caller.
23149         * lib/mkostemp.c (mkostemp): Likewise.
23150         * lib/mkstemp.c (mkstemp): Likewise.
23151         * lib/tmpfile.c (tmpfile): Likewise.
23152         * NEWS: Document this.
23153
23154         utimens: fix use of futimens on older Linux
23155         * lib/utimens.c (fdutimens): Use updated, rather than original,
23156         timespec to avoid bug in older Linux kernel.
23157         Reported by Simon Josefsson.
23158
23159 2009-11-04  Bruno Haible  <bruno@clisp.org>
23160
23161         Make num_processors more flexible and consistent.
23162         * lib/nproc.h (enum nproc_query): New type.
23163         (num_processors): Add a 'query' argument.
23164         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
23165         (num_processors): Add a 'query' argument. Test the value of the
23166         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
23167         mingw, count the number of CPUs available for the current process.
23168         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
23169         Check for sched_getaffinity and sched_getaffinity_np.
23170         * modules/nproc (Depends-on): Add c-ctype, extensions.
23171         * NEWS: Mention the change.
23172
23173 2009-11-03  Bruno Haible  <bruno@clisp.org>
23174
23175         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
23176
23177 2009-11-03  Jim Meyering  <meyering@redhat.com>
23178
23179         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
23180         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
23181         if it is defined.
23182
23183 2009-11-02  Eric Blake  <ebb9@byu.net>
23184
23185         mktime, timegm: share common declaration
23186         * lib/mktime-internal.h: New file.
23187         * lib/mktime.c: Use it rather than open-coding a declaration.
23188         * lib/timegm.c: Likewise.
23189         * modules/mktime (Files): Ship it.
23190         * modules/timegm (Files): Likewise.
23191         Suggested by Bruno Haible.
23192
23193         test-update-copyright: update test to match script changes
23194         * tests/test-update-copyright.sh: Avoid hard-coding perl
23195         location.  Don't update *.bak created by earlier runs.
23196
23197 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
23198             Simon Josefsson  <simon@josefsson.org>
23199             Bruno Haible  <bruno@clisp.org>
23200
23201         Fix link error on Solaris 8.
23202         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
23203         also in libnsl. Define also INET_PTON_LIB.
23204         * modules/inet_pton (Link): New section.
23205
23206 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23207             Bruno Haible  <bruno@clisp.org>
23208
23209         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
23210         * modules/inet_ntop (Link): New section.
23211         Reported by Boyan Kasarov <bkasarov@gmail.com>.
23212
23213 2009-11-02  Eric Blake  <ebb9@byu.net>
23214
23215         maint: avoid compiler warnings in m4 macros
23216         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
23217         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
23218
23219 2009-11-02  Simon Josefsson  <simon@josefsson.org>
23220
23221         * m4/pmccabe2html.m4: Remove file.
23222         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
23223         function.  Change maintainer.
23224         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
23225         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
23226         Courtès).
23227
23228 2009-10-31  Eric Blake  <ebb9@byu.net>
23229
23230         fseeko: fix m4 regression
23231         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
23232         regression from 2009-10-27.
23233         Reported by Ralf Wildenhues.
23234
23235 2009-10-31  Jim Meyering  <meyering@redhat.com>
23236
23237         inttostr: aesthetics and improved (compile-time) safety
23238         Define inttype_is_signed rather than inttype_is_unsigned,
23239         since the sole use is via "#if inttype_is_signed".
23240         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
23241         inttype_is_unsigned.
23242         * lib/offtostr.c (inttype_is_signed): Likewise.
23243         * lib/uinttostr.c (inttype_is_signed): Likewise.
23244         * lib/umaxtostr.c (inttype_is_signed): Likewise.
23245         * lib/inttostr.c (inttostr): Use verify to cross-check the
23246         inttype_is_signed value and the signedness of the actual type.
23247         * modules/inttostr (Depends-on): Add verify.
23248
23249 2009-10-30  Eric Blake  <ebb9@byu.net>
23250
23251         build: avoid compiler warnings
23252         * lib/fchmodat.c (lchmod): Mark unused variables.
23253         * lib/getopt.c (_getopt_initialize): Likewise.
23254         * lib/mktime.c (__mktime_internal): Provide prototype.
23255         * lib/inttostr.c (inttostr): Avoid compiler warning even with
23256         older gcc that do not understand #pragma GCC diagnostic.
23257         * lib/uinttostr.c (inttype_is_unsigned): Define.
23258         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
23259
23260 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23261
23262         stat: fix compilation on AIX
23263         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
23264         only see struct stat64.
23265
23266 2009-10-30  Eric Blake  <ebb9@byu.net>
23267
23268         exclude: make more robust
23269         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
23270         rather than masking a coding bug.
23271         Suggested by Bruno Haible.
23272
23273 2009-10-30  Jim Meyering  <meyering@redhat.com>
23274
23275         perl scripts: remove #!/usr/bin/perl in favor of more portable...
23276         Rather than putting #!/usr/bin/perl on the first line,
23277         start with a variant of what's recommended by "man perlrun" that
23278         invokes the first "perl" program from your shell's search path.
23279         * build-aux/gitlog-to-changelog: Replace #!... as above.
23280         Add a "Local Variables" perl mode setting.
23281         Prompted by a patch from Ludovic Courtès.
23282         Improved by Eric Blake.
23283         * build-aux/useless-if-before-free: Likewise.
23284         * build-aux/announce-gen: Likewise.
23285         * build-aux/update-copyright: Likewise.
23286
23287 2009-10-29  Eric Blake  <ebb9@byu.net>
23288
23289         filenamecat-lgpl: adjust clients
23290         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
23291         filenamecat.
23292         * modules/renameat (Depends-on): Likewise.
23293
23294         filenamecat: split into filenamecat-lgpl
23295         * modules/filenamecat-lgpl: New module.
23296         * modules/filenamecat (Files): Move library-safe files into
23297         filenamecat-lgpl.
23298         (Depends-on): Add filenamecat-lgpl.
23299         (configure.ac): Declare witness.
23300         * lib/filenamecat.h (file_name_concat): Only declare when using
23301         GPL module.
23302         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
23303         Move...
23304         * lib/filenamecat-lgpl.c: ...into new file.
23305         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
23306         (gl_FILE_NAME_CONCAT): Use it.
23307         * MODULES.html.sh (File system functions): Mention new module.
23308
23309         argp: avoid memory leak
23310         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
23311         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
23312         base_name, since the latter malloc()s and can call exit().
23313         Leak introduced 2006-07-03.
23314
23315         dirname-lgpl: adjust clients that don't need full dirname
23316         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
23317         * modules/filenamecat (Depends-on): Likewise.
23318         * modules/linkat (Depends-on): Likewise.
23319         * modules/mkancesdirs (Depends-on): Likewise.
23320         * modules/mkdir (Depends-on): Likewise.
23321         * modules/openat (Depends-on): Likewise.
23322         * modules/savewd (Depends-on): Likewise.
23323         * modules/rename (Depends-on): Likewise.
23324         (License): Relax license.
23325         * modules/mkdir-tests (Depends-on): Drop progname.
23326         (Makefile.am): Delete unneeded LDADD.
23327         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
23328
23329         dirname: split into dirname-lgpl
23330         * modules/dirname-lgpl: New module.
23331         * modules/dirname (Files): Move library-safe files into
23332         dirname-lgpl.
23333         (Depends-on): Add dirname-lgpl.
23334         (configure.ac): Declare witness.
23335         * modules/double-slash-root (License): Relax license.
23336         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
23337         module.
23338         * lib/dirname.c (dir_len, mdir_name): Move...
23339         * lib/dirname-lgpl.c: ...into new file.
23340         * lib/basename.c (last_component, base_len): Move...
23341         * lib/basename-lgpl.c: ...into new file.
23342         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
23343         (gl_DIRNAME): Use it.
23344         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
23345         Mention new module.
23346         * modules/dirname-tests (Depends-on): Add progname.
23347         * tests/test-dirname.c (program_name): Delete.
23348
23349         mkdir: make safe for libraries
23350         * modules/mkdir (Depends-on): Drop xalloc.
23351         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
23352         exit.
23353
23354         tests: avoid some compiler warnings
23355         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
23356         literals.
23357         * tests/test-memchr.c (main): Avoid type mismatch.
23358         * tests/test-arpa_inet.c (main): Avoid unused parameters.
23359         * tests/test-base64.c (main): Likewise.
23360         * tests/test-getdelim.c (main): Likewise.
23361         * tests/test-gethostname.c (main): Likewise.
23362         * tests/test-getline.c (main): Likewise.
23363         * tests/test-netinet_in.c (main): Likewise.
23364         * tests/test-select.c (open_server_socket, main): Likewise.
23365         * tests/test-select-stdin.c (main): Likewise.
23366         * tests/test-sockets.c (main): Likewise.
23367         * tests/test-strsignal.c (main): Likewise.
23368         * tests/test-sys_select.c (main): Likewise.
23369         * tests/test-sys_socket.c (main): Likewise.
23370         * tests/test-u64.c (main): Likewise.
23371         * tests/test-xfprintf-posix.c (main): Likewise.
23372         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
23373
23374         sockets: avoid compiler warning
23375         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
23376
23377         maint: detect usage(1) and other suspicious exits
23378         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
23379
23380 2009-10-29  Jim Meyering  <meyering@redhat.com>
23381
23382         timespec: long-to-int truncation could make timespec_cmp malfunction
23383         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
23384         a multiple of 2^32 nanoseconds as no difference.
23385
23386 2009-10-28  Jim Meyering  <meyering@redhat.com>
23387
23388         fprintftime: wrap macro code argument in "do {...} while(0)"
23389         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
23390         cpy macro must be a statement that can be followed by a semicolon.
23391         Now that the else clause contains a comment and is hence longer
23392         than one line, I require curly braces.  That in turn requires
23393         that we wrap this code block in the standard do...while(0).
23394
23395         fprintftime: remove stray semicolon from previous change
23396         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
23397
23398         fprintftime: avoid a warning about ignored fwrite return value
23399         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
23400         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
23401         that is unsafe.
23402         * modules/fprintftime (Depends-on): Add ignore-value.
23403
23404         exclude: avoid an unwarranted warning
23405         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
23406
23407 2009-10-27  Eric Blake  <ebb9@byu.net>
23408
23409         fseek: avoid compilation failure when fflush is replaced
23410         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
23411         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
23412         module is in use.
23413         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
23414         module is not in use; since REPLACE_FSEEK worked otherwise.
23415         (GNULIB_FTELLO): Likewise for ftell.
23416         Reported by Ian Beckwith and others.
23417
23418 2009-10-27  Bruno Haible  <bruno@clisp.org>
23419
23420         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
23421         Reported by Jim Meyering.
23422
23423 2009-10-27  Jim Meyering  <jim@meyering.net>
23424             Bruno Haible  <bruno@clisp.org>
23425
23426         Avoid warning despite dropping the return value of fwrite.
23427         * lib/unicodeio.c: Include ignore-value.h.
23428         (fwrite_success_callback): Explicitly ignore fwrite's return value.
23429         * modules/unicodeio (Depends-on): Add ignore-value.
23430
23431 2009-10-26  Eric Blake  <ebb9@byu.net>
23432
23433         areadlinkat: fix fallback path
23434         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
23435         pointer and zero.
23436
23437 2009-10-22  Pádraig Brady  <P@draigBrady.com>
23438
23439         Use a better IO block size for modern systems
23440         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
23441         * lib/md2.c: Likewise.
23442         * lib/md4.c: Likewise.
23443         * lib/md5.c: Likewise.
23444         * lib/sha1.c: Likewise.
23445         * lib/sha256.c: Likewise.
23446         * lib/sha512.c: Likewise.
23447
23448 2009-10-22  Eric Blake  <ebb9@byu.net>
23449
23450         tests: avoid several compiler warnings
23451         * tests/test-getcwd.c (main): Avoid buffer underflow.
23452         * tests/test-getdate.c (main): String literals are not safe with
23453         putenv, so use setenv.  Declare unused argument.
23454         * modules/getdate-tests (Depends-on): Add setenv.
23455         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
23456         problems with string literals in char *.
23457         * tests/test-hash.c (main): Avoid shadowing declaration.
23458         (insert_new): Treat string literals as char const *.
23459         * tests/test-getopt.h (test_getopt): Likewise.
23460         (getopt_loop): Alter types to minimize casting elsewhere.
23461         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
23462         (test_getopt_long_posix): Likewise.
23463         (do_getopt_long): Add wrapper to minimize casting.
23464         * tests/test-atexit.c (clear_temp_file): Use void.
23465         * tests/test-areadlink-with-size.c (main): Declare unused
23466         arguments.
23467         * tests/test-areadlink.c (main): Likewise.
23468         * tests/test-areadlinkat-with-size.c (main): Likewise.
23469         * tests/test-areadlinkat.c (main): Likewise.
23470         * tests/test-canonicalize-lgpl.c (main): Likewise.
23471         * tests/test-canonicalize.c (main): Likewise.
23472         * tests/test-dirent-safer.c (main): Likewise.
23473         * tests/test-dirname.c (main): Likewise.
23474         * tests/test-dup2.c (main): Likewise.
23475         * tests/test-fchdir.c (main): Likewise.
23476         * tests/test-fcntl-h.c (main): Likewise.
23477         * tests/test-fcntl-safer.c (main): Likewise.
23478         * tests/test-fdopendir.c (main): Likewise.
23479         * tests/test-fdutimensat.c (main): Likewise.
23480         * tests/test-fflush.c (main): Likewise.
23481         * tests/test-filenamecat.c (main): Likewise.
23482         * tests/test-filevercmp.c (main): Likewise.
23483         * tests/test-fopen-safer.c (main): Likewise.
23484         * tests/test-fopen.c (main): Likewise.
23485         * tests/test-fpending.c (main): Likewise.
23486         * tests/test-fpurge.c (main): Likewise.
23487         * tests/test-freading.c (main): Likewise.
23488         * tests/test-fstatat.c (main): Likewise.
23489         * tests/test-fsync.c (main): Likewise.
23490         * tests/test-futimens.c (main): Likewise.
23491         * tests/test-getndelim2.c (main): Likewise.
23492         * tests/test-gettimeofday.c (main): Likewise.
23493         * tests/test-getopt.c (main): Likewise.
23494         * tests/test-i-ring.c (main): Likewise.
23495         * tests/test-inttypes.c (main): Likewise.
23496         * tests/test-link.c (main): Likewise.
23497         * tests/test-lstat.c (main): Likewise.
23498         * tests/test-math.c (main): Likewise.
23499         * tests/test-md5.c (main): Likewise.
23500         * tests/test-memchr2.c (main): Likewise.
23501         * tests/test-memrchr.c (main): Likewise.
23502         * tests/test-mkdir.c (main): Likewise.
23503         * tests/test-mkdirat.c (main): Likewise.
23504         * tests/test-mkfifoat.c (main): Likewise.
23505         * tests/test-open.c (main): Likewise.
23506         * tests/test-openat-safer.c (main): Likewise.
23507         * tests/test-openat.c (main): Likewise.
23508         * tests/test-quotearg.c (main): Likewise.
23509         * tests/test-rawmemchr.c (main): Likewise.
23510         * tests/test-readlink.c (main): Likewise.
23511         * tests/test-remove.c (main): Likewise.
23512         * tests/test-rename.c (main): Likewise.
23513         * tests/test-renameat.c (main): Likewise.
23514         * tests/test-rmdir.c (main): Likewise.
23515         * tests/test-sha1.c (main): Likewise.
23516         * tests/test-signal.c (main): Likewise.
23517         * tests/test-sigaction.c (main): Likewise.
23518         * tests/test-stat.c (main): Likewise.
23519         * tests/test-stat-time.c (main): Likewise.
23520         * tests/test-stddef.c (main): Likewise.
23521         * tests/test-stdint.c (main): Likewise.
23522         * tests/test-stdio.c (main): Likewise.
23523         * tests/test-stdlib.c (main): Likewise.
23524         * tests/test-strchrnul.c (main): Likewise.
23525         * tests/test-strerror.c (main): Likewise.
23526         * tests/test-string.c (main): Likewise.
23527         * tests/test-strtod.c (main): Likewise.
23528         * tests/test-strverscmp.c (main): Likewise.
23529         * tests/test-symlink.c (main): Likewise.
23530         * tests/test-symlinkat.c (main): Likewise.
23531         * tests/test-sys_stat.c (main): Likewise.
23532         * tests/test-sys_time.c (main): Likewise.
23533         * tests/test-time.c (main): Likewise.
23534         * tests/test-unistd.c (main): Likewise.
23535         * tests/test-unlink.c (main): Likewise.
23536         * tests/test-unlinkat.c (main): Likewise.
23537         * tests/test-utimens.c (main): Likewise.
23538         * tests/test-utimensat.c (main): Likewise.
23539         * tests/test-version-etc.c (main): Likewise.
23540         * tests/test-wchar.c (main): Likewise.
23541         * tests/test-wctype.c (main): Likewise.
23542         * tests/test-xprintf-posix.c (main): Likewise.
23543         * tests/test-posixtm.c (main): Likewise.
23544         (STREQ): Delete unused macro.
23545         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
23546         shadowed variables.
23547         * tests/test-memchr.c (main): Likewise.
23548
23549 2009-10-21  Eric Blake  <ebb9@byu.net>
23550
23551         areadlinkat: avoid failure on older glibc
23552         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
23553         rather than mis-comparing 0 against FUNC_RESULT of char*.
23554
23555 2009-10-21  Bruno Haible  <bruno@clisp.org>
23556
23557         * modules/stpncpy (License): Relicense under LGPLv2+.
23558         Reported by David Lutterkort <lutter@redhat.com>.
23559
23560 2009-10-20  Eric Blake  <ebb9@byu.net>
23561
23562         utimensat: work around Solaris 9 bug
23563         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
23564         has trailing slash bugs.
23565         * tests/test-lutimens.h (test_lutimens): Enhance test.
23566         * tests/test-utimens.h (test_utimens): Likewise.
23567         * doc/posix-functions/utime.texi (utime): Enhance documentation.
23568         * doc/posix-functions/utimes.texi (utimes): Likewise.
23569         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23570         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
23571         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
23572         * doc/posix-functions/futimens.texi (futimens): Likewise.
23573
23574         fdutimensat: new module
23575         * modules/fdutimensat: New file.
23576         * lib/fdutimensat.c (fdutimensat): Likewise.
23577         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
23578         * MODULES.html.sh (File system functions): Mention module.
23579         * modules/fdutimensat-tests: New test.
23580         * tests/test-fdutimensat.c: Likewise.
23581
23582         doc: regenerate INSTALL
23583         * doc/INSTALL: Reflect recent autoconf update.
23584         * doc/INSTALL.ISO: Likewise.
23585         * doc/INSTALL.UTF-8: Likewise.
23586
23587 2009-10-20  Pádraig Brady  <P@draigBrady.com>
23588
23589         acl: warn if ACL support is not detected
23590         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
23591
23592 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
23593
23594         * lib/nproc.h: Add extern "C" block for C++.
23595
23596 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
23597             Bruno Haible  <bruno@clisp.org>
23598
23599         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
23600         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
23601         * doc/posix-functions/isalpha.texi: Likewise.
23602         * doc/posix-functions/isblank.texi: Likewise.
23603         * doc/posix-functions/iscntrl.texi: Likewise.
23604         * doc/posix-functions/isdigit.texi: Likewise.
23605         * doc/posix-functions/isgraph.texi: Likewise.
23606         * doc/posix-functions/islower.texi: Likewise.
23607         * doc/posix-functions/isprint.texi: Likewise.
23608         * doc/posix-functions/ispunct.texi: Likewise.
23609         * doc/posix-functions/isspace.texi: Likewise.
23610         * doc/posix-functions/isupper.texi: Likewise.
23611         * doc/posix-functions/isxdigit.texi: Likewise.
23612
23613 2009-10-18  Bruno Haible  <bruno@clisp.org>
23614
23615         Tests for module 'isblank'.
23616         * modules/isblank-tests: New file.
23617         * tests/test-isblank.c: New file.
23618
23619         New module 'isblank'.
23620         * lib/isblank.c: New file.
23621         * m4/isblank.m4: New file.
23622         * modules/isblank: New file.
23623         * doc/posix-functions/isblank.texi: Mention the new module.
23624
23625 2009-10-18  Bruno Haible  <bruno@clisp.org>
23626
23627         New module 'ctype'.
23628         * lib/ctype.in.h: New file.
23629         * m4/ctype.m4: New file.
23630         * modules/ctype: New file.
23631         * doc/posix-headers/ctype.texi: Mention the new module.
23632
23633 2009-10-18  Jim Meyering  <meyering@redhat.com>
23634
23635         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
23636         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
23637         right after its initialization, rather than farther down.
23638         Keeping these in close proximity makes it easier to ensure
23639         that each such variable is initialized.  E.g.,
23640
23641             LIB_CLOCK_GETTIME=
23642             AC_SUBST([LIB_CLOCK_GETTIME])
23643
23644         This change also increments these serial numbers.
23645         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
23646         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23648
23649 2009-10-18  Bruno Haible  <bruno@clisp.org>
23650
23651         Don't let environment variables perturb build.
23652         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
23653         (gl_PREREQ_GETHRXTIME): ... not here.
23654
23655 2009-10-18  Bruno Haible  <bruno@clisp.org>
23656
23657         Avoid symlink attack in localcharset module.
23658         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
23659         (O_NOFOLLOW): Define fallback.
23660         (get_charset_aliases): Don't open the file if it is a symbolic link.
23661         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
23662         gl_FCNTL_H.
23663         (gl_FCNTL_H): Require it.
23664         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
23665         * modules/localcharset (Files): Add m4/fcntl_h.m4.
23666         Reported by Fergal Glynn <fglynn@veracode.com>.
23667
23668 2009-10-18  Bruno Haible  <bruno@clisp.org>
23669
23670         Implement nproc for mingw.
23671         * lib/nproc.c: Include <windows.h>
23672         (num_processors): On native Windows platforms, try GetSystemInfo.
23673
23674 2009-10-18  Bruno Haible  <bruno@clisp.org>
23675
23676         Implement nproc for IRIX.
23677         * lib/nproc.c: Include <sys/sysmp.h>.
23678         (num_processors): On IRIX systems, try sysmp.
23679         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
23680
23681 2009-10-18  Bruno Haible  <bruno@clisp.org>
23682
23683         Implement nproc for HP-UX.
23684         * lib/nproc.c: Include <sys/pstat.h>
23685         (num_processors): On HP-UX systems, try pstat_getdynamic.
23686         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
23687         pstat_getdynamic.
23688
23689 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
23690             Bruno Haible  <bruno@clisp.org>
23691
23692         Implement nproc for NetBSD, OpenBSD.
23693         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
23694         (ARRAY_SIZE): New macro.
23695         (num_processors): On BSD systems, try sysctl of HW_NCPU.
23696         * m4/nproc.m4: New file.
23697         * modules/nproc (Files): Add m4/nproc.m4.
23698         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
23699         (Makefile.am): Instead, augment lib_SOURCES.
23700
23701 2009-10-18  Bruno Haible  <bruno@clisp.org>
23702
23703         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
23704         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
23705         sys/param.h.
23706
23707 2009-10-16  Eric Blake  <ebb9@byu.net>
23708
23709         utimensat: new module
23710         * modules/utimensat: New file.
23711         * lib/utimensat.c (utimensat): Likewise.
23712         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23713         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
23714         so we can work around Linux bugs.
23715         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23716         * modules/sys_stat (Makefile.am): Substitute them.
23717         * lib/sys_stat.in.h (utimensat): Declare it.
23718         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23719         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23720         * modules/utimensat-tests: New test.
23721         * tests/test-utimensat.c: Likewise.
23722
23723         utimens: let lutimens work on non-symlinks
23724         * lib/utimens.c (lutimens): Fall back to utimens rather than
23725         failing with ENOSYS, when file is not a symlink.
23726         (utimens): Reduce redirection.
23727         * tests/test-lutimens.h (test_lutimens): Update test to cover
23728         non-symlinks.
23729         * tests/test-utimens.h (test_utimens): Update test to cover
23730         symlinks.
23731         * tests/test-utimens.c (main): Update caller.
23732
23733         utimens: cache whether utimensat syscall works
23734         * lib/utimens.c (utimensat_works_really): New cache variable.
23735         (fdutimens, lutimens): Use it to avoid failing syscall.
23736
23737         test-stat-time, test-utimens: improve portability
23738         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
23739         ext4 on alpha, and for cygwin.
23740         * tests/test-utimens-common.h: New file.
23741         (nap): Factor delays into single function.
23742         * tests/test-lutimens.h (test_lutimens): Use new header.
23743         * tests/test-futimens.h (test_futimens): Likewise.
23744         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
23745         timestamps to occur from same machine, as was done previously for
23746         test_utimens.
23747         * modules/utimens-tests (Files): Ship new file.
23748         * modules/futimens-tests (Files): Likewise.
23749         Reported in part by Jim Meyering.
23750
23751         sys_stat: sort replacement declarations
23752         * lib/sys_stat.in.h: Sort declarations.
23753         * lib/futimens.c (futimens): Fix typo.
23754
23755 2009-10-15  Jim Meyering  <meyering@redhat.com>
23756
23757         don't let environment settings perturb build
23758         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
23759         could cause a configure-time and/or build-time malfunction.
23760         Typically, a configure-time function-in-library test is performed
23761         via code like this:
23762
23763           LIB_VAR=
23764           AC_SUBST([LIB_VAR])
23765           prefix_saved_LIBS=$LIBS
23766             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
23767                        [test "$ac_cv_search_FUNC" = "none required" ||
23768                         LIB_VAR=$ac_cv_search_FUNC])
23769           LIBS=$prefix_saved_LIBS
23770
23771         However, in each of the files affected by this change, the LIB_VAR=
23772         initialization was omitted.  Thus, when set in the environment, its
23773         value would propagate into generated Makefiles when FUNC is not found
23774         in LIB_NAME.
23775         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
23776         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
23777         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23778
23779 2009-10-14  Eric Blake  <ebb9@byu.net>
23780
23781         fchdir: avoid infinite recursion in mingw
23782         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
23783         recursing.
23784
23785         test-stat-time: port to mingw
23786         * tests/test-stat-time.c (force_unlink): Return a value.
23787         (test_ctime) [W32]: Fix compilation error.
23788         (nap): Don't call usleep with too large an argument.  Use
23789         force_unlink.
23790         * doc/pastposix-functions/usleep.texi (usleep): Document the
23791         portability issue.
23792
23793 2009-10-13  Jim Meyering  <meyering@redhat.com>
23794
23795         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
23796         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
23797         * modules/pipe-filter-ii: Likewise.
23798         * modules/sys_socket-tests: Likewise.
23799         * modules/tsearch-tests: Likewise.
23800         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
23801         (check): Depend on it.
23802
23803 2009-10-12  Eric Blake  <ebb9@byu.net>
23804
23805         utimens-tests: port to NFS file systems
23806         * tests/test-utimens.h (test_utimens): Refactor utimecmp
23807         comparisons to avoid spurious failures from timestamp drift
23808         between NFS machines.
23809
23810 2009-10-12  Eric Blake  <ebb9@byu.net>
23811
23812         stat-time-tests: minor cleanups
23813         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
23814         * tests/test-stat-time.c (nap): Separate assignment from call.
23815         Suggested by Paolo Bonzini and Bruno Haible.
23816
23817         sys_stat: guarantee struct timespec
23818         * lib/sys_stat.in.h (includes): Always include <time.h>
23819         * modules/sys_stat (Depends-on): Add time.
23820         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
23821         mode_t permission values.
23822         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
23823         get at subsecond timestamps.
23824
23825 2009-10-10  Eric Blake  <ebb9@byu.net>
23826
23827         futimens: new module
23828         * modules/futimens: New file.
23829         * lib/futimens.c (futimens): Likewise.
23830         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
23831         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
23832         we can work around Linux bugs.
23833         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
23834         * modules/sys_stat (Makefile.am): Substitute them.
23835         * lib/sys_stat.in.h (futimens): Declare it.
23836         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
23837         * doc/posix-functions/futimens.texi (futimens): Likewise.
23838         * modules/futimens-tests: New test.
23839         * tests/test-futimens.c: Likewise.
23840
23841         utimens: introduce fdutimens
23842         * lib/utimens.h (fdutimens): New prototype.
23843         * lib/utimens.c (gl_futimens): Move guts...
23844         (fdutimens): ...to new interface.
23845         * tests/test-utimens.c (do_fdutimens): Use it.
23846
23847         utimens: add UTIME_NOW and UTIME_OMIT support
23848         * lib/utimens.c (validate_timespec, update_timespec): New helper
23849         functions.
23850         (gl_futimens, lutimens): Use them.
23851         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
23852         stdbool, sys_stat.
23853         (Link): Mention resulting library dependency.
23854         * modules/utimecmp (Link): Likewise.
23855         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
23856         (Makefile.am): Pick up library dependency.
23857         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
23858         definition.
23859         * tests/test-sys_stat.c: Test the definitions.
23860         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
23861         * NEWS: Document library dependency.
23862
23863         utimecmp: support symlink timestamps
23864         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
23865         hashing when possible.  Use pathconf when available.
23866         (SYSCALL_RESOLUTION): Recognize tighter resolution.
23867         * modules/utimecmp (Depends-on): Add lstat.
23868
23869         utimens: add lutimens interface
23870         * lib/utimens.c (lutimens): New function.
23871         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
23872         * lib/utimens.h (lutimens): Declare new interface.
23873         * tests/test-utimens.c (main): Enhance test.
23874         * tests/test-lutimens.h (test_lutimens): New file.
23875         * modules/utimens-tests (Files): Distribute it.
23876         (Depends-on): Add symlink.
23877         (configure.ac): Check for usleep.
23878
23879         utimens: validate futimens usage
23880         * lib/utimens.c (gl_futimens): Require valid fd up front, using
23881         fewer syscalls on failure later on.  Avoid compiler warning on
23882         mingw.
23883         * modules/utimens (Depends-on): Add dup2.
23884
23885         utimens: add test
23886         * modules/utimens-tests: New test.
23887         * tests/test-utimens.h: New file.
23888         * tests/test-futimens.h: Likewise.
23889         * tests/test-utimens.c: Likewise.
23890
23891         doc: mention timestamp portability issues
23892         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
23893         instead.
23894         * doc/posix-functions/utime.texi (utime): Likewise.
23895         * doc/posix-functions/utimes.texi (utimes): Likewise.
23896         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
23897         instead.
23898         * doc/posix-functions/futimens.texi (futimens): Mention utimens
23899         module.
23900         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
23901         Mention weakness with symlink timestamps.
23902         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
23903         to utimensat/futimens instead.
23904         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
23905
23906         test-dup2: enhance test
23907         * tests/test-dup2.c (main): Also check AT_FDCWD.
23908
23909         test-stat-time: avoid more spurious failures
23910         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
23911         xfs; and avoid race if the two timestamps cross quantization edge.
23912
23913         relocatable: prefer 'file system' over 'filesystem'
23914         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
23915         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
23916         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
23917         * doc/relocatable.texi (Enabling Relocatability): Likewise.
23918         * lib/relocatable.c (compute_curr_prefix): Likewise.
23919
23920 2009-10-10  Jim Meyering  <meyering@redhat.com>
23921
23922         stat-time-tests: check for the usleep function
23923         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
23924
23925 2009-10-10  Bruno Haible  <bruno@clisp.org>
23926
23927         * modules/xnanosleep: Put the Link section after the Include section.
23928
23929 2009-10-09  Eric Blake  <ebb9@byu.net>
23930
23931         dup2: work around FreeBSD 6.1 bug
23932         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
23933         * doc/posix-functions/dup2.texi (dup2): Document it.
23934         Reported by Nelson H. F. Beebe and Jim Meyering.
23935
23936         test-stat-time: port to buggy NFS clients
23937         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
23938         (test_ctime): Also skip test if mtime and ctime are skewed.
23939
23940         maint: prefer 'file system' over 'filesystem'
23941         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
23942         * doc/posix-functions/lstat.texi (lstat): Likewise.
23943         * lib/file-has-acl.c (file_has_acl): Likewise.
23944         * lib/fwriteerror.c [TEST]: Likewise.
23945         * tests/test-areadlink.h (test_areadlink): Likewise.
23946         * tests/test-areadlinkat-with-size.c (main): Likewise.
23947         * tests/test-areadlinkat.c (main): Likewise.
23948         * tests/test-canonicalize-lgpl.c (main): Likewise.
23949         * tests/test-canonicalize.c (main): Likewise.
23950         * tests/test-fstatat.c (main): Likewise.
23951         * tests/test-linkat.c (main): Likewise.
23952         * tests/test-lstat.h (test_lstat_func): Likewise.
23953         * tests/test-mkdir.h (test_mkdir): Likewise.
23954         * tests/test-readlink.h (test_readlink): Likewise.
23955         * tests/test-remove.c (main): Likewise.
23956         * tests/test-rename.h (test_rename): Likewise.
23957         * tests/test-renameat.c (main): Likewise.
23958         * tests/test-rmdir.h (test_rmdir_func): Likewise.
23959         * tests/test-symlink.h (test_symlink): Likewise.
23960         * tests/test-symlinkat.c (main): Likewise.
23961         * tests/test-unlink.h (test_unlink_func): Likewise.
23962         * tests/test-unlinkat.c (main): Likewise.
23963
23964         maint: make realtime library usage explicit
23965         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
23966         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
23967         * modules/settime (Link): Likewise.
23968         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
23969
23970         test-stat-time: speed up execution
23971         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
23972         warning on mingw.
23973         (nap): New helper function.
23974         (prepare_test): Use it to reduce sleep time.
23975         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
23976         execution.
23977         * modules/stat-time-tests (configure.ac): Check for usleep.
23978
23979 2009-10-09  Jim Meyering  <meyering@redhat.com>
23980
23981         selinux-h: always use getfilecon wrappers
23982         * lib/getfilecon.c: New file.
23983         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
23984         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
23985         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
23986         (fgetfilecon): Provide a stub.
23987         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
23988         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
23989         file unconditionally.
23990         When <selinux/selinux.h> is found, arrange to use wrappers.
23991         * modules/selinux-h (Files): Add getfilecon.c.
23992         (Makefile.am): Substitute include-next-related bits
23993         into the now-always-generated selinux/selinux.h file.
23994         * doc/glibc-functions/lgetfilecon.texi: New file.
23995         * doc/glibc-functions/fgetfilecon.texi: New file.
23996         * doc/glibc-functions/getfilecon.texi: New file.
23997         * doc/glibc-functions/getfilecon-desc.texi: New file.
23998         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
23999         which to pull in the new files.
24000         * MODULES.html.sh (Misc): Add selinux-h.
24001
24002 2009-10-08  Jim Meyering  <meyering@redhat.com>
24003
24004         unistd: fix comment typo
24005         * lib/unistd.in.h (euidaccess): Fix a comment typo.
24006
24007 2009-10-08  Eric Blake  <ebb9@byu.net>
24008
24009         areadlink: use SIZE_MAX consistently
24010         * modules/areadlink (Depends-on): Add stdint.
24011         * modules/areadlink-with-size (Depends-on): Likewise.
24012         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
24013         gives NULL; drop sys/types, since unistd gives size_t; and add
24014         stdint for SIZE_MAX.
24015         (SIZE_MAX): Rely on headers.
24016         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
24017         and add stdint.
24018         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
24019         (SIZE_MAX): Likewise.
24020         (INITIAL_BUF_SIZE): Turn into enum.
24021         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
24022
24023 2009-10-08  Jim Meyering  <meyering@redhat.com>
24024
24025         areadlinkat: avoid compilation failure
24026         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
24027         Fix typo in comment.
24028
24029 2009-10-07  Eric Blake  <ebb9@byu.net>
24030
24031         areadlinkat-with-size: new module
24032         * modules/areadlinkat-with-size: New module.
24033         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
24034         * lib/areadlink.h (areadlinkat): Declare it.
24035         * MODULES.html.sh (File system functions): Mention it.
24036         * modules/areadlinkat-with-size-tests: New test.
24037         * tests/test-areadlinkat-with-size.c: New file.
24038
24039         xreadlinkat: new module
24040         * modules/xreadlinkat: New module.
24041         * lib/xreadlinkat.c (xreadlinkat): New file.
24042         * lib/xreadlink.h (xreadlinkat): Declare it.
24043         * MODULES.html.sh (File system functions): Mention it.
24044
24045         areadlinkat: new module
24046         * lib/at-func.c (FUNC_FAIL): New define.
24047         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
24048         * modules/areadlinkat: New module.
24049         * lib/linkat.c (areadlinkat): Move...
24050         * lib/areadlinkat.c (areadlinkat): ...to new file.
24051         * lib/areadlink.h (areadlinkat): Declare it.
24052         * modules/linkat (Depends-on): Add areadlinkat.
24053         * MODULES.html.sh (File system functions): Mention it.
24054         * modules/areadlinkat-tests: New test.
24055         * tests/test-areadlinkat.c: New file.
24056
24057         areadlink, areadlink-with-size: add tests
24058         * modules/areadlink-tests: New test.
24059         * modules/areadlink-with-size-tests: Likewise.
24060         * tests/test-areadlink.h: New file.
24061         * tests/test-areadlink.c: Likewise.
24062         * tests/test-areadlink-with-size.c: Likewise.
24063
24064         maint: minor cleanups
24065         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
24066         _UNUSED_PARAMETER_ instead.
24067         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
24068         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
24069         * modules/linkat-tests (Files): Distribute test-link.h.
24070
24071         openat, utimens: whitespace cleanup
24072         * lib/openat.c: Prefer space throughout, rather than mix of 8
24073         spaces vs. tabs.
24074         * lib/at-func.c: Likewise.
24075         * lib/utimens.c: Likewise.
24076
24077         openat: avoid using wrong fd
24078         * lib/openat.c (openat_permissive): Reject user's fd if saving the
24079         working directory chooses same fd.
24080         * lib/at-func.c (AT_FUNC_NAME): Likewise.
24081
24082         mkdir, mkdirat: fix cygwin 1.5.x bug
24083         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
24084         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
24085         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
24086         bug.
24087         (gl_PREREQ_MKDIR): Delete unused macro.
24088         * modules/mkdir (Files): Track file rename.
24089         (configure.ac): Update macro name.
24090         * modules/openat (Depends-on): Add mkdir.
24091         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
24092
24093         mkdir, mkdirat: add tests
24094         * modules/mkdir-tests: New test.
24095         * tests/test-mkdir.h: New file.
24096         * tests/test-mkdir.c: Likewise.
24097         * tests/test-mkdirat.c: Likewise.
24098         * modules/openat-tests (Files): Add new files.
24099         (Makefile.am): Run new test.
24100
24101 2009-10-06  Eric Blake  <ebb9@byu.net>
24102
24103         doc: tweak *at function documentation
24104         * doc/posix-functions/faccessat.texi (faccessat): Mention
24105         known issue with replacement.
24106         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
24107         * doc/posix-functions/linkat.texi (linkat): Likewise.
24108         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
24109         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
24110         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24111         * doc/posix-functions/renameat.texi (renameat): Likewise.
24112         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
24113
24114         openat: fix GNU/Hurd bug in unlinkat
24115         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
24116         broken.
24117         * doc/posix-functions/unlink.texi (unlink): Document this.
24118         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
24119
24120         fdopendir: fix GNU/Hurd bug
24121         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
24122         allowing non-directory fds.
24123         * lib/fdopendir.c (rpl_fdopendir): Work around it.
24124         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
24125         * modules/dirent (Makefile.am): Substitute it.
24126         * lib/dirent.in.h (fdopendir): Declare replacement.
24127         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
24128         * tests/test-fdopendir.c (main): Test something other than
24129         /dev/null, since on Hurd that behaves like a directory.
24130
24131         test-symlink: port to GNU/Hurd
24132         * tests/test-symlink.h (test_symlink): Relax expected errno.
24133
24134         doc: tweak more cygwin information
24135         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
24136         now compatible with glibc.
24137         * doc/posix-functions/getopt.texi (getopt): Likewise.
24138
24139         getopt-gnu: add another test
24140         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
24141         guarantee behavior relied on by m4.
24142         * tests/test-getopt.c (main): Use it.
24143         * modules/getopt-posix-tests (Depends-on): Add setenv.
24144         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
24145
24146         getopt: fix compilation on darwin
24147         * lib/getopt.in.h (includes): Leave breadcrumbs during system
24148         include.
24149         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
24150         Reported by Ludovic Courtès.
24151
24152 2009-10-06  Bruno Haible  <bruno@clisp.org>
24153
24154         * modules/size_max (Description): Discourage its use.
24155         Reported by Simon Josefsson.
24156
24157 2009-10-06  Jim Meyering  <meyering@redhat.com>
24158
24159         linkat: avoid compilation failure
24160         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
24161
24162 2009-10-05  Eric Blake  <ebb9@byu.net>
24163
24164         linkat: support Linux 2.6.17
24165         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
24166         linkat on Linux, but allow cache variable override.
24167         * lib/linkat.c (rpl_linkat): Define override.
24168         * modules/linkat (Depends-on): Add symlinkat.
24169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
24170         * modules/unistd (Makefile.am): Substitute it.
24171         * lib/unistd.in.h (linkat): Declare replacement.
24172         Reported by Pádraig Brady.
24173
24174         quotearg: port test to systems with C.UTF-8 locale
24175         * tests/test-quotearg.c (struct result_strings): Add another
24176         member, differentiating between C.ASCII and C.UTF-8 handling.
24177         (compare_strings): Add parameter.
24178         (main): Adjust all callers.
24179
24180         getopt: avoid clash with FreeBSD _getopt_internal
24181         * lib/getopt.in.h (_getopt_internal): Override the name.
24182         * lib/getopt_int.h (includes): Pick up any overrides.
24183         Reported by Reuben Thomas.
24184
24185         hash: allow C89 compilation
24186         * lib/hash.c (check_tuning): Move declaration before statement.
24187         Reported by Reuben Thomas.
24188
24189 2009-10-05  Karl Berry  <karl@gnu.org>
24190
24191         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
24192
24193 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
24194             Bruno Haible  <bruno@clisp.org>
24195
24196         * lib/uname.c (uname): Use a table-driven algorithm to compute
24197         Windows NT versions.
24198
24199 2009-10-04  Bruno Haible  <bruno@clisp.org>
24200
24201         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
24202         program_invocation_short_name.
24203         * modules/progname (configure.ac): Test for presence of
24204         program_invocation_short_name.
24205         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
24206
24207 2009-10-04  Bruno Haible  <bruno@clisp.org>
24208
24209         * lib/progname.c (set_program_name): Fix comment.
24210         Reported by Jim Meyering.
24211
24212 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24213             Bruno Haible  <bruno@clisp.org>
24214
24215         * lib/uname.c: Include <string.h>.
24216         (uname): Do only one call to GetVersionEx in the common case.
24217
24218 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
24219             Bruno Haible  <bruno@clisp.org>
24220
24221         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
24222         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
24223         (uname): Add support for Windows CE and various non-x86 CPU types.
24224
24225 2009-10-03  Bruno Haible  <bruno@clisp.org>
24226
24227         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
24228         invocation to tests/configure.ac.
24229         Reported by Ian Beckwith <ianb@erislabs.net>.
24230
24231 2009-10-02  Eric Blake  <ebb9@byu.net>
24232
24233         fchdir: avoid compiler warning
24234         * lib/fchdir.c (canonicalize_file_name)
24235         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
24236
24237         test-open: support mingw errno values
24238         * tests/test-open.h (test_open): Relax test.
24239         * tests/test-fopen.h (test_fopen): Likewise.
24240         * tests/test-openat-safer.c (main): Likewise.
24241
24242         open: fix opening directory on mingw
24243         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
24244
24245         test-open: on GNU/Hurd, /dev/null is a directory
24246         * tests/test-fopen.h (main): Rename...
24247         (test_fopen): ...to this.  Use a guaranteed non-directory when
24248         confirming open behavior on trailing slash.
24249         * tests/test-openat-safer.c (main): Likewise.
24250         * tests/test-open.h (main): Likewise....
24251         (test_open): ...to this.
24252         * tests/test-fopen.c (main): Adjust caller.
24253         * tests/test-fopen-safer.c (main): Likewise.
24254         * tests/test-open.c (main): Likewise.
24255         * tests/test-fcntl-safer.c (main): Likewise.
24256         Reported by Samuel Thibault.
24257
24258         rename, fchdir: don't ignore chdir failure
24259         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
24260         * lib/rename.c (rpl_rename) [W32]: Likewise.
24261         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
24262         an empty destination directory if source cannot be renamed,
24263         although there is still possibility for failure.
24264         * doc/posix-functions/rename.texi (rename): Document the race.
24265         Reported by Jim Meyering.
24266
24267         maint: cleanup whitespace in recent commits
24268         * lib/rename.c (rpl_rename): Remove tabs.
24269         * tests/test-link.h (test_link): Likewise.
24270         * lib/fchdir.c (get_name): Likewise.
24271         Reported by Jim Meyering.
24272
24273 2009-10-02  Ben Pfaff  <blp@gnu.org>
24274
24275         relocatable-prog-wrapper: Add missing dependency on
24276         double-slash-root.
24277         * modules/relocatable-prog-wrapper: Add dependency.
24278         Reported by Ian Beckwith <ianb@erislabs.net>.
24279
24280 2009-10-02  Eric Blake  <ebb9@byu.net>
24281
24282         renameat: fix Solaris bugs
24283         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
24284         needed fixing.
24285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
24286         * modules/stdio (Makefile.am): Substitute it.
24287         * lib/stdio.in.h (renameat): Declare replacement.
24288         * lib/renameat.c (rpl_renameat): Implement fix.
24289
24290         renameat: new module
24291         * modules/renameat: New file.
24292         * lib/renameat.c (renameat): Likewise.
24293         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
24294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24295         * modules/stdio (Makefile.am): Substitute them.
24296         * lib/stdio.in.h (renameat): Declare it.
24297         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24298         * doc/posix-functions/renameat.texi (renameat): Likewise.
24299         * modules/renameat-tests: New test.
24300         * tests/test-renameat.c: Likewise.
24301
24302         rename: fix mingw bugs
24303         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
24304         directory overwrite bugs.
24305
24306         rename: fix another cygwin 1.5 bug
24307         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
24308         checks.
24309         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
24310         unnecessary cygwin workarounds.  Also work around bug with moving
24311         full directory onto an empty one.
24312         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
24313
24314         rename-dest-slash: merge into rename module
24315         * modules/rename-dest-slash (Status): Mark obsolete.
24316         (Depends-on): Add rename.
24317         (Files): Let rename do it all.
24318         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
24319         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
24320         * m4/rename-dest-slash.m4: ...so this file can be deleted.
24321         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
24322         * lib/rename.c (rpl_rename): Update comments.
24323
24324         rename: fix cygwin 1.5.x bugs
24325         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
24326         * lib/rename.c (rpl_rename): Work around them.
24327         * modules/rename (Depends-on): Add same-inode.
24328
24329         rename: fix Solaris 10 bug
24330         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24331         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
24332         was the only bug.
24333
24334         rename: fix Solaris 9 bug
24335         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
24336         on non-directory.  Avoid calling exit.
24337         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
24338         strdup.
24339         * modules/rename-tests (Depends-on): Drop lstat.
24340         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
24341         (gl_PREREQ_RENAME): Delete unused macro.
24342
24343         rename-dest-slash: fix NetBSD bug
24344         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
24345         links.
24346         * modules/rename-dest-slash (Depends-on): Add same-inode.
24347
24348         rename-tests: new test, exposes several platform bugs
24349         * modules/rename-tests: New file.
24350         * tests/test-rename.h: Likewise.
24351         * tests/test-rename.c: Likewise.
24352         * doc/posix-functions/rename.texi (rename): Improve documentation,
24353         including bugs that will eventually be fixed in gnulib.
24354
24355 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
24356
24357         * lib/uname.c: Include <stdlib.h>
24358         (uname): Assume version info is available.
24359
24360 2009-10-02  Jim Meyering  <meyering@redhat.com>
24361
24362         gnu-web-doc-update: correct --help output
24363         * build-aux/gnu-web-doc-update: Make --help output relevant.
24364
24365         gnu-web-doc-update: add standard options
24366         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
24367
24368         gnu-web-doc-update: New module.
24369         Use this script to automatically update the on-line web documentation
24370         for your GNU project at http://www.gnu.org/software/$pkg/manual/
24371         * modules/gnu-web-doc-update: New file, from coreutils.
24372         * build-aux/gnu-web-doc-update: New script.
24373
24374 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
24375
24376         link: LoadLibrary is not needed.
24377         * lib/link.c: Use GetModuleHandle.
24378
24379 2009-10-01  Eric Blake  <ebb9@byu.net>
24380
24381         getopt: bump serial number
24382         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
24383         change.
24384
24385         tests: tighten link, rmdir, and remove tests
24386         * tests/test-link.h (includes): No need to use <config.h> here.
24387         Clean up if directory hard link was created, otherwise test for
24388         trailing '.'.
24389         * tests/test-linkat.c (main): Simplify.
24390         * tests/test-remove.c (main): Enhance test for trailing '.'.
24391         * tests/test-rmdir.h (test_rmdir_func): Likewise.
24392
24393 2009-10-01  Jim Meyering  <meyering@redhat.com>
24394
24395         maint.mk: requiring "make major" was annoying, for a "minor" release.
24396         What is intended is "stable", to contrast with alpha and beta,
24397         so require "make stable", not "make major".
24398         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
24399         (get_tool_versions): Likewise.
24400         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
24401
24402 2009-09-30  Ben Pfaff  <blp@gnu.org>
24403
24404         Fix broken build of replacement for Windows tmpfile().
24405         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
24406         flags argument added along with the 'mkostemp' module.
24407
24408 2009-09-28  Bruno Haible  <bruno@clisp.org>
24409
24410         Avoid identifier clash with POSIX function 'remove' defined as a macro.
24411         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
24412         to 'remove_elt'.
24413         (gl_list_remove): Update.
24414         * lib/gl_list.c (gl_list_remove): Update.
24415         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
24416         to 'remove_elt'.
24417         (gl_oset_remove): Update.
24418         * lib/gl_list.c (gl_oset_remove): Update.
24419         Reported by Eric Blake.
24420
24421 2009-09-28  Eric Blake  <ebb9@byu.net>
24422
24423         doc: mention yet more cygwin 1.7 status
24424         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
24425         cygwin.
24426         * doc/glibc-functions/execvpe.texi (execvpe): New file.
24427         * doc/gnulib.texi (Glibc unistd.h): Mention it.
24428
24429         argp: fix test failure
24430         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
24431         that are not upper-case.  Pass correct range to tolower.
24432
24433 2009-09-27  Jim Meyering  <meyering@redhat.com>
24434
24435         test-yesno: work around sparc-dash here-document infelicity
24436         Without this change, the literal \177 byte in a here document
24437         would make dash 0.5.5.1-3 access uninitialized memory.
24438         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
24439         Instead, use a marker, "@", and filter through tr to create the desired
24440         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
24441
24442 2009-09-27  Bruno Haible  <bruno@clisp.org>
24443
24444         Disable untested support for new flavours of ACLs on AIX.
24445         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
24446         progress.
24447         * lib/set-mode-acl.c (qset_acl): Likewise.
24448
24449 2008-12-07  Bruno Haible  <bruno@clisp.org>
24450
24451         Add support for new flavours of ACLs on AIX. (Untested.)
24452         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
24453         (file_has_acl): Add support for newer AIX.
24454         * lib/set-mode-acl.c (qset_acl): Likewise.
24455         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
24456         Rainer Tammer <tammer@tammer.net>.
24457
24458 2009-09-26  Eric Blake  <ebb9@byu.net>
24459
24460         argp: fix compilation of getopt
24461         * lib/getopt.in.h (includes): Use different guard than glibc.
24462         Reported by Sergey Poznyakoff.
24463
24464         doc: mention more cygwin 1.7 status
24465         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
24466         bug.
24467         * doc/posix-functions/execl.texi (execl): Likewise.
24468         * doc/posix-functions/execle.texi (execle): Likewise.
24469         * doc/posix-functions/execlp.texi (execlp): Likewise.
24470         * doc/posix-functions/execv.texi (execv): Likewise.
24471         * doc/posix-functions/execve.texi (execve): Likewise.
24472         * doc/posix-functions/execvp.texi (execvp): Likewise.
24473         * doc/glibc-functions/canonicalize_file_name.texi
24474         (canonicalize_file_name): Cygwin 1.7 now provides this.
24475         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
24476         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
24477         on AT_SYMLINK_NOFOLLOW.
24478
24479 2009-09-24  Eric Blake  <ebb9@byu.net>
24480
24481         test-linkat: make test more robust
24482         * tests/test-linkat.c (main): Avoid collision with EEXIST.
24483
24484         getopt: fix inclusion guards for cygwin
24485         * modules/getopt-posix (Depends-on): Add include-next.
24486         (Makefile.am): Substitute more items in replacement header.
24487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
24488         <getopt.h>.
24489         * lib/getopt.in.h (includes): Use split inclusion guard, and
24490         prefer <getopt.h> over include <unistd.h> when one is present.
24491         (option): Also override name of 'struct option'.
24492
24493         same-inode: revert prior change; it is not yet ready
24494         * NEWS: Undo mention of this change.
24495         * lib/same-inode.h (same-inode.h): Undo tri-state change.
24496         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24497         * lib/cycle-check.c (cycle_check): Likewise.
24498         * lib/same.c (same_name): Likewise.
24499         * lib/at-func2.c (at_func2): Likewise.
24500
24501 2009-09-23  Eric Blake  <ebb9@byu.net>
24502
24503         linkat: new module
24504         * modules/linkat: New file.
24505         * lib/at-func2.c (at_func2): Likewise.
24506         * lib/linkat.c (linkat): Likewise.
24507         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24508         * lib/openat-priv.h (at_func2): Add declaration.
24509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24510         * modules/unistd (Makefile.am): Substitute them.
24511         * lib/unistd.in.h (linkat): Declare it.
24512         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24513         * doc/posix-functions/linkat.texi (linkat): Likewise.
24514         * doc/posix-functions/link.texi (link): Tweak wording.
24515         * tests/test-link.c (main): Move guts...
24516         * tests/test-link.h (test_link): ...into new file.
24517         * modules/linkat-tests: New test.
24518         * tests/test-linkat.c: Likewise.
24519         * modules/link-tests (Files): Ship new file.
24520         (Depends-on): Add stdbool.
24521
24522         dirname: add library-safe mdir_name
24523         * lib/dirname.h (mdir_name): New prototype.
24524         * lib/dirname.c (dir_name): Move guts...
24525         (mdir_name): ...to new function that avoids xalloc_die.
24526
24527         fchdir: another mingw fix
24528         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
24529         * lib/fchdir.c (get_name): New helper method; skips canonicalize
24530         on mingw (where it has not yet been ported), and make it optional
24531         elsewhere.
24532         (_gl_register_fd): Use it.
24533
24534         same-inode: make SAME_INODE tri-state, to port to mingw
24535         * NEWS: Mention this change.
24536         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
24537         st_ino always being 0.
24538         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
24539         * lib/cycle-check.c (cycle_check): Likewise.
24540         * lib/same.c (same_name): Likewise.
24541
24542         lstat: avoid mingw compilation error
24543         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
24544         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
24545         lstat ourselves.
24546         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
24547         was adequate.
24548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
24549         the checks for lstat.
24550         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
24551
24552         link: fix test failure on Solaris 9
24553         * lib/link.c (rpl_link): Don't assume link will catch bogus
24554         trailing slash on source.
24555
24556         test-symlinkat: enhance test
24557         * tests/test-readlink.c (main): Move guts...
24558         * tests/test-readlink.h (test_readlink): ...into new file.
24559         * tests/test-symlink.c (main): Move guts...
24560         * tests/test-symlink.h (test_symlink): ...into new file.
24561         * tests/test-symlinkat.c (main): Use new files for further
24562         coverage.
24563         (do_symlink, do_readlink): New helper functions.
24564         * modules/symlink-tests (Files): Ship new file.
24565         (Depends-on): Add stdbool.
24566         * modules/readlink-tests (Files): Ship new file.
24567         (Depends-on): Add stdbool.
24568         * modules/symlinkat-tests (Files): Use new files.
24569
24570 2009-09-23  Eric Blake  <ebb9@byu.net>
24571
24572         readlink: document portability issue with symlink length
24573         * doc/posix-functions/lstat.texi (lstat): Mention that some file
24574         systems have bogus st_size on symlinks, and mention the
24575         areadlink-with-size module.
24576         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
24577         * doc/posix-functions/readlink.texi (readlink): Mention the
24578         areadlink module, and ERANGE failure.
24579         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
24580         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
24581
24582         readlink: fix Solaris 9 bug with trailing slash
24583         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
24584         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
24585         * doc/posix-functions/readlink.texi (readlink): Document this.
24586         * modules/readlink-tests: New test.
24587         * tests/test-readlink.c: Likewise.
24588
24589         readlink: fix cygwin 1.5.x bug with return type
24590         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
24591         * lib/unistd.in.h (readlink): Use ssize_t.
24592         * lib/readlink.c (readlink): Likewise.
24593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24594         * modules/unistd (Makefile.am): Substitute it.
24595         * lib/unistd.in.h (readlink): Declare replacement.
24596         * doc/posix-functions/readlink.texi (readlink): Document this.
24597
24598         symlink: use throughout gnulib
24599         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
24600         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
24601         symlink is not used.
24602         * modules/symlinkat (Depends-on): Add symlink.
24603         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24604         * modules/canonicalize-tests (Depends-on): Likewise.
24605         * modules/lstat-tests (Depends-on): Likewise.
24606         * modules/openat-tests (Depends-on): Likewise.
24607         * modules/remove-tests (Depends-on): Likewise.
24608         * modules/rmdir-tests (Depends-on): Likewise.
24609         * modules/unlink-tests (Depends-on): Likewise.
24610         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
24611         * tests/test-canonicalize.c (symlink): Likewise.
24612         * tests/test-fstatat.c (symlink): Likewise.
24613         * tests/test-lstat.c (symlink): Likewise.
24614         * tests/test-remove.c (symlink): Likewise.
24615         * tests/test-rmdir.c (symlink): Likewise.
24616         * tests/test-unlink.c (symlink): Likewise.
24617         * tests/test-unlinkat.c (symlink): Likewise.
24618
24619         symlink: new module, for Solaris 9 bug
24620         * modules/symlink: New file.
24621         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24622         * lib/symlink.c: Likewise.
24623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
24624         * modules/unistd (Makefile.am): Substitute them.
24625         * lib/unistd.in.h (symlink): Declare replacement.
24626         * MODULES.html.sh (File system functions): Mention it.
24627         * doc/posix-functions/symlink.texi (symlink): Likewise.
24628         * modules/symlink-tests: New test.
24629         * tests/test-symlink.c: Likewise.
24630
24631 2009-09-23  Bruno Haible  <bruno@clisp.org>
24632
24633         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
24634         when needed.
24635         Test case: gnulib-tool --import --with-tests atexit inttypes.
24636         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
24637
24638 2009-09-23  Bruno Haible  <bruno@clisp.org>
24639
24640         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
24641         subcommand, not in a subshell.
24642
24643 2009-09-22  Eric Blake  <ebb9@byu.net>
24644
24645         unistd: sort replacement declarations
24646         * lib/unistd.in.h: Sort declarations.
24647
24648         open, openat: minor optimization
24649         * lib/open.c (open): If open succeeded, len is non-zero.
24650         * lib/openat.c (rpl_openat): Likewise.
24651
24652         link-follow: ensure correct result
24653         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
24654         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
24655         distinguish between possible failures.
24656
24657 2009-09-21  Eric Blake  <ebb9@byu.net>
24658
24659         fts: avoid compiler warning
24660         * lib/fts.c (dirent_inode_sort_may_be_useful)
24661         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
24662
24663 2009-09-19  Bruno Haible  <bruno@clisp.org>
24664
24665         * lib/progreloc.c (canonicalize_file_name): New declaration.
24666
24667 2009-09-19  Eric Blake  <ebb9@byu.net>
24668
24669         link: fix quoting
24670         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
24671
24672         openat: fix openat bugs on Solaris 9
24673         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
24674         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
24675         * modules/openat (Depends-on): Add open.
24676         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
24677         * modules/fcntl-h (Makefile.am): Substitute it.
24678         * lib/fcntl.in.h (openat): Declare replacement.
24679         * doc/posix-functions/openat.texi (openat): Document this.
24680
24681         openat: move fstatat and unlinkat into correct files
24682         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
24683         compiled.
24684         * lib/openat.c (fstatat, unlinkat): Move...
24685         * lib/fstatat.c (fstatat): ...into correct files.
24686         * lib/unlinkat.c (unlinkat): Likewise.
24687
24688         openat: fix unlinkat bugs on Solaris 9
24689         * lib/unlinkat.c (unlinkat): New file.
24690         * modules/openat (Depends-on): Add unlink.
24691         (Files): Distribute it.
24692         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
24693         trailing slash behavior is broken.
24694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24695         * modules/unistd (Makefile.am): Substitute it.
24696         * lib/unistd.in.h (unlinkat): Declare replacement.
24697         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
24698
24699         openat: fix fstatat bugs on Solaris 9
24700         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
24701         stat.
24702         * doc/posix-functions/fstatat.texi (fstatat): Document this.
24703
24704         test-unlinkat: enhance test, to expose Solaris 9 bug
24705         * tests/test-unlink.c (main): Factor guts...
24706         * tests/test-unlink.h (test_rmdir_func): ...into new file.
24707         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
24708         * tests/test-rmdir.c (main): Adjust caller.
24709         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
24710         (unlinker): New helper function.
24711         (rmdirat): Enhance check.
24712         * modules/rmdir-tests (Depends-on): Add stdbool.
24713         * modules/unlink-tests (Depends-on): Likewise.
24714         (Files): Add test-unlink.h.
24715         * modules/openat-tests (Files): Likewise.
24716         (Depends-on): Add unlinkdir.
24717
24718         test-fstatat: new test, to expose Solaris 9 bugs
24719         * tests/test-stat.c (main): Factor guts...
24720         * tests/test-stat.h (test_stat_func): ...into new file.
24721         * tests/test-lstat.c (main): Factor guts...
24722         * tests/test-lstat.h (test_lstat_func): ...into new file.
24723         * tests/test-fstatat.c: New file.
24724         * modules/stat-tests (Files): Add test-stat.h.
24725         * modules/lstat-tests (Files): Add test-lstat.h.
24726         (Depends-on): Add stdbool.
24727         * modules/openat-tests (Depends-on): Add pathmax.
24728         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
24729         (Makefile.am): Run new test.
24730
24731         remove: new module, for mingw and Solaris 9 bugs
24732         * modules/remove: New file.
24733         * lib/remove.c: Likewise.
24734         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
24735         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
24736         * modules/stdio (Makefile.am): Use them.
24737         * lib/stdio.in.h (remove): Declare replacement.
24738         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24739         * doc/posix-functions/remove.texi (remove): Likewise.
24740         * modules/remove-tests: New test.
24741         * tests/test-remove.c: Likewise.
24742
24743         unlink: new module, for Solaris 9 bug
24744         * modules/unlink: New file.
24745         * lib/unlink.c: Likewise.
24746         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
24748         * modules/unistd (Makefile.am): Use them.
24749         * lib/unistd.in.h (stat): Declare replacement.
24750         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24751         * doc/posix-functions/unlink.texi (unlink): Likewise.
24752         * modules/unlink-tests: New test.
24753         * tests/test-unlink.c: Likewise.
24754
24755         lstat: fix Solaris 9 bug
24756         * lib/lstat.c (lstat): Also check for trailing slash on
24757         non-symlink, non-directories.  Use stat module to simplify logic.
24758         * doc/posix-functions/lstat.texi (lstat): Document it.
24759         * modules/lstat-tests (Depends-on): Add errno, same-inode.
24760         (configure.ac): Check for symlink.
24761         * tests/test-lstat.c (main): Add more tests.
24762
24763         stat: add as dependency to other modules
24764         * modules/chown (Depends-on): Add stat.
24765         * modules/euidaccess (Depends-on): Likewise.
24766         * modules/fchdir (Depends-on): Likewise.
24767         * modules/isdir (Depends-on): Likewise.
24768         * modules/link (Depends-on): Likewise.
24769         * modules/lstat (Depends-on): Likewise.
24770         * modules/mkdir-p (Depends-on): Likewise.
24771         * modules/modechange (Depends-on): Likewise.
24772         * modules/open (Depends-on): Likewise.
24773         * modules/readlink (Depends-on): Likewise.
24774         * modules/same (Depends-on): Likewise.
24775
24776         stat: fix Solaris 9 bug
24777         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
24778         slash.
24779         * lib/stat.c (rpl_stat): Work around it.
24780         * doc/posix-functions/stat.texi (stat): Update documentation.
24781
24782         stat: new module, for mingw bug
24783         * modules/stat: New file.
24784         * lib/stat.c: Likewise.
24785         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24786         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
24787         * modules/sys_stat (Makefile.am): Use them.
24788         * lib/sys_stat.in.h (stat): Declare replacement.
24789         * lib/openat.c (fstatat): Deal with lstat and stat being function
24790         macros.
24791         * modules/openat (Depends-on): Add inline.
24792         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
24793         * doc/posix-functions/stat.texi (stat): Likewise.
24794         * modules/stat-tests: New test.
24795         * tests/test-stat.c: Likewise.
24796
24797 2009-09-19  Jim Meyering  <meyering@redhat.com>
24798
24799         syntax-check: detect unnecessary inclusion of canonicalize.h
24800         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
24801
24802 2009-09-19  Eric Blake  <ebb9@byu.net>
24803
24804         canonicalize-lgpl: adjust clients to use correct header
24805         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24806         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
24807         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
24808         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
24809         * lib/progreloc.c (includes): Likewise.
24810
24811 2009-09-19  Jim Meyering  <meyering@redhat.com>
24812
24813         test-posixtm.c: correct a comment
24814         * tests/test-posixtm.c: Correct first-line comment.
24815         Spotted by Eric Blake.
24816
24817 2009-09-16  Jim Meyering  <meyering@redhat.com>
24818
24819         posixtm-tests: make T const-correct; add a test case
24820         * tests/test-posixtm.c (T): Declare const.
24821         Add a test for -(2^31+1).
24822         Remove useless can-succeed-only-in-2002 test.
24823
24824         posixtm-tests: adjust the sole failing test
24825         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
24826         expected output matches what mktime now produces.  Cross-checked via
24827         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
24828
24829         posixtm: move #ifdef'd tests into a new module
24830         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
24831         * tests/test-posixtm.c: ... this new file.
24832         * modules/posixtm-tests: New module.
24833
24834 2009-09-19  Eric Blake  <ebb9@byu.net>
24835
24836         openat: simplify use of at-func.c
24837         * lib/at-func.c (includes): Include prerequisites here, to
24838         simplify requirements on client files.
24839         * lib/openat-priv.h: Add double-inclusion guard.
24840         * lib/faccessat.c (includes): Simplify.
24841         * lib/fchmodat.c (includes): Likewise.
24842         * lib/fchownat.c (includes): Likewise.
24843         * lib/mkdirat.c (includes): Likewise.
24844         * lib/mkfifoat.c (includes): Likewise.
24845         * lib/symlinkat.c (includes): Likewise.
24846
24847         openat: allow return of fd 0
24848         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
24849         * modules/save-cwd (Depends-on): Replace fcntl-safer with
24850         unistd-safer.
24851         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
24852         <fcntl.h>; this module does not leak fds.
24853         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
24854         must be allowed to return 0, leaving openat_safer to add the
24855         safety.
24856         (openat_permissive): Avoid writing to just-opened fd 2 if
24857         restoring the current directory fails.
24858         * lib/openat-die.c (openat_restore_fail): Add comment.
24859         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
24860         (save_cwd): Guarantee safe fd, but without use of open_safer.
24861         * tests/test-openat.c: New test.
24862         * modules/openat-tests (Files, Makefile.am): Distribute and build
24863         new file.
24864
24865         relocatable-prog-wrapper: fix build
24866         * modules/relocatable-prog-wrapper (Files): Update name of
24867         canonicalize m4 file, broken on 2009-09-17.
24868         Reported by emad hajjar <aleppos@hotmail.com>.
24869
24870 2009-09-19  Bruno Haible  <bruno@clisp.org>
24871
24872         * lib/safe-alloc.h: Use the standard header with GPL copyright.
24873         * lib/safe-alloc.c: Likewise.
24874         Reported by Ian Beckwith <ianb@erislabs.net>.
24875
24876 2009-09-18  Bruno Haible  <bruno@clisp.org>
24877
24878         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
24879         Reported by <erobles@sensacd.com.mx>.
24880
24881 2009-09-17  Eric Blake  <ebb9@byu.net>
24882
24883         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
24884         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
24885         slashes when checking if last component is missing.
24886         * tests/test-canonicalize.c (main): Test this.
24887
24888         canonicalize, canonicalize-lgpl: honor // if distinct from /
24889         * modules/canonicalize (Files): Add double-slash-root.m4.
24890         * modules/canonicalize-lgpl (Files): Likewise.
24891         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
24892         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
24893         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
24894         fallback definition.
24895         (canonicalize_filename_mode): Use it to protect //.
24896         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
24897         (__realpath): Likewise.
24898         * tests/test-canonicalize.c (main): Test this.
24899         * tests/test-canonicalize-lgpl.c (main): Likewise.
24900         * modules/canonicalize-tests (Depends-on): Add same-inode.
24901         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
24902
24903         canonicalize-lgpl: fix glibc bug with trailing slash
24904         * m4/canonicalize-lgpl.m4: Move contents...
24905         * m4/canonicalize.m4: ...here.
24906         (gl_CANONICALIZE_LGPL): Factor realpath check...
24907         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
24908         glibc 2.3.5 bug, fixed 2005-04-27.
24909         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
24910         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
24911         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
24912         * modules/canonicalize-lgpl (Files): Manage file rename.
24913         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24914         * modules/stdlib (Makefile.am): Substitute witness.
24915         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
24916         is needed.
24917         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
24918         replacement is required.
24919         * lib/canonicalize.c (canonicalize_file_name): Likewise.
24920         * doc/glibc-functions/canonicalize_file_name.texi
24921         (canonicalize_file_name): Document this.
24922         * doc/posix-functions/realpath.texi (realpath): Likewise.
24923
24924         canonicalize-lgpl: reject non-directory with trailing slash
24925         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
24926         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
24927         catches failures in glibc 2.3.5.
24928         * tests/test-canonicalize.c (main): Likewise.
24929
24930         canonicalize-lgpl: use native realpath if it works
24931         * lib/canonicalize-lgpl.c (realpath): Guard with
24932         FUNC_REALPATH_WORKS.
24933         * lib/stdlib.in.h (realpath): Make declaration optional based on
24934         HAVE_REALPATH.
24935         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
24936         native realpath works.
24937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
24938         * modules/stdlib (Makefile.am): Substitute witness.
24939
24940         canonicalize, canonicalize-lgpl: use <stdlib.h>
24941         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
24942         (Include): Mention <stdlib.h>.
24943         (configure.ac): Mention functions we provide.
24944         * modules/canonicalize (configure.ac): Likewise.
24945         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
24946         realpath if canonicalize_file_name is missing.
24947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
24948         * modules/stdlib (Makefile.am): Substitute witnesses.
24949         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
24950         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
24951         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
24952         * NEWS: Document this.
24953         * doc/glibc-functions/canonicalize_file_name.texi
24954         (canonicalize_file_name): Likewise.
24955         * doc/posix-functions/realpath.texi (realpath): Likewise.
24956         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
24957
24958         test-canonicalize: consolidate into single C program
24959         * tests/test-canonicalize.sh: Delete; move setup into...
24960         * tests/test-canonicalize.c (main): ...the program, making it
24961         easier to run in debugger.  Add some tests.
24962         * modules/canonicalize-tests (Files): Remove unused file.
24963         (Depends-on): Add progname.
24964         (configure.ac, Makefile.am): Simplify.
24965
24966         test-canonicalize-lgpl: consolidate into single C program
24967         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
24968         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
24969         easier to run in debugger.  Add some tests.
24970         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
24971         (configure.ac, Makefile.am): Simplify.
24972
24973         canonicalize: avoid resolvepath
24974         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
24975         unnecessary checks.
24976         * lib/canonicalize.c (includes): Simplify.
24977         (canonicalize_file_name): Drop resolvepath implementation.
24978         * modules/canonicalize (Depends-on): Drop filenamecat.
24979
24980         canonicalize: don't lose errno
24981         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
24982         over calls to free.
24983
24984         canonicalize: simplify errno handling
24985         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
24986         assignment.
24987
24988         canonicalize, canonicalize-lgpl: update module dependencies
24989         * modules/canonicalize (Depends-on): Add extensions, lstat,
24990         pathmax, stdlib.
24991         (Files): Drop pathmax.h.
24992         (configure.ac): Adjust macro name.
24993         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
24994         lstat, stdlib, sys_stat.
24995         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
24996         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
24997         extensions.
24998         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
24999         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
25000         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
25001         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
25002         declaration, if available.
25003         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
25004         we can rely on the readlink module.
25005         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
25006         (includes): Use <unistd.h> unconditionally.
25007
25008 2009-09-17  Eric Blake  <ebb9@byu.net>
25009
25010         maint: make Include sections of modules consistent
25011         * modules/alloca: Use only header name; no need to list #include.
25012         * modules/alloca-opt: Likewise.
25013         * modules/arpa_inet: Likewise.
25014         * modules/canon-host: Likewise.
25015         * modules/configmake: Likewise.
25016         * modules/dirent: Likewise.
25017         * modules/eealloc: Likewise.
25018         * modules/environ: Likewise.
25019         * modules/fchdir: Likewise.
25020         * modules/fcntl: Likewise.
25021         * modules/fcntl-h: Likewise.
25022         * modules/gethrxtime: Likewise.
25023         * modules/gettime: Likewise.
25024         * modules/ignore-value: Likewise.
25025         * modules/inet_ntop: Likewise.
25026         * modules/inet_pton: Likewise.
25027         * modules/inttypes: Likewise.
25028         * modules/isnand-nolibm: Likewise.
25029         * modules/isnanf-nolibm: Likewise.
25030         * modules/mbchar: Likewise.
25031         * modules/mbfile: Likewise.
25032         * modules/mbiter: Likewise.
25033         * modules/mbuiter: Likewise.
25034         * modules/netdb: Likewise.
25035         * modules/netinet_in: Likewise.
25036         * modules/nproc: Likewise.
25037         * modules/pagealign_alloc: Likewise.
25038         * modules/poll: Likewise.
25039         * modules/printf-frexp: Likewise.
25040         * modules/pthread: Likewise.
25041         * modules/putenv: Likewise.
25042         * modules/random_r: Likewise.
25043         * modules/relocatable-prog: Likewise.
25044         * modules/search: Likewise.
25045         * modules/select: Likewise.
25046         * modules/selinux-h: Likewise.
25047         * modules/settime: Likewise.
25048         * modules/signal: Likewise.
25049         * modules/size_max: Likewise.
25050         * modules/socklen: Likewise.
25051         * modules/ssize_t: Likewise.
25052         * modules/stdarg: Likewise.
25053         * modules/stdbool: Likewise.
25054         * modules/stddef: Likewise.
25055         * modules/stdint: Likewise.
25056         * modules/stdio: Likewise.
25057         * modules/stdlib: Likewise.
25058         * modules/string: Likewise.
25059         * modules/strings: Likewise.
25060         * modules/sys_file: Likewise.
25061         * modules/sys_ioctl: Likewise.
25062         * modules/sys_select: Likewise.
25063         * modules/sys_socket: Likewise.
25064         * modules/sys_stat: Likewise.
25065         * modules/sys_time: Likewise.
25066         * modules/sys_times: Likewise.
25067         * modules/sys_utsname: Likewise.
25068         * modules/sys_wait: Likewise.
25069         * modules/sysexits: Likewise.
25070         * modules/time: Likewise.
25071         * modules/times: Likewise.
25072         * modules/tmpfile: Likewise.
25073         * modules/trim: Likewise.
25074         * modules/unistd: Likewise.
25075         * modules/wchar: Likewise.
25076         * modules/wctype: Likewise.
25077
25078 2009-09-17  Bruno Haible  <bruno@clisp.org>
25079
25080         Make getdate.y compile on QNX and NetBSD 5 / i386.
25081         * m4/getdate.m4 (gl_GETDATE): Conditionally define
25082         TIME_T_FITS_IN_LONG_INT.
25083         * lib/getdate.y (long_time_t): New type.
25084         (relative_time): Change type of 'seconds' field to long_time_t.
25085         (get_date): Update types of local variables. Check against overflow
25086         during conversion from long_time_t to time_t.
25087         Reported by Matt Kraai <kraai@ftbfs.org>
25088         and Hasso Tepper <hasso@netbsd.org>.
25089
25090 2009-09-17  Bruno Haible  <bruno@clisp.org>
25091
25092         * modules/COPYING: Update copyright years.
25093         * modules/README: Likeiwse.
25094         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
25095         Reported by Ian Beckwith <ianb@erislabs.net>.
25096
25097 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25098
25099         * users.txt: Update references for gnuit package.
25100
25101 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
25102
25103         * m4/getdelim.m4: Fix typo in copyright line.
25104
25105 2009-09-17  Bruno Haible  <bruno@clisp.org>
25106
25107         * lib/atoll.c: Use the standard header with GPL copyright.
25108         * lib/argz.in.h: Likewise.
25109         * lib/glob.c: Likewise.
25110         * lib/glob-libc.h: Likewise.
25111         * lib/random_r.c: Likewise.
25112         * lib/siglist.h: Likewise.
25113         * lib/strsignal.c: Likewise.
25114         Reported by Ian Beckwith <ianb@erislabs.net>.
25115
25116 2009-09-17  Eric Blake  <ebb9@byu.net>
25117
25118         rmdir: ensure correct dependency order
25119         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
25120
25121 2009-09-17  Bruno Haible  <bruno@clisp.org>
25122
25123         Disable assertion that fails on NetBSD 5 / i386.
25124         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
25125         Reported by Sam Steingold <sds@gnu.org>
25126         and Hasso Tepper <hasso@netbsd.org>.
25127
25128 2009-09-16  Eric Blake  <ebb9@byu.net>
25129
25130         unlinkdir: port to mingw
25131         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
25132         on which no one can unlink a directory.
25133
25134         stdlib: sort witness names
25135         * modules/stdlib (Makefile.am): Sort replacements.
25136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25137         * lib/stdlib.in.h: Likewise.
25138
25139         parse-duration-tests: avoid link failure
25140         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
25141         LIBINTL.
25142         Reported by Tom G. Christensen.
25143
25144         openat-tests: ensure unlinkat behaves like rmdir
25145         * tests/test-rmdir.c (main): Factor guts...
25146         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
25147         * modules/rmdir-tests (Files): Ship new file.
25148         * modules/openat-tests: New test.
25149         * tests/test-unlinkat.c: Likewise.
25150
25151         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
25152         * modules/rmdir-errno (Status, Notice): Now obsolete.
25153
25154         rmdir: work around cygwin 1.5.x and mingw bugs
25155         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
25156         * lib/rmdir.c (rmdir): Work around it.
25157         * modules/rmdir (Status, Notice): No longer obsolete.
25158         (Files): Add dos.m4.
25159         (Depends-on): Add unistd.
25160         (configure.ac): Set witnesses.
25161         (License): Relax to LGPLv2+.
25162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
25163         * modules/unistd (Makefile.am): Substitute witnesses.
25164         * lib/unistd.in.h (rmdir): Declare replacement.
25165         * doc/posix-functions/rmdir.texi (rmdir): Document this.
25166         * modules/rmdir-tests: New tests.
25167         * tests/test-rmdir.c: Likewise.
25168
25169 2009-09-15  Eric Blake  <ebb9@byu.net>
25170
25171         fchdir: improve use of replacement functions
25172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
25173         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
25174         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
25175         REPLACE_CLOSEDIR.
25176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
25177         * modules/sys_stat (Makefile.am): Substitute correct witness.
25178         * modules/dirent (Makefile.am): Likewise.
25179         * modules/unistd (Makefile.am): Likewise.
25180         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
25181         * lib/unistd.in.h (dup): Likewise.
25182         * lib/sys_stat.in.h (fstat): Likewise.
25183
25184         maint: ignore gnulib-tool temp files
25185         * .gitignore: Ignore files created during gnulib-tool --test.
25186
25187 2009-09-13  Jim Meyering  <meyering@redhat.com>
25188
25189         posixtm: don't reject a time that specify "60" as the number of seconds
25190         * lib/posixtm.c (posixtime): The code to reject invalid dates
25191         would also reject a time specified with the .60 suffix.
25192         But POSIX allows that, in order to accommodate leap seconds.
25193         So don't reject it.
25194         (main): Adjust tests accordingly.
25195         * modules/posixtm (Depends-on): Add stpcpy.
25196
25197 2009-09-11  Jim Meyering  <meyering@redhat.com>
25198
25199         announce-gen: include [$release_type] in emitted Subject:
25200         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
25201         e.g., [stable] in the emitted Subject: line.
25202
25203 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25204
25205         Remove obsolete macros from several modules.
25206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
25207         obsolete Autoconf macros with their modern counterparts.
25208         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
25209         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
25210         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
25211         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
25212         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
25213         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25215         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25216         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25217         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
25218         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
25219         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
25220         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
25221         * m4/sockets.m4 (gl_SOCKETS): Likewise.
25222         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
25223         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
25224         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
25225         * m4/time_r.m4 (gl_TIME_R): Likewise.
25226         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25227         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
25228         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
25229
25230         Fix copyright header in build-aux scripts.
25231         * build-aux/git-version-gen: Fix copyright header to match GPLv3
25232         recommendation.
25233         * build-aux/ncftpput-ftp: Likewise.
25234         * build-aux/update-copyright: Likewise.
25235
25236 2009-09-09  Eric Blake  <ebb9@byu.net>
25237
25238         test-link: allow Linux choice of errno
25239         * tests/test-link.c (main): Relax test for alternate error.
25240
25241         strndup: fix improper m4 caching
25242         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
25243         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
25244         (gl_PREREQ_STRNDUP): Delete.
25245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
25246         * modules/string (Makefile.am): Substitute it.
25247         * lib/string.in.h (strndup): Modernize prototype.
25248
25249         getcwd: port to mingw
25250         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
25251         different from the POSIX assumptions made throughout the getcwd
25252         module; fortunately, the mingw getcwd does not need replacement.
25253         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
25254         * modules/getcwd-tests: New test.
25255         * tests/test-getcwd.c: Likewise.
25256
25257         link: fix platform bugs
25258         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
25259         * lib/link.c (link): Work around them.  Fix related mingw bug.
25260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
25261         * modules/unistd (Makefile.am): Substitute it.
25262         * lib/unistd.in.h (link): Declare replacement.
25263         * doc/posix-functions/link.texi (link): Document this.
25264         * modules/link (Depends-on): Add strdup-posix, sys_stat.
25265
25266         test-link: consolidate into single C program, test more cases
25267         * tests/test-link.sh: Delete.
25268         * tests/test-link.c: Test more error conditions.  Exposes bugs on
25269         at least Cygwin and Solaris.
25270         * modules/link-tests (Files): Remove unused file.
25271         (Depends-on): Add errno, sys_stat.
25272         (Makefile.am): Simplify.
25273
25274 2009-09-08  Bruno Haible  <bruno@clisp.org>
25275
25276         Work around towlower, towupper bug on mingw.
25277         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
25278         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
25279         * doc/posix-functions/towlower.texi: Mention the mingw bug.
25280         * doc/posix-functions/towupper.texi: Likewise.
25281         Reported by Eric Blake.
25282
25283 2009-09-08  Jim Meyering  <meyering@redhat.com>
25284
25285         build: don't try to run autoheader if we don't use it
25286         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
25287         is not used in configure.ac.
25288
25289 2009-09-08  Eric Blake  <ebb9@byu.net>
25290
25291         euidaccess: fix compilation error
25292         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
25293
25294         rawmemchr: relax license
25295         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
25296         okay.
25297         Reported by Jim Meyering.
25298
25299         mkfifoat: new module
25300         * modules/mkfifoat: New file.
25301         * lib/mkfifoat.c: Likewise.
25302         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
25303         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25304         * modules/sys_stat (Makefile.am): Use them.
25305         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
25306         * MODULES.html.sh (File system functions): Mention module.
25307         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25308         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25309         * modules/mkfifoat-tests: New test.
25310         * tests/test-mkfifoat.c: Likewise.
25311
25312         strchrnul: relax license
25313         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
25314         okay.
25315         Reported by Jim Meyering.
25316
25317 2009-09-08  Eric Blake  <ebb9@byu.net>
25318
25319         fstatat: fix compilation on Solaris
25320         * lib/fstatat.c (includes): Add fcntl.h.
25321         Reported by Pádraig Brady.
25322
25323 2009-09-07  Eric Blake  <ebb9@byu.net>
25324
25325         rename: modernize replacement
25326         * modules/rename (Depends-on): Add stdio.
25327         (configure.ac): Declare witness.
25328         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
25329         stdio take care of replacement.
25330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
25331         * modules/stdio (Makefile.am): Substitute them.
25332         * lib/stdio.in.h (rename): Declare replacement.
25333         * lib/rename.c (includes): Allow cross-compilation to non-windows
25334         machines.
25335         * doc/posix-functions/rename.texi (rename): Improve
25336         documentation.
25337
25338         stdio: sort witness names
25339         * modules/stdio (Makefile.am): Sort replacements.
25340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25341         * lib/stdio.in.h: Likewise.
25342
25343         getcwd: minor cleanups
25344         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
25345         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
25346
25347         openat: provide more convenience names
25348         * modules/faccessat (configure.ac): Add C witness.
25349         * lib/unistd.in.h (readlinkat): Fix typo.
25350         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
25351         convenience wrappers.
25352         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
25353         wrappers in syntax checks.
25354
25355 2009-09-06  Eric Blake  <ebb9@byu.net>
25356
25357         doc: fix comments in recent patches
25358         * lib/faccessat.c: Mention correct function.
25359         * lib/fchmodat.c: Likewise.
25360         * lib/fchownat.c: Likewise.
25361         * lib/symlinkat.c: Likewise.
25362         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
25363         constants.
25364
25365         faccessat, symlinkat: continue cleanup of previous patch
25366         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
25367         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25368         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
25369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
25370         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
25371         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
25372         set.
25373
25374 2009-09-06  Bruno Haible  <bruno@clisp.org>
25375
25376         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
25377         (fstatat): Declare if GNULIB_FSTATAT is set.
25378         (mkdirat): Declare if GNULIB_MKDIRAT is set.
25379         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
25380         (unlinkat): Declare if GNULIB_UNLINKAT is set.
25381         * modules/fcntl-h (Files): Remove m4/openat.m4.
25382         * modules/sys_stat (Files): Remove m4/openat.m4.
25383         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
25384         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
25385         * modules/unistd (Files): Remove m4/openat.m4.
25386         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
25387         GNULIB_OPENAT.
25388         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
25389         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
25390         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
25391         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
25392         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
25393         gl_OPENAT_DEFAULTS.
25394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
25395         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
25396         Don't require gl_OPENAT_DEFAULTS.
25397         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
25398         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
25399         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
25400         (gl_OPENAT_DEFAULTS): Remove macro.
25401
25402 2009-09-06  Bruno Haible  <bruno@clisp.org>
25403
25404         * modules/openat (configure.ac): Remove unneeded witness.
25405
25406 2009-09-06  Bruno Haible  <bruno@clisp.org>
25407
25408         Set errno to ENOSYS when a function is entirely unsupported.
25409         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
25410         EOPNOTSUPP.
25411         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25412         * modules/chown (Depends-on): Remove errno.
25413
25414 2009-09-06  Bruno Haible  <bruno@clisp.org>
25415
25416         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
25417
25418 2009-09-06  Bruno Haible  <bruno@clisp.org>
25419
25420         * lib/sys_stat.in.h: Fix preprocessor command indentation.
25421
25422 2009-09-06  Ben Pfaff  <blp@gnu.org>
25423             Bruno Haible  <bruno@clisp.org>
25424
25425         Work around a glibc bug in strtok_r.
25426         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
25427         Undefine if UNDEFINE_STRTOK_R is set.
25428         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
25429         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25430         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
25431         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
25432         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
25433         UNDEFINE_STRTOK_R.
25434         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
25435
25436 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25437
25438         exclude: minor fix
25439         * lib/exclude.c: Include wctype.h
25440
25441 2009-09-06  Akim Demaille  <demaille@gostai.com>
25442
25443         bootstrap: improve error message
25444         * build-aux/bootstrap (find_tool): Upon failure, report the list
25445         of candidates.
25446         Honor the initial value of the envvar.
25447
25448 2009-09-05  Eric Blake  <ebb9@byu.net>
25449
25450         symlinkat: new module
25451         * modules/symlinkat: New file.
25452         * lib/symlinkat.c: Likewise.
25453         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
25454         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25455         * modules/unistd (Makefile.am): Use them.
25456         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
25457         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
25458         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
25459         * MODULES.html.sh (File system functions): Mention module.
25460         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25461         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25462         * modules/symlinkat-tests: New test.
25463         * tests/test-symlinkat.c: Likewise.
25464
25465         test-openat-safer: add more checks
25466         * tests/test-openat-safer.c (main): Check more code paths.
25467
25468 2009-09-05  Jim Meyering  <meyering@redhat.com>
25469
25470         syntax-check: detect unnecessary inclusion of openat.h
25471         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
25472
25473 2009-09-05  Bruno Haible  <bruno@clisp.org>
25474
25475         Support towlower, towupper.
25476         * doc/posix-functions/towlower.texi: Mention module wctype.
25477         * doc/posix-functions/towupper.texi: Likewise.
25478         * lib/wctype.in.h (towlower, towupper): New functions.
25479         * tests/test-wctype.c: Include stdio.h, stdlib.h.
25480         (ASSERT): New macro.
25481         (e): New variable.
25482         (main): Test also towlower, towupper. Test WEOF argument.
25483         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
25484
25485 2009-09-05  Bruno Haible  <bruno@clisp.org>
25486
25487         Fix conversion behaviour when the input is invalid.
25488         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
25489         mark occurring in first pass of indirect conversion.
25490         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
25491         input.
25492         Found by clang's static analyzer.
25493
25494 2009-09-05  Bruno Haible  <bruno@clisp.org>
25495
25496         * tests/test-striconveh.c (main): Test indirect conversion on platforms
25497         where direct conversion is possible.
25498
25499 2009-09-04  Eric Blake  <ebb9@byu.net>
25500
25501         openat: fail with ENOENT on empty name
25502         * lib/openat-proc.c (openat_proc_name): Special-case the empty
25503         buffer.
25504
25505         link-follow: fix logic bug in prior patch
25506         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
25507         reversed sense of yes and no in prior patch.  Avoid confusing
25508         compilation failure with desired semantics.
25509
25510         link-follow: accomodate mingw and cross-compilation
25511         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
25512         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
25513         cross-compilation results to -1, to make linkat easier to
25514         implement when cross-compiling.  Trivially support mingw.
25515         * modules/link-follow (configure.ac): Call new name.
25516         * NEWS: Mention this.
25517
25518 2009-09-03  Eric Blake  <ebb9@byu.net>
25519
25520         faccessat: compile replacement
25521         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
25522         needed.
25523
25524         fts: fix compilation error
25525         * lib/fts.c (includes): Re-add "openat.h", for
25526         openat_needs_fchdir.
25527
25528         faccessat: new module
25529         * modules/faccessat: New file.
25530         * lib/faccessat.c: Likewise.
25531         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
25532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25533         * modules/unistd (Makefile.am): Use it.
25534         * lib/unistd.in.h (faccessat): Declare it.
25535         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
25536         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
25537         * MODULES.html.sh (File system functions): Mention it.
25538         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
25539         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
25540
25541         euidaccess: prefer POSIX over non-standard implementation
25542         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
25543         * lib/euidaccess.c (euidaccess): Use it if available.
25544
25545         openat: make template easier to use
25546         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
25547         AT_FUNC_F2 to be undefined.
25548         (VALIDATE_FLAG): New macro; use it to reject bad flags.
25549         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
25550         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
25551         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
25552         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
25553         Likewise.
25554         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
25555         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
25556         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
25557         Likewise.
25558
25559         openat: declare in POSIX headers
25560         * NEWS: Mention this.
25561         * modules/openat (configure.ac): Declare witnesses.
25562         (Depends-on): Add fcntl-h, sys_stat, unistd.
25563         (Include): Mention correct headers.
25564         * modules/fcntl-h (Depends-on): Add link-warning.
25565         (Files): Add openat.m4.
25566         (Makefile.am): Substitute witnesses.
25567         * modules/sys_stat (Files, Makefile.am): Likewise.
25568         * modules/unistd (Files, Makefile.am): Likewise.
25569         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
25570         (gl_OPENAT_DEFAULTS): New macro.
25571         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
25572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
25573         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
25574         (SYS_STAT_H): Remove unused variable.
25575         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
25576         * lib/fcntl--.h (includes): Remove unneeded header.
25577         * lib/openat-safer.c (includes): Likewise.
25578         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
25579         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
25580         appropriate headers.
25581         (__OPENAT_PREFIX): Delete.
25582         * lib/fcntl.in.h (openat): Provide declaration.
25583         (AT_FDCWD): Fix Solaris bug.
25584         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
25585         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
25586         * lib/fchmodat.c (includes):  Adjust to find declaration.
25587         * lib/fchownat.c (includes): Likewise.
25588         * lib/mkdirat.c (includes): Likewise.
25589         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
25590         still visible.
25591
25592 2009-09-02  Eric Blake  <ebb9@byu.net>
25593
25594         errno: use consistently
25595         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
25596         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
25597         * lib/canonicalize.c (ELOOP): Likewise.
25598         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
25599         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
25600         * lib/lchown.c (EOPNOTSUPP): Likewise.
25601         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
25602         * lib/savewd.c (ESTALE): Likewise.
25603         * lib/settime.c (ENOSYS): Likewise.
25604         * lib/utimens.c (ENOSYS): Likewise.
25605         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
25606         * lib/chdir-safer.c (ELOOP): Likewise.
25607         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
25608         * modules/c-stack (Depends-on): Add errno.
25609         * modules/canonicalize (Depends-on): Likewise.
25610         * modules/chdir-safer (Depends-on): Likewise.
25611         * modules/fdopendir (Depends-on): Likewise.
25612         * modules/inet_ntop (Depends-on): Likewise.
25613         * modules/inet_pton (Depends-on): Likewise.
25614         * modules/lchown (Depends-on): Likewise.
25615         * modules/openat (Depends-on): Likewise.
25616         * modules/savewd (Depends-on): Likewise.
25617         * modules/settime (Depends-on): Likewise.
25618         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
25619
25620         fts: avoid leaking fds
25621         * modules/fts (Depends-on): Add cloexec.
25622         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
25623         flag.
25624
25625         fts: make directory fds more robust
25626         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
25627         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
25628
25629         backupfile, chdir-long, fts, savedir: make safer
25630         * lib/backupfile.c (includes): Use "dirent--.h", since
25631         numbered_backup can write to stderr during readdir.
25632         * lib/savedir.c (includes): Likewise.
25633         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
25634         emulation can write to stderr on failure.
25635         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
25636         * lib/getcwd.c: Document why opendir_safer is unused.
25637         * lib/glob.c: Likewise.
25638         * lib/scandir.c: Likewise.
25639         * lib/openat-proc.c: Likewise, for open_safer.
25640         * modules/backupfile (Depends-on): Add dirent-safer.
25641         * modules/savedir (Depends-on): Likewise.
25642         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
25643         * modules/chdir-long (Depends-on): Add openat-safer.
25644
25645         openat-safer: new module
25646         * modules/openat-safer: New file.
25647         * lib/openat-safer.c: Likewise.
25648         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
25649         * lib/fcntl-safer.h (openat_safer): Declare.
25650         * lib/fcntl--.h (openat): Override.
25651         * MODULES.html.sh (File descriptor based I/O): Mention it.
25652         * lib/openat.h: Add double-inclusion guards.
25653         * lib/openat.c (includes): Only include "fcntl-safer.h", not
25654         "fcntl--.h", so we can implement openat.
25655         * modules/openat-safer-tests: New test.
25656         * tests/test-openat-safer.c: New file.
25657
25658         dirent-safer: new module
25659         * modules/dirent-safer: New file.
25660         * lib/dirent--.h: Likewise.
25661         * lib/dirent-safer.h: Likewise.
25662         * lib/opendir-safer.c: Likewise.
25663         * m4/dirent-safer.m4: Likewise.
25664         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
25665         * modules/dirent-safer-tests: New test.
25666         * tests/test-dirent-safer.c: New file.
25667         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
25668
25669         fdopendir: optimize on mingw
25670         * lib/unistd.in.h (_gl_directory_name): New prototype.
25671         * lib/fchdir.c (_gl_directory_name): Implement it.
25672         (fchdir): Use it to simplify implementation.
25673         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
25674         fchdir, when available, to avoid calling [f]chdir().
25675
25676         fdopendir: split into its own module
25677         * lib/openat.c (fdopendir): Move...
25678         * lib/fdopendir.c: ...into new file.
25679         * modules/fdopendir: New module.
25680         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
25681         * modules/openat (Depends-on): Add fdopendir.
25682         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
25683         fdopendir here.
25684         * modules/savedir (Depends-on): Only need fdopendir, not full
25685         openat.
25686         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
25687         * lib/openat.h (fdopendir): Drop prototype.
25688         * lib/dirent.in.h (fdopendir): Provide prototype.
25689         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
25690         * modules/dirent (Makefile.am): Substitute them.
25691         * MODULES.html.sh (File system functions): Mention it.
25692         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
25693         * modules/fdopendir-tests: New file.
25694         * tests/test-fdopendir.c: Likewise.
25695
25696         fchdir: use more consistent macro convention
25697         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
25698         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
25699         REPLACE_FCHDIR, rather than relying on config.h macros.
25700         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
25701         inside a single make-time REPLACE_FCHDIR block, rather than using
25702         the config.h FCHDIR_REPLACEMENT.
25703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
25704         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
25705         Manage fstat replacement.
25706         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
25707         REPLACE_FCHDIR.
25708         * modules/sys_stat (Files): Add m4/unistd_h.m4.
25709         (Makefile.am): Substitute REPLACE_FCHDIR.
25710         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
25711         FCHDIR_REPLACEMENT.
25712         * lib/dup-safer.c (dup_safer): Likewise.
25713         * lib/dup2.c (rpl_dup2): Likewise.
25714         * lib/dup3.c (rpl_dup3): Likewise.
25715         * lib/open.c (rpl_open): Likewise.
25716
25717         fchdir: simplify error handling, and support dup3
25718         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
25719         stdbool, malloc-posix, realloc-posix.
25720         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
25721         (ensure_dirs_slot): Return false on allocation failure.
25722         (rpl_dup2): Delete.
25723         (_gl_register_dup): New function.
25724         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
25725         (_gl_register_fd): Close fd on allocation failure.
25726         * lib/fcntl.in.h (_gl_register_fd): Update signature.
25727         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
25728         prototype.
25729         (rpl_dup2_fchdir): Delete prototype.
25730         * lib/open.c (open): Update caller.
25731         * lib/dup2.c (dup2): Track fchdir metadata.
25732         * lib/dup3.c (dup3): Likewise.
25733         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
25734         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
25735
25736 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25737
25738         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
25739         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
25740         don't pass arguments to AC_OUTPUT.
25741
25742 2009-09-02  Bruno Haible  <bruno@clisp.org>
25743
25744         * modules/mkdtemp (License): Relicense under LGPLv2+.
25745         Reported by Paolo Bonzini.
25746
25747 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25748
25749         Replace uses of obsolete autoconf macros in Jim's modules.
25750         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
25751         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
25752         can evoke a warning from autoconf when run with -Wobsolete
25753         enabled.  They were declared obsolete for good reasons (see
25754         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
25755         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
25756         should not continue using the deprecated macros.
25757         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
25758         obsolete Autoconf macros with modern counterparts.
25759         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25760         * m4/dos.m4 (gl_AC_DOS): Likewise.
25761         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
25762         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25763         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
25764         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
25765         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
25766         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
25767         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
25768         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
25769         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
25770         Likewise.
25771         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25772         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
25773         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
25774         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
25775         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
25776         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
25777
25778 2009-09-01  Eric Blake  <ebb9@byu.net>
25779
25780         fchdir: fix off-by-one bug in previous patch
25781         * lib/fchdir.c (rpl_fstat): Use correct bounds.
25782         (_gl_unregister_fd): Delete useless if.
25783
25784 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
25785
25786         maint.mk: sort the list of syntax-check rules
25787         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
25788         easier to get a sense of progress when the rules are run sequentially
25789         and take a long time.
25790
25791 2009-09-01  Simon Josefsson  <simon@josefsson.org>
25792
25793         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
25794         * modules/netinet_in: Likewise.
25795         * modules/sys_file: Likewise.
25796         * modules/sys_ioctl: Likewise.
25797         * modules/sys_select: Likewise.
25798         * modules/sys_socket: Likewise.
25799         * modules/sys_stat: Likewise.
25800         * modules/sys_time: Likewise.
25801         * modules/sys_times: Likewise.
25802         * modules/sys_utsname: Likewise.
25803         * modules/sys_wait: Likewise.
25804
25805 2009-09-01  Jim Meyering  <meyering@redhat.com>
25806
25807         fts: help ensure that return values are not ignored
25808         * lib/fts_.h (__GNUC_PREREQ): Define.
25809         (__attribute_warn_unused_result__): Define.
25810         (fts_children, fts_close, fts_open, fts_read): Declare with
25811         __attribute_warn_unused_result__.
25812
25813         fts: fts_close now fails also when closing a dir file descriptor fails
25814         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
25815         and propagate to caller, along with errno.
25816
25817         announce-gen: correct formatting in --help output
25818         * build-aux/announce-gen (usage): Move the one-line description in
25819         --help output "up", to where it belongs, just after Usage:.
25820
25821 2009-08-31  Eric Blake  <ebb9@byu.net>
25822
25823         fchdir: port to mingw
25824         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
25825         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
25826         opened, then use a substitute.
25827         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
25828         replacement.
25829         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
25830         (_gl_register_fd): No need to check stat if open already filters
25831         all directories.
25832         (fchdir): Fix error condition to match POSIX.
25833         * modules/fchdir (Depends-on): Add sys_stat.
25834         * doc/posix-functions/open.texi (open): Document the limitation.
25835         * modules/fchdir-tests: New file.
25836         * tests/test-fchdir.c: Likewise.
25837
25838         canonicalize: allow cross-testing from cygwin to mingw
25839         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
25840         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
25841         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
25842         Likewise.
25843         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
25844         target does not support symlinks.
25845         * tests/test-canonicalize-lgpl.sh: Likewise.
25846
25847         chown: avoid compilation warning on mingw
25848         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
25849         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
25850         mingw.
25851         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
25852         * modules/chown (Depends-on): Add errno.
25853
25854 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25855
25856         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
25857         command.
25858
25859 2009-08-31  Jim Meyering  <meyering@redhat.com>
25860
25861         canonicalize: remove useless initialization
25862         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
25863         initialization of local, "end".
25864
25865 2009-08-30  Bruno Haible  <bruno@clisp.org>
25866
25867         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
25868         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
25869         ENOSYS.
25870
25871 2009-08-30  Bruno Haible  <bruno@clisp.org>
25872
25873         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
25874         /usr/xpg4/bin/tr when it exists.
25875         * tests/test-pipe-filter-gi1.sh: Likewise.
25876
25877 2009-08-30  Bruno Haible  <bruno@clisp.org>
25878
25879         Work around deficient /usr/bin/id program on Solaris.
25880         * tests/test-file-has-acl.sh (ID): New variable.
25881         * tests/test-set-mode-acl.sh (ID): Likewise.
25882         * tests/test-copy-acl.sh (ID): Likewise.
25883         * tests/test-copy-file.sh (ID): Likewise.
25884
25885 2009-08-30  Bruno Haible  <bruno@clisp.org>
25886
25887         New module 'xstriconveh'.
25888         * lib/xstriconveh.h: New file.
25889         * lib/xstriconveh.c: New file.
25890         * modules/xstriconveh: New file.
25891
25892 2009-08-30  Bruno Haible  <bruno@clisp.org>
25893
25894         Make it easier to use mem_cd_iconveh.
25895         * lib/striconveh.h (iconveh_t): New type.
25896         (iconveh_open, iconveh_close): New declarations.
25897         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25898         with a single 'const iconveh_t *' argument.
25899         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
25900         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
25901         with a single 'const iconveh_t *' argument.
25902         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
25903         * tests/test-striconveh.c (main): Update.
25904         * NEWS: Mention the change.
25905
25906 2009-08-30  Bruno Haible  <bruno@clisp.org>
25907
25908         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
25909         problem.
25910
25911 2009-08-30  Bruno Haible  <bruno@clisp.org>
25912
25913         Work around iconv_open problem on Solaris.
25914         * lib/iconv_open-solaris.gperf: New file.
25915         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
25916         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
25917         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
25918         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
25919         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
25920         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
25921
25922 2009-08-29  Jim Meyering  <meyering@redhat.com>
25923
25924         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
25925         * top/maint.mk (cvs-check): Remove target; it was just an alias
25926         to the better-named vc-diff-check.
25927         (maintainer-distcheck): Remove rule.  It was used only from
25928         the (alpha/beta/major) target, and all of its commands but one
25929         were coreutils-specific.
25930         (vc-dist): Remove rule.
25931         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
25932         Run vc-diff-check, not vc-dist.
25933         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
25934
25935 2009-08-27  Bruno Haible  <bruno@clisp.org>
25936
25937         * tests/test-bitrotate.c (main): Remove test that uses a shift count
25938         of 0.
25939
25940 2009-08-27  Bruno Haible  <bruno@clisp.org>
25941
25942         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
25943         compilers.
25944         * doc/func.texi: Document the SunPRO C bug.
25945
25946 2009-08-27  Bruno Haible  <bruno@clisp.org>
25947
25948         Fix link error on Solaris.
25949         * tests/test-parse-duration.c (xstrdup): Remove function.
25950
25951 2009-08-26  Pádraig Brady  <P@draigbrady.com>
25952
25953         ignore-value: handle pointer types, too
25954         * lib/ignore-value.h (__attribute__): Remove definition.
25955         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
25956         of a more concise and more-often effective "(void) i" statement.
25957         (ignore_ptr): New function to suppress warnings from functions that
25958         return pointers, and to make it explicit that one function doesn't
25959         handle all cases.
25960
25961 2009-08-25  Bruno Haible  <bruno@clisp.org>
25962
25963         dup2: work around a Linux bug.
25964         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
25965         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
25966         * doc/posix-functions/dup2.texi: Mention the Linux bug.
25967         Reported by Simon Josefsson.
25968
25969 2009-08-25  Jim Meyering  <meyering@redhat.com>
25970
25971         libguestfs uses gnulib
25972         * users.txt: Add libguestfs.
25973
25974 2009-08-24  Eric Blake  <ebb9@byu.net>
25975
25976         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
25977         * lib/pipe2.c (includes): Add binary-io.h.
25978         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
25979
25980 2009-08-24  Bruno Haible  <bruno@clisp.org>
25981
25982         Tolerate declared but missing accept4 syscall.
25983         * lib/accept4.c (accept4): Invoke original accept4 function first, if
25984         available.
25985         * lib/sys_socket.in.h (accept4): If the function is already present,
25986         override it.
25987         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
25988         * modules/accept4 (Makefile.am): Compile accept4.c always.
25989         Reported by Paolo Bonzini and Eric Blake.
25990
25991 2009-08-23  Bruno Haible  <bruno@clisp.org>
25992
25993         New module 'accept4'.
25994         * lib/sys_socket.in.h (accept4): New declaration.
25995         * lib/accept4.c: New file.
25996         * m4/accept4.m4: New file.
25997         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25998         GNULIB_ACCEPT4, HAVE_ACCEPT4.
25999         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
26000         HAVE_ACCEPT4.
26001         * modules/accept4: New file.
26002         * doc/glibc-functions/accept4.texi: Mention the new module.
26003
26004 2009-08-24  Jim Meyering  <meyering@redhat.com>
26005
26006         progname: also set global program_invocation_name, when possible
26007         Before this change, a libtool-enabled program that calls glibc's
26008         error function would report the program name as
26009         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
26010         * modules/progname (configure.ac): Check for a declaration of
26011         program_invocation_name.
26012         * lib/progname.c:  Include <errno.h>.
26013         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
26014         Set program_invocation_name.
26015
26016 2009-08-23  Bruno Haible  <bruno@clisp.org>
26017
26018         * lib/dup3.c: Include <string.h>.
26019
26020 2009-08-23  Bruno Haible  <bruno@clisp.org>
26021
26022         * lib/dup3.c (dup3): Test only once whether the system actually exists.
26023         * lib/pipe2.c (pipe2): Likewise.
26024         Suggested by Eric Blake.
26025
26026 2009-08-23  Bruno Haible  <bruno@clisp.org>
26027
26028         Tolerate declared but missing dup3 syscall.
26029         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
26030         * lib/unistd.in.h (dup3): If the function is already present,
26031         override it.
26032         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
26033         * modules/dup3 (Makefile.am): Compile dup3.c always.
26034         Reported by Paolo Bonzini.
26035
26036 2009-08-23  Bruno Haible  <bruno@clisp.org>
26037
26038         Tolerate declared but missing pipe2 syscall.
26039         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
26040         available.
26041         * lib/unistd.in.h (pipe2): If the function is already present,
26042         override it.
26043         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
26044         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
26045         Reported by Paolo Bonzini.
26046
26047 2009-08-23  Bruno Haible  <bruno@clisp.org>
26048
26049         * lib/pipe2.c (pipe2): Move #ifs inside function.
26050
26051 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26052
26053         quotearg: document limitations of quote_these_too
26054         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
26055         those limitations are created.
26056         * lib/quotearg.h (set_char_quoting): Document that digits and
26057         letters that are special after backslash are not permitted.
26058         (quotearg_char): Cross-reference set_char_quoting documentation.
26059
26060 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
26061
26062         quotearg: implement custom_quoting_style
26063         * lib/quotearg.c: (struct quoting_options): Add left_quote and
26064         right_quote fields.
26065         (set_custom_quoting): New public function.
26066         (quotearg_buffer_restyled): Add left_quote and right_quote
26067         arguments, handle them very much like locale quoting, and update
26068         all uses.
26069         (quotearg_n_custom): New public function.
26070         (quotearg_n_custom_mem): New public function.
26071         (quotearg_custom): New public function.
26072         (quotearg_custom_mem): New public function.
26073         * lib/quotearg.h: Prototype and document new public functions.
26074         (enum quoting_style): For escape_quoting_style and
26075         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
26076         ignored even though they're otherwise like c_quoting_style.
26077         Add custom_quoting_style member and document with comparison to
26078         clocale_quoting_style.
26079         * tests/test-quotearg.c (custom_quotes): New array.
26080         (custom_results): New array.
26081         (main): Extend to test custom quoting.
26082
26083 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26084
26085         quotearg: fix right quote escaping when it's in quote_these_too
26086         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
26087         quote, be sure to prepend only one backslash.
26088         * tests/test-quotearg.c (use_quote_double_quotes): New function.
26089         (main): Test it.
26090
26091 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
26092
26093         quotearg-tests: test escaping of embedded locale quotes
26094         * tests/test-quotearg.c (struct result_strings): Add member for
26095         new input.
26096         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
26097         (inputs): Add new input.
26098         (results_g): Add expected results.
26099         (flag_results): Likewise.
26100         (locale_results): Likewise.
26101         (compare_strings): Check those.
26102
26103 2009-08-23  Bruno Haible  <bruno@clisp.org>
26104
26105         Tests for module 'dup3'.
26106         * modules/dup3-tests: New file.
26107         * tests/test-dup3.c: New file.
26108
26109         New module 'dup3'.
26110         * lib/unistd.in.h (dup3): New declaration.
26111         * lib/dup3.c: New file.
26112         * m4/dup3.m4: New file.
26113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
26114         HAVE_DUP3.
26115         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
26116         * modules/dup3: New file.
26117         * doc/glibc-functions/dup3.texi: Mention the new module.
26118
26119 2009-08-23  Bruno Haible  <bruno@clisp.org>
26120
26121         Tweak the dup2 test.
26122         * tests/test-dup2.c (main): Create the test file empty. Verify that an
26123         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
26124         the test file is still empty. Fix argument order of lseek.
26125
26126 2009-08-23  Bruno Haible  <bruno@clisp.org>
26127
26128         Avoid test link errors when the modules getopt-gnu, gettext are used.
26129         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
26130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26131
26132 2009-08-23  Bruno Haible  <bruno@clisp.org>
26133
26134         Fix getdtablesize() on mingw.
26135         * lib/getdtablesize.c (getdtablesize): Implement differently.
26136         * lib/unistd.in.h (getdtablesize): Improve comment.
26137
26138 2009-08-23  Bruno Haible  <bruno@clisp.org>
26139
26140         New module 'mkostemp'.
26141         Based on Ulrich Drepper's 2007-08-10 change in glibc.
26142         * lib/stdlib.in.h (mksotemp): New declaration.
26143         * lib/mkostemp.c: New file, from glibc with modifications.
26144         * lib/tempname.h (GT_FILE): Remove outdated comment.
26145         (gen_tempname): Add flags argument.
26146         * lib/tempname.c (__GT_BIGFILE): Remove macro.
26147         (__GT_FILE): Map to 1.
26148         (small_open, large_open): Remove macros.
26149         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
26150         * lib/mkstemp.c (mkstemp): Update.
26151         * lib/mkdtemp.c (mkdtemp): Likewise.
26152         * m4/mkostemp.m4: New file.
26153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
26154         HAVE_MKOSTEMP.
26155         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
26156         HAVE_MKOSTEMP.
26157         * modules/mkostemp: New file, based on modules/mkstemp.
26158         * doc/glibc-functions/mkostemp.texi: Mention the new module.
26159         * NEWS: Mention the change.
26160
26161 2009-08-23  Bruno Haible  <bruno@clisp.org>
26162
26163         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
26164         Reported by Eric Blake.
26165
26166 2009-08-23  Bruno Haible  <bruno@clisp.org>
26167
26168         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
26169         Reported by Eric Blake.
26170
26171 2009-08-23  Bruno Haible  <bruno@clisp.org>
26172
26173         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
26174         * modules/pipe2 (Depends-on): Likewise.
26175
26176 2009-08-23  Eric Blake  <ebb9@byu.net>
26177
26178         fcntl-h: add O_TTY_INIT support
26179         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
26180         * tests/test-fcntl-h.c (o): Test it.
26181         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26182
26183         fcntl-h: rename from fcntl, in preparation for fcntl(2)
26184         * modules/fcntl: Move <fcntl.h> header replacement...
26185         * modules/fcntl-h: ...to new name, so as not to collide with
26186         like-named function.
26187         * tests/test-fcntl.c: Rename...
26188         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
26189         * modules/fcntl-tests: Rename...
26190         * modules/fcntl-h-tests: ...to this.  Update test file name.
26191         * modules/chdir-long (Depends-on): Update clients.
26192         * modules/chdir-safer (Depends-on): Likewise.
26193         * modules/fcntl-safer (Depends-on): Likewise.
26194         * modules/fts (Depends-on): Likewise.
26195         * modules/mkancesdirs (Depends-on): Likewise.
26196         * modules/mkdir-p (Depends-on): Likewise.
26197         * modules/open (Depends-on): Likewise.
26198         * modules/savewd (Depends-on): Likewise.
26199         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
26200         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
26201
26202 2009-08-22  Bruno Haible  <bruno@clisp.org>
26203
26204         * modules/binary-io (License): Relicense under LGPL.
26205         * modules/pipe2 (License): Likewise.
26206
26207 2009-08-22  Bruno Haible  <bruno@clisp.org>
26208
26209         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
26210         return value.
26211         * lib/pipe-filter-gi.c (filter_init): Likewise.
26212         Reported by Eric Blake.
26213
26214 2009-08-22  Bruno Haible  <bruno@clisp.org>
26215
26216         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
26217         * modules/pipe (Depends-on): Add pipe2.
26218
26219 2009-08-22  Bruno Haible  <bruno@clisp.org>
26220
26221         Tests for module 'pipe2'.
26222         * modules/pipe2-tests: New file.
26223         * tests/test-pipe2.c: New file.
26224
26225         New module 'pipe2'.
26226         * lib/unistd.in.h (pipe2): New declaration.
26227         * lib/pipe2.c: New file.
26228         * m4/pipe2.m4: New file.
26229         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
26230         HAVE_PIPE2.
26231         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
26232         * modules/pipe2: New file.
26233         * doc/glibc-functions/pipe2.texi: Mention the new module.
26234
26235 2009-08-22  Bruno Haible  <bruno@clisp.org>
26236
26237         Reference some new glibc functions.
26238         * doc/glibc-functions/accept4.texi: New file.
26239         * doc/glibc-functions/dup3.texi: New file.
26240         * doc/glibc-functions/mkostemp.texi: New file.
26241         * doc/glibc-functions/pipe2.texi: New file.
26242         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
26243         (Glibc sys/socket.h): Refer to accept4.
26244         (Glibc unistd.h): Refer to dup3, pipe2.
26245         Reported by Eric Blake.
26246
26247 2009-08-22  Jim Meyering  <meyering@redhat.com>
26248             Bruno Haible  <bruno@clisp.org>
26249
26250         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
26251         This makes it so packages using automake-1.11's silent-rules option
26252         can print e.g., a single "GEN    configmake.h" line, rather than
26253         the 30+ statements that perform the job.  If you want to see the
26254         actual commands, you can still run "make V=1".
26255         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
26256         so that make output is abbreviated when those variables are defined
26257         appropriately.
26258         * modules/argz: Likewise.
26259         * modules/arpa_inet: Likewise.
26260         * modules/byteswap: Likewise.
26261         * modules/configmake: Likewise.
26262         * modules/dirent: Likewise.
26263         * modules/errno: Likewise.
26264         * modules/fcntl: Likewise.
26265         * modules/float: Likewise.
26266         * modules/fnmatch: Likewise.
26267         * modules/getopt-posix: Likewise.
26268         * modules/glob: Likewise.
26269         * modules/iconv_open: Likewise.
26270         * modules/inttypes: Likewise.
26271         * modules/localcharset: Likewise.
26272         * modules/locale: Likewise.
26273         * modules/math: Likewise.
26274         * modules/netdb: Likewise.
26275         * modules/netinet_in: Likewise.
26276         * modules/poll: Likewise.
26277         * modules/posix_spawnp-tests: Likewise.
26278         * modules/sched: Likewise.
26279         * modules/search: Likewise.
26280         * modules/selinux-h: Likewise.
26281         * modules/signal: Likewise.
26282         * modules/spawn: Likewise.
26283         * modules/stdarg: Likewise.
26284         * modules/stdbool: Likewise.
26285         * modules/stddef: Likewise.
26286         * modules/stdint: Likewise.
26287         * modules/stdio: Likewise.
26288         * modules/stdlib: Likewise.
26289         * modules/string: Likewise.
26290         * modules/strings: Likewise.
26291         * modules/sys_file: Likewise.
26292         * modules/sys_ioctl: Likewise.
26293         * modules/sys_select: Likewise.
26294         * modules/sys_socket: Likewise.
26295         * modules/sys_stat: Likewise.
26296         * modules/sys_time: Likewise.
26297         * modules/sys_times: Likewise.
26298         * modules/sys_utsname: Likewise.
26299         * modules/sys_wait: Likewise.
26300         * modules/sysexits: Likewise.
26301         * modules/time: Likewise.
26302         * modules/unistd: Likewise.
26303         * modules/wchar: Likewise.
26304         * modules/wctype: Likewise.
26305
26306 2009-08-22  Jim Meyering  <meyering@redhat.com>
26307
26308         announce-gen: detect write failure
26309         * build-aux/announce-gen: Add Coda at end.
26310         Remove equivalent-but-more-verbose block at top.
26311
26312 2009-08-19  Akim Demaille  <demaille@gostai.com>
26313
26314         bootstrap: --help to stdout.
26315         * bootstrap (usage): Don't send --help to stderr.
26316         Use a here doc instead of a long string.
26317
26318 2009-08-21  Eric Blake  <ebb9@byu.net>
26319
26320         test-popen-safer: split from test-popen
26321         * tests/test-popen.c (main): Move...
26322         * tests/test-popen.h: ...into new file.
26323         * tests/test-popen-safer2.c: New file.
26324         * modules/popen-tests (Files): Add test-popen.h.
26325         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
26326         Suggested by Bruno Haible.
26327
26328         test-fcntl-safer: split from test-open
26329         * tests/test-open.c (main): Move...
26330         * tests/test-open.h: ...into new file.
26331         * tests/test-fcntl-safer.c: New file.
26332         * modules/open-tests (Files): Add test-open.h.
26333         * modules/fcntl-safer-tests: New file.
26334         Suggested by Bruno Haible.
26335
26336         test-fopen-safer: split from test-fopen
26337         * tests/test-fopen.c (main): Move...
26338         * tests/test-fopen.h: ...into new file.
26339         * tests/test-fopen-safer.c: New file.
26340         * modules/fopen-tests (Files): Add test-fopen.h.
26341         * modules/fopen-safer-tests: New file.
26342         Suggested by Bruno Haible.
26343
26344 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26345
26346         popen-safer: test O_CLOEXEC at run-time.
26347         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
26348
26349 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
26350
26351         fcntl: move more flags to the header
26352         * lib/cloexec.c: Do not define FD_CLOEXEC here.
26353         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
26354         * lib/fcntl.in.h: Do both things here.
26355
26356 2009-08-21  Jim Meyering  <meyering@redhat.com>
26357
26358         consistently remove $@-t before redirecting to it
26359         * modules/argz: Remove $@-t and $@ before redirecting to the former.
26360         * modules/alloca-opt: Likewise.
26361         * modules/byteswap: Likewise.
26362         * modules/fnmatch: Likewise.
26363         * modules/getopt-posix: Likewise.
26364         * modules/glob: Likewise.
26365         * modules/poll: Likewise.
26366         * modules/posix_spawnp-tests: Likewise.
26367         * modules/sys_socket: Likewise.
26368         * modules/sysexits: Likewise.
26369
26370 2009-08-21  Eric Blake  <ebb9@byu.net>
26371
26372         popen: simplify access to original popen
26373         * lib/popen.c (rpl_popen): No need to worry about popen being a
26374         macro.
26375         Reported by Bruno Haible.
26376
26377 2009-08-20  Eric Blake  <ebb9@byu.net>
26378
26379         build: avoid some compiler warnings
26380         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
26381         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
26382         type.
26383         (new_exclude_segment, excluded_file_pattern_p)
26384         (excluded_file_name_p): Reduce scope.
26385         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
26386         old-style declaration.
26387
26388 2009-08-20  Simon Josefsson  <simon@josefsson.org>
26389
26390         * tests/test-exclude1.sh: Handle Windows EOL.
26391         * tests/test-exclude2.sh: Likewise.
26392         * tests/test-exclude3.sh: Likewise.
26393         * tests/test-exclude4.sh: Likewise.
26394         * tests/test-exclude5.sh: Likewise.
26395         * tests/test-exclude6.sh: Likewise.
26396         * tests/test-exclude7.sh: Likewise.
26397
26398 2009-08-19  Akim Demaille  <demaille@gostai.com>
26399
26400         bootstrap: find sha1sum when named gsha1sum.
26401         * bootstrap (find_tool): New.
26402         ($SHA1SUM): New.
26403         Use it.
26404
26405 2009-08-20  Jim Meyering  <meyering@redhat.com>
26406
26407         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
26408         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
26409         expression that converts "." in a file name to "\." in the resulting
26410         regexp.  Start with a dummy statement, so that prior shell variable
26411         definitions are expanded portably.  Reported by Simon Josefsson.
26412
26413 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
26414
26415         Fix polling for writeability of a screen buffer.
26416         * lib/poll.c: Distinguish input and screen buffers for the
26417         Win32 implementation.
26418         * lib/select.c: Likewise.
26419
26420 2009-08-19  Eric Blake  <ebb9@byu.net>
26421
26422         popen-safer: prevent popen from clobbering std descriptors
26423         * modules/popen-safer: New file.
26424         * lib/popen-safer.c: Likewise.
26425         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
26426         * lib/stdio--.h (popen): Provide override.
26427         * lib/stdio-safer.h (popen_safer): Provide declaration.
26428         * tests/test-popen.c (includes): Partially test this.
26429         * modules/popen-safer-tests: New file, for more tests.
26430         * tests/test-popen-safer.c: Likewise.
26431         * MODULES.html.sh (file stream based Input/Output): Mention it.
26432
26433         tests: test some of the *-safer modules
26434         * modules/fopen-safer (Depends-on): Add fopen.
26435         * modules/fcntl-safer (Depends-on): Add fcntl.
26436         * modules/stdlib-safer (Depends-on): Add stdlib.
26437         (configure.ac): Set indicator.
26438         * modules/unistd-safer (configure.ac): Likewise.
26439         * modules/tmpfile-safer (configure.ac): Likewise.
26440         (Depends-on): Add tmpfile.
26441         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
26442         active.
26443         * tests/test-fopen.c (includes): Test safer versions when they are
26444         in use.
26445         * tests/test-open.c (includes): Likewise.
26446
26447         popen: fix cygwin 1.5 bug when stdin closed
26448         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
26449         * modules/popen: New file.
26450         * modules/popen-tests: Likewise.
26451         * tests/test-popen.c: Likewise.
26452         * m4/popen.m4: Likewise.
26453         * lib/popen.c: Likewise.
26454         * lib/stdio.in.h (popen): New declaration.
26455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
26456         * modules/stdio (Makefile.am): Likewise.
26457         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
26458
26459 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
26460
26461         maint.mk: give full control over update-copyright exclusions
26462         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
26463         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
26464         (update-copyright): Don't force inclusion of top-level
26465         ChangeLog.  Don't force exclusion of all COPYING files, but make
26466         them the default exclusion instead.
26467
26468 2009-08-16  Bruno Haible  <bruno@clisp.org>
26469
26470         Fix test failures on Solaris 10.
26471         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
26472         tests when Solaris iconv() is used.
26473         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26474         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26475         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26476         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26477         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26478
26479 2009-08-16  Bruno Haible  <bruno@clisp.org>
26480
26481         Fix test failures on Solaris 10.
26482         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
26483         'tr' program and pass it as first argument.
26484         * tests/test-pipe-filter-gi1.sh: Likewise.
26485         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
26486         program as first argument.
26487         * tests/test-pipe-filter-gi1.c (main): Likewise.
26488
26489 2009-08-16  Eric Blake  <ebb9@byu.net>
26490
26491         fpurge: fix previous commits
26492         * modules/fpurge (Makefile.am): Make replacement conditional,
26493         partially reverting 2007-04-29 change; missed in previous
26494         attempt.
26495         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
26496         is missing.
26497
26498 2009-08-16  Bruno Haible  <bruno@clisp.org>
26499
26500         Clarify fpurge's effect on the file position.
26501         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
26502         * tests/test-fpurge.c (main): Make a second pass for checking the file
26503         position.
26504
26505 2009-08-16  Bruno Haible  <bruno@clisp.org>
26506
26507         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
26508         declaration of fpurge is missing.
26509         * tests/test-fpurge.c (main): Check that the file has not more contents
26510         than expected. Close the file before removing it.
26511
26512 2009-08-15  Eric Blake  <ebb9@byu.net>
26513
26514         fpurge: don't wrap working cygwin implementation
26515         * lib/fpurge.c (fpurge): Fix comment typo.
26516         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
26517         1.7 to avoid replacement.
26518         * tests/test-fpurge.c (main): Enhance test.
26519
26520 2009-08-15  Eric Blake  <ebb9@byu.net>
26521         and Jim Meyering  <meyering@redhat.com>
26522
26523         test-update-copyright: skip if perl is insufficient
26524         * tests/test-update-copyright.sh: Failure to run maintainer tool
26525         should not cause testsuite failure on cygwin 1.5.
26526
26527 2009-08-14  Eric Blake  <ebb9@byu.net>
26528
26529         doc: mention more functions added in cygwin 1.7.0
26530         * doc/posix-headers/limits.texi (limits.h): Update for recent
26531         cygwin additions.
26532         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
26533         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
26534         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
26535         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
26536         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
26537
26538 2009-08-14  Eric Blake  <ebb9@byu.net>
26539
26540         maint.mk: simplify update-copyright rule
26541         * top/maint.mk (update-copyright-local): Delete, and document how
26542         to do it in cfg.mk instead.
26543         (update-copyright-exclude-regexp): Delete, and document how to do
26544         it in .x-update-copyright instead.
26545         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
26546         exclude ChangeLog.
26547
26548 2009-08-14  Bruno Haible  <bruno@clisp.org>
26549
26550         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
26551
26552 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26553
26554         maint.mk: support update-copyright-env
26555         * top/maint.mk (update-copyright-env): Define place-holder.
26556         (update-copyright): Expand $(update-copyright-env) before
26557         invoking update-copyright.
26558
26559 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26560
26561         update-copyright: implement forced reformatting
26562         * build-aux/update-copyright: Implement and document
26563         UPDATE_COPYRIGHT_FORCE.
26564         * tests/test-update-copyright.sh: Test it.
26565
26566 2009-08-14  Eric Blake  <ebb9@byu.net>
26567         and Bruno Haible  <bruno@clisp.org>
26568
26569         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
26570         * tests/test-locale.c: Revert previous patch related to NULL.
26571         * tests/test-stdio.c: Likewise.
26572         * tests/test-stdlib.c: Likewise.
26573         * tests/test-string.c: Likewise.
26574         * tests/test-unistd.c: Likewise.
26575         * modules/time-tests (Depends-on): Add verify.
26576         * modules/wchar-tests (Depends-on): Likewise.
26577         * tests/test-time.c: Test for NULL compliance.
26578         * tests/test-wchar.c: Likewise.
26579         * modules/locale (Depends-on): Add stddef.
26580         * modules/stdio (Depends-on): Likewise.
26581         * modules/stdlib (Depends-on): Likewise.
26582         * modules/string (Depends-on): Likewise.
26583         * modules/time (Depends-on): Likewise.
26584         * modules/unistd (Depends-on): Likewise.
26585         * modules/wchar (Depends-on): Likewise.
26586         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
26587         * lib/stdlib.in.h (includes): Likewise.
26588         * lib/string.in.h (includes): Likewise.
26589         * lib/time.in.h (includes): Likewise.
26590         * lib/unistd.in.h (includes): Likewise.
26591         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
26592         replaced.
26593         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
26594         * m4/stddef_h.m4: New file.
26595         * modules/stddef: Likewise.
26596         * lib/stddef.in.h: Likewise.
26597         * modules/stddef-tests: Likewise.
26598         * tests/test-stddef.c: Likewise.
26599         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
26600         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
26601         * doc/posix-headers/locale.texi (locale.h): Likewise.
26602         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
26603         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26604         * doc/posix-headers/string.texi (string.h): Likewise.
26605         * doc/posix-headers/time.texi (time.h): Likewise.
26606         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
26607         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
26608
26609 2009-08-14  Eric Blake  <ebb9@byu.net>
26610
26611         doc: improve git diff of texinfo files
26612         * .gitattributes: Add rule for *.texi files, with hint on how to
26613         use it.
26614         Copied from m4, and based on a report by Bruno Haible.
26615
26616 2009-08-14  Bruno Haible  <bruno@clisp.org>
26617
26618         Disable multithread support by default on Cygwin 1.5.x for real.
26619         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
26620
26621 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
26622
26623         update-copyright: much ado about intervals
26624         * build-aux/update-copyright: Implement and document
26625         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
26626         of copyright year intervals.
26627         Also, document UPDATE_COPYRIGHT_YEAR.
26628         * tests/test-update-copyright.sh: Test it.
26629
26630         update-copyright: convert 2-digit to 4-digit years
26631         * build-aux/update-copyright: Implement and document.
26632         * tests/test-update-copyright.sh: Update.
26633
26634 2009-08-14  Jim Meyering  <meyering@redhat.com>
26635
26636         test-exclude: avoid coreutils "make check" failure
26637         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
26638         just as in test-argmatch.c.
26639
26640 2009-08-13  Eric Blake  <ebb9@byu.net>
26641
26642         test-dup2: fix bad assumption
26643         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
26644         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
26645
26646         test-version-etc: fix CRLF portability issue
26647         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
26648         recognize \r.
26649         * tests/test-argp-version-etc-1.sh: Likewise.
26650
26651         getopt: update client modules
26652         * modules/argp (Depends-on): Use getopt-gnu.
26653         * modules/git-merge-changelog (Depends-on): Likewise.
26654         * modules/long-options (Depends-on): Likewise.
26655         * modules/xstrtol (Depends-on): Likewise.
26656
26657 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26658
26659         * tests/test-version-etc.sh: Don't fail on different
26660         project/version.  Don't fail on CRLF differences.  Rewrite to use
26661         multiple -e instead of multiple sed forks, suggested by Eric Blake
26662         <ebb9@byu.net>.
26663         * tests/test-argp-version-etc-1.sh: Likewise.
26664
26665 2009-08-13  Simon Josefsson  <simon@josefsson.org>
26666
26667         * tests/test-version-etc.sh: Don't fail on different
26668         project/version.
26669
26670 2009-08-12  Bruno Haible  <bruno@clisp.org>
26671
26672         Tests for modules 'getopt-posix', 'getopt-gnu'.
26673         * modules/getopt-posix-tests: New file.
26674         * tests/test-getopt.c: New file.
26675         * tests/test-getopt.h: New file.
26676         * tests/test-getopt_long.h: New file.
26677
26678         New modules 'getopt-posix', 'getopt-gnu'.
26679         * modules/getopt-gnu: New file, renamed from modules/getopt.
26680         * modules/getopt-posix: New file.
26681         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
26682         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
26683         (gl_GETOPT): Remove macro.
26684         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
26685         Disable the test against BSD systems that declare optreset. Test
26686         against mingw bug. Test against lack of support of optional arguments
26687         on many platforms.
26688         * doc/glibc-headers/getopt.texi: Update module name and list of
26689         relevant platforms.
26690         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
26691         'getopt-gnu' and more portability problems.
26692         * NEWS: Mention the changes.
26693
26694 2009-08-12  Bruno Haible  <bruno@clisp.org>
26695
26696         Ensure that optarg etc. get declared by <unistd.h>.
26697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
26698         AC_USE_SYSTEM_EXTENSIONS.
26699         * modules/getopt (Depends-on): Add 'extensions'.
26700
26701 2009-08-12  Bruno Haible  <bruno@clisp.org>
26702
26703         Avoid test link errors.
26704         * modules/pipe-filter-ii-tests (Makefile.am): Define
26705         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
26706         * modules/pipe-filter-gi-tests (Makefile.am): Define
26707         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
26708         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26709
26710 2009-08-12  Bruno Haible  <bruno@clisp.org>
26711
26712         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
26713         gl_GETOPT_SUBSTITUTE before.
26714         (gl_GETOPT): Use it.
26715         * m4/argp.m4 (gl_ARGP): Update.
26716         Reported by Sergey Poznyakoff.
26717
26718         * m4/getopt.m4: Reorder macros.
26719         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
26720         (gl_GETOPT_SUBSTITUTE): Remove macro.
26721
26722 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26723
26724         Minor improvement in gitlog-to-changelog
26725
26726         * build-aux/gitlog-to-changelog: New option `--format' makes
26727         output format string configurable.
26728
26729 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
26730
26731         Optimize exclude: use hash tables for non-wildcard patterns.
26732
26733         * lib/exclude.c: Include hash.h and mbuiter.h
26734         (struct exclude_pattern, exclude_segment): New data types.
26735         (struct exclude): Rewrite.
26736         (fnmatch_pattern_has_wildcards): New function.
26737         (new_exclude_segment, free_exclude_segment): New functions.
26738         (excluded_file_pattern_p, excluded_file_name_p): New functions.
26739         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
26740         * lib/exclude.h (is_fnmatch_pattern): New prototype.
26741         * modules/exclude: Depend on hash and mbuiter.
26742
26743         * modules/exclude-tests: New file.
26744         * tests/test-exclude.c: New file.
26745         * tests/test-exclude1.sh: New file.
26746         * tests/test-exclude2.sh: New file.
26747         * tests/test-exclude3.sh: New file.
26748         * tests/test-exclude4.sh: New file.
26749         * tests/test-exclude5.sh: New file.
26750         * tests/test-exclude6.sh: New file.
26751         * tests/test-exclude7.sh: New file.
26752
26753 2009-08-12  Bruno Haible  <bruno@clisp.org>
26754
26755         Ensure that getopt() gets declared by <unistd.h>.
26756         * lib/unistd.in.h: Conditionally include getopt.h.
26757         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
26758         Set GNULIB_UNISTD_H_GETOPT.
26759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26760         GNULIB_UNISTD_H_GETOPT.
26761         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
26762
26763 2009-08-12  Bruno Haible  <bruno@clisp.org>
26764
26765         Clarify logic.
26766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
26767         gl_replace_getopt instead of GETOPT_H.
26768
26769 2009-08-12  Bruno Haible  <bruno@clisp.org>
26770
26771         * m4/getopt.m4: Add comments.
26772
26773 2009-08-12  Bruno Haible  <bruno@clisp.org>
26774
26775         Disable multithread support by default on Cygwin 1.5.x.
26776         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
26777         set gl_use_threads=no if not specified otherwise.
26778
26779 2009-08-11  Bruno Haible  <bruno@clisp.org>
26780
26781         Avoid compilation error on NetBSD 5.0.
26782         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
26783         * tests/test-stdio.c: Likewise.
26784         * tests/test-stdlib.c: Likewise.
26785         * tests/test-string.c: Likewise.
26786         * tests/test-unistd.c: Likewise.
26787         Reported by Greg Troxel <gdt@ir.bbn.com>
26788         at <https://savannah.gnu.org/support/?106973>.
26789
26790 2009-08-11  Bruno Haible  <bruno@clisp.org>
26791
26792         * modules/dup2-tests (Depends-on): Remove close.
26793
26794         Undo 2009-07-19 commit.
26795         * modules/acl-tests (Depends-on): Remove close.
26796         * modules/binary-io-tests (Depends-on): Likewise.
26797         * modules/closein-tests (Depends-on): Likewise.
26798         * modules/flock-tests (Depends-on): Likewise.
26799         * modules/fsync-tests (Depends-on): Likewise.
26800         * modules/lseek-tests (Depends-on): Likewise.
26801         * modules/pipe-tests (Depends-on): Likewise.
26802         * modules/posix_spawn-tests (Depends-on): Likewise.
26803         * modules/posix_spawnp-tests (Depends-on): Likewise.
26804         * modules/stat-time-tests (Depends-on): Likewise.
26805         * modules/yesno-tests (Depends-on): Likewise.
26806
26807 2009-08-10  Bruno Haible  <bruno@clisp.org>
26808
26809         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
26810
26811 2009-08-10  Bruno Haible  <bruno@clisp.org>
26812
26813         Fix a gcc warning.
26814         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
26815
26816 2009-08-10  Bruno Haible  <bruno@clisp.org>
26817
26818         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
26819         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
26820         not only the first time.
26821         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
26822         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
26823         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
26824         is 1, not only the the first time.
26825
26826 2009-08-10  Bruno Haible  <bruno@clisp.org>
26827
26828         Make it possible to use module 'gethostname' without module 'close'.
26829         * lib/unistd.in.h (close): Evoke a link error only if
26830         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26832         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26833         * modules/unistd (Makefile.am): Substitute
26834         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26835         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
26836         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
26837         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26838         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26839         * modules/sys_ioctl (Makefile.am): Substitute
26840         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26841         * modules/socket (configure.ac): On native Windows, set
26842         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
26843         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
26844         Reported by Sam Steingold <sds@gnu.org>.
26845
26846 2009-08-10  Bruno Haible  <bruno@clisp.org>
26847
26848         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
26849         * modules/ioctl (configure.ac): Likewise.
26850
26851 2009-08-10  Bruno Haible  <bruno@clisp.org>
26852
26853         Avoid collision between gnulib wrapper and libintl wrapper.
26854         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
26855         already defined in intl/printf.c.
26856         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
26857         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
26858
26859 2009-08-09  Bruno Haible  <bruno@clisp.org>
26860
26861         Make <sys/select.h> really self-contained, also on Solaris 10.
26862         * lib/sys_select.in.h: Include <string.h>.
26863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
26864         Solaris 10 problem.
26865         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
26866         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
26867         Reported by Jim Meyering.
26868
26869 2009-08-09  Bruno Haible  <bruno@clisp.org>
26870
26871         Avoid warnings from 'aclocal' that are due to a use of macro name
26872         AM_XGETTEXT_OPTION that is not defined in automake.
26873         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
26874         automake.
26875         * modules/error (configure.ac): Likewise.
26876         * modules/propername (configure.ac): Likewise.
26877         * modules/vasprintf (configure.ac): Likewise.
26878         * modules/verror (configure.ac): Likewise.
26879         * modules/xprintf (configure.ac): Likewise.
26880         * modules/xvasprintf (configure.ac): Likewise.
26881
26882 2009-08-08  Bruno Haible  <bruno@clisp.org>
26883
26884         Avoid compilation error in C++ mode.
26885         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
26886         Reported by Sam Steingold <sds@gnu.org>.
26887
26888 2009-08-08  Bruno Haible  <bruno@clisp.org>
26889
26890         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
26891         for the various Unix platforms.
26892         * doc/posix-headers/limits.texi: Update platforms list regarding
26893         HOST_NAME_MAX.
26894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26895
26896 2009-08-07  Jim Meyering  <meyering@redhat.com>
26897
26898         selinux-at: fix typo in a comment
26899         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
26900         Spotted by Paolo Bonzini.
26901
26902         selinux-at: remove redundant m4 code, add documentation
26903         * modules/selinux-at (configure.ac): Remove redundant code.
26904         LIB_SELINUX is already set via the dependent module, selinux-h.
26905         (Include): Add quotes around selinux-at.h.
26906         * lib/selinux-at.h: Add documentation.
26907         Reported by Bruno Haible in
26908         http://marc.info/?l=gnulib-bug&m=124958988300749
26909
26910 2009-08-07  Bruno Haible  <bruno@clisp.org>
26911
26912         Avoid link error on MacOS X 10.3 and 10.4.
26913         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
26914         on non-ELF systems.
26915         * lib/argp-pv.c (argp_program_version): Likewise.
26916         Reported by Simon Josefsson.
26917
26918 2009-08-07  Simon Josefsson  <simon@josefsson.org>
26919
26920         * tests/test-version-etc.sh: Use $EXEEXT.
26921
26922 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
26923
26924         update-copyright: update documentation to point to maint.mk
26925         * build-aux/update-copyright: Here.
26926
26927 2009-08-06  Jim Meyering  <meyering@redhat.com>
26928
26929         maint.mk: support update-copyright-local
26930         * top/maint.mk (update-copyright-local): Define place-holder.
26931         (update-copyright): Depend on $(update-copyright-local).
26932
26933 2009-08-06  Jim Meyering  <meyering@redhat.com>
26934
26935         selinux-at: new module
26936         Initially written for coreutils, this module will soon be
26937         used by findutils, too.
26938         * MODULES.html.sh [Misc]: Add selinux-at.
26939         * lib/selinux-at.h: New file, from coreutils.
26940         * lib/selinux-at.c: Likewise.
26941         * modules/selinux-at: Likewise.
26942         (License): Change from LGPL to GPL, since it depends
26943         on the GPL'd openat module.
26944
26945         doc: update README
26946         * README: Remove references to cogito.
26947         Remove cvs-repo-updating instructions from 2007.
26948         Don't imply that CVS is better if you have limited disk space.
26949
26950 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26951
26952         update-copyright: support C-style comments
26953         * build-aux/update-copyright: Implement and document.
26954         * tests/test-update-copyright.sh: Test.
26955
26956 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26957
26958         update-copyright: support omitted "(C)"
26959         * build-aux/update-copyright: Implement and document.  Also,
26960         allow variable whitespace before "(C)".
26961         * tests/test-update-copyright.sh: Test.
26962
26963 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26964
26965         update-copyright: don't trip on non-FSF copyright statements
26966         * build-aux/update-copyright: Fix so that the first correctly
26967         formatted FSF copyright statement is recognized no matter what
26968         appears before it.  Update documentation.
26969         * tests/test-update-copyright.sh: Test that.
26970
26971 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26972
26973         update-copyright: clean up code a little
26974         * build-aux/update-copyright: Append "_re" to the name of any
26975         variable holding a regular expression.
26976         Replace "old" and "new" with "stmt" in variable names.
26977         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
26978         handled correctly.
26979         Format code more consistently.
26980
26981 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
26982
26983         update-copyright-tests: improve portability
26984         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
26985         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
26986
26987 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
26988
26989         update-copyright: support @copyright{} and &copy;
26990         * build-aux/update-copyright: Implement and document.
26991         * tests/test-update-copyright.sh: Test.
26992
26993 2009-08-04  Jim Meyering  <meyering@redhat.com>
26994
26995         update-copyright-tests: correctly test EOL=\r\n handling
26996         * tests/test-update-copyright.sh: Put \r at the end of some lines
26997         for the dos-eol tests.  Based on a patch by Joel E. Denny.
26998
26999         maint.mk: make update-copyright exclusion list more configurable
27000         * top/maint.mk (update-copyright): Default to excluding COPYING,
27001         but allow an override, in case someone does want to update that file.
27002
27003         maint.mk: don't update copyright date in COPYING
27004         * top/maint.mk (update-copyright): Exclude COPYING.
27005
27006         maint.mk: add a copyright-updating rule
27007         * top/maint.mk (update-copyright): New rule.
27008         Derived from coreutils/Makefile.am.
27009
27010         update-copyright: rename some variables
27011         * build-aux/update-copyright: Rename a few variables for clarity.
27012         Tweak syntax.  List Joel E. Denny as coauthor.
27013
27014 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
27015
27016         update-copyright: fix bug for 2-digit last year and add tests
27017         * build-aux/update-copyright: Fix bug.
27018         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
27019         specified.
27020         * modules/update-copyright-tests: New
27021         * tests/test-update-copyright.sh: New.
27022
27023 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27024
27025         update-copyright: handle leading tabs in line prefix
27026         * build-aux/update-copyright: Count leading tabs as 8 spaces
27027         when computing margin.  This helps with the formatting of
27028         ChangeLogs, for example.
27029         Fix documentation a little.
27030
27031 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27032
27033         update-copyright: support EOL=\r\n
27034         * build-aux/update-copyright: Implement that.
27035
27036 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
27037
27038         update-copyright: automatically format copyright statements
27039         * build-aux/update-copyright: Implement that.
27040         Also, be a little more predictable and safer by always failing
27041         when the full copyright format is not perfectly recognized as an
27042         unbroken whole.  Discussed at
27043         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
27044         Rewrite documentation.
27045
27046 2009-08-03  Bruno Haible  <bruno@clisp.org>
27047
27048         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
27049
27050 2009-08-02  Bruno Haible  <bruno@clisp.org>
27051
27052         Tests for module 'uname'.
27053         * modules/uname-tests: New file.
27054         * tests/test-uname.c: New file.
27055
27056         New module 'uname'.
27057         * lib/uname.c: New file.
27058         * m4/uname.m4: New file.
27059         * modules/uname: New file.
27060         * doc/posix-functions/uname.texi: Mention the new module.
27061
27062 2009-08-02  Bruno Haible  <bruno@clisp.org>
27063
27064         Tests for module 'sys_utsname'.
27065         * modules/sys_utsname-tests: New file.
27066         * tests/test-sys_utsname.c: New file.
27067
27068         New module 'sys_utsname'.
27069         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
27070         * m4/sys_utsname_h.m4: New file.
27071         * modules/sys_utsname: New file.
27072         * doc/posix-headers/sys_utsname.texi: Mention the new module.
27073
27074 2009-08-02  Bruno Haible  <bruno@clisp.org>
27075
27076         Implicitly initialize the sockets library.
27077         * lib/gethostname.c: Include sockets.h.
27078         (rpl_gethostname): Invoke gl_sockets_startup.
27079         * lib/socket.c: Include sockets.h.
27080         (rpl_socket): Invoke gl_sockets_startup.
27081         * modules/gethostname (Depends-on): Add sockets.
27082         * modules/socket (Depends-on): Likewise.
27083         * tests/test-poll.c: Don't include sockets.h.
27084         (main): Don't invoke gl_sockets_startup.
27085         * tests/test-select.c: Don't include sockets.h.
27086         (main): Don't invoke gl_sockets_startup.
27087
27088 2009-08-02  Bruno Haible  <bruno@clisp.org>
27089
27090         Allow multiple calls to gl_sockets_startup.
27091         * lib/sockets.c (initialized_sockets_version): New variable.
27092         (gl_sockets_startup): Do nothing if already called for this or a higher
27093         version.
27094         (gl_sockets_cleanup): Reset initialized_sockets_version.
27095
27096 2009-08-03  Simon Josefsson  <simon@josefsson.org>
27097
27098         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
27099         different project/version.
27100
27101 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
27102             Bruno Haible  <bruno@clisp.org>
27103
27104         Tests for module 'pipe-filter-gi'.
27105         * modules/pipe-filter-gi-tests: New file.
27106         * tests/test-pipe-filter-gi1.sh: New file.
27107         * tests/test-pipe-filter-gi1.c: New file.
27108         * tests/test-pipe-filter-gi2.sh: New file.
27109         * tests/test-pipe-filter-gi2-main.c: New file.
27110         * tests/test-pipe-filter-gi2-child.c: New file.
27111
27112         New module 'pipe-filter-gi'.
27113         * lib/pipe-filter-gi.c: New file.
27114         * modules/pipe-filter-gi: New file.
27115
27116 2009-08-02  Bruno Haible  <bruno@clisp.org>
27117             Paolo Bonzini  <bonzini@gnu.org>
27118
27119         Tests for module 'pipe-filter-ii'.
27120         * modules/pipe-filter-ii-tests: New file.
27121         * tests/test-pipe-filter-ii1.sh: New file.
27122         * tests/test-pipe-filter-ii1.c: New file.
27123         * tests/test-pipe-filter-ii2.sh: New file.
27124         * tests/test-pipe-filter-ii2-main.c: New file.
27125         * tests/test-pipe-filter-ii2-child.c: New file.
27126
27127         New module 'pipe-filter-ii'.
27128         * lib/pipe-filter.h: New file.
27129         * lib/pipe-filter-ii.c: New file.
27130         * lib/pipe-filter-aux.h: New file.
27131         * modules/pipe-filter-ii: New file.
27132
27133 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27134
27135         * lib/gc-libgcrypt.c: Change copyright to FSF.
27136         * lib/gc-gnulib.c: Likewise.
27137
27138 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
27139
27140         * lib/gethostname.c: Include limits.h.
27141
27142 2009-08-02  Simon Josefsson  <simon@josefsson.org>
27143             Bruno Haible  <bruno@clisp.org>
27144
27145         Ensure HOST_NAME_MAX as part of the gethostname module.
27146         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
27147         define also HOST_NAME_MAX.
27148         * tests/test-gethostname.c: Include <limits.h>.
27149         (main): Check also HOST_NAME_MAX.
27150         * doc/posix-headers/limits.texi: Document the mingw problem.
27151
27152 2009-08-02  Bruno Haible  <bruno@clisp.org>
27153
27154         * lib/gethostname.c (gethostname): Fix handling of large len argument.
27155         Add comments.
27156
27157 2009-03-31  Simon Josefsson  <simon@josefsson.org>
27158
27159         * lib/gethostname.c: Add Windows wrapper.
27160         * m4/gethostname.m4: Look for gethostname in -lws2_32.
27161         * modules/gethostname: Depend on sys_socket & errno, for also
27162         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
27163         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
27164
27165 2009-07-31  Jim Meyering  <meyering@redhat.com>
27166
27167         getloadavg: fix symbol name in comment
27168         * lib/getloadavg.c: Correct a typo I introduced when adding
27169         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
27170         Matt Kraai spotted the problem.
27171
27172 2009-07-29  Matt Kraai  <mkraai@beckman.com>
27173
27174         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
27175         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
27176         code also if ! defined N_NAME_POINTER.
27177         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
27178         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
27179         but the n_name member is a 12-byte array.
27180
27181 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
27182
27183         update-copyright: generalize comment handling
27184         * build-aux/update-copyright: Handle copyright statements
27185         within more comment styles.
27186         Document usage.
27187         Report any file with an external copyright holder or parse failure.
27188
27189 2009-07-29  Jim Meyering  <meyering@redhat.com>
27190
27191         mktime: correct setting of REPLACE_MKTIME
27192         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
27193
27194         update-copyright: new module
27195         * modules/update-copyright: New file.
27196         * build-aux/update-copyright: New file.
27197         * MODULES.html.sh (maint+release support): Add update-copyright.
27198
27199 2009-07-27  Bruno Haible  <bruno@clisp.org>
27200
27201         Fix compilation error when <ctime> is used and mktime is replaced.
27202         * lib/time.in.h (mktime): New declaration.
27203         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
27204         REPLACE_MKTIME instead of defining mktime in config.h.
27205         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
27206         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
27207         Reported by Ross McFarland <rwmcfa1@neces.com>.
27208
27209 2009-07-27  Bruno Haible  <bruno@clisp.org>
27210
27211         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
27212         Reported by Matt Kraai <mkraai@beckman.com>.
27213
27214 2009-07-25  Jim Meyering  <meyering@redhat.com>
27215
27216         maint.mk: avoid warnings about missing files
27217         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
27218         diagnostic when .prev-version does not exist.
27219         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
27220         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
27221         nonexistent cfg.mk.
27222         Suggestions from Simon Josefsson.
27223
27224 2009-07-25  Bruno Haible  <bruno@clisp.org>
27225
27226         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
27227         defined as macros. Needed on QNX 6.4.1.
27228         Reported by Matt Kraai <mkraai@beckman.com>.
27229
27230 2009-07-23  Jim Meyering  <meyering@redhat.com>
27231
27232         maint.mk: invoke "make dist" with a working value of XZ_OPT
27233         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
27234
27235 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
27236
27237         Make fseeko.c compile on QNX.
27238         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
27239
27240 2009-07-22  Peter Simons  <simons@cryp.to>
27241
27242         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
27243         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
27244         * lib/md4.h: Likewise.
27245         * lib/md5.h: Likewise.
27246         * lib/sha1.h: Likewise.
27247         * lib/sha256.h: Likewise.
27248         * lib/sha512.h: Likewise.
27249
27250         tests-sha1: don't assign literal string to 'char *' variable
27251         * tests/test-sha1.c (main): Declare locals with "const" to match
27252         attributes of the right hand side.
27253
27254 2009-07-21  Eric Blake  <ebb9@byu.net>
27255
27256         dup2: fix more mingw problems
27257         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
27258         fd to itself.
27259         * doc/posix-functions/dup2.texi (dup2): Document the bug.
27260         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
27261         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
27262         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
27263         care of mingw bugs.
27264
27265 2009-07-21  Jim Meyering  <meyering@redhat.com>
27266
27267         vc-list-files: avoid failure when /bin/sh is dash
27268         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
27269         On some Debian based systems, /bin/sh is a symlink to dash, and running
27270         this command would omit the "/" following each 'tests' prefix:
27271           dash -x build-aux/vc-list-files -C . tests
27272         That is because bash and dash work differently:
27273           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
27274           bash ok
27275           dash odd
27276
27277 2009-07-21  Eric Blake  <ebb9@byu.net>
27278
27279         dup2-tests: test previous patch
27280         * modules/dup2-tests: New file.
27281         * tests/test-dup2.c: Likewise.
27282         * tests/test-open.c (main): Avoid unspecified behavior.
27283         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
27284         test.
27285
27286         dup2: work around mingw and cygwin 1.5 bug
27287         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
27288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
27289         * modules/unistd (Makefile.am): Substitute it.
27290         * lib/unistd.in.h (dup2): Declare the replacement.
27291         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
27292         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
27293         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
27294         * modules/execute (Depends-on): Add dup2.
27295         * modules/fseterr (Depends-on): Likewise.
27296         * modules/pipe (Depends-on): Likewise.
27297         * modules/posix_spawn-internal (Depends-on): Likewise.
27298
27299 2009-07-21  Bruno Haible  <bruno@clisp.org>
27300
27301         * modules/.gitattributes: New file.
27302
27303 2009-07-20  Bruno Haible  <bruno@clisp.org>
27304
27305         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
27306         (main): Use it.
27307
27308 2009-07-20  Eric Blake  <ebb9@byu.net>
27309
27310         test-pipe: make a bit more robust.
27311         * tests/test-pipe.c (myerr): Allow error messages regardless of
27312         what we do to stderr.
27313         (test_pipe): Rearrange to avoid deadlock.
27314         (child_main): Try a larger read, to ensure we avoided deadlock.
27315         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
27316         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
27317         if misused.
27318
27319 2009-07-19  Jim Meyering  <meyering@redhat.com>
27320
27321         fts: avoid false-positive cycle-detection
27322         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
27323         for each new command line argument.
27324
27325 2009-07-19  Bruno Haible  <bruno@clisp.org>
27326
27327         Fix build error on mingw with the modules sys_select and unistd.
27328         * modules/acl-tests (Depends-on): Add close.
27329         * modules/binary-io-tests (Depends-on): Likewise.
27330         * modules/closein-tests (Depends-on): Likewise.
27331         * modules/flock-tests (Depends-on): Likewise.
27332         * modules/fsync-tests (Depends-on): Likewise.
27333         * modules/lseek-tests (Depends-on): Likewise.
27334         * modules/pipe-tests (Depends-on): Likewise.
27335         * modules/posix_spawn-tests (Depends-on): Likewise.
27336         * modules/posix_spawnp-tests (Depends-on): Likewise.
27337         * modules/stat-time-tests (Depends-on): Likewise.
27338         * modules/yesno-tests (Depends-on): Likewise.
27339
27340 2009-07-19  Bruno Haible  <bruno@clisp.org>
27341
27342         Unify conditionals.
27343         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
27344         macros, not at the compiler macros.
27345         * lib/pipe.c: Likewise.
27346         * lib/execute.c: Likewise.
27347         * lib/spawni.c: Likewise.
27348
27349 2009-07-19  Bruno Haible  <bruno@clisp.org>
27350
27351         Fix handling of closed stdin/stdout/stderr on mingw.
27352         * lib/w32spawn.h: Include unistd.h.
27353         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
27354         file descriptor with O_NOINHERIT flag.
27355         (fd_safer_noinherit): New function, based on fd-safer.c.
27356         (dup_safer_noinherit): New function, based on dup-safer.c.
27357         (undup_safer_noinherit): New function.
27358         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
27359         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
27360         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
27361         instead of fd_safer.
27362         * tests/test-pipe.c: Include <windows.h>.
27363         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
27364
27365         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
27366         from main.
27367         (test_pipe): Pass an extra argument for disambiguation.
27368         (main): Invoke parent_main or child_main.
27369
27370         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
27371         consistently.
27372
27373 2009-07-18  Eric Blake  <ebb9@byu.net>
27374
27375         test-pipe: fix mingw build
27376         * tests/test-pipe.c (main): Avoid fcntl on mingw.
27377
27378 2009-07-18  Bruno Haible  <bruno@clisp.org>
27379
27380         * modules/pipe-tests (Makefile.am): Fix typo.
27381
27382 2009-07-18  Eric Blake  <ebb9@byu.net>
27383
27384         error: fix mingw build
27385         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
27386         Reported by Bruno Haible.
27387
27388         error: avoid undefined use of stdout
27389         * lib/error.c (error, error_at_line): Check that fd 1 is open
27390         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
27391         is handling faults and the close_stdout module wants to report the
27392         detection of closed stdout as an error.
27393
27394 2009-07-17  Eric Blake  <ebb9@byu.net>
27395
27396         pipe: be robust in face of closed fds
27397         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
27398         should cause child to misbehave.
27399         * modules/pipe-tests: New module.
27400         * tests/test-pipe.c: New file.
27401         * tests/test-pipe.sh: New file.
27402         Reported by Akim Demaille.
27403
27404 2009-07-14  Bruno Haible  <bruno@clisp.org>
27405
27406         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
27407         Reported by anonymous kc.
27408
27409 2009-07-07  Jim Meyering  <meyering@redhat.com>
27410
27411         maint.mk: don't look for translatable strings in *.m4 or *.mk
27412         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
27413         when searching for translatable strings.
27414
27415 2009-07-05  Jim Meyering  <meyering@redhat.com>
27416
27417         remove superfluous parentheses in STREQ definition
27418         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
27419         * lib/getugroups.c (STREQ): Likewise.
27420         * lib/fnmatch.c (STREQ): Likewise.
27421         Spotted by Bruno Haible.
27422
27423 2009-07-04  Jim Meyering  <meyering@redhat.com>
27424
27425         argv-iter: new module
27426         * MODULES.html.sh: Add argv-iter.
27427         * lib/argv-iter.c, lib/argv-iter.h: New files.
27428         * modules/argv-iter: New file.
27429         * modules/argv-iter-tests: New file.
27430         * tests/test-argv-iter.c: Test it.
27431
27432 2009-07-04  Bruno Haible  <bruno@clisp.org>
27433
27434         Fix assertion.
27435         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
27436         contains more exact copies of a given entry than file2, leave the extra
27437         copies unpaired rather than aborting.
27438         Reported by Eric Blake.
27439
27440 2009-07-02  Bruno Haible  <bruno@clisp.org>
27441
27442         Speedup git-merge-changelog for git cherry-pick.
27443         * lib/git-merge-changelog.c (struct entries_mapping): New type.
27444         (entries_mapping_get): New function, extracted from compute_mapping.
27445         (entries_mapping_reverse_get): New function.
27446         (compute_mapping): Add a 'full' argument. Return the result in a
27447         'struct entries_mapping'.
27448         (main): Update. Access the mappings through entries_mapping_get.
27449         Reported by Eric Blake.
27450
27451 2009-07-02  Bruno Haible  <bruno@clisp.org>
27452
27453         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
27454         best_i.
27455
27456 2009-07-02  Bruno Haible  <bruno@clisp.org>
27457
27458         Speed up approximate search for matching ChangeLog entries.
27459         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
27460         argument. Call fstrcmp_bounded instead of fstrcmp.
27461         (compute_mapping, try_split_merged_entry, main): Update callers.
27462
27463 2009-07-02  Bruno Haible  <bruno@clisp.org>
27464
27465         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
27466
27467 2009-06-30  Bruno Haible  <bruno@clisp.org>
27468
27469         Reduce the number of uc_is_cased calls.
27470         * lib/unicase.h (casing_suffix_context_t): Add
27471         'first_char_except_ignorable' field.
27472         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
27473         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
27474         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
27475         Update initializer.
27476         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
27477         case-ignorable characters.
27478         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
27479         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
27480         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
27481         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
27482         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
27483
27484 2009-06-30  Bruno Haible  <bruno@clisp.org>
27485
27486         Tests for module 'unicase/ignorable'.
27487         * modules/unicase/ignorable-tests: New file.
27488         * tests/unicase/test-ignorable.c: New file, generated by
27489         gen-uni-tables.
27490
27491         Tests for module 'unicase/cased'.
27492         * modules/unicase/cased-tests: New file.
27493         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
27494         * tests/unicase/test-predicate-part1.h: New file, derived from
27495         tests/unictype/test-predicate-part1.h.
27496         * tests/unicase/test-predicate-part2.h: New file, same as
27497         tests/unictype/test-predicate-part2.h.
27498
27499         Fix evaluation of "Before C" condition of FINAL_SIGMA.
27500         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
27501         (output_casing_properties): New function.
27502         (main): Call it.
27503         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
27504         * lib/unicase/cased.c: Include unictype/bitmap.h.
27505         (uc_is_cased): Define through a bitmap lookup.
27506         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
27507         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
27508         (uc_is_case_ignorable): Define through a bitmap lookup.
27509         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
27510         lib/unictype/bitmap.h.
27511         (Depends-on): Add inline. Clean up.
27512         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
27513         lib/unictype/bitmap.h.
27514         (Depends-on): Add inline. Clean up.
27515         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
27516         recognition.
27517         * tests/unicase/test-u16-tolower.c (main): Likewise.
27518         * tests/unicase/test-u32-tolower.c (main): Likewise.
27519
27520 2009-06-30  Bruno Haible  <bruno@clisp.org>
27521
27522         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
27523         * lib/unicase/u16-casemap.c: Likewise.
27524         * lib/unicase/u32-casemap.c: Likewise.
27525
27526 2009-06-29  Bruno Haible  <bruno@clisp.org>
27527
27528         Define u32_casefold as a wrapper around u32_ct_casefold.
27529         * lib/unicase/u32-casefold.c: Update.
27530         * modules/unicase/u32-casefold (Depends-on): Add
27531         unicase/u32-ct-casefold, unicase/empty-prefix-context,
27532         unicase/empty-suffix-context. Clean up.
27533
27534         Define u16_casefold as a wrapper around u16_ct_casefold.
27535         * lib/unicase/u16-casefold.c: Update.
27536         * modules/unicase/u16-casefold (Depends-on): Add
27537         unicase/u16-ct-casefold, unicase/empty-prefix-context,
27538         unicase/empty-suffix-context. Clean up.
27539
27540         Define u8_casefold as a wrapper around u8_ct_casefold.
27541         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
27542         * lib/unicase/u8-casefold.c: Update.
27543         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
27544         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27545
27546         Define u32_totitle as a wrapper around u32_ct_totitle.
27547         * lib/unicase/u32-totitle.c: Update.
27548         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
27549         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27550
27551         Define u16_totitle as a wrapper around u16_ct_totitle.
27552         * lib/unicase/u16-totitle.c: Update.
27553         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
27554         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27555
27556         Define u8_totitle as a wrapper around u8_ct_totitle.
27557         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
27558         functions.
27559         (FUNC): Delegate to U_CT_TOTITLE.
27560         * lib/unicase/u8-totitle.c: Update.
27561         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
27562         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
27563
27564         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
27565         invocation.
27566         * modules/unicase/u32-tolower (Depends-on): Add
27567         unicase/empty-prefix-context, unicase/empty-suffix-context.
27568
27569         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
27570         invocation.
27571         * modules/unicase/u16-tolower (Depends-on): Add
27572         unicase/empty-prefix-context, unicase/empty-suffix-context.
27573
27574         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
27575         * modules/unicase/u8-tolower (Depends-on): Add
27576         unicase/empty-prefix-context, unicase/empty-suffix-context.
27577
27578         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
27579         invocation.
27580         * modules/unicase/u32-toupper (Depends-on): Add
27581         unicase/empty-prefix-context, unicase/empty-suffix-context.
27582
27583         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
27584         invocation.
27585         * modules/unicase/u16-toupper (Depends-on): Add
27586         unicase/empty-prefix-context, unicase/empty-suffix-context.
27587
27588         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
27589         * modules/unicase/u8-toupper (Depends-on): Add
27590         unicase/empty-prefix-context, unicase/empty-suffix-context.
27591
27592         New module 'unicase/u32-ct-casefold'.
27593         * lib/unicase/u32-ct-casefold.c: New file.
27594         * modules/unicase/u32-ct-casefold: New file.
27595
27596         New module 'unicase/u16-ct-casefold'.
27597         * lib/unicase/u16-ct-casefold.c: New file.
27598         * modules/unicase/u16-ct-casefold: New file.
27599
27600         New module 'unicase/u8-ct-casefold'.
27601         * lib/unicase/u8-ct-casefold.c: New file.
27602         * lib/unicase/u-ct-casefold.h: New file, derived from
27603         lib/unicase/u-casefold.h.
27604         * modules/unicase/u8-ct-casefold: New file.
27605
27606         New module 'unicase/u32-ct-totitle'.
27607         * lib/unicase/u32-ct-totitle.c: New file.
27608         * modules/unicase/u32-ct-totitle: New file.
27609
27610         New module 'unicase/u16-ct-totitle'.
27611         * lib/unicase/u16-ct-totitle.c: New file.
27612         * modules/unicase/u16-ct-totitle: New file.
27613
27614         New module 'unicase/u8-ct-totitle'.
27615         * lib/unicase/u8-ct-totitle.c: New file.
27616         * lib/unicase/u-ct-totitle.h: New file, derived from
27617         lib/unicase/u-totitle.h.
27618         * modules/unicase/u8-ct-totitle: New file.
27619
27620         New module 'unicase/u32-ct-tolower'.
27621         * lib/unicase/u32-ct-tolower.c: New file.
27622         * modules/unicase/u32-ct-tolower: New file.
27623
27624         New module 'unicase/u16-ct-tolower'.
27625         * lib/unicase/u16-ct-tolower.c: New file.
27626         * modules/unicase/u16-ct-tolower: New file.
27627
27628         New module 'unicase/u8-ct-tolower'.
27629         * lib/unicase/u8-ct-tolower.c: New file.
27630         * modules/unicase/u8-ct-tolower: New file.
27631
27632         New module 'unicase/u32-ct-toupper'.
27633         * lib/unicase/u32-ct-toupper.c: New file.
27634         * modules/unicase/u32-ct-toupper: New file.
27635
27636         New module 'unicase/u16-ct-toupper'.
27637         * lib/unicase/u16-ct-toupper.c: New file.
27638         * modules/unicase/u16-ct-toupper: New file.
27639
27640         New module 'unicase/u8-ct-toupper'.
27641         * lib/unicase/u8-ct-toupper.c: New file.
27642         * modules/unicase/u8-ct-toupper: New file.
27643
27644         Add context arguments to u*_casemap functions.
27645         * lib/unicase/unicasemap.h: Include unicase.h.
27646         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
27647         suffix_context arguments.
27648         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
27649         functions.
27650         (FUNC): Add prefix_context and suffix_context arguments. Use
27651         uc_is_cased and uc_is_case_ignorable.
27652         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
27653         * lib/unicase/u16-casemap.c: Likewise.
27654         * lib/unicase/u32-casemap.c: Likewise.
27655         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
27656         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27657         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
27658         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27659         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
27660         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
27661
27662         New module 'unicase/u32-suffix-context'.
27663         * lib/unicase/u32-suffix-context.c: New file.
27664         * modules/unicase/u32-suffix-context: New file.
27665
27666         New module 'unicase/u16-suffix-context'.
27667         * lib/unicase/u16-suffix-context.c: New file.
27668         * modules/unicase/u16-suffix-context: New file.
27669
27670         New module 'unicase/u8-suffix-context'.
27671         * lib/unicase/u8-suffix-context.c: New file.
27672         * lib/unicase/u-suffix-context.h: New file.
27673         * modules/unicase/u8-suffix-context: New file.
27674
27675         New module 'unicase/empty-suffix-context'.
27676         * lib/unicase/empty-suffix-context.c: New file.
27677         * modules/unicase/empty-suffix-context: New file.
27678
27679         New module 'unicase/u32-prefix-context'.
27680         * lib/unicase/u32-prefix-context.c: New file.
27681         * modules/unicase/u32-prefix-context: New file.
27682
27683         New module 'unicase/u16-prefix-context'.
27684         * lib/unicase/u16-prefix-context.c: New file.
27685         * modules/unicase/u16-prefix-context: New file.
27686
27687         New module 'unicase/u8-prefix-context'.
27688         * lib/unicase/u8-prefix-context.c: New file.
27689         * lib/unicase/u-prefix-context.h: New file.
27690         * lib/unicase/context.h: New file.
27691         * modules/unicase/u8-prefix-context: New file.
27692
27693         New module 'unicase/empty-prefix-context'.
27694         * lib/unicase/empty-prefix-context.c: New file.
27695         * modules/unicase/empty-prefix-context: New file.
27696
27697         New module 'unicase/ignorable'.
27698         * lib/unicase/ignorable.c: New file.
27699         * modules/unicase/ignorable: New file.
27700
27701         New module 'unicase/cased'.
27702         * lib/unicase/caseprop.h: New file.
27703         * lib/unicase/cased.c: New file.
27704         * modules/unicase/cased: New file.
27705
27706         New functions for case mapping of substrings.
27707         * lib/unicase.h (casing_prefix_context_t): New type.
27708         (unicase_empty_prefix_context): New variable.
27709         (u8_casing_prefix_context, u16_casing_prefix_context,
27710         u32_casing_prefix_context, u8_casing_prefixes_context,
27711         u16_casing_prefixes_context, u32_casing_prefixes_context): New
27712         declarations.
27713         (casing_suffix_context_t): New type.
27714         (unicase_empty_suffix_context): New variable.
27715         (u8_casing_suffix_context, u16_casing_suffix_context,
27716         u32_casing_suffix_context, u8_casing_suffixes_context,
27717         u16_casing_suffixes_context, u32_casing_suffixes_context,
27718         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
27719         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
27720         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
27721         declarations.
27722
27723 2009-06-28  Jim Meyering  <meyering@redhat.com>
27724
27725         boostrap: indent only with spaces
27726         * build-aux/bootstrap: Indent only with spaces, never TABs.
27727
27728         bootstrap: split long lines
27729         * build-aux/bootstrap: Keep line length < 80.
27730
27731         bootstrap: sync from coreutils
27732         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
27733         just as autoreconf does.  Verify a list of prerequisite
27734         package-name,version-number pairs if defined in bootstrap.conf.
27735         Refer to README-prereq, if prerequisites are not satisfied.
27736
27737 2009-06-27  Eric Blake  <ebb9@byu.net>
27738
27739         tests: add test for bogus NULL definition
27740         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
27741         * tests/test-stdlib.c: Likewise.
27742         * tests/test-string.c: Likewise.
27743         * tests/test-locale.c: Likewise.
27744         * tests/test-unistd.c: Likewise.
27745         * modules/stdio-tests (Depends-on): Add verify.
27746         * modules/stdlib-tests (Depends-on): Likewise.
27747         * modules/string-tests (Depends-on): Likewise.
27748         * modules/locale-tests (Depends-on): Likewise.
27749         * modules/unistd-tests (Depends-on): Likewise.
27750
27751 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
27752
27753         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
27754         self-explaining comment.
27755         * m4/selinux-selinux-h: Update serial.
27756         (gl_LIBSELINUX): New macro, adding a warning for missing development
27757         packages to code extracted from...
27758         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
27759         Add warning for missing development packages here, too.
27760
27761 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
27762
27763         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
27764
27765 2009-06-25  Eric Blake  <ebb9@byu.net>
27766
27767         version-etc: fix regression
27768         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
27769         gcc.
27770         (version_etc): Use it, to catch bugs with trailing NULL.
27771         * lib/version-etc.c (version_etc_arn): Delete unused argument.
27772         (version_etc_va): Fix logic bug.
27773         * modules/version-etc-tests: Add test.
27774         * tests/test-version-etc.c: New file.
27775         * tests/test-version-etc.sh: Likewise.
27776
27777 2009-06-25  Sam Steingold  <sds@gnu.org>
27778
27779         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
27780         mbtowc declaration.
27781
27782 2009-06-25  Eric Blake  <ebb9@byu.net>
27783
27784         fpurge: migrate into <stdio.h>
27785         * lib/fpurge.h: Delete...
27786         * lib/stdio.in.h (fpurge): ...and declare here, instead.
27787         * lib/fpurge.c (fpurge): Change declaring header.
27788         * modules/fpurge (Files): Drop deleted file.
27789         (Depends-on): Add stdio.
27790         (configure.ac): Set witness.
27791         * modules/stdio (Makefile.am): Support fpurge macros.
27792         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27793         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
27794         * lib/fflush.c: Update client.
27795         * tests/test-fpurge.c: Likewise.
27796         * NEWS: Mention the change.
27797
27798 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27799
27800         * lib/argp-version-etc.c (program_authors): Add const
27801         qualifier.
27802         * lib/version-etc.c: Fix typos in the comments.
27803         * modules/argp-version-etc: Depends on version-etc.
27804
27805 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27806
27807         argp-version-etc: new module.
27808
27809         * lib/argp-version-etc.c: New file.
27810         * lib/argp-version-etc.h: New file.
27811         * modules/argp-version-etc: New file.
27812         * modules/argp-version-etc-tests: New file.
27813         * tests/test-argp-version-etc.c: New test.
27814         * tests/test-argp-version-etc-1.sh: New test.
27815
27816 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27817
27818         Provide additional interfaces and documentation for version-etc
27819         module.
27820
27821         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
27822         interfaces.
27823         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
27824         prototypes.
27825
27826 2009-06-24  Bruno Haible  <bruno@clisp.org>
27827
27828         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
27829         HAVE_LIB${NAME} macro.
27830         Reported by Sam Steingold <sds@gnu.org>.
27831
27832 2009-06-23  Simon Josefsson  <simon@josefsson.org>
27833
27834         * modules/hash-tests (test_hash_LDADD): Link to libintl when
27835         needed.
27836
27837 2009-06-21  Bruno Haible  <bruno@clisp.org>
27838
27839         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
27840         work.
27841         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
27842         together with LIB${NAME}, LTLIB${NAME}.
27843         Reported by Sam Steingold <sds@gnu.org>.
27844
27845 2009-06-20  Jim Meyering  <meyering@redhat.com>
27846
27847         tests: make sc_require_test_exit_idiom more generic
27848         * top/maint.mk (Exit_witness_file): New overridable variable.
27849         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
27850         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
27851
27852 2009-06-19  Jim Meyering  <meyering@redhat.com>
27853
27854         hash: reverse order of src/dst parameters in an internal interface
27855         * lib/hash.c (transfer_entries): Reverse order of parameters to
27856         put DST before SRC.  Adjust callers.
27857
27858         tests: test-hash: avoid wholesale duplication
27859         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
27860         Instead, use a loop and add a single conditional.
27861
27862         tests: test-hash: allow seed selection via a command line argument
27863         * tests/test-hash.c (get_seed): New function.
27864         (main): Use it.
27865
27866 2009-06-19  Eric Blake  <ebb9@byu.net>
27867
27868         hash: avoid memory leak on allocation failure
27869         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
27870         failure.  Factor repeated algorithm...
27871         (transfer_entries): ...into new helper routine.
27872         (hash_delete): React to hash_rehash return value.
27873
27874         hash: reduce memory pressure in hash_rehash no-op case
27875         * lib/hash.c (next_prime): Avoid overflow.
27876         (hash_initialize): Factor bucket size computation...
27877         (compute_bucket_size): ...into new helper function.
27878         (hash_rehash): Use new function and open coding to reduce memory
27879         pressure, and avoid a memory leak in USE_OBSTACK code.
27880         Reported by Jim Meyering.
27881
27882 2009-06-18  Eric Blake  <ebb9@byu.net>
27883
27884         hash: make rotation more obvious
27885         * modules/hash (Depends-on): Add bitrotate and stdint.
27886         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
27887         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
27888         (SIZE_MAX): Rely on headers for definition.
27889         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
27890         (raw_hasher): Use rotr_sz.
27891         Suggested by Jim Meyering.
27892
27893         hash: fix memory leak in last patch
27894         * lib/hash.c (hash_rehash): Avoid memory leak.
27895
27896         hash: avoid no-op rehashing
27897         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
27898
27899         hash: provide default callback functions
27900         * lib/hash.c (raw_hasher, raw_comparator): New functions.
27901         (hash_initialize): Use them as defaults.
27902         * tests/test-hash.c (main): Test this.
27903
27904         hash: minor optimization
27905         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
27906         when possible.
27907         (hash_initialize): Document this promise.
27908         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
27909         * tests/test-hash.c (hash_compare_strings): Test this.
27910
27911 2009-06-18  Bruno Haible  <bruno@clisp.org>
27912
27913         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
27914         going to be replaced anyway.
27915
27916 2009-06-18  Bruno Haible  <bruno@clisp.org>
27917
27918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
27919         in one place.
27920         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
27921         be replaced anyway.
27922
27923 2009-06-18  Eric Blake  <ebb9@byu.net>
27924
27925         hash: check for resize before insertion
27926         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
27927         threshold before insertion, so that a pathological hash_rehash
27928         that fills every bucket can still trigger another rehash.
27929
27930 2009-06-18  Jim Meyering  <meyering@redhat.com>
27931
27932         hash-tests: add a loop around the small tests
27933         * tests/test-hash.c (main): Repeat small tests with selected
27934         small initial table sizes.
27935
27936 2009-06-17  Eric Blake  <ebb9@byu.net>
27937
27938         hash: minor cleanups
27939         * lib/hash.h (hash_entry): Make opaque, by moving...
27940         * lib/hash.c (hash_entry): ...here.
27941         (hash_insert): Clarify restrictions on what can be inserted.
27942         (hash_get_next): Clarify when it is safe to remove an element
27943         during traversal.
27944         (check_tuning): Skip verification when tuning is known safe.
27945         (hash_initialize): Clarify restrictions on tuning.
27946
27947 2009-06-17  Jim Meyering  <jim@meyering.net>
27948         and Eric Blake  <ebb9@byu.net>
27949
27950         hash-tests: new module
27951         * modules/hash-tests: New file.
27952         * tests/test-hash.c: New file.
27953
27954 2009-06-17  Eric Blake  <ebb9@byu.net>
27955
27956         strstr-simple: document new module
27957         * MODULES.html.sh: Document new module.
27958
27959         strstr, strcasestr: replace on platforms with broken memchr
27960         * modules/strstr: Split into...
27961         * modules/strstr-simple: ...new module that does not care about
27962         performance, but does care about glibc bug.
27963         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
27964         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
27965         if platform memchr is broken, per Debian bug 521737.
27966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
27967         memchr.
27968         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
27969         * doc/posix-functions/strstr.texi (strstr): Document the fix.
27970         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27971         * modules/mountlist (Depends-on): Add strstr-simple.
27972         * modules/gen-uni-tables (Depends-on): Likewise.
27973         * modules/argz (Depends-on): Add strstr.
27974
27975 2009-06-17  Bruno Haible  <bruno@clisp.org>
27976
27977         * modules/posix_spawn-internal (Depends-on): Add errno.
27978
27979 2009-06-17  Bruno Haible  <bruno@clisp.org>
27980
27981         Define missing ESTALE on Interix 3.5.
27982         * lib/errno.in.h (ESTALE): Assign a value if missing.
27983         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
27984         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
27985         missing.
27986         * doc/posix-headers/errno.texi: Mention the Interix bug.
27987         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
27988
27989 2009-06-15  Eric Blake  <ebb9@byu.net>
27990
27991         memchr, memchr2: add valgrind exception
27992         * lib/memchr.valgrind: New file.
27993         * lib/memchr2.valgrind: New file.
27994         * modules/memchr (Files): Distribute valgrind file.
27995         * modules/memchr2 (Files): Likewise.
27996
27997         docs: memchr is no longer obsolete
27998         * MODULES.html.sh: Move memchr from obsolete to string.h section.
27999         * lib/string.in.h (memchr): Simplify logic.
28000
28001 2009-06-14  Jim Meyering  <meyering@redhat.com>
28002
28003         link-follow: fix the "checking..." message to not mention trailing slash
28004         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
28005         never considered trailing slashes.
28006
28007 2009-06-14  Bruno Haible  <bruno@clisp.org>
28008
28009         * m4/memchr.m4: Mention also the bug on IA-64.
28010         * doc/posix-functions/memchr.texi: Likewise.
28011
28012 2009-06-12  Eric Blake  <ebb9@byu.net>
28013
28014         memchr: detect broken x86_64 and alpha implementations
28015         * modules/memchr-tests (Depends-on): Move mmap detection...
28016         * modules/memchr (Depends-on): ...here.
28017         (configure.ac): Set indicator.
28018         * lib/string.in.h (memchr): Declare replacement.
28019         * modules/string (Makefile.am): Trigger replacement.
28020         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
28021         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
28022         bugs.
28023         * doc/posix-functions/memchr.texi (memchr): Document the bug.
28024         * modules/getpagesize (License): Relax license.
28025
28026 2009-06-11  Bruno Haible  <bruno@clisp.org>
28027
28028         * lib/idpriv.h: Add more references.
28029
28030 2009-06-08  Bruno Haible  <bruno@clisp.org>
28031
28032         Tests for module 'idpriv-droptemp'.
28033         * modules/idpriv-droptemp-tests: New file.
28034         * tests/test-idpriv-droptemp.sh: New file.
28035         * tests/test-idpriv-droptemp.su.sh: New file.
28036         * tests/test-idpriv-droptemp.c: New file.
28037
28038         New module 'idpriv-droptemp'.
28039         * lib/idpriv-droptemp.c: New file.
28040         * modules/idpriv-droptemp: New file.
28041
28042 2009-06-08  Bruno Haible  <bruno@clisp.org>
28043
28044         Tests for module 'idpriv-drop'.
28045         * modules/idpriv-drop-tests: New file.
28046         * tests/test-idpriv-drop.sh: New file.
28047         * tests/test-idpriv-drop.su.sh: New file.
28048         * tests/test-idpriv-drop.c: New file.
28049
28050         New module 'idpriv-drop'.
28051         * lib/idpriv.h: New file.
28052         * lib-idpriv-drop.c: New file.
28053         * m4/idpriv.m4: New file.
28054         * modules/idpriv-drop: New file.
28055
28056 2009-06-08  Bruno Haible  <bruno@clisp.org>
28057
28058         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
28059         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28060         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28062         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28063         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28064         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28065
28066 2009-06-08  Eric Blake  <ebb9@byu.net>
28067
28068         test-strstr: use memory fence, when possible
28069         * tests/test-strstr.c (main): Use memory fence, in order to be
28070         more likely to trigger Debian bug 521737.
28071         * modules/strstr-tests (Files): Pull in additional files.
28072
28073         memchr: no longer obsolete, for wider field testing
28074         * modules/memchr (Status, Notice): Delete, this module is no
28075         longer obsolete.
28076         * modules/vasnprintf (Depends-on): Add memchr.
28077
28078 2009-06-07  Jim Meyering  <meyering@redhat.com>
28079
28080         hash: declare some functions with the warn_unused_result attribute
28081         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
28082
28083 2009-06-07  Bruno Haible  <bruno@clisp.org>
28084
28085         * tests/test-alignof.c: Don't test int64_t if it does not exist.
28086         Reported by Eric Blake.
28087
28088 2009-06-06  Eric Blake  <ebb9@byu.net>
28089
28090         test-alignof: fix typo with long double
28091         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
28092         compiler error.
28093
28094 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
28095
28096         Escape non-texinfo { and }s.
28097         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
28098         markup error.
28099
28100 2009-06-04  Jim Meyering  <meyering@redhat.com>
28101
28102         gitlog-to-changelog: don't infloop on an empty commit log
28103         * build-aux/gitlog-to-changelog: Warn about an empty log message.
28104         Reported by Boris Petersen <transacid@centerim.org>.
28105
28106 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
28107
28108         version-etc: extend for packagers
28109         Add three new configure options, intended for packagers:
28110           --with-packager="packager name"
28111           --with-packager-version="packager-specific version"
28112           --with-packager-bug-reports="packager bug reporting"
28113         An example with coreutils:
28114           $ ./configure \
28115             --with-packager=Gentoo \
28116             --with-packager-bug-report=http://bugs.gentoo.org/ \
28117             --with-packager-version="patchset 1.6"
28118           $ ./src/ls --version | head -n2
28119           ls (GNU coreutils) 7.1-dirty
28120           Packaged by Gentoo (patchset 1.6)
28121         Note that the bug reporting info via --help doesn't show up because
28122         coreutils uses its own custom emit_bug_reporting_address() implementation
28123         in src/system.h.  If it didn't, it'd look like:
28124           $ ./src/ls --help | tail -n4
28125           Report bugs to <bug-coreutils@gnu.org>.
28126           Report Gentoo bugs to <http://bugs.gentoo.org/>.
28127           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
28128           General help using GNU software: <http://www.gnu.org/gethelp/>.
28129         * lib/version-etc.c: Print new information, if provided.
28130         * m4/version-etc.m4: New file.
28131         * modules/version-etc (Files): Add m4/version-etc.m4.
28132         (configure.ac): Add gl_VERSION_ETC.
28133
28134 2009-05-31  Bruno Haible  <bruno@clisp.org>
28135
28136         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
28137         and 'int64_t'.
28138         * modules/alignof-tests (Dependencies): Add stdint.
28139         Reported by Eric Blake.
28140
28141 2009-05-31  Bruno Haible  <bruno@clisp.org>
28142
28143         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
28144         restriction due to compiler bugs.
28145         Reported by Eric Blake.
28146
28147 2009-05-31  Simon Josefsson  <simon@josefsson.org>
28148             Bruno Haible  <bruno@clisp.org>
28149
28150         Fix test-alignof failure.
28151         * lib/alignof.h (alignof_slot): New macro.
28152         (alignof_type): New macro, with the same semantics as the previous
28153         'alignof'.
28154         (alignof): Alias to alignof_slot.
28155         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
28156         check that the results are usable as constant expressions.
28157
28158 2009-05-31  Bruno Haible  <bruno@clisp.org>
28159
28160         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
28161         * tests/test-memchr.c (main): Check that memchr does not read past the
28162         first occurrence of the byte.
28163         * tests/test-strstr.c (main): Update comment.
28164         Suggested by Eric Blake.
28165
28166 2009-05-30  Bruno Haible  <bruno@clisp.org>
28167
28168         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
28169         detail how to use dumpbin.
28170         Reported by David Byron <dbyron@dbyron.com>.
28171
28172 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28173
28174         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
28175
28176 2009-06-02  Simon Josefsson  <simon@josefsson.org>
28177
28178         * m4/manywarnings.m4: Add GCC 4.4 warnings.
28179
28180 2009-05-28  Bruno Haible  <bruno@clisp.org>
28181
28182         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
28183         build-aux/ files.
28184
28185 2009-05-28  Simon Josefsson  <simon@josefsson.org>
28186
28187         * gnulib-tool (func_import): Transform license on build-aux/ files too.
28188
28189 2009-05-27  Simon Josefsson  <simon@josefsson.org>
28190
28191         * gnulib-tool (sed_transform_main_lib_file)
28192         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
28193         regexps.
28194
28195 2009-05-26  Simon Josefsson  <simon@josefsson.org>
28196
28197         * tests/test-strstr.c: Add another self-test.
28198         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
28199         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
28200
28201 2009-05-23  Bruno Haible  <bruno@clisp.org>
28202
28203         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
28204         change.
28205
28206 2009-05-21  Bruno Haible  <bruno@clisp.org>
28207
28208         Simplify use of mode_t varargs.
28209         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
28210         uses 'mode_t' or 'int'.
28211         * lib/openat.c (openat): Likewise.
28212         * lib/open-safer.c (open_safer): Likewise.
28213         * m4/mode_t.m4: New file.
28214         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
28215         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
28216         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
28217         * modules/open (Files): Add m4/mode_t.m4.
28218         * modules/openat (Files): Likewise.
28219         * modules/fcntl-safer (Files): Likewise.
28220         Suggested by Eric Blake.
28221
28222 2009-05-21  Pádraig Brady  <P@draigbrady.com>
28223
28224         * doc/glibc-functions/fallocate.texi: New file.
28225         * doc/gnulib.texi: Include it.
28226
28227 2009-05-21  Eric Blake  <ebb9@byu.net>
28228             Bruno Haible  <bruno@clisp.org>
28229
28230         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
28231         invocations.
28232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
28233
28234 2009-05-21  Eric Blake  <ebb9@byu.net>
28235             Bruno Haible  <bruno@clisp.org>
28236
28237         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
28238         include_next. Fix of 2008-11-20 commit.
28239         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
28240         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
28241         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
28242         NEXT_MATH_H.
28243         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
28244         instead of NEXT_MATH_H.
28245
28246 2009-05-21  Bruno Haible  <bruno@clisp.org>
28247
28248         Avoid redefinition warnings for SIZE_MAX.
28249         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
28250         Reported by Simon Josefsson.
28251
28252 2009-05-21  Bruno Haible  <bruno@clisp.org>
28253
28254         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
28255         AC_CACHE_VAL.
28256
28257 2009-05-20  Bruno Haible  <bruno@clisp.org>
28258
28259         Make zeroptr.h work on mingw.
28260         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
28261         mprotect.
28262         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
28263         * modules/memchr2-tests (configure.ac): Likewise.
28264         * modules/memcmp-tests (configure.ac): Likewise.
28265         * modules/memmem-tests (configure.ac): Likewise.
28266         * modules/memrchr-tests (configure.ac): Likewise.
28267         Reported by Simon Josefsson.
28268
28269 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28270
28271         * tests/test-glob.c: Include string.h for strcmp prototype.
28272
28273 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28274
28275         * modules/getdelim (Depends-on): Add explicit stdint, although it
28276         was implicitly already pulled in via realloc-posix.
28277         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
28278
28279 2009-05-20  Simon Josefsson  <simon@josefsson.org>
28280
28281         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
28282         G. Christensen" <tgc@jupiterrise.com>.
28283         * m4/sys_socket_h.m4: Check for sa_family_t.
28284         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
28285         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
28286         * tests/test-sys_socket.c: Check that sa_family_t works.
28287
28288 2009-05-18  Eric Blake  <ebb9@byu.net>
28289
28290         maint.mk: allow gnulib_dir in VPATH build
28291         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
28292
28293 2009-05-15  Jim Meyering  <meyering@redhat.com>
28294
28295         maint.mk: Give gnulib_dir a default definition.
28296         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
28297         Thus, most packages no longer need to specify this variable in cfg.mk
28298
28299 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
28300
28301         rename.m4: fix typos that would make non-mingw cross-configure fail
28302         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
28303
28304 2009-05-13  Eric Blake  <ebb9@byu.net>
28305
28306         mmap-anon: avoid out-of-order autoconf expansion
28307         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
28308         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
28309         * modules/memchr-tests (Depends-on): Add extensions.
28310         * modules/memchr2-tests (Depends-on): Add extensions.
28311         * modules/memcmp-tests (Depends-on): Add extensions.
28312         * modules/memmem-tests (Depends-on): Add extensions.
28313         * modules/memrchr-tests (Depends-on): Add extensions.
28314
28315 2009-05-13  Bruno Haible  <bruno@clisp.org>
28316
28317         Make some tests ISO C 99 compliant.
28318         * tests/zerosize-ptr.h: New file.
28319         * tests/test-memchr.c: Include zerosize-ptr.h.
28320         (main): Use a zero-size object pointer instead of NULL.
28321         * tests/test-memchr2.c: Include zerosize-ptr.h.
28322         (main): Use a zero-size object pointer instead of NULL.
28323         * tests/test-memcmp.c: Include zerosize-ptr.h.
28324         (main): Use a zero-size object pointer instead of NULL.
28325         * tests/test-memmem.c: Include zerosize-ptr.h.
28326         (main): Use a zero-size object pointer instead of NULL.
28327         * tests/test-memrchr.c: Include zerosize-ptr.h.
28328         (main): Use a zero-size object pointer instead of NULL.
28329         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
28330         m4/mmap-anon.m4.
28331         (Depends-on): Add getpagesize.
28332         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28333         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
28334         m4/mmap-anon.m4.
28335         (Depends-on): Add getpagesize.
28336         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28337         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
28338         m4/mmap-anon.m4.
28339         (Depends-on): Add getpagesize.
28340         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28341         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
28342         m4/mmap-anon.m4.
28343         (Depends-on): Add getpagesize.
28344         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28345         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
28346         m4/mmap-anon.m4.
28347         (Depends-on): Add getpagesize.
28348         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
28349
28350 2009-05-12  Bruno Haible  <bruno@clisp.org>
28351
28352         Tests for module 'alignof'.
28353         * modules/alignof-tests: New file.
28354         * tests/test-alignof.c: New file.
28355
28356 2009-05-12  Bruno Haible  <bruno@clisp.org>
28357
28358         Fix alignof macro.
28359         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
28360         vendor compilers that are always correct.
28361
28362 2009-05-12  Bruno Haible  <bruno@clisp.org>
28363
28364         Make the MAP_ANONYMOUS detection work on HP-UX 11.
28365         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
28366         not whether its fully works.
28367
28368 2009-05-12  Bruno Haible  <bruno@clisp.org>
28369
28370         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
28371
28372 2009-05-12  Jim Meyering  <meyering@redhat.com>
28373
28374         * top/maint.mk: Adjust backslash alignment.
28375
28376 2009-05-11  Simon Josefsson  <simon@josefsson.org>
28377
28378         * top/maint.mk: Make $(srcdir)/build-aux configurable.
28379
28380 2009-05-11  Eric Blake  <ebb9@byu.net>
28381
28382         argp: avoid undefined behavior
28383         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
28384         macros.
28385
28386 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28387
28388         * tests/test-vc-list-files-git.sh: Do git config of user.email and
28389         user.name to prevent git commit from complaining.
28390
28391 2009-05-10  Bruno Haible  <bruno@clisp.org>
28392
28393         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
28394         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
28395         it rewrites every file name only once.
28396         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
28397
28398 2009-05-08  Bruno Haible  <bruno@clisp.org>
28399
28400         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
28401         instead of 'max'.
28402
28403 2009-05-08  Simon Josefsson  <simon@josefsson.org>
28404
28405         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
28406         sockaddr_storage test.
28407
28408 2009-05-07  Simon Josefsson  <simon@josefsson.org>
28409
28410         * modules/sys_socket (Makefile.am): Substitute
28411         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
28412         * m4/sys_socket_h.m4: Check for sockaddr_storage.
28413         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
28414         * tests/test-sys_socket.c: Check sockaddr_storage.
28415
28416 2009-05-08  Bruno Haible  <bruno@clisp.org>
28417
28418         New module 'alignof'.
28419         * lib/alignof.h: New file.
28420         * modules/alignof: New file.
28421
28422 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28423             Bruno Haible  <bruno@clisp.org>
28424
28425         Fix test-file-has-acl on FreeBSD.
28426         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
28427         mask is implicitly added.
28428         * tests/test-file-has-acl.c: Include <signal.h>.
28429         (main): Terminate the test after 5 seconds.
28430         * modules/acl-tests (configure.ac): Check for alarm function.
28431
28432 2009-05-04  Bruno Haible  <bruno@clisp.org>
28433
28434         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
28435         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
28436         * modules/errno (configure.ac): Drop AC_REQUIRE.
28437         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
28438         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
28439
28440 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28441
28442         * modules/glob-tests: New module.
28443         * tests/test-glob.c: Add.
28444
28445 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28446
28447         * modules/fnmatch-tests: New module.
28448         * tests/test-fnmatch.c: Add.
28449
28450 2009-05-04  Eric Blake  <ebb9@byu.net>
28451
28452         maint: make the new no-submodule-changes rule VPATH-safe
28453         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
28454
28455 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28456             Bruno Haible  <bruno@clisp.org>
28457
28458         acl: Fix infinite loop on FreeBSD.
28459         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
28460         of return value from acl_get_entry.
28461         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
28462         Likewise.
28463
28464 2009-05-03  Bruno Haible  <bruno@clisp.org>
28465
28466         * lib/acl-internal.h (acl_entries): Clarify return value.
28467         * lib/acl_entries.c (acl_entries): Likewise.
28468
28469 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28470
28471         Bug fix in acl module.
28472         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
28473
28474 2009-05-03  Bruno Haible  <bruno@clisp.org>
28475
28476         Create gperf-generated file in the source dir, not in the build dir.
28477         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
28478         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
28479         * modules/unicase/locale-language (unicase/locale-languages.h):
28480         Likewise.
28481         * modules/unicase/special-casing (unicase/special-casing-table.h):
28482         Likewise.
28483         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
28484         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
28485         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
28486         Reported by Ralf Wildenhues.
28487
28488 2009-05-03  Bruno Haible  <bruno@clisp.org>
28489
28490         * modules/fnmatch (Description, configure.ac): Taken from
28491         fnmatch-posix.
28492         * modules/fnmatch-posix: Turn into a symbolic reference to the
28493         'fnmatch' module, and deprecate.
28494         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
28495
28496 2009-05-03  Bruno Haible  <bruno@clisp.org>
28497
28498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
28499         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
28500         Reported by Ralf Wildenhues.
28501
28502 2009-05-04  Simon Josefsson  <simon@josefsson.org>
28503
28504         * m4/fnmatch.m4: Fix fnmatch re-define.
28505
28506 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
28507
28508         priv-set: new module and tests; adapt write-any-file
28509         * lib/priv-set.c: New file.
28510         * lib/priv-set.h: New file.
28511         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
28512         * lib/write-any-file.c: Simplify by using priv-set module.
28513         * m4/priv-set.m4: New file.
28514         * modules/priv-set: New file.
28515         * modules/unlinkdir: Add dependency on priv-set module.
28516         * modules/write-any-file: Likewise.
28517
28518         Tests for module 'priv-set'.
28519         * modules/priv-set-tests: New file.
28520         * tests/test-priv-set.c: New file.
28521
28522 2009-05-03  Jim Meyering  <meyering@redhat.com>
28523             Bruno Haible  <bruno@clisp.org>
28524
28525         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
28526         use the converted UTF-8 variant of the name instead.
28527
28528 2009-05-03  Jim Meyering  <meyering@redhat.com>
28529
28530         tests: tighten some getdate tests
28531         * tests/test-getdate.c (main): Tighten tests: require equality,
28532         not just greater than.  Set TZ envvar to UTC0.
28533
28534 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28535
28536         getdate: correctly interpret "next monday" when run on a Monday
28537         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
28538         that e.g., "next tues" (when run on a tuesday) results in a date
28539         that is one week in the future, and not today's date.
28540         I.e., add a week when the wday is the same as the current one.
28541         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
28542         and earlier by Martin Bernreuther and Jan Minář.
28543         * tests/test-getdate.c (main): Check that "next DAY" is always in
28544         the future and that "last DAY" is always in the past.
28545
28546 2009-05-02  Jim Meyering  <meyering@redhat.com>
28547
28548         build: ensure that a release build fails when a submodule is unclean
28549         * top/maint.mk (no-submodule-changes): New rule.
28550         (alpha beta major): Depend on it.
28551
28552 2009-05-02  Bruno Haible  <bruno@clisp.org>
28553
28554         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
28555         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
28556         shell variable gl_fnmatch_required to detect which variant is
28557         requested.
28558         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
28559         gl_FUNC_FNMATCH_POSIX.
28560         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
28561         exclude fnmatch-posix.
28562
28563 2009-05-02  Bruno Haible  <bruno@clisp.org>
28564
28565         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
28566         * modules/mbsrtowcs (License): Change to LGPLv2+.
28567         * modules/strnlen1 (License): Likewise.
28568         Reported by Simon Josefsson.
28569
28570 2009-05-02  Bruno Haible  <bruno@clisp.org>
28571
28572         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
28573         "cross".
28574         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
28575         gnulib-tool was called with option --source-base=lib.
28576
28577 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28578
28579         Use automake *-local hooks without commands, for extensibility.
28580         * modules/localcharset (Makefile.am): Rename install-exec-local
28581         rule to install-exec-localcharset, and make it a prerequisite of
28582         install-exec-local.  Likewise, rename the uninstall-local rule to
28583         uninstall-localcharset, and make it a prerequisite of the former.
28584
28585 2009-05-01  Bruno Haible  <bruno@clisp.org>
28586
28587         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
28588         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28589         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
28590         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
28591         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
28592         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28593         m4/locale-zh.m4, m4/codeset.m4.
28594
28595         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
28596         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
28597         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
28598         m4/locale-zh.m4.
28599
28600         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
28601         REPLACE_WCRTOMB if mbstate_t must be replaced.
28602         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
28603         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
28604
28605 2009-05-01  Bruno Haible  <bruno@clisp.org>
28606
28607         Avoid compiler warnings when redefining macros defined by <libintl.h>.
28608         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
28609         dngettext, dcngettext, textdomain, bindtextdomain,
28610         bind_textdomain_codeset): Undefine before redefining.
28611
28612 2009-04-30  Bruno Haible  <bruno@clisp.org>
28613
28614         Fix bug introduced on 2009-04-25.
28615         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
28616         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
28617         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
28618         is defined.
28619         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
28620         is defined.
28621         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
28622         is defined.
28623         Reported by Elbert_Pol <elbert.pol@gmail.com>.
28624
28625 2009-04-28  Bruno Haible  <bruno@clisp.org>
28626
28627         Comment tweaks.
28628         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
28629         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
28630         * lib/unicase.h (u*_casexfrm): Likewise.
28631         Reported by Paolo Bonzini.
28632
28633 2009-04-28  Bruno Haible  <bruno@clisp.org>
28634
28635         Fix a compilation error.
28636         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
28637         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
28638         Reported by Jim Meyering.
28639
28640 2009-04-27  Bruno Haible  <bruno@clisp.org>
28641
28642         New module 'libunistring'.
28643         * modules/libunistring: New file.
28644         * m4/libunistring.m4: New file.
28645         * MODULES.html.sh (Unicode string functions): Add it.
28646
28647 2009-04-27  Eric Blake  <ebb9@byu.net>
28648
28649         maint.mk: allow package-specific header to provide <config.h>
28650         * top/maint.mk (sc_require_config_h): New variable.
28651         (sc_require_config_h, sc_require_config_h_first): Use it.
28652
28653 2009-04-27  Simon Josefsson  <simon@josefsson.org>
28654
28655         * top/maint.mk (sc_avoid_if_before_free): Except
28656         useless-if-before-free script.
28657
28658 2009-04-27  Eric Blake  <ebb9@byu.net>
28659
28660         maintainer-makefile: depend on all required helper scripts
28661         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
28662         useless-if-before-free.
28663         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
28664         version, rather than assuming gnulib checkout is available.
28665         Reported by Simen Josefsson.
28666
28667 2009-04-26  Bruno Haible  <bruno@clisp.org>
28668
28669         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
28670         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
28671         "../" or "..".
28672
28673 2009-04-26  Bruno Haible  <bruno@clisp.org>
28674
28675         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
28676         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
28677         AC_LIB_HAVE_LINKFLAGS.
28678
28679 2009-04-26  Bruno Haible  <bruno@clisp.org>
28680
28681         Simplify calling convention of u*_conv_from_encoding.
28682         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
28683         u32_conv_from_encoding): Expect a resultbuf argument and return the
28684         result directly as a pointer.
28685         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
28686         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
28687         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
28688         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
28689         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
28690         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28691         Update.
28692         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
28693         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
28694         * lib/vasnprintf.c (VASNPRINTF): Update.
28695         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
28696         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
28697         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
28698         * NEWS: Mention the change.
28699
28700 2009-04-26  Bruno Haible  <bruno@clisp.org>
28701
28702         Simplify calling convention of u*_conv_to_encoding.
28703         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28704         u32_conv_to_encoding): Expect a resultbuf argument and return the
28705         result directly as a pointer.
28706         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28707         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
28708         freeing scaled_offsets if mem_iconveha failed.
28709         * lib/unicase/u-casexfrm.h (FUNC): Update.
28710         * lib/uninorm/u-normxfrm.h (FUNC): Update.
28711         * lib/vasnprintf.c (VASNPRINTF): Update.
28712         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
28713         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
28714         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
28715         * NEWS: Mention the change.
28716
28717 2009-04-26  Bruno Haible  <bruno@clisp.org>
28718
28719         Avoid test failures on AIX and OSF/1.
28720         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
28721         malloc(0).
28722         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
28723         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
28724         Likewise.
28725         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
28726         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
28727         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
28728         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
28729         * doc/posix-functions/malloc.texi: Document the portability problem
28730         related to malloc(0).
28731
28732 2009-04-26  Bruno Haible  <bruno@clisp.org>
28733
28734         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
28735         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
28736         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
28737
28738 2009-04-25  Bruno Haible  <bruno@clisp.org>
28739
28740         Avoid link error when creating a namespace clean library.
28741         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
28742         as macro with arguments if already defined as an alias.
28743         * lib/signbitf.c (gl_signbitf): Don't undefine.
28744         * lib/signbitd.c (gl_signbitd): Don't undefine.
28745         * lib/signbitl.c (gl_signbitl): Don't undefine.
28746
28747 2009-04-25  Jim Meyering  <meyering@redhat.com>
28748
28749         vc-list-files: fix another quoting bug
28750         * build-aux/vc-list-files: Avoid sed backslash expansion
28751         of pathological directory names.
28752
28753 2009-04-25  Eric Blake  <ebb9@byu.net>
28754
28755         vc-list-files: fix shell quoting error
28756         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
28757         timestamp.
28758
28759 2009-04-25  Jim Meyering  <meyering@redhat.com>
28760
28761         vc-list-files: restore lost functionality with subdir argument
28762         * build-aux/vc-list-files: When given a non-"." sub-directory
28763         argument, substitute the $dir/ prefix back onto each resulting name.
28764         Otherwise, coreutils' root_tests check would fail.
28765
28766 2009-04-24  Eric Blake  <ebb9@byu.net>
28767
28768         vc-list-files: ignore git symlinks
28769         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
28770         than ls-files, to ignore git symlinks.
28771
28772         maint.mk: import improvements from m4
28773         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
28774         (move_if_change): Delete unused macro.
28775         (news-date-check, vc-diff-check): Support VPATH builds.
28776         (announcement): Likewise.  Split --bootstrap-tools list...
28777         (boostrap-tools): ...into separate list, which can be overridden
28778         in cfg.mk.
28779         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
28780         requiring dependency on useless-if-before-free module.
28781         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
28782         Support VPATH builds.
28783
28784 2009-04-24  Jim Meyering  <meyering@redhat.com>
28785
28786         maint.mk: remove coreutils-specific rules and variables
28787         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
28788         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
28789         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
28790
28791         maint.mk: remove obsolete rule
28792         * top/maint.mk (rel-check): Remove rule.
28793         (WGET, WGETFLAGS): Remove now-unused variables.
28794
28795 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28796
28797         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
28798         consistency.
28799
28800         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
28801         '$(PATH_SEPARATOR)' instead of ':'.
28802
28803 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28804
28805         * lib/getopt1.c (main): Use 'const' for static array.
28806
28807 2009-04-24  Simon Josefsson  <simon@josefsson.org>
28808
28809         * top/maint.mk: Sync with coreutils.
28810         * NEWS: Explain incompatibilities.
28811
28812 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28813             Bruno Haible  <bruno@clisp.org>
28814
28815         Fix cross-compilation results.
28816         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
28817         statement, as third argument of AC_TRY_RUN.
28818         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28819         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28820         Likewise.
28821         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28822         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28823         Likewise.
28824         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28825         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
28826         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
28827
28828 2009-04-20  Bruno Haible  <bruno@clisp.org>
28829
28830         Avoid test failure on mingw.
28831         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
28832
28833 2009-04-20  Bruno Haible  <bruno@clisp.org>
28834
28835         Avoid compilation error on mingw.
28836         * modules/localename-tests (Depends-on): Add locale.
28837
28838 2009-04-19  Bruno Haible  <bruno@clisp.org>
28839
28840         Support for building a shared library on Windows platforms.
28841         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
28842         (main): Test the presence of UNINORM_NFC here.
28843         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
28844         (main): Test the presence of UNINORM_NFD here.
28845         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
28846         (main): Test the presence of UNINORM_NFKC here.
28847         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
28848         (main): Test the presence of UNINORM_NFKD here.
28849
28850 2009-04-19  Bruno Haible  <bruno@clisp.org>
28851
28852         Avoid a compiler warning.
28853         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
28854         Change type of variable 'sequence'.
28855
28856 2009-04-19  Bruno Haible  <bruno@clisp.org>
28857
28858         * modules/configmake (Makefile.am): When the contents of configmake.h
28859         does not change, arrange to preserve its modification time.
28860
28861 2009-04-17  Simon Josefsson  <simon@josefsson.org>
28862
28863         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
28864         gettext domain.
28865
28866 2009-04-16  Jim Meyering  <meyering@redhat.com>
28867
28868         useless-if-before-free: improve conversion code
28869         * build-aux/useless-if-before-free: Adjust code-in-comment to match
28870         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
28871
28872 2009-04-14  Bruno Haible  <bruno@clisp.org>
28873
28874         * modules/fcntl (Depends-on): Add extensions.
28875         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
28876
28877 2009-04-12  Ben Pfaff  <blp@gnu.org>
28878
28879         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
28880         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
28881
28882 2009-03-20  Ben Pfaff  <blp@gnu.org>
28883
28884         Make rename replace existing destinations on Windows.
28885         * m4/rename.m4: Add test for Mingw.
28886         * lib/rename.c: Add rename replacement that uses MoveFileEx with
28887         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
28888         * doc/posix-functions/rename.texi: Document.
28889
28890 2009-04-10  Bruno Haible  <bruno@clisp.org>
28891
28892         New include file "iconveh.h".
28893         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
28894         * lib/striconveh.h: Include it.
28895         (enum iconv_ilseq_handler): Remove definition.
28896         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
28897         striconveh.h.
28898         * lib/striconveha.c: Include striconveh.h.
28899         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
28900         * modules/striconveh (Files): Add lib/iconveh.h.
28901         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
28902         lib/striconveh.h.
28903
28904 2009-04-10  Bruno Haible  <bruno@clisp.org>
28905
28906         * lib/uniconv.h: Update comment.
28907
28908 2009-04-10  Bruno Haible  <bruno@clisp.org>
28909
28910         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
28911         always.
28912         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
28913         * lib/unistr/u16-mbtouc-aux.c: Likewise.
28914         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
28915         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
28916         "unistring-notinline.h", so that the function gets defined always.
28917         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
28918         * lib/unistr/u8-uctomb.c: Likewise.
28919         * lib/unistr/u16-mbtouc.c: Likewise.
28920         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
28921         * lib/unistr/u16-uctomb.c: Likewise.
28922         * lib/unistr/u32-mbtouc.c: Likewise.
28923         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
28924         * lib/unistr/u32-uctomb.c: Likewise.
28925
28926 2009-04-10  Bruno Haible  <bruno@clisp.org>
28927
28928         Mark 'utime' obsolete.
28929         * modules/utime (Status, Notice): New sections.
28930         Suggested by Jim Meyering.
28931
28932         Fix cross-compile guess for utime test.
28933         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
28934         autoconf.
28935         * doc/posix-functions/utime.texi: Give more precisions.
28936         Reported by Jan <ipif@ymail.com>.
28937
28938 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
28939
28940         filevercmp: correct today's change
28941         * lib/filevercmp.c: Also handle coreutils' test inputs.
28942         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
28943
28944         Fix regression in 'filevercmp' module. Thanks Sven Joachim
28945         for reporting it.
28946         * lib/filevercmp.c: Special handle for "", "." and "..".
28947         * tests/test-filevercmp.c: Enlarge the set suite.
28948
28949 2009-04-07  Jim Meyering  <meyering@redhat.com>
28950
28951         useless-if-before-free: show how to remove braced useless free, too
28952         * build-aux/useless-if-before-free: still only in a comment, though.
28953
28954 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
28955
28956         maint.mk: import changes to syntax-check macros from coreutils
28957         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
28958         Use them in the relevant macros.
28959
28960 2009-04-06  Bruno Haible  <bruno@clisp.org>
28961
28962         Fix unportable use of bit-fields.
28963         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
28964         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
28965         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
28966
28967 2009-04-06  Bruno Haible  <bruno@clisp.org>
28968
28969         Avoid test failures on AIX and OSF/1.
28970         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
28971         that malloc(0) = NULL.
28972         * tests/unicase/test-u8-tolower.c (check): Likewise.
28973         * tests/unicase/test-u8-totitle.c (check): Likewise.
28974         * tests/unicase/test-u8-toupper.c (check): Likewise.
28975         * tests/unicase/test-u16-casefold.c (check): Likewise.
28976         * tests/unicase/test-u16-tolower.c (check): Likewise.
28977         * tests/unicase/test-u16-totitle.c (check): Likewise.
28978         * tests/unicase/test-u16-toupper.c (check): Likewise.
28979         * tests/unicase/test-u32-casefold.c (check): Likewise.
28980         * tests/unicase/test-u32-tolower.c (check): Likewise.
28981         * tests/unicase/test-u32-totitle.c (check): Likewise.
28982         * tests/unicase/test-u32-toupper.c (check): Likewise.
28983         * tests/uninorm/test-u8-nfc.c (check): Likewise.
28984         * tests/uninorm/test-u8-nfd.c (check): Likewise.
28985         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
28986         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
28987         * tests/uninorm/test-u16-nfc.c (check): Likewise.
28988         * tests/uninorm/test-u16-nfd.c (check): Likewise.
28989         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
28990         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
28991         * tests/uninorm/test-u32-nfc.c (check): Likewise.
28992         * tests/uninorm/test-u32-nfd.c (check): Likewise.
28993         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
28994         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
28995
28996 2009-04-05  Bruno Haible  <bruno@clisp.org>
28997
28998         Work around an autoconf limitation.
28999         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
29000         comment line if it would be longer than 3 KB.
29001
29002 2009-04-05  Bruno Haible  <bruno@clisp.org>
29003
29004         Avoid test failure with libiconv-1.13.
29005         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
29006         of the expected test results.
29007
29008 2009-04-05  Bruno Haible  <bruno@clisp.org>
29009
29010         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
29011         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
29012         that it should be installed.
29013
29014 2009-04-05  Bruno Haible  <bruno@clisp.org>
29015
29016         * gnulib-tool: New option --copy-file.
29017         (func_usage): Document it.
29018         (func_dest_tmpfilename): Moved out of func_import.
29019         (func_add_file, func_update_file): New functions, extracted from
29020         func_import.
29021         (func_import): Update.
29022
29023 2009-04-05  Karl Berry  <karl@gnu.org>
29024
29025         * README: prominently mention gnulib-tool.
29026         Rearrange sections so getting the code is near the top.
29027
29028 2009-04-05  Bruno Haible  <bruno@clisp.org>
29029
29030         * lib/unicase.h: Mention u*_cmp2.
29031         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29032         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
29033         * lib/unicase/ulc-casecmp.c: Likewise.
29034         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
29035         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
29036         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
29037         unistr/u8-cmp.
29038         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
29039         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
29040         unistr/u16-cmp.
29041         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
29042         unistr/u32-cmp.
29043
29044         * lib/uninorm.h: Mention u*_cmp2.
29045         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
29046         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
29047         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
29048         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
29049         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
29050         unistr/u8-cmp.
29051         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
29052         unistr/u16-cmp.
29053         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
29054         unistr/u32-cmp.
29055
29056         New module 'unistr/u32-cmp2'.
29057         * lib/unistr/u32-cmp2.c: New file.
29058         * modules/unistr/u32-cmp2: New file.
29059
29060         New module 'unistr/u16-cmp2'.
29061         * lib/unistr/u16-cmp2.c: New file.
29062         * modules/unistr/u16-cmp2: New file.
29063
29064         New module 'unistr/u8-cmp2'.
29065         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
29066         * lib/unistr/u8-cmp2.c: New file.
29067         * lib/unistr/u-cmp2.h: New file.
29068         * modules/unistr/u8-cmp2: New file.
29069
29070 2009-04-05  Bruno Haible  <bruno@clisp.org>
29071
29072         * lib/unictype.h (uc_property_is_valid): New macro.
29073         * tests/unictype/test-pr_byname.c (main): Use it.
29074
29075         * lib/unistr.h: Doc fixes.
29076         * lib/uniconv.h: Doc fixes.
29077         * lib/unictype.h: Doc fixes.
29078
29079 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
29080
29081         Port coreutils 7.2 to Solaris 8.
29082
29083         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
29084         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
29085         for Solaris 8.  This is a bit of a hack, as it means it's the
29086         caller's responsibility to add -lnsl if needed, but most likely it
29087         won't be needed since only getaddrinfo uses this and getaddrinfo
29088         isn't needed on Solaris 8.
29089
29090         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
29091         problem to Solaris 8 encountered with coreutils 7.2, which
29092         resulted in a message "fnmatch.c:292: warning: passing argument 4
29093         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
29094         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
29095
29096 2009-04-03  Simon Josefsson  <simon@josefsson.org>
29097
29098         * m4/ld-version-script.m4: Add FIXME comment.
29099
29100 2009-04-02  Simon Josefsson  <simon@josefsson.org>
29101
29102         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
29103         SOVERSION variable.
29104
29105 2009-04-02  Bruno Haible  <bruno@clisp.org>
29106
29107         * Makefile (info, html, dvi, pdf): Combine the rules.
29108         Suggested by Jim Meyering.
29109
29110 2009-04-01  Bruno Haible  <bruno@clisp.org>
29111
29112         * Makefile (info, html, dvi, pdf): New targets.
29113         Reported by Reuben Thomas <rrt@sc3d.org>.
29114
29115 2009-04-01  Bruno Haible  <bruno@clisp.org>
29116
29117         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
29118         can be put into PATH.
29119         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
29120
29121 2009-04-01  Bruno Haible  <bruno@clisp.org>
29122
29123         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
29124
29125 2009-04-01  Bruno Haible  <bruno@clisp.org>
29126
29127         Rename module 'visibility'.
29128         * modules/lib-symbol-visibility: Renamed from modules/visibility.
29129         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
29130         * doc/gnulib.texi: Update.
29131         * MODULES.html.sh (Misc): Update.
29132         * NEWS: Mention the change.
29133
29134 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29135
29136         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
29137         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
29138         Eric Blake <ebb9@byu.net> for review.
29139         * MODULES.html.sh: Add lib-msvc-compat.
29140         * doc/gnulib.texi: Link to new section.
29141         * m4/ld-output-def.m4: New file.
29142         * doc/ld-output-def.texi: New file.
29143
29144 2009-04-01  Simon Josefsson  <simon@josefsson.org>
29145
29146         Rename ld-version-script to lib-symbol-versions.  Suggested by
29147         Bruno Haible <bruno@clisp.org>.
29148         * modules/ld-version-script: Renamed to lib-symbol-versions.
29149         * doc/ld-version-script.texi: Fix module name.
29150         * MODULES.html.sh: Add lib-symbol-versions.
29151
29152 2009-03-31  Simon Josefsson  <simon@josefsson.org>
29153
29154         * modules/u64-tests: New file.
29155         * tests/test-u64.c: New file.
29156
29157 2009-03-04  Simon Josefsson  <simon@josefsson.org>
29158
29159         * MODULES.html.sh: Mention u64.
29160         * modules/u64: New module.
29161         * modules/crypto/sha512: Depend on u64 module instead of providing
29162         u64.h.
29163
29164 2009-03-27  Eric Blake  <ebb9@byu.net>
29165
29166         test-strerror: make debugging EAI_SYSTEM easier
29167         * modules/getaddrinfo-tests (Depends-on): Add strerror.
29168         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
29169         failure was EAI_SYSTEM.
29170
29171 2009-03-25  Bruno Haible  <bruno@clisp.org>
29172
29173         Fix a problem with --enable-relocatable on Solaris 7.
29174         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
29175         since 2008-02-24.
29176
29177 2009-03-25  Eric Blake  <ebb9@byu.net>
29178
29179         test-sockets: avoid gcc warning
29180         * tests/test-sockets.c (main): Silence compiler warning.
29181
29182 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
29183
29184         New modules nproc, pthread, contributed by Glen Lenker.
29185
29186         * MODULES.html.sh: Add pthread, nproc.
29187         * lib/nproc.c: New file.
29188         * lib/nproc.h: New file.
29189         * lib/pthread.in.h: New file.
29190         * m4/pthread.m4: New file.
29191         * modules/nproc: New file.
29192         * modules/pthread: New file.
29193
29194 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29195
29196         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
29197         New variable.
29198
29199 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
29200
29201         filevercmp: handle simple~ and numbered.~3~ backup suffixes
29202         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
29203         * tests/test-filevercmp.c: Add tests for backup suffixes.
29204
29205 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29206
29207         * modules/stdlib (Depends-on): Add stdint, needed when defining
29208         struct random_data on, for example, HP-UX 10.20.  Reported by
29209         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29210
29211 2009-03-24  Simon Josefsson  <simon@josefsson.org>
29212
29213         * lib/readline.c (readline): Call fflush on stdout after printing
29214         prompt.
29215
29216 2009-03-20  Bruno Haible  <bruno@clisp.org>
29217
29218         Remove dependency from 'close' module to -lws2_32 on native Windows.
29219         * lib/close-hook.h: New file.
29220         * lib/close-hook.c: New file.
29221         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
29222         w32sock.h.
29223         (_gl_close_fd_maybe_socket): Remove function.
29224         (rpl_close): Invoke execute_all_close_hooks instead of
29225         _gl_close_fd_maybe_socket.
29226         * lib/sockets.c: Include close-hook.h, w32sock.h.
29227         (close_fd_maybe_socket): New function, essentially from lib/close.c.
29228         (close_sockets_hook): New variable.
29229         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
29230         (gl_sockets_cleanup): Unregister it.
29231         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
29232         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
29233         * modules/close-hook: New file.
29234         * modules/close (Files): Remove lib/w32sock.h.
29235         (Depends-on): Add close-hook.
29236         (Link): Remove section.
29237         * modules/sockets (Files): Add lib/w32sock.h.
29238         (Depends-on): Add close-hook.
29239         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
29240         invocation.
29241         * NEWS: Mention that LIB_CLOSE is gone.
29242
29243 2009-03-23  Eric Blake  <ebb9@byu.net>
29244
29245         signal-tests: test previous patch
29246         * tests/test-signal.c: New file.
29247         * modules/signal-tests: Likewise.
29248
29249         signal.h: always support 'volatile sig_atomic_t'
29250         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
29251         (gl_SIGNAL_H_DEFAULTS): Add a default.
29252         * modules/signal (Makefile.am): Substitute if needed.
29253         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
29254         users can blindly add volatile.
29255         * doc/posix-headers/signal.texi (signal.h): Document it.
29256         Reported by Matthew Woehlke.
29257
29258 2009-03-23  Jim Meyering  <meyering@redhat.com>
29259
29260         pathmax: PATH_MAX: use pathconf only when available
29261         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
29262         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
29263         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
29264         This avoids a link failure in a PSP cross-compilation environment
29265         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
29266
29267         * lib/vasnprintf.c (divide): Fix typo in comment.
29268
29269 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29270
29271         * gnulib-tool (func_filter_filelist): Fix comment.
29272
29273 2009-03-20  Bruno Haible  <bruno@clisp.org>
29274
29275         Make sockets.h self-contained.
29276         * lib/sockets.c: Include sockets.h first.
29277         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
29278
29279 2009-03-19  Eric Blake  <ebb9@byu.net>
29280
29281         doc: mention more functions added in cygwin 1.7.0
29282         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
29283         addition.
29284         * doc/posix-functions/log2f.texi: Likewise.
29285
29286 2009-03-19  Jim Meyering  <meyering@redhat.com>
29287
29288         fsusage: avoid syntax error due to statement-before-declaration
29289         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
29290         after all declarations.  Reported by Matthew Woehlke in
29291         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
29292
29293 2009-03-18  Eric Blake  <ebb9@byu.net>
29294
29295         build-aux/compile: sync from automake
29296         * build-aux/compile: New file, from automake.
29297         * config/srclist.txt: Mention build-aux/compile.
29298
29299 2009-03-17  Bruno Haible  <bruno@clisp.org>
29300
29301         * lib/git-merge-changelog.c: Fix typo in comment.
29302         Reported by Reuben Thomas <rrt@sc3d.org>.
29303
29304 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
29305
29306         * m4/regex.m4: update and improve help for
29307         --without-included-regex.
29308
29309 2009-03-17  Simon Josefsson  <simon@josefsson.org>
29310
29311         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
29312         failure on missing include files.
29313
29314 2009-03-17  Eric Blake  <ebb9@byu.net>
29315
29316         doc: mention more functions added in cygwin 1.7.0
29317         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
29318         addition.
29319         * doc/posix-functions/fwscanf.texi: Likewise.
29320         * doc/posix-functions/swprintf.texi: Likewise.
29321         * doc/posix-functions/swscanf.texi: Likewise.
29322         * doc/posix-functions/vfwprintf.texi: Likewise.
29323         * doc/posix-functions/vfwscanf.texi: Likewise.
29324         * doc/posix-functions/vswprintf.texi: Likewise.
29325         * doc/posix-functions/vswscanf.texi: Likewise.
29326         * doc/posix-functions/vwprintf.texi: Likewise.
29327         * doc/posix-functions/vwscanf.texi: Likewise.
29328         * doc/posix-functions/wcscasecmp.texi: Likewise.
29329         * doc/posix-functions/wcsdup.texi: Likewise.
29330         * doc/posix-functions/wcsftime.texi: Likewise.
29331         * doc/posix-functions/wcsncasecmp.texi: Likewise.
29332         * doc/posix-functions/wprintf.texi: Likewise.
29333         * doc/posix-functions/wscanf.texi: Likewise.
29334         * doc/glibc-functions/gethostbyname2.texi: Likewise.
29335
29336 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29337
29338         maint.mk: really add $(AM_MAKEFLAGS)
29339         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
29340         was inadvertently omitted in the last commit.
29341         Spotted by Bruno Haible.
29342
29343         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
29344         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
29345         $(AM_MAKEFLAGS)' rather than plain `make'.
29346
29347         gnulib-tool: execute $MAKE not make
29348         * gnulib-tool: Default $MAKE to 'make'.
29349         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
29350         than make.  Initialize $MAKE in the do-autobuild script.
29351
29352         gnulib-tool: use $MAKE not make in generated files
29353         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
29354         make, in generated files.  Initialize $MAKE in the do-autobuild
29355         script.
29356
29357         * top/GNUmakefile (_have-git-version-gen): Fix typo.
29358
29359         GNUmakefile: disable parallelism only for multiple, recursive targets
29360         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
29361         additions in the Makefile.
29362         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
29363         by Automake.
29364         (.NOTPARALLEL): Only disable parallel builds if multiple targets
29365         are listed on the command line and at least one of them is
29366         listed in $(ALL_RECURSIVE_TARGETS).
29367
29368 2009-03-14  Bruno Haible  <bruno@clisp.org>
29369
29370         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
29371         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
29372         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
29373         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
29374         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
29375         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
29376         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
29377         unistr/u8-uctomb.
29378         * modules/unistr/u8-strchr (Depends-on): Likewise.
29379         * modules/unistr/u8-strrchr (Depends-on): Likewise.
29380         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
29381         unistr/u16-uctomb.
29382         * modules/unistr/u16-strchr (Depends-on): Likewise.
29383         * modules/unistr/u16-strrchr (Depends-on): Likewise.
29384
29385 2009-03-12  Bruno Haible  <bruno@clisp.org>
29386
29387         Work around select() bug on Interix 3.5.
29388         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
29389         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
29390         * m4/select.m4: New file.
29391         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
29392         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
29393         * modules/select (Files): Add m4/select.m4.
29394         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
29395         * modules/nanosleep (Depends-on): Add select.
29396         * modules/poll (Depends-on): Likewise.
29397         * doc/posix-functions/select.texi: Mention the Interix bug.
29398         Reported by Markus Duft <mduft@gentoo.org>.
29399
29400         * lib/select.c: Renamed from lib/winsock-select.c.
29401         * modules/select (Files): Add lib/select.c, remove
29402         lib/winsock-select.c.
29403         (configure.ac): Update.
29404
29405 2009-03-12  Jim Meyering  <meyering@redhat.com>
29406
29407         avoid gcc warnings about unused macro definitions
29408         * lib/readtokens.c (STREQ): Remove unused definition.
29409         * lib/xmalloc.c (SIZE_MAX): Likewise.
29410         * lib/openat-die.c (N_): Likewise.
29411         * lib/mountlist.c (SIZE_MAX): Remove definition.
29412         Instead, include <stdint.h>.
29413         * lib/readutmp.c: Likewise.
29414         * modules/readutmp (Depends-on): Add stdint.
29415         * modules/mountlist (Depends-on): Add stdint.
29416         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
29417
29418 2009-03-10  Bruno Haible  <bruno@clisp.org>
29419
29420         Tests for module 'mbmemcasecoll'.
29421         * modules/mbmemcasecoll-tests: New file.
29422         * tests/test-mbmemcasecoll1.sh: New file.
29423         * tests/test-mbmemcasecoll2.sh: New file.
29424         * tests/test-mbmemcasecoll3.sh: New file.
29425         * tests/test-mbmemcasecoll.c: New file.
29426
29427         New module 'mbmemcasecoll'.
29428         * lib/mbmemcasecoll.h: New file.
29429         * lib/mbmemcasecoll.c: New file.
29430         * modules/mbmemcasecoll: New file.
29431
29432         * tests/test-mbmemcasecmp.h: New file, extracted from
29433         tests/test-mbmemcasecmp.c.
29434         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
29435         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
29436         (main): Update.
29437         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
29438
29439 2009-03-09  Bruno Haible  <bruno@clisp.org>
29440
29441         Tests for module 'mbmemcasecmp'.
29442         * modules/mbmemcasecmp-tests: New file.
29443         * tests/test-mbmemcasecmp1.sh: New file.
29444         * tests/test-mbmemcasecmp2.sh: New file.
29445         * tests/test-mbmemcasecmp3.sh: New file.
29446         * tests/test-mbmemcasecmp.c: New file.
29447
29448         New module 'mbmemcasecmp'.
29449         * lib/mbmemcasecmp.h: New file.
29450         * lib/mbmemcasecmp.c: New file.
29451         * modules/mbmemcasecmp: New file.
29452
29453 2009-03-09  Bruno Haible  <bruno@clisp.org>
29454
29455         Tests for module 'unicase/ulc-casecoll'.
29456         * modules/unicase/ulc-casecoll-tests: New file.
29457         * tests/unicase/test-ulc-casecoll1.sh: New file.
29458         * tests/unicase/test-ulc-casecoll2.sh: New file.
29459         * tests/unicase/test-ulc-casecoll.c: New file.
29460
29461         New module 'unicase/ulc-casecoll'.
29462         * lib/unicase.h (ulc_casecoll): New declaration.
29463         * lib/unicase/ulc-casecoll.c: New file.
29464         * modules/unicase/ulc-casecoll: New file.
29465
29466         New module 'unicase/ulc-casexfrm'.
29467         * lib/unicase.h (ulc_casexfrm): New declaration.
29468         * lib/unicase/ulc-casexfrm.c: New file.
29469         * modules/unicase/ulc-casexfrm: New file.
29470
29471 2009-03-09  Bruno Haible  <bruno@clisp.org>
29472
29473         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
29474         invocations.
29475
29476         * m4/mbscasecmp.m4: Remove file.
29477         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
29478         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
29479
29480         * m4/mbscasestr.m4: Remove file.
29481         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
29482         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
29483
29484         * m4/mbschr.m4: Remove file.
29485         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
29486         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
29487
29488         * m4/mbscspn.m4: Remove file.
29489         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
29490         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
29491
29492         * m4/mbslen.m4: Remove file.
29493         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
29494         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
29495
29496         * m4/mbsncasecmp.m4: Remove file.
29497         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
29498         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
29499
29500         * m4/mbsnlen.m4: Remove file.
29501         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
29502         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
29503
29504         * m4/mbspbrk.m4: Remove file.
29505         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
29506         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
29507
29508         * m4/mbspcasecmp.m4: Remove file.
29509         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
29510         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
29511
29512         * m4/mbsrchr.m4: Remove file.
29513         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
29514         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
29515
29516         * m4/mbssep.m4: Remove file.
29517         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
29518         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
29519
29520         * m4/mbsspn.m4: Remove file.
29521         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
29522         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
29523
29524         * m4/mbsstr.m4: Remove file.
29525         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
29526         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
29527
29528         * m4/mbstok_r.m4: Remove file.
29529         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
29530         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
29531
29532         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
29533
29534         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
29535         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
29536
29537         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
29538
29539 2009-03-08  Bruno Haible  <bruno@clisp.org>
29540
29541         Tests for module 'unicase/ulc-casecmp'.
29542         * modules/unicase/ulc-casecmp-tests: New file.
29543         * tests/unicase/test-ulc-casecmp1.sh: New file.
29544         * tests/unicase/test-ulc-casecmp2.sh: New file.
29545         * tests/unicase/test-ulc-casecmp.c: New file.
29546
29547         New module 'unicase/ulc-casecmp'.
29548         * lib/unicase.h (ulc_casecmp): New declaration.
29549         * lib/unicase/ulc-casecmp.c: New file.
29550         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
29551         'const SRC_UNIT *'.
29552         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
29553         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
29554         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
29555         * modules/unicase/ulc-casecmp: New file.
29556
29557         Tests for module 'unicase/u32-is-cased'.
29558         * modules/unicase/u32-is-cased-tests: New file.
29559         * tests/unicase/test-u32-is-cased.c: New file.
29560
29561         Tests for module 'unicase/u16-is-cased'.
29562         * modules/unicase/u16-is-cased-tests: New file.
29563         * tests/unicase/test-u16-is-cased.c: New file.
29564
29565         Tests for module 'unicase/u8-is-cased'.
29566         * modules/unicase/u8-is-cased-tests: New file.
29567         * tests/unicase/test-u8-is-cased.c: New file.
29568         * tests/unicase/test-is-cased.h: New file.
29569
29570         New module 'unicase/u32-is-cased'.
29571         * lib/unicase/u32-is-cased.c: New file.
29572         * modules/unicase/u32-is-cased: New file.
29573
29574         New module 'unicase/u16-is-cased'.
29575         * lib/unicase/u16-is-cased.c: New file.
29576         * modules/unicase/u16-is-cased: New file.
29577
29578         New module 'unicase/u8-is-cased'.
29579         * lib/unicase/u8-is-cased.c: New file.
29580         * lib/unicase/u-is-cased.h: New file.
29581         * modules/unicase/u8-is-cased: New file.
29582
29583         Tests for module 'unicase/u32-is-casefolded'.
29584         * modules/unicase/u32-is-casefolded-tests: New file.
29585         * tests/unicase/test-u32-is-casefolded.c: New file.
29586
29587         Tests for module 'unicase/u16-is-casefolded'.
29588         * modules/unicase/u16-is-casefolded-tests: New file.
29589         * tests/unicase/test-u16-is-casefolded.c: New file.
29590
29591         Tests for module 'unicase/u8-is-casefolded'.
29592         * modules/unicase/u8-is-casefolded-tests: New file.
29593         * tests/unicase/test-u8-is-casefolded.c: New file.
29594         * tests/unicase/test-is-casefolded.h: New file.
29595
29596         New module 'unicase/u32-is-casefolded'.
29597         * lib/unicase/u32-is-casefolded.c: New file.
29598         * modules/unicase/u32-is-casefolded: New file.
29599
29600         New module 'unicase/u16-is-casefolded'.
29601         * lib/unicase/u16-is-casefolded.c: New file.
29602         * modules/unicase/u16-is-casefolded: New file.
29603
29604         New module 'unicase/u8-is-casefolded'.
29605         * lib/unicase/u8-is-casefolded.c: New file.
29606         * modules/unicase/u8-is-casefolded: New file.
29607
29608         Tests for module 'unicase/u32-is-titlecase'.
29609         * modules/unicase/u32-is-titlecase-tests: New file.
29610         * tests/unicase/test-u32-is-titlecase.c: New file.
29611
29612         Tests for module 'unicase/u16-is-titlecase'.
29613         * modules/unicase/u16-is-titlecase-tests: New file.
29614         * tests/unicase/test-u16-is-titlecase.c: New file.
29615
29616         Tests for module 'unicase/u8-is-titlecase'.
29617         * modules/unicase/u8-is-titlecase-tests: New file.
29618         * tests/unicase/test-u8-is-titlecase.c: New file.
29619         * tests/unicase/test-is-titlecase.h: New file.
29620
29621         New module 'unicase/u32-is-titlecase'.
29622         * lib/unicase/u32-is-titlecase.c: New file.
29623         * modules/unicase/u32-is-titlecase: New file.
29624
29625         New module 'unicase/u16-is-titlecase'.
29626         * lib/unicase/u16-is-titlecase.c: New file.
29627         * modules/unicase/u16-is-titlecase: New file.
29628
29629         New module 'unicase/u8-is-titlecase'.
29630         * lib/unicase/u8-is-titlecase.c: New file.
29631         * modules/unicase/u8-is-titlecase: New file.
29632
29633         Tests for module 'unicase/u32-is-lowercase'.
29634         * modules/unicase/u32-is-lowercase-tests: New file.
29635         * tests/unicase/test-u32-is-lowercase.c: New file.
29636
29637         Tests for module 'unicase/u16-is-lowercase'.
29638         * modules/unicase/u16-is-lowercase-tests: New file.
29639         * tests/unicase/test-u16-is-lowercase.c: New file.
29640
29641         Tests for module 'unicase/u8-is-lowercase'.
29642         * modules/unicase/u8-is-lowercase-tests: New file.
29643         * tests/unicase/test-u8-is-lowercase.c: New file.
29644         * tests/unicase/test-is-lowercase.h: New file.
29645
29646         New module 'unicase/u32-is-lowercase'.
29647         * lib/unicase/u32-is-lowercase.c: New file.
29648         * modules/unicase/u32-is-lowercase: New file.
29649
29650         New module 'unicase/u16-is-lowercase'.
29651         * lib/unicase/u16-is-lowercase.c: New file.
29652         * modules/unicase/u16-is-lowercase: New file.
29653
29654         New module 'unicase/u8-is-lowercase'.
29655         * lib/unicase/u8-is-lowercase.c: New file.
29656         * modules/unicase/u8-is-lowercase: New file.
29657
29658         Tests for module 'unicase/u32-is-uppercase'.
29659         * modules/unicase/u32-is-uppercase-tests: New file.
29660         * tests/unicase/test-u32-is-uppercase.c: New file.
29661
29662         Tests for module 'unicase/u16-is-uppercase'.
29663         * modules/unicase/u16-is-uppercase-tests: New file.
29664         * tests/unicase/test-u16-is-uppercase.c: New file.
29665
29666         Tests for module 'unicase/u8-is-uppercase'.
29667         * modules/unicase/u8-is-uppercase-tests: New file.
29668         * tests/unicase/test-u8-is-uppercase.c: New file.
29669         * tests/unicase/test-is-uppercase.h: New file.
29670
29671         New module 'unicase/u32-is-uppercase'.
29672         * lib/unicase/u32-is-uppercase.c: New file.
29673         * modules/unicase/u32-is-uppercase: New file.
29674
29675         New module 'unicase/u16-is-uppercase'.
29676         * lib/unicase/u16-is-uppercase.c: New file.
29677         * modules/unicase/u16-is-uppercase: New file.
29678
29679         New module 'unicase/u8-is-uppercase'.
29680         * lib/unicase/u8-is-uppercase.c: New file.
29681         * modules/unicase/u8-is-uppercase: New file.
29682
29683         New module 'unicase/u32-is-invariant'.
29684         * lib/unicase/u32-is-invariant.c: New file.
29685         * modules/unicase/u32-is-invariant: New file.
29686
29687         New module 'unicase/u16-is-invariant'.
29688         * lib/unicase/u16-is-invariant.c: New file.
29689         * modules/unicase/u16-is-invariant: New file.
29690
29691         New module 'unicase/u8-is-invariant'.
29692         * lib/unicase/u8-is-invariant.c: New file.
29693         * lib/unicase/invariant.h: New file.
29694         * lib/unicase/u-is-invariant.h: New file.
29695         * modules/unicase/u8-is-invariant: New file.
29696
29697         Tests for module 'unicase/u32-casecoll'.
29698         * modules/unicase/u32-casecoll-tests: New file.
29699         * tests/unicase/test-u32-casecoll.c: New file.
29700
29701         Tests for module 'unicase/u16-casecoll'.
29702         * modules/unicase/u16-casecoll-tests: New file.
29703         * tests/unicase/test-u16-casecoll.c: New file.
29704
29705         Tests for module 'unicase/u8-casecoll'.
29706         * modules/unicase/u8-casecoll-tests: New file.
29707         * tests/unicase/test-u8-casecoll.c: New file.
29708
29709         New module 'unicase/u32-casecoll'.
29710         * lib/unicase/u32-casecoll.c: New file.
29711         * modules/unicase/u32-casecoll: New file.
29712
29713         New module 'unicase/u16-casecoll'.
29714         * lib/unicase/u16-casecoll.c: New file.
29715         * modules/unicase/u16-casecoll: New file.
29716
29717         New module 'unicase/u8-casecoll'.
29718         * lib/unicase/u8-casecoll.c: New file.
29719         * lib/unicase/u-casecoll.h: New file.
29720         * modules/unicase/u8-casecoll: New file.
29721
29722         New module 'unicase/u32-casexfrm'.
29723         * lib/unicase/u32-casexfrm.c: New file.
29724         * modules/unicase/u32-casexfrm: New file.
29725
29726         New module 'unicase/u16-casexfrm'.
29727         * lib/unicase/u16-casexfrm.c: New file.
29728         * modules/unicase/u16-casexfrm: New file.
29729
29730         New module 'unicase/u8-casexfrm'.
29731         * lib/unicase/u8-casexfrm.c: New file.
29732         * lib/unicase/u-casexfrm.h: New file.
29733         * modules/unicase/u8-casexfrm: New file.
29734
29735         Tests for module 'unicase/u32-casecmp'.
29736         * modules/unicase/u32-casecmp-tests: New file.
29737         * tests/unicase/test-u32-casecmp.c: New file.
29738
29739         Tests for module 'unicase/u16-casecmp'.
29740         * modules/unicase/u16-casecmp-tests: New file.
29741         * tests/unicase/test-u16-casecmp.c: New file.
29742
29743         Tests for module 'unicase/u8-casecmp'.
29744         * modules/unicase/u8-casecmp-tests: New file.
29745         * tests/unicase/test-u8-casecmp.c: New file.
29746         * tests/unicase/test-casecmp.h: New file.
29747
29748         New module 'unicase/u32-casecmp'.
29749         * lib/unicase/u32-casecmp.c: New file.
29750         * modules/unicase/u32-casecmp: New file.
29751
29752         New module 'unicase/u16-casecmp'.
29753         * lib/unicase/u16-casecmp.c: New file.
29754         * modules/unicase/u16-casecmp: New file.
29755
29756         New module 'unicase/u8-casecmp'.
29757         * lib/unicase/u8-casecmp.c: New file.
29758         * lib/unicase/u-casecmp.h: New file.
29759         * modules/unicase/u8-casecmp: New file.
29760
29761         Tests for module 'unicase/u32-casefold'.
29762         * modules/unicase/u32-casefold-tests: New file.
29763         * tests/unicase/test-u32-casefold.c: New file.
29764
29765         Tests for module 'unicase/u16-casefold'.
29766         * modules/unicase/u16-casefold-tests: New file.
29767         * tests/unicase/test-u16-casefold.c: New file.
29768
29769         Tests for module 'unicase/u8-casefold'.
29770         * modules/unicase/u8-casefold-tests: New file.
29771         * tests/unicase/test-u8-casefold.c: New file.
29772
29773         New module 'unicase/u32-casefold'.
29774         * lib/unicase/u32-casefold.c: New file.
29775         * modules/unicase/u32-casefold: New file.
29776
29777         New module 'unicase/u16-casefold'.
29778         * lib/unicase/u16-casefold.c: New file.
29779         * modules/unicase/u16-casefold: New file.
29780
29781         New module 'unicase/u8-casefold'.
29782         * lib/unicase/u8-casefold.c: New file.
29783         * lib/unicase/u-casefold.h: New file.
29784         * modules/unicase/u8-casefold: New file.
29785
29786         New module 'unicase/tocasefold'.
29787         * lib/unicase/casefold.h: New file.
29788         * lib/unicase/tocasefold.c: New file.
29789         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
29790         * modules/unicase/tocasefold: New file.
29791
29792         Tests for module 'unicase/u32-totitle'.
29793         * modules/unicase/u32-totitle-tests: New file.
29794         * tests/unicase/test-u32-totitle.c: New file.
29795
29796         Tests for module 'unicase/u16-totitle'.
29797         * modules/unicase/u16-totitle-tests: New file.
29798         * tests/unicase/test-u16-totitle.c: New file.
29799
29800         Tests for module 'unicase/u8-totitle'.
29801         * modules/unicase/u8-totitle-tests: New file.
29802         * tests/unicase/test-u8-totitle.c: New file.
29803
29804         New module 'unicase/u32-totitle'.
29805         * lib/unicase/u32-totitle.c: New file.
29806         * modules/unicase/u32-totitle: New file.
29807
29808         New module 'unicase/u16-totitle'.
29809         * lib/unicase/u16-totitle.c: New file.
29810         * modules/unicase/u16-totitle: New file.
29811
29812         New module 'unicase/u8-totitle'.
29813         * lib/unicase/u8-totitle.c: New file.
29814         * lib/unicase/u-totitle.h: New file.
29815         * modules/unicase/u8-totitle: New file.
29816
29817         Tests for module 'unicase/u32-tolower'.
29818         * modules/unicase/u32-tolower-tests: New file.
29819         * tests/unicase/test-u32-tolower.c: New file.
29820
29821         Tests for module 'unicase/u16-tolower'.
29822         * modules/unicase/u16-tolower-tests: New file.
29823         * tests/unicase/test-u16-tolower.c: New file.
29824
29825         Tests for module 'unicase/u8-tolower'.
29826         * modules/unicase/u8-tolower-tests: New file.
29827         * tests/unicase/test-u8-tolower.c: New file.
29828
29829         New module 'unicase/u32-tolower'.
29830         * lib/unicase/u32-tolower.c: New file.
29831         * modules/unicase/u32-tolower: New file.
29832
29833         New module 'unicase/u16-tolower'.
29834         * lib/unicase/u16-tolower.c: New file.
29835         * modules/unicase/u16-tolower: New file.
29836
29837         New module 'unicase/u8-tolower'.
29838         * lib/unicase/u8-tolower.c: New file.
29839         * modules/unicase/u8-tolower: New file.
29840
29841         Tests for module 'unicase/u32-toupper'.
29842         * modules/unicase/u32-toupper-tests: New file.
29843         * tests/unicase/test-u32-toupper.c: New file.
29844
29845         Tests for module 'unicase/u16-toupper'.
29846         * modules/unicase/u16-toupper-tests: New file.
29847         * tests/unicase/test-u16-toupper.c: New file.
29848
29849         Tests for module 'unicase/u8-toupper'.
29850         * modules/unicase/u8-toupper-tests: New file.
29851         * tests/unicase/test-u8-toupper.c: New file.
29852
29853         New module 'unicase/u32-toupper'.
29854         * lib/unicase/u32-toupper.c: New file.
29855         * modules/unicase/u32-toupper: New file.
29856
29857         New module 'unicase/u16-toupper'.
29858         * lib/unicase/u16-toupper.c: New file.
29859         * modules/unicase/u16-toupper: New file.
29860
29861         New module 'unicase/u8-toupper'.
29862         * lib/unicase/u8-toupper.c: New file.
29863         * modules/unicase/u8-toupper: New file.
29864
29865         New module 'unicase/u32-casemap'.
29866         * lib/unicase/u32-casemap.c: New file.
29867         * modules/unicase/u32-casemap: New file.
29868
29869         New module 'unicase/u16-casemap'.
29870         * lib/unicase/u16-casemap.c: New file.
29871         * modules/unicase/u16-casemap: New file.
29872
29873         New module 'unicase/u8-casemap'.
29874         * lib/unicase/unicasemap.h: New file.
29875         * lib/unicase/u8-casemap.c: New file.
29876         * lib/unicase/u-casemap.h: New file.
29877         * modules/unicase/u8-casemap: New file.
29878
29879         New module 'unicase/special-casing'.
29880         * lib/unicase/special-casing.h: New file.
29881         * lib/unicase/special-casing.c: New file.
29882         * lib/unicase/special-casing-table.gperf: New file, generated by
29883         gen-uni-tables.c.
29884         * modules/unicase/special-casing: New file.
29885
29886         Tests for module 'unicase/locale-language'.
29887         * modules/unicase/locale-language-tests: New file.
29888         * tests/unicase/test-locale-language.sh: New file.
29889         * tests/unicase/test-locale-language.c: New file.
29890
29891         New module 'unicase/locale-language'.
29892         * lib/unicase/locale-language.c: New file.
29893         * lib/unicase/locale-languages.gperf: New file.
29894         * modules/unicase/locale-language: New file.
29895
29896         Generate more tables for case conversion and case folding.
29897         * lib/gen-uni-tables.c (SCC_*): New enum items.
29898         (struct special_casing_rule): New type.
29899         (casing_rules, num_casing_rules, allocated_casing_rules): New
29900         variables.
29901         (add_casing_rule, fill_casing_rules): New functions.
29902         (struct casefold_rule): New type.
29903         (casefolding_rules, num_casefolding_rules,
29904         allocated_casefolding_rules): New variables.
29905         (fill_casefolding_rules): New function.
29906         (unicode_casefold): New variable.
29907         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
29908         sort_casing_rules, output_casing_rules): New functions.
29909         (main): Accept to more arguments: SpecialCasing.txt and
29910         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
29911         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
29912         Output mapping for casefolding.
29913
29914         * lib/unicase.h: Include stdbool.h, uninorm.h.
29915         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
29916         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
29917         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
29918         arguments.
29919         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
29920         resultp arguments.
29921         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
29922         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
29923         resultp arguments.
29924         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
29925         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
29926         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
29927         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
29928         declarations.
29929         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
29930
29931 2009-03-08  Bruno Haible  <bruno@clisp.org>
29932
29933         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29934         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
29935         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
29936         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29937
29938 2009-03-07  Bruno Haible  <bruno@clisp.org>
29939
29940         Adjust u*_normcmp, u*_normcoll API.
29941         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
29942         u16_normcoll, u32_normcoll): Change failure conventions.
29943         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
29944         errno and return -1.
29945         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
29946
29947 2009-03-07  Bruno Haible  <bruno@clisp.org>
29948
29949         Tests for module 'uninorm/u32-normcoll'.
29950         * modules/uninorm/u32-normcoll-tests: New file.
29951         * tests/uninorm/test-u32-normcoll.c: New file.
29952
29953         Tests for module 'uninorm/u16-normcoll'.
29954         * modules/uninorm/u16-normcoll-tests: New file.
29955         * tests/uninorm/test-u16-normcoll.c: New file.
29956
29957         Tests for module 'uninorm/u8-normcoll'.
29958         * modules/uninorm/u8-normcoll-tests: New file.
29959         * tests/uninorm/test-u8-normcoll.c: New file.
29960
29961 2009-03-07  Bruno Haible  <bruno@clisp.org>
29962
29963         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
29964         tests/uninorm/test-u32-normcmp.c.
29965         * tests/uninorm/test-u32-normcmp.c: Include it.
29966         (test_nonascii): New function, extracted from main. Add some more
29967         tests.
29968         (main): Invoke test_ascii and test_nonascii.
29969         * modules/uninorm/u32-normcmp-tests (Files): Add
29970         tests/uninorm/test-u32-normcmp.h.
29971         (Depends-on): Remove uninorm/u32-normcmp.
29972
29973         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
29974         tests/uninorm/test-u16-normcmp.c.
29975         * tests/uninorm/test-u16-normcmp.c: Include it.
29976         (test_nonascii): New function, extracted from main. Add some more
29977         tests.
29978         (main): Invoke test_ascii and test_nonascii.
29979         * modules/uninorm/u16-normcmp-tests (Files): Add
29980         tests/uninorm/test-u16-normcmp.h.
29981         (Depends-on): Remove uninorm/u16-normcmp.
29982
29983         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
29984         tests/uninorm/test-u8-normcmp.c.
29985         * tests/uninorm/test-u8-normcmp.c: Include it.
29986         (test_nonascii): New function, extracted from main. Add some more
29987         tests.
29988         (main): Invoke test_ascii and test_nonascii.
29989         * modules/uninorm/u8-normcmp-tests (Files): Add
29990         tests/uninorm/test-u8-normcmp.h.
29991         (Depends-on): Remove uninorm/u8-normcmp.
29992
29993 2009-03-07  Bruno Haible  <bruno@clisp.org>
29994
29995         New module 'uninorm/u32-normcoll'.
29996         * lib/uninorm/u32-normcoll.c: New file.
29997         * modules/uninorm/u32-normcoll: New file.
29998
29999         New module 'uninorm/u16-normcoll'.
30000         * lib/uninorm/u16-normcoll.c: New file.
30001         * modules/uninorm/u16-normcoll: New file.
30002
30003         New module 'uninorm/u8-normcoll'.
30004         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
30005         declarations.
30006         * lib/uninorm/u8-normcoll.c: New file.
30007         * lib/uninorm/u-normcoll.h: New file.
30008         * modules/uninorm/u8-normcoll: New file.
30009
30010         New module 'uninorm/u32-normxfrm'.
30011         * lib/uninorm/u32-normxfrm.c: New file.
30012         * modules/uninorm/u32-normxfrm: New file.
30013
30014         New module 'uninorm/u16-normxfrm'.
30015         * lib/uninorm/u16-normxfrm.c: New file.
30016         * modules/uninorm/u16-normxfrm: New file.
30017
30018         New module 'uninorm/u8-normxfrm'.
30019         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
30020         declarations.
30021         * lib/uninorm/u8-normxfrm.c: New file.
30022         * lib/uninorm/u-normxfrm.h: New file.
30023         * modules/uninorm/u8-normxfrm: New file.
30024
30025 2009-03-07  Bruno Haible  <bruno@clisp.org>
30026
30027         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
30028         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
30029         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
30030
30031 2009-03-07  Bruno Haible  <bruno@clisp.org>
30032
30033         New module 'memxfrm'.
30034         * lib/memxfrm.h: New file.
30035         * lib/memxfrm.c: New file.
30036         * modules/memxfrm: New file.
30037
30038 2009-03-07  Bruno Haible  <bruno@clisp.org>
30039
30040         New module 'memcmp2'.
30041         * lib/memcmp2.h: New file.
30042         * lib/memcmp2.c: New file.
30043         * modules/memcmp2: New file.
30044
30045 2009-03-07  Bruno Haible  <bruno@clisp.org>
30046
30047         Tests for module 'uninorm/decomposing-form'.
30048         * modules/uninorm/decomposing-form-tests: New file.
30049         * tests/uninorm/test-decomposing-form.c: New file.
30050
30051         New module 'uninorm/decomposing-form'.
30052         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
30053         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
30054         Add 'decomposing_variant' field.
30055         * lib/uninorm/decomposing-form.c: New file.
30056         * lib/uninorm/nfc.c (uninorm_nfc): Update.
30057         * lib/uninorm/nfd.c (uninorm_nfd): Update.
30058         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
30059         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
30060         * modules/uninorm/decomposing-form: New file.
30061         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
30062         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
30063
30064 2009-03-07  Bruno Haible  <bruno@clisp.org>
30065
30066         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
30067         strings.
30068
30069 2009-03-06  Bruno Haible  <bruno@clisp.org>
30070
30071         Tests for module 'uninorm/u32-normcmp'.
30072         * tests/uninorm/test-u32-normcmp.c: New file.
30073         * modules/uninorm/u32-normcmp-tests: New file.
30074
30075         Tests for module 'uninorm/u16-normcmp'.
30076         * tests/uninorm/test-u16-normcmp.c: New file.
30077         * modules/uninorm/u16-normcmp-tests: New file.
30078
30079         Tests for module 'uninorm/u8-normcmp'.
30080         * tests/uninorm/test-u8-normcmp.c: New file.
30081         * modules/uninorm/u8-normcmp-tests: New file.
30082
30083         New module 'uninorm/u32-normcmp'.
30084         * lib/uninorm/u32-normcmp.c: New file.
30085         * modules/uninorm/u32-normcmp: New file.
30086
30087         New module 'uninorm/u16-normcmp'.
30088         * lib/uninorm/u16-normcmp.c: New file.
30089         * modules/uninorm/u16-normcmp: New file.
30090
30091         New module 'uninorm/u8-normcmp'.
30092         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
30093         declarations.
30094         * lib/uninorm/u8-normcmp.c: New file.
30095         * lib/uninorm/u-normcmp.h: New file.
30096         * modules/uninorm/u8-normcmp: New file.
30097
30098 2009-03-06  Bruno Haible  <bruno@clisp.org>
30099
30100         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
30101         Reported by Eric Blake.
30102
30103 2009-03-06  Eric Blake  <ebb9@byu.net>
30104             Bruno Haible  <bruno@clisp.org>
30105
30106         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
30107         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
30108         condition.
30109         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30110         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
30111         condition.
30112         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
30113
30114 2009-03-06  Eric Blake  <ebb9@byu.net>
30115
30116         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
30117         to avoid compiler warnings.
30118         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
30119
30120 2009-03-05  Bruno Haible  <bruno@clisp.org>
30121
30122         * tests/test-ftell.c (main): Disable test beyond end of file on
30123         FreeMiNT.
30124         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30125
30126 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
30127
30128         * lib/filevercmp.c: Move hidden files up in ordering.
30129         * tests/test-filevercmp.c: Add tests for hidden files.
30130
30131 2009-03-04  Bruno Haible  <bruno@clisp.org>
30132
30133         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
30134         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
30135         AM_CFLAGS.
30136         Reported by Simon Josefsson.
30137
30138 2009-03-03  Bruno Haible  <bruno@clisp.org>
30139
30140         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
30141         Reported by Simon Josefsson.
30142
30143         * doc/ld-version-script.texi: Update node reference.
30144
30145 2009-03-03  Bruno Haible  <bruno@clisp.org>
30146
30147         * modules/visibility (License): Change to 'unlimited'.
30148         Suggested by Simon Josefsson.
30149
30150 2009-03-03  Jim Meyering  <meyering@redhat.com>
30151
30152         unlinkdir: cannot_unlink_dir may modify process state
30153         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
30154         it's neither thread-safe nor appropriate for use in a library.
30155
30156 2009-03-03  Eric Blake  <ebb9@byu.net>
30157
30158         test-closein: silence test under Darwin
30159         * tests/test-closein.sh: Ignore stderr from cat, since we don't
30160         care if it dies from EPIPE or EBADF.
30161
30162 2009-03-03  Bruno Haible  <bruno@clisp.org>
30163
30164         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
30165         earlier.
30166         * doc/visibility.texi: Fix @node and @section.
30167
30168 2009-03-03  Simon Josefsson  <simon@josefsson.org>
30169
30170         * doc/gnulib.texi: Link to sections for ld version script and
30171         visibility.
30172         * doc/visibility.texi: Add @node and @section.
30173         * modules/ld-version-script: New module.
30174         * m4/ld-version-script.m4: New file.
30175         * doc/ld-version-script.texi: New file.
30176
30177 2009-03-02  David Lutterkort  <lutter@redhat.com>
30178
30179         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
30180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30181
30182 2009-03-02  Bruno Haible  <bruno@clisp.org>
30183
30184         * doc/visibility.texi: Mention libtool's -export-symbols option.
30185
30186 2009-03-02  Jim Meyering  <meyering@redhat.com>
30187
30188         announce-gen: new option: --no-print-checksums
30189         * build-aux/announce-gen (usage): Describe it.
30190         (print_checksums): Print a newline here, not in the [*] footnote.
30191         (main): Honor it.
30192
30193 2009-03-01  Bruno Haible  <bruno@clisp.org>
30194
30195         Use socklen_t in the native Windows replacements prototypes.
30196         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
30197         instead of 'int'.
30198         * lib/getsockopt.c (rpl_getsockopt): Likewise.
30199         * lib/setsockopt.c (rpl_setsockopt): Likewise.
30200         * modules/getsockopt (Depends-on): Add socklen.
30201         * modules/setsockopt (Depends-on): Add socklen.
30202
30203 2009-03-01  Bruno Haible  <bruno@clisp.org>
30204
30205         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
30206         least 4.2.
30207
30208 2009-03-01  Eric Blake  <ebb9@byu.net>
30209             Bruno Haible  <bruno@clisp.org>
30210
30211         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
30212         error messages.
30213         * lib/wait-process.c (wait_subprocess): Omit error message about
30214         deadly signal sent to the child of termsigp != NULL.
30215
30216 2009-03-01  Eric Blake  <ebb9@byu.net>
30217
30218         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
30219
30220 2009-03-01  Bruno Haible  <bruno@clisp.org>
30221
30222         Avoid a gcc warning.
30223         * tests/test-sched.c (b): Make global.
30224         Reported by Eric Blake.
30225
30226 2009-01-19  Martin Lambers  <marlam@marlam.de>
30227
30228         Provide POSIX semantics for socket timeout options on W32.
30229         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
30230         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
30231         * modules/setsockopt: Depend on sys_time module for struct timeval.
30232         * modules/getsockopt: Depend on sys_time module for struct timeval.
30233
30234 2009-03-01  Simon Josefsson  <simon@josefsson.org>
30235
30236         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
30237         __USE_GNU, for consistency with netdb.in.h.
30238         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30239
30240 2009-03-01  Bruno Haible  <bruno@clisp.org>
30241
30242         More support for FreeMiNT.
30243         * lib/fseeko.c (rpl_fseeko): Complete last commit.
30244         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30245
30246 2009-03-01  Bruno Haible  <bruno@clisp.org>
30247
30248         More support for FreeMiNT.
30249         * lib/fpurge.c (fpurge): Correct last commit.
30250         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30251
30252 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30253
30254         Fix unportable awk script in vc-list-files.
30255         * build-aux/vc-list-files: In the replacement awk script, use
30256         substr with a second argument of 1, not zero.
30257         Report by Simon Josefsson.
30258
30259 2009-02-28  Bruno Haible  <bruno@clisp.org>
30260
30261         More support for FreeMiNT.
30262         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
30263         to FreeMiNT today.
30264         * lib/fwriting.c (fwriting): Likewise.
30265         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
30266
30267 2009-02-28  Bruno Haible  <bruno@clisp.org>
30268
30269         * tests/test-freadseek.c (main): Disable test beyond end of file on
30270         FreeMiNT.
30271         * tests/test-ftello.c (main): Likewise.
30272         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
30273
30274 2009-02-28  Bruno Haible  <bruno@clisp.org>
30275
30276         Add tentative support for FreeMiNT.
30277         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
30278         * lib/fpurge.c (fpurge): Likewise.
30279         * lib/freadable.c (freadable): Likewise.
30280         * lib/freading.c (freading): Likewise.
30281         * lib/freadptr.c (freadptr): Likewise.
30282         * lib/freadseek.c (freadptrinc): Likewise.
30283         * lib/fseeko.c (rpl_fseeko): Likewise.
30284         * lib/fseterr.c (fseterr): Likewise.
30285         * lib/fwritable.c (fwritable): Likewise.
30286         * lib/fwriting.c (fwriting): Likewise.
30287         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
30288         Hourihane.
30289         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
30290
30291 2009-02-28  Bruno Haible  <bruno@clisp.org>
30292
30293         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
30294         SIGCHLD.
30295         Reported by Jim Meyering.
30296
30297 2009-02-28  Bruno Haible  <bruno@clisp.org>
30298
30299         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
30300         Mention the results of these tests on various platforms.
30301         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
30302         order.
30303         * doc/posix-functions/printf.texi: Likewise.
30304         * doc/posix-functions/snprintf.texi: Likewise.
30305         * doc/posix-functions/sprintf.texi: Likewise.
30306         * doc/posix-functions/vfprintf.texi: Likewise.
30307         * doc/posix-functions/vprintf.texi: Likewise.
30308         * doc/posix-functions/vsnprintf.texi: Likewise.
30309         * doc/posix-functions/vsprintf.texi: Likewise.
30310         * doc/glibc-functions/obstack_printf.texi: Likewise.
30311         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
30312
30313 2009-02-28  Bruno Haible  <bruno@clisp.org>
30314
30315         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
30316         Reported by Loïc Minier <lool@dooz.org>.
30317
30318 2009-02-27  Bruno Haible  <bruno@clisp.org>
30319
30320         * gnulib-tool (func_import): Make the sed expression used to create the
30321         sed script for updating the .gitignore file POSIX compliant.
30322         Reported by Eric Blake.
30323
30324 2009-02-27  Bruno Haible  <bruno@clisp.org>
30325
30326         * gnulib-tool (sed): Don't alias as "sed --posix".
30327         Reported by Eric Blake.
30328
30329 2009-02-27  Bruno Haible  <bruno@clisp.org>
30330
30331         Avoid test link errors.
30332         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
30333         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
30334         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
30335         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
30336         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30337
30338 2009-02-27  Bruno Haible  <bruno@clisp.org>
30339
30340         Avoid spurious "(cached)" in configure output.
30341         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
30342         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
30343         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30344         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30345         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30346         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30347         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30348         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30349         Reported by Eric Blake.
30350
30351 2009-02-27  Eric Blake  <ebb9@byu.net>
30352
30353         printf: fix regression in previous patch
30354         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
30355
30356 2009-02-27  Bruno Haible  <bruno@clisp.org>
30357
30358         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
30359         value.
30360         * lib/stdint.in.h: Likewise.
30361         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
30362
30363 2009-02-27  Eric Blake  <ebb9@byu.net>
30364
30365         doc: mention more functions added in cygwin 1.7.0
30366         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
30367         addition.
30368         * doc/posix-functions/open_wmemstream.texi: Likewise.
30369         * doc/posix-functions/wcsnlen.texi: Likewise.
30370         * doc/posix-functions/wcsnrtombs.texi: Likewise.
30371         * doc/posix-functions/wcstod.texi: Likewise.
30372         * doc/posix-functions/wcstof.texi: Likewise.
30373         * doc/posix-functions/wcstoimax.texi: Likewise.
30374         * doc/posix-functions/wcstok.texi: Likewise.
30375         * doc/posix-functions/wcstoumax.texi: Likewise.
30376
30377         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
30378         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
30379         * doc/posix-functions/fprintf.texi: Update.
30380         * doc/posix-functions/printf.texi: Update.
30381         * doc/posix-functions/snprintf.texi: Update.
30382         * doc/posix-functions/sprintf.texi: Update.
30383         * doc/posix-functions/vfprintf.texi: Update.
30384         * doc/posix-functions/vprintf.texi: Update.
30385         * doc/posix-functions/vsnprintf.texi: Update.
30386         * doc/posix-functions/vsprintf.texi: Update.
30387         * doc/glibc-functions/obstack_printf.texi: Update.
30388         * doc/glibc-functions/obstack_vprintf.texi: Update.
30389
30390 2009-02-26  Eric Blake  <ebb9@byu.net>
30391
30392         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
30393         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
30394         compilation bug by using runtime conversion.
30395         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30396         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
30397         * modules/ceill-tests (Files): Use nan.h.
30398         * modules/floorl-tests (Files): Likewise.
30399         * modules/frexpl-tests (Files): Likewise.
30400         * modules/isnanl-tests (Files): Likewise.
30401         * modules/ldexpl-tests (Files): Likewise.
30402         * modules/roundl-tests (Files): Likewise.
30403         * modules/truncl-tests (Files): Likewise.
30404         * tests/test-ceill.c (main): Use a working NaN.
30405         * tests/test-floorl.c (main): Likewise.
30406         * tests/test-frexpl.c (main): Likewise.
30407         * tests/test-isnan.c (test_long_double): Likewise.
30408         * tests/test-isnanl.h (main): Likewise.
30409         * tests/test-ldexpl.h (main): Likewise.
30410         * tests/test-roundl.h (main): Likewise.
30411         * tests/test-truncl.h (main): Likewise.
30412         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
30413
30414 2009-02-26  Eric Blake  <ebb9@byu.net>
30415             Bruno Haible  <bruno@clisp.org>
30416
30417         Work around a *printf bug with %ls on Solaris.
30418         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
30419         precision is specified, sprintf stops converting the wide string
30420         argument when the number of bytes that have been produced by this
30421         conversion equals or exceeds the precision.
30422         * doc/posix-functions/fprintf.texi: Update.
30423         * doc/posix-functions/printf.texi: Update.
30424         * doc/posix-functions/snprintf.texi: Update.
30425         * doc/posix-functions/sprintf.texi: Update.
30426         * doc/posix-functions/vfprintf.texi: Update.
30427         * doc/posix-functions/vprintf.texi: Update.
30428         * doc/posix-functions/vsnprintf.texi: Update.
30429         * doc/posix-functions/vsprintf.texi: Update.
30430         * doc/glibc-functions/obstack_printf.texi: Update.
30431         * doc/glibc-functions/obstack_vprintf.texi: Update.
30432
30433 2009-02-26  Eric Blake  <ebb9@byu.net>
30434
30435         stdlib: favor compiler check of random.h
30436         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
30437         to avoid an ObjC random.h installed by Swarm.
30438
30439 2009-02-26  Bruno Haible  <bruno@clisp.org>
30440
30441         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
30442         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
30443         Reported by Gary V. Vaughan <gary@gnu.org>.
30444
30445 2009-02-26  Bruno Haible  <bruno@clisp.org>
30446
30447         Fix *printf behaviour regarding the %ls directive.
30448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
30449         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
30450         NEED_PRINTF_DIRECTIVE_LS.
30451         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
30452         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
30453         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30454         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
30455         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
30456         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
30457         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30459         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30460         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30461         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30462         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
30463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30464         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30466         * doc/posix-functions/fprintf.texi: Update.
30467         * doc/posix-functions/printf.texi: Update.
30468         * doc/posix-functions/snprintf.texi: Update.
30469         * doc/posix-functions/sprintf.texi: Update.
30470         * doc/posix-functions/vfprintf.texi: Update.
30471         * doc/posix-functions/vprintf.texi: Update.
30472         * doc/posix-functions/vsnprintf.texi: Update.
30473         * doc/posix-functions/vsprintf.texi: Update.
30474         * doc/glibc-functions/obstack_printf.texi: Update.
30475         * doc/glibc-functions/obstack_vprintf.texi: Update.
30476         Reported by Eric Blake.
30477
30478 2009-02-25  Bruno Haible  <bruno@clisp.org>
30479
30480         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
30481         with known value.
30482         Reported by Gary V. Vaughan <gary@gnu.org>.
30483
30484 2009-02-25  Bruno Haible  <bruno@clisp.org>
30485
30486         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
30487         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
30488         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
30489         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
30490         Reported by Gary V. Vaughan <gary@gnu.org>.
30491
30492 2009-02-25  Bruno Haible  <bruno@clisp.org>
30493
30494         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
30495         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
30496         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
30497         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
30498         Reported by Gary V. Vaughan <gary@gnu.org>.
30499
30500 2009-02-25  Eric Blake  <ebb9@byu.net>
30501
30502         tests: skip fseek/ftell tests if ungetc is broken
30503         * m4/ungetc.m4: New file.
30504         * modules/fseek-tests: Split test, so ungetc dependency is
30505         separate from rest of test.
30506         * modules/fseeko-tests: Likewise.
30507         * modules/ftell-tests: Likewise.
30508         * modules/ftello-tests: Likewise.
30509         * tests/test-fseek.c (main): Isolate ungetc dependency.
30510         * tests/test-fseeko.c (main): Likewise.
30511         * tests/test-ftell.c (main): Likewise.
30512         * tests/test-ftello.c (main): Likewise.
30513         * tests/test-fseek2.sh: New file.
30514         * tests/test-fseeko2.sh: Likewise.
30515         * tests/test-ftell2.sh: Likewise.
30516         * tests/test-ftello2.sh: Likewise.
30517
30518 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
30519
30520         test-getaddrinfo: fix usage of skip return code 77
30521         * tests/test-gettaddrinfo.c: Return skip code 77 only
30522         for first occurance of skip (4x77 is not 77)
30523
30524 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
30525
30526         strtod: avoid C99 decl-after-statement
30527         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
30528
30529 2009-02-24  Eric Blake  <ebb9@byu.net>
30530
30531         strtod: detect HP-UX 11.31 bug
30532         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
30533         Reported by Gary V. Vaughan.
30534
30535 2009-02-23  Bruno Haible  <bruno@clisp.org>
30536
30537         Fix invalid read past end of memory block.
30538         * lib/vasnprintf.c (DCHAR_SET): Define.
30539         (local_wcslen): Define only when needed.
30540         (local_strnlen, local_wcsnlen): New functions.
30541         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
30542         directives that involve a conversion ourselves.
30543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
30544         wcsnlen, mbrtowc, wcrtomb.
30545         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
30546         * tests/test-vasprintf-posix.c (test_function): Likewise.
30547         * tests/test-snprintf-posix.h (test_function): Likewise.
30548         * tests/test-sprintf-posix.h (test_function): Likewise.
30549         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30550
30551 2009-02-22  Bruno Haible  <bruno@clisp.org>
30552
30553         Implement new clarified decomposition of Hangul syllables.
30554         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
30555         of type LTV, return only a pairwise decomposition.
30556         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
30557         Likewise.
30558         * tests/uninorm/test-decomposition.c (main): Updated expected result.
30559         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
30560         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
30561
30562 2009-02-22  Bruno Haible  <bruno@clisp.org>
30563
30564         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
30565         zero-length results and shrink excess allocated memory.
30566         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
30567         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
30568         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
30569         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
30570         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
30571         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
30572         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
30573         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
30574         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
30575         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
30576         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
30577         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
30578
30579 2009-02-21  Bruno Haible  <bruno@clisp.org>
30580
30581         * doc/gnulib.texi: Include safe-alloc.texi earlier.
30582         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
30583         spaces after a period. Put a space between a macro name and its
30584         argument list. Trivial rewordings.
30585         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
30586         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
30587         (main): Return 0 explicitly.
30588
30589 2009-02-21  Bruno Haible  <bruno@clisp.org>
30590
30591         Tests for module 'uninorm/filter'.
30592         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
30593         * modules/uninorm/filter-tests: New file.
30594
30595         New module 'uninorm/filter'.
30596         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
30597         uninorm_filter_flush, uninorm_filter_free): New declarations.
30598         * lib/uninorm/uninorm-filter.c: New file.
30599         * modules/uninorm/filter: New file.
30600
30601 2009-02-21  Bruno Haible  <bruno@clisp.org>
30602
30603         Tests for module 'uninorm/nfkc'.
30604         * tests/uninorm/test-nfkc.c: New file.
30605         * tests/uninorm/test-u8-nfkc.c: New file.
30606         * tests/uninorm/test-u16-nfkc.c: New file.
30607         * tests/uninorm/test-u32-nfkc.c: New file.
30608         * tests/uninorm/test-u32-nfkc-big.sh: New file.
30609         * tests/uninorm/test-u32-nfkc-big.c: New file.
30610         * modules/uninorm/nfkc-tests: New file.
30611
30612         New module 'uninorm/nfkc'.
30613         * lib/uninorm/nfkc.c: New file.
30614         * modules/uninorm/nfkc: New file.
30615
30616         Tests for module 'uninorm/nfkd'.
30617         * tests/uninorm/test-nfkd.c: New file.
30618         * tests/uninorm/test-u8-nfkd.c: New file.
30619         * tests/uninorm/test-u16-nfkd.c: New file.
30620         * tests/uninorm/test-u32-nfkd.c: New file.
30621         * tests/uninorm/test-u32-nfkd-big.sh: New file.
30622         * tests/uninorm/test-u32-nfkd-big.c: New file.
30623         * modules/uninorm/nfkd-tests: New file.
30624
30625         New module 'uninorm/nfkd'.
30626         * lib/uninorm/nfkd.c: New file.
30627         * modules/uninorm/nfkd: New file.
30628
30629         Tests for module 'uninorm/nfc'.
30630         * tests/uninorm/test-nfc.c: New file.
30631         * tests/uninorm/test-u8-nfc.c: New file.
30632         * tests/uninorm/test-u16-nfc.c: New file.
30633         * tests/uninorm/test-u32-nfc.c: New file.
30634         * tests/uninorm/test-u32-nfc-big.sh: New file.
30635         * tests/uninorm/test-u32-nfc-big.c: New file.
30636         * modules/uninorm/nfc-tests: New file.
30637
30638         New module 'uninorm/nfc'.
30639         * lib/uninorm/nfc.c: New file.
30640         * modules/uninorm/nfc: New file.
30641
30642         Tests for module 'uninorm/nfd'.
30643         * tests/uninorm/test-nfd.c: New file.
30644         * tests/uninorm/test-u8-nfd.c: New file.
30645         * tests/uninorm/test-u16-nfd.c: New file.
30646         * tests/uninorm/test-u32-nfd.c: New file.
30647         * tests/uninorm/test-u32-nfd-big.sh: New file.
30648         * tests/uninorm/test-u32-nfd-big.c: New file.
30649         * tests/uninorm/test-u32-normalize-big.h: New file.
30650         * tests/uninorm/test-u32-normalize-big.c: New file.
30651         * tests/uninorm/NormalizationTest.txt: New file, created from
30652         Unicode 5.1.0 NormalizationTest.txt.
30653         * modules/uninorm/nfd-tests: New file.
30654
30655         New module 'uninorm/nfd'.
30656         * lib/uninorm/nfd.c: New file.
30657         * modules/uninorm/nfd: New file.
30658
30659         New module 'uninorm/u32-normalize'.
30660         * lib/uninorm/u32-normalize.c: New file.
30661         * modules/uninorm/u32-normalize: New file.
30662
30663         New module 'uninorm/u16-normalize'.
30664         * lib/uninorm/u16-normalize.c: New file.
30665         * modules/uninorm/u16-normalize: New file.
30666
30667         New module 'uninorm/u8-normalize'.
30668         * lib/uninorm/u8-normalize.c: New file.
30669         * lib/uninorm/normalize-internal.h: New file.
30670         * lib/uninorm/u-normalize-internal.h: New file.
30671         * modules/uninorm/u8-normalize: New file.
30672
30673         New module 'uninorm/decompose-internal'.
30674         * lib/uninorm/decompose-internal.c: New file.
30675         * modules/uninorm/decompose-internal: New file.
30676
30677         Tests for module 'uninorm/composition'.
30678         * tests/uninorm/test-composition.c: New file.
30679         * modules/uninorm/composition-tests: New file.
30680
30681         New module 'uninorm/composition'.
30682         * lib/uninorm/composition.c: New file.
30683         * lib/uninorm/composition-table.gperf: New file, generated by
30684         gen-uni-tables.
30685         * modules/uninorm/composition: New file.
30686
30687         Tests for module 'uninorm/compat-decomposition'.
30688         * tests/uninorm/test-compat-decomposition.c: New file.
30689         * modules/uninorm/compat-decomposition-tests: New file.
30690
30691         New module 'uninorm/compat-decomposition'.
30692         * lib/uninorm/decompose-internal.h: New file.
30693         * lib/uninorm/compat-decomposition.c: New file.
30694         * modules/uninorm/compat-decomposition: New file.
30695
30696         Tests for module 'uninorm/canonical-decomposition'.
30697         * tests/uninorm/test-canonical-decomposition.c: New file.
30698         * modules/uninorm/canonical-decomposition-tests: New file.
30699
30700         New module 'uninorm/canonical-decomposition'.
30701         * lib/uninorm/canonical-decomposition.c: New file.
30702         * modules/uninorm/canonical-decomposition: New file.
30703
30704         Tests for module 'uninorm/decomposition'.
30705         * tests/uninorm/test-decomposition.c: New file.
30706         * modules/uninorm/decomposition-tests: New file.
30707
30708         New module 'uninorm/decomposition'.
30709         * lib/uninorm/decomposition.c: New file.
30710         * modules/uninorm/decomposition: New file.
30711
30712         New module 'uninorm/decomposition-table'.
30713         * lib/uninorm/decomposition-table.h: New file.
30714         * lib/uninorm/decomposition-table.c: New file.
30715         * lib/uninorm/decomposition-table1.h: New file, generated by
30716         gen-uni-tables.
30717         * lib/uninorm/decomposition-table2.h: New file, generated by
30718         gen-uni-tables.
30719         * modules/uninorm/decomposition-table: New file.
30720
30721         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
30722         (UC_DECOMP_*): New enumeration items.
30723         (get_decomposition): New function.
30724         (struct decomp_table): New type.
30725         (output_decomposition, output_decomposition_tables): New functions.
30726         (unicode_composition_exclusions): New variable.
30727         (fill_composition_exclusions, debug_output_composition_tables): New
30728         functions.
30729         (main): Accept one more argument. Invoke fill_composition_exclusions.
30730         Output decomposition and composition tables.
30731
30732         New module 'uninorm/base'.
30733         * lib/uninorm.h: New file.
30734         * lib/unictype.h: Update comment.
30735         * modules/uninorm/base: New file.
30736
30737 2009-02-21  David Lutterkort  <lutter@redhat.com>
30738
30739         Tests for module 'safe-alloc'.
30740         * tests/test-safe-alloc.c: New file.
30741         * modules/safe-alloc-tests: New file.
30742
30743         New module 'safe-alloc'.
30744         * lib/safe-alloc.h: New file.
30745         * lib/safe-alloc.c: New file.
30746         * m4/safe-alloc.m4: New file.
30747         * modules/safe-alloc: New file.
30748         * doc/safe-alloc.texi: New file.
30749         * doc/gnulib.texi: Include it.
30750         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30751         safe-alloc.
30752
30753 2009-02-18  Bruno Haible  <bruno@clisp.org>
30754
30755         Fix link error on non-glibc systems.
30756         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
30757         variable.
30758         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30759
30760 2009-02-18  Jim Meyering  <meyering@redhat.com>
30761
30762         fts: avoid used-uninitialized error due to recent change
30763         * lib/fts.c (fts_read): Guard uses of the new member,
30764         parent->fts_n_dirs_remaining, since it's not relevant for
30765         the parent of a directory specified on the command-line.
30766
30767 2009-02-17  James Youngman  <jay@gnu.org>
30768             Bruno Haible  <bruno@clisp.org>
30769
30770         * m4/include_next.m4: Reformulate comment.
30771
30772 2009-02-16  Jim Meyering  <meyering@redhat.com>
30773
30774         fts: add #if guards so that the fts_lgpl module still builds
30775         * lib/fts.c: Guard just-added hash-table-using parts with
30776         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
30777         Reported by Simon Josefsson.
30778
30779 2009-02-15  Bruno Haible  <bruno@clisp.org>
30780
30781         * modules/array-mergesort-tests: New file.
30782         * tests/test-array-mergesort.c: New file.
30783
30784         New module 'array-mergesort'.
30785         * modules/array-mergesort: New file.
30786         * lib/array-mergesort.h: New file.
30787
30788 2009-02-15  Bruno Haible  <bruno@clisp.org>
30789
30790         Fix 2009-02-07 commit.
30791         * lib/gen-uni-tables.c (output_predicate, output_category,
30792         output_combclass, output_bidi_category, output_decimal_digit,
30793         output_digit, output_numeric, output_mirror, output_scripts,
30794         output_ident_category, output_simple_mapping): Fix format directives.
30795         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
30796
30797 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
30798
30799         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
30800         fixes are available from IBM.
30801
30802 2009-02-13  Jim Meyering  <meyering@redhat.com>
30803
30804         fts: arrange not to stat non-directories in more cases
30805         This makes GNU find (when it doesn't need to stat each file)
30806         *much* more efficient at traversing reiserfs file systems.
30807         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
30808         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
30809         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
30810         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
30811         (leaf_optimization_applies): New function.
30812         (LCO_hash, LCO_compare): New helper functions.
30813         (link_count_optimize_ok): New function.
30814         (fts_stat): Initialize new member (if dir).
30815         (fts_read): Decrement parent's fts_n_dirs_remaining count if
30816         we've just stat'ed a directory.  Skip the stat call when possible.
30817         ---
30818         Note this AFS-related exchange:
30819         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
30820         and note find's pioctl call in find/fstype.c.
30821         But that is necessary only if you want to enable the
30822         optimization for AFS, and for now, I don't.
30823
30824         fts: move a function definition "up" (no semantic change)
30825         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
30826         "up" to precede upcoming use of a related function.
30827
30828 2009-02-11  Jim Meyering  <meyering@redhat.com>
30829
30830         fts: correct internal computation of nlinks (optimization-related)
30831         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
30832         whether the current entry is a directory, so don't test it.
30833
30834 2009-02-10  Bruno Haible  <bruno@clisp.org>
30835
30836         Tests for module 'uniwbrk/ulc-wordbreaks'.
30837         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
30838         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
30839         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
30840
30841         Tests for module 'uniwbrk/u32-wordbreaks'.
30842         * modules/uniwbrk/u32-wordbreaks-tests: New file.
30843         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
30844
30845         Tests for module 'uniwbrk/u16-wordbreaks'.
30846         * modules/uniwbrk/u16-wordbreaks-tests: New file.
30847         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
30848
30849         Tests for module 'uniwbrk/u8-wordbreaks'.
30850         * modules/uniwbrk/u8-wordbreaks-tests: New file.
30851         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
30852
30853 2009-02-10  Bruno Haible  <bruno@clisp.org>
30854
30855         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
30856         property.
30857         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
30858         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
30859         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
30860
30861 2009-02-10  Simon Josefsson  <simon@josefsson.org>
30862
30863         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
30864         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
30865
30866 2009-02-10  Bruno Haible  <bruno@clisp.org>
30867
30868         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
30869         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
30870         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
30871         * lib/unilbrk/u8-possible-linebreaks.c: Update.
30872         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
30873         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
30874
30875 2009-02-09  Simon Josefsson  <simon@josefsson.org>
30876
30877         * lib/sockets.h (gl_fd_to_handle): New function.
30878
30879         * tests/test-sockets.c: Call gl_fd_to_handle.
30880
30881 2009-02-09  Bruno Haible  <bruno@clisp.org>
30882
30883         * doc/havelib.texi: Document the conventions on bi-arch systems.
30884
30885 2009-02-08  Bruno Haible  <bruno@clisp.org>
30886
30887         Document the AC_LIB_LINKFLAGS macro.
30888         * doc/havelib.texi: New file, mostly written on 2005-05-24.
30889         * doc/gnulib.texi: Include it.
30890
30891 2009-02-08  Bruno Haible  <bruno@clisp.org>
30892
30893         Fix wrong order of sections, compared to TOC.
30894         * doc/gnulib.texi: Include relocatable-maint.texi after the
30895         "Regular expressions" node, not before.
30896
30897 2009-02-08  Bruno Haible  <bruno@clisp.org>
30898
30899         Tests for module 'unicase/totitle'.
30900         * modules/unicase/totitle-tests: New file.
30901
30902         Tests for module 'unicase/tolower'.
30903         * modules/unicase/tolower-tests: New file.
30904
30905         Tests for module 'unicase/toupper'.
30906         * modules/unicase/toupper-tests: New file.
30907         * tests/unicase/test-mapping-part1.h: New file.
30908         * tests/unicase/test-mapping-part2.h: New file.
30909
30910         New module 'unicase/totitle'.
30911         * modules/unicase/totitle: New file.
30912         * lib/unicase/totitle.c: New file.
30913
30914         New module 'unicase/tolower'.
30915         * modules/unicase/tolower: New file.
30916         * lib/unicase/tolower.c: New file.
30917
30918         New module 'unicase/toupper'.
30919         * modules/unicase/toupper: New file.
30920         * lib/unicase/toupper.c: New file.
30921         * lib/unicase/simple-mapping.h: New file.
30922
30923         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
30924         (mapping_table): New structure.
30925         (output_simple_mapping): New function.
30926         (main): Invoke output_simple_mapping_test and output_simple_mapping.
30927         * modules/gen-uni-tables (Description): Update.
30928         * lib/unicase/toupper.h: New file, automatically generated by
30929         gen-uni-tables.
30930         * lib/unicase/tolower.h: New file, automatically generated by
30931         gen-uni-tables.
30932         * lib/unicase/totitle.h: New file, automatically generated by
30933         gen-uni-tables.
30934         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
30935         gen-uni-tables.
30936         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
30937         gen-uni-tables.
30938         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
30939         gen-uni-tables.
30940
30941         New module 'unicase/base'.
30942         * modules/unicase/base: New file.
30943         * lib/unicase.h: New file.
30944
30945 2009-02-08  Bruno Haible  <bruno@clisp.org>
30946
30947         New module 'uniwbrk/ulc-wordbreaks'.
30948         * modules/uniwbrk/ulc-wordbreaks: New file.
30949         * lib/uniwbrk/ulc-wordbreaks.c: New file.
30950
30951         New module 'uniwbrk/u32-wordbreaks'.
30952         * modules/uniwbrk/u32-wordbreaks: New file.
30953         * lib/uniwbrk/u32-wordbreaks.c: New file.
30954
30955         New module 'uniwbrk/u16-wordbreaks'.
30956         * modules/uniwbrk/u16-wordbreaks: New file.
30957         * lib/uniwbrk/u16-wordbreaks.c: New file.
30958
30959         New module 'uniwbrk/u8-wordbreaks'.
30960         * modules/uniwbrk/u8-wordbreaks: New file.
30961         * lib/uniwbrk/u8-wordbreaks.c: New file.
30962         * lib/uniwbrk/u-wordbreaks.h: New file.
30963
30964         New module 'uniwbrk/table'.
30965         * modules/uniwbrk/table: New file.
30966         * lib/uniwbrk/wbrktable.h: New file.
30967         * lib/uniwbrk/wbrktable.c: New file.
30968
30969         New module 'uniwbrk/wordbreak-property'.
30970         * modules/uniwbrk/wordbreak-property: New file.
30971         * lib/uniwbrk/wordbreak-property.c: New file.
30972
30973         * lib/gen-uni-tables.c (WBP_*): New enum items.
30974         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
30975         (unicode_org_wbp): New variable.
30976         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
30977         New functions.
30978         (wbp_table): New structure.
30979         (output_wbp, output_wbrk_tables): New functions.
30980         (main): Accept additional argument. Invoke fill_org_wbp,
30981         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
30982         output_wbrk_tables.
30983         * modules/gen-uni-tables (Description): Update.
30984         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
30985         gen-uni-tables.
30986
30987         New module 'uniwbrk/base'.
30988         * modules/uniwbrk/base: New file.
30989         * lib/uniwbrk.h: New file.
30990
30991 2009-02-08  Bruno Haible  <bruno@clisp.org>
30992
30993         Update to Unicode 5.1.0.
30994         * lib/gen-uni-tables.c (is_property_alphabetic): Include
30995         U+2185..U+2188.
30996         (is_property_default_ignorable_code_point): Don't include characters
30997         of category Cc or Cs and not-a-characters.
30998         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
30999         U+0D79, U+109E, U+109F, U+A60C.
31000         * lib/unictype/bidi_of.h: Regenerated.
31001         * lib/unictype/blocks.h: Regenerated.
31002         * lib/unictype/categ_C.h: Regenerated.
31003         * lib/unictype/categ_Cf.h: Regenerated.
31004         * lib/unictype/categ_Cn.h: Regenerated.
31005         * lib/unictype/categ_L.h: Regenerated.
31006         * lib/unictype/categ_Ll.h: Regenerated.
31007         * lib/unictype/categ_Lm.h: Regenerated.
31008         * lib/unictype/categ_Lo.h: Regenerated.
31009         * lib/unictype/categ_Lu.h: Regenerated.
31010         * lib/unictype/categ_M.h: Regenerated.
31011         * lib/unictype/categ_Mc.h: Regenerated.
31012         * lib/unictype/categ_Me.h: Regenerated.
31013         * lib/unictype/categ_Mn.h: Regenerated.
31014         * lib/unictype/categ_N.h: Regenerated.
31015         * lib/unictype/categ_Nd.h: Regenerated.
31016         * lib/unictype/categ_Nl.h: Regenerated.
31017         * lib/unictype/categ_No.h: Regenerated.
31018         * lib/unictype/categ_P.h: Regenerated.
31019         * lib/unictype/categ_Pd.h: Regenerated.
31020         * lib/unictype/categ_Pe.h: Regenerated.
31021         * lib/unictype/categ_Pf.h: Regenerated.
31022         * lib/unictype/categ_Pi.h: Regenerated.
31023         * lib/unictype/categ_Po.h: Regenerated.
31024         * lib/unictype/categ_Ps.h: Regenerated.
31025         * lib/unictype/categ_S.h: Regenerated.
31026         * lib/unictype/categ_Sk.h: Regenerated.
31027         * lib/unictype/categ_Sm.h: Regenerated.
31028         * lib/unictype/categ_So.h: Regenerated.
31029         * lib/unictype/categ_of.h: Regenerated.
31030         * lib/unictype/combining.h: Regenerated.
31031         * lib/unictype/ctype_alnum.h: Regenerated.
31032         * lib/unictype/ctype_alpha.h: Regenerated.
31033         * lib/unictype/ctype_graph.h: Regenerated.
31034         * lib/unictype/ctype_lower.h: Regenerated.
31035         * lib/unictype/ctype_print.h: Regenerated.
31036         * lib/unictype/ctype_punct.h: Regenerated.
31037         * lib/unictype/ctype_upper.h: Regenerated.
31038         * lib/unictype/decdigit.h: Regenerated.
31039         * lib/unictype/digit.h: Regenerated.
31040         * lib/unictype/mirror.h: Regenerated.
31041         * lib/unictype/numeric.h: Regenerated.
31042         * lib/unictype/pr_alphabetic.h: Regenerated.
31043         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
31044         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
31045         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
31046         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
31047         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
31048         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
31049         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
31050         * lib/unictype/pr_combining.h: Regenerated.
31051         * lib/unictype/pr_dash.h: Regenerated.
31052         * lib/unictype/pr_decimal_digit.h: Regenerated.
31053         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
31054         * lib/unictype/pr_deprecated.h: Regenerated.
31055         * lib/unictype/pr_diacritic.h: Regenerated.
31056         * lib/unictype/pr_extender.h: Regenerated.
31057         * lib/unictype/pr_format_control.h: Regenerated.
31058         * lib/unictype/pr_grapheme_base.h: Regenerated.
31059         * lib/unictype/pr_grapheme_extend.h: Regenerated.
31060         * lib/unictype/pr_grapheme_link.h: Regenerated.
31061         * lib/unictype/pr_id_continue.h: Regenerated.
31062         * lib/unictype/pr_id_start.h: Regenerated.
31063         * lib/unictype/pr_ideographic.h: Regenerated.
31064         * lib/unictype/pr_ignorable_control.h: Regenerated.
31065         * lib/unictype/pr_lowercase.h: Regenerated.
31066         * lib/unictype/pr_math.h: Regenerated.
31067         * lib/unictype/pr_numeric.h: Regenerated.
31068         * lib/unictype/pr_other_alphabetic.h: Regenerated.
31069         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
31070         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
31071         * lib/unictype/pr_other_id_continue.h: Regenerated.
31072         * lib/unictype/pr_other_lowercase.h: Regenerated.
31073         * lib/unictype/pr_other_math.h: Regenerated.
31074         * lib/unictype/pr_punctuation.h: Regenerated.
31075         * lib/unictype/pr_sentence_terminal.h: Regenerated.
31076         * lib/unictype/pr_soft_dotted.h: Regenerated.
31077         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
31078         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
31079         * lib/unictype/pr_unified_ideograph.h: Regenerated.
31080         * lib/unictype/pr_uppercase.h: Regenerated.
31081         * lib/unictype/pr_xid_continue.h: Regenerated.
31082         * lib/unictype/pr_xid_start.h: Regenerated.
31083         * lib/unictype/pr_zero_width.h: Regenerated.
31084         * lib/unictype/scripts.h: Regenerated.
31085         * lib/unictype/scripts_byname.gperf: Regenerated.
31086         * lib/unictype/sy_java_ident.h: Regenerated.
31087         * lib/unilbrk/lbrkprop1.h: Regenerated.
31088         * lib/unilbrk/lbrkprop2.h: Regenerated.
31089         * tests/unictype/test-categ_C.c: Regenerated.
31090         * tests/unictype/test-categ_Cf.c: Regenerated.
31091         * tests/unictype/test-categ_Cn.c: Regenerated.
31092         * tests/unictype/test-categ_L.c: Regenerated.
31093         * tests/unictype/test-categ_Ll.c: Regenerated.
31094         * tests/unictype/test-categ_Lm.c: Regenerated.
31095         * tests/unictype/test-categ_Lo.c: Regenerated.
31096         * tests/unictype/test-categ_Lu.c: Regenerated.
31097         * tests/unictype/test-categ_M.c: Regenerated.
31098         * tests/unictype/test-categ_Mc.c: Regenerated.
31099         * tests/unictype/test-categ_Me.c: Regenerated.
31100         * tests/unictype/test-categ_Mn.c: Regenerated.
31101         * tests/unictype/test-categ_N.c: Regenerated.
31102         * tests/unictype/test-categ_Nd.c: Regenerated.
31103         * tests/unictype/test-categ_Nl.c: Regenerated.
31104         * tests/unictype/test-categ_No.c: Regenerated.
31105         * tests/unictype/test-categ_P.c: Regenerated.
31106         * tests/unictype/test-categ_Pd.c: Regenerated.
31107         * tests/unictype/test-categ_Pe.c: Regenerated.
31108         * tests/unictype/test-categ_Pf.c: Regenerated.
31109         * tests/unictype/test-categ_Pi.c: Regenerated.
31110         * tests/unictype/test-categ_Po.c: Regenerated.
31111         * tests/unictype/test-categ_Ps.c: Regenerated.
31112         * tests/unictype/test-categ_S.c: Regenerated.
31113         * tests/unictype/test-categ_Sk.c: Regenerated.
31114         * tests/unictype/test-categ_Sm.c: Regenerated.
31115         * tests/unictype/test-categ_So.c: Regenerated.
31116         * tests/unictype/test-ctype_alnum.c: Regenerated.
31117         * tests/unictype/test-ctype_alpha.c: Regenerated.
31118         * tests/unictype/test-ctype_graph.c: Regenerated.
31119         * tests/unictype/test-ctype_lower.c: Regenerated.
31120         * tests/unictype/test-ctype_print.c: Regenerated.
31121         * tests/unictype/test-ctype_punct.c: Regenerated.
31122         * tests/unictype/test-ctype_upper.c: Regenerated.
31123         * tests/unictype/test-decdigit.h: Regenerated.
31124         * tests/unictype/test-digit.h: Regenerated.
31125         * tests/unictype/test-numeric.h: Regenerated.
31126         * tests/unictype/test-pr_alphabetic.c: Regenerated.
31127         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
31128         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
31129         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
31130         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
31131         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
31132         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
31133         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
31134         * tests/unictype/test-pr_combining.c: Regenerated.
31135         * tests/unictype/test-pr_dash.c: Regenerated.
31136         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
31137         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
31138         * tests/unictype/test-pr_deprecated.c: Regenerated.
31139         * tests/unictype/test-pr_diacritic.c: Regenerated.
31140         * tests/unictype/test-pr_extender.c: Regenerated.
31141         * tests/unictype/test-pr_format_control.c: Regenerated.
31142         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
31143         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
31144         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
31145         * tests/unictype/test-pr_id_continue.c: Regenerated.
31146         * tests/unictype/test-pr_id_start.c: Regenerated.
31147         * tests/unictype/test-pr_ideographic.c: Regenerated.
31148         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
31149         * tests/unictype/test-pr_lowercase.c: Regenerated.
31150         * tests/unictype/test-pr_math.c: Regenerated.
31151         * tests/unictype/test-pr_numeric.c: Regenerated.
31152         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
31153         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
31154         Regenerated.
31155         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
31156         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
31157         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
31158         * tests/unictype/test-pr_other_math.c: Regenerated.
31159         * tests/unictype/test-pr_punctuation.c: Regenerated.
31160         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
31161         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
31162         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
31163         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
31164         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
31165         * tests/unictype/test-pr_uppercase.c: Regenerated.
31166         * tests/unictype/test-pr_xid_continue.c: Regenerated.
31167         * tests/unictype/test-pr_xid_start.c: Regenerated.
31168         * tests/unictype/test-pr_zero_width.c: Regenerated.
31169
31170         Update to Unicode 5.1.0.
31171         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
31172         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
31173         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
31174         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
31175         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
31176         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
31177         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
31178         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
31179         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
31180         (nonspacing_table_ind): Update.
31181         * tests/uniwidth/test-uc_width2.sh: Update expected result.
31182
31183         Update to Unicode 5.1.0.
31184         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
31185         code transform.
31186         * lib/uniname/uniname.c (unicode_character_name,
31187         unicode_name_character): Add the range 0x1Fxxx to the code transform.
31188         * lib/uniname/uninames.h: Regenerated.
31189         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
31190
31191 2009-02-07  Bruno Haible  <bruno@clisp.org>
31192
31193         Merge gen-ctype and gen-lbrk into a single program.
31194         * lib/gen-uni-tables.c: New file, incorporating
31195         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
31196         Add directory prefixes to the names of the generated files.
31197         * lib/unictype/gen-ctype.c: Remove file.
31198         * lib/unilbrk/gen-lbrk.c: Remove file.
31199         * modules/gen-uni-tables: New file.
31200         * modules/unictype/gen-ctype: Remove file.
31201         * modules/unilbrk/gen-lbrk: Remove file.
31202
31203 2009-02-07  Bruno Haible  <bruno@clisp.org>
31204
31205         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
31206
31207         New module 'unistr/u32-strcoll'.
31208         * modules/unistr/u32-strcoll: New file.
31209         * lib/unistr/u32-strcoll.c: New file.
31210
31211         New module 'unistr/u16-strcoll'.
31212         * modules/unistr/u16-strcoll: New file.
31213         * lib/unistr/u16-strcoll.c: New file.
31214
31215         New module 'unistr/u8-strcoll'.
31216         * modules/unistr/u8-strcoll: New file.
31217         * lib/unistr/u8-strcoll.c: New file.
31218         * lib/unistr/u-strcoll.h: New file.
31219
31220 2009-02-07  Bruno Haible  <bruno@clisp.org>
31221
31222         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
31223         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31224         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
31225         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
31226         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
31227         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
31228
31229 2009-02-07  Bruno Haible  <bruno@clisp.org>
31230
31231         Make 64-bit clean.
31232         * lib/unictype/gen-ctype.c (output_predicate, output_category,
31233         output_combclass, output_bidi_category, output_decimal_digit,
31234         output_digit, output_numeric, output_mirror, output_scripts,
31235         output_ident_category): Use proper width specifier in format strings.
31236
31237 2009-02-07  Bruno Haible  <bruno@clisp.org>
31238
31239         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
31240         failure behaviour.
31241
31242 2009-02-07  Jim Meyering  <meyering@redhat.com>
31243
31244         regex: avoid compilation failure with upcoming gcc-4.4
31245         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
31246         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
31247         "... error: integer overflow in preprocessor expression".
31248
31249 2009-02-05  Ben Pfaff  <blp@gnu.org>
31250
31251         Fix link errors on Windows when close module is used.
31252         * modules/close: Add $(LIB_CLOSE) to Link section.
31253         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
31254         $(LIB_CLOSE) on Windows.
31255
31256 2009-02-05  Jim Meyering  <meyering@redhat.com>
31257
31258         still avoid unused-parameter warnings, but do it cleanly
31259         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
31260         (get_fs_usage): Cast to void instead.
31261         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
31262         (dev_from_mount_options, read_file_system_list): Cast to void.
31263         Prompted by Bruno Haible.
31264
31265 2009-02-04  Jim Meyering  <meyering@redhat.com>
31266
31267         fsusage.c: correct copyright year
31268         * lib/fsusage.c: Reflect year in which the change is pushed into
31269
31270         avoid misc. warnings
31271         * lib/fsusage.c (UNUSED_PARAM): Define.
31272         (get_fs_usage): Mark parameter "disk" as unused.
31273         * lib/getugroups.c (getgrent): Use "void" in prototype.
31274         * lib/mountlist.c: Mark unused parameters.
31275         (read_file_system_list): Declare a local with "const".
31276         * lib/nanosleep.c (getnow): Declare static.
31277         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
31278
31279         dirfd: set errno upon failure
31280         * lib/dirfd.c: Include <errno.h>.
31281         Set errno to ENOTSUP when returning -1.
31282         * modules/dirfd (Depends-on): Add errno.
31283         Suggested by John Kodis <kodis@comcast.net>.
31284
31285 2009-02-01  Bruno Haible  <bruno@clisp.org>
31286
31287         Don't assume sizeof (long) >= sizeof (void *).
31288         * lib/memcmp.c: Include stdint.h.
31289         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
31290         srcp2 to 'const byte *'.
31291         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
31292         types to uintptr_t.
31293         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
31294         * modules/memcmp (Depends-on): Add stdint.
31295         Reported by Ozkan Sezer <sezeroz@gmail.com>.
31296
31297 2009-01-30  Eric Blake  <ebb9@byu.net>
31298
31299         fix more require-before-expand issues
31300         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
31301         expand, AC_PROG_AWK.
31302         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
31303
31304 2009-01-28  Eric Blake  <ebb9@byu.net>
31305
31306         version-etc: use consistent URL formatting
31307         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
31308         Improve formatting.  Use fputs for string without %.
31309
31310 2009-01-28  Jim Meyering  <meyering@redhat.com>
31311
31312         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
31313         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
31314         "underquoted definition of NAME" from autoconf-2.59.
31315
31316 2009-01-28  Bruno Haible  <bruno@clisp.org>
31317
31318         * doc/gnulib.texi: Add "Obsolete modules" to index.
31319
31320 2009-01-28  Jim Meyering  <meyering@redhat.com>
31321
31322         useless-if-before-free: recognize more variants
31323         * build-aux/useless-if-before-free: Also recognize e.g.,
31324         if (NULL != p) free (p);
31325
31326 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
31327
31328         test-getaddrinfo: skip (don't fail) this test when there's no network
31329         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
31330         on the presumption that it means you lack network access.
31331
31332 2009-01-26  Jim Meyering  <meyering@redhat.com>
31333
31334         fflush: avoid warnings on modern systems
31335         * lib/fflush.c (rpl_fflush): Move declarations of locals,
31336         pos and result, into scopes where they're used.
31337
31338 2009-01-26  Eric Blake  <ebb9@byu.net>
31339
31340         Silence warning reintroduced by recent extensions patch.
31341         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
31342         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
31343         autoconf.
31344
31345         Backport improved autoconf semantics of AC_DEFUN_ONCE.
31346         * m4/00gnulib.m4: New file.
31347         * gnulib-tool (func_get_filelist): Always use it.
31348         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
31349         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
31350
31351 2009-01-25  Bruno Haible  <bruno@clisp.org>
31352
31353         Make test-quotearg work on MacOS X and AIX.
31354         * tests/test-quotearg.sh: New file.
31355         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
31356         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
31357         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
31358         include <libintl.h>.
31359         (fake_locale): Remove variable.
31360         (gettext, dgettext, dcgettext): Remove functions.
31361         (main): Instead of setting a fake locale, set a real locale. Call
31362         textdomain and bindtextdomain.
31363         * modules/quotearg-tests (Files): Add the new files.
31364         (Depends-on): Add gettext, setenv, unsetenv.
31365         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31366         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
31367         Augment TESTS_ENVIRONMENT.
31368
31369 2009-01-25  Bruno Haible  <bruno@clisp.org>
31370
31371         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
31372         fr_FR.ISO8859-1 locale on MacOS X.
31373         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
31374         ja_JP.eucJP locale on MacOS X.
31375         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
31376         zh_CN.GB18030 locale on MacOS X.
31377
31378 2009-01-25  Bruno Haible  <bruno@clisp.org>
31379
31380         Avoid link errors on MacOS X 10.3.
31381         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
31382         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
31383
31384 2009-01-25  Bruno Haible  <bruno@clisp.org>
31385
31386         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31387         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
31388         * modules/pipe (Files): Remove m4/posix_spawn.m4.
31389         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31390         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
31391         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31392         posix_spawnattr_init, posix_spawnattr_setsigmask,
31393         posix_spawnattr_setflags, posix_spawnattr_destroy.
31394
31395         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
31396         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
31397         * modules/execute (Files): Remove m4/posix_spawn.m4.
31398         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
31399         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
31400         posix_spawnattr_init, posix_spawnattr_setsigmask,
31401         posix_spawnattr_setflags, posix_spawnattr_destroy.
31402
31403 2009-01-25  Bruno Haible  <bruno@clisp.org>
31404
31405         * lib/glthread/threadlib.c: Include <stdlib.h>.
31406
31407 2009-01-25  Bruno Haible  <bruno@clisp.org>
31408
31409         * lib/glthread/threadlib.c (dummy): New declaration.
31410
31411 2009-01-25  Bruno Haible  <bruno@clisp.org>
31412
31413         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
31414         multibyte characters also for the GB18030 encoding. Don't crash when
31415         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
31416
31417 2009-01-25  Bruno Haible  <bruno@clisp.org>
31418
31419         Avoid redefining 'struct random_data' on OSF/1 5.1.
31420         * lib/stdlib.in.h: Include <random.h> if it exists.
31421         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
31422         HAVE_RANDOM_H. Include <random.h> when testing whether
31423         'struct random_data' exists.
31424         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
31425
31426 2009-01-25  Bruno Haible  <bruno@clisp.org>
31427
31428         Don't install charset.alias on MacOS X >= 10.3.
31429         * lib/localcharset.c (DARWIN7): New macro.
31430         (get_charset_aliases): Hardcode the result for Darwin7.
31431         * modules/localcharset (install-exec-local): Don't install
31432         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
31433
31434 2009-01-25  Bruno Haible  <bruno@clisp.org>
31435
31436         Don't install charset.alias on mingw and Cygwin.
31437         * modules/localcharset (install-exec-local): Don't install
31438         charset.alias on mingw and Cygwin, if the file does not yet exist.
31439         The result for these platforms is hardcoded in localcharset.c.
31440
31441 2009-01-25  Bruno Haible  <bruno@clisp.org>
31442
31443         Make it possible again to use AC_GNU_SOURCE together with gnulib.
31444         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
31445         before requiring AC_USE_SYSTEM_EXTENSIONS.
31446
31447 2009-01-25  Jim Meyering  <meyering@redhat.com>
31448
31449         c-strtod: avoid warnings
31450         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
31451         "assignment discards qualifiers from pointer target type" warnings.
31452
31453 2009-01-24  Bruno Haible  <bruno@clisp.org>
31454
31455         Add support for non-UTF-8 locales on MacOS X.
31456         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
31457         canonical encodings. For Darwin 7 and newer, don't map traditional
31458         encodings to UTF-8.
31459         Reported by Vincent Lefevre <vincent@vinc17.org>
31460         at <http://savannah.gnu.org/bugs/?25235>.
31461
31462 2009-01-24  Bruno Haible  <bruno@clisp.org>
31463
31464         * doc/gnulib.texi (Obsolete modules): New section.
31465         Reported by Mike Frysinger <vapier@gentoo.org>.
31466
31467 2009-01-24  Bruno Haible  <bruno@clisp.org>
31468
31469         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
31470         (%.dvi): New rule.
31471
31472 2009-01-24  Bruno Haible  <bruno@clisp.org>
31473
31474         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
31475         Reported by Eric Blake.
31476
31477 2009-01-24  Bruno Haible  <bruno@clisp.org>
31478
31479         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
31480         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
31481         Reported by Gary V. Vaughan <gary@gnu.org>.
31482
31483 2009-01-24  Bruno Haible  <bruno@clisp.org>
31484
31485         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
31486
31487 2009-01-23  Bruno Haible  <bruno@clisp.org>
31488
31489         Make c-strtod, c-strtold usable in libraries.
31490         * lib/c-strtod.c: Include string.h instead of xalloc.h.
31491         (C_STRTOD): Call strdup instead of xstrdup.
31492         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
31493         * modules/c-strtold (Depends-on): Likewise.
31494         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
31495         * NEWS: Mention the change.
31496         Reported by Michael Gold <mgold@ncf.ca>.
31497
31498 2009-01-23  Jim Meyering  <meyering@redhat.com>
31499
31500         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
31501         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
31502         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
31503
31504 2009-01-23  Simon Josefsson  <simon@josefsson.org>
31505
31506         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
31507         GNU CoreUtils.
31508         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
31509         * modules/version-etc (Description): Update.
31510
31511 2009-01-22  Bruno Haible  <bruno@clisp.org>
31512
31513         Cache the C locale object.
31514         * lib/c-strtod.c (c_locale_cache): New variable.
31515         (c_locale): New function.
31516         (C_STRTOD): Use it, and don't call freelocale.
31517         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
31518         Suggested by Paolo Bonzini.
31519
31520 2009-01-21  Bruno Haible  <bruno@clisp.org>
31521
31522         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
31523         conditions other than overflow.
31524
31525 2009-01-21  Bruno Haible  <bruno@clisp.org>
31526
31527         * lib/c-strtod.c: Include errno.h.
31528         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
31529         value from STRTOD_L and STRTOD.
31530
31531 2009-01-21  Bruno Haible  <bruno@clisp.org>
31532         and Jim Meyering  <meyering@redhat.com>
31533
31534         nanosleep: skip configure test (fail it) for apple universal builds
31535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
31536         universal builds, assume that nanosleep does not work.
31537         * modules/nanosleep (Depends-on): Add multiarch.
31538
31539         mktime: skip configure test (fail it) for apple universal builds
31540         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
31541         universal builds, assume that mktime does not work.
31542         * modules/mktime (Depends-on): Add multiarch.
31543
31544 2009-01-21  Eric Blake  <ebb9@byu.net>
31545
31546         multiarch: avoid expand-before-require warning
31547         * modules/multiarch (configure.ac): Require, rather than expand,
31548         gl_MULTIARCH.
31549         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
31550         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
31551         enforce that all clients require it.  Partial reversion of
31552         2008-12-29 patch.
31553
31554         error: avoid expand-before-require warning
31555         * modules/errno (configure.ac): Require, rather than expand,
31556         gl_HEADER_ERRNO_H.
31557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
31558         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
31559         enforce that all clients require it.
31560
31561         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
31562         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
31563         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
31564         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
31565
31566 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
31567
31568         Revert:
31569         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31570
31571         regex: do not depend on obsolete modules.
31572         * modules/regex: Remove memcmp and memmove.
31573
31574 2009-01-20  Bruno Haible  <bruno@clisp.org>
31575
31576         Make the 'link' module link on Windows NT 4.
31577         * lib/link.c (_WIN32_WINNT): Don't define.
31578         (CreateHardLinkFuncType): New type.
31579         (CreateHardLinkFunc, initialized): New variables.
31580         (initialize): New function.
31581         (link): Invoke CreateHardLink indirectly through the function pointer.
31582
31583 2009-01-20  Bruno Haible  <bruno@clisp.org>
31584
31585         Fix compilation failure on mingw.
31586         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
31587
31588 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
31589
31590         * doc/c-strtod.texi: Mention a couple of restrictions.
31591
31592 2009-01-20  Jim Meyering  <meyering@redhat.com>
31593
31594         gettimeofday: move more declarations out of functions
31595         * lib/gettimeofday.c: Move extern declarations of tzset and
31596         gmtime out of containing functions.  Prompted by Bruno Haible.
31597
31598 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
31599
31600         regex: do not depend on obsolete modules.
31601         * modules/regex: Remove memcmp and memmove.
31602
31603 2009-01-19  Bruno Haible  <bruno@clisp.org>
31604
31605         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31606         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
31607         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31608         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
31609         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
31610
31611 2009-01-19  Bruno Haible  <bruno@clisp.org>
31612
31613         * tests/test-link.c: Include <errno.h>.
31614         (main): Exit with code 77 when a hard link cannot be created due to
31615         the file system.
31616         * tests/test-link.sh: Skip test when a hard link cannot be created due
31617         to the file system.
31618         Suggested by Eric Blake.
31619
31620 2009-01-19  Martin Lambers  <marlam@marlam.de>
31621
31622         * modules/link-tests: New file.
31623         * tests/test-link.sh: New file.
31624         * tests/test-link.c: New file.
31625
31626 2009-01-19  Eric Blake  <ebb9@byu.net>
31627
31628         doc: mention another function added in cygwin 1.7.0
31629         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
31630         Another new function in cygwin 1.7.
31631
31632 2009-01-19  Bruno Haible  <bruno@clisp.org>
31633
31634         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
31635         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
31636         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
31637         gl_BIGENDIAN, not AC_C_BIGENDIAN.
31638         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31639         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31640         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31641         * m4/md4.m4 (gl_MD4): Likewise.
31642         * m4/md5.m4 (gl_MD5): Likewise.
31643         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
31644         * m4/sha1.m4 (gl_SHA1): Likewise.
31645         * m4/sha256.m4 (gl_SHA256): Likewise.
31646         * m4/sha512.m4 (gl_SHA512): Likewise.
31647
31648 2009-01-19  Bruno Haible  <bruno@clisp.org>
31649
31650         * modules/uniname/uniname-tests (Depends-on): Add progname.
31651         * tests/uniname/test-uninames.c: Include progname.h.
31652         (main): Call set_program_name.
31653
31654         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
31655         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
31656         (main): Call set_program_name.
31657
31658         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
31659         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
31660         (main): Call set_program_name.
31661
31662         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
31663         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
31664         (main): Call set_program_name.
31665
31666         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
31667         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
31668         (main): Call set_program_name.
31669
31670         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
31671         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
31672         (main): Call set_program_name.
31673
31674         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
31675         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
31676         (main): Call set_program_name.
31677
31678         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
31679         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
31680         (main): Call set_program_name.
31681
31682         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
31683         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
31684         (main): Call set_program_name.
31685
31686 2009-01-19  Eric Blake  <ebb9@byu.net>
31687
31688         test-unistd: test previous patch
31689         * tests/test-unistd.c: Test *_FILENO macros.
31690
31691         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
31692         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31693         Guarantee a definition.
31694         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
31695         * modules/unistd-safer (Depends-on): Add dependency on unistd.
31696         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
31697         * lib/dup-safer.c (STDERR_FILENO): Likewise.
31698         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31699         Likewise.
31700         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
31701         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
31702         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
31703         Likewise.
31704         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
31705         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
31706         (STDERR_FILENO): Likewise.
31707         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
31708         (STDERR_FILENO): Likewise.
31709         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
31710         (STDERR_FILENO): Likewise.
31711         Reported by Elbert Pol.
31712
31713 2009-01-19  Eric Blake  <ebb9@byu.net>
31714
31715         doc: mention more functions added in cygwin 1.7.0
31716         * doc/posix-functions/abort.texi (abort): Update wording related
31717         to cygwin.
31718         * doc/posix-functions/daylight.texi (daylight): Likewise.
31719         * doc/posix-functions/optarg.texi (optarg): Likewise.
31720         * doc/posix-functions/optarg.texi (opterr): Likewise.
31721         * doc/posix-functions/optarg.texi (optind): Likewise.
31722         * doc/posix-functions/optarg.texi (optopt): Likewise.
31723         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
31724         worked in 1.5.x, and was withdrawn in 1.7.
31725         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
31726         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
31727         cygwin versions.
31728         * doc/posix-functions/perror.texi (perror): Likewise.
31729         * doc/posix-functions/printf.texi (printf): Likewise.
31730         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
31731         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
31732         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
31733         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
31734         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
31735         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
31736         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31737         Likewise.
31738         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31739         Likewise.
31740         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
31741         this function.
31742         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
31743         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
31744         Likewise.
31745         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
31746         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
31747         * doc/posix-functions/confstr.texi (confstr): Likewise.
31748         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
31749         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
31750         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
31751         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
31752         * doc/posix-functions/fputws.texi (fputws): Likewise.
31753         * doc/posix-functions/fwide.texi (fwide): Likewise.
31754         * doc/posix-functions/getwc.texi (getwc): Likewise.
31755         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
31756         * doc/posix-functions/putwc.texi (putwc): Likewise.
31757         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
31758         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
31759         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
31760         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
31761         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
31762         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
31763         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
31764         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
31765         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
31766         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
31767         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
31768
31769 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31770
31771         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
31772         * lib/ioctl.c: Include <sys/ioctl.h>.
31773
31774 2009-01-19  Simon Josefsson  <simon@josefsson.org>
31775
31776         * modules/getdate-tests (Depends-on): Add progname.
31777         * tests/test-getdate.c: Use progname module, to avoid link errors
31778         on non-glibc systems.
31779
31780 2009-01-18  Simon Josefsson  <simon@josefsson.org>
31781
31782         * modules/filenamecat-tests (Depends-on): Add progname.
31783         * modules/fstrcmp-tests (Depends-on): Likewise.
31784
31785         * tests/test-filenamecat.c: Use progname module, to avoid link
31786         errors on non-glibc systems.
31787         * tests/test-fstrcmp.c: Likewise.
31788
31789 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
31790
31791         gettimeofday: avoid warning: nested extern declaration of 'localtime'
31792         * lib/gettimeofday.c: Move extern declaration out of function.
31793
31794 2009-01-18  Bruno Haible  <bruno@clisp.org>
31795
31796         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
31797         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
31798         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
31799
31800 2009-01-18  Bruno Haible  <bruno@clisp.org>
31801
31802         * lib/strftime.c (MEMPCPY): Remove unused macro.
31803         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
31804
31805 2009-01-18  Martin Lambers  <marlam@marlam.de>
31806
31807         New module 'link'.
31808         * lib/unistd.in.h (link): New declaration.
31809         * lib/link.c: New file.
31810         * m4/link.m4: New file.
31811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
31812         HAVE_LINK.
31813         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
31814         * modules/link: New file.
31815         * doc/posix-functions/link.texi: Mention the new module.
31816
31817 2009-01-18  Bruno Haible  <bruno@clisp.org>
31818
31819         * tests/test-avltree_list.c (main): Call set_program_name.
31820         * tests/test-avltree_oset.c (main): Likewise.
31821         * tests/test-obstack-printf.c: Include progname.h.
31822         (main): Call set_program_name.
31823         * tests/test-quotearg.c: Include progname.h.
31824         (main): Call set_program_name.
31825         * tests/test-xmemdup0.c: Include progname.h.
31826         (main): Call set_program_name.
31827
31828 2009-01-18  Bruno Haible  <bruno@clisp.org>
31829
31830         New module 'alphasort'.
31831         * lib/dirent.in.h (alphasort): New declaration.
31832         * lib/alphasort.c: New file, from glibc with modifications.
31833         * m4/alphasort.m4: New file.
31834         * modules/alphasort: New file.
31835         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
31836         HAVE_ALPHASORT.
31837         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
31838         HAVE_ALPHASORT.
31839         * doc/posix-functions/alphasort.texi: Mention the new module and the
31840         portability problems.
31841
31842 2009-01-18  Bruno Haible  <bruno@clisp.org>
31843
31844         New module 'scandir'.
31845         * lib/dirent.in.h (scandir): New declaration.
31846         * lib/scandir.c: New file, from glibc with modifications.
31847         * m4/scandir.m4: New file.
31848         * modules/scandir: New file.
31849         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
31850         HAVE_SCANDIR.
31851         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
31852         HAVE_SCANDIR.
31853         * doc/posix-functions/scandir.texi: Mention the new module and the
31854         portability problems.
31855
31856 2009-01-17  Bruno Haible  <bruno@clisp.org>
31857
31858         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
31859         Update documentation.
31860         (func_remove_suffix): Escape all dots in the suffix. Update
31861         documentation.
31862         (func_filter_filelist): Update documentation.
31863         Reported by Ralf Wildenhues.
31864
31865 2009-01-17  Bruno Haible  <bruno@clisp.org>
31866
31867         * modules/dprintf-posix-tests: New file.
31868         * tests/test-dprintf-posix.sh: New file.
31869         * tests/test-dprintf-posix.c: New file.
31870
31871         New modules 'dprintf', 'dprintf-posix'.
31872         * lib/stdio.in.h (dprintf): New declaration.
31873         * lib/dprintf.c: New file.
31874         * m4/dprintf.m4: New file.
31875         * m4/dprintf-posix.m4: New file.
31876         * modules/dprintf: New file.
31877         * modules/dprintf-posix: New file.
31878         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
31879         HAVE_DPRINTF, REPLACE_DPRINTF.
31880         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
31881         HAVE_DPRINTF, REPLACE_DPRINTF.
31882         * doc/posix-functions/dprintf.texi: Mention the new modules.
31883
31884 2009-01-17  Bruno Haible  <bruno@clisp.org>
31885
31886         * modules/vdprintf-posix-tests: New file.
31887         * tests/test-vdprintf-posix.sh: New file.
31888         * tests/test-vdprintf-posix.c: New file.
31889
31890         New modules 'vdprintf', 'vdprintf-posix'.
31891         * lib/stdio.in.h (vdprintf): New declaration.
31892         * lib/vdprintf.c: New file.
31893         * m4/vdprintf.m4: New file.
31894         * m4/vdprintf-posix.m4: New file.
31895         * modules/vdprintf: New file.
31896         * modules/vdprintf-posix: New file.
31897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
31898         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31899         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
31900         HAVE_VDPRINTF, REPLACE_VDPRINTF.
31901         * doc/posix-functions/vdprintf.texi: Mention the new modules.
31902
31903 2009-01-17  Bruno Haible  <bruno@clisp.org>
31904
31905         Fix replacement of fopen on mingw.
31906         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
31907         mingw.
31908
31909 2009-01-17  Bruno Haible  <bruno@clisp.org>
31910
31911         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
31912         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
31913
31914 2009-01-17  Bruno Haible  <bruno@clisp.org>
31915
31916         Avoid test-fflush2.sh failure on mingw.
31917         * tests/test-fflush2.c: Include binary-io.h.
31918         (main): Put standard input into binary mode.
31919         * modules/fflush-tests (Depends-on): Add binary-io.
31920
31921 2009-01-17  Bruno Haible  <bruno@clisp.org>
31922
31923         * lib/wchar.in.h: In another particular situation, include only the
31924         system's <wchar.h> file.
31925         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
31926         Reported by Albert Chin-A-Young <china@thewrittenword.com>
31927         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
31928
31929 2009-01-17  Bruno Haible  <bruno@clisp.org>
31930
31931         Support for stripping executables in --enable-relocatable.
31932         * build-aux/install-reloc: Expect one more argument, or an environment
31933         variable RELOC_STRIP_PROG. If set, strip the destination program and
31934         its wrapper.
31935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
31936         RELOC_STRIP_PROG.
31937         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
31938         to set RELOCATABLE_STRIP.
31939         * NEWS: Mention the new Makefile requirement.
31940
31941 2009-01-17  Bruno Haible  <bruno@clisp.org>
31942
31943         * build-aux/install-reloc: Remove debugging information left over by
31944         C compiler on MacOS X.
31945
31946 2009-01-17  Bruno Haible  <bruno@clisp.org>
31947
31948         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
31949         * lib/progreloc.c (find_executable): Fix type of pointer passed to
31950         _NSGetExecutablePath.
31951
31952 2009-01-16  Jim Meyering  <meyering@redhat.com>
31953
31954         strerror: avoid warnings about discarding "const"
31955         * lib/strerror.c (rpl_strerror): Instead of returning a const
31956         string from each and every "case", use a variable, and add a single
31957         cast after the switch.
31958
31959 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
31960
31961         * lib/arpa_inet.in.h: Add extern "C" block for C++.
31962
31963 2009-01-16  Bruno Haible  <bruno@clisp.org>
31964
31965         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
31966         array initializer syntax that also works in C++ mode.
31967         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31968
31969 2009-01-16  Jim Meyering  <meyering@redhat.com>
31970
31971         poll: suppress a warning
31972         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
31973         to ignore "...unsigned expression < 0 is always false" warnings.
31974
31975 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
31976
31977         poll: remove declarations of unused variables
31978         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
31979         sockbuf and optlen.
31980
31981 2009-01-15  Bruno Haible  <bruno@clisp.org>
31982
31983         Make fflush-after-ungetc POSIX compliant on BSD systems.
31984         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
31985         (clear_ungetc_buffer): Implement also for other systems.
31986         (rpl_fflush): On glibc systems, invoke
31987         clear_ungetc_buffer_preserving_position. Otherwise, invoke
31988         clear_ungetc_buffer after fetching the stream's position, not before.
31989
31990 2009-01-15  Bruno Haible  <bruno@clisp.org>
31991
31992         Make fflush-after-ungetc POSIX compliant on glibc systems.
31993         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
31994         after ungetc.
31995         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
31996         (rpl_fflush): On glibc systems, simply call the system's fflush
31997         function after clearing the ungetc buffer.
31998         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
31999         Instead, lseek only to the end of file, then use the system's fseeko
32000         for the rest. On glibc systems, reset the EOF indicator bit.
32001
32002 2009-01-15  Jim Meyering  <meyering@redhat.com>
32003
32004         openmp.m4: revert quote-adding change, for portability to older autoconf
32005         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
32006         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
32007         Simon Josefsson noticed the problem when using autoconf-2.61.
32008
32009 2009-01-15  Bruno Haible  <bruno@clisp.org>
32010
32011         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
32012         * tests/test-fflush2.c (ASSERT): Always fail.
32013         (main): Add two tests for fflush() after ungetc(), taking into account
32014         the Austin Group's clarification.
32015         Suggested by Eric Blake.
32016
32017 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
32018
32019         mktime.m4: remove K&R-style function prototypes
32020         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
32021         for the Sun C++ compiler.
32022
32023 2009-01-14  Bruno Haible  <bruno@clisp.org>
32024
32025         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
32026         while including <wchar.h>.
32027         * lib/wchar.in.h: In two particular situations on HP-UX, include only
32028         the system's <wchar.h> file.
32029         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32030
32031 2009-01-14  Bruno Haible  <bruno@clisp.org>
32032
32033         * m4/csharp.m4: Don't mention gettext on the serial number line.
32034         * m4/csharpexec.m4: Likewise.
32035         * m4/eaccess.m4: Likewise.
32036         * m4/javaexec.m4: Likewise.
32037         * m4/sig_atomic_t.m4: Likewise.
32038         * m4/tmpdir.m4: Likewise.
32039         * m4/intldir.m4: Bump gettext version.
32040         * m4/lib-ld.m4: Likewise.
32041
32042 2009-01-14  Bruno Haible  <bruno@clisp.org>
32043
32044         * lib/progname.c (set_program_name): Add more comments.
32045         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
32046
32047 2009-01-14  Simon Josefsson  <simon@josefsson.org>
32048
32049         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
32050         were sys/stat.h does not define it.
32051
32052 2009-01-14  Jim Meyering  <meyering@redhat.com>
32053
32054         many *.m4 files: improve m4 quoting
32055         99% of this change was performed by running the following commands:
32056         git ls-files | grep '\.m4$' | xargs perl -pi \
32057           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
32058           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32059           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
32060           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
32061         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
32062         The remainder were to add Copyright dates, increment serial numbers,
32063         undo some changes in comments, exclude m4/intl.m4, and add quotes
32064         around the "1" in ",1" where the unusual spacing prohibited the
32065         above regexps from doing the job.  For more details, see
32066         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
32067         * m4/acl.m4: Modified.
32068         * m4/afs.m4: Likewise.
32069         * m4/alloca.m4: Likewise.
32070         * m4/argp.m4: Likewise.
32071         * m4/argz.m4: Likewise.
32072         * m4/atexit.m4: Likewise.
32073         * m4/bison-i18n.m4: Likewise.
32074         * m4/bison.m4: Likewise.
32075         * m4/byteswap.m4: Likewise.
32076         * m4/c-stack.m4: Likewise.
32077         * m4/c-strtod.m4: Likewise.
32078         * m4/calloc.m4: Likewise.
32079         * m4/canonicalize-lgpl.m4: Likewise.
32080         * m4/chown.m4: Likewise.
32081         * m4/clock_time.m4: Likewise.
32082         * m4/codeset.m4: Likewise.
32083         * m4/copy-file.m4: Likewise.
32084         * m4/csharp.m4: Likewise.
32085         * m4/csharpcomp.m4: Likewise.
32086         * m4/csharpexec.m4: Likewise.
32087         * m4/d-ino.m4: Likewise.
32088         * m4/d-type.m4: Likewise.
32089         * m4/dirfd.m4: Likewise.
32090         * m4/double-slash-root.m4: Likewise.
32091         * m4/eaccess.m4: Likewise.
32092         * m4/eealloc.m4: Likewise.
32093         * m4/environ.m4: Likewise.
32094         * m4/errno_h.m4: Likewise.
32095         * m4/euidaccess.m4: Likewise.
32096         * m4/execute.m4: Likewise.
32097         * m4/fatal-signal.m4: Likewise.
32098         * m4/fchdir.m4: Likewise.
32099         * m4/fcntl_h.m4: Likewise.
32100         * m4/fileblocks.m4: Likewise.
32101         * m4/filenamecat.m4: Likewise.
32102         * m4/findprog.m4: Likewise.
32103         * m4/flexmember.m4: Likewise.
32104         * m4/fnmatch.m4: Likewise.
32105         * m4/fopen.m4: Likewise.
32106         * m4/fpending.m4: Likewise.
32107         * m4/fprintf-posix.m4: Likewise.
32108         * m4/free.m4: Likewise.
32109         * m4/frexp.m4: Likewise.
32110         * m4/frexpl.m4: Likewise.
32111         * m4/fsusage.m4: Likewise.
32112         * m4/ftruncate.m4: Likewise.
32113         * m4/gc-camellia.m4: Likewise.
32114         * m4/gc-random.m4: Likewise.
32115         * m4/gc.m4: Likewise.
32116         * m4/getaddrinfo.m4: Likewise.
32117         * m4/getcwd-abort-bug.m4: Likewise.
32118         * m4/getcwd-path-max.m4: Likewise.
32119         * m4/getdate.m4: Likewise.
32120         * m4/getdomainname.m4: Likewise.
32121         * m4/getgroups.m4: Likewise.
32122         * m4/gethostname.m4: Likewise.
32123         * m4/gethrxtime.m4: Likewise.
32124         * m4/getline.m4: Likewise.
32125         * m4/getloadavg.m4: Likewise.
32126         * m4/getndelim2.m4: Likewise.
32127         * m4/getpass.m4: Likewise.
32128         * m4/gettext.m4: Likewise.
32129         * m4/gettime.m4: Likewise.
32130         * m4/gettimeofday.m4: Likewise.
32131         * m4/gnulib-common.m4: Likewise.
32132         * m4/group-member.m4: Likewise.
32133         * m4/host-os.m4: Likewise.
32134         * m4/iconv.m4: Likewise.
32135         * m4/iconv_open.m4: Likewise.
32136         * m4/inet_ntop.m4: Likewise.
32137         * m4/inet_pton.m4: Likewise.
32138         * m4/inline.m4: Likewise.
32139         * m4/intldir.m4: Likewise.
32140         * m4/intlmacosx.m4: Likewise.
32141         * m4/intmax.m4: Likewise.
32142         * m4/intmax_t.m4: Likewise.
32143         * m4/inttypes.m4: Likewise.
32144         * m4/inttypes_h.m4: Likewise.
32145         * m4/inttypes-pri.m4: Likewise.
32146         * m4/isapipe.m4: Likewise.
32147         * m4/isnand.m4: Likewise.
32148         * m4/isnanf.m4: Likewise.
32149         * m4/isnanl.m4: Likewise.
32150         * m4/javacomp.m4: Likewise.
32151         * m4/javaexec.m4: Likewise.
32152         * m4/jm-winsz1.m4: Likewise.
32153         * m4/jm-winsz2.m4: Likewise.
32154         * m4/lchown.m4: Likewise.
32155         * m4/lcmessage.m4: Likewise.
32156         * m4/ldexpl.m4: Likewise.
32157         * m4/lib-ld.m4: Likewise.
32158         * m4/lib-link.m4: Likewise.
32159         * m4/libsigsegv.m4: Likewise.
32160         * m4/link-follow.m4: Likewise.
32161         * m4/localcharset.m4: Likewise.
32162         * m4/locale-fr.m4: Likewise.
32163         * m4/locale-ja.m4: Likewise.
32164         * m4/locale-tr.m4: Likewise.
32165         * m4/locale-zh.m4: Likewise.
32166         * m4/lock.m4: Likewise.
32167         * m4/longlong.m4: Likewise.
32168         * m4/ls-mntd-fs.m4: Likewise.
32169         * m4/lstat.m4: Likewise.
32170         * m4/malloc.m4: Likewise.
32171         * m4/mathl.m4: Likewise.
32172         * m4/mbrtowc.m4: Likewise.
32173         * m4/mbstate_t.m4: Likewise.
32174         * m4/mbswidth.m4: Likewise.
32175         * m4/memchr.m4: Likewise.
32176         * m4/memcmp.m4: Likewise.
32177         * m4/memcpy.m4: Likewise.
32178         * m4/memmem.m4: Likewise.
32179         * m4/memmove.m4: Likewise.
32180         * m4/mempcpy.m4: Likewise.
32181         * m4/memrchr.m4: Likewise.
32182         * m4/memset.m4: Likewise.
32183         * m4/minmax.m4: Likewise.
32184         * m4/mkdir-slash.m4: Likewise.
32185         * m4/mkdtemp.m4: Likewise.
32186         * m4/mktime.m4: Likewise.
32187         * m4/mmap-anon.m4: Likewise.
32188         * m4/mountlist.m4: Likewise.
32189         * m4/nanosleep.m4: Likewise.
32190         * m4/nls.m4: Likewise.
32191         * m4/nocrash.m4: Likewise.
32192         * m4/open.m4: Likewise.
32193         * m4/openat.m4: Likewise.
32194         * m4/openmp.m4: Likewise.
32195         * m4/pathmax.m4: Likewise.
32196         * m4/perl.m4: Likewise.
32197         * m4/physmem.m4: Likewise.
32198         * m4/pipe.m4: Likewise.
32199         * m4/po.m4: Likewise.
32200         * m4/poll.m4: Likewise.
32201         * m4/posixtm.m4: Likewise.
32202         * m4/posixver.m4: Likewise.
32203         * m4/printf-frexp.m4: Likewise.
32204         * m4/printf-frexpl.m4: Likewise.
32205         * m4/printf-posix.m4: Likewise.
32206         * m4/printf-posix-rpl.m4: Likewise.
32207         * m4/printf.m4: Likewise.
32208         * m4/progtest.m4: Likewise.
32209         * m4/putenv.m4: Likewise.
32210         * m4/readline.m4: Likewise.
32211         * m4/readlink.m4: Likewise.
32212         * m4/readutmp.m4: Likewise.
32213         * m4/realloc.m4: Likewise.
32214         * m4/regex.m4: Likewise.
32215         * m4/relocatable.m4: Likewise.
32216         * m4/relocatable-lib.m4: Likewise.
32217         * m4/rename-dest-slash.m4: Likewise.
32218         * m4/rename.m4: Likewise.
32219         * m4/rmdir-errno.m4: Likewise.
32220         * m4/rmdir.m4: Likewise.
32221         * m4/roundf.m4: Likewise.
32222         * m4/roundl.m4: Likewise.
32223         * m4/rpmatch.m4: Likewise.
32224         * m4/save-cwd.m4: Likewise.
32225         * m4/selinux-selinux-h.m4: Likewise.
32226         * m4/setenv.m4: Likewise.
32227         * m4/settime.m4: Likewise.
32228         * m4/sig2str.m4: Likewise.
32229         * m4/sig_atomic_t.m4: Likewise.
32230         * m4/signalblocking.m4: Likewise.
32231         * m4/signbit.m4: Likewise.
32232         * m4/sigpipe.m4: Likewise.
32233         * m4/sockets.m4: Likewise.
32234         * m4/sockpfaf.m4: Likewise.
32235         * m4/st_dm_mode.m4: Likewise.
32236         * m4/stat-time.m4: Likewise.
32237         * m4/stdbool.m4: Likewise.
32238         * m4/stdint.m4: Likewise.
32239         * m4/stdint_h.m4: Likewise.
32240         * m4/stpcpy.m4: Likewise.
32241         * m4/stpncpy.m4: Likewise.
32242         * m4/strcase.m4: Likewise.
32243         * m4/strchrnul.m4: Likewise.
32244         * m4/strcspn.m4: Likewise.
32245         * m4/strdup.m4: Likewise.
32246         * m4/strftime.m4: Likewise.
32247         * m4/strndup.m4: Likewise.
32248         * m4/strnlen.m4: Likewise.
32249         * m4/strpbrk.m4: Likewise.
32250         * m4/strptime.m4: Likewise.
32251         * m4/strsep.m4: Likewise.
32252         * m4/strtod.m4: Likewise.
32253         * m4/strtoimax.m4: Likewise.
32254         * m4/strtok_r.m4: Likewise.
32255         * m4/strtol.m4: Likewise.
32256         * m4/strtoll.m4: Likewise.
32257         * m4/strtoul.m4: Likewise.
32258         * m4/strtoull.m4: Likewise.
32259         * m4/strtoumax.m4: Likewise.
32260         * m4/strverscmp.m4: Likewise.
32261         * m4/threadlib.m4: Likewise.
32262         * m4/timegm.m4: Likewise.
32263         * m4/tm_gmtoff.m4: Likewise.
32264         * m4/tmpdir.m4: Likewise.
32265         * m4/tmpfile.m4: Likewise.
32266         * m4/tzset.m4: Likewise.
32267         * m4/uintmax_t.m4: Likewise.
32268         * m4/unlinkdir.m4: Likewise.
32269         * m4/unlocked-io.m4: Likewise.
32270         * m4/uptime.m4: Likewise.
32271         * m4/userspec.m4: Likewise.
32272         * m4/utimbuf.m4: Likewise.
32273         * m4/utime.m4: Likewise.
32274         * m4/utimes-null.m4: Likewise.
32275         * m4/utimes.m4: Likewise.
32276         * m4/vararrays.m4: Likewise.
32277         * m4/vasnprintf.m4: Likewise.
32278         * m4/vfprintf-posix.m4: Likewise.
32279         * m4/vprintf-posix.m4: Likewise.
32280         * m4/wait-process.m4: Likewise.
32281         * m4/wchar_t.m4: Likewise.
32282         * m4/wint_t.m4: Likewise.
32283         * m4/write-any-file.m4: Likewise.
32284         * m4/yield.m4: Likewise.
32285
32286 2009-01-13  Bruno Haible  <bruno@clisp.org>
32287
32288         Avoid test-copy-file.sh failures when ACL support insufficient.
32289         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
32290         TESTS_ENVIRONMENT.
32291         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
32292         Reported by Jim Meyering.
32293
32294 2009-01-13  Bruno Haible  <bruno@clisp.org>
32295
32296         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
32297         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
32298         * modules/unistdio/u8-printf-parse (Files): Likewise.
32299         * modules/unistdio/u32-printf-parse (Files): Likewise.
32300         * modules/unistdio/ulc-printf-parse (Files): Likewise.
32301
32302 2009-01-13  Simon Josefsson  <simon@josefsson.org>
32303
32304         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
32305         and m4/inttypes_h.m4 too.
32306
32307 2009-01-12  Eric Blake  <ebb9@byu.net>
32308
32309         tests: IRIX 6.2 cc can't compile -0.0 into .data
32310         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
32311         rather than at compile-time.
32312         * tests/test-floorl.c (minus_zero): Likewise.
32313         * tests/test-frexpl.c (minus_zero): Likewise.
32314         * tests/test-isnan.c (minus_zerol): Likewise.
32315         * tests/test-isnanl.h (minus_zero): Likewise.
32316         * tests/test-ldexpl.c (minus_zero): Likewise.
32317         * tests/test-roundl.c (minus_zero): Likewise.
32318         * tests/test-signbit.c (minus_zerol): Likewise.
32319         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
32320         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
32321         * tests/test-truncl.c (minus_zero): Likewise.
32322         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
32323         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
32324         Reported by Tom G. Christensen and Nelson H. F. Beebe.
32325
32326 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32327
32328         regex: fix glibc bug 9697
32329         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
32330         handling.
32331
32332 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32333
32334         regex: fix glibc bug 697
32335         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
32336         being NULL also if there are no backreferences.
32337
32338 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
32339
32340         regex: merge glibc changes
32341         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
32342         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
32343         re_string_skip_chars, re_string_reconstruct): Likewise.
32344         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
32345
32346 2009-01-07  Jim Meyering  <meyering@redhat.com>
32347
32348         poll: filter through cppi
32349         * lib/poll.c: Indent cpp directives to reflect nesting.
32350
32351 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
32352
32353         poll: don't return uninitialized
32354         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
32355
32356 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
32357
32358         avoid compile failure on AIX 6.1
32359         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
32360         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
32361
32362 2009-01-04  Jim Meyering  <meyering@redhat.com>
32363
32364         remove duplicate inclusion of <stdio.h>
32365         * tests/test-fprintf-posix.c: Likewise.
32366         * tests/test-printf-posix.c: Likewise.
32367         * tests/test-snprintf-posix.c: Likewise.
32368         * tests/test-sprintf-posix.c: Likewise.
32369         * tests/test-vasprintf-posix.c: Likewise.
32370         * tests/test-vfprintf-posix.c: Likewise.
32371         * tests/test-vprintf-posix.c: Likewise.
32372         * tests/test-vsnprintf-posix.c: Likewise.
32373         * tests/test-vsprintf-posix.c: Likewise.
32374
32375 2009-01-03  Jim Meyering  <meyering@redhat.com>
32376
32377         gnulib-tool: fix sed-based filtering
32378         * gnulib-tool (func_filter_filelist): Remove extra backslash
32379         in sed_fff_filter definition.
32380
32381 2009-01-02  Jim Meyering  <meyering@redhat.com>
32382
32383         strftime: avoid compilation failure on Solaris 2.6
32384         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
32385         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
32386         Don't #define mbrlen or mbsinit, since now they're guaranteed to
32387         be available.  Reported by Tom G. Christensen.  Details in
32388         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
32389
32390 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32391             Bruno Haible  <bruno@clisp.org>
32392
32393         Speed up gnulib-tool by doing more string processing through shell
32394         built-ins.
32395         * gnulib-tool (fast_func_append): New variable.
32396         (func_remove_prefix, func_remove_suffix): New functions.
32397         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
32398         (func_filter_filelist): New function.
32399         (func_get_dependencies): Use func_remove_suffix instead of sed.
32400         (func_get_automake_snippet): Use func_filter_filelist instead of a
32401         subshell and sed invocation.
32402
32403 2009-01-01  Bruno Haible  <bruno@clisp.org>
32404
32405         Fix a security bug.
32406         * gnulib-tool (func_import, import, update): Don't allow the characters
32407         '"', '$', '`', '\' in macro arguments that become part of commands that
32408         are evaluated.
32409
32410 2009-01-01  Bruno Haible  <bruno@clisp.org>
32411
32412         * gnulib-tool (func_reset_sigpipe): Add more comments.
32413
32414 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32415
32416         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
32417         func_emit_tests_Makefile_am, func_import): Abort loops early if we
32418         already know the answer.
32419
32420 2009-01-01  Jim Meyering  <meyering@redhat.com>
32421
32422         * lib/version-etc.c (version_etc_va): Update copyright year.
32423
32424 2008-12-30  Bruno Haible  <bruno@clisp.org>
32425
32426         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
32427         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
32428         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
32429
32430 2008-12-29  Eric Blake  <ebb9@byu.net>
32431
32432         multiarch: avoid autoconf AC_REQUIRE bug
32433         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
32434         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
32435         2.63 and older.
32436         Reported by Bruno Haible, and analyzed in
32437         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
32438
32439 2008-12-29  Bruno Haible  <bruno@clisp.org>
32440
32441         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
32442         files in subdirectories correctly.
32443         Reported by Ralf Wildenhues.
32444
32445 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32446
32447         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
32448         rather than 'join FILE -', for Solaris join.
32449
32450 2008-12-29  Bruno Haible  <bruno@clisp.org>
32451
32452         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
32453         quoting.
32454         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32455         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
32456         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
32457         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
32458         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32459         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32460         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32461         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32462         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32463         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32464         * m4/nls.m4 (AM_NLS): Likewise.
32465         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
32466         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32467         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
32468         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32469         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32470         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32471         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
32472         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32473         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32474         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32475         * m4/xsize.m4 (gl_XSIZE): Likewise.
32476         Suggested by Jim Meyering.
32477
32478 2008-11-17  Bruce Korb  <bkorb@gnu.org>
32479
32480         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
32481         * lib/parse-duration.c: use a switch instead of cascading if's.
32482
32483 2008-12-29  Eric Blake  <ebb9@byu.net>
32484
32485         wchar.h: supply WEOF on Irix 5.3
32486         * lib/wchar.in.h (wint_t): Also supply WEOF.
32487         * lib/wctype.in.h (wint_t): Likewise.
32488         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
32489         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
32490         Reported by Tom G. Christensen.
32491
32492 2008-12-26  Bruno Haible  <bruno@clisp.org>
32493
32494         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
32495         i486, i586, i686.
32496
32497 2008-12-26  Bruno Haible  <bruno@clisp.org>
32498
32499         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
32500
32501 2008-12-26  Bruno Haible  <bruno@clisp.org>
32502
32503         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
32504         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
32505         not __STDC_CONSTANT_MACROS.
32506         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
32507
32508 2008-12-25  Bruno Haible  <bruno@clisp.org>
32509
32510         Add support for universal builds to vasnprintf.
32511         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
32512         universal builds, guess no.
32513         * modules/vasnprintf-posix (Depends-on): Add multiarch.
32514         * modules/vasprintf-posix (Depends-on): Likewise.
32515         * modules/fprintf-posix (Depends-on): Likewise.
32516         * modules/vfprintf-posix (Depends-on): Likewise.
32517         * modules/snprintf-posix (Depends-on): Likewise.
32518         * modules/vsnprintf-posix (Depends-on): Likewise.
32519         * modules/sprintf-posix (Depends-on): Likewise.
32520         * modules/vsprintf-posix (Depends-on): Likewise.
32521         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32522         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32523         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32524         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32525         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32526         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32527         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32528
32529         Add support for universal builds to <inttypes.h>.
32530         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
32531         _SCNu64_PREFIX): In Apple
32532         universal builds, define directly, using _LP64.
32533         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
32534         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
32535         * modules/inttypes (Depends-on): Add multiarch.
32536         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32537
32538         Add support for universal builds to <stdint.h>.
32539         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
32540         universal builds, define directly, using _LP64.
32541         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
32542         Apple universal builds, don't test for the size and suffix of ptrdiff_t
32543         and size_t.
32544         * modules/stdint (Depends-on): Add multiarch.
32545         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
32546
32547         New module 'multiarch'.
32548         * modules/multiarch: New file.
32549         * m4/multiarch.m4: New file.
32550
32551 2008-12-25  Bruno Haible  <bruno@clisp.org>
32552
32553         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
32554
32555 2008-12-25  Bruno Haible  <bruno@clisp.org>
32556
32557         * modules/btowc (License): Relicense under LGPLv2+.
32558         * modules/mbsinit (License): Likewise.
32559         * modules/mbrtowc (License): Likewise.
32560         * modules/wcrtomb (License): Likewise.
32561         * modules/streq (License): Likewise.
32562         Reported by David Lutterkort <lutter@redhat.com>.
32563
32564 2008-12-23  Bruno Haible  <bruno@clisp.org>
32565
32566         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
32567
32568 2008-12-23  Bruno Haible  <bruno@clisp.org>
32569
32570         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
32571         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
32572         GETADDRINFO_LIB, not in LIBS.
32573         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
32574         * modules/canon-host (Link): Likewise.
32575         * NEWS: Mention the change.
32576         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
32577         GETADDRINFO_LIB.
32578
32579 2008-12-22  Bruno Haible  <bruno@clisp.org>
32580
32581         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
32582         * doc/posix-functions/iswalpha_l.texi: Likewise.
32583         * doc/posix-functions/iswblank_l.texi: Likewise.
32584         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32585         * doc/posix-functions/iswctype_l.texi: Likewise.
32586         * doc/posix-functions/iswdigit_l.texi: Likewise.
32587         * doc/posix-functions/iswgraph_l.texi: Likewise.
32588         * doc/posix-functions/iswlower_l.texi: Likewise.
32589         * doc/posix-functions/iswprint_l.texi: Likewise.
32590         * doc/posix-functions/iswpunct_l.texi: Likewise.
32591         * doc/posix-functions/iswspace_l.texi: Likewise.
32592         * doc/posix-functions/iswupper_l.texi: Likewise.
32593         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32594         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
32595         * doc/posix-functions/open_wmemstream.texi: Likewise.
32596         * doc/posix-functions/swscanf.texi: Likewise.
32597         * doc/posix-functions/towctrans_l.texi: Likewise.
32598         * doc/posix-functions/towlower.texi: Likewise.
32599         * doc/posix-functions/towlower_l.texi: Likewise.
32600         * doc/posix-functions/towupper.texi: Likewise.
32601         * doc/posix-functions/towupper_l.texi: Likewise.
32602         * doc/posix-functions/vfwprintf.texi: Likewise.
32603         * doc/posix-functions/vfwscanf.texi: Likewise.
32604         * doc/posix-functions/vswscanf.texi: Likewise.
32605         * doc/posix-functions/vwprintf.texi: Likewise.
32606         * doc/posix-functions/vwscanf.texi: Likewise.
32607         * doc/posix-functions/wcpcpy.texi: Likewise.
32608         * doc/posix-functions/wcpncpy.texi: Likewise.
32609         * doc/posix-functions/wcscasecmp.texi: Likewise.
32610         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
32611         * doc/posix-functions/wcscoll_l.texi: Likewise.
32612         * doc/posix-functions/wcsdup.texi: Likewise.
32613         * doc/posix-functions/wcsncasecmp.texi: Likewise.
32614         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
32615         * doc/posix-functions/wcsnlen.texi: Likewise.
32616         * doc/posix-functions/wcsnrtombs.texi: Likewise.
32617         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32618         * doc/posix-functions/wctrans_l.texi: Likewise.
32619         * doc/posix-functions/wctype_l.texi: Likewise.
32620         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
32621         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
32622         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
32623         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
32624         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
32625         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
32626         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
32627         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
32628         * doc/glibc-functions/wcschrnul.texi: Likewise.
32629         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32630         * doc/glibc-functions/wcstod_l.texi: Likewise.
32631         * doc/glibc-functions/wcstof_l.texi: Likewise.
32632         * doc/glibc-functions/wcstol_l.texi: Likewise.
32633         * doc/glibc-functions/wcstold_l.texi: Likewise.
32634         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32635         * doc/glibc-functions/wcstoq.texi: Likewise.
32636         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32637         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32638         * doc/glibc-functions/wcstouq.texi: Likewise.
32639         * doc/glibc-functions/wmempcpy.texi: Likewise.
32640
32641 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
32642             Eric Blake  <ebb9@byu.net>
32643             Paolo Bonzini  <bonzini@gnu.org>
32644             Bruno Haible  <bruno@clisp.org>
32645
32646         Make c-stack work on Haiku.
32647         * lib/c-stack.c (SA_ONSTACK): Define fallback.
32648         (c_stack_action): Use SA_ONSTACK flag.
32649
32650 2008-12-22  Bruno Haible  <bruno@clisp.org>
32651
32652         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
32653
32654 2008-12-22  Bruno Haible  <bruno@clisp.org>
32655
32656         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
32657         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
32658         being overridden.
32659         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
32660         New macros.
32661         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
32662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
32663         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
32664         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
32665
32666 2008-12-22  Bruno Haible  <bruno@clisp.org>
32667
32668         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
32669         from test code.
32670
32671 2008-12-22  Eric Blake  <ebb9@byu.net>
32672
32673         Avoid gcc warnings on cygwin.
32674         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
32675         Avoid unused variable.
32676         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
32677         Likewise.
32678
32679 2008-12-22  Bruno Haible  <bruno@clisp.org>
32680
32681         Remove HAVE_MBRTOWC conditionals.
32682         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
32683         (mbscasecmp): Assume mbrtowc function.
32684         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
32685         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
32686         * lib/mbschr.c: Include mbuiter.h unconditionally.
32687         (mbschr): Assume mbrtowc function.
32688         * lib/mbscspn.c: Include mbuiter.h unconditionally.
32689         (mbscspn): Assume mbrtowc function.
32690         * lib/mbslen.c: Include mbuiter.h unconditionally.
32691         (mbslen): Assume mbrtowc function.
32692         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
32693         (mbsncasecmp): Assume mbrtowc function.
32694         * lib/mbsnlen.c: Include mbiter.h unconditionally.
32695         (mbsnlen): Assume mbrtowc function.
32696         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
32697         (mbspbrk): Assume mbrtowc function.
32698         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
32699         (mbspcasecmp): Assume mbrtowc function.
32700         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
32701         (mbsrchr): Assume mbrtowc function.
32702         * lib/mbssep.c: Include mbuiter.h unconditionally.
32703         (mbssep): Assume mbrtowc function.
32704         * lib/mbsspn.c: Include mbuiter.h unconditionally.
32705         (mbsspn): Assume mbrtowc function.
32706         * lib/mbsstr.c: Include mbuiter.h unconditionally.
32707         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
32708         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
32709         (mbstok_r): Assume mbrtowc function.
32710         * lib/propername.c: Include mbuiter.h unconditionally.
32711         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
32712         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
32713         (trim2): Assume mbrtowc function.
32714         * lib/mbswidth.c (mbsinit): Remove fallback definition.
32715         (mbsnwidth): Assume mbrtowc function.
32716         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
32717         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
32718         fallback definitions.
32719         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
32720
32721 2008-12-22  Bruno Haible  <bruno@clisp.org>
32722
32723         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
32724
32725 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
32726
32727         * modules/regex: Request emulations for the mb*/wc* functions we need.
32728         * m4/regex.m4: Don't look for those functions here.
32729         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
32730
32731 2008-12-22  Bruno Haible  <bruno@clisp.org>
32732
32733         * modules/fnmatch (Depends-on): Remove duplicated dependency.
32734
32735 2008-12-21  Bruno Haible  <bruno@clisp.org>
32736
32737         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
32738         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
32739         (Include): Remove conditionalization.
32740         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
32741         (Include): Remove conditionalization.
32742         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
32743         (Include): Remove conditionalization.
32744         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
32745         * m4/mbfile.m4 (gl_MBFILE): Likewise.
32746         * NEWS: Mention the change.
32747         Reported by Alan Hourihane <alanh@fairlite.co.uk>
32748         via Sergey Poznyakoff <gray@gnu.org.ua>.
32749
32750 2008-12-21  Bruno Haible  <bruno@clisp.org>
32751
32752         * MODULES.html.sh (Extended multibyte and wide character utilities
32753         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
32754         wcrtomb, wcsrtombs.
32755         (Support for systems lacking POSIX:2008): Add accept, bind, close,
32756         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
32757         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
32758         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
32759
32760 2008-12-21  Bruno Haible  <bruno@clisp.org>
32761
32762         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
32763
32764 2008-12-21  Bruno Haible  <bruno@clisp.org>
32765
32766         * modules/wcsnrtombs-tests: New file.
32767         * tests/test-wcsnrtombs1.sh: New file.
32768         * tests/test-wcsnrtombs2.sh: New file.
32769         * tests/test-wcsnrtombs3.sh: New file.
32770         * tests/test-wcsnrtombs4.sh: New file.
32771         * tests/test-wcsnrtombs.c: New file.
32772
32773         New module 'wcsnrtombs'.
32774         * lib/wchar.in.h (wcsnrtombs): New declaration.
32775         * lib/wcsnrtombs.c: New file.
32776         * lib/wcsrtombs-state.c: New file.
32777         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
32778         (internal_state): Remove variable.
32779         * m4/wcsnrtombs.m4: New file.
32780         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
32781         compilation units.
32782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
32783         HAVE_WCSNRTOMBS.
32784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
32785         HAVE_WCSNRTOMBS.
32786         * modules/wcsnrtombs: New file.
32787         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
32788         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
32789
32790 2008-12-21  Bruno Haible  <bruno@clisp.org>
32791
32792         * modules/wcsrtombs-tests: New file.
32793         * tests/test-wcsrtombs1.sh: New file.
32794         * tests/test-wcsrtombs2.sh: New file.
32795         * tests/test-wcsrtombs3.sh: New file.
32796         * tests/test-wcsrtombs4.sh: New file.
32797         * tests/test-wcsrtombs.c: New file.
32798
32799         New module 'wcsrtombs'.
32800         * lib/wchar.in.h (wcsrtombs): New declaration.
32801         * lib/wcsrtombs.c: New file.
32802         * m4/wcsrtombs.m4: New file.
32803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
32804         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32805         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
32806         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
32807         * modules/wcsrtombs: New file.
32808         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
32809         bugs.
32810
32811 2008-12-21  Bruno Haible  <bruno@clisp.org>
32812
32813         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
32814         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
32815         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
32816         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
32817         if not correct.
32818         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
32819         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
32820         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32821         m4/locale-zh.m4, m4/codeset.m4.
32822         * doc/posix-functions/wcrtomb.texi: Document the bug.
32823
32824 2008-12-21  Bruno Haible  <bruno@clisp.org>
32825
32826         Work around a btowc() bug on IRIX 6.5.
32827         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
32828         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
32829         REPLACE_WTOBC if not.
32830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
32831         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
32832         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
32833
32834 2008-12-21  Bruno Haible  <bruno@clisp.org>
32835
32836         * modules/wcrtomb-tests: New file.
32837         * tests/test-wcrtomb.sh: New file.
32838         * tests/test-wcrtomb.c: New file.
32839
32840         New module 'wcrtomb'.
32841         * lib/wchar.in.h (wcrtomb): New declaration.
32842         * lib/wcrtomb.c: New file.
32843         * m4/wcrtomb.m4: New file.
32844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
32845         HAVE_WCRTOMB.
32846         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
32847         HAVE_WCRTOMB.
32848         * modules/wcrtomb: New file.
32849         * doc/posix-functions/wcrtomb.texi: Mention the new module.
32850
32851 2008-12-21  Bruno Haible  <bruno@clisp.org>
32852
32853         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
32854         * modules/mbsrtowcs (Files): Likewise.
32855         * modules/wctob (Files): Likewise.
32856         * modules/c-strcase-tests (Files): Likewise.
32857         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32858         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32859         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32860         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32861         * modules/vasnprintf-posix-tests (Files): Likewise.
32862
32863 2008-12-21  William Pursell  <bill.pursell@gmail.com>
32864
32865         gitlog-to-changelog: pass all command-line arguments to git-log
32866         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
32867         it is sometimes convenient to filter the commits in various ways.
32868         gitlog-to-changelog only allows --since to specify a start date,
32869         but git-log itself supports many other filtering mechanisms.
32870         At the moment, I want to filter by branch name.  Rather than
32871         adding a --branch option to gitlog-to-changelog, it seems more
32872         flexible to simply pass all options directly to git-log and let
32873         git do the work.  Notice that this effectively makes --since a
32874         redundant option for gitlog-to-changelog, but removing it would
32875         require current usage to change since calls would then require
32876         an additional '--'.
32877
32878 2008-12-21  Bruno Haible  <bruno@clisp.org>
32879
32880         * modules/mbsnrtowcs-tests: New file.
32881         * tests/test-mbsnrtowcs1.sh: New file.
32882         * tests/test-mbsnrtowcs2.sh: New file.
32883         * tests/test-mbsnrtowcs3.sh: New file.
32884         * tests/test-mbsnrtowcs4.sh: New file.
32885         * tests/test-mbsnrtowcs.c: New file.
32886
32887         New module 'mbsnrtowcs'.
32888         * lib/wchar.in.h (mbsnrtowcs): New declaration.
32889         * lib/mbsnrtowcs.c: New file.
32890         * lib/mbsrtowcs-state.c: New file.
32891         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
32892         (internal_state): Remove variable.
32893         * m4/mbsnrtowcs.m4: New file.
32894         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
32895         compilation units.
32896         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
32897         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32898         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
32899         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
32900         * modules/mbsnrtowcs: New file.
32901         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
32902         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
32903         portability problem.
32904
32905 2008-12-21  Bruno Haible  <bruno@clisp.org>
32906
32907         Work around mbsrtowcs bug.
32908         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
32909         (gl_FUNC_MBSRTOWCS): Invoke it.
32910         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
32911         m4/locale-zh.m4.
32912         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
32913
32914 2008-12-21  Bruno Haible  <bruno@clisp.org>
32915
32916         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
32917
32918 2008-12-21  Bruno Haible  <bruno@clisp.org>
32919
32920         Update doc for AIX.
32921         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
32922         16-bit wchar_t type.
32923         * doc/posix-functions/btowc.texi: Likewise.
32924         * doc/posix-functions/fgetwc.texi: Likewise.
32925         * doc/posix-functions/fgetws.texi: Likewise.
32926         * doc/posix-functions/fputwc.texi: Likewise.
32927         * doc/posix-functions/fputws.texi: Likewise.
32928         * doc/posix-functions/fwide.texi: Likewise.
32929         * doc/posix-functions/fwprintf.texi: Likewise.
32930         * doc/posix-functions/fwscanf.texi: Likewise.
32931         * doc/posix-functions/getwchar.texi: Likewise.
32932         * doc/posix-functions/getwc.texi: Likewise.
32933         * doc/posix-functions/iswalnum.texi: Likewise.
32934         * doc/posix-functions/iswalpha.texi: Likewise.
32935         * doc/posix-functions/iswblank.texi: Likewise.
32936         * doc/posix-functions/iswcntrl.texi: Likewise.
32937         * doc/posix-functions/iswctype.texi: Likewise.
32938         * doc/posix-functions/iswdigit.texi: Likewise.
32939         * doc/posix-functions/iswgraph.texi: Likewise.
32940         * doc/posix-functions/iswlower.texi: Likewise.
32941         * doc/posix-functions/iswprint.texi: Likewise.
32942         * doc/posix-functions/iswpunct.texi: Likewise.
32943         * doc/posix-functions/iswspace.texi: Likewise.
32944         * doc/posix-functions/iswupper.texi: Likewise.
32945         * doc/posix-functions/iswxdigit.texi: Likewise.
32946         * doc/posix-functions/mbrtowc.texi: Likewise.
32947         * doc/posix-functions/mbsrtowcs.texi: Likewise.
32948         * doc/posix-functions/mbstowcs.texi: Likewise.
32949         * doc/posix-functions/mbtowc.texi: Likewise.
32950         * doc/posix-functions/putwchar.texi: Likewise.
32951         * doc/posix-functions/putwc.texi: Likewise.
32952         * doc/posix-functions/swprintf.texi: Likewise.
32953         * doc/posix-functions/tolower.texi: Likewise.
32954         * doc/posix-functions/toupper.texi: Likewise.
32955         * doc/posix-functions/towctrans.texi: Likewise.
32956         * doc/posix-functions/ungetwc.texi: Likewise.
32957         * doc/posix-functions/vswprintf.texi: Likewise.
32958         * doc/posix-functions/wcrtomb.texi: Likewise.
32959         * doc/posix-functions/wcscat.texi: Likewise.
32960         * doc/posix-functions/wcschr.texi: Likewise.
32961         * doc/posix-functions/wcscmp.texi: Likewise.
32962         * doc/posix-functions/wcscoll.texi: Likewise.
32963         * doc/posix-functions/wcscpy.texi: Likewise.
32964         * doc/posix-functions/wcscspn.texi: Likewise.
32965         * doc/posix-functions/wcsftime.texi: Likewise.
32966         * doc/posix-functions/wcslen.texi: Likewise.
32967         * doc/posix-functions/wcsncat.texi: Likewise.
32968         * doc/posix-functions/wcsncmp.texi: Likewise.
32969         * doc/posix-functions/wcsncpy.texi: Likewise.
32970         * doc/posix-functions/wcspbrk.texi: Likewise.
32971         * doc/posix-functions/wcsrchr.texi: Likewise.
32972         * doc/posix-functions/wcsrtombs.texi: Likewise.
32973         * doc/posix-functions/wcsspn.texi: Likewise.
32974         * doc/posix-functions/wcsstr.texi: Likewise.
32975         * doc/posix-functions/wcstod.texi: Likewise.
32976         * doc/posix-functions/wcstof.texi: Likewise.
32977         * doc/posix-functions/wcstoimax.texi: Likewise.
32978         * doc/posix-functions/wcstok.texi: Likewise.
32979         * doc/posix-functions/wcstold.texi: Likewise.
32980         * doc/posix-functions/wcstoll.texi: Likewise.
32981         * doc/posix-functions/wcstol.texi: Likewise.
32982         * doc/posix-functions/wcstombs.texi: Likewise.
32983         * doc/posix-functions/wcstoull.texi: Likewise.
32984         * doc/posix-functions/wcstoul.texi: Likewise.
32985         * doc/posix-functions/wcstoumax.texi: Likewise.
32986         * doc/posix-functions/wcswidth.texi: Likewise.
32987         * doc/posix-functions/wcsxfrm.texi: Likewise.
32988         * doc/posix-functions/wctob.texi: Likewise.
32989         * doc/posix-functions/wctomb.texi: Likewise.
32990         * doc/posix-functions/wctrans.texi: Likewise.
32991         * doc/posix-functions/wctype.texi: Likewise.
32992         * doc/posix-functions/wcwidth.texi: Likewise.
32993         * doc/posix-functions/wmemchr.texi: Likewise.
32994         * doc/posix-functions/wmemcmp.texi: Likewise.
32995         * doc/posix-functions/wmemcpy.texi: Likewise.
32996         * doc/posix-functions/wmemmove.texi: Likewise.
32997         * doc/posix-functions/wmemset.texi: Likewise.
32998         * doc/posix-functions/wprintf.texi: Likewise.
32999         * doc/posix-functions/wscanf.texi: Likewise.
33000
33001 2008-12-21  Bruno Haible  <bruno@clisp.org>
33002
33003         Update doc for HP-UX 11.11.
33004         * doc/posix-functions/btowc.texi: Clarify that the function is missing
33005         in HP-UX version 11.00, not in all versions of HP-UX 11.
33006         * doc/posix-functions/fwide.texi: Likewise.
33007         * doc/posix-functions/fwprintf.texi: Likewise.
33008         * doc/posix-functions/fwscanf.texi: Likewise.
33009         * doc/posix-functions/inet_ntop.texi: Likewise.
33010         * doc/posix-functions/inet_pton.texi: Likewise.
33011         * doc/posix-functions/mbrlen.texi: Likewise.
33012         * doc/posix-functions/mbrtowc.texi: Likewise.
33013         * doc/posix-functions/mbsinit.texi: Likewise.
33014         * doc/posix-functions/mbsrtowcs.texi: Likewise.
33015         * doc/posix-functions/swprintf.texi: Likewise.
33016         * doc/posix-functions/swscanf.texi: Likewise.
33017         * doc/posix-functions/towctrans.texi: Likewise.
33018         * doc/posix-functions/vfwprintf.texi: Likewise.
33019         * doc/posix-functions/vswprintf.texi: Likewise.
33020         * doc/posix-functions/vwprintf.texi: Likewise.
33021         * doc/posix-functions/wcrtomb.texi: Likewise.
33022         * doc/posix-functions/wcsrtombs.texi: Likewise.
33023         * doc/posix-functions/wcsstr.texi: Likewise.
33024         * doc/posix-functions/wctob.texi: Likewise.
33025         * doc/posix-functions/wctrans.texi: Likewise.
33026         * doc/posix-functions/wmemchr.texi: Likewise.
33027         * doc/posix-functions/wmemcmp.texi: Likewise.
33028         * doc/posix-functions/wmemcpy.texi: Likewise.
33029         * doc/posix-functions/wmemmove.texi: Likewise.
33030         * doc/posix-functions/wmemset.texi: Likewise.
33031         * doc/posix-functions/wprintf.texi: Likewise.
33032         * doc/posix-functions/wscanf.texi: Likewise.
33033
33034 2008-12-21  Bruno Haible  <bruno@clisp.org>
33035
33036         Work around a portability problem.
33037         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
33038         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
33039
33040 2008-12-20  Bruno Haible  <bruno@clisp.org>
33041
33042         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
33043         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
33044         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
33045         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
33046         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
33047
33048         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
33049         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
33050         set.
33051         (GNULIB_defined_mbstate_t): New macro.
33052         (mbsinit): Redefine if REPLACE_MBSINIT is set.
33053         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
33054         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
33055         reuses the system's mbrtowc function but works around the bugs.
33056         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
33057         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
33058         macros.
33059         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
33060         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
33061         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
33062         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
33063         REPLACE_MBSINIT if mbsinit needs to be overridden.
33064         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
33065         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33066         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
33067         REPLACE_MBSINIT, REPLACE_MBRTOWC.
33068         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
33069         m4/locale-zh.m4.
33070         (Depends): Add mbsinit.
33071         * modules/mbsinit (Depends): Add mbrtowc.
33072         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
33073
33074 2008-12-20  Bruno Haible  <bruno@clisp.org>
33075
33076         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
33077         so that there are no conversion errors on AIX.
33078         * tests/test-mbsrtowcs.c (main): LIkewise.
33079
33080 2008-12-20  Bruno Haible  <bruno@clisp.org>
33081
33082         Work around wctob bug on Solaris <= 9.
33083         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
33084         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
33085         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
33086         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
33087         * modules/wctob (Files): Add m4/locale-fr.m4.
33088         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
33089
33090 2008-12-20  Bruno Haible  <bruno@clisp.org>
33091
33092         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
33093         /dev/null.
33094         * tests/test-select-in.sh: Likewise.
33095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33096
33097 2008-12-20  Bruno Haible  <bruno@clisp.org>
33098
33099         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
33100         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
33101         Cygwin 1.5.x.
33102
33103 2008-12-20  Bruno Haible  <bruno@clisp.org>
33104
33105         Ensure mbstate_t is defined on HP-UX 11.11.
33106         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
33107         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
33108         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
33109         AC_USE_SYSTEM_EXTENSIONS.
33110         * modules/fnmatch (Depends-on): Add extensions.
33111         * modules/mbrlen (Depends-on): Likewise.
33112         * modules/mbrtowc (Depends-on): Likewise.
33113         * modules/mbsinit (Depends-on): Likewise.
33114         * modules/mbsrtowcs (Depends-on): Likewise.
33115         * modules/mbswidth (Depends-on): Likewise.
33116         * modules/quotearg (Depends-on): Likewise.
33117         * modules/strftime (Depends-on): Likewise.
33118
33119 2008-12-20  Bruno Haible  <bruno@clisp.org>
33120
33121         Ensure wctob is declared on IRIX 6.5.
33122         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
33123         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
33124         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
33125         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
33126         of HAVE_WCTOB.
33127         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
33128         HAVE_WCTOB.
33129         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
33130
33131 2008-12-19  Bruno Haible  <bruno@clisp.org>
33132
33133         * modules/mbsrtowcs-tests: New file.
33134         * tests/test-mbsrtowcs1.sh: New file.
33135         * tests/test-mbsrtowcs2.sh: New file.
33136         * tests/test-mbsrtowcs3.sh: New file.
33137         * tests/test-mbsrtowcs4.sh: New file.
33138         * tests/test-mbsrtowcs.c: New file.
33139
33140         New module 'mbsrtowcs'.
33141         * lib/wchar.in.h (mbsrtowcs): New declaration.
33142         * lib/mbsrtowcs.c: New file.
33143         * m4/mbsrtowcs.m4: New file.
33144         * modules/mbsrtowcs: New file.
33145         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
33146         HAVE_MBSRTOWCS.
33147         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
33148         HAVE_MBSRTOWCS.
33149         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
33150
33151 2008-12-19  Bruno Haible  <bruno@clisp.org>
33152
33153         New module 'mbrlen'.
33154         * lib/wchar.in.h (mbrlen): New declaration.
33155         * lib/mbrlen.c: New file.
33156         * m4/mbrlen.m4: New file.
33157         * modules/mbrlen: New file.
33158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
33159         HAVE_MBRLEN.
33160         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
33161         HAVE_MBRLEN.
33162         * doc/posix-functions/mbrlen.texi: Document the new module.
33163
33164 2008-12-19  Bruno Haible  <bruno@clisp.org>
33165
33166         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
33167         * modules/mbrtowc (Depends-on): Add verify.
33168         Suggested by Paul Eggert.
33169
33170 2008-12-18  Bruno Haible  <bruno@clisp.org>
33171
33172         * modules/mbsinit-tests: New file.
33173         * tests/test-mbsinit.sh: New file.
33174         * tests/test-mbsinit.c: New file.
33175
33176 2008-12-18  Bruno Haible  <bruno@clisp.org>
33177
33178         * modules/mbrtowc-tests: New file.
33179         * tests/test-mbrtowc1.sh: New file.
33180         * tests/test-mbrtowc2.sh: New file.
33181         * tests/test-mbrtowc3.sh: New file.
33182         * tests/test-mbrtowc4.sh: New file.
33183         * tests/test-mbrtowc.c: New file.
33184
33185         New module 'mbrtowc'.
33186         * lib/wchar.in.h (mbstate_t): Override when the system does not have
33187         mbsinit and mbrtowc.
33188         (mbrtowc): New declaration.
33189         * lib/mbrtowc.c: New file.
33190         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
33191         * modules/mbrtowc: New file.
33192         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
33193         HAVE_MBRTOWC.
33194         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
33195         HAVE_MBRTOWC.
33196         * doc/posix-functions/mbrtowc.texi: Document the new module.
33197
33198 2008-12-18  Bruno Haible  <bruno@clisp.org>
33199
33200         New module 'wctob'.
33201         * lib/wchar.in.h (wctob): New declaration.
33202         * lib/wctob.c: New file.
33203         * m4/wctob.m4: New file.
33204         * modules/wctob: New file.
33205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
33206         HAVE_WCTOB.
33207         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
33208         * doc/posix-functions/wctob.texi: Document the new module.
33209
33210 2008-12-18  Bruno Haible  <bruno@clisp.org>
33211
33212         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
33213         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
33214
33215 2008-12-18  Simon Josefsson  <simon@josefsson.org>
33216
33217         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
33218         G. Christensen" <tgc@jupiterrise.com>.
33219
33220         * lib/flock.c: Need to include errno.h.  Reported by "Tom
33221         G. Christensen" <tgc@jupiterrise.com>.
33222
33223         * lib/flock.c: Need to include string.h.  Reported by "Tom
33224         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
33225         <ebb9@byu.net>.
33226
33227 2008-12-18  Bruno Haible  <bruno@clisp.org>
33228
33229         * m4/locale-ja.m4: New file, from GNU gettext.
33230
33231 2008-12-17  Bruno Haible  <bruno@clisp.org>
33232
33233         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
33234         Suggested by Eric Blake.
33235
33236 2008-12-17  Bruno Haible  <bruno@clisp.org>
33237
33238         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
33239
33240 2008-12-17  Bruno Haible  <bruno@clisp.org>
33241
33242         * lib/mbsinit.c: Include verify.h. Verify an assumption.
33243         * modules/mbsinit (Depends-on): Add verify.
33244         Suggested by Paul Eggert.
33245
33246 2008-12-17  Bruno Haible  <bruno@clisp.org>
33247
33248         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
33249         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
33250         gl_FUNC_MBRTOWC.
33251         * m4/mbiter.m4 (gl_MBITER): LIkewise.
33252         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
33253         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
33254         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
33255         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
33256         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
33257         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
33258         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
33259         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
33260         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
33261         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
33262         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
33263         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
33264         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
33265         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
33266         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33267         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
33268         * modules/trim (configure.ac): Likewise.
33269
33270 2008-12-17  Bruno Haible  <bruno@clisp.org>
33271
33272         * modules/btowc-tests: New file.
33273         * tests/test-btowc1.sh: New file.
33274         * tests/test-btowc2.sh: New file.
33275         * tests/test-btowc.c: New file.
33276
33277         New module 'btowc'.
33278         * lib/wchar.in.h (btowc): New declaration.
33279         * lib/btowc.c: New file.
33280         * m4/btowc.m4: New file.
33281         * modules/btowc: New file.
33282         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
33283         HAVE_BTOWC.
33284         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
33285         * doc/posix-functions/btowc.texi: Document the new module.
33286
33287 2008-12-17  Bruno Haible  <bruno@clisp.org>
33288
33289         New module 'mbsinit'.
33290         * lib/wchar.in.h (mbsinit): New declaration.
33291         * lib/mbsinit.c: New file.
33292         * m4/mbsinit.m4: New file.
33293         * modules/mbsinit: New file.
33294         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
33295         HAVE_MBSINIT.
33296         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
33297         HAVE_MBSINIT.
33298         * doc/posix-functions/mbsinit.texi: Document the new module.
33299
33300 2008-12-16  Bruno Haible  <bruno@clisp.org>
33301
33302         * lib/unistd.in.h: Add comment.
33303         * tests/test-environ.c: Don't include <stdlib.h>.
33304
33305 2008-12-16  Bruno Haible  <bruno@clisp.org>
33306
33307         * lib/parse-duration.h (parse_duration): Document return value
33308         convention.
33309         * lib/parse-duration.c: Include specification header first. Add
33310         comments.
33311         (_): Remove macro.
33312         (parse_year_month_day, parse_hour_minute_second): Move side effects
33313         outside of strchr call.
33314         (parse_non_iso8601): Move side effects outside of isspace call.
33315         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
33316         call.
33317
33318 2008-12-16  Bruno Haible  <bruno@clisp.org>
33319
33320         * tests/test-parse-duration.sh: Produce no output when the test
33321         succeeds.
33322
33323 2008-12-16  Bruno Haible  <bruno@clisp.org>
33324
33325         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
33326         expressions.
33327
33328 2008-12-15  Bruno Haible  <bruno@clisp.org>
33329
33330         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
33331         * doc/glibc-functions/flistxattr.texi: Likewise.
33332         * doc/glibc-functions/fopencookie.texi: Likewise.
33333         * doc/glibc-functions/fremovexattr.texi: Likewise.
33334         * doc/glibc-functions/fsetxattr.texi: Likewise.
33335         * doc/glibc-functions/getxattr.texi: Likewise.
33336         * doc/glibc-functions/lgetxattr.texi: Likewise.
33337         * doc/glibc-functions/listxattr.texi: Likewise.
33338         * doc/glibc-functions/llistxattr.texi: Likewise.
33339         * doc/glibc-functions/lremovexattr.texi: Likewise.
33340         * doc/glibc-functions/lsetxattr.texi: Likewise.
33341         * doc/glibc-functions/removexattr.texi: Likewise.
33342         * doc/glibc-functions/setxattr.texi: Likewise.
33343         * doc/posix-functions/open_memstream.texi: Likewise.
33344
33345 2008-12-15  Eric Blake  <ebb9@byu.net>
33346
33347         Update doc for cygwin 1.7.
33348         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
33349         functions.
33350         * doc/posix-functions/fchmodat.texi: Likewise.
33351         * doc/posix-functions/fchownat.texi: Likewise.
33352         * doc/posix-functions/fdopendir.texi: Likewise.
33353         * doc/posix-functions/fmemopen.texi: Likewise.
33354         * doc/posix-functions/freeaddrinfo.texi: Likewise.
33355         * doc/posix-functions/fstatat.texi: Likewise.
33356         * doc/posix-functions/futimens.texi: Likewise.
33357         * doc/posix-functions/gai_strerror.texi: Likewise.
33358         * doc/posix-functions/getaddrinfo.texi: Likewise.
33359         * doc/posix-functions/getnameinfo.texi: Likewise.
33360         * doc/posix-functions/if_freenameindex.texi: Likewise.
33361         * doc/posix-functions/if_indextoname.texi: Likewise.
33362         * doc/posix-functions/if_nameindex.texi: Likewise.
33363         * doc/posix-functions/if_nametoindex.texi: Likewise.
33364         * doc/posix-functions/insque.texi: Likewise.
33365         * doc/posix-functions/linkat.texi: Likewise.
33366         * doc/posix-functions/llrint.texi: Likewise.
33367         * doc/posix-functions/llrintf.texi: Likewise.
33368         * doc/posix-functions/llrintl.texi: Likewise.
33369         * doc/posix-functions/lockf.texi: Likewise.
33370         * doc/posix-functions/lrintl.texi: Likewise.
33371         * doc/posix-functions/mkdirat.texi: Likewise.
33372         * doc/posix-functions/mkfifoat.texi: Likewise.
33373         * doc/posix-functions/mknodat.texi: Likewise.
33374         * doc/posix-functions/mq_close.texi: Likewise.
33375         * doc/posix-functions/mq_getattr.texi: Likewise.
33376         * doc/posix-functions/mq_notify.texi: Likewise.
33377         * doc/posix-functions/mq_open.texi: Likewise.
33378         * doc/posix-functions/mq_receive.texi: Likewise.
33379         * doc/posix-functions/mq_send.texi: Likewise.
33380         * doc/posix-functions/mq_setattr.texi: Likewise.
33381         * doc/posix-functions/mq_timedreceive.texi: Likewise.
33382         * doc/posix-functions/mq_timedsend.texi: Likewise.
33383         * doc/posix-functions/mq_unlink.texi: Likewise.
33384         * doc/posix-functions/open_memstream.texi: Likewise.
33385         * doc/posix-functions/openat.texi: Likewise.
33386         * doc/posix-functions/posix_fadvise.texi: Likewise.
33387         * doc/posix-functions/posix_fallocate.texi: Likewise.
33388         * doc/posix-functions/posix_madvise.texi: Likewise.
33389         * doc/posix-functions/posix_memalign.texi: Likewise.
33390         * doc/posix-functions/posix_openpt.texi: Likewise.
33391         * doc/posix-functions/readlinkat.texi: Likewise.
33392         * doc/posix-functions/remque.texi: Likewise.
33393         * doc/posix-functions/renameat.texi: Likewise.
33394         * doc/posix-functions/rintl.texi: Likewise.
33395         * doc/posix-functions/sem_unlink.texi: Likewise.
33396         * doc/posix-functions/shm_open.texi: Likewise.
33397         * doc/posix-functions/shm_unlink.texi: Likewise.
33398         * doc/posix-functions/signgam.texi: Likewise.
33399         * doc/posix-functions/sigset.texi: Likewise.
33400         * doc/posix-functions/stpcpy.texi: Likewise.
33401         * doc/posix-functions/stpncpy.texi: Likewise.
33402         * doc/posix-functions/strerror.texi: Likewise.
33403         * doc/posix-functions/strtod.texi: Likewise.
33404         * doc/posix-functions/symlinkat.texi: Likewise.
33405         * doc/posix-functions/unlinkat.texi: Likewise.
33406         * doc/posix-functions/utimensat.texi: Likewise.
33407         * doc/glibc-functions/bindresvport.texi: Likewise.
33408         * doc/glibc-functions/dn_expand.texi: Likewise.
33409         * doc/glibc-functions/exp10.texi: Likewise.
33410         * doc/glibc-functions/exp10f.texi: Likewise.
33411         * doc/glibc-functions/fgetxattr.texi: Likewise.
33412         * doc/glibc-functions/flistxattr.texi: Likewise.
33413         * doc/glibc-functions/fopencookie.texi: Likewise.
33414         * doc/glibc-functions/freeifaddrs.texi: Likewise.
33415         * doc/glibc-functions/fremovexattr.texi: Likewise.
33416         * doc/glibc-functions/fsetxattr.texi: Likewise.
33417         * doc/glibc-functions/getifaddrs.texi: Likewise.
33418         * doc/glibc-functions/getxattr.texi: Likewise.
33419         * doc/glibc-functions/lgetxattr.texi: Likewise.
33420         * doc/glibc-functions/listxattr.texi: Likewise.
33421         * doc/glibc-functions/llistxattr.texi: Likewise.
33422         * doc/glibc-functions/lremovexattr.texi: Likewise.
33423         * doc/glibc-functions/lsetxattr.texi: Likewise.
33424         * doc/glibc-functions/pow10.texi: Likewise.
33425         * doc/glibc-functions/pow10f.texi: Likewise.
33426         * doc/glibc-functions/rcmd_af.texi: Likewise.
33427         * doc/glibc-functions/removexattr.texi: Likewise.
33428         * doc/glibc-functions/res_init.texi: Likewise.
33429         * doc/glibc-functions/res_mkquery.texi: Likewise.
33430         * doc/glibc-functions/res_query.texi: Likewise.
33431         * doc/glibc-functions/res_querydomain.texi: Likewise.
33432         * doc/glibc-functions/res_send.texi: Likewise.
33433         * doc/glibc-functions/rresvport_af.texi: Likewise.
33434         * doc/glibc-functions/setxattr.texi: Likewise.
33435         * doc/glibc-functions/strcasestr.texi: Likewise.
33436
33437 2008-12-15  Bruno Haible  <bruno@clisp.org>
33438
33439         Fix compilation error on OSF/1 4.0.
33440         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
33441         <sys/time.h>, simply delegate to the system header.
33442         Reported by Daniel Richard G. <oss@teragram.com>.
33443
33444 2008-12-15  Bruno Haible  <bruno@clisp.org>
33445
33446         * doc/posix-functions/openat.texi: Mention the 'openat' module.
33447         * doc/posix-functions/fchmodat.texi: Likewise.
33448         * doc/posix-functions/fchownat.texi: Likewise.
33449         * doc/posix-functions/fdopendir.texi: Likewise.
33450         * doc/posix-functions/fstatat.texi: Likewise.
33451         * doc/posix-functions/mkdirat.texi: Likewise.
33452         * doc/posix-functions/unlinkat.texi: Likewise.
33453
33454 2008-12-14  Bruno Haible  <bruno@clisp.org>
33455
33456         Update doc for POSIX:2008.
33457         * doc/posix-functions/faccessat.texi: New file.
33458         * doc/posix-functions/fchmodat.texi: New file.
33459         * doc/posix-functions/fchownat.texi: New file.
33460         * doc/posix-functions/fdopendir.texi: New file.
33461         * doc/posix-functions/fstatat.texi: New file.
33462         * doc/posix-functions/futimens.texi: New file.
33463         * doc/posix-functions/linkat.texi: New file.
33464         * doc/posix-functions/mkdirat.texi: New file.
33465         * doc/posix-functions/mkfifoat.texi: New file.
33466         * doc/posix-functions/mknodat.texi: New file.
33467         * doc/posix-functions/open_wmemstream.texi: New file.
33468         * doc/posix-functions/openat.texi: New file.
33469         * doc/posix-functions/psiginfo.texi: New file.
33470         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
33471         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
33472         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
33473         * doc/posix-functions/readlinkat.texi: New file.
33474         * doc/posix-functions/renameat.texi: New file.
33475         * doc/posix-functions/strerror_l.texi: New file.
33476         * doc/posix-functions/symlinkat.texi: New file.
33477         * doc/posix-functions/unlinkat.texi: New file.
33478         * doc/posix-functions/utimensat.texi: New file.
33479         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33480
33481 2008-12-14  Bruno Haible  <bruno@clisp.org>
33482
33483         Update doc for POSIX:2008.
33484         * doc/posix-functions/alphasort.texi: Renamed from
33485         doc/glibc-functions/alphasort.texi.
33486         * doc/posix-functions/dirfd.texi: Renamed from
33487         doc/glibc-functions/dirfd.texi.
33488         * doc/posix-functions/dprintf.texi: Renamed from
33489         doc/glibc-functions/dprintf.texi.
33490         * doc/posix-functions/duplocale.texi: Renamed from
33491         doc/glibc-functions/duplocale.texi.
33492         * doc/posix-functions/fexecve.texi: Renamed from
33493         doc/glibc-functions/fexecve.texi.
33494         * doc/posix-functions/fmemopen.texi: Renamed from
33495         doc/glibc-functions/fmemopen.texi.
33496         * doc/posix-functions/freelocale.texi: Renamed from
33497         doc/glibc-functions/freelocale.texi.
33498         * doc/posix-functions/getdate_err.texi: Renamed from
33499         doc/glibc-functions/getdate_err.texi.
33500         * doc/posix-functions/isalnum_l.texi: Renamed from
33501         doc/glibc-functions/isalnum_l.texi.
33502         * doc/posix-functions/isalpha_l.texi: Renamed from
33503         doc/glibc-functions/isalpha_l.texi.
33504         * doc/posix-functions/isblank_l.texi: Renamed from
33505         doc/glibc-functions/isblank_l.texi.
33506         * doc/posix-functions/iscntrl_l.texi: Renamed from
33507         doc/glibc-functions/iscntrl_l.texi.
33508         * doc/posix-functions/isdigit_l.texi: Renamed from
33509         doc/glibc-functions/isdigit_l.texi.
33510         * doc/posix-functions/isgraph_l.texi: Renamed from
33511         doc/glibc-functions/isgraph_l.texi.
33512         * doc/posix-functions/islower_l.texi: Renamed from
33513         doc/glibc-functions/islower_l.texi.
33514         * doc/posix-functions/isprint_l.texi: Renamed from
33515         doc/glibc-functions/isprint_l.texi.
33516         * doc/posix-functions/ispunct_l.texi: Renamed from
33517         doc/glibc-functions/ispunct_l.texi.
33518         * doc/posix-functions/isspace_l.texi: Renamed from
33519         doc/glibc-functions/isspace_l.texi.
33520         * doc/posix-functions/isupper_l.texi: Renamed from
33521         doc/glibc-functions/isupper_l.texi.
33522         * doc/posix-functions/iswalnum_l.texi: Renamed from
33523         doc/glibc-functions/iswalnum_l.texi.
33524         * doc/posix-functions/iswalpha_l.texi: Renamed from
33525         doc/glibc-functions/iswalpha_l.texi.
33526         * doc/posix-functions/iswblank_l.texi: Renamed from
33527         doc/glibc-functions/iswblank_l.texi.
33528         * doc/posix-functions/iswcntrl_l.texi: Renamed from
33529         doc/glibc-functions/iswcntrl_l.texi.
33530         * doc/posix-functions/iswctype_l.texi: Renamed from
33531         doc/glibc-functions/iswctype_l.texi.
33532         * doc/posix-functions/iswdigit_l.texi: Renamed from
33533         doc/glibc-functions/iswdigit_l.texi.
33534         * doc/posix-functions/iswgraph_l.texi: Renamed from
33535         doc/glibc-functions/iswgraph_l.texi.
33536         * doc/posix-functions/iswlower_l.texi: Renamed from
33537         doc/glibc-functions/iswlower_l.texi.
33538         * doc/posix-functions/iswprint_l.texi: Renamed from
33539         doc/glibc-functions/iswprint_l.texi.
33540         * doc/posix-functions/iswpunct_l.texi: Renamed from
33541         doc/glibc-functions/iswpunct_l.texi.
33542         * doc/posix-functions/iswspace_l.texi: Renamed from
33543         doc/glibc-functions/iswspace_l.texi.
33544         * doc/posix-functions/iswupper_l.texi: Renamed from
33545         doc/glibc-functions/iswupper_l.texi.
33546         * doc/posix-functions/iswxdigit_l.texi: Renamed from
33547         doc/glibc-functions/iswxdigit_l.texi.
33548         * doc/posix-functions/isxdigit_l.texi: Renamed from
33549         doc/glibc-functions/isxdigit_l.texi.
33550         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
33551         doc/glibc-functions/mbsnrtowcs.texi.
33552         * doc/posix-functions/mkdtemp.texi: Renamed from
33553         doc/glibc-functions/mkdtemp.texi.
33554         * doc/posix-functions/newlocale.texi: Renamed from
33555         doc/glibc-functions/newlocale.texi.
33556         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
33557         doc/glibc-functions/nl_langinfo_l.texi.
33558         * doc/posix-functions/open_memstream.texi: Renamed from
33559         doc/glibc-functions/open_memstream.texi.
33560         * doc/posix-functions/opterr.texi: Renamed from
33561         doc/glibc-functions/opterr.texi.
33562         * doc/posix-functions/optind.texi: Renamed from
33563         doc/glibc-functions/optind.texi.
33564         * doc/posix-functions/optopt.texi: Renamed from
33565         doc/glibc-functions/optopt.texi.
33566         * doc/posix-functions/psignal.texi: Renamed from
33567         doc/glibc-functions/psignal.texi.
33568         * doc/posix-functions/scandir.texi: Renamed from
33569         doc/glibc-functions/scandir.texi.
33570         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
33571         doc/glibc-functions/sched_get_priority_min.texi.
33572         * doc/posix-functions/signgam.texi: Renamed from
33573         doc/glibc-functions/signgam.texi.
33574         * doc/posix-functions/stpcpy.texi: Renamed from
33575         doc/glibc-functions/stpcpy.texi.
33576         * doc/posix-functions/stpncpy.texi: Renamed from
33577         doc/glibc-functions/stpncpy.texi.
33578         * doc/posix-functions/strcasecmp_l.texi: Renamed from
33579         doc/glibc-functions/strcasecmp_l.texi.
33580         * doc/posix-functions/strcoll_l.texi: Renamed from
33581         doc/glibc-functions/strcoll_l.texi.
33582         * doc/posix-functions/strfmon_l.texi: Renamed from
33583         doc/glibc-functions/strfmon_l.texi.
33584         * doc/posix-functions/strftime_l.texi: Renamed from
33585         doc/glibc-functions/strftime_l.texi.
33586         * doc/posix-functions/strncasecmp_l.texi: Renamed from
33587         doc/glibc-functions/strncasecmp_l.texi.
33588         * doc/posix-functions/strndup.texi: Renamed from
33589         doc/glibc-functions/strndup.texi.
33590         * doc/posix-functions/strnlen.texi: Renamed from
33591         doc/glibc-functions/strnlen.texi.
33592         * doc/posix-functions/strsignal.texi: Renamed from
33593         doc/glibc-functions/strsignal.texi.
33594         * doc/posix-functions/strxfrm_l.texi: Renamed from
33595         doc/glibc-functions/strxfrm_l.texi.
33596         * doc/posix-functions/timer_gettime.texi: Renamed from
33597         doc/glibc-functions/timer_gettime.texi.
33598         * doc/posix-functions/tolower_l.texi: Renamed from
33599         doc/glibc-functions/tolower_l.texi.
33600         * doc/posix-functions/toupper_l.texi: Renamed from
33601         doc/glibc-functions/toupper_l.texi.
33602         * doc/posix-functions/towctrans_l.texi: Renamed from
33603         doc/glibc-functions/towctrans_l.texi.
33604         * doc/posix-functions/towlower_l.texi: Renamed from
33605         doc/glibc-functions/towlower_l.texi.
33606         * doc/posix-functions/towupper_l.texi: Renamed from
33607         doc/glibc-functions/towupper_l.texi.
33608         * doc/posix-functions/uselocale.texi: Renamed from
33609         doc/glibc-functions/uselocale.texi.
33610         * doc/posix-functions/vdprintf.texi: Renamed from
33611         doc/glibc-functions/vdprintf.texi.
33612         * doc/posix-functions/wcpcpy.texi:
33613         Renamed from doc/glibc-functions/wcpcpy.texi.
33614         * doc/posix-functions/wcpncpy.texi: Renamed from
33615         doc/glibc-functions/wcpncpy.texi.
33616         * doc/posix-functions/wcscasecmp.texi: Renamed from
33617         doc/glibc-functions/wcscasecmp.texi.
33618         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
33619         doc/glibc-functions/wcscasecmp_l.texi.
33620         * doc/posix-functions/wcscoll_l.texi: Renamed from
33621         doc/glibc-functions/wcscoll_l.texi.
33622         * doc/posix-functions/wcsdup.texi: Renamed from
33623         doc/glibc-functions/wcsdup.texi.
33624         * doc/posix-functions/wcsncasecmp.texi: Renamed from
33625         doc/glibc-functions/wcsncasecmp.texi.
33626         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
33627         doc/glibc-functions/wcsncasecmp_l.texi.
33628         * doc/posix-functions/wcsnlen.texi: Renamed from
33629         doc/glibc-functions/wcsnlen.texi.
33630         * doc/posix-functions/wcsnrtombs.texi: Renamed from
33631         doc/glibc-functions/wcsnrtombs.texi.
33632         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
33633         doc/glibc-functions/wcsxfrm_l.texi.
33634         * doc/posix-functions/wctrans_l.texi: Renamed from
33635         doc/glibc-functions/wctrans_l.texi.
33636         * doc/posix-functions/wctype_l.texi: Renamed from
33637         doc/glibc-functions/wctype_l.texi.
33638         * doc/gnulib.texi (Function Substitutes): Add these subsections.
33639         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
33640         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
33641         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
33642         these subsections.
33643         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
33644         Remove sections.
33645
33646 2008-12-14  Bruno Haible  <bruno@clisp.org>
33647
33648         Update doc for POSIX:2008.
33649         * doc/posix-functions/*.texi: Update URL of POSIX specification.
33650
33651 2008-12-14  Bruno Haible  <bruno@clisp.org>
33652
33653         Update doc for POSIX:2008.
33654         * doc/pastposix-functions/bcmp.texi: Renamed from
33655         doc/posix-functions/bcmp.texi.
33656         * doc/pastposix-functions/bcopy.texi: Renamed from
33657         doc/posix-functions/bcopy.texi.
33658         * doc/pastposix-functions/bsd_signal.texi: Renamed from
33659         doc/posix-functions/bsd_signal.texi.
33660         * doc/pastposix-functions/bzero.texi: Renamed from
33661         doc/posix-functions/bzero.texi.
33662         * doc/pastposix-functions/ecvt.texi: Renamed from
33663         doc/posix-functions/ecvt.texi.
33664         * doc/pastposix-functions/fcvt.texi: Renamed from
33665         doc/posix-functions/fcvt.texi.
33666         * doc/pastposix-functions/ftime.texi: Renamed from
33667         doc/posix-functions/ftime.texi.
33668         * doc/pastposix-functions/gcvt.texi: Renamed from
33669         doc/posix-functions/gcvt.texi.
33670         * doc/pastposix-functions/getcontext.texi: Renamed from
33671         doc/posix-functions/getcontext.texi.
33672         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
33673         doc/posix-functions/gethostbyaddr.texi.
33674         * doc/pastposix-functions/gethostbyname.texi: Renamed from
33675         doc/posix-functions/gethostbyname.texi.
33676         * doc/pastposix-functions/getwd.texi: Renamed from
33677         doc/posix-functions/getwd.texi.
33678         * doc/pastposix-functions/h_errno.texi: Renamed from
33679         doc/posix-functions/h_errno.texi.
33680         * doc/pastposix-functions/index.texi: Renamed from
33681         doc/posix-functions/index.texi.
33682         * doc/pastposix-functions/makecontext.texi: Renamed from
33683         doc/posix-functions/makecontext.texi.
33684         * doc/pastposix-functions/mktemp.texi: Renamed from
33685         doc/posix-functions/mktemp.texi.
33686         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
33687         doc/posix-functions/pthread_attr_getstackaddr.texi.
33688         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
33689         doc/posix-functions/pthread_attr_setstackaddr.texi.
33690         * doc/pastposix-functions/rindex.texi: Renamed from
33691         doc/posix-functions/rindex.texi.
33692         * doc/pastposix-functions/scalb.texi: Renamed from
33693         doc/posix-functions/scalb.texi.
33694         * doc/pastposix-functions/setcontext.texi: Renamed from
33695         doc/posix-functions/setcontext.texi.
33696         * doc/pastposix-functions/swapcontext.texi: Renamed from
33697         doc/posix-functions/swapcontext.texi.
33698         * doc/pastposix-functions/ualarm.texi: Renamed from
33699         doc/posix-functions/ualarm.texi.
33700         * doc/pastposix-functions/usleep.texi: Renamed from
33701         doc/posix-functions/usleep.texi.
33702         * doc/pastposix-functions/vfork.texi: Renamed from
33703         doc/posix-functions/vfork.texi.
33704         * doc/pastposix-functions/wcswcs.texi: Renamed from
33705         doc/posix-functions/wcswcs.texi.
33706         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
33707         (Function Substitutes): Update.
33708
33709 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33710
33711         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
33712         m4/strerror.m4.
33713
33714 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33715             Bruno Haible  <bruno@clisp.org>
33716
33717         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
33718
33719 2008-12-13  Bruno Haible  <bruno@clisp.org>
33720
33721         * modules/strtoull (Depends-on): Remove unistd.
33722
33723 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33724
33725         * modules/strtoull (Depends-on): Add stdlib.
33726
33727 2008-12-11  Simon Josefsson  <simon@josefsson.org>
33728
33729         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
33730
33731 2008-12-10  Jim Meyering  <meyering@redhat.com>
33732
33733         gl_ASSERT: don't say assertions are disabled when they're not
33734         * m4/assert.m4 (gl_ASSERT): Do not make configure report
33735         "checking whether to enable assertions... no", when they are in
33736         fact enabled.  This is solely a bug in the output of configure.
33737         In spite of saying "no", NDEBUG was not defined in that case.
33738         Also, as noted by Eric Blake, leave assertions enabled upon
33739         --enable-assert=INVALID.
33740
33741 2008-12-10  Bruno Haible  <bruno@clisp.org>
33742
33743         Change MODULES.html to refer to POSIX:2008 where possible.
33744         * MODULES.html.sh (POSIX2008_URL): New variable.
33745         (posix_headers): Remove sys/timeb, ucontext.
33746         (posix2001_headers): New variable.
33747         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
33748         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
33749         index, makecontext, mktemp, pthread_attr_getstackaddr,
33750         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
33751         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
33752         (posix2001_functions): New variable.
33753         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
33754         otherwise.
33755
33756 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33757
33758         add missing include to parse-duration.c
33759         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
33760         * modules/parse-duration (Depends-on): Add xalloc.
33761
33762         fix sed script reading maint.mk
33763         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
33764         (syntax-check-rules): Use it.
33765
33766 2008-12-09  Bruno Haible  <bruno@clisp.org>
33767
33768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
33769         MacOS X 10.4/PowerPC.
33770         Reported by Simon Josefsson.
33771
33772 2008-12-08  Jim Meyering  <meyering@redhat.com>
33773
33774         work around mingw's lack of some S_IF definitions
33775         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
33776         Reported by Simon Josefsson.
33777
33778 2008-12-08  Bruno Haible  <bruno@clisp.org>
33779
33780         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
33781         applied to variables. Needed on MacOS X 10.4/PowerPC.
33782         Reported by Simon Josefsson.
33783
33784 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
33785         and Eric Blake  <ebb9@byu.net>
33786
33787         assert: honor --enable-assert
33788         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
33789         order to honor --enable-assert, rather than treating it as a
33790         synonym for --disable-assert.
33791
33792 2008-12-08  Jim Meyering  <meyering@redhat.com>
33793
33794         * lib/posixtm.c: Remove now-useless declaration of mktime.
33795
33796         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
33797
33798 2008-12-07  Bruno Haible  <bruno@clisp.org>
33799
33800         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
33801         test_once): Mark functions as static.
33802         * tests/test-tls.c (test_tls): Likewise.
33803
33804 2008-12-07  Bruno Haible  <bruno@clisp.org>
33805
33806         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
33807         iconv_register_autodetect.
33808
33809 2008-12-07  Jim Meyering  <meyering@redhat.com>
33810
33811         posixtm.c: avoid a warning
33812         * lib/posixtm.c (posixtime): Don't initialize tm0.
33813         It's no longer needed to placate gcc4's -Wuninitialized,
33814         and the attempt to placate would elicit a new warning.
33815
33816         unicodeio.c: mark unused parameters
33817         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33818         (fallback_failure_callback): Likewise.
33819
33820 2008-12-07  Bruno Haible  <bruno@clisp.org>
33821
33822         * gnulib-tool (func_create_testdir): When building the tests
33823         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
33824         Reported by Simon Josefsson.
33825
33826 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33827
33828         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
33829
33830 2008-12-06  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
33833         Suggested by Eric Blake.
33834
33835 2008-12-06  Bruno Haible  <bruno@clisp.org>
33836
33837         Fix a c-stack test failure on MacOS X.
33838         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
33839         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
33840         handler for SIGBUS as well.
33841         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
33842         install a signal handler for SIGBUS as well.
33843         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
33844
33845 2008-12-06  Bruno Haible  <bruno@clisp.org>
33846
33847         Advocacy documentation.
33848         * doc/gnulib-intro.texi (Benefits): New section.
33849         * doc/gnulib.texi: Update.
33850
33851 2008-12-06  Bruno Haible  <bruno@clisp.org>
33852
33853         Document the 'manywarnings' module.
33854         * doc/manywarnings.texi: New file.
33855         * doc/gnulib.texi: Include it.
33856
33857 2008-12-05  Eric Blake  <ebb9@byu.net>
33858
33859         tests: silence some gcc warnings
33860         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
33861         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33862         type mismatches.
33863
33864 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33865             Bruno Haible  <bruno@clisp.org>
33866
33867         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
33868
33869 2008-11-29  Jim Meyering  <meyering@redhat.com>
33870
33871         unicodeio.c: mark unused parameters
33872         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
33873         (fallback_failure_callback): Likewise.
33874
33875         fts: fix a thinko
33876         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
33877         (set_stat_type): Return S_IF*-valued "type" directly.
33878         Prompted by James Youngman's spotting a related bug.
33879         Confirmed by further testing through find.
33880
33881         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
33882         * lib/fts.c (D_TYPE): Define.
33883         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
33884         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
33885         (s_ifmt_shift_bits): New function.
33886         (set_stat_type): New function.
33887         (fts_build): When not calling fts_stat, call set_stat_type
33888         to propagate dirent.d_type info to fts_read caller.
33889         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
33890         fts_statp->st_mode type information may be valid.
33891
33892 2008-11-28  Simon Josefsson  <simon@josefsson.org>
33893
33894         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
33895         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
33896         <sds@gnu.org>.
33897
33898 2008-11-20  Bruno Haible  <bruno@clisp.org>
33899
33900         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
33901         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
33902         INCLUDE_NEXT.
33903         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
33904         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
33905         * modules/math (Makefile.am): Substitute
33906         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
33907         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33908
33909 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
33910             Bruno Haible  <bruno@clisp.org>
33911
33912         * lib/stdint.in.h: Define all type macros so that their expansion is
33913         a single typedef'ed token. Fixes a compilation failure in Boost which
33914         does "using ::int8_t;".
33915
33916 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33917
33918         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
33919         gl_MANYWARN_ALL_GCC.
33920         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
33921         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
33922         * modules/manywarnings: New file.
33923         * MODULES.html.sh: Mention manywarnings module.
33924
33925 2008-11-18  Bruno Haible  <bruno@clisp.org>
33926
33927         * doc/gnulib-tool.texi (Unit tests): New section.
33928
33929 2008-11-18  Simon Josefsson  <simon@josefsson.org>
33930
33931         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
33932         paths like 'lib/po/foo.po'.
33933
33934 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33935
33936         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
33937         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
33938
33939 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33940
33941         * m4/warnings.m4: Use CPPFLAGS to really check whether the
33942         parameter works.
33943
33944 2008-11-17  Simon Josefsson  <simon@josefsson.org>
33945
33946         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
33947
33948 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33949
33950         * modules/parse-duration-tests: New file.
33951         * tests/test-parse-duration.sh: New file.
33952         * tests/test-parse-duration.c: New file.
33953
33954         New module 'parse-duration'.
33955         * lib/parse-duration.h: New file.
33956         * lib/parse-duration.c: New file.
33957         * modules/parse-duration: New file.
33958
33959 2008-11-17  Bruno Haible  <bruno@clisp.org>
33960
33961         * tests/test-select-out.sh: Comment out the first pipe test.
33962         Reported by Simon Josefsson.
33963
33964 2008-11-17  Bruno Haible  <bruno@clisp.org>
33965
33966         * modules/getaddrinfo (Depends-on): Add servent, hostent.
33967         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
33968         gl_HOSTENT.
33969
33970 2008-11-17  Bruno Haible  <bruno@clisp.org>
33971
33972         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
33973         -lnetwork and -lnet. Needed for Haiku and BeOS.
33974
33975 2008-11-16  Bruno Haible  <bruno@clisp.org>
33976
33977         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
33978
33979 2008-11-16  Bruno Haible  <bruno@clisp.org>
33980
33981         Avoid test failure on Haiku.
33982         * tests/test-fsync.c: Include <errno.h>.
33983         (main): Don't require that fsync (0) fails.
33984
33985 2008-11-15  Bruno Haible  <bruno@clisp.org>
33986
33987         New module 'hostent'.
33988         * modules/hostent: New file.
33989         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
33990
33991 2008-11-15  Bruno Haible  <bruno@clisp.org>
33992
33993         New module 'servent'.
33994         * modules/servent: New file.
33995         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
33996
33997 2008-11-15  Bruno Haible  <bruno@clisp.org>
33998
33999         Avoid generating same test program with two different rules.
34000         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
34001         test-frexp to test-frexp-nolibm.
34002         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
34003         test-frexpl to test-frexpl-nolibm.
34004
34005 2008-11-15  Bruno Haible  <bruno@clisp.org>
34006
34007         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
34008         $(FREXPL_LIBM).
34009
34010 2008-11-15  Bruno Haible  <bruno@clisp.org>
34011
34012         * lib/netdb.in.h: Activate the definitions also when the system's
34013         <netdb.h> has 'struct addrinfo'.
34014         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
34015         EAI_OVERFLOW or AI_NUMERICSERV.
34016         * doc/posix-headers/netdb.texi: Document the problem.
34017
34018 2008-11-15  Bruno Haible  <bruno@clisp.org>
34019
34020         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
34021
34022         Make the 'sched' module work on platforms where <sched.h> exists but
34023         is incomplete (such as Haiku).
34024         * lib/sched.in.h; Include the system's <sched.h> if it exists.
34025         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
34026         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
34027         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
34028         HAVE_STRUCT_SCHED_PARAM.
34029         * modules/sched (Depends-on): Add include_next.
34030         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
34031         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
34032         * doc/posix-headers/sched.texi: Document the issue.
34033
34034 2008-11-13  Jim Meyering  <meyering@redhat.com>
34035
34036         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
34037         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
34038         test would fail due to the difference in the Report bugs to ...
34039         line.  The expected address is empty, "<>", while the actual
34040         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
34041
34042 2008-11-12  Bruno Haible  <bruno@clisp.org>
34043
34044         lstat: don't compile lstat.c on systems lacking lstat
34045         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
34046         which don't have lstat; this is handled by lib/sys_stat.in.h already.
34047         Reported by Daniel P. Berrange via Jim Meyering.
34048
34049 2008-11-12  Jim Meyering  <meyering@redhat.com>
34050
34051         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
34052
34053 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34054
34055         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
34056         instead.
34057
34058 2008-11-12  Bruno Haible  <bruno@clisp.org>
34059
34060         * lib/unicodeio.c: Include unistr.h.
34061         (utf8_wctomb): Remove function.
34062         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
34063
34064 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34065
34066         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
34067         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
34068         <bruno@clisp.org>.
34069         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
34070
34071 2008-11-12  Simon Josefsson  <simon@josefsson.org>
34072
34073         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
34074         * doc/gnulib.texi: Add section for warnings.
34075
34076 2008-11-11  Bruno Haible  <bruno@clisp.org>
34077
34078         * lib/sockets.h: Add a comment.
34079
34080 2008-11-11  Karl Berry  <karl@gnu.org>
34081
34082         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
34083
34084 2008-11-11  Eric Blake  <ebb9@byu.net>
34085
34086         fdl.texi: avoid git symlinks
34087         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
34088
34089 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34090
34091         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
34092
34093 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34094
34095         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
34096         (gl_WARN_ADD): Substitute $2 if literal.
34097
34098 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34099
34100         * m4/warning.m4: Remove.
34101
34102 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
34103
34104         * m4/warnings.m4: Almost complete rewrite. :-)
34105
34106 2008-11-10  Simon Josefsson  <simon@josefsson.org>
34107
34108         * modules/warnings: New module.
34109         * m4/warnings.m4: New file.
34110         * MODULES.html.sh: Mention warnings module.
34111         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
34112         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34113
34114 2008-11-10  Eric Blake  <ebb9@byu.net>
34115
34116         fdl.texi: make a symlink to the latest version
34117         * doc/standards.texi: Revert today's earlier change.
34118         * doc/fdl-1.2.texi: Rename from old fdl.texi...
34119         * doc/fdl.texi: ...and replace this with a symlink to the newer
34120         fdl-1.3.texi.
34121
34122 2008-11-10  Bruno Haible  <bruno@clisp.org>
34123
34124         * tests/test-select-fd.c (main): Accept the result file name as fourth
34125         argument.
34126         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
34127         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
34128
34129 2008-11-10  Bruno Haible  <bruno@clisp.org>
34130
34131         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
34132         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
34133         as autoconf-substituted macros.
34134         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
34135         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
34136         gl_NETDB_H_DEFAULTS. Set these variables.
34137         * modules/netdb (Makefile.am): Substitute these variables.
34138
34139 2008-11-10  Eric Blake  <ebb9@byu.net>
34140
34141         standards.texi: include correct file for FDL 1.3
34142         * doc/standards.texi (GNU Free Documentation License): Change
34143         include file to pull in FDL 1.3, not 1.2.
34144
34145         fdl.texi: revert accidental change to license
34146         * doc/fdl.texi: This is FDL 1.2, not 1.3.
34147
34148 2008-11-10  Bruno Haible  <bruno@clisp.org>
34149
34150         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
34151         cross-compiling guesses also when the native compile gives no result.
34152
34153 2008-11-10  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/spawni.c (__spawni): Force variable into the stack.
34156
34157 2008-11-10  Bruno Haible  <bruno@clisp.org>
34158
34159         Add support for Haiku.
34160         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
34161         glibc and BeOS, but also on Haiku.
34162         * lib/fpurge.c (fpurge): Likewise.
34163         * lib/freadable.c (freadable): Likewise.
34164         * lib/freadahead.c (freadahead): Likewise.
34165         * lib/freading.c (freading): Likewise.
34166         * lib/freadptr.c (freadptr): Likewise.
34167         * lib/freadseek.c (freadptrinc): Likewise.
34168         * lib/fseeko.c (rpl_fseeko): Likewise.
34169         * lib/fseterr.c (fseterr): Likewise.
34170         * lib/fwritable.c (fwritable): Likewise.
34171         * lib/fwriting.c (fwriting): Likewise.
34172         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
34173
34174 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34175
34176         * lib/config.charset: Treat Haiku like BeOS.
34177
34178 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
34179
34180         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
34181         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
34182
34183 2008-11-08  Bruno Haible  <bruno@clisp.org>
34184
34185         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
34186         AC_CACHE_CHECK.
34187
34188 2008-11-08  Bruno Haible  <bruno@clisp.org>
34189
34190         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
34191
34192 2008-11-08  Bruno Haible  <bruno@clisp.org>
34193
34194         * tests/test-select-fd.c: New file.
34195         * tests/test-select-in.sh: New file.
34196         * tests/test-select-out.sh: New file.
34197         * tests/test-select-stdin.c: New file.
34198         * modules/select-tests (Files): Add the new files.
34199         (Depends-on): Add gettimeofday.
34200         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
34201         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
34202         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
34203
34204 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
34205             Bruno Haible  <bruno@clisp.org>
34206
34207         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
34208
34209 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
34210
34211         * build-aux/pmccabe2html: Added support for C++ source files.
34212
34213 2008-11-05  Ben Pfaff  <blp@gnu.org>
34214
34215         Fix lib/close.c build on Windows.
34216         * modules/close (Files): Add lib/w32sock.h.
34217
34218 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
34219
34220         Accept Bison's NEWS format.
34221         * build-aux/announce-gen (print_news_deltas): Tweak
34222         $re_prefix.
34223
34224 2008-11-04  Bruno Haible  <bruno@clisp.org>
34225
34226         * modules/random_r (Maintainer): Add glibc.
34227
34228 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34229
34230         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
34231         by karl@freefriends.org (Karl Berry).
34232         * doc/alloca.texi: Likewise.
34233         * doc/c-ctype.texi: Likewise.
34234         * doc/c-strcase.texi: Likewise.
34235         * doc/c-strcaseeq.texi: Likewise.
34236         * doc/c-strcasestr.texi: Likewise.
34237         * doc/c-strstr.texi: Likewise.
34238         * doc/c-strtod.texi: Likewise.
34239         * doc/c-strtold.texi: Likewise.
34240         * doc/ctime.texi: Likewise.
34241         * doc/error.texi: Likewise.
34242         * doc/fdl.texi: Likewise.
34243         * doc/gcd.texi: Likewise.
34244         * doc/getdate.texi: Likewise.
34245         * doc/gnulib-intro.texi: Likewise.
34246         * doc/gnulib-tool.texi: Likewise.
34247         * doc/gnulib.texi: Likewise.
34248         * doc/inet_ntoa.texi: Likewise.
34249         * doc/maintain.texi: Likewise.
34250         * doc/make-stds.texi: Likewise.
34251         * doc/quote.texi: Likewise.
34252         * doc/regexprops-generic.texi: Likewise.
34253         * doc/standards.texi: Likewise.
34254         * doc/verify.texi: Likewise.
34255         * doc/visibility.texi: Likewise.
34256         * doc/gnulib.texi (GNU Free Documentation License): Include
34257         fdl-1.3.texi instead of fdl.texi.
34258
34259 2008-11-04  Simon Josefsson  <simon@josefsson.org>
34260
34261         * doc/fdl-1.3.texi: New file, from
34262         <http://www.gnu.org/licenses/fdl-1.3.texi>.
34263         * modules/fdl-1.3: Add.
34264         * MODULES.html.sh: Add fdl-1.3.
34265
34266 2008-11-03  Bruno Haible  <bruno@clisp.org>
34267
34268         Make determination of absolute name of header file work with AIX xlc.
34269         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
34270         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
34271         preprocessing.
34272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34273         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
34274
34275 2008-11-03  Simon Josefsson  <simon@josefsson.org>
34276
34277         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
34278         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
34279         <ludo@gnu.org>.
34280
34281 2008-11-02  Bruno Haible  <bruno@clisp.org>
34282
34283         Mark 'strpbrk' obsolete.
34284         * modules/strpbrk (Status, Notice): New sections.
34285         * modules/strtok_r (Depends-on): Add strpbrk.
34286
34287 2008-11-02  Bruno Haible  <bruno@clisp.org>
34288
34289         Mark 'strdup' obsolete.
34290         * modules/strdup (Status, Notice): New sections.
34291         * modules/findprog (Depends-on): Add strdup.
34292         * modules/getaddrinfo (Depends-on): Likewise.
34293         * modules/localename (Depends-on): Likewise.
34294         * modules/relocatable-lib (Depends-on): Likewise.
34295         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
34296         * modules/relocatable-prog (Depends-on): Likewise.
34297         * modules/trim (Depends-on): Likewise.
34298         * modules/unictype/gen-ctype (Depends-on): Likewise.
34299         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34300
34301 2008-11-02  Bruno Haible  <bruno@clisp.org>
34302
34303         Mark 'strcspn' obsolete.
34304         * modules/strcspn (Status, Notice): New sections.
34305
34306 2008-11-02  Bruno Haible  <bruno@clisp.org>
34307
34308         Mark 'rmdir' obsolete.
34309         * modules/rmdir (Status, Notice): New sections.
34310         * modules/clean-temp (Depends-on): Add rmdir.
34311         * modules/openat (Depends-on): Likewise.
34312
34313 2008-11-02  Bruno Haible  <bruno@clisp.org>
34314
34315         Mark 'raise' obsolete.
34316         * modules/raise (Status, Notice): New sections.
34317         (Include): Specify <signal.h>.
34318         * modules/stdio (Depends-on): Add raise.
34319         * modules/write (Depends-on): Likewise.
34320
34321 2008-11-02  Bruno Haible  <bruno@clisp.org>
34322
34323         Mark 'memset' obsolete.
34324         * modules/memset (Status, Notice): New sections.
34325
34326 2008-11-02  Bruno Haible  <bruno@clisp.org>
34327
34328         Mark 'memmove' obsolete.
34329         * modules/memmove (Status, Notice): New sections.
34330         * modules/argp (Depends-on): Add memmove.
34331         * modules/argz (Depends-on): Likewise.
34332         * modules/canonicalize (Depends-on): Likewise.
34333         * modules/canonicalize-lgpl (Depends-on): Likewise.
34334         * modules/fts (Depends-on): Likewise.
34335         * modules/getcwd (Depends-on): Likewise.
34336         * modules/human (Depends-on): Likewise.
34337         * modules/regex (Depends-on): Likewise.
34338         * modules/striconveh (Depends-on): Likewise.
34339         * modules/trim (Depends-on): Likewise.
34340         * modules/unistr/u8-move (Depends-on): Likewise.
34341         * modules/unistr/u16-move (Depends-on): Likewise.
34342         * modules/unistr/u32-move (Depends-on): Likewise.
34343
34344 2008-11-02  Bruno Haible  <bruno@clisp.org>
34345
34346         Mark 'memcpy' obsolete.
34347         * modules/memcpy (Status, Notice): New sections.
34348
34349 2008-11-02  Bruno Haible  <bruno@clisp.org>
34350
34351         Mark 'memcmp' obsolete.
34352         * modules/memcmp (Status, Notice): New sections.
34353         * modules/argmatch (Depends-on): Add memchr.
34354         * modules/backupfile (Depends-on): Likewise.
34355         * modules/c-strcasestr (Depends-on): Likewise.
34356         * modules/crypto/des (Depends-on): Likewise.
34357         * modules/csharpcomp (Depends-on): Likewise.
34358         * modules/fnmatch (Depends-on): Likewise.
34359         * modules/git-merge-changelog (Depends-on): Likewise.
34360         * modules/isnand (Depends-on): Likewise.
34361         * modules/isnand-nolibm (Depends-on): Likewise.
34362         * modules/isnanf (Depends-on): Likewise.
34363         * modules/isnanf-nolibm (Depends-on): Likewise.
34364         * modules/isnanl (Depends-on): Likewise.
34365         * modules/isnanl-nolibm (Depends-on): Likewise.
34366         * modules/mbchar (Depends-on): Likewise.
34367         * modules/memcoll (Depends-on): Likewise.
34368         * modules/quotearg (Depends-on): Likewise.
34369         * modules/regex (Depends-on): Likewise.
34370         * modules/relocatable-prog (Depends-on): Likewise.
34371         * modules/same (Depends-on): Likewise.
34372         * modules/signbit (Depends-on): Likewise.
34373         * modules/strcasestr-simple (Depends-on): Likewise.
34374         * modules/unictype/gen-ctype (Depends-on): Likewise.
34375         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
34376         * modules/uniname/uniname (Depends-on): Likewise.
34377         * modules/unistr/u8-cmp (Depends-on): Likewise.
34378
34379 2008-11-02  Bruno Haible  <bruno@clisp.org>
34380
34381         Mark 'memchr' obsolete.
34382         * modules/memchr (Status, Notice): New sections.
34383         * modules/argp (Depends-on): Add memchr.
34384         * modules/base64 (Depends-on): Likewise.
34385         * modules/c-strcasestr (Depends-on): Likewise.
34386         * modules/chdir-long (Depends-on): Likewise.
34387         * modules/fnmatch (Depends-on): Likewise.
34388         * modules/getsubopt (Depends-on): Likewise.
34389         * modules/git-merge-changelog (Depends-on): Likewise.
34390         * modules/glob (Depends-on): Likewise.
34391         * modules/strcasestr-simple (Depends-on): Likewise.
34392         * modules/strnlen (Depends-on): Likewise.
34393
34394 2008-11-02  Bruno Haible  <bruno@clisp.org>
34395
34396         Mark 'atexit' obsolete.
34397         * modules/atexit (Status, Notice): New sections.
34398         * modules/chdir-long (Depends-on): Add atexit.
34399         * modules/wait-process (Depends-on): Likewise.
34400
34401 2008-11-02  Bruno Haible  <bruno@clisp.org>
34402
34403         * gnulib-tool: New option --with-obsolete.
34404         (func_usage): Document it.
34405         (func_modules_transitive_closure): Drop obsolete dependencies if
34406         incobsolete is not true.
34407         (func_import): Read and save the incobsolete variable to the cache.
34408
34409 2008-11-02  Bruno Haible  <bruno@clisp.org>
34410
34411         * modules/TEMPLATE-EXTENDED: New field 'Status'.
34412         * gnulib-tool: New option --extract-status.
34413         (func_usage): Document it.
34414         (sed_extract_prog): Recognize it.
34415         (func_get_status): New function.
34416
34417 2008-10-30  Simon Josefsson  <simon@josefsson.org>
34418
34419         * modules/sockets (License): Change from LGPL to LGPLv2+.
34420
34421 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34422
34423         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
34424
34425 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34426
34427         * MODULES.html.sh (Support for systems lacking POSIX:2001):
34428         Mention times and sys_times.
34429         * modules/sys_times, modules/sys_times-tests: New modules.
34430         * modules/times, modules/times-tests: Likewise
34431         * m4/sys_times_h.m4: New file.
34432         * lib/sys_times.in.h: Likewise
34433         * lib/times.c: Likewise.
34434         * tests/test-sys_times.c: Likewise.
34435         * tests/test-times.c: Likewise.
34436         * doc/posix-headers/sys_times.texi: Update.
34437         * doc/posix-functions/times.texi: Update.
34438
34439 2008-10-28  Jim Meyering  <meyering@redhat.com>
34440
34441         * modules/tempname (Depends-on): Add lstat.
34442
34443         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
34444
34445 2008-10-28  Simon Josefsson  <simon@josefsson.org>
34446
34447         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
34448         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
34449         using idiom used elsewhere in gnulib.
34450
34451 2008-10-27  Jim Meyering  <meyering@redhat.com>
34452
34453         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
34454
34455 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34456
34457         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
34458         TESTS_ENVIRONMENT, for shell scripts that needs to call built
34459         programs.
34460         * tests/test-argp-2.sh: Use $EXEEXT when needed.
34461
34462 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34463
34464         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
34465
34466 2008-10-27  Bruno Haible  <bruno@clisp.org>
34467
34468         * tests/test-lstat.c: Include <stdio.h>.
34469
34470 2008-10-27  Simon Josefsson  <simon@josefsson.org>
34471
34472         * modules/lstat-tests: New module.
34473         * tests/test-lstat.c: New file.
34474
34475 2008-10-26  Jim Meyering  <meyering@redhat.com>
34476
34477         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
34478
34479 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34480             Bruno Haible  <bruno@clisp.org>
34481
34482         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
34483         * modules/configmake (Include): Add a note that the include must come
34484         after all system headers.
34485         * lib/javaversion.c: Include configmake.h after all other includes.
34486
34487 2008-10-26  Bruno Haible  <bruno@clisp.org>
34488
34489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
34490         HAVE_STRUCT_RANDOM_DATA to 1.
34491         (gl_STDLIB_H): Simplify.
34492
34493 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34494
34495         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
34496         substitute HAVE_STRUCT_RANDOM_DATA.
34497         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
34498         random_data.
34499         * modules/stdlib (Makefile.am): Substitute
34500         HAVE_STRUCT_RANDOM_DATA.
34501
34502 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34503
34504         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
34505         * doc/gnulib-intro.texi (Copyright): Likewise.
34506
34507 2008-10-26  Simon Josefsson  <simon@josefsson.org>
34508
34509         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
34510         findings.
34511
34512 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
34513             Bruno Haible  <bruno@clisp.org>
34514
34515         * lib/unistd.in.h: Include <winsock2.h>.
34516         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
34517         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
34518         Provide dummy declarations.
34519         (gethostname): Override.
34520         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
34521         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
34522         gl_PREREQ_SYS_H_WINSOCK2.
34523         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
34524         * doc/posix-functions/gethostname.texi: More details.
34525
34526 2008-10-25  Bruno Haible  <bruno@clisp.org>
34527
34528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
34529         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
34530         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
34531
34532         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
34533         here ...
34534         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
34535         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
34536         gl_UNISTD_H_DEFAULTS.
34537
34538 2008-10-25  Eric Blake  <ebb9@byu.net>
34539
34540         signbit: avoid spurious compiler failure
34541         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
34542         declarations inside function.
34543
34544 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34545             Bruno Haible  <bruno@clisp.org>
34546
34547         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
34548         * modules/random_r (Depends-on): Add stdint.
34549
34550 2008-10-24  Bruno Haible  <bruno@clisp.org>
34551
34552         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
34553         Eggert.
34554         * modules/strerror (License): Likewise.
34555
34556 2008-10-24  Jim Meyering  <meyering@redhat.com>
34557
34558         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
34559         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
34560
34561 2008-10-24  Eric Blake  <ebb9@byu.net>
34562
34563         getgroups: fix compilation when getgroups is available
34564         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
34565         but with <config.h> override of getgroups disabled.
34566
34567 2008-10-24  Simon Josefsson  <simon@josefsson.org>
34568
34569         * doc/gnulib.texi (Header files): Add note about C++ problems.
34570         Explained by Bruno Haible <bruno@clisp.org>.
34571
34572 2008-10-23  Bruno Haible  <bruno@clisp.org>
34573
34574         Define a dummy SA_NODEFER macro on Interix.
34575         * lib/signal.in.h (SA_NODEFER): Define fallback.
34576         Reported by Aleksey Cheusov <cheusov@tut.by> via
34577         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
34578
34579 2008-10-23  Bruno Haible  <bruno@clisp.org>
34580
34581         * modules/freadahead (License): Change to LGPLv2+.
34582         Suggested by Simon Josefsson.
34583
34584 2008-10-23  Jim Meyering  <meyering@redhat.com>
34585
34586         random_r: new module
34587         * modules/random_r: New file.
34588         * m4/random_r.m4: New file.
34589         * lib/random_r.c: New file, from glibc.
34590         * modules/random_r-tests: New file.
34591         * tests/test-random_r.c: New file.
34592         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
34593          Declare.
34594         (RAND_MAX): Define.
34595         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
34596         * modules/stdlib: Substitute them, too.
34597         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
34598         * doc/glibc-functions/initstate_r.texi: Mention the new module.
34599         * doc/glibc-functions/random_r.texi: Likewise.
34600         * doc/glibc-functions/setstate_r.texi: Likewise.
34601         * doc/glibc-functions/srandom_r.texi: Likewise.
34602         * config/srclist.txt: Mention it.
34603
34604 2008-10-23  David Lutterkort  <lutter@redhat.com>
34605
34606         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
34607         link requirement
34608
34609 2008-10-23  Jim Meyering  <meyering@redhat.com>
34610
34611         selinux-h: mark parameters of stub functions as intentionally unused
34612         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
34613         * lib/se-context.in.h: Likewise.
34614
34615 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34616
34617         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
34618
34619 2008-10-22  Simon Josefsson  <simon@josefsson.org>
34620
34621         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
34622
34623 2008-10-22  Eric Blake  <ebb9@byu.net>
34624
34625         glthread/thread: avoid compiler warning
34626         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
34627         Add unreachable abort to silence compiler.
34628
34629 2008-10-22  Eric Blake  <ebb9@byu.net>
34630
34631         netdb: also supply struct addrinfo for cygwin 1.5.x
34632         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
34633         older cygwin.
34634         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
34635         cygwin.
34636         * doc/posix-headers/netdb.texi (netdb.h): Document this.
34637
34638 2008-10-22  Bruno Haible  <bruno@clisp.org>
34639
34640         * users.txt: Update entry about pspp.
34641
34642 2008-10-21  Bruno Haible  <bruno@clisp.org>
34643
34644         Simplification.
34645         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
34646         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
34647
34648         Simplification.
34649         * lib/ioctl.c (ioctl): Don't undefine.
34650         * lib/socket.c (socket): Don't undefine.
34651
34652         Remove unused module indicator macros.
34653         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
34654         GNULIB_$1 as a C macro.
34655
34656         * doc/posix-functions/close.texi: Undo last change.
34657         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
34658         Windows platforms.
34659
34660 2008-10-21  Bruno Haible  <bruno@clisp.org>
34661
34662         Add gethostname() declaration to <unistd.h>.
34663         * lib/unistd.in.h (gethostname): New declaration.
34664         * lib/gethostname.c: Include <unistd.h>.
34665         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
34666         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
34667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
34668         and HAVE_GETHOSTNAME.
34669         * modules/gethostname (Depends-on): Add unistd.
34670         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34671         (Include): Specify <unistd.h>.
34672         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
34673         HAVE_GETHOSTNAME.
34674         * tests/test-gethostname.c: Include <unistd.h> first.
34675
34676 2008-10-21  Bruno Haible  <bruno@clisp.org>
34677
34678         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
34679         * modules/select-tests (Depends-on): Likewise.
34680         Reported by Simon Josefsson.
34681
34682 2008-10-21  Simon Josefsson  <simon@josefsson.org>
34683
34684         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
34685         * lib/accept.c: New file, based on winsock.c.
34686         * lib/bind.c: New file, based on winsock.c.
34687         * lib/connect.c: New file, based on winsock.c.
34688         * lib/getpeername.c: New file, based on winsock.c.
34689         * lib/getsockname.c: New file, based on winsock.c.
34690         * lib/getsockopt.c: New file, based on winsock.c.
34691         * lib/ioctl.c: New file, based on winsock.c.
34692         * lib/listen.c: New file, based on winsock.c.
34693         * lib/recv.c: New file, based on winsock.c.
34694         * lib/recvfrom.c: New file, based on winsock.c.
34695         * lib/send.c: New file, based on winsock.c.
34696         * lib/sendto.c: New file, based on winsock.c.
34697         * lib/setsockopt.c: New file, based on winsock.c.
34698         * lib/shutdown.c: New file, based on winsock.c.
34699         * lib/socket.c: New file, based on winsock.c.
34700         * lib/w32sock.h: New file, based on winsock.c.
34701         * lib/winsock.c: Remove file.
34702         * modules/accept: Likewise.
34703         * modules/bind: Likewise.
34704         * modules/connect: Likewise.
34705         * modules/getpeername: Likewise.
34706         * modules/getsockname: Likewise.
34707         * modules/getsockopt: Likewise.
34708         * modules/ioctl: Likewise.
34709         * modules/listen: Likewise.
34710         * modules/recv: Likewise.
34711         * modules/recvfrom: Likewise.
34712         * modules/send: Likewise.
34713         * modules/sendto: Likewise.
34714         * modules/setsockopt: Likewise.
34715         * modules/shutdown: Likewise.
34716         * modules/socket: Use socket.c instead of winsock.c.
34717         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
34718         * doc/posix-functions/accept.texi: Doc fix.
34719         * doc/posix-functions/bind.texi: Doc fix.
34720         * doc/posix-functions/close.texi: Doc fix.
34721         * doc/posix-functions/connect.texi: Doc fix.
34722         * doc/posix-functions/getpeername.texi: Doc fix.
34723         * doc/posix-functions/getsockname.texi: Doc fix.
34724         * doc/posix-functions/getsockopt.texi: Doc fix.
34725         * doc/posix-functions/ioctl.texi: Doc fix.
34726         * doc/posix-functions/listen.texi: Doc fix.
34727         * doc/posix-functions/recv.texi: Doc fix.
34728         * doc/posix-functions/recvfrom.texi: Doc fix.
34729         * doc/posix-functions/send.texi: Doc fix.
34730         * doc/posix-functions/sendto.texi: Doc fix.
34731         * doc/posix-functions/setsockopt.texi: Doc fix.
34732         * doc/posix-functions/shutdown.texi: Doc fix.
34733         * doc/posix-functions/socket.texi: Doc fix.
34734
34735 2008-10-20  Bruno Haible  <bruno@clisp.org>
34736
34737         Take into account the role of SIGABRT_COMPAT on Windows 2008.
34738         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
34739         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
34740         as an alias for SIGABRT.
34741         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
34742         (sigaction): Map it to SIGABRT.
34743         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
34744
34745 2008-10-20  Bruno Haible  <bruno@clisp.org>
34746
34747         * lib/fts.c: Don't include lstat.h.
34748         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
34749
34750         Move the lstat() declaration to <sys/stat.h>.
34751         * lib/lstat.h: Remove file.
34752         * lib/sys_stat.in.h: Add special invocation convention.
34753         (lstat): New declaration.
34754         * lib/lstat.c (orig_lstat): New function.
34755         (rpl_lstat): Use orig_lstat instead of lstat.
34756         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
34757         AC_C_INLINE. Set REPLACE_LSTAT.
34758         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
34759         and REPLACE_LSTAT.
34760         * modules/lstat (Files): Remove lib/lstat.h.
34761         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34762         (Include): Specify <sys/stat.h> instead of lstat.h.
34763         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
34764         REPLACE_LSTAT.
34765         * NEWS: Mention the change.
34766
34767 2008-10-20  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/posix_spawn-tests: New file.
34770         * tests/test-posix_spawn3.c: New file.
34771
34772 2008-10-20  Bruno Haible  <bruno@clisp.org>
34773
34774         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
34775         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34776         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
34777         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
34778         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
34779
34780 2008-10-20  Bruno Haible  <bruno@clisp.org>
34781
34782         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
34783         of posix_spawn on AIX 5.3.
34784
34785 2008-10-20  Bruno Haible  <bruno@clisp.org>
34786
34787         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
34788
34789 2008-10-20  Bruno Haible  <bruno@clisp.org>
34790
34791         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
34792         of AC_LANG_PROGRAM.
34793
34794 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34795
34796         * lib/netdb.in.h: Don't define GNU specific constants until they
34797         are supported or needed.  Reported by Bruno Haible
34798         <bruno@clisp.org>.
34799
34800 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34801
34802         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
34803
34804 2008-10-20  Simon Josefsson  <simon@josefsson.org>
34805
34806         * lib/getaddrinfo.h: Remove file.
34807         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
34808         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
34809         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
34810         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
34811         * modules/netdb: Substitute GNULIB_GETADDRINFO.
34812         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
34813         * tests/test-getaddrinfo.c: Likewise.
34814         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
34815         * NEWS: Mention change.
34816
34817 2008-10-19  Bruno Haible  <bruno@clisp.org>
34818
34819         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
34820
34821 2008-10-19  Bruno Haible  <bruno@clisp.org>
34822
34823         * lib/wait-process.c: Include simply <sys/wait.h>.
34824         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
34825         WIFSTOPPED): Remove fallback definitions.
34826         * modules/wait-process (Depends-on): Add sys_wait.
34827
34828         New module 'sys_wait'.
34829         * modules/sys_wait: New file.
34830         * lib/sys_wait.in.h: New file, partially copied from
34831         lib/wait-process.c.
34832         * m4/sys_wait_h.m4: New file.
34833         * doc/posix-headers/sys_wait.texi: Mention the new module.
34834
34835 2008-10-19  Bruno Haible  <bruno@clisp.org>
34836
34837         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
34838
34839 2008-10-19  Bruno Haible  <bruno@clisp.org>
34840
34841         Assume that waitpid() fills an 'int' status, not a 'union wait'.
34842         * lib/wait-process.c (WAIT_T): Remove type.
34843         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
34844         (wait_subprocess): Update.
34845
34846 2008-10-19  Bruno Haible  <bruno@clisp.org>
34847
34848         New module 'atoll'.
34849         * modules/atoll: New file.
34850         * lib/stdlib.in.h (atoll): New declaration.
34851         * lib/atoll.c: New file, from glibc with modifications.
34852         * m4/atoll.m4: New file.
34853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
34854         HAVE_ATOLL.
34855         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
34856         * doc/posix-functions/atoll.texi: Mention the new module.
34857
34858 2008-10-19  Bruno Haible  <bruno@clisp.org>
34859
34860         Add strtoull() declaration to <stdlib.h>.
34861         * lib/stdlib.in.h (strtoull): New declaration.
34862         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34863         Set HAVE_STRTOULL.
34864         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
34865         HAVE_STRTOULL.
34866         * modules/strtoull (Depends-on): Add stdlib.
34867         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34868         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
34869         HAVE_STRTOULL.
34870
34871 2008-10-19  Bruno Haible  <bruno@clisp.org>
34872
34873         Add strtoll() declaration to <stdlib.h>.
34874         * lib/stdlib.in.h (strtoll): New declaration.
34875         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
34876         Set HAVE_STRTOLL.
34877         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
34878         HAVE_STRTOLL.
34879         * modules/strtoll (Depends-on): Add stdlib.
34880         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34881         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
34882
34883 2008-10-19  Bruno Haible  <bruno@clisp.org>
34884
34885         * modules/bcopy (Depends-on): Add strings.
34886         (Include): Specify <strings.h>.
34887
34888 2008-10-19  Bruno Haible  <bruno@clisp.org>
34889
34890         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
34891
34892 2008-10-19  Bruno Haible  <bruno@clisp.org>
34893
34894         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
34895         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
34896         mingw.
34897
34898 2008-10-19  Bruno Haible  <bruno@clisp.org>
34899
34900         * lib/atanl.c: Don't include isnanl.h.
34901         * lib/cosl.c: Likewise.
34902         * lib/ldexpl.c: Likewise.
34903         * lib/logl.c: Likewise.
34904         * lib/sinl.c: Likewise.
34905         * lib/sqrtl.c: Likewise.
34906         * lib/tanl.c: Likewise.
34907
34908         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
34909         * lib/isnanf.h: Remove file.
34910         * lib/isnand.h: Remove file.
34911         * lib/isnanl.h: Remove file.
34912         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
34913         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
34914         macros.
34915         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
34916         HAVE_ISNANF, don't define it as a C macro.
34917         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
34918         HAVE_ISNAND, don't define it as a C macro.
34919         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
34920         HAVE_ISNANL, don't define it as a C macro.
34921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
34922         HAVE_ISNAN[FDL].
34923         * modules/isnanf (Files): Remove lib/isnanf.h.
34924         (Depends-on): Add math.
34925         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34926         (Include): Specify <math.h> instead of isnanf.h.
34927         * modules/isnand (Files): Remove lib/isnand.h.
34928         (Depends-on): Add math.
34929         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34930         (Include): Specify <math.h> instead of isnand.h.
34931         * modules/isnanl (Files): Remove lib/isnanl.h.
34932         (Depends-on): Add math.
34933         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
34934         (Include): Specify <math.h> instead of isnanl.h.
34935         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
34936         HAVE_ISNAN[FDL].
34937         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
34938         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
34939         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
34940         * NEWS: Mention the change.
34941
34942 2008-10-18  Bruno Haible  <bruno@clisp.org>
34943
34944         Add getusershell(), setusershell(), endusershell() declarations to
34945         <unistd.h>.
34946         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
34947         declarations.
34948         * lib/getusershell.c: Include unistd.h.
34949         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
34950         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
34951         HAVE_GETUSERSHELL.
34952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
34953         and HAVE_GETUSERSHELL.
34954         * modules/getusershell (Depends-on): Add unistd, extensions.
34955         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34956         (Include): Specify <unistd.h>.
34957         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
34958         HAVE_GETUSERSHELL.
34959
34960 2008-10-18  Bruno Haible  <bruno@clisp.org>
34961
34962         Add a getloadavg() declaration to <stdlib.h>.
34963         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
34964         getloadavg declaration.
34965         (getloadavg): New declaration.
34966         * lib/getloadavg.c: Include <stdlib.h> first.
34967         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
34968         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
34969         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
34970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
34971         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34972         * modules/getloadavg (Depends-on): Add stdlib, extensions.
34973         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34974         (Include): Specify <stdlib.h>.
34975         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
34976         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
34977
34978 2008-10-18  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/dirchownmod.c: Don't include lchmod.h.
34981
34982         Move the lchmod() declaration to <sys/stat.h>.
34983         * lib/lchmod.h: Remove file.
34984         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
34985         (lchmod): New declaration, moved here from lib/lchown.h.
34986         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
34987         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
34988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
34989         and HAVE_LCHMOD.
34990         * modules/lchmod (Files): Remove lib/lchmod.h.
34991         (Depends-on): Add sys_stat, extensions.
34992         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
34993         (Include): Specify <sys/stat.h> instead of lchmod.h.
34994         * modules/sys_stat (Depends-on): Add link-warning.
34995         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
34996         definition of GL_LINK_WARNING.
34997         * NEWS: Mention the change.
34998
34999 2008-10-18  Bruno Haible  <bruno@clisp.org>
35000
35001         * lib/fchdir.c: Don't include dirfd.h.
35002         * lib/fts.c: Likewise.
35003         * lib/getcwd.c: Likewise.
35004         * lib/glob.c: Likewise.
35005
35006         Move the dirfd() declaration to <dirent.h>.
35007         * lib/dirfd.h: Remove file.
35008         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
35009         (dirfd): New declaration.
35010         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
35011         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
35012         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
35013         HAVE_DECL_DIRFD.
35014         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
35015         HAVE_DECL_DIRFD.
35016         * modules/dirfd (Files): Remove lib/dirfd.h.
35017         (Depends-on): Add dirent, extensions.
35018         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
35019         (Include): Specify <dirent.h> instead of dirfd.h.
35020         * modules/dirent (Depends-on): Add link-warning.
35021         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
35022         definition of GL_LINK_WARNING.
35023         * NEWS: Mention the change.
35024
35025 2008-10-18  Bruno Haible  <bruno@clisp.org>
35026
35027         Move the euidaccess() declaration to <unistd.h>.
35028         * lib/euidaccess.h: Remove file.
35029         * lib/unistd.in.h (euidaccess): New declaration.
35030         * lib/euidaccess.c: Don't include euidaccess.h.
35031         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
35032         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
35033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
35034         and HAVE_EUIDACCESS.
35035         * modules/euidaccess (Files): Remove lib/euidaccess.h.
35036         (Depends-on): Add unistd.
35037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35038         (Include): Specify <unistd.h> instead of euidaccess.h.
35039         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
35040         HAVE_EUIDACCESS.
35041         * NEWS: Mention the change.
35042
35043 2008-10-18  Bruno Haible  <bruno@clisp.org>
35044
35045         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
35046
35047         Move the getdomainname() declaration to <unistd.h>.
35048         * lib/getdomainname.h: Remove file.
35049         * lib/unistd.in.h (getdomainname): New declaration.
35050         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
35051         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
35052         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
35053         HAVE_GETDOMAINNAME.
35054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35055         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
35056         * modules/getdomainname (Files): Remove lib/getdomainname.h.
35057         (Depends-on): Add unistd, extensions.
35058         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35059         (Includes): Specify <unistd.h> instead of getdomainname.h.
35060         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
35061         HAVE_GETDOMAINNAME.
35062         * NEWS: Mention the change.
35063
35064 2008-10-18  Bruno Haible  <bruno@clisp.org>
35065
35066         * modules/dirent: New file.
35067         * m4/dirent_h.m4: New file.
35068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
35069         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
35070         * modules/fchdir (Files): Remove lib/dirent.in.h.
35071         (Depends-on): Add dirent.
35072         (Makefile.am): Move rules to modules/dirent.
35073         * doc/posix-headers/dirent.texi: Mention the new module.
35074
35075 2008-10-18  Bruno Haible  <bruno@clisp.org>
35076
35077         Avoid -Wunused-parameter warnings in public gnulib header files.
35078         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
35079         macro.
35080         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
35081
35082 2008-10-18  Bruno Haible  <bruno@clisp.org>
35083
35084         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
35085         * doc/glibc-functions/error.texi: Mention the module 'error'.
35086         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
35087         * doc/glibc-functions/getdomainname.texi: Mention the module
35088         'getdomainname'.
35089         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
35090         * doc/glibc-functions/getpagesize.texi: Mention the module
35091         'getpagesize'.
35092         * doc/glibc-functions/getusershell.texi: Mention the module
35093         'getusershell'.
35094         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
35095         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
35096         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
35097         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
35098         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
35099         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
35100         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
35101         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
35102         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
35103         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
35104         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
35105         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
35106         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
35107         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
35108
35109 2008-10-17  Bruno Haible  <bruno@clisp.org>
35110
35111         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
35112         HP-UX and IRIX, use -0.0L.
35113         * tests/test-ceill.c (minus_zero): Likewise.
35114         * tests/test-floorl.c (minus_zero): Likewise.
35115         * tests/test-frexpl.c (minus_zero): Likewise.
35116         * tests/test-isnan.c (minus_zerol): Likewise.
35117         * tests/test-isnanl.h (minus_zero): Likewise.
35118         * tests/test-ldexpl.c (minus_zero): Likewise.
35119         * tests/test-roundl.c (minus_zero): Likewise.
35120         * tests/test-signbit.c (minus_zerol): Likewise.
35121         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
35122         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
35123         * tests/test-truncl.c (minus_zero): Likewise.
35124         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
35125         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
35126         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
35127         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
35128
35129 2008-10-17  Bruno Haible  <bruno@clisp.org>
35130
35131         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
35132         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
35133         that it gets activated only for gcc >= 3.0.
35134         * lib/dirent.in.h: Likewise.
35135         * lib/errno.in.h: Likewise.
35136         * lib/fcntl.in.h: Likewise.
35137         * lib/float.in.h: Likewise.
35138         * lib/iconv.in.h: Likewise.
35139         * lib/inttypes.in.h: Likewise.
35140         * lib/locale.in.h: Likewise.
35141         * lib/math.in.h: Likewise.
35142         * lib/netdb.in.h: Likewise.
35143         * lib/netinet_in.in.h: Likewise.
35144         * lib/search.in.h: Likewise.
35145         * lib/signal.in.h: Likewise.
35146         * lib/spawn.in.h: Likewise.
35147         * lib/stdarg.in.h: Likewise.
35148         * lib/stdint.in.h: Likewise.
35149         * lib/stdio.in.h: Likewise.
35150         * lib/stdlib.in.h: Likewise.
35151         * lib/string.in.h: Likewise.
35152         * lib/strings.in.h: Likewise.
35153         * lib/sys_file.in.h: Likewise.
35154         * lib/sys_ioctl.in.h: Likewise.
35155         * lib/sys_select.in.h: Likewise.
35156         * lib/sys_socket.in.h: Likewise.
35157         * lib/sys_stat.in.h: Likewise.
35158         * lib/sys_time.in.h: Likewise.
35159         * lib/sysexits.in.h: Likewise.
35160         * lib/time.in.h: Likewise.
35161         * lib/unistd.in.h: Likewise.
35162         * lib/wchar.in.h: Likewise.
35163         * lib/wctype.in.h: Likewise.
35164         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35165
35166 2008-10-17  Jim Meyering  <meyering@redhat.com>
35167
35168         ignore-value: don't depend on inline module
35169         * modules/ignore-value (Depends-on): Remove 'inline'.
35170         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
35171         Suggestion from Bruno Haible.
35172
35173 2008-10-17  Bruno Haible  <bruno@clisp.org>
35174
35175         New implementation of condition variables for Win32.
35176         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
35177         (gl_linked_waitqueue_t): New type.
35178         (gl_cond_t): Use it.
35179         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
35180         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
35181         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
35182         (glthread_cond_init_func, glthread_cond_wait_func,
35183         glthread_cond_timedwait_func, glthread_cond_signal_func,
35184         glthread_cond_broadcast_func, glthread_cond_destroy_func):
35185         Reimplemented on the basis of gl_linked_waitqueue_t.
35186         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
35187         gl_waitqueue_t.
35188         (gl_rwlock_t): Update.
35189         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
35190
35191 2008-10-17  Simon Josefsson  <simon@josefsson.org>
35192
35193         * modules/recvfrom (Depends-on): Add dependency on getpeername.
35194         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35195
35196 2008-10-17  Jim Meyering  <meyering@redhat.com>
35197
35198         ignore-value: new module
35199         * modules/ignore-value: New file.
35200         * lib/ignore-value.h: New file.
35201         * MODULES.html.sh (Compiler warning management): New section,
35202         just for this module.  More to come.
35203
35204 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35205
35206         open-safer.c: avoid 'signed and unsigned in conditional...' warning
35207         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
35208         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
35209
35210 2008-10-16  Jim Meyering  <meyering@redhat.com>
35211
35212         openat-die.c: avoid 'no previous prototype' warning
35213         * lib/openat-die.c: Include "openat.h".
35214         Reported by Reuben Thomas <rrt@sc3d.org>.
35215
35216 2008-10-16  Simon Josefsson  <simon@josefsson.org>
35217
35218         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
35219         * lib/netdb.in.h: Fix typo.
35220         Reported by Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/netdb.in.h: Include sys/socket.h for platforms without
35223         netdb.h, to get structures like hostent on MinGW.
35224         * modules/netdb (Depends-on): Add sys_socket.
35225
35226 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35227
35228         * modules/netdb, modules/netdb-tests: New file.
35229         * m4/netdb_h.m4: New file.
35230         * lib/netdb.in.h: Add, currently just an empty file pending
35231         definitions.
35232         * tests/test-netdb.c: New file.
35233         * doc/posix-headers/netdb.texi: Mention that we replace it if
35234         needed.
35235         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35236         netdb.
35237
35238 2008-10-15  Simon Josefsson  <simon@josefsson.org>
35239
35240         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
35241         with code.
35242
35243 2008-10-13  Bruno Haible  <bruno@clisp.org>
35244
35245         * lib/glthread/cond.c (glthread_cond_wait_func,
35246         glthread_cond_timedwait_func): Add a comment.
35247
35248 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35249
35250         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
35251         * tests/test-select.c: Likewise,
35252
35253 2008-10-13  Bruno Haible  <bruno@clisp.org>
35254
35255         * lib/glthread/cond.c (glthread_cond_wait_func,
35256         glthread_cond_timedwait_func): Fix variable name.
35257         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
35258
35259 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
35260
35261         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
35262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
35263         struct sockaddr.sa_len.
35264         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
35265
35266 2008-10-13  Simon Josefsson  <simon@josefsson.org>
35267
35268         * build-aux/pmccabe2html: Add css and css_url parameters.
35269
35270 2008-10-12  Bruno Haible  <bruno@clisp.org>
35271
35272         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
35273         calling aclx_get.
35274         Reported by Rainer Tammer <tammer@tammer.net>.
35275
35276 2008-10-12  Bruno Haible  <bruno@clisp.org>
35277
35278         Use msvcrt aware primitives for creation/termination of Win32 threads.
35279         * lib/glthread/thread.c: Include <process.h>.
35280         (glthread_create_func): Use _beginthreadex instead of CreateThread.
35281         (wrapper_func): Update signature.
35282         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
35283
35284 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35285             Bruno Haible  <bruno@clisp.org>
35286
35287         Provide a Win32 implementation of the 'cond' module.
35288         * lib/glthread/cond.h [USE_WIN32]: New implementation.
35289         * lib/glthread/cond.c (glthread_cond_init_func,
35290         glthread_cond_wait_func, glthread_cond_timedwait_func,
35291         glthread_cond_signal_func, glthread_cond_broadcast_func,
35292         glthread_cond_destroy_func) [USE_WIN32]: New functions.
35293         * modules/cond (Dependencies): Add gettimeofday.
35294
35295 2008-10-11  Bruno Haible  <bruno@clisp.org>
35296
35297         Make sleep work on older versions of mingw.
35298         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
35299         only whether it exists.
35300         * doc/posix-functions/sleep.texi: Mention the problem with older
35301         versions of mingw.
35302
35303 2008-10-11  Bruno Haible  <bruno@clisp.org>
35304
35305         New module 'shutdown'.
35306         * modules/shutdown: New file.
35307         * lib/sys_socket.in.h (shutdown): New declaration.
35308         * lib/winsock.c (shutdown): New function.
35309         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
35310         GNULIB_SHUTDOWN.
35311         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
35312         * doc/posix-functions/shutdown.texi: Document the new module.
35313
35314 2008-10-11  Jim Meyering  <meyering@redhat.com>
35315
35316         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
35317
35318 2008-10-11  Bruno Haible  <bruno@clisp.org>
35319
35320         New module 'fclose'.
35321         * modules/fclose: New file.
35322         * lib/stdio.in.h (fclose): New declaration.
35323         * lib/fclose.c: New file.
35324         * m4/fclose.m4: New file.
35325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
35326         REPLACE_FCLOSE.
35327         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
35328         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
35329         REPLACE_FCLOSE.
35330         * modules/close (Depends-on): fclose.
35331         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
35332
35333 2008-10-11  Bruno Haible  <bruno@clisp.org>
35334
35335         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
35336         set errno and don't call _close.
35337
35338 2008-10-10  Bruno Haible  <bruno@clisp.org>
35339
35340         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
35341         ACL, not afterwards. Fixes test failure on Cygwin.
35342
35343 2008-10-09  Ben Pfaff  <blp@gnu.org>
35344
35345         * build-aux/announce-gen: Fix gnulib version related part of usage
35346         message.  Die with a useful error message if no tarballs are
35347         found.
35348
35349 2008-10-10  Jim Meyering  <meyering@redhat.com>
35350
35351         bootstrap: use git's --depth=N option only if it's supported
35352         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
35353         recognize the --depth option.  Reported by Pádraig Brady.
35354
35355 2008-10-09  Bruno Haible  <bruno@clisp.org>
35356
35357         New module 'ioctl'.
35358         * modules/ioctl: New file.
35359         * lib/sys_socket.in.h (ioctl): Remove declaration.
35360         * lib/winsock.c: Include <sys/ioctl.h>.
35361         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
35362         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35363         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
35364         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
35365         * doc/posix-functions/ioctl.texi: Mention the new module.
35366
35367 2008-10-09  Bruno Haible  <bruno@clisp.org>
35368
35369         New module 'sys_ioctl'.
35370         * lib/sys_ioctl.in.h: New file.
35371         * m4/sys_ioctl_h.m4: New file.
35372         * modules/sys_ioctl: New file.
35373         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
35374
35375 2008-10-09  Bruno Haible  <bruno@clisp.org>
35376
35377         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
35378         * lib/winsock.c: Include <stdarg.h>.
35379         (rpl_ioctl): Change to second argument 'int' and then varargs.
35380
35381 2008-10-09  Bruno Haible  <bruno@clisp.org>
35382
35383         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
35384         when the sys_socket module is present and the system has <winsock2.h>.
35385
35386 2008-10-09  Bruno Haible  <bruno@clisp.org>
35387
35388         * doc/posix-functions/close.texi: Mention module 'close' instead of
35389         module 'sys_socket'.
35390
35391 2008-10-09  Bruno Haible  <bruno@clisp.org>
35392
35393         * doc/glibc-headers/sys_ioctl.texi: New file.
35394         * doc/gnulib.texi: Include it.
35395
35396 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35397             Bruno Haible  <bruno@clisp.org>
35398
35399         Combine the two replacements of 'close'.
35400         * lib/sys_socket.in.h (close): Define to a reminder to include
35401         <unistd.h>.
35402         (_gl_close_fd_maybe_socket): New declaration.
35403         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
35404         * lib/winsock.c (close): Remove undefinition.
35405         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
35406         needed for the gnulib module 'close'.
35407         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
35408         define to an error symbol or to a warning, if suitable.
35409         * lib/close.c: Include <sys/socket.h>.
35410         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
35411         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
35412         UNISTD_H_HAVE_WINSOCK2_H.
35413         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
35414         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35415         UNISTD_H_HAVE_WINSOCK2_H.
35416         * modules/sys_socket (Files): Add m4/unistd_h.m4.
35417         (configure.ac): Set a module indicator.
35418         (Makefile.am): Substitute GNULIB_CLOSE.
35419         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
35420         * modules/poll-tests (Depends-on): Add close.
35421         * modules/select-tests (Depends-on): Likewise.
35422
35423 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35424             Bruno Haible  <bruno@clisp.org>
35425
35426         New module 'close'.
35427         * modules/close: New file.
35428         * lib/unistd.in.h (close): Move declaration out of the
35429         FCHDIR_REPLACEMENT scope.
35430         (_gl_unregister_fd): New declaration.
35431         * lib/close.c: New file.
35432         * lib/fchdir.c (rpl_close): Remove function.
35433         * m4/close.m4: New file.
35434         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35435         close.
35436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
35437         REPLACE_CLOSE.
35438         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
35439         REPLACE_CLOSE.
35440         * modules/fchdir (Depends-on): Add close.
35441
35442 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35443             Bruno Haible  <bruno@clisp.org>
35444
35445         * lib/fcntl.in.h (open): Simplify conditionals.
35446         (_gl_register_fd): New declaration.
35447         * lib/fchdir.c (rpl_open): Remove function.
35448         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
35449         also.
35450         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
35451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
35452         open.
35453
35454 2008-10-09  Jim Meyering  <meyering@redhat.com>
35455
35456         GNUmakefile: use the more name-space-friendly "_version"
35457         * top/GNUmakefile (_dummy): Update.
35458         (_version): Rename from "version".
35459
35460 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35461             Bruno Haible  <bruno@clisp.org>
35462
35463         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
35464         rpl_close.
35465         (_gl_register_fd): New function, extracted from rpl_open.
35466         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
35467         (rpl_open, rpl_opendir): Use _gl_register_fd.
35468
35469 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
35470
35471         Fix organization of 'open' replacement.
35472         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
35473         (gl_FUNC_OPEN): Use it.
35474         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
35475
35476 2008-10-08  Bruno Haible  <bruno@clisp.org>
35477
35478         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
35479
35480 2008-10-08  Simon Josefsson  <simon@josefsson.org>
35481
35482         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
35483         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
35484         listen).
35485
35486 2008-10-08  Eric Blake  <ebb9@byu.net>
35487
35488         GNUmakefile: add 'make version' target
35489         * top/GNUmakefile (_curr-ver): Split version update rules...
35490         (version): ...into a target.
35491
35492 2008-10-07  Bruno Haible  <bruno@clisp.org>
35493
35494         Use a more portable replacement expression for -0.0L.
35495         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
35496         instead of -0.0L. Fix m4 quotation.
35497
35498         * tests/test-signbit.c: Include <float.h>.
35499         (minus_zero): New variable.
35500         (test_signbitl): Use minus_zero instead of -zero.
35501         * modules/signbit-tests (Depends-on): Add float.
35502
35503         * tests/test-ceill.c: Include <float.h>.
35504         (zero): Remove variable.
35505         (minus_zero): New variable.
35506         (main): Use minus_zero instead of -zero.
35507         * modules/ceill-tests (Depends-on): Add float.
35508
35509         * tests/test-floorl.c: Include <float.h>.
35510         (zero): Remove variable.
35511         (minus_zero): New variable.
35512         (main): Use minus_zero instead of -zero.
35513         * modules/floorl-tests (Depends-on): Add float.
35514
35515         * tests/test-roundl.c: Include <float.h>.
35516         (zero): Remove variable.
35517         (minus_zero): New variable.
35518         (main): Use minus_zero instead of -zero.
35519         * modules/roundl-tests (Depends-on): Add float.
35520
35521         * tests/test-truncl.c: Include <float.h>.
35522         (zero): Remove variable.
35523         (minus_zero): New variable.
35524         (main): Use minus_zero instead of -zero.
35525         * modules/truncl-tests (Depends-on): Add float.
35526
35527         * tests/test-frexpl.c (zero): Remove variable.
35528         (minus_zero): New variable.
35529         (main): Use minus_zero instead of -zero.
35530         * modules/frexpl-tests (Depends-on): Add float.
35531
35532         * tests/test-isnan.c (zerol): Remove variable.
35533         (minus_zerol): New variable.
35534         (test_long_double): Use minus_zerol instead of -zerol.
35535         * modules/isnan-tests (Depends-on): Add float.
35536
35537         * tests/test-isnanl.h (zero): Remove variable.
35538         (minus_zero): New variable.
35539         (main): Use minus_zero instead of -zero.
35540         * modules/isnanl-nolibm-tests (Depends-on): Add float.
35541         * modules/isnanl-tests (Depends-on): Add float.
35542
35543         * tests/test-ldexpl.c (zero): Remove variable.
35544         (minus_zero): New variable.
35545         (main): Use minus_zero instead of -zero.
35546         * modules/ldexpl-tests (Depends-on): Add float.
35547
35548         * tests/test-snprintf-posix.h (zerol): Remove variable.
35549         (minus_zerol): New variable.
35550         (test_function): Use minus_zerol instead of -zerol.
35551         * modules/snprintf-posix-tests (Depends-on): Add float.
35552         * modules/vsnprintf-posix-tests (Depends-on): Add float.
35553
35554         * tests/test-sprintf-posix.h (zerol): Remove variable.
35555         (minus_zerol): New variable.
35556         (test_function): Use minus_zerol instead of -zerol.
35557         * modules/sprintf-posix-tests (Depends-on): Add float.
35558         * modules/vsprintf-posix-tests (Depends-on): Add float.
35559
35560         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
35561         (minus_zerol): New variable.
35562         (test_function): Use minus_zerol instead of -zerol.
35563         * modules/vasnprintf-posix-tests (Depends-on): Add float.
35564
35565         * tests/test-vasprintf-posix.c (zerol): Remove variable.
35566         (minus_zerol): New variable.
35567         (test_function): Use minus_zerol instead of -zerol.
35568         * modules/vasprintf-posix-tests (Depends-on): Add float.
35569
35570 2008-10-07  Simon Josefsson  <simon@josefsson.org>
35571
35572         * MODULES.html.sh (Support for building documentation): Mention
35573         pmccabe2html.  Sort entries.
35574
35575         Add pmccabe2html module, from gnupdf.
35576         * build-aux/pmccabe.css: New file.
35577         * build-aux/pmccabe2html: New file.
35578         * m4/pmccabe2html.m4: New file.
35579         * modules/pmccabe2html: New file.
35580
35581 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
35582
35583         flock: new module
35584         * MODULES.html.sh: Add to list of modules.
35585         * lib/flock.c: flock implementation for Windows and Unix systems
35586         which have fcntl.
35587         * doc/glibc-functions/flock.texi: Update documentation.
35588         * lib/sys_file.in.h: <sys/file.h> header file.
35589         * m4/flock.m4: M4 macros.
35590         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
35591         * modules/flock: flock module.
35592         * modules/flock-tests: flock tests module.
35593         * modules/sys_file: sys/file.h module.
35594         * tests/test-flock.c: test suite for flock.
35595
35596 2008-10-06  Jim Meyering  <meyering@redhat.com>
35597
35598         bootstrap: check for LT_INIT more portably still ;-)
35599         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
35600         Spotted by Bruno Haible.
35601
35602 2008-10-06  Eric Blake  <ebb9@byu.net>
35603
35604         test-signbit: avoid tripping Irix cc bug on -0.0L
35605         * tests/test-signbit.c (minus_zerol): Delete, and replace with
35606         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
35607         entire testsuite consistent and avoids an Irix 6.2 bug.
35608
35609 2008-10-05  Bruno Haible  <bruno@clisp.org>
35610             Jim Meyering  <jim@meyering.net>
35611
35612         Add an option for ignoring EPIPE during close_stdout.
35613         * lib/closeout.h: Include <stdbool.h>.
35614         (close_stdout_set_ignore_EPIPE): New declaration.
35615         * lib/closeout.c: Include <stdbool.h>.
35616         (ignore_EPIPE): New variable.
35617         (close_stdout_set_ignore_EPIPE): New function.
35618         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
35619         * lib/close-stream.c (close_stream): Mention the possible EPIPE
35620         failure.
35621         * modules/closeout (Depends-on): Add stdbool.
35622
35623 2008-10-05  Bruno Haible  <bruno@clisp.org>
35624
35625         * modules/accept: New file.
35626         * modules/bind: New file.
35627         * modules/connect: New file.
35628         * modules/getpeername: New file.
35629         * modules/getsockname: New file.
35630         * modules/getsockopt: New file.
35631         * modules/listen: New file.
35632         * modules/recv: New file.
35633         * modules/recvfrom: New file.
35634         * modules/send: New file.
35635         * modules/sendto: New file.
35636         * modules/setsockopt: New file.
35637         * modules/socket: New file.
35638         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
35639         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35640         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
35641         the particular module is requested. Add a link warning when the
35642         particular module is not requested.
35643         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
35644         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
35645         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
35646         the particular module is requested.
35647         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
35648         gl_SYS_SOCKET_H_DEFAULTS): New macros.
35649         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
35650         * modules/sys_socket (Depends-on): Add link-warning.
35651         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
35652         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
35653         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
35654         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
35655         GL_LINK_WARNING.
35656         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
35657         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
35658         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
35659         * doc/posix-functions/getpeername.texi: Mention the new module
35660         'getpeername'.
35661         * doc/posix-functions/getsockname.texi: Mention the new module
35662         'getsockname'.
35663         * doc/posix-functions/getsockopt.texi: Mention the new module
35664         'getsockopt'.
35665         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
35666         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
35667         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
35668         * doc/posix-functions/send.texi: Mention the new module 'send'.
35669         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
35670         * doc/posix-functions/setsockopt.texi: Mention the new module
35671         'setsockopt'.
35672         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
35673         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
35674         listen, connect, accept.
35675         * modules/select-tests (Depends-on): Likewise.
35676
35677 2008-10-05  Bruno Haible  <bruno@clisp.org>
35678
35679         * lib/winsock.c (strerror): Remove unused #undef.
35680         (rpl_close): Remove unused local variable.
35681
35682         * modules/sys_socket (Depends-on); Add errno.
35683
35684 2008-10-05  Bruno Haible  <bruno@clisp.org>
35685
35686         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
35687         (select): Add a link warning when the 'select' module is not used.
35688         * modules/sys_select (Depends-on): Add link-warning.
35689         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
35690         Suggested by Paolo Bonzini.
35691
35692 2008-10-05  Jim Meyering  <meyering@redhat.com>
35693
35694         bootstrap: check for LT_INIT more portably
35695         * build-aux/bootstrap: Avoid using grep -E, since it's not
35696         portable enough.  Suggestion from Bruno Haible.
35697
35698 2008-10-05  Bruno Haible  <bruno@clisp.org>
35699
35700         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
35701         as being fixed by gnulib.
35702
35703 2008-10-05  Bruno Haible  <bruno@clisp.org>
35704
35705         * modules/select-tests: New file, mostly copied from
35706         modules/sys_select-tests.
35707         * tests/test-select.c: New file, mostly copied from
35708         tests/test-sys_select.c.
35709         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
35710         * modules/sys_select-tests (Depends-on): Remove all dependencies.
35711         (Makefile.am): Remove test_sys_select_LDADD.
35712
35713         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
35714         to an undefined symbol, for an error message.
35715         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
35716         (gl_SYS_SELECT_H_DEFAULTS): New macro.
35717         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
35718         winsock-select.c here.
35719         * modules/sys_select (Files): Remove lib/winsock-select.c.
35720         (Depends-on): Remove alloca.
35721         (Makefile.am): Substitute GNULIB_SELECT.
35722         * modules/select: New file.
35723         * doc/posix-functions/select.texi: Update.
35724
35725 2008-10-05  Bruno Haible  <bruno@clisp.org>
35726
35727         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
35728         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
35729         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
35730         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
35731         getdtablesize.
35732         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35733         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35734
35735 2008-10-05  Bruno Haible  <bruno@clisp.org>
35736
35737         * modules/getdtablesize-tests: New file.
35738         * tests/test-getdtablesize.c: New file.
35739
35740         New module 'getdtablesize'.
35741         * lib/unistd.in.h (getdtablesize): New declaration.
35742         * lib/getdtablesize.c: New file.
35743         * m4/getdtablesize.m4: New file.
35744         * modules/getdtablesize: New file.
35745         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35746         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
35747         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
35748         HAVE_GETDTABLESIZE.
35749         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
35750
35751 2008-10-05  Bruno Haible  <bruno@clisp.org>
35752
35753         * modules/sched (Makefile.am): Fix typo.
35754         Reported by Simon Josefsson.
35755
35756 2008-10-05  Jim Meyering  <meyering@redhat.com>
35757
35758         bootstrap: check for LT_INIT, too
35759         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
35760         are deprecated.  Suggestion from Ralf Wildenhues.
35761
35762 2008-10-05  Bruno Haible  <bruno@clisp.org>
35763
35764         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
35765         overriding them by ours.
35766         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
35767
35768 2008-10-05  Jim Meyering  <meyering@redhat.com>
35769
35770         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
35771         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
35772         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
35773
35774 2008-10-04  Bruno Haible  <bruno@clisp.org>
35775
35776         * modules/dup2 (License): Change to LGPLv2+.
35777         * modules/sleep (License): Likewise.
35778         * modules/perror (License): Likewise.
35779         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
35780         Blake.
35781         * modules/signal (License): Likewise.
35782         * modules/sigprocmask (License): Likewise.
35783         * modules/raise (License): Change to LGPLv2+, with approval by Jim
35784         Meyering.
35785
35786 2008-10-04  Bruno Haible  <bruno@clisp.org>
35787
35788         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
35789         Reported by Rainer Tammer <tammer@tammer.net>.
35790
35791 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
35792             Bruno Haible  <bruno@clisp.org>
35793
35794         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
35795         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
35796         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
35797
35798 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
35799
35800         filevercmp: new module
35801         * lib/filevercmp.h: New function filevercmp comparing version strings.
35802         * lib/filevercmp.c: Implementation of filevercmp function.
35803         * modules/filevercmp: Module metadata.
35804         * tests/test-filevercmp.c: Unit test for new module.
35805         * modules/filevercmp-tests: Unit test metadata.
35806         * MODULES.html.sh: Add filevercmp module.
35807
35808 2008-10-03  Bruno Haible  <bruno@clisp.org>
35809
35810         * lib/c-ctype.h: Add comment.
35811         Reported by Jim Meyering.
35812
35813 2008-10-02  Bruno Haible  <bruno@clisp.org>
35814
35815         * modules/posix_spawn-internal (Depends-on): Add 'open'.
35816
35817 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35818
35819         * build-aux/bootstrap: Allow renaming bootstrap, and change the
35820         name of bootstrap.conf accordingly.
35821
35822 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35823
35824         * build-aux/bootstrap: Install git-merge-changelog configuration
35825         items into .gitconfig if needed.
35826
35827 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
35828
35829         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
35830         git repository, and initialize/update it accordingly.
35831
35832 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
35833
35834         * modules/fsync-tests: New file.
35835         * tests/test-fsync.c: New file.
35836
35837         New module 'fsync'.
35838         * lib/fsync.c: New file.
35839         * m4/fsync.m4: New file.
35840         * modules/fsync: New file.
35841         * lib/unistd.in.h (fsync): New declaration.
35842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
35843         GNULIB_FSYNC and HAVE_FSYNC.
35844         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
35845         * MODULES.html.sh (posix_functions): Add fsync.
35846         * doc/posix-functions/fsync.texi: Mention the new module.
35847
35848 2008-10-02  Jim Meyering  <meyering@redhat.com>
35849
35850         fts.c: sync with similar code from coreutils' remove.c
35851         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
35852         Guard also with "#if defined __linux__", since for now at least,
35853         this code is Linux-kernel-specific.
35854
35855 2008-10-02  Jim Meyering  <meyering@redhat.com>
35856
35857         fts: bug fixes
35858         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
35859         Include <sys/vfs.h>, not <sys/statfs.h>.
35860
35861         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
35862         Include <sys/vfs.h>, not <sys/statfs.h>.
35863
35864 2008-10-01  Bruno Haible  <bruno@clisp.org>
35865
35866         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
35867         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
35868         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
35869         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
35870         * doc/posix-functions/posix_spawnp.texi: Likewise.
35871         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
35872         whether posix_spawn actually works.
35873         * m4/pipe.m4 (gl_PIPE): Likewise.
35874         * modules/execute (Files): Add m4/posix_spawn.m4.
35875         * modules/pipe (Files): Add m4/posix_spawn.m4.
35876         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
35877
35878 2008-10-01  Jim Meyering  <meyering@redhat.com>
35879
35880         remove trailing spaces
35881         * NEWS: Likewise.
35882         * lib/poll.c (poll): Likewise.
35883         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
35884         * lib/winsock.c (rpl_close): Likewise.
35885         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
35886         * modules/yield: Likewise.
35887         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
35888         * tests/test-sys_select.c (connect_to_socket): Likewise.
35889
35890         fts.c: adjust a new interface to be more generally useful
35891         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
35892         (fts_build): Adjust caller.
35893
35894 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35895
35896         * modules/cond-tests: New file.
35897         * tests/test-cond.c: New file.
35898
35899 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35900             Bruno Haible  <bruno@clisp.org>
35901
35902         * modules/cond (Dependencies): Add errno, time.
35903         * lib/glthread/cond.h: Include <time.h>.
35904         (gl_cond_define, gl_cond_define_initialized): Use the same definition
35905         across platforms.
35906
35907 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35908             Bruno Haible  <bruno@clisp.org>
35909
35910         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
35911
35912 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35913             Bruno Haible  <bruno@clisp.org>
35914
35915         * modules/tls-tests (Depends-on): Add thread, yield.
35916         (configure.ac): Remove all checks.
35917         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
35918         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35919         gl_thread_self): Remove definitions. Include glthread/thread.h and
35920         glthread/yield.h instead.
35921         (test_tls): Pass an additional NULL argument to gl_thread_join.
35922
35923 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35924             Bruno Haible  <bruno@clisp.org>
35925
35926         * modules/lock-tests (Depends-on): Add thread, yield.
35927         (configure.ac): Remove all checks.
35928         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
35929         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
35930         gl_thread_self): Remove definitions. Include glthread/thread.h and
35931         glthread/yield.h instead.
35932         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
35933         additional NULL argument to gl_thread_join.
35934
35935 2008-09-30  Bruno Haible  <bruno@clisp.org>
35936
35937         Fix the Win32 implementation of the 'thread' module.
35938         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
35939         pointer type.
35940         (gl_thread_self): Invoke gl_thread_self_func.
35941         (gl_thread_self_func): New declaration.
35942         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
35943         (do_init_self_key, init_self_key): New functions.
35944         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
35945         Remove some fields.
35946         (running_threads, running_lock): Remove variables.
35947         (get_current_thread_handle): New function.
35948         (gl_thread_self_func, wrapper_func, glthread_create_func,
35949         glthread_join_func, gl_thread_exit_func): Largely rewritten and
35950         simplified.
35951
35952 2008-09-30  Bruno Haible  <bruno@clisp.org>
35953
35954         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
35955         files.
35956
35957 2008-09-30  Jim Meyering  <meyering@redhat.com>
35958
35959         fts.m4: correct the test for statfs.f_type
35960         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
35961         when checking for statfs.f_type.
35962
35963 2008-09-15  Simon Josefsson  <simon@josefsson.org>
35964
35965         tests: avoid some compiler warnings
35966         * tests/test-memchr.c (main): Pass NULL indirectly.
35967         * tests/test-getdate.c (main): Remove unused variable 'ret'.
35968
35969 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
35970
35971         getdate.y: disallow countable dayshifts like "4 yesterday ago"
35972         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
35973         exactly specified dayshifts.
35974         (dayshift): New rule.
35975         (rel): Add dayshift.
35976         (relative_time_table) [tomorrow, yesterday, today, now]:
35977         Use tDAY_SHIFT in place of tDAY_UNIT.
35978         * tests/test-getdate.c: Add tests for now-disallowed countable
35979         dayshifts, e.g., "4 yesterday ago".
35980
35981 2008-09-29  Bruno Haible  <bruno@clisp.org>
35982
35983         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
35984         * tests/test-posix_spawn1.in.sh: Renamed from
35985         tests/test-posix_spawn.in.sh.
35986         * tests/test-posix_spawn2.c: New file.
35987         * tests/test-posix_spawn2.in.sh: New file.
35988         * modules/posix_spawnp-tests (Files): Update.
35989         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
35990
35991 2008-09-29  Bruno Haible  <bruno@clisp.org>
35992
35993         Propagate effects of putenv/setenv/unsetenv to child processes.
35994         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
35995         * lib/pipe.c (create_pipe): Likewise.
35996
35997 2008-09-29  Bruno Haible  <bruno@clisp.org>
35998
35999         Enable use of shell scripts as executables in mingw.
36000         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
36001         run the program as a shell script.
36002         * lib/pipe.c (create_pipe): Likewise.
36003         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
36004         resulting array.
36005
36006 2008-09-29  Eric Blake  <ebb9@byu.net>
36007
36008         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
36009
36010 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
36011
36012         * doc/posix-functions/accept.texi: Update mingw problems.
36013         * doc/posix-functions/bind.texi: Update mingw problems.
36014         * doc/posix-functions/close.texi: Update mingw problems.
36015         * doc/posix-functions/connect.texi: Update mingw problems.
36016         * doc/posix-functions/getpeername.texi: Update mingw problems.
36017         * doc/posix-functions/getsockname.texi: Update mingw problems.
36018         * doc/posix-functions/getsockopt.texi: Update mingw problems.
36019         * doc/posix-functions/ioctl.texi: Update mingw problems.
36020         * doc/posix-functions/listen.texi: Update mingw problems.
36021         * doc/posix-functions/recv.texi: Update mingw problems.
36022         * doc/posix-functions/recvfrom.texi: Update mingw problems.
36023         * doc/posix-functions/select.texi: Update mingw problems.
36024         * doc/posix-functions/send.texi: Update mingw problems.
36025         * doc/posix-functions/sendto.texi: Update mingw problems.
36026         * doc/posix-functions/setsockopt.texi: Update mingw problems.
36027         * doc/posix-functions/socket.texi: Update mingw problems.
36028
36029 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
36030             Bruno Haible  <bruno@clisp.org>
36031
36032         * lib/sys_select.in.h: Include sys/time.h.
36033         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
36034         * modules/sys_select: Depend on sys_time.
36035         * tests/test-sys_select.c: Test that sys/select.h defines struct
36036         timeval fully.
36037
36038 2008-09-29  Bruno Haible  <bruno@clisp.org>
36039
36040         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
36041         * lib/sys_select.in.h: Likewise.
36042
36043 2008-09-29  Bruno Haible  <bruno@clisp.org>
36044
36045         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
36046
36047 2008-09-29  Bruno Haible  <bruno@clisp.org>
36048
36049         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
36050         Set LIBSOCKET instead of augmenting LIBS.
36051         * modules/sockets (Link): New section.
36052         * modules/sockets-tests (test_sockets_LDADD): New variable.
36053         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
36054         * modules/poll-tests (test_poll_LDADD): New variable.
36055         * NEWS: Document the change.
36056
36057 2008-09-29  Bruno Haible  <bruno@clisp.org>
36058
36059         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
36060         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
36061         ARPA_INET_H directly.
36062         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
36063
36064 2008-09-28  Bruno Haible  <bruno@clisp.org>
36065
36066         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
36067         from gl_HEADER_SYS_SOCKET.
36068         (gl_HEADER_SYS_SOCKET): Invoke it.
36069         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36070
36071 2008-09-28  Bruno Haible  <bruno@clisp.org>
36072
36073         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
36074         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
36075         Needed on OSF/1 4.0.
36076
36077 2008-09-28  Bruno Haible  <bruno@clisp.org>
36078
36079         Override open more carefully.
36080         * lib/open.c (orig_open): New function.
36081         (rpl_open): Use orig_open instead of open.
36082         * lib/fcntl.in.h: Add special invocation convention.
36083         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
36084         (gl_FUNC_OPEN): Invoke it.
36085
36086         Override freopen more carefully.
36087         * lib/freopen.c (orig_freopen): New function.
36088         (rpl_freopen): Use orig_freopen instead of freopen.
36089         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
36090         (gl_FUNC_FREOPEN): Invoke it.
36091
36092         Override fopen more carefully.
36093         * lib/fopen.c (orig_fopen): New function.
36094         (rpl_fopen): Use orig_fopen instead of fopen.
36095         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
36096         (gl_FUNC_FOPEN): Invoke it.
36097         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
36098
36099 2008-09-28  Bruno Haible  <bruno@clisp.org>
36100
36101         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
36102         SIGPIPE.
36103
36104 2008-09-28  Bruno Haible  <bruno@clisp.org>
36105
36106         * tests/test-sigaction.c (handler, main): Disable the check whether
36107         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
36108         glibc systems with LinuxThreads.
36109
36110 2008-09-28  Bruno Haible  <bruno@clisp.org>
36111
36112         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
36113
36114         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
36115         with AIX xlc.
36116         * lib/fcntl.in.h (open): Likewise.
36117         Reported by Rainer Tammer <tammer@tammer.net>.
36118
36119 2008-09-28  Bruno Haible  <bruno@clisp.org>
36120
36121         * modules/posix_spawnp-tests: New file.
36122         * tests/test-posix_spawn.c: New file.
36123         * tests/test-posix_spawn.in.sh: New file.
36124
36125         New module 'posix_spawnp'.
36126         * modules/posix_spawnp: New file.
36127         * lib/spawnp.c: New file, from GNU libc with modifications.
36128         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
36129
36130         New module 'posix_spawn'.
36131         * modules/posix_spawn: New file.
36132         * lib/spawn.c: New file, from GNU libc with modifications.
36133         * doc/posix-functions/posix_spawn.texi: Mention the new module.
36134
36135         New module 'posix_spawnattr_destroy'.
36136         * modules/posix_spawnattr_destroy: New file.
36137         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
36138         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
36139         module.
36140
36141         New module 'posix_spawnattr_setsigmask'.
36142         * modules/posix_spawnattr_setsigmask: New file.
36143         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
36144         modifications.
36145         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
36146         new module.
36147
36148         New module 'posix_spawnattr_getsigmask'.
36149         * modules/posix_spawnattr_getsigmask: New file.
36150         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
36151         modifications.
36152         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
36153         new module.
36154
36155         New module 'posix_spawnattr_setsigdefault'.
36156         * modules/posix_spawnattr_setsigdefault: New file.
36157         * lib/spawnattr_setdefault.c: New file, from GNU libc with
36158         modifications.
36159         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
36160         new module.
36161
36162         New module 'posix_spawnattr_getsigdefault'.
36163         * modules/posix_spawnattr_getsigdefault: New file.
36164         * lib/spawnattr_getdefault.c: New file, from GNU libc with
36165         modifications.
36166         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
36167         new module.
36168
36169         New module 'posix_spawnattr_setschedpolicy'.
36170         * modules/posix_spawnattr_setschedpolicy: New file.
36171         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
36172         modifications.
36173         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
36174         new module.
36175
36176         New module 'posix_spawnattr_getschedpolicy'.
36177         * modules/posix_spawnattr_getschedpolicy: New file.
36178         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
36179         modifications.
36180         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
36181         new module.
36182
36183         New module 'posix_spawnattr_setschedparam'.
36184         * modules/posix_spawnattr_setschedparam: New file.
36185         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
36186         modifications.
36187         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
36188         new module.
36189
36190         New module 'posix_spawnattr_getschedparam'.
36191         * modules/posix_spawnattr_getschedparam: New file.
36192         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
36193         modifications.
36194         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
36195         new module.
36196
36197         New module 'posix_spawnattr_setpgroup'.
36198         * modules/posix_spawnattr_setpgroup: New file.
36199         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
36200         modifications.
36201         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
36202         module.
36203
36204         New module 'posix_spawnattr_getpgroup'.
36205         * modules/posix_spawnattr_getpgroup: New file.
36206         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
36207         modifications.
36208         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
36209         module.
36210
36211         New module 'posix_spawnattr_setflags'.
36212         * modules/posix_spawnattr_setflags: New file.
36213         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
36214         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
36215         module.
36216
36217         New module 'posix_spawnattr_getflags'.
36218         * modules/posix_spawnattr_getflags: New file.
36219         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
36220         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
36221         module.
36222
36223         New module 'posix_spawnattr_init'.
36224         * modules/posix_spawnattr_init: New file.
36225         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
36226         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
36227         module.
36228
36229         New module 'posix_spawn_file_actions_destroy'.
36230         * modules/posix_spawn_file_actions_destroy: New file.
36231         * lib/spawn_faction_destroy.c: New file, from GNU libc with
36232         modifications.
36233         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
36234         the new module.
36235
36236         New module 'posix_spawn_file_actions_addopen'.
36237         * modules/posix_spawn_file_actions_addopen: New file.
36238         * lib/spawn_faction_addopen.c: New file, from GNU libc with
36239         modifications.
36240         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
36241         the new module.
36242
36243         New module 'posix_spawn_file_actions_adddup2'.
36244         * modules/posix_spawn_file_actions_adddup2: New file.
36245         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
36246         modifications.
36247         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
36248         the new module.
36249
36250         New module 'posix_spawn_file_actions_addclose'.
36251         * modules/posix_spawn_file_actions_addclose: New file.
36252         * lib/spawn_faction_addclose.c: New file, from GNU libc with
36253         modifications.
36254         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
36255         the new module.
36256
36257         New module 'posix_spawn_file_actions_init'.
36258         * modules/posix_spawn_file_actions_init: New file.
36259         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
36260         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
36261         new module.
36262
36263         New module 'posix_spawn-internal'.
36264         * modules/posix_spawn-internal: New file.
36265         * lib/spawn_int.h: New file, from GNU libc with modifications.
36266         * lib/spawni.c: New file, from GNU libc with modifications.
36267         * m4/posix_spawn.m4: New file.
36268
36269         New module 'spawn'.
36270         * modules/spawn: New file.
36271         * lib/spawn.in.h: New file, from GNU libc with modifications.
36272         * m4/spawn_h.m4: New file.
36273         * doc/posix-headers/spawn.texi: Mention the new module.
36274
36275 2008-09-28  Bruno Haible  <bruno@clisp.org>
36276
36277         * modules/sched-tests: New file.
36278         * tests/test-sched.c: New file.
36279
36280         New module 'sched'.
36281         * modules/sched: New file.
36282         * lib/sched.in.h: New file.
36283         * m4/sched_h.m4: New file.
36284         * doc/posix-headers/sched.texi: Mention the new module.
36285
36286 2008-09-27  Eric Blake  <ebb9@byu.net>
36287
36288         Fix previous patch, and tweak references to $0.
36289         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
36290         (func_version, func_gnulib_dir): Don't call this program
36291         gnulib-tool.
36292         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
36293         with using $0 in function.
36294         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
36295         (func_fatal_error): Reuse the name the user invoked us with.
36296
36297 2008-09-27  Bruno Haible  <bruno@clisp.org>
36298
36299         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
36300         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
36301         (gl_ICONV_H): Not here.
36302         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36303         instead of assigning ICONV_H directly.
36304
36305         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
36306         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
36307         WCHAR_H directly.
36308
36309 2008-09-27  Bruno Haible  <bruno@clisp.org>
36310
36311         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
36312         * modules/arpa_inet (Depends-on): Add link-warning.
36313         (Makefile.am): Insert the definition of GL_LINK-WARNING.
36314         * modules/unistd (Makefile.am): Likewise.
36315
36316 2008-09-26  Bruno Haible  <bruno@clisp.org>
36317
36318         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
36319         variables.
36320         (func_version): Essentially copied from gnulib-tool.
36321         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
36322         func_readlink): Copied from gnulib-tool.
36323
36324 2008-09-26  Bruno Haible  <bruno@clisp.org>
36325
36326         * gnulib-tool (func_version): Change directory to $gnulib_dir before
36327         invoking git-version-gen.
36328
36329 2008-09-26  Bruno Haible  <bruno@clisp.org>
36330
36331         * posix-modules: Update to directory names changed on 2008-01-19.
36332         Remove commas in output before splitting into words. No more need to
36333         avoid 'ftruncate' since 2007-02-19.
36334
36335 2008-09-26  Bruno Haible  <bruno@clisp.org>
36336
36337         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
36338
36339 2008-09-26  Bruno Haible  <bruno@clisp.org>
36340
36341         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
36342         * modules/fwriteerror (Depends-on): Add errno.
36343
36344 2008-09-26  Bruno Haible  <bruno@clisp.org>
36345
36346         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
36347         * tests/test-vc-list-files-cvs.sh: Likewise.
36348
36349 2008-09-26  Bruno Haible  <bruno@clisp.org>
36350
36351         * doc/posix-headers/sys_resource.texi: Reorder items.
36352
36353 2008-09-26  Jim Meyering  <meyering@redhat.com>
36354
36355         fts: tweak inode comparison function
36356         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
36357         inode numbers, as documented.
36358
36359         fts: sort dirent entries on inode number before traversing
36360         This avoids a quadratic, seek-related performance penalty when
36361         operating on a directory containing many entries (measurable at 10k;
36362         3.5 hours at 2 million entries with a cold cache) on certain types
36363         of file systems, including ext3 and ext4, but not tmpfs.
36364         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
36365         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
36366         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
36367         (fs_handles_readdir_ordered_dirents_efficiently): New function.
36368         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
36369         (fts_build): Set the stat.st_ino member from D_INO.
36370         If it is likely to be useful, sort dirent entries on inode number.
36371
36372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
36373         and the struct statfs.f_type member.
36374         * modules/fts (Depends-on): Add d-ino.
36375
36376 2008-09-26  Bruno Haible  <bruno@clisp.org>
36377
36378         * modules/sigpipe-die (Depends-on): Add sigpipe.
36379
36380         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
36381         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
36382         and GNULIB_STDIO_H_SIGPIPE are set.
36383         * lib/stdio-write.c: New file.
36384         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
36385         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36386         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36387         REPLACE_STDIO_WRITE_FUNCS.
36388         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
36389         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36390         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36391         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36392         * modules/stdio (Files): Add lib/stdio-write.c.
36393         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
36394         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
36395         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
36396         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
36397         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
36398         REPLACE_FPRINTF_POSIX.
36399         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
36400         REPLACE_PRINTF_POSIX.
36401         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
36402         REPLACE_VFPRINTF_POSIX.
36403         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
36404         REPLACE_VPRINTF_POSIX.
36405         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
36406         SIGPIPE issue.
36407         * doc/posix-functions/fputc.texi: Likewise.
36408         * doc/posix-functions/fputs.texi: Likewise.
36409         * doc/posix-functions/fwrite.texi: Likewise.
36410         * doc/posix-functions/printf.texi: Likewise.
36411         * doc/posix-functions/putc.texi: Likewise.
36412         * doc/posix-functions/putchar.texi: Likewise.
36413         * doc/posix-functions/puts.texi: Likewise.
36414         * doc/posix-functions/vfprintf.texi: Likewise.
36415         * doc/posix-functions/vprintf.texi: Likewise.
36416
36417         * modules/safe-write (Depends-on): Add write.
36418
36419         * modules/sigpipe-tests: New file.
36420         * tests/test-sigpipe.c: New file.
36421         * tests/test-sigpipe.sh: New file.
36422
36423         * modules/write: New file.
36424         * lib/unistd.in.h: Include <sys/types.h>.
36425         (write): New declaration.
36426         * lib/write.c: New file.
36427         * m4/write.m4: New file.
36428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36429         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
36430         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
36431         GNULIB_WRITE, REPLACE_WRITE.
36432         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
36433         and the SIGPIPE issue.
36434
36435         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
36436         (raise): New declaration.
36437         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
36438         (ext_signal): New function.
36439         (rpl_raise): New function.
36440         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
36441         GNULIB_SIGNAL_H_SIGPIPE.
36442         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
36443         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
36444
36445         * modules/sigpipe: New file.
36446         * m4/sigpipe.m4: New file.
36447
36448 2008-09-25  Derek Price  <derek@ximbiot.com>
36449             Bruno Haible  <bruno@clisp.org>
36450
36451         * gnulib-tool (func_import): Report all license incompatibilities, not
36452         just the first one.
36453
36454 2008-09-25  Bruno Haible  <bruno@clisp.org>
36455
36456         * gnulib-tool (func_import): When computing the edits, consider not
36457         only the Makefile.ams that exist but also those that will be generated.
36458
36459 2008-09-25  Simon Josefsson  <simon@josefsson.org>
36460
36461         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
36462         fixes gnulib-tool --test warning about duplicate dependency.
36463
36464 2008-09-25  Bruno Haible  <bruno@clisp.org>
36465
36466         * gnulib-tool: Don't ask the user to perform edits in the generated
36467         Makefile.ams.
36468         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
36469         apply to the Makefile.am being generated.
36470         (func_emit_tests_Makefile_am): Execute edits that apply to the
36471         Makefile.am being generated.
36472         (func_import): Setup list of Makefile.am edits before emitting the
36473         Makefile.ams, not at the end.
36474         (func_create_testdir): Update.
36475         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36476
36477 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36478
36479         * gnulib-tool (func_import): Store the --tests-base option in the
36480         comment in gnulib-cache.m4.
36481
36482 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
36483
36484         * NEWS: Document increased portability that sys_select now provides.
36485
36486         * lib/sys_select.in.h: Install select wrapper.
36487         * lib/sys_socket.in.h: Use more descriptive name when there is no
36488         select wrapper.
36489         * lib/winsock-select.c: New.
36490         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
36491         Require gl_HEADER_SYS_SOCKET.
36492         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
36493         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
36494         * tests/test-sys_select.c: Add functional tests.
36495
36496 2008-09-24  Eric Blake  <ebb9@byu.net>
36497
36498         open, fopen: close fd leak in last patch
36499         * lib/open.c (rpl_open): Close fd before returning error.
36500         * lib/fopen.c (rpl_fopen): Close fd before returning error.
36501         * doc/posix-functions/open.texi (open): Document that Irix also
36502         has the bug.
36503         * doc/posix-functions/fopen.texi (fopen): Likewise.
36504         Reported by Paolo Bonzini.
36505
36506 2008-09-24  Bruno Haible  <bruno@clisp.org>
36507
36508         Ensure that a filename ending in a slash cannot be used to access a
36509         non-directory.
36510         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
36511         to check whether it's really a directory.
36512         * lib/fopen.c: Include fcntl.h, unistd.h.
36513         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
36514         and fdopen().
36515         * modules/fopen (Depends-on): Add unistd.
36516         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
36517         * tests/test-fopen.c (main): Likewise.
36518         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
36519         * doc/posix-functions/fopen.texi: Likewise.
36520         Reported by Eric Blake.
36521
36522 2008-09-23  Eric Blake  <ebb9@byu.net>
36523
36524         c-stack: avoid compiler optimizations when provoking overflow
36525         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
36526         recursion harder to optimize, to ensure a stack overflow occurs.
36527         * tests/test-c-stack.c (recurse): Likewise.
36528         Borrowed from libsigsegv.
36529
36530         c-stack: work around Irix sigaltstack bug
36531         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
36532         whether sigaltstack uses wrong end of stack_t (copied in part from
36533         libsigsegv).
36534         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
36535         Irix bug, without requiring an over-allocation.
36536         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
36537         bug.
36538
36539         fopen: document mingw bug on directories
36540         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
36541         not allowing a stream visiting a directory, even though reading
36542         from such a stream is not portable.
36543
36544 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36545
36546         * lib/poll.c: Rewrite.
36547         * modules/poll: Depend on alloca.
36548
36549 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36550
36551         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
36552         instead define prototypes for a full set of wrappers.  Ensure
36553         that Cygwin does not use the compatibility code, which is only
36554         for MinGW.
36555         * lib/winsock.c: New.
36556         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
36557         * modules/sys_socket: Add lib/winsock.c.
36558
36559         * modules/poll-tests: Add errno and perror.
36560         * tests/test-poll.c: Use ioctl, not ioctlsocket.
36561
36562 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
36563
36564         * tests/test-poll.c: Downgrade minimum needed Winsock version.
36565
36566 2008-09-23  Bruno Haible  <bruno@clisp.org>
36567
36568         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
36569         * doc/glibc-functions/*: Likewise.
36570
36571 2008-09-23  Simon Josefsson  <simon@josefsson.org>
36572
36573         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
36574         success.
36575
36576 2008-09-22  Eric Blake  <ebb9@byu.net>
36577             Bruno Haible  <bruno@clisp.org>
36578
36579         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
36580         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
36581         supply %A but mishandle pseudo-NaN.
36582         Reported by Simon Josefsson.
36583
36584 2008-09-21  Bruno Haible  <bruno@clisp.org>
36585
36586         * tests/test-lock.c (main): Tweak skip message.
36587         * tests/test-tls.c (main): Likewise.
36588
36589 2008-09-21  Bruno Haible  <bruno@clisp.org>
36590
36591         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
36592         whether 'struct sigaction' has sa_sigaction here...
36593         (gl_PREREQ_SIG_HANDLER_H): ... not here.
36594         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
36595
36596 2008-09-21  Bruno Haible  <bruno@clisp.org>
36597
36598         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
36599         section.
36600         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
36601         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
36602         the new section.
36603         (Support for obsolete systems lacking POSIX:2001): New section.
36604         (String handling <string.h>): Move strdup to the new section.
36605         Suggested by Simon Josefsson and Paolo Bonzini.
36606
36607 2008-09-21  Bruno Haible  <bruno@clisp.org>
36608
36609         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
36610         exponents in %e and %g results on 'long double'. Needed for mingw's
36611         improved *printf functions.
36612         * tests/test-vasprintf-posix.c (test_function): Likewise.
36613         * tests/test-snprintf-posix.h (test_function): Likewise.
36614         * tests/test-sprintf-posix.h (test_function): Likewise.
36615         Reported by Eric Blake.
36616
36617 2008-09-21  Bruno Haible  <bruno@clisp.org>
36618
36619         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
36620         * tests/test-sprintf-posix.h (test_function): Likewise.
36621
36622 2008-09-21  Bruno Haible  <bruno@clisp.org>
36623
36624         * modules/getpass (Depends-on): Add strdup-posix.
36625
36626         New module 'strdup-posix'.
36627         * modules/strdup-posix: New file.
36628         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
36629         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
36630         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36631         REPLACE_STRDUP.
36632         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
36633         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
36634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36635         strdup-posix.
36636
36637         * modules/strdup (Depends-on): Remove malloc-posix.
36638
36639 2008-09-20  Bruno Haible  <bruno@clisp.org>
36640
36641         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
36642         Wildenhues.
36643
36644 2008-09-20  Bruno Haible  <bruno@clisp.org>
36645
36646         Ensure that wint_t gets defined on IRIX 5.3.
36647         * lib/wchar.in.h (wint_t): Define if not defined by the system.
36648         * lib/wctype.in.h (wint_t): Likewise.
36649         (__wctype_wint_t): Remove type.
36650         (isw*): Use wint_t instead of __wctype_wint_t.
36651         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
36652         * modules/wchar (Files): Add m4/wint_t.m4.
36653         (Makefile.am): Substitute HAVE_WINT_T.
36654         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
36655         * tests/test-wctype.c: Check that wint_t is defined.
36656         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
36657         * doc/posix-headers/wctype.texi: Likewise.
36658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36659
36660 2008-09-18  Bruno Haible  <bruno@clisp.org>
36661
36662         * gnulib-tool (func_exit): Update comment.
36663
36664 2008-09-18  Simon Josefsson  <simon@josefsson.org>
36665
36666         * modules/getaddrinfo (Depends-on): Remove strdup, this module
36667         assumes strdup exists and does not depend on strdup to return
36668         ENOMEM on out of memory conditions.
36669
36670 2008-09-18  Bruno Haible  <bruno@clisp.org>
36671
36672         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
36673         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
36674         digits for the exponent.
36675
36676 2008-09-18  Jim Meyering  <meyering@redhat.com>
36677             Bruno Haible  <bruno@clisp.org>
36678
36679         * lib/vasnprintf.c (decimal_point_char): Define also if
36680         NEED_PRINTF_INFINITE_LONG_DOUBLE.
36681
36682 2008-09-16  Bruno Haible  <bruno@clisp.org>
36683         and Eric Blake  <ebb9@byu.net>
36684
36685         vasnprintf: support Irix 5.3
36686         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
36687         that mishandle long double infinity.
36688         Reported by Tom G. Christensen.
36689
36690 2008-09-16  Bruno Haible  <bruno@clisp.org>
36691
36692         * doc/glibc-functions/scandir.texi: Mention the function is missing on
36693         Solaris 9.
36694         * doc/glibc-functions/alphasort.texi: Likewise.
36695         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
36696
36697 2008-09-16  Jim Meyering  <meyering@redhat.com>
36698
36699         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
36700         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
36701         a umask modification leak out of a subshell.  Otherwise, the
36702         opensolaris /bin/sh would be accepted and thus cause unwarranted
36703         failures in the coreutils test suite.
36704
36705 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
36706
36707         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
36708         to succeed.
36709
36710 2008-09-16  Jim Meyering  <meyering@redhat.com>
36711
36712         avoid spurious test failure when library is built without ACL support
36713         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
36714         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
36715         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
36716         * tests/test-copy-acl.sh: Likewise.
36717
36718 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36719
36720         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
36721         based on character occurrence counts.
36722
36723 2008-09-15  Eric Blake  <ebb9@byu.net>
36724
36725         tests: avoid some compiler warnings
36726         * tests/test-memchr.c (main): Pass NULL indirectly.
36727         * tests/test-closein.c (main): Avoid unused variable.
36728
36729 2008-09-15  Bruno Haible  <bruno@clisp.org>
36730
36731         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
36732         are missing on OpenBSD 4.0 individually.
36733         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36734
36735 2008-09-15  Bruno Haible  <bruno@clisp.org>
36736
36737         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
36738         * doc/posix-functions/strerror.texi: Mention also Cygwin.
36739         * doc/posix-functions/perror.texi: Likewise.
36740         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
36741         is missing.
36742         Reported by Eric Blake.
36743
36744         * lib/errno.in.h: Use replacement values >= 2000.
36745         Reported by Eric Blake.
36746
36747 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36748
36749         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
36750         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
36751         limit.
36752         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
36753         compareseq was aborted.
36754
36755 2008-09-14  Bruno Haible  <bruno@clisp.org>
36756
36757         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
36758         yvec_edit_count.
36759         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
36760         (fstrcmp_bounded): Simplify result computation accordingly.
36761
36762 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36763
36764         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
36765         (fstrcmp): Define in terms of fstrcmp_bounded.
36766         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
36767         lower_bound argument.
36768         Return quickly if the result is certainly < lower_bound.
36769         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
36770
36771 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36772
36773         * lib/diffseq.h (EARLY_ABORT): New macro.
36774         (compareseq): Change return type to bool. Return true when EARLY_ABORT
36775         evaluates to true.
36776
36777 2008-09-14  Bruno Haible  <bruno@clisp.org>
36778
36779         * modules/perror-tests: New file.
36780         * tests/test-perror.sh: New file.
36781         * tests/test-perror.c: New file.
36782
36783         New module 'perror'.
36784         * lib/stdio.in.h (perror): New declaration.
36785         * lib/perror.c: New file.
36786         * m4/perror.m4: New file.
36787         * modules/perror: New file.
36788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
36789         * doc/posix-functions/perror.texi: Mention the perror module.
36790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
36791         REPLACE_PERROR.
36792         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
36793         REPLACE_PERROR.
36794
36795 2008-09-14  Bruno Haible  <bruno@clisp.org>
36796
36797         * modules/stdio (Makefile.am): Reorder to match the order in
36798         lib/stdio.in.h.
36799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36800
36801 2008-09-13  Bruno Haible  <bruno@clisp.org>
36802
36803         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
36804
36805 2008-09-13  Bruno Haible  <bruno@clisp.org>
36806
36807         Extend strerror to cover the added errno values.
36808         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
36809         (rpl_strerror): Provide error messages for the added errno values and
36810         for the WSA* values.
36811         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
36812         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
36813         strerror.
36814         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
36815         * modules/strerror (Depends-on): Add errno.
36816         * doc/posix-functions/strerror.texi: Document the change.
36817         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
36818         and EOVERFLOW.
36819
36820 2008-09-13  Bruno Haible  <bruno@clisp.org>
36821
36822         * modules/EOVERFLOW: Remove file.
36823         * m4/eoverflow.m4: Remove file.
36824         * modules/EOVERFLOW-tests: Remove file.
36825         * tests/test-EOVERFLOW.c: Remove file.
36826         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
36827         * modules/ftell (Depends-on): Likewise.
36828         * modules/getdelim (Depends-on): Likewise.
36829         * modules/getugroups (Depends-on): Likewise.
36830         * modules/poll (Depends-on): Likewise.
36831         * modules/snprintf (Depends-on): Likewise.
36832         * modules/sprintf-posix (Depends-on): Likewise.
36833         * modules/vasnprintf (Depends-on): Likewise.
36834         * modules/vasprintf (Depends-on): Likewise.
36835         * modules/vfprintf-posix (Depends-on): Likewise.
36836         * modules/vsnprintf (Depends-on): Likewise.
36837         * modules/vsprintf-posix (Depends-on): Likewise.
36838         * modules/xvasprintf (Depends-on): Likewise.
36839         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36840         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
36841         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
36842         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
36843         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36844         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
36845         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
36846         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
36847         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36848         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
36849         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
36850         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
36851         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36852         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
36853         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
36854         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
36855         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36856         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
36857         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
36858         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
36859         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36860         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
36861         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
36862         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
36863         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
36864         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36865         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
36866         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
36867         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
36868         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
36869         * MODULES.html.sh: Remove EOVERFLOW.
36870         * NEWS: Mention the change.
36871
36872 2008-09-13  Bruno Haible  <bruno@clisp.org>
36873
36874         * modules/errno-tests: New file.
36875         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
36876
36877         * lib/errno.in.h: New file.
36878         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
36879         * modules/errno: New file.
36880         * doc/posix-headers/errno.texi: Update documentation.
36881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
36882
36883 2008-09-13  Bruno Haible  <bruno@clisp.org>
36884
36885         * tests/test-poll.c: Use #if for native Windows, rather than testing
36886         __MSVCRT__.
36887
36888 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36889             Bruno Haible  <bruno@clisp.org>
36890
36891         * lib/glob.c: Don't include <pwd.h> on native Windows.
36892         (WINDOWS32): New macro.
36893         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
36894
36895 2008-09-13  Bruno Haible  <bruno@clisp.org>
36896
36897         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
36898         (ETIMEDOUT): Remove macro.
36899         (glthread_cond_timedwait_multithreaded): New declaration.
36900         (glthread_cond_timedwait): Use it.
36901         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
36902         (glthread_cond_timedwait_multithreaded): New function.
36903
36904 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36905
36906         * modules/poll-tests: Do not check for io.h.
36907         * tests/test-poll.c: Check for __MSVCRT__ instead.
36908
36909 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36910
36911         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
36912         * modules/poll-tests: Add inet_pton, stdbool, sockets.
36913         * tests/test-poll.c: Use them.  Use _pipe on Windows.
36914
36915 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
36916
36917         * modules/poll-tests: New.
36918         * tests/test-poll.c: New.
36919
36920 2008-09-12  Eric Blake  <ebb9@byu.net>
36921
36922         frexp: test for NetBSD failure on -0.0
36923         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
36924         not all, bugs from NetBSD 3.0 have been fixed.
36925         * doc/posix-functions/frexp.texi (frexp): Document bug.
36926         Reported by Thomas Klausner.
36927
36928         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
36929         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
36930         literal -0.0.
36931         Reported by Jonathan C. Patschke <jp@centtech.com>.
36932
36933 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36934
36935         * lib/glthread/cond.h: Use dummy implementation also if
36936         USE_WIN32_THREADS.
36937
36938 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36939
36940         * modules/fnmatch-posix (License): Change to LGPLv2+.
36941         * modules/fnmatch-gnu (License): Likewise.
36942
36943 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36944
36945         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
36946
36947 2008-09-11  Jim Meyering  <meyering@redhat.com>
36948
36949         * users.txt: Add gtk-vnc.
36950
36951 2008-09-08  Simon Josefsson  <simon@josefsson.org>
36952
36953         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
36954         rotate amounts.
36955
36956         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
36957         required for 16-bit and 8-bit rotates.
36958         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
36959         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
36960         UINT8_MAX instead of hard-coded constants.
36961         Suggested by Paul Eggert.
36962
36963 2008-09-07  Bruno Haible  <bruno@clisp.org>
36964
36965         * tests/test-striconveh.c (main): Check behaviour when converting from
36966         UTF-7.
36967
36968         Make striconveh work better with stateful encodings.
36969         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
36970         that iconv does not increment the inptr when returning -1/EINVAL.
36971
36972 2008-09-07  Bruno Haible  <bruno@clisp.org>
36973
36974         * build-aux/config.rpath: Update according to libtool-2.2.6.
36975         * build-aux/config.libpath: Likewise.
36976
36977 2008-09-06  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
36980         * lib/freadptr.c (freadptr): Likewise.
36981         * lib/freadseek.c (freadptrinc): Likewise.
36982         Reported by Simon Josefsson.
36983
36984 2008-09-06  Bruno Haible  <bruno@clisp.org>
36985
36986         * modules/freadptr (License): Change to LGPLv2+.
36987         * modules/freadseek (License): Likewise.
36988         Suggested by Eric Blake.
36989
36990         * modules/memchr2 (License): Change to LGPLv2+.
36991         Approved by Eric Blake.
36992
36993 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36994             Bruno Haible  <bruno@clisp.org>
36995
36996         Make gnulib-tool work with native 'sed' on AIX.
36997         * gnulib-tool (sed_noop): New variable.
36998         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
36999         func_add_or_update, func_create_testdir): Use it to initialize sed
37000         script variables.
37001         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
37002
37003 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
37004             Bruno Haible  <bruno@clisp.org>
37005
37006         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
37007         also works after #include directives.
37008
37009 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
37010
37011         getdate.y: reject an out-of-range timezone value
37012         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
37013         the range [-24...+24].  When specified with only one or two digits,
37014         * tests/test-getdate.c: Tests for the fix.
37015         * doc/getdate.texi: Document this change.
37016
37017 2008-09-03  Bruno Haible  <bruno@clisp.org>
37018
37019         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
37020
37021 2008-09-02  Simon Josefsson  <simon@josefsson.org>
37022
37023         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
37024         <bruce.korb@gmail.com> with ideas from Ben Pfaff
37025         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
37026         Blake <ebb9@byu.net>.
37027
37028         * tests/test-bitrotate.c: Add more test vectors.
37029
37030 2008-09-02  Eric Blake  <ebb9@byu.net>
37031
37032         vasnprintf-posix: handle large precision via %.*d
37033         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
37034         when handling it ourselves.
37035         * tests/test-vasnprintf-posix.c (test_function): Add test.
37036         * tests/test-snprintf-posix.h (test_function): Likewise.
37037         * tests/test-sprintf-posix.h (test_function): Likewise.
37038         * tests/test-vasprintf-posix.c (test_function): Likewise.
37039         Reported by Alain Guibert.
37040
37041 2008-09-01  Eric Blake  <ebb9@byu.net>
37042
37043         c-stack: make configure-time check more robust
37044         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
37045         successful sigaction call.
37046         Reported by Tom G. Christensen.
37047
37048 2008-09-01  Bruno Haible  <bruno@clisp.org>
37049
37050         New module 'findprog-lgpl'.
37051         * modules/findprog-lgpl: New file.
37052         * lib/findprog-lgpl.c: New file.
37053         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
37054         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
37055         to decide whether to use strdup or xstrdup, concatenated_filename or
37056         xconcatenated_filename.
37057
37058 2008-09-01  Bruno Haible  <bruno@clisp.org>
37059
37060         Split module 'concat-filename' into 'concat-filename' (LGPL) and
37061         'xconcat-filename' (GPL).
37062         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
37063         (License): Change to LGPLv2+.
37064         * modules/xconcat-filename: New file.
37065         * lib/concat-filename.h (concatenated_filename): Change specification.
37066         (xconcatenated_filename): New declaration.
37067         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
37068         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
37069         memory situations.
37070         * lib/xconcat-filename.c: New file.
37071         * NEWS: Mention the change.
37072         * lib/findprog.c: Include concat-filename.h, not filename.h.
37073         (find_in_path): Use xconcatenated_filename instead of
37074         concatenated_filename.
37075         * lib/javacomp.c: Include concat-filename.h, not filename.h.
37076         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
37077         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
37078         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
37079         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
37080         instead of concatenated_filename.
37081         * lib/javaexec.c: Include concat-filename.h, not filename.h.
37082         (execute_java_class): Use xconcatenated_filename instead of
37083         concatenated_filename.
37084         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
37085         * modules/javacomp (Depends-on): Likewise.
37086         * modules/javaexec (Depends-on): Likewise.
37087
37088 2008-09-01  Bruno Haible  <bruno@clisp.org>
37089
37090         Split module 'filename' into 'filename' and 'concat-filename'.
37091         * modules/filename: Keep only lib/filename.h.
37092         (License): Change to LGPLv2+.
37093         * modules/concat-filename: New file, extracted from modules/filename.
37094         * lib/filename.h (concatenated_filename): Remove declaration.
37095         * lib/concat-filename.h: New file, extracted from lib/filename.h.
37096         * lib/concat-filename.c: Include concat-filename.h.
37097         * NEWS: Mention the change.
37098
37099 2008-09-01  Simon Josefsson  <simon@josefsson.org>
37100
37101         * lib/bitrotate.h (rotl8, rotr8): Add.
37102
37103         * modules/bitrotate (configure.ac): Need
37104         AC_REQUIRE([AC_C_INLINE]).
37105         (Description): Mention stdint.h.  Reported by Bruno Haible
37106         <bruno@clisp.org>.
37107
37108         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
37109         Paolo Bonzini <bonzini@gnu.org>.
37110
37111 2008-08-31  Bruno Haible  <bruno@clisp.org>
37112
37113         Assume Solaris specific bi-arch conventions on Solaris systems.
37114         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
37115         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
37116         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
37117         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
37118         like acl_libdirstem.
37119         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
37120         acl_libdirstem.
37121         * NEWS: Mention the change.
37122         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
37123
37124 2008-08-31  Jim Meyering  <meyering@redhat.com>
37125
37126         * lib/strftime.h: Add comments describing the two added arguments.
37127
37128         remove duplicate #include directives
37129         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
37130         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
37131
37132 2008-08-31  Bruno Haible  <bruno@clisp.org>
37133
37134         New module 'sigpipe-die'.
37135         * modules/sigpipe-die: New file.
37136         * lib/sigpipe-die.h: New file.
37137         * lib/sigpipe-die.c: New file.
37138         * MODULES.html.sh (Signal handling): Add sigpipe-die.
37139
37140 2008-08-31  Bruno Haible  <bruno@clisp.org>
37141
37142         Don't override previously installed signal handlers.
37143         * lib/fatal-signal.c (saved_sigactions): New variable.
37144         (uninstall_handlers): Reset the signal to the saved handler, not
37145         to SIG_DFL (except when ignored).
37146         (install_handlers): Save the previous handlers.
37147
37148 2008-08-30  Bruno Haible  <bruno@clisp.org>
37149
37150         * gnulib-tool (func_reset_sigpipe): New function.
37151         (func_get_automake_snippet, func_modules_transitive_closure,
37152         func_import): Invoke it before a join command that reads from stdin,
37153         to avoid "echo: write error: Broken pipe" error messages on stderr.
37154         Reported by Sam Steingold <sds@gnu.org>.
37155
37156 2008-08-30  Bruno Haible  <bruno@clisp.org>
37157
37158         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
37159         Code copied from m4/open.m4.
37160         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
37161         access and the filename ends in a slash. Code copied from lib/open.c.
37162         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
37163         * tests/test-fopen.c (main): Check against bug with trailing slash.
37164
37165 2008-08-29  Bruno Haible  <bruno@clisp.org>
37166
37167         Avoid some "gcc -pedantic" warnings.
37168         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
37169         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
37170         * lib/dirent.in.h: Likewise.
37171         * lib/fcntl.in.h: Likewise.
37172         * lib/float.in.h: Likewise.
37173         * lib/iconv.in.h: Likewise.
37174         * lib/inttypes.in.h: Likewise.
37175         * lib/locale.in.h: Likewise.
37176         * lib/math.in.h: Likewise.
37177         * lib/netinet_in.in.h: Likewise.
37178         * lib/search.in.h: Likewise.
37179         * lib/signal.in.h: Likewise.
37180         * lib/stdarg.in.h: Likewise.
37181         * lib/stdint.in.h: Likewise.
37182         * lib/stdio.in.h: Likewise.
37183         * lib/stdlib.in.h: Likewise.
37184         * lib/string.in.h: Likewise.
37185         * lib/strings.in.h: Likewise.
37186         * lib/sys_select.in.h: Likewise.
37187         * lib/sys_socket.in.h: Likewise.
37188         * lib/sys_stat.in.h: Likewise.
37189         * lib/sys_time.in.h: Likewise.
37190         * lib/sysexits.in.h: Likewise.
37191         * lib/time.in.h: Likewise.
37192         * lib/unistd.in.h: Likewise.
37193         * lib/wchar.in.h: Likewise.
37194         * lib/wctype.in.h: Likewise.
37195         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
37196         * modules/fchdir (Makefile.am): Likewise.
37197         * modules/fcntl (Makefile.am): Likewise.
37198         * modules/float (Makefile.am): Likewise.
37199         * modules/iconv_open (Makefile.am): Likewise.
37200         * modules/inttypes (Makefile.am): Likewise.
37201         * modules/locale (Makefile.am): Likewise.
37202         * modules/math (Makefile.am): Likewise.
37203         * modules/netinet_in (Makefile.am): Likewise.
37204         * modules/search (Makefile.am): Likewise.
37205         * modules/signal (Makefile.am): Likewise.
37206         * modules/stdarg (Makefile.am): Likewise.
37207         * modules/stdint (Makefile.am): Likewise.
37208         * modules/stdio (Makefile.am): Likewise.
37209         * modules/stdlib (Makefile.am): Likewise.
37210         * modules/string (Makefile.am): Likewise.
37211         * modules/strings (Makefile.am): Likewise.
37212         * modules/sys_select (Makefile.am): Likewise.
37213         * modules/sys_socket (Makefile.am): Likewise.
37214         * modules/sys_stat (Makefile.am): Likewise.
37215         * modules/sys_time (Makefile.am): Likewise.
37216         * modules/sysexits (Makefile.am): Likewise.
37217         * modules/time (Makefile.am): Likewise.
37218         * modules/unistd (Makefile.am): Likewise.
37219         * modules/wchar (Makefile.am): Likewise.
37220         * modules/wctype (Makefile.am): Likewise.
37221         Reported by Reuben Thomas <rrt@sc3d.org>.
37222
37223 2008-08-29  Bruno Haible  <bruno@clisp.org>
37224
37225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
37226         any more.
37227
37228 2008-08-29  Simon Josefsson  <simon@josefsson.org>
37229
37230         * MODULES.html.sh (Misc): Add bitrotate.
37231
37232         * modules/bitrotate: New file.
37233
37234         * lib/bitrotate.h: New file.
37235
37236         * modules/bitrotate-tests: New file.
37237
37238         * tests/test-bitrotate.c: New file.
37239
37240         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
37241         on the bitrotate module.
37242
37243         * lib/arctwo.c: Use new bitrotate module.
37244
37245 2008-08-29  Jim Meyering  <meyering@redhat.com>
37246
37247         bootstrap: merge changes from coreutils
37248         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
37249         of copied files.  Remove a kludge, now that this is fixed.
37250         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
37251         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
37252         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
37253
37254 2008-08-29  Bruno Haible  <bruno@clisp.org>
37255
37256         * MODULES.html.sh: Remove --cvs-urls option.
37257
37258 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
37259
37260         maint.mk: adjust to file name change
37261         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
37262
37263 2008-08-28  Jim Meyering  <meyering@redhat.com>
37264
37265         * modules/getndelim2 (License): Relicense to LGPLv2+.
37266         Approved by Richard Stallman for the version of 1995, and by
37267         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
37268
37269 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
37270
37271         * lib/getdelim.c (flockfile, funlockfile): Make all of them
37272         dummy if one is not available.  Do not touch them if
37273         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
37274         (getc_maybe_unlocked): New.
37275         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
37276
37277 2008-08-26  Eric Blake  <ebb9@byu.net>
37278
37279         doc/INSTALL: resync from autoconf
37280         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
37281         (INSTALL_PRELUDE): Delete; this is done more efficiently by
37282         moving...
37283         * install.texi [!autoconf]: ...here.  Resync from autoconf.
37284         * INSTALL: Regenerate.
37285         * INSTALL.ISO: New file.
37286         * INSTALL.UTF-8: Likewise.
37287
37288 2008-08-26  Jim Meyering  <meyering@redhat.com>
37289
37290         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
37291         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
37292         these definitions conditional, so that they may be overridden, too.
37293
37294 2008-08-26  Bruno Haible  <bruno@clisp.org>
37295
37296         Generate INSTALL file variants with prettier quotes.
37297         * doc/Makefile (INSTALL_PRELUDE): New macro.
37298         (INSTALL): Use it.
37299         (INSTALL.ISO, INSTALL.UTF-8): New rules.
37300
37301 2008-08-26  Bruno Haible  <bruno@clisp.org>
37302
37303         Run makeinfo in an English locale.
37304         * doc/Makefile (MAKEINFO): New variable.
37305
37306 2008-08-26  Bruno Haible  <bruno@clisp.org>
37307
37308         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
37309         Suggested by Eric Blake.
37310
37311 2008-08-25  Bruno Haible  <bruno@clisp.org>
37312
37313         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
37314
37315 2008-08-25  Eric Blake  <ebb9@byu.net>
37316
37317         c-stack: test that stack overflow can be caught
37318         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
37319         that platform allows handling stack overflow; at least OS/2 EMX
37320         has sigaltstack, but crashes before transferring control to
37321         handler on stack overflow.
37322         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
37323         check for HAVE_STACK_OVERFLOW_HANDLING.
37324         Reported by Elbert Pol.
37325
37326 2008-08-25  Bruno Haible  <bruno@clisp.org>
37327
37328         * doc/posix-functions/strftime.texi: Fix description of strftime
37329         module.
37330
37331 2008-08-24  Bruno Haible  <bruno@clisp.org>
37332
37333         * tests/uniwidth/test-uc_width2.c: New file.
37334         * tests/uniwidth/test-uc_width2.sh: New file.
37335         * modules/uniwidth/width-tests (Files): Add the new files.
37336         (TESTS): Add uniwidth/test-uc_width2.sh.
37337         (TESTS_ENVIRONMENT): New variable.
37338         (check_PROGRAMS): Add test-uc_width2.
37339         (test_uc_width2_SOURCES): New variable.
37340
37341         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
37342         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
37343         not 0x00AB.
37344         Reported by Alexander V. Lukyanov <lav@netis.ru>.
37345
37346 2008-08-22  Eric Blake  <ebb9@byu.net>
37347
37348         test-lock, test-tls: mention why a test is skipped
37349         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
37350         skipped.
37351         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
37352
37353         count-one-bits: relax license
37354         * modules/count-one-bits (License): Relicense to LGPLv2+.
37355         Suggested by Ludovic Courtès, approved by Ben Pfaff.
37356
37357 2008-08-22  Andreas Schwab  <schwab@suse.de>
37358
37359         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
37360         Remove spurious space in assignment.
37361
37362 2008-08-21  Simon Josefsson  <simon@josefsson.org>
37363
37364         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
37365         Paul Eggert <eggert@CS.UCLA.EDU>.
37366
37367 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
37368
37369         * modules/gettext: Add m4/threadlib.m4.
37370
37371 2008-08-19  Eric Blake  <ebb9@byu.net>
37372
37373         test-c-stack: fix compilation failure on FreeBSD 5.0
37374         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
37375         headers before <sys/resource.h>.
37376         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
37377         the bug.
37378         Reported by Nelson H. F. Beebe.
37379
37380         strverscmp: migrate from "strverscmp.h" to <string.h>
37381         * modules/string (Makefile.am): Add new hooks.
37382         * modules/strverscmp (Files): Remove strverscmp.h.
37383         (Depends-on): Add string.
37384         (configure.ac): Add indicator.
37385         (Include): Mention new header.
37386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
37387         defaults.
37388         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
37389         results.
37390         * lib/strverscmp.h: Delete.
37391         * lib/string.in.h (strverscmp): Provide declaration, when needed.
37392         * tests/test-strverscmp.c (includes): Adjust client.
37393         * lib/check-version.c (includes): Likewise.
37394         * NEWS: Document the change.
37395
37396         strverscmp: add unit test
37397         * modules/strverscmp-tests: New file.
37398         * tests/test-strverscmp.c: Likewise.
37399
37400 2008-08-19  Simon Josefsson  <simon@josefsson.org>
37401
37402         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
37403         regarding Windows crypto stuff, from Mono.
37404
37405 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
37406
37407         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
37408         if present, for intel RND.  Return error on failures.
37409
37410 2008-08-18  Ben Pfaff  <blp@gnu.org>
37411
37412         gitlog-to-changelog: give better diagnostic for failed pipe-open
37413         * build-aux/gitlog-to-changelog: Improve error message: suggest
37414         that the version of Git may be too old.
37415
37416 2008-08-18  Simon Josefsson  <simon@josefsson.org>
37417
37418         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
37419         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
37420
37421 2008-08-18  Bruno Haible  <bruno@clisp.org>
37422
37423         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
37424         pthread_in_use().
37425
37426 2008-08-18  Bruno Haible  <bruno@clisp.org>
37427
37428         * lib/glthread/threadlib.c: Include <pthread.h>.
37429
37430 2008-08-18  Bruno Haible  <bruno@clisp.org>
37431
37432         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
37433         glthread_recursive_lock_* macros.
37434         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
37435         Fix syntax error.
37436
37437 2008-08-18  Bruno Haible  <bruno@clisp.org>
37438
37439         * lib/glthread/thread.c: Avoid forcing a context switch right after
37440         thread creation.
37441
37442 2008-08-17  Bruno Haible  <bruno@clisp.org>
37443
37444         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
37445         * lib/glthread/thread.h: Provide Win32 specific implementation.
37446         * modules/thread (Files): Add lib/glthread/thread.c.
37447         (Depends-on): Add lock.
37448         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
37449
37450 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37451
37452         New module 'yield'.
37453         * modules/yield: New file.
37454         * lib/glthread/yield.h: New file.
37455         * m4/yield.m4: New file.
37456         * MODULES.html.sh (Multithreading): Add yield.
37457
37458 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37459
37460         New module 'thread'.
37461         * modules/thread: New file.
37462         * lib/glthread/thread.h: New file.
37463         * m4/thread.m4: New file.
37464         * MODULES.html.sh (Multithreading): Add thread.
37465
37466 2008-08-17  Bruno Haible  <bruno@clisp.org>
37467
37468         * lib/glthread/lock.h: Include <stdlib.h> always.
37469         * lib/glthread/tls.h: Likewise.
37470         * lib/glthread/cond.h: Likewise.
37471
37472 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37473
37474         New module 'cond'.
37475         * modules/cond: New file.
37476         * lib/glthread/cond.h: New file.
37477         * lib/glthread/cond.c: New file.
37478         * m4/cond.m4: New file.
37479         * MODULES.html.sh (Multithreading): Add cond.
37480
37481 2008-08-16  Eric Blake  <ebb9@byu.net>
37482
37483         c-stack: fix regression on Irix 5.3 from 2008-06-21
37484         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
37485         sa_sigaction...
37486         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
37487         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
37488         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
37489         * modules/signal (Makefile.am): Use the value.
37490         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
37491         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
37492         * doc/posix-headers/signal.texi (signal.h): Document this
37493         portability issue.
37494         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
37495         Reported by Tom G. Christensen.
37496
37497 2008-08-17  Bruno Haible  <bruno@clisp.org>
37498
37499         New module 'threadlib'.
37500         * modules/threadlib: New file.
37501         * lib/glthread/threadlib.c: New file, extracted from
37502         lib/glthread/lock.c.
37503         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
37504         functions.
37505         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
37506         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
37507         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
37508         macros.
37509         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
37510         (gl_DISABLE_THREADS): Remove macro.
37511         * modules/lock (Files): Remove build-aux/config.rpath.
37512         (Depends-on): Remove havelib. Add threadlib.
37513         (configure.ac-early): Remove section.
37514         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
37515         * modules/tls (Depends-on): Remove lock. Add threadlib.
37516         (Link): New section, copied from threadlib.
37517         * MODULES.html.sh (Multithreading): Add threadlib.
37518
37519 2008-08-14  Bruno Haible  <bruno@clisp.org>
37520
37521         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
37522         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
37523         glthread_rwlock_unlock, glthread_rwlock_destroy,
37524         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
37525         glthread_recursive_lock_destroy): Define as macros always.
37526         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
37527         glthread_lock_lock.
37528         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
37529         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
37530         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
37531         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
37532         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
37533         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
37534         (glthread_recursive_lock_lock_func): Renamed from
37535         glthread_recursive_lock_lock.
37536         (glthread_recursive_lock_unlock_func): Renamed from
37537         glthread_recursive_lock_unlock.
37538         (glthread_recursive_lock_destroy_func): Renamed from
37539         glthread_recursive_lock_destroy.
37540
37541 2008-08-14  Bruno Haible  <bruno@clisp.org>
37542
37543         * lib/glthread/lock.h: Renamed from lib/lock.h.
37544         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
37545         * lib/glthread/tls.h: Renamed from lib/tls.h.
37546         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
37547         * lib/fstrcmp.c: Update includes.
37548         * lib/strsignal.c: Update includes.
37549         * modules/lock (Files, Makefile.am): Update.
37550         (Include): Change to "glthread/lock.h".
37551         * modules/tls (Files, Makefile.am): Update.
37552         (Include): Change to "glthread/tls.h".
37553         * tests/test-lock.c: Update includes.
37554         * tests/test-tls.c: Update includes.
37555         * NEWS: Mention the renamed header files.
37556
37557 2008-08-11  Jim Meyering  <meyering@redhat.com>
37558
37559         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
37560
37561 2008-08-11  Eric Blake  <ebb9@byu.net>
37562
37563         test-c-stack: avoid C99-ism
37564         * tests/test-c-stack.c (main): Fix whitespace, move declaration
37565         before statement.
37566         Reported by Alain Guibert.
37567
37568 2008-08-10  Jim Meyering  <meyering@redhat.com>
37569
37570         ensure that return value of uinttostr et al are not ignored
37571         * lib/inttostr.h (__GNUC_PREREQ): Define.
37572         (__attribute_warn_unused_result__): Define.
37573         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
37574
37575 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
37576
37577         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
37578         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
37579
37580 2008-08-07  Jim Meyering  <meyering@redhat.com>
37581
37582         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
37583
37584         * modules/mkstemp (License): Relicense under LGPLv2+.
37585         * modules/tempname (License): Likewise.
37586
37587 2008-08-06  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/poll.c (poll): Further micro-optimization.
37590
37591 2008-08-06  Jim Meyering  <meyering@redhat.com>
37592
37593         inet_pton.c: use locale-independent tolower
37594         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
37595         (inet_pton6): Use c_tolower rather than tolower.
37596         * modules/inet_pton (Depends-on): Add c-ctype.
37597
37598 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
37599
37600         * lib/poll.c (poll): Avoid division when timeout is 0, cache
37601         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
37602
37603 2008-08-06  Jim Meyering  <meyering@redhat.com>
37604
37605         * modules/inet_pton (License): Relicense under LGPLv2+.
37606
37607 2008-08-03  Bruno Haible  <bruno@clisp.org>
37608
37609         Additional non-aborting API for lock and tls.
37610         * lib/lock.h: Include <errno.h>.
37611         (glthread_lock_init): New macro/function.
37612         (gl_lock_init): Define as wrapper around glthread_lock_init.
37613         (glthread_lock_lock): New macro/function.
37614         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
37615         (glthread_lock_unlock): New macro/function.
37616         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
37617         (glthread_lock_destroy): New macro/function.
37618         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
37619         (glthread_rwlock_init): New macro/function.
37620         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
37621         (glthread_rwlock_rdlock): New macro/function.
37622         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
37623         (glthread_rwlock_wrlock): New macro/function.
37624         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
37625         (glthread_rwlock_unlock): New macro/function.
37626         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
37627         (glthread_rwlock_destroy): New macro/function.
37628         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
37629         (glthread_recursive_lock_init): New macro/function.
37630         (gl_recursive_lock_init): Define as wrapper around
37631         glthread_recursive_lock_init.
37632         (glthread_recursive_lock_lock): New macro/function.
37633         (gl_recursive_lock_lock): Define as wrapper around
37634         glthread_recursive_lock_lock.
37635         (glthread_recursive_lock_unlock): New macro/function.
37636         (gl_recursive_lock_unlock): Define as wrapper around
37637         glthread_recursive_lock_unlock.
37638         (glthread_recursive_lock_destroy): New macro/function.
37639         (gl_recursive_lock_destroy): Define as wrapper around
37640         glthread_recursive_lock_destroy.
37641         (glthread_once): New macro/function.
37642         (gl_once): Define as wrapper around glthread_once.
37643         Update function declarations.
37644         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
37645         glthread_rwlock_init. Return error code.
37646         (glthread_rwlock_rdlock_multithreaded): Renamed from
37647         glthread_rwlock_rdlock. Return error code.
37648         (glthread_rwlock_wrlock_multithreaded): Renamed from
37649         glthread_rwlock_wrlock. Return error code.
37650         (glthread_rwlock_unlock_multithreaded): Renamed from
37651         glthread_rwlock_unlock. Return error code.
37652         (glthread_rwlock_destroy_multithreaded): Renamed from
37653         glthread_rwlock_destroy. Return error code.
37654         (glthread_recursive_lock_init_multithreaded): Renamed from
37655         glthread_recursive_lock_init. Return error code.
37656         (glthread_recursive_lock_lock_multithreaded): Renamed from
37657         glthread_recursive_lock_lock. Return error code.
37658         (glthread_recursive_lock_unlock_multithreaded): Renamed from
37659         glthread_recursive_lock_unlock. Return error code.
37660         (glthread_recursive_lock_destroy_multithreaded): Renamed from
37661         glthread_recursive_lock_destroy. Return error code.
37662         (glthread_once_call): Make static.
37663         (glthread_once_multithreaded): Renamed from glthread_once.
37664         * lib/tls.h: Include <errno.h>.
37665         (glthread_tls_key_init): New macro/function.
37666         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
37667         (glthread_tls_set): New macro/function.
37668         (gl_tls_set): Define as wrapper around glthread_tls_set.
37669         (glthread_tls_key_destroy): New macro/function.
37670         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
37671         Update function declarations.
37672         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
37673         glthread_tls_get.
37674         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
37675
37676 2008-08-04  Eric Blake  <ebb9@byu.net>
37677
37678         gnumakefile: use space, not TAB, outside of targets
37679         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
37680
37681 2008-08-02  Jim Meyering  <meyering@redhat.com>
37682
37683         getdate.y: avoid locale-dependent date parsing failure
37684         In Turkish locales, getdate would fail to recognize keywords
37685         containing a lowercase "i".  The solution is not to rely on
37686         locale-sensitive case-conversion.
37687         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
37688         (lookup_word): Use c_toupper in place of toupper.
37689         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
37690         Reported by Vefa Bicakci <bicave@superonline.com> in
37691         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
37692         * modules/getdate (Depends-on): Add c-ctype.
37693
37694 2008-08-02  Bruno Haible  <bruno@clisp.org>
37695
37696         * gnulib-tool (func_import): When updating or creating a .gitignore
37697         file, prepend each added line with a slash, and ignore leading slashes
37698         from the existing lines.
37699         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37700
37701 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37702
37703         Portability fix for GNU make 3.79.1.
37704         * top/GNUmakefile: Avoid 'else COND', which older GNU make
37705         versions do not understand.
37706
37707 2008-08-01  Bruno Haible  <bruno@clisp.org>
37708
37709         Work around bug of HP-UX 10.20 cc with -0.0 literal.
37710         * tests/test-isnanf.h (zero): New variable.
37711         (main): Avoid literal -0.0f.
37712         * tests/test-isnand.h (zero): New variable.
37713         (main): Avoid literal -0.0.
37714         * tests/test-isnanl.h (zero): New variable.
37715         (main): Avoid literal -0.0L.
37716         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
37717         (test_float, test_double, test_long_double): Avoid literals -0.0f,
37718         -0.0, -0.0L.
37719         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
37720         (test_signbitd): Avoid literal -0.0.
37721         (test_signbitl): Avoid literal -0.0L.
37722         * tests/test-ceilf1.c (zero): New variable.
37723         (main): Avoid literal -0.0f.
37724         * tests/test-ceill.c (zero): New variable.
37725         (main): Avoid literal -0.0L.
37726         * tests/test-floorf1.c (zero): New variable.
37727         (main): Avoid literal -0.0f.
37728         * tests/test-floorl.c (zero): New variable.
37729         (main): Avoid literal -0.0L.
37730         * tests/test-roundf1.c (zero): New variable.
37731         (main): Avoid literal -0.0f.
37732         * tests/test-round1.c (zero): New variable.
37733         (main): Avoid literal -0.0.
37734         * tests/test-roundl.c (zero): New variable.
37735         (main): Avoid literal -0.0L.
37736         * tests/test-truncf1.c (zero): New variable.
37737         (main): Avoid literal -0.0f.
37738         * tests/test-trunc1.c (zero): New variable.
37739         (main): Avoid literal -0.0.
37740         * tests/test-truncl.c (zero): New variable.
37741         (main): Avoid literal -0.0L.
37742         * tests/test-frexp.c (zero): New variable.
37743         (main): Avoid literal -0.0.
37744         * tests/test-frexpl.c (zero): New variable.
37745         (main): Avoid literal -0.0L.
37746         * tests/test-ldexpl.c (zero): New variable.
37747         (main): Avoid literal -0.0L.
37748         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37749         (zerod, zerol): New variables.
37750         (test_function): Avoid literals -0.0, -0.0L.
37751         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
37752         (zerod, zerol): New variables.
37753         (test_function): Avoid literals -0.0, -0.0L.
37754         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37755         (zerod, zerol): New variables.
37756         (test_function): Avoid literals -0.0, -0.0L.
37757         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
37758         (zerod, zerol): New variables.
37759         (test_function): Avoid literals -0.0, -0.0L.
37760         * tests/test-strtod.c (zero): New variable.
37761         (main): Avoid literal -0.0.
37762         Reported by Jonathan C. Patschke <jp@centtech.com>.
37763
37764 2008-07-31  Jim Meyering  <meyering@redhat.com>
37765
37766         sha256.h: correct definition of SHA224_DIGEST_SIZE
37767         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
37768         Reported by Paulie Pena IV <paulie4@gmail.com>.
37769         Define as 224 / 8, rather than as a literal.
37770         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
37771         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
37772         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
37773
37774 2008-07-31  Bruno Haible  <bruno@clisp.org>
37775
37776         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
37777         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
37778         Reported by Jonathan Patschke <jp@centtech.com>.
37779
37780 2008-07-31  Bruno Haible  <bruno@clisp.org>
37781
37782         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
37783         Reported by Paolo Bonzini <bonzini@gnu.org>.
37784
37785 2008-07-30  Eric Blake  <ebb9@byu.net>
37786
37787         test-strtod: allow compilation without -lm
37788         * tests/test-strtod.c (main): Avoid link dependence on fabs.
37789         Reported by Dennis Clarke <blastwave@gmail.com>.
37790
37791 2008-07-28  Jim Meyering  <meyering@redhat.com>
37792
37793         bootstrap: work also when there are no .po files in po/
37794         * build-aux/bootstrap (update_po_files): Complete the change
37795         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
37796
37797 2008-07-27  Jim Meyering  <meyering@redhat.com>
37798
37799         * users.txt: Add zile.
37800
37801 2008-07-26  Ben Pfaff  <blp@gnu.org>
37802
37803         Add missing dependencies on new m4/exponent[fdl].m4 files.
37804         * modules/isnanf-nolibm: Add m4/exponentf.m4.
37805         * modules/isnand-nolibm: Add m4/exponentd.m4.
37806         * modules/isnanl-nolibm: Add m4/exponentl.m4.
37807         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
37808         m4/isnan[fdl].m4, because the macros actually used moved.
37809         Reported by Jim Meyering.
37810
37811 2008-07-14  Ben Pfaff  <blp@gnu.org>
37812
37813         Add isinf module.
37814         * lib/isinf.c: New file.
37815         * lib/math.in.h: Define isinf macro if we have decided to replace
37816         it.
37817         * m4/isinf.m4: New file.
37818         * m4/math_h.m4: Initialize and substitute variables for isinf
37819         module.
37820         * modules/isinf: New file.
37821         * modules/isinf-tests: New file.
37822         * modules/math: Add substitutions for new module.
37823         * tests/test-isinf.c: New file.
37824         * doc/posix-functions/isinf.texi: Mention new module.
37825         * MODULES.html.sh: Mention new module.
37826
37827 2008-07-14  Ben Pfaff  <blp@gnu.org>
37828
37829         Factor out some macros for use by additional modules.
37830         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
37831         exponentf.m4.
37832         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
37833         exponentd.m4.
37834         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
37835         file exponentl.m4.
37836         * m4/exponentf.m4: New file.
37837         * m4/exponentd.m4: New file.
37838         * m4/exponentl.m4: New file.
37839         * modules/isnanf: Use new file m4/exponentf.m4.
37840         * modules/isnand: Use new file m4/exponentd.m4.
37841         * modules/isnanl: Use new file m4/exponentl.m4.
37842
37843 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
37844
37845         mktime.c: normalize tp->tm_isdst value to -1/0/1.
37846         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
37847         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
37848         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
37849
37850         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
37851         readlink on platforms without PATH_MAX.
37852
37853 2008-07-21  Eric Blake  <ebb9@byu.net>
37854
37855         Warn, not fail, on stale version.
37856         * top/GNUmakefile (_curr-ver): Tone down previous patch.
37857
37858         Don't allow installation with stale devel version number.
37859         * top/GNUmakefile (_is-install-target): New macro.
37860         (_curr-ver): Forbid installation with stale version number.
37861
37862 2008-07-20  Bruno Haible  <bruno@clisp.org>
37863
37864         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
37865         TESTS_ENVIRONMENT.
37866         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
37867
37868 2008-07-20  Bruno Haible  <bruno@clisp.org>
37869
37870         * lib/c-stack.h (c_stack_action): Add documentation.
37871         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
37872
37873 2008-07-20  Bruno Haible  <bruno@clisp.org>
37874
37875         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
37876         * modules/readlink (License): Likewise.
37877
37878 2008-07-17  Eric Blake  <ebb9@byu.net>
37879
37880         * modules/c-stack (Link): Fix typo.
37881
37882         Make c-stack use libsigsegv, when available.
37883         * modules/c-stack (Depends-on): Add libsigsegv.
37884         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
37885         needed.
37886         * lib/c-stack.c (SIGSTKSZ): Define fallback.
37887         (segv_handler, overflow_handler, c_stack_action)
37888         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
37889         implementation when libsigsegv is available, but only when using
37890         the library is necessary.
37891         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
37892         comment, explaining why XSI check fails on Linux.
37893         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
37894         * tests/test-c-stack2.sh: Tweak skip message.
37895         * NEWS: Document new link-time requirements.
37896
37897 2008-07-16  Eric Blake  <ebb9@byu.net>
37898
37899         c-stack: Expose false positives when not using libsigsegv.
37900         * modules/c-stack-tests (Files): Expand test.
37901         * tests/test-c-stack.c (main): Add means to conditionally trigger
37902         non-overflow SIGSEGV.
37903         * tests/test-c-stack2.sh: New file.
37904
37905 2008-07-14  Bruno Haible  <bruno@clisp.org>
37906
37907         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
37908         Reported by Eric Blake.
37909
37910 2008-07-14  Sam Steingold  <sds@gnu.org>
37911             Bruno Haible  <bruno@clisp.org>
37912
37913         New module libsigsegv.
37914         * modules/libsigsegv: New file.
37915         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
37916         modifications.
37917         * MODULES.html.sh (Signal handling): New section.
37918
37919 2008-07-14  Bruno Haible  <bruno@clisp.org>
37920
37921         * modules/unictype/ctype-* (Description): Add the word "function".
37922         Improves the resulting doc in MODULES.html.
37923
37924 2008-07-12  Ben Pfaff  <blp@gnu.org>
37925
37926         Add longlong module.
37927         * modules/longlong: New file.
37928
37929 2008-07-12  Bruno Haible  <bruno@clisp.org>
37930
37931         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
37932         to empty.
37933
37934 2008-07-10  Ben Pfaff  <blp@gnu.org>
37935
37936         Add isnan module.
37937         * doc/posix-functions/isnan.texi: Mention new module.
37938         * lib/math.in.h: Define isnan macro if we have decided to replace
37939         it.
37940         * m4/isnan.m4: New file.
37941         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
37942         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
37943         also.
37944         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
37945         redundancy.
37946         * m4/math_h.m4: Initialize and substitute variables for isnan
37947         module.
37948         * modules/isnan: New file.
37949         * modules/isnan-tests: New file.
37950         * modules/math: Add substitutions for new module.
37951         * tests/test-isnan.c: New file.
37952         * MODULES.html.sh: Mention new module.
37953
37954 2008-07-10  Ben Pfaff  <blp@gnu.org>
37955
37956         Add isnanf module.
37957         * lib/isnanf.m4: New file.
37958         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
37959         (gl_HAVE_ISNANF_IN_LIBM): New macro.
37960         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
37961         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
37962         * modules/isnanf: New file.
37963         * modules/isnanf-tests: New file.
37964         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
37965         files.
37966         * tests/test-isnanf-nolibm.c: factored most of its contents into
37967         new file tests/test-isnanf.h.
37968         * tests/test-isnanf.h: New file.
37969         * tests/test-isnanf.c: New file.
37970         * MODULES.html.sh: Mention new module.
37971         * doc/glibc-functions/isnanf.texi: Mention new module.
37972
37973 2008-07-10  Ben Pfaff  <blp@gnu.org>
37974
37975         Add isnand module.
37976         * lib/isnand.h: New file.
37977         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
37978         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
37979         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
37980         functionality also.
37981         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
37982         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
37983         (gl_HAVE_ISNAND_IN_LIBM): New macro.
37984         * modules/isnand: New file.
37985         * modules/isnand-tests: New file.
37986         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
37987         files.
37988         * tests/test-isnand-nolibm.c: factored most of its contents into
37989         new file tests/test-isnand.h.
37990         * tests/test-isnand.h: New file.
37991         * tests/test-isnand.c: New file.
37992         * MODULES.html.sh: Mention new module.
37993
37994 2008-07-10  Ben Pfaff  <blp@gnu.org>
37995
37996         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
37997         * lib/isnand.h: Rename lib/isnand-nolibm.h.
37998         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
37999         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
38000         * modules/isnanf-nolibm: Update references to renamed files.
38001         * modules/isnand-nolibm: Likewise.
38002         * modules/isnanf-nolibm-tests: Likewise.
38003         * modules/isnand-nolibm-tests: Likewise.
38004         * lib/frexp.c: Likewise.
38005         * lib/isfinite.c: Likewise.
38006         * lib/signbitd.c: Likewise.
38007         * lib/signbitf.c: Likewise.
38008         * lib/vasnprintf.c: Likewise.
38009         * tests/test-ceilf1.c: Likewise.
38010         * tests/test-ceilf2.c: Likewise.
38011         * tests/test-floorf1.c: Likewise.
38012         * tests/test-floorf2.c: Likewise.
38013         * tests/test-frexp.c: Likewise.
38014         * tests/test-round1.c: Likewise.
38015         * tests/test-round2.c: Likewise.
38016         * tests/test-roundf1.c: Likewise.
38017         * tests/test-strtod.c: Likewise.
38018         * tests/test-trunc1.c: Likewise.
38019         * tests/test-trunc2.c: Likewise.
38020         * tests/test-truncf1.c: Likewise.
38021         * tests/test-truncf2.c: Likewise.
38022         * NEWS: Mention the renamed header files.
38023
38024 2008-07-11  Jim Meyering  <meyering@redhat.com>
38025
38026         vc-list-files: make the last-resort awk code more portable
38027         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
38028         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
38029         does not support it.
38030
38031 2008-07-10  Eric Blake  <ebb9@byu.net>
38032
38033         Work with tar's bootstrap.
38034         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
38035         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
38036         an m4 comment.
38037
38038 2008-07-09  Jim Meyering  <meyering@redhat.com>
38039
38040         posix-shell.m4: fix typo that made this test malfunction
38041         * m4/posix-shell.m4: Remove capitalization in variable name.
38042
38043 2008-07-08  Bruno Haible  <bruno@clisp.org>
38044
38045         * m4/onceonly.m4: Update comments.
38046         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38047
38048 2008-07-04  Jim Meyering  <meyering@redhat.com>
38049
38050         * users.txt: Add vc-dwim.
38051         (bison, coreutils): Use the gitweb URL.
38052
38053 2008-07-03  Jim Meyering  <meyering@redhat.com>
38054
38055         * users.txt: Add libffcall.  From Sam Steingold.
38056
38057 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
38058
38059         getdate.y: do not ignore TZ with relative day, month or year offset
38060         * lib/getdate.y (get_date): Move the tz-handling block to follow the
38061         relative-date-handling, since otherwise, the latter would clobber the
38062         sole output (an updated Start value) of the tz-handling block.
38063         * tests/test-getdate.c: Tests for the fix
38064
38065 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38066
38067         Recognize 'foo_LIBRARIES += libgnu.a'.
38068         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
38069         makefile snippet has already specified an installation location,
38070         also using '+='.
38071
38072 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
38073
38074         getdate.y: factor out common actions
38075         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
38076         Use them in place of open-coded actions.
38077
38078 2008-07-01  Simon Josefsson  <simon@josefsson.org>
38079
38080         Add self-test for getdate module.
38081         * modules/getdate-tests: New file.
38082         * tests/test-getdate.c: New file.
38083
38084 2008-06-29  Bruno Haible  <bruno@clisp.org>
38085
38086         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
38087         .gitignore.
38088         Reported by Sylvain Beucler <beuc@beuc.net>.
38089
38090 2008-06-29  Bruno Haible  <bruno@clisp.org>
38091
38092         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
38093         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
38094
38095 2008-06-29  Bruno Haible  <bruno@clisp.org>
38096
38097         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
38098         EXTRA_DIST.
38099         Reported by Sylvain Beucler <beuc@beuc.net>.
38100
38101 2008-06-26  Jim Meyering  <meyering@redhat.com>
38102
38103         make several modules depend on the "open" module
38104         This provides slightly increased consistency when opening-for-write
38105         the name of a non-directory spelled with a trailing slash.
38106         * modules/chdir-safer: Likewise.
38107         * modules/chown: Likewise.
38108         * modules/clean-temp: Likewise.
38109         * modules/copy-file: Likewise.
38110         * modules/fchdir: Likewise.
38111         * modules/fcntl-safer: Likewise.
38112         * modules/pipe: Likewise.
38113         * modules/utime: Likewise.
38114         Prompted by Eric Blake and Bruno Haible.
38115
38116 2008-06-24  Andreas Schwab  <schwab@suse.de>
38117
38118         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
38119         literals can be used as initializers for global variables.
38120
38121 2008-06-23  Eric Blake  <ebb9@byu.net>
38122
38123         Make gnulib-cache.m4 easier to diff.
38124         * gnulib-tool (func_import): Allow newlines when reading cached
38125         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
38126
38127 2008-06-23  Bruno Haible  <bruno@clisp.org>
38128
38129         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
38130         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
38131         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
38132         m4/signalblocking.m4.
38133         (gl_PREREQ_SIGACTION): Don't invoke it.
38134         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
38135         gl_PREREQ_SIG_HANDLER_H.
38136         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38137         Don't check for sigaction here.
38138
38139 2008-06-23  Bruno Haible  <bruno@clisp.org>
38140
38141         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
38142         (install_handlers): Don't set the SA_RESETHAND flag.
38143
38144 2008-06-23  Bruno Haible  <bruno@clisp.org>
38145
38146         * m4/sigaction.m4: Comment fixes.
38147         * lib/signal.in.h: Likewise.
38148
38149 2008-06-23  Eric Blake  <ebb9@byu.net>
38150
38151         Fix typo.
38152         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
38153
38154         Avoid SA_ namespace.
38155         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
38156         Reported by Ralf Wildenhues.
38157
38158         Avoid test failure due to SA_RESTORER.
38159         * tests/test-sigaction.c (SA_MASK): New macro.
38160         (main): Avoid failing due to extension flags being set.
38161         Reported by Jim Meyering.
38162
38163         Revert use of sig-handler.h in sigprocmask.c.
38164         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
38165         it requires the existence of struct sigaction.
38166         * lib/sigprocmask.c (handler_t): Restore typedef.
38167         (rpl_signal, old_handlers): Use local type.
38168
38169 2008-06-22  Bruno Haible  <bruno@clisp.org>
38170
38171         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
38172         conditionally.
38173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38174
38175 2008-06-22  Bruno Haible  <bruno@clisp.org>
38176
38177         * doc/posix-functions/siginterrupt.texi: Move note.
38178
38179         * lib/signal.in.h (SA_RESTART): New macro.
38180         * lib/sigaction.c: Update comment.
38181
38182         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
38183
38184         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
38185         (gl_PREREQ_SIGPROCMASK): Invoke it.
38186         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
38187
38188         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
38189
38190         * lib/sigprocmask.c: Update a comment.
38191
38192 2008-06-21  Eric Blake  <ebb9@byu.net>
38193
38194         Use sigaction module rather than signal().
38195         * modules/c-stack (Depends-on): Add sigaction.
38196         * modules/fatal-signal (Depends-on): Likewise.
38197         * modules/nanosleep (Depends-on): Likewise.
38198         * modules/sigprocmask (Files): Add sig-handler.h.
38199         * modules/sigaction (Files): Likewise.
38200         * lib/sig-handler.h (get_handler): New file, suggested by Paul
38201         Eggert.
38202         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
38203         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
38204         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
38205         (init_fatal_signals): Likewise.
38206         * lib/nanosleep.c (rpl_nanosleep): Likewise.
38207         (siginterrupt): Delete fallback.
38208         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
38209         instead.
38210         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
38211         siginterrupt.
38212
38213         New module sigaction, for mingw.
38214         * modules/sigaction: New module...
38215         * modules/sigaction-tests: ...and its test.
38216         * m4/sigaction.m4: New file.
38217         * lib/sigaction.c: Likewise.
38218         * tests/test-sigaction.c: Likewise.
38219         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
38220         * modules/signal (Makefile.am): Likewise.
38221         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
38222         needed.
38223         * doc/posix-headers/signal.texi (signal.h): Mention provided
38224         types.
38225         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
38226         that sigaction is preferable.
38227         * doc/posix-functions/sigaction.texi (sigaction): Mention new
38228         module.
38229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38230         sigaction.
38231
38232         Improve robustness of sigprocmask by overriding signal.
38233         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
38234         is in use.
38235         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
38236         (SIGKILL, SIGSTOP): Provide fallbacks.
38237         (rpl_signal): Implement.
38238         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
38239         signal can be called inside handlers.
38240
38241         Fix nanosleep module on mingw.
38242         * modules/nanosleep (Depends-on): Add sys_select.
38243         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
38244
38245         Fix licensing of sigprocmask.
38246         * modules/raise (License): Relicense as LGPL.
38247
38248 2008-06-21  Bruno Haible  <bruno@clisp.org>
38249
38250         * lib/propername.c (proper_name_utf8): Don't use the transliterated
38251         result if it contains question marks.
38252         Reported by Michael Geng <linux@michaelgeng.de>.
38253
38254 2008-06-19  Bruno Haible  <bruno@clisp.org>
38255
38256         Fix CVS-ism.
38257         * doc/gnulib.texi: Include updated-stamp.texi.
38258         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
38259         (updated-stamp.texi): New rule.
38260         (gnulib.info): Depend on it.
38261         * doc/.gitignore: Add updated-stamp.texi.
38262         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
38263
38264 2008-06-19  Bruno Haible  <bruno@clisp.org>
38265
38266         * doc/Makefile (gnulib.info): Update and simplify dependencies.
38267         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
38268
38269 2008-06-19  Eric Blake  <ebb9@byu.net>
38270
38271         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
38272         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
38273         Reported by Stepan Kasal.
38274
38275 2008-06-18  Bruno Haible  <bruno@clisp.org>
38276
38277         * lib/fatal-signal.c (init_fatal_signals): Add comment.
38278         Reported by Eric Blake.
38279
38280 2008-06-18  Eric Blake  <ebb9@byu.net>
38281
38282         Work around cygwin 1.5.25 strsignal bug.
38283         * tests/test-strsignal.c: Allow for const char *.
38284         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
38285
38286 2008-06-18  Simon Josefsson  <simon@josefsson.org>
38287
38288         * users.txt: Update URL to article and add author/date
38289         information.
38290
38291 2008-06-17  Bruno Haible  <bruno@clisp.org>
38292
38293         New macro gl_DISABLE_THREADS.
38294         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
38295         if the user did not pass --enable-threads or --disable-threads option.
38296         (gl_DISABLE_THREADS): New macro.
38297         Reported by Eric Blake <ebb9@byu.net>.
38298
38299 2008-06-17  Bruno Haible  <bruno@clisp.org>
38300
38301         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
38302         when the macro ignores it.
38303         Based on a patch by Eric Blake <ebb9@byu.net>.
38304
38305 2008-06-17  Bruno Haible  <bruno@clisp.org>
38306
38307         * modules/tls (License): Change to LGPLv2+.
38308         Reported by Eric Blake.
38309
38310 2008-06-17  Eric Blake  <ebb9@byu.net>
38311
38312         Simplify c-stack prerequisites.
38313         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
38314         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
38315         no longer requires <ucontext.h> to exist.  Optimize setrlimit
38316         check.
38317         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
38318         <sys/resource.h>.
38319
38320         Move c-stack test into testsuite.
38321         * modules/c-stack-tests: New file.
38322         * lib/c-stack.c [DEBUG]: Move test program...
38323         * tests/test-c-stack.c: ...into this new file.  Skip rather than
38324         fail test if sigaltstack is lacking.
38325         * tests/test-c-stack.sh: New driver file.
38326
38327 2008-06-16  Eric Blake  <ebb9@byu.net>
38328
38329         Use raise module consistently.
38330         * modules/fatal-signal (Depends-on): Add raise.
38331         * modules/sigprocmask (Depends-on): Likewise.
38332         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
38333         * lib/sigprocmask.c (sigprocmask): Likewise.
38334         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38335         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
38336
38337         Fix compliance bug in sigpending.
38338         * lib/sigprocmask.c (sigpending): Return pending array via
38339         parameter, not return value.
38340
38341 2008-06-14  Eric Blake  <ebb9@byu.net>
38342
38343         Improve obstack-printf test code.
38344         * tests/test-obstack-printf.c (test_function): Fix comment, and
38345         simplify usage of obstack_* in macros.  Add a test for coverage.
38346         Reported by Bruno Haible.
38347
38348 2008-06-14  Bruno Haible  <bruno@clisp.org>
38349
38350         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
38351         array size as a constant, not as a const variable.
38352         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
38353         AC_USE_SYSTEM_EXTENSIONS.
38354         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
38355         Test whether the obstack_printf function actually exists.
38356         * modules/obstack-printf (Depends-on): Add extensions.
38357         (Include): Remove obstack.h.
38358         * modules/obstack-printf-posix (Depends-on): Add extensions.
38359         (Include): Remove obstack.h.
38360
38361 2008-06-13  Eric Blake  <ebb9@byu.net>
38362
38363         Add obstack-printf and obstack-printf-posix modules.
38364         * modules/obstack-printf: New file.
38365         * modules/obstack-printf-posix: Likewise.
38366         * MODULES.html.sh (Misc): Mention them.
38367         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38368         Likewise.
38369         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38370         Likewise.
38371         * modules/stdio (Makefile.am): Accomodate new modules.
38372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38373         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
38374         Declare.
38375         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
38376         functions.
38377         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
38378         (gl_REPLACE_OBSTACK_PRINTF): New macros
38379         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
38380         * tests/test-obstack-printf.c: New file.
38381         * modules/obstack-printf-tests: Likewise.
38382         * modules/obstack-printf-posix-tests: Likewise.
38383
38384 2008-06-11  Bruno Haible  <bruno@clisp.org>
38385
38386         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
38387         * lib/open.c: Include errno.h.
38388         (open): Fail when attempting to write to a file that has a trailing
38389         slash.
38390         * tests/test-open.c (main): Test against trailing slash bug.
38391         * doc/posix-functions/open.texi: Mention the trailing slash bug.
38392
38393 2008-06-10  Bruno Haible  <bruno@clisp.org>
38394
38395         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
38396         for $? to work inside the trap command, with various /bin/sh-s.
38397         * tests/test-vc-list-files-cvs.sh: Likewise.
38398
38399 2008-06-10  Bruno Haible  <bruno@clisp.org>
38400
38401         * lib/acl-internal.h: Don't include gettext.h here.
38402         * lib/set-mode-acl.c: Include gettext.h here.
38403         * lib/copy-acl.c: Likewise.
38404
38405 2008-06-10  Bruno Haible  <bruno@clisp.org>
38406
38407         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
38408         * lib/wait-process.c (wait_subprocess): Likewise.
38409         * lib/execute.h (execute): Add termsigp argument.
38410         * lib/execute.c (execute): Likewise.
38411         * lib/csharpcomp.c (compile_csharp_using_pnet,
38412         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
38413         * lib/csharpexec.c (execute_csharp_using_pnet,
38414         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
38415         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
38416         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
38417         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
38418         is_jikes_present): Update.
38419         * lib/javaexec.c (execute_java_class): Update.
38420         * lib/javaversion.c (execute_and_read_line): Update.
38421         * NEWS: Document the changes.
38422         Reported by Eric Blake.
38423
38424 2008-06-10  Eric Blake  <ebb9@byu.net>
38425
38426         Add missing include.
38427         * tests/test-strstr.c (includes): Add <signal.h>.
38428         * tests/test-strcasestr.c (includes): Likewise.
38429         * tests/test-memmem.c (includes): Likewise.
38430
38431 2008-06-10  Bruno Haible  <bruno@clisp.org>
38432
38433         * lib/wait-process.c (wait_subprocess): Add an assertion.
38434
38435 2008-06-10  Bruno Haible  <bruno@clisp.org>
38436
38437         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
38438
38439 2008-06-10  Bruno Haible  <bruno@clisp.org>
38440
38441         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
38442         using alarm().
38443         * tests/test-strcasestr.c (main): Likewise.
38444         * tests/test-strstr.c (main): Likewise.
38445
38446 2008-06-09  Bruno Haible  <bruno@clisp.org>
38447
38448         Work around the Solaris 10 ACE ACLs ABI change.
38449         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
38450         declare if ACL_NO_TRIVIAL is present.
38451         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
38452         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
38453         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
38454         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
38455         define if ACL_NO_TRIVIAL is present.
38456         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
38457         and use the current ABI.
38458         (file_has_acl): Use same #if condition as elsewhere.
38459         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
38460         in use, and use the current ABI.
38461         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
38462         Reported by Jim Meyering.
38463
38464 2008-06-09  Eric Blake  <ebb9@byu.net>
38465
38466         Work around environments that (stupidly) ignore SIGALRM.
38467         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
38468         before using alarm().
38469         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
38470         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38471         Reported by Ian Beckwith <ianb@erislabs.net>.
38472
38473         Produce autobuild blurb earlier in log.
38474         * modules/autobuild (configure.ac-early): Move AB_INIT here.
38475
38476 2008-06-09  Jim Meyering  <meyering@redhat.com>
38477         and OndÅ™ej Vašík  <ovasik@redhat.com>
38478
38479         utimens.c: correct kernel bug work-around
38480         OndÅ™ej Vašík found that the invalid return value of 280 indicates
38481         failure, not success, and the kernel bug we're trying to work
38482         around affects not just the utimensat call, but also the fallback
38483         futimens call.
38484         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
38485         not success.
38486         [HAVE_FUTIMENS]: Use the same work-around, here.
38487
38488 2008-06-09  Jim Meyering  <meyering@redhat.com>
38489
38490         add more guards around definition of ACE_-related code
38491         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
38492         ALLOW and ACE_OWNER are also defined.
38493
38494 2008-06-08  Bruno Haible  <bruno@clisp.org>
38495
38496         * lib/acl-internal.h: Add me as co-author.
38497         * lib/file-has-acl.c: Likewise.
38498         * lib/set-mode-acl.c: Likewise.
38499         * lib/copy-acl.c: Likewise.
38500
38501 2008-06-08  Bruno Haible  <bruno@clisp.org>
38502
38503         Add support for AIX ACLs.
38504         * lib/acl-internal.h (acl_nontrivial): New declaration.
38505         * lib/file-has-acl.c (acl_nontrivial): New function.
38506         (file_has_acl): Add implementation using AIX 4 ACL API.
38507         * lib/set-mode-acl.c (qset_acl): Likewise.
38508         * lib/copy-acl.c (qcopy_acl): Likewise.
38509
38510 2008-06-08  Bruno Haible  <bruno@clisp.org>
38511
38512         Add support for HP-UX ACLs.
38513         * lib/acl-internal.h (acl_nontrivial): New declaration.
38514         * lib/file-has-acl.c (acl_nontrivial): New function.
38515         (file_has_acl): Add implementation using HP-UX 11 ACL API.
38516         * lib/set-mode-acl.c (qset_acl): Likewise.
38517         * lib/copy-acl.c (qcopy_acl): Likewise.
38518
38519 2008-06-08  Bruno Haible  <bruno@clisp.org>
38520
38521         Add support for Cygwin ACLs.
38522         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
38523         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
38524         the chmod_or_fchmod call.
38525         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
38526
38527 2008-06-08  Bruno Haible  <bruno@clisp.org>
38528
38529         Fix bug with setuid modes in Solaris 10+ code.
38530         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
38531         succeeded, when the mode contains some special bits.
38532
38533 2008-06-08  Bruno Haible  <bruno@clisp.org>
38534
38535         Add support for Solaris 7..10 ACLs.
38536         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
38537         declarations.
38538         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
38539         functions.
38540         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
38541         * lib/set-mode-acl.c (qset_acl): Likewise.
38542         * lib/copy-acl.c (qcopy_acl): Likewise.
38543
38544 2008-06-08  Bruno Haible  <bruno@clisp.org>
38545
38546         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
38547         declaration.
38548         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
38549         (acl_access_nontrivial): Remove MacOS X case.
38550         (file_has_acl): Use acl_extended_nontrivial.
38551         * lib/copy-acl.c (qcopy_acl): Likewise.
38552
38553 2008-06-08  Bruno Haible  <bruno@clisp.org>
38554
38555         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
38556
38557 2008-06-08  Jim Meyering  <meyering@redhat.com>
38558
38559         * modules/acl (Maintainer): Add Bruno Haible.
38560
38561 2008-06-07  Bruno Haible  <bruno@clisp.org>
38562
38563         Improve support for Tru64 ACLs.
38564         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
38565         ACL on OSF/1.
38566
38567 2008-06-07  Bruno Haible  <bruno@clisp.org>
38568
38569         Add support for MacOS X ACLs.
38570         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
38571         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
38572         * lib/set-mode-acl.c (qset_acl): Likewise.
38573         * lib/copy-acl.c (qcopy_acl): Likewise.
38574
38575 2008-06-07  Bruno Haible  <bruno@clisp.org>
38576
38577         Fix memory leak introduced on 2008-05-22.
38578         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
38579         use.
38580
38581 2008-06-07  Bruno Haible  <bruno@clisp.org>
38582
38583         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
38584         to construct an empty ACL.
38585
38586 2008-06-07  Bruno Haible  <bruno@clisp.org>
38587
38588         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
38589         precisely.
38590         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
38591
38592 2008-06-07  Bruno Haible  <bruno@clisp.org>
38593
38594         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
38595         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
38596
38597 2008-06-07  Bruno Haible  <bruno@clisp.org>
38598
38599         * doc/posix-functions/_setjmp.texi: Explain the use of this function
38600         regardless of POSIX.
38601         * doc/posix-functions/_longjmp.texi: Likewise.
38602         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
38603         SystemV platform in this case.
38604
38605 2008-06-06  Eric Blake  <ebb9@byu.net>
38606
38607         Document abort() bugs.
38608         * doc/posix-functions/abort.texi (abort): Mention anomalies.
38609
38610         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
38611         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
38612         sigsetjmp.
38613         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
38614         siglongjmp, but only as a macro.
38615         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
38616         is obsolete.
38617         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
38618
38619         Tweak documentation to cover cygwin argz bugs.
38620         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
38621         argz bug fix; no code change needed since no cygwin releases
38622         occurred between the last fix and the bug being tested.
38623         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
38624         module and recently fixed cygwin bugs.
38625         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
38626         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
38627         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
38628         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
38629         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
38630         Likewise.
38631         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
38632         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
38633         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
38634         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
38635         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
38636         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
38637         Likewise.
38638
38639         Avoid gcc warning on cygwin.
38640         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
38641         !ACL_NO_TRIVIAL]: Avoid unused variable.
38642
38643 2008-06-05  Eric Blake  <ebb9@byu.net>
38644
38645         Be tolerant of UNKNOWN version in gnulib-tool test dir.
38646         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
38647         git-version-gen fails to come up with a version.
38648         Reported by Simon Josefsson.
38649
38650 2008-06-05  Jim Meyering  <meyering@redhat.com>
38651             Paul Eggert  <eggert@cs.ucla.edu>
38652
38653         utimens.c: work around a probable Linux kernel bug
38654         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
38655         appears to be a kernel bug that causes utimensat to return 280
38656         instead of 0, indicating success.
38657
38658 2008-06-04  Bruno Haible  <bruno@clisp.org>
38659
38660         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
38661         2008-06-01 commit.
38662
38663 2008-06-04  Bruno Haible  <bruno@clisp.org>
38664
38665         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
38666         * lib/file-has-acl.c (acl_access_nontrivial): New function.
38667         (file_has_acl): Use it. Save errno afterwards.
38668         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
38669
38670 2008-06-03  Bruno Haible  <bruno@clisp.org>
38671
38672         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
38673         draft code. Simplify #ifs.
38674         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
38675         Put Solaris code after POSIX-draft code. Fix comments regarding
38676         Solaris 10, HP-UX. Mention Cygwin.
38677         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
38678
38679 2008-06-03  Eric Blake  <ebb9@byu.net>
38680
38681         Provide fallback for older kernels.
38682         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
38683         Provide runtime fallback if kernel lacks support.
38684         Reported by Mike Frysinger.
38685
38686 2008-06-02  Bruno Haible  <bruno@clisp.org>
38687
38688         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
38689         it exists.
38690
38691 2008-06-02  Bruno Haible  <bruno@clisp.org>
38692
38693         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
38694         * lib/copy-acl.c (qcopy_acl): Update comment.
38695
38696 2008-06-02  Bruno Haible  <bruno@clisp.org>
38697
38698         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
38699         like ACL APIs.
38700
38701 2008-06-02  Bruno Haible  <bruno@clisp.org>
38702
38703         * tests/test-file-has-acl.sh: Use different code for Cygwin.
38704         * tests/test-set-mode-acl.sh: Likewise.
38705         * tests/test-copy-acl.sh: Likewise.
38706         * tests/test-copy-file.sh: Likewise.
38707
38708 2008-06-02  Bruno Haible  <bruno@clisp.org>
38709
38710         * tests/test-file-has-acl.sh: Remove unused code.
38711
38712 2008-06-01  Bruno Haible  <bruno@clisp.org>
38713
38714         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
38715         (copy_acl): Just a wrapper around qcopy_acl that emits the error
38716         messages.
38717         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
38718
38719 2008-06-01  Bruno Haible  <bruno@clisp.org>
38720
38721         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
38722         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
38723         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
38724         APIs.
38725         * modules/acl-tests (configure.ac): Remove tests now contained in
38726         m4/acl.m4.
38727
38728 2008-06-02  Jim Meyering  <meyering@redhat.com>
38729
38730         announce-gen: use a better key-server host name
38731         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
38732         it may be more consistently reliable.  Suggested by Werner Koch
38733         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
38734
38735 2008-06-01  Bruno Haible  <bruno@clisp.org>
38736
38737         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
38738         Reported by Voroskoi Andras <voroskoi@gmail.com>.
38739
38740 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
38741
38742         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
38743
38744 2008-06-01  Bruno Haible  <bruno@clisp.org>
38745
38746         New ACL tests.
38747         * tests/test-file-has-acl.sh: New file.
38748         * tests/test-file-has-acl.c: New file.
38749         * tests/test-set-mode-acl.sh: New file.
38750         * tests/test-set-mode-acl.c: New file.
38751         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
38752         * tests/test-copy-acl.c: New file.
38753         * modules/acl-tests: New file, based on modules/copy-file-tests.
38754         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
38755         (Depends-on): Add acl-tests.
38756         (configure.ac): Remove checks.
38757         (Makefile.am): Don't create test-sameacls program here any more.
38758
38759 2008-06-01  Bruno Haible  <bruno@clisp.org>
38760
38761         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
38762         * tests/test-sameacls.c: Include progname.h.
38763         (main): Invoke set_program_name. Portability fixes for MacOS X,
38764         Solaris, HP-UX.
38765
38766 2008-06-01  Bruno Haible  <bruno@clisp.org>
38767
38768         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
38769         function.
38770         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
38771
38772 2008-06-01  Bruno Haible  <bruno@clisp.org>
38773
38774         * modules/rpmatch (Depends-on): Add strdup.
38775
38776 2008-06-01  Bruno Haible  <bruno@clisp.org>
38777
38778         * lib/pipe.c: Include unistd-safer.h.
38779         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
38780         * modules/pipe (Depends-on): Add unistd-safer.
38781
38782 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38783
38784         * modules/autobuild (configure.ac): Call AB_INIT.
38785
38786 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38787
38788         * tests/test-getaddrinfo.c: Don't print debug messages by default.
38789         Suggested by Bruno Haible <bruno@clisp.org>.
38790
38791 2008-05-30  Simon Josefsson  <simon@josefsson.org>
38792
38793         * tests/test-base64.c: Cast size_t to unsigned long when invoking
38794         printf.  Use %lu instead of %d.  Reported by Bruno Haible
38795         <bruno@clisp.org>.
38796
38797 2008-05-29  Eric Blake  <ebb9@byu.net>
38798
38799         Prefer new POSIX 200x interfaces over futimesat.
38800         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
38801         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
38802         when available.
38803         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
38804
38805 2008-05-28  Bruno Haible  <bruno@clisp.org>
38806
38807         * modules/stpcpy (License): Change to LGPLv2+.
38808         Requested by David Lutterkort <dlutter@redhat.com>.
38809
38810 2008-05-27  Bruno Haible  <bruno@clisp.org>
38811
38812         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
38813         current mingw.
38814         Reported by Jose E. Marchesi <jemarch@gnu.org>.
38815
38816 2008-05-27  Bruno Haible  <bruno@clisp.org>
38817
38818         * modules/iconv_open (Link): New section, from module 'iconv'.
38819         * modules/striconv (Link): Likewise.
38820         * modules/striconveh (Link): Likewise.
38821         * modules/xstriconv (Link): Likewise.
38822         * modules/unicodeio (Link): Likewise.
38823         * modules/propername (Link): Likewise.
38824         Reported by Jim Meyering.
38825
38826 2008-05-26  Jim Meyering  <meyering@redhat.com>
38827
38828         sha256: do not artificially restrict buffer length to be < 2^32
38829         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
38830         uint32_t to size_t.
38831         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
38832         to match.
38833
38834         avoid unaligned access errors, e.g., on sparc
38835         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
38836         direct access through a possibly-unaligned uint64* pointer.
38837         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
38838         direct access through a possibly-unaligned uint32* pointer.
38839         Prompted by this patch from Tom "spot" Callaway:
38840         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
38841
38842         sha512.c: fix typo in comment
38843         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
38844
38845 2008-05-25  Bruno Haible  <bruno@clisp.org>
38846
38847         * lib/set-mode-acl.c: Renamed from lib/acl.c.
38848         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
38849         (Makefile.am): Update lib_SOURCES.
38850
38851 2008-05-25  Bruno Haible  <bruno@clisp.org>
38852
38853         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
38854
38855 2008-05-25  Jim Meyering  <meyering@redhat.com>
38856
38857         useless-if-before-free: freed expr may have white-space differences
38858         * build-aux/useless-if-before-free: Recognize cases in which the
38859         freed expression differs from the tested one in embedded white
38860         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
38861         $1 was used, so we can't make any regexp shy.  Improved tests now
38862         detect this.
38863
38864         useless-if-before-free: accept white space in the expression.
38865         * build-aux/useless-if-before-free: For now, any white space
38866         in the expression must be identical in the free argument.
38867
38868         useless-if-before-free: efficiency tweak
38869         * build-aux/useless-if-before-free: Make the expression-matching
38870         regexp "shy".
38871         Make the *outer* regexp shy, not the expr-matching one.
38872
38873         update code-in-comment to accept cast of free arg
38874         * build-aux/useless-if-before-free: Update regexp.
38875
38876 2008-05-25  Bruno Haible  <bruno@clisp.org>
38877
38878         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
38879         * modules/copy-file-tests (Files, Makefile.am): Update.
38880         * tests/test-copy-file.c (func_test_copy): Update.
38881
38882 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
38883
38884         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
38885
38886 2008-05-23  Bruno Haible  <bruno@clisp.org>
38887
38888         Improve support for ACLs on OSF/1.
38889         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
38890         Remove fallback for unknown flavors of ACLs.
38891
38892 2008-05-22  Bruno Haible  <bruno@clisp.org>
38893
38894         Add support for ACLs on OSF/1.
38895         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
38896         replacements.
38897         (acl_free_text): New macro fallback.
38898         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
38899         acl_free.
38900         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
38901         acl_free_text function. Require AC_C_INLINE.
38902
38903 2008-05-22  Bruno Haible  <bruno@clisp.org>
38904
38905         Make copy_acl work on MacOS X 10.5.
38906         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
38907         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
38908         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
38909         If MODE_INSIDE_ACL, don't assume that every system has the same text
38910         representation for ACLs as FreeBSD.
38911         * lib/copy-acl.c (copy_acl): Add support for platforms with
38912         !MODE_INSIDE_ACL.
38913         * lib/file-has-acl.c (file_has_acl): Likewise.
38914         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
38915         FreeBSD, MacOS X, or IRIX, respectively.
38916
38917 2008-05-22  Bruno Haible  <bruno@clisp.org>
38918
38919         * lib/acl.h: Don't include <sys/acl.h>.
38920         (GETACLCNT): Move fallback to lib/acl-internal.h.
38921         * lib/acl-internal.h: Include <sys/acl.h> here.
38922         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
38923
38924 2008-05-22  Bruno Haible  <bruno@clisp.org>
38925
38926         Split off copy_acl function to separate file.
38927         * lib/copy-acl.c: New file, extracted from lib/acl.c.
38928         * lib/acl.c (copy_acl): Moved function to separate file.
38929         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
38930         * modules/acl (Files): Add lib/copy-acl.c.
38931         (Makefiles.am): Augment lib_SOURCES.
38932
38933 2008-05-22  Bruno Haible  <bruno@clisp.org>
38934
38935         * modules/copy-file-tests: New file.
38936         * tests/test-copy-file.sh: New file.
38937         * tests/test-copy-file.c: New file.
38938         * tests/test-copy-file-sameacls.c: New file.
38939
38940 2008-05-22  Eric Blake  <ebb9@byu.net>
38941
38942         Avoid gcc warning.
38943         * tests/test-memcmp.c (main): Pass NULL indirectly.
38944
38945 2008-05-21  Bruno Haible  <bruno@clisp.org>
38946
38947         Add reference doc about ACLs.
38948         * doc/acl-resources.txt: New file.
38949         * doc/acl-cygwin.txt: New file.
38950
38951 2008-05-21  Bruno Haible  <bruno@clisp.org>
38952
38953         Avoid one more warning from gcc.
38954         * lib/vasnprintf.c (IF_LINT): Update comments.
38955         (VASNPRINTF): Use it also for the 'prefix' array initializer.
38956
38957 2008-05-21  Jim Meyering  <meyering@redhat.com>
38958
38959         avoid a warning from gcc
38960         * lib/vasnprintf.c (IF_LINT): Define.
38961         (scale10_round_decimal_long_double):
38962         Use it to avoid a "may be used uninitialized" warning.
38963         (scale10_round_decimal_double): Likewise.
38964
38965 2008-05-21  Simon Josefsson  <simon@josefsson.org>
38966
38967         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
38968         declared.
38969
38970 2008-05-20  Bruno Haible  <bruno@clisp.org>
38971
38972         * tests/test-memcmp.c (main): Test also the sign of the result. Test
38973         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
38974
38975 2008-05-20  Simon Josefsson  <simon@josefsson.org>
38976
38977         * modules/memcmp-tests: New file.
38978         * tests/test-memcmp.c: New file.
38979
38980 2008-05-19  Bruno Haible  <bruno@clisp.org>
38981
38982         * modules/propername (Notice, configure.ac): Put quoted "..." into
38983         --keyword option.
38984         * lib/propername.h: Update comments accordingly.
38985         Reported by Eric Blake.
38986
38987 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
38988
38989         * modules/getpass-gnu (Depends-on): Add fseeko.
38990
38991 2008-05-19  Simon Josefsson  <simon@josefsson.org>
38992
38993         * modules/base64-tests: New file.
38994
38995 2008-05-19  Bo Borgerson <gigabo@gmail.com>
38996
38997         * lib/base64.c (base64_decode_ctx): If a decode context structure
38998         was passed in use it to ignore newlines.  If a context structure
38999         was _not_ passed in, continue to treat newlines as garbage (this
39000         is the historical behavior).  Formerly base64_decode.
39001         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39002         takes a decode context structure.
39003         * lib/base64.h (base64_decode): Macro for four-argument calls.
39004         (base64_decode_alloc): Likewise.
39005         * lib/base64.c (base64_decode_ctx): If a decode context structure
39006         was passed in use it to ignore newlines.  If a context structure
39007         was _not_ passed in, continue to treat newlines as garbage (this
39008         is the historical behavior).  Formerly base64_decode.
39009         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
39010         takes a decode context structure.
39011         * lib/base64.h (base64_decode): Macro for four-argument calls.
39012         (base64_decode_alloc): Likewise.
39013
39014 2008-05-19  Jim Meyering  <meyering@redhat.com>
39015
39016         avoid a warning from gcc
39017         * lib/trim.c (IF_LINT): Define.
39018         (trim2): Use it to avoid a "may be used uninitialized" warning.
39019
39020         Fix doc typo.
39021         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
39022
39023 2008-05-19  Bruno Haible  <bruno@clisp.org>
39024
39025         * doc/glibc-functions/getpass.texi: Document limits of other
39026         implementations.
39027
39028 2008-05-19  Simon Josefsson  <simon@josefsson.org>
39029             Bruno Haible <bruno@clisp.org>
39030
39031         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
39032
39033 2008-05-18  Bruno Haible  <bruno@clisp.org>
39034
39035         * modules/propername: New file, from GNU gettext.
39036         * lib/propername.h: New file, from GNU gettext.
39037         * lib/propername.c: New file, from GNU gettext.
39038         * MODULES.html.sh (Internationalization functions): Add propername.
39039
39040 2008-05-16  Jim Meyering  <meyering@redhat.com>
39041             Bruno Haible  <bruno@clisp.org>
39042
39043         Avoid some warnings from "gcc -Wshadow".
39044         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
39045
39046 2008-05-15  Eric Blake  <ebb9@byu.net>
39047
39048         Extend previous patch to cygwin 1.7.0.
39049         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
39050         fast implementation in cygwin >= 1.7.0.
39051         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39052         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39053
39054 2008-05-15  Bruno Haible  <bruno@clisp.org>
39055
39056         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
39057         implementation in glibc >= 2.9.
39058         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
39059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39060
39061 2008-05-15  Bruno Haible  <bruno@clisp.org>
39062
39063         * MODULES.html.sh (Internationalization functions): Remove linebreak.
39064         (Unicode string functions): Add unilbrk/*.
39065         Reported by Karl Berry.
39066
39067 2008-05-15  Eric Blake  <ebb9@byu.net>
39068
39069         Fix violation of <stdbool.h> replacement in regex.
39070         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
39071         * lib/regexec.c (re_search_internal): Likewise.
39072         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
39073
39074 2008-05-15  Jim Meyering  <meyering@redhat.com>
39075
39076         avoid distracting test output when git or cvs is not found
39077         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
39078         * tests/test-vc-list-files-git.sh: Likewise.
39079
39080 2008-05-15  Eric Blake  <ebb9@byu.net>
39081
39082         Glibc finally accepted the memmem speedup code, bugzilla #5514.
39083         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
39084         glibc version.
39085         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39086         * doc/posix-functions/strstr.texi (strstr): Likewise.
39087         * lib/str-two-way.h (MAX): Sychronize with glibc.
39088
39089 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
39090
39091         * lib/regcomp.c (optimize_utf8): Add a note on why we test
39092         opr.ctx_type.
39093         (calc_first): Initialize constraint field.
39094         (duplicate_node_closure): Use it instead of special casing ANCHORS.
39095         Fix grammar.
39096         (duplicate_node): Merge constraint field for all node types.
39097         (calc_eclosure_iter): Look at constraint field for all node types.
39098         * lib/regex_internal.c (create_cd_newstate): Don't look at
39099         opr.ctx_type.
39100
39101 2008-05-14  Bruno Haible  <bruno@clisp.org>
39102
39103         Help GCC to do better code generation.
39104         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
39105         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
39106         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
39107         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
39108         Declare with attribute 'malloc' if supported.
39109
39110 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
39111
39112         use "echo STR|wc -c" rather than unportable "expr length STR"
39113         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
39114         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
39115
39116 2008-05-14  Jim Meyering  <meyering@redhat.com>
39117
39118         use dd ibs=$n count=1 ... rather than less-portable head -c$n
39119         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
39120         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
39121         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
39122         via Collin Lasse.
39123
39124 2008-05-14  Eric Blake  <ebb9@byu.net>
39125
39126         Avoid quadratic growth in gl_LIBSOURCES.
39127         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
39128         Suggested by Bruno Haible.
39129
39130         Test xmemdup0.
39131         * modules/xmemdup0-tests: New file.
39132         * tests/test-xmemdup0.c: Likewise.
39133
39134 2008-05-13  Eric Blake  <ebb9@byu.net>
39135
39136         Split xmemdup0 into its own module.
39137         * modules/xmemdup0: New file.
39138         * lib/xmemdup0.h: Likewise.
39139         * lib/xmemdup0.c: Likewise.
39140         * MODULES.html.sh (Memory management functions): Add xmemdup0.
39141         * lib/xalloc.h (xmemdup0): Remove.
39142         * lib/xmalloc.c (xmemdup0): Likewise.
39143
39144 2008-05-13  Eric Blake  <ebb9@byu.net>
39145             Bruno Haible  <bruno@clisp.org>
39146
39147         Reduce number of forks required during autoconf.
39148         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
39149         and gl_LIBSOURCES_DIR.
39150         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
39151         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
39152         m4_syscmd per file.
39153         <m4_foreach_w>: Move...
39154         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
39155
39156 2008-05-13  Eric Blake  <ebb9@byu.net>
39157
39158         * gnulib-tool: Fix various comment typos.
39159
39160 2008-05-12  Bruno Haible  <bruno@clisp.org>
39161
39162         Tailor the linebreaking algorithm.
39163         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
39164
39165 2008-05-12  Bruno Haible  <bruno@clisp.org>
39166
39167         Update to Unicode 5.0.0.
39168         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39169         LBP_JV, LBP_JT. Redistribute values.
39170         (unilbrk_table): Change size.
39171         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
39172         Unicode TR#14 rev. 22.
39173         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
39174         LBP_JV, LBP_JT. Redistribute values.
39175         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
39176         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
39177         Update.
39178         * lib/unilbrk/lbrkprop1.h: Regenerated.
39179         * lib/unilbrk/lbrkprop2.h: Regenerated.
39180         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
39181         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
39182         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
39183         Likewise.
39184         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
39185         Likewise.
39186         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
39187         result.
39188         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
39189         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
39190         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
39191         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
39192         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
39193         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
39194
39195 2008-05-11  Bruno Haible  <bruno@clisp.org>
39196
39197         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
39198
39199 2008-05-11  Bruno Haible  <bruno@clisp.org>
39200
39201         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
39202         * modules/unilbrk/gen-lbrk: New file.
39203
39204 2008-05-11  Bruno Haible  <bruno@clisp.org>
39205
39206         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
39207         * m4/sha512.m4 (gl_SHA512): Likewise.
39208
39209 2008-05-11  Jim Meyering  <meyering@redhat.com>
39210
39211         New modules: crypto/sha256, crypto/sha512 (from coreutils)
39212         * modules/crypto/sha256: New file.
39213         * modules/crypto/sha512: Likewise.
39214         * lib/sha256.c: Likewise.
39215         * lib/sha256.h: Likewise.
39216         * lib/sha512.c: Likewise.
39217         * lib/sha512.h: Likewise.
39218         * lib/u64.h: Likewise.
39219         * m4/sha256.m4: Likewise.
39220         * m4/sha512.m4: Likewise.
39221         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
39222
39223 2008-05-10  Bruno Haible  <bruno@clisp.org>
39224
39225         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
39226         (Input/Output <stdio.h>): Add xprintf.
39227         (Signal handling <signal.h>): Add strsignal.
39228         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
39229         (Core language properties): Add func.
39230         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
39231         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
39232         strings.
39233         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
39234         (Input/output): New section.
39235         (File system functions): Add openat-die, stat-macros.
39236         (Networking functions): Add sockets.
39237         (Unicode string functions): Add unictype/*.
39238         (Support for building libraries and executables): Add gperf.
39239         (Support for building documentation): Add agpl-3.0.
39240         (Misc): Add nocrash.
39241
39242 2008-05-10  Bruno Haible  <bruno@clisp.org>
39243
39244         * modules/unictype/gen-ctype: New file.
39245
39246 2008-05-10  Jim Meyering  <meyering@redhat.com>
39247
39248         Make chdir-safer.c more efficient on a system with no symlinks.
39249         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
39250         also if ELOOP is zero.  Suggested by Bruno Haible.
39251
39252         Make chdir-safer.c slightly safer.
39253         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
39254         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
39255
39256         Avoid compile failure on systems without ELOOP (like mingw).
39257         * lib/chdir-safer.c (ELOOP): Define if not already defined.
39258         Reported by Bruno Haible.
39259
39260 2008-05-10  Bruno Haible  <bruno@clisp.org>
39261
39262         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
39263         (is_utf8_encoding): Use a case-insensitive comparison.
39264         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
39265         streq.
39266
39267 2008-05-10  Bruno Haible  <bruno@clisp.org>
39268
39269         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
39270         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
39271         * lib/unilbrk/ulc-common.h (iconv_string_length,
39272         iconv_string_keeping_offsets): Remove declarations.
39273         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
39274         Don't include <iconv.h>, streq.h, xsize.h.
39275         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
39276         conversion.
39277         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
39278         <iconv.h>, streq.h, xsize.h.
39279         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
39280         conversion.
39281         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
39282         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
39283         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
39284         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
39285
39286 2008-05-10  Bruno Haible  <bruno@clisp.org>
39287
39288         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
39289         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
39290
39291         * modules/unilbrk/u32-width-linebreaks-tests: New file.
39292         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
39293
39294         * modules/unilbrk/u16-width-linebreaks-tests: New file.
39295         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
39296
39297         * modules/unilbrk/u8-width-linebreaks-tests: New file.
39298         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
39299
39300         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
39301         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
39302
39303         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
39304         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
39305
39306         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
39307         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
39308
39309         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
39310         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
39311
39312 2008-05-10  Bruno Haible  <bruno@clisp.org>
39313
39314         Split up 'linebreak' module.
39315         * lib/unilbrk.h: New file, based on lib/linebreak.h.
39316         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
39317         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
39318         modifications.
39319         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
39320         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
39321         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
39322         lib/linebreak.c.
39323         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
39324         lib/linebreak.c.
39325         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
39326         lib/linebreak.c.
39327         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
39328         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
39329         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
39330         lib/linebreak.c.
39331         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
39332         lib/linebreak.c.
39333         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
39334         lib/linebreak.c.
39335         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
39336         lib/linebreak.c.
39337         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
39338         lib/linebreak.c.
39339         * modules/unilbrk/base: New file.
39340         * modules/unilbrk/tables: New file.
39341         * modules/unilbrk/u8-possible-linebreaks: New file.
39342         * modules/unilbrk/u16-possible-linebreaks: New file.
39343         * modules/unilbrk/u32-possible-linebreaks: New file.
39344         * modules/unilbrk/ulc-common: New file.
39345         * modules/unilbrk/ulc-possible-linebreaks: New file.
39346         * modules/unilbrk/u8-width-linebreaks: New file.
39347         * modules/unilbrk/u16-width-linebreaks: New file.
39348         * modules/unilbrk/u32-width-linebreaks: New file.
39349         * modules/unilbrk/ulc-width-linebreaks: New file.
39350         * lib/linebreak.h: Remove file.
39351         * lib/linebreak.c: Remove file.
39352         * m4/linebreak.m4: Remove file.
39353         * modules/linebreak: Remove file.
39354         * NEWS: Mention the changes.
39355
39356 2008-05-09  Eric Blake  <ebb9@byu.net>
39357
39358         Add xmemdup0.
39359         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
39360         implementation.
39361         * lib/xmalloc.c (xmemdup0): New C implementation.
39362
39363 2008-05-08  Bruno Haible  <bruno@clisp.org>
39364
39365         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
39366
39367 2008-05-07  Eric Blake  <ebb9@byu.net>
39368
39369         Support cross-compilation of <wctype.h>.
39370         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
39371         AC_CACHE_CHECK.
39372
39373 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
39374
39375         * build-aux/vc-list-files: Add support for bzr.
39376
39377 2008-05-03  Jim Meyering  <meyering@redhat.com>
39378
39379         avoid failed assertion with tight malloc
39380         * tests/test-getndelim2.c: Correct an off-by-one assertion.
39381
39382 2008-05-03  Simon Josefsson  <simon@josefsson.org>
39383
39384         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
39385         are needed from arpa/inet.h.
39386         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
39387         Reported by Bruno Haible.
39388
39389 2008-05-02  Jim Meyering  <meyering@redhat.com>
39390
39391         avoid compilation error on FreeBSD 6
39392         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
39393
39394 2008-05-01  Jim Meyering  <meyering@redhat.com>
39395
39396         useless-if-before-free: correct --help's exit status description
39397         * build-aux/useless-if-before-free (usage): Like grep, exit 0
39398         for one or more matches, etc.  Reported by Bruno Haible.
39399
39400         vc-list-files: make the stand-alone gnulib test work
39401         * modules/vc-list-files-tests (configure.ac):
39402         Define and AC_SUBST abs_aux_dir.
39403         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
39404         $(abs_top_srcdir) to each script and having each of them
39405         duplicate the work of setting PATH, set PATH here, using
39406         the new variable, abs_aux_dir instead.
39407         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
39408         * tests/test-vc-list-files-git.sh: Likewise.
39409         Reported by Bruno Haible.
39410
39411 2008-05-01  Bruno Haible  <bruno@clisp.org>
39412
39413         * lib/getndelim2.c (getndelim2): Fix newsize computation during
39414         reallocation. Rename 'done' to 'found_delimiter'.
39415
39416 2008-05-01  Jim Meyering  <meyering@redhat.com>
39417
39418         vc-list-files: accommodate /bin/sh like the one from Solaris 10
39419         * build-aux/vc-list-files: Use `...`, not $(...).
39420
39421 2008-04-30  Jim Meyering  <meyering@redhat.com>
39422
39423         add tests for vc-list-files
39424         * modules/vc-list-files-tests: New module.
39425         * tests/test-vc-list-files-cvs.sh: New file.
39426         * tests/test-vc-list-files-git.sh: New file.
39427
39428         avoid a warning from gcc
39429         * lib/getndelim2.c (IF_LINT): Define.
39430         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
39431
39432         vc-list-files: work properly with build-aux/cvsu, too
39433         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
39434         to all cvs-based clauses.
39435
39436         vc-list-files: work properly in the CVS+awk case, too
39437         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
39438
39439         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
39440         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
39441         take more than one file argument, so .  Add quotes, just in case $dir
39442         ever contains a shell meta-character.  Prompted by Soren Hansen in
39443         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
39444
39445 2008-04-29  Eric Blake  <ebb9@byu.net>
39446
39447         Optimize getndelim2 to use block operations when possible.
39448         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
39449         freadseek, and memchr2.
39450         * lib/getndelim2.c (getndelim2): Use them for block reads.
39451
39452 2008-04-29  Bruno Haible  <bruno@clisp.org>
39453
39454         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
39455         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39456         * modules/inet_ntop (Depends-on): Add extensions.
39457         * modules/inet_pton (Depends-on): Likewise.
39458         Reported by Simon Josefsson.
39459
39460 2008-04-29  Jim Meyering  <meyering@redhat.com>
39461
39462         When the is more than one match in a block, match all of them.
39463         * build-aux/useless-if-before-free: Iterate through each block
39464         until there are no more matches.
39465
39466         Fix broken useless-if-before-free script.
39467         * build-aux/useless-if-before-free: Fix typo: missing "?" after
39468         the expression to match cast of argument to free-like function.
39469
39470 2008-04-29  Eric Blake  <ebb9@byu.net>
39471
39472         Use new header.
39473         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
39474
39475 2008-04-29  Jim Meyering  <meyering@redhat.com>
39476
39477         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
39478         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
39479         by gnulib to exist and to declare e.g., inet_ntop.
39480         Don't include "inet_ntop.h", now removed.
39481
39482         * m4/arpa_inet_h.m4: Remove trailing blanks.
39483
39484 2008-04-29  Eric Blake  <ebb9@byu.net>
39485
39486         Silence valgrind on safe reads beyond potential array bounds.
39487         * lib/rawmemchr.valgrind: New file.
39488         * lib/strchrnul.valgrind: Likewise.
39489         * modules/rawmemchr (Files): Distribute new file.
39490         * modules/strchrnul (Files): Likewise.
39491         Suggested by Bruno Haible.
39492
39493 2008-04-29  Bruno Haible  <bruno@clisp.org>
39494
39495         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
39496         (inet_ntop, inet_pton): Change portability warning's wording.
39497         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
39498         Invoke gl_CHECK_NEXT_HEADERS.
39499         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
39500         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
39501         set ARPA_INET_H.
39502         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39503         * modules/arpa_inet (Description): No longer only for systems that
39504         lack it.
39505         (Depends-on): Add include_next.
39506         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
39507         HAVE_ARPA_INET_H.
39508
39509 2008-04-29  Jim Meyering  <meyering@redhat.com>
39510
39511         * modules/mkdir (License): Re-license as LGPLv2+.
39512
39513 2008-04-29  Bruno Haible  <bruno@clisp.org>
39514
39515         * modules/rawmemchr (Maintainer): Set to Eric.
39516         * modules/strchrnul (Maintainer): Likewise.
39517
39518 2008-04-29  Simon Josefsson  <simon@josefsson.org>
39519
39520         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
39521         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
39522
39523         * modules/arpa_inet (arpa/inet.h): Use them.
39524
39525 2008-04-28  Eric Blake  <ebb9@byu.net>
39526
39527         Test getndelim2.
39528         * modules/getndelim2-tests: New file.
39529         * tests/test-getndelim2.c: Likewise.
39530         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
39531         stream.
39532         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
39533
39534         * MODULES.html.sh: Document new module.
39535
39536 2008-04-20  Bruno Haible  <bruno@clisp.org>
39537
39538         * lib/c-stack.c (die): Use raise.
39539         * modules/c-stack (Depends-on): Add raise.
39540
39541 2008-04-28  Bruno Haible  <bruno@clisp.org>
39542
39543         Expect rpmatch to be declared.
39544         * lib/yesno.c (rpmatch): Remove declaration.
39545
39546         Declare rpmatch.
39547         * lib/stdlib.in.h (rpmatch): New declaration.
39548         * lib/rpmatch.c: Include <stdlib.h> first.
39549         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
39550         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
39551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
39552         HAVE_RPMATCH.
39553         * modules/rpmatch (Depends-on): Add stdlib, extensions.
39554         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
39555         (Include): Set to <stdlib.h>.
39556         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
39557         HAVE_RPMATCH.
39558         * NEWS: Document the change.
39559
39560 2008-04-28  Bruno Haible  <bruno@clisp.org>
39561
39562         Change rpmatch to use nl_langinfo when appropriate.
39563         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
39564         (N_): New macro.
39565         (localized_pattern): New function/macro.
39566         (try): Remove match, nomatch arguments. Copy the pattern into safe
39567         memory before caching it.
39568         (rpmatch): Use localized_pattern. Add translator comments.
39569         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
39570         Suggested by Eric Blake.
39571         * modules/rpmatch (Depends-on): Add stdbool.
39572
39573 2008-04-28  Eric Blake  <ebb9@byu.net>
39574
39575         Add rawmemchr module, matching glibc.
39576         * modules/string (Makefile.am): New indicator.
39577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
39578         * lib/string.in.h (rawmemchr): Declare when appropriate.
39579         * modules/rawmemchr: New file.
39580         * m4/rawmemchr.m4: Likewise.
39581         * lib/rawmemchr.c: Likewise.
39582         * modules/rawmemchr-tests: Likewise.
39583         * tests/test-rawmemchr.c: Likewise.
39584         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
39585         module.
39586         * modules/strchrnul (Depends-on): Add rawmemchr.
39587         * lib/strchrnul.c (strchrnul): Optimize a corner case.
39588
39589         Whitespace cleanup.
39590         * tests/test-strchrnul.c: Reindent.
39591         * lib/strchrnul.c: Likewise.
39592
39593         Optimize and test strchrnul.
39594         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
39595         * modules/strchrnul-tests: New file.
39596         * tests/test-strchrnul.c: Likewise.
39597
39598         Remove intprops dependency.
39599         * modules/memchr (Depends-on): Remove intprops.
39600         * modules/memrchr (Depends-on): Likewise.
39601         * modules/memchr2 (Depends-on): Likewise.
39602         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
39603         * lib/memrchr.c (__memrchr): Likewise.
39604         * lib/memrchr2.c (memchr2): Likewise.
39605         Reported by Simon Josefsson.
39606
39607 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39608
39609         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
39610         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39611
39612 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39613
39614         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
39615
39616         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
39617
39618         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
39619
39620         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
39621         declarations.
39622         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
39623
39624         * m4/inet_pton.m4: Don't check for header files.
39625
39626         * m4/inet_ntop.m4: Don't check for header files.
39627
39628 2008-04-28  Simon Josefsson  <simon@josefsson.org>
39629
39630         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
39631         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
39632         trigger for cygwin).
39633         Reported by Bruno Haible  <bruno@clisp.org>.
39634
39635 2008-04-28  Bruno Haible  <bruno@clisp.org>
39636
39637         * doc/posix-functions/strdup.texi: Mention mingw problem.
39638
39639 2008-04-27  Bruno Haible  <bruno@clisp.org>
39640
39641         * modules/stat-time-tests (Depends-on): Add sleep.
39642         * tests/test-stat-time.c (force_unlink): New function.
39643         (cleanup): Use it.
39644         (test_mtime): Remove the ctime related tests.
39645         (test_ctime): New function, containing the ctime related tests.
39646         (main): Call test_ctime, except on native Windows platforms.
39647
39648 2008-04-27  Bruno Haible  <bruno@clisp.org>
39649
39650         * lib/rpmatch.c (rpmatch): Add some comments.
39651         Reported by James Youngman <jay@gnu.org>.
39652
39653 2008-04-27  Bruno Haible  <bruno@clisp.org>
39654
39655         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
39656         quiet NaNs.
39657
39658 2008-04-27  Bruno Haible  <bruno@clisp.org>
39659
39660         Make test-yesno.sh work on mingw.
39661         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
39662         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
39663         (main): Set stdin to binary mode.
39664         * modules/yesno-tests (Depends-on): Add binary-io.
39665
39666 2008-04-27  Bruno Haible  <bruno@clisp.org>
39667
39668         Fix 'isfinite' on x86, x86_64, ia64 platforms.
39669         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
39670         argument that lie outside the IEEE 854 domain.
39671         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
39672         (gl_ISFINITE): Use it.
39673         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
39674
39675 2008-04-27  Bruno Haible  <bruno@clisp.org>
39676
39677         Allow local renaming in config.h.
39678         * lib/memrchr.c (memrchr): Don't undefine outside libc.
39679
39680 2008-04-27  Bruno Haible  <bruno@clisp.org>
39681
39682         * lib/memchr.c (__memchr): Change type of 'i'.
39683         * lib/memchr2.c (memchr2): Likewise.
39684
39685 2008-04-26  Eric Blake  <ebb9@byu.net>
39686         and Bruno Haible  <bruno@clisp.org>
39687
39688         Optimize and test memrchr.
39689         * modules/memrchr (Depends-on): Add intprops.
39690         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
39691         * modules/memrchr-tests: New file.
39692         * tests/test-memrchr.c: New file.
39693
39694 2008-04-26  Bruno Haible  <bruno@clisp.org>
39695
39696         Add tentative support for DragonFly BSD.
39697         * lib/stdio-impl.h: Add macros for DragonFly BSD.
39698         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
39699         fp.
39700         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39701         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
39702         * lib/fpurge.c (fpurge): Likewise.
39703         * lib/freadable.c (freaadable): Likewise.
39704         * lib/freadahead.c (freadahead): Likewise.
39705         * lib/freading.c (freading): Likewise.
39706         * lib/freadptr.c (freadptr): Likewise.
39707         * lib/freadseek.c (freadptrinc): Likewise.
39708         * lib/fseeko.c (fseeko): Likewise.
39709         * lib/fseterr.c (fseterr): Likewise.
39710         * lib/fwritable.c (fwritable): Likewise.
39711         * lib/fwriting.c (fwriting): Likewise.
39712
39713 2008-04-26  Bruno Haible  <bruno@clisp.org>
39714
39715         * lib/stdio-impl.h: New file.
39716         * lib/fbufmode.c: Include stdio-impl.h.
39717         (fbufmode): Use fp_, remove redundant #defines.
39718         * lib/fflush.c: Include stdio-impl.h.
39719         (clear_ungetc_buffer): Remove redundant #defines.
39720         * lib/fpurge.c: Include stdio-impl.h.
39721         (fpurge): Remove redundant #defines.
39722         * lib/freadable.c: Include stdio-impl.h.
39723         (freadable): Remove redundant #defines.
39724         * lib/freadahead.c: Include stdio-impl.h.
39725         (freadahead): Remove redundant #defines.
39726         * lib/freading.c: Include stdio-impl.h.
39727         (freading): Remove redundant #defines.
39728         * lib/freadptr.c: Include stdio-impl.h.
39729         (freadptr): Remove redundant #defines.
39730         * lib/freadseek.c: Include stdio-impl.h.
39731         (freadptrinc): Remove redundant #defines.
39732         * lib/fseeko.c: Include stdio-impl.h.
39733         (rpl_fseeko): Remove redundant #defines.
39734         * lib/fseterr.c: Include stdio-impl.h.
39735         (fseterr): Remove redundant #defines.
39736         * lib/fwritable.c: Include stdio-impl.h.
39737         (fwritable: Remove redundant #defines.
39738         * lib/fwriting.c: Include stdio-impl.h.
39739         (fwriting): Remove redundant #defines.
39740         * modules/fbufmode (Files): Add lib/stdio-impl.h.
39741         * modules/fflush (Files): Likewise.
39742         * modules/fpurge (Files): Likewise.
39743         * modules/freadable (Files): Likewise.
39744         * modules/freadahead (Files): Likewise.
39745         * modules/freading (Files): Likewise.
39746         * modules/freadptr (Files): Likewise.
39747         * modules/freadseek (Files): Likewise.
39748         * modules/fseeko (Files): Likewise.
39749         * modules/fseterr (Files): Likewise.
39750         * modules/fwritable (Files): Likewise.
39751         * modules/fwriting (Files): Likewise.
39752
39753 2008-04-26  Bruno Haible  <bruno@clisp.org>
39754
39755         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
39756         restore_seek_optimization, update_fpos_cache): New functions, extracted
39757         from rpl_fflush.
39758         (rpl_fflush): Use them.
39759         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
39760         (gl_REPLACE_FFLUSH): Use it.
39761
39762 2008-04-26  Bruno Haible  <bruno@clisp.org>
39763
39764         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
39765         on Solaris.
39766         * tests/test-xstrtoimax.sh: Likewise.
39767         * tests/test-xstrtoumax.sh: Likewise.
39768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39769
39770 2008-04-26  Bruno Haible  <bruno@clisp.org>
39771
39772         * modules/memchr-tests: New file.
39773         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
39774
39775 2008-04-26  Eric Blake  <ebb9@byu.net>
39776             Bruno Haible  <bruno@clisp.org>
39777
39778         * lib/memchr.c: Include intprops.h.
39779         (__memchr): Optimize parallel detection of matching bytes. Rename local
39780         variables. Add explanatory comments.
39781
39782 2008-04-26  Bruno Haible  <bruno@clisp.org>
39783
39784         Fix module 'memchr', broken since 2000-10-28.
39785         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
39786
39787 2008-04-26  Bruno Haible  <bruno@clisp.org>
39788
39789         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
39790         comments.
39791
39792 2008-04-25  Eric Blake  <ebb9@byu.net>
39793
39794         Use native fstatat on cygwin 1.7.0.
39795         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
39796         first.
39797
39798 2008-04-23  Eric Blake  <ebb9@byu.net>
39799
39800         Improve memchr2 performance.
39801         * lib/memchr2.c (memchr2): Further optimize parallel detection of
39802         NUL bytes.
39803         * modules/memchr2 (Depends-on): Use intprops.h.
39804
39805 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39806
39807         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
39808         an inline function instead of a CPP macro.  Patch by Ben Pfaff
39809         <blp@cs.stanford.edu>.
39810
39811 2008-04-23  Simon Josefsson  <simon@josefsson.org>
39812
39813         * lib/arpa_inet.in.h: New file.
39814
39815         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
39816         (Makefile.am): Sed in substitute header file.
39817
39818         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
39819         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
39820
39821         * modules/inet_ntop (configure.ac): Use
39822         gl_ARPA_INET_MODULE_INDICATOR.
39823
39824         * modules/inet_pton (configure.ac): Use
39825         gl_ARPA_INET_MODULE_INDICATOR.
39826
39827 2008-04-22  Jim Meyering  <meyering@redhat.com>
39828
39829         * modules/verify (License): Re-license as LGPLv2+.
39830
39831 2008-04-22  Simon Josefsson  <simon@josefsson.org>
39832
39833         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
39834         parameter to void* as per POSIX standard (MinGW uses char*).
39835
39836 2008-04-21  Bruno Haible  <bruno@clisp.org>
39837
39838         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39839         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39840         Define to replacements if REPLACE_ISWCNTRL is 1.
39841         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
39842         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
39843         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
39844         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
39845         what it fixes.
39846         * doc/posix-functions/iswalpha.texi: Likewise.
39847         * doc/posix-functions/iswblank.texi: Likewise.
39848         * doc/posix-functions/iswcntrl.texi: Likewise.
39849         * doc/posix-functions/iswdigit.texi: Likewise.
39850         * doc/posix-functions/iswgraph.texi: Likewise.
39851         * doc/posix-functions/iswlower.texi: Likewise.
39852         * doc/posix-functions/iswprint.texi: Likewise.
39853         * doc/posix-functions/iswpunct.texi: Likewise.
39854         * doc/posix-functions/iswspace.texi: Likewise.
39855         * doc/posix-functions/iswupper.texi: Likewise.
39856         * doc/posix-functions/iswxdigit.texi: Likewise.
39857         Reported by Alain Guibert.
39858
39859 2008-04-21  Bruno Haible  <bruno@clisp.org>
39860
39861         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
39862         Patch by Alain Guibert.
39863
39864 2008-04-21  Bruno Haible  <bruno@clisp.org>
39865
39866         Fix test failures on mingw.
39867         * tests/test-xstrtol.c (print_no_progname): New function.
39868         (main): Install it in error_print_progname hook.
39869         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
39870         * tests/test-xstrtoimax.sh: Likewise.
39871         * tests/test-xstrtoumax.sh: Likewise.
39872
39873 2008-04-21  Bruno Haible  <bruno@clisp.org>
39874
39875         Fix test failure on mingw.
39876         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
39877
39878 2008-04-21  Bruno Haible  <bruno@clisp.org>
39879
39880         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
39881         Actually assign a value.
39882
39883 2008-04-20  Bruno Haible  <bruno@clisp.org>
39884
39885         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
39886         take 2.
39887         * lib/canonicalize.c (canonicalize_file_name): Elide if the
39888         'canonicalize-lgpl' module is also used.
39889         * lib/canonicalize-lgpl.c: Undo last change.
39890         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
39891
39892 2008-04-20  Bruno Haible  <bruno@clisp.org>
39893
39894         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
39895         config.h. Provide _mkdir based fallback for mingw.
39896         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
39897         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
39898         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
39899         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
39900         rather than defining mkdir in config.h.
39901         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
39902         (gl_SYS_STAT_H_DEFAULTS): New macro.
39903         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
39904         HAVE_IO_H any more.
39905         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
39906         HAVE_DECL_MKDIR and HAVE_IO_H.
39907
39908 2008-04-20  Bruno Haible  <bruno@clisp.org>
39909
39910         * lib/isapipe.c: Port to native Windows platforms.
39911
39912 2008-04-20  Bruno Haible  <bruno@clisp.org>
39913
39914         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
39915
39916 2008-04-21  Eric Blake  <ebb9@byu.net>
39917
39918         Work around preprocessors that don't handle UINTMAX_MAX.
39919         * lib/memchr2.c (memchr2): Avoid embedded #if.
39920         Reported by Alain Guibert, fix suggested by Bruno Haible.
39921
39922 2008-04-21  Simon Josefsson  <simon@josefsson.org>
39923
39924         * doc/posix-functions/strftime.texi (strftime): Explain better
39925         Windows incompatibility.  Suggested by Micah Cowan
39926         <micah@cowan.name>.
39927
39928 2008-04-20  Bruno Haible  <bruno@clisp.org>
39929
39930         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
39931         unistr/u8-mblen.
39932
39933 2008-04-20  Bruno Haible  <bruno@clisp.org>
39934
39935         Fix test failure on platforms with non-GNU iconv.
39936         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
39937         (U_TO_U8): Use it, rather than u16_to_u8.
39938         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
39939         units at the end of the input string.
39940         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
39941
39942 2008-04-20  Bruno Haible  <bruno@clisp.org>
39943
39944         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
39945         when the resulting length is 0.
39946         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
39947
39948 2008-04-20  Bruno Haible  <bruno@clisp.org>
39949
39950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
39951         works.
39952         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
39953
39954 2008-04-20  Bruno Haible  <bruno@clisp.org>
39955
39956         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
39957         * modules/tsearch-tests (configure.ac): Test for initstate function.
39958
39959 2008-04-20  Bruno Haible  <bruno@clisp.org>
39960
39961         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
39962         for nlink_t if missing.
39963         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
39964
39965 2008-04-19  Bruno Haible  <bruno@clisp.org>
39966
39967         Work around snprintf bug on Linux libc5.
39968         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
39969         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
39970         gl_SNPRINTF_SIZE1.
39971         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39972         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
39973         that test failed.
39974         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
39975         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
39976         * modules/snprintf (Files): Add m4/printf.m4.
39977         * modules/vsnprintf (Files): Likewise.
39978         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
39979         * doc/posix-functions/vsnprintf.texi: Likewise.
39980
39981 2008-04-19  Bruno Haible  <bruno@clisp.org>
39982
39983         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
39984         from 0.0058 to less than 10^-7.
39985
39986 2008-04-19  Bruno Haible  <bruno@clisp.org>
39987
39988         Fix rounding when a precision is given.
39989         * lib/vasnprintf.c (is_borderline): New function.
39990         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
39991         9...9x.
39992         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
39993         %e, %g.
39994         * tests/test-vasprintf-posix.c (test_function): Likewise.
39995         * tests/test-snprintf-posix.h (test_function): Likewise.
39996         * tests/test-sprintf-posix.h (test_function): Likewise.
39997         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
39998         * tests/test-printf-posix.h (test_function): Likewise.
39999         * tests/test-printf-posix.output: Update.
40000         Reported by John Darrington <john@darrington.wattle.id.au> via
40001         Ben Pfaff <blp@cs.stanford.edu>.
40002
40003 2008-04-18  Simon Josefsson  <simon@josefsson.org>
40004
40005         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
40006         Suggested by Bruno Haible <bruno@clisp.org>.
40007
40008 2008-04-17  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
40011         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
40012         implementation.
40013         Patch by Bruce Merry <bmerry@gmail.com>.
40014
40015 2008-04-17  Simon Josefsson  <simon@josefsson.org>
40016
40017         * doc/posix-functions/strftime.texi (strftime): Mention that %e
40018         doesn't work under Windows.
40019
40020 2008-04-16  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
40023         New macros.
40024         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
40025         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
40026         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
40027         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
40028         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
40029         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
40030         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
40031         macros.
40032         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
40033         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
40034         Northern Sotho, Uighur.
40035
40036 2008-04-16  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
40039         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
40040         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
40041         Reported by Daniel Bergström <daniel@octocode.com>.
40042
40043 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
40044             Bruno Haible  <bruno@clisp.org>
40045
40046         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
40047         function.
40048         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
40049         New functions, mostly extracted from gl_locale_name_default.
40050         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
40051
40052 2008-04-16  Eric Blake  <ebb9@byu.net>
40053
40054         Adjust strtod detection to catch glibc 2.7 bug.
40055         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
40056         Reported by John Gatewood Ham.
40057
40058 2008-04-16  Bruno Haible  <bruno@clisp.org>
40059
40060         Add tentative support for Linux libc5.
40061         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
40062         * lib/fpurge.c (fpurge): Likewise.
40063         * lib/freadable.c (freadable): Likewise.
40064         * lib/freadahead.c (freadahead): Likewise.
40065         * lib/freading.c (freading): Likewise.
40066         * lib/freadptr.c (freadptr): Likewise.
40067         * lib/freadseek.c (freadptrinc): Likewise.
40068         * lib/fseeko.c (rpl_fseeko): Likewise.
40069         * lib/fseterr.c (fseterr): Likewise.
40070         * lib/fwritable.c (fwritable): Likewise.
40071         * lib/fwriting.c (fwriting): Likewise.
40072         Reported by Alain Guibert <alguibert+bts@free.fr>.
40073
40074 2008-04-15  Bruno Haible  <bruno@clisp.org>
40075
40076         * modules/mathl (configure.ac): Define module indicator.
40077
40078 2008-04-15  Bruno Haible  <bruno@clisp.org>
40079
40080         * lib/logl.c (logl): Remove unused variables.
40081
40082 2008-04-15  Bruno Haible  <bruno@clisp.org>
40083
40084         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
40085         fails.
40086
40087 2008-04-15  Bruno Haible  <bruno@clisp.org>
40088
40089         * lib/trim.c (trim2): Fix argument of isspace() macro.
40090
40091 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
40092
40093         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
40094         to 0.
40095         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
40096
40097 2008-04-14  Bruno Haible  <bruno@clisp.org>
40098
40099         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
40100         AC_LANG_PROGRAM argument.
40101         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
40102         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
40103         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40104         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40105         * m4/math_h.m4 (gl_MATH_H): Likewise.
40106         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
40107         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
40108         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40109         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
40110         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40111         * m4/regex.m4 (gl_REGEX): Likewise.
40112         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
40113         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
40114         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40115         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
40116         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
40117         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40118         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40120
40121 2008-04-14  Jim Meyering  <meyering@redhat.com>
40122
40123         test-strtod: fix typos: s/abs/fabs/
40124         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
40125
40126 2008-04-13  Bruno Haible  <bruno@clisp.org>
40127
40128         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
40129         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
40130         module is also used and while not building the reloc-wrapper.
40131
40132 2008-04-13  Bruno Haible  <bruno@clisp.org>
40133
40134         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
40135
40136 2008-04-13  Bruno Haible  <bruno@clisp.org>
40137
40138         Fix AIX compilation failure introduced on 2008-04-02.
40139         * tests/test-frexp.c (exp): Undefine before redefining.
40140         * tests/test-frexpl.c (exp): Likewise.
40141
40142 2008-04-13  Bruno Haible  <bruno@clisp.org>
40143
40144         Work around a HP-UX stdio bug.
40145         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
40146         * tests/test-ftello.c (main): Likewise.
40147         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
40148         * doc/posix-functions/ftello.texi: Likewise.
40149
40150 2008-04-13  Bruno Haible  <bruno@clisp.org>
40151
40152         Make test-signbit pass on HP-UX/hppa.
40153         * tests/test-signbit.c (minus_zerol): New variable.
40154         (test_signbitl): Use it.
40155
40156 2008-04-13  Bruno Haible  <bruno@clisp.org>
40157
40158         Make truncl work on OSF/1 4.0.
40159         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
40160         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40161         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
40162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
40163         HAVE_DECL_TRUNCL.
40164         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
40165         HAVE_DECL_TRUNCL.
40166         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
40167
40168 2008-04-13  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/unictype.h: Remove trailing comma from enumeration definitions.
40171
40172 2008-04-13  Bruno Haible  <bruno@clisp.org>
40173
40174         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
40175         expression, so as to avoid HP-UX 11 cc compiler bug.
40176
40177 2008-04-13  Bruno Haible  <bruno@clisp.org>
40178
40179         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
40180
40181 2008-04-13  Bruno Haible  <bruno@clisp.org>
40182
40183         * lib/git-merge-changelog.c: Remove empty declaration outside of
40184         functions.
40185
40186 2008-04-13  Bruno Haible  <bruno@clisp.org>
40187
40188         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
40189
40190 2008-04-13  Bruno Haible  <bruno@clisp.org>
40191
40192         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
40193         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
40194         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
40195         also if it exists but lacks definitions of the SHUT_* macros.
40196         * modules/sys_socket (Description): Update.
40197         Reported by Elbert Pol <e.pol@chello.nl>.
40198
40199 2008-04-13  Bruno Haible  <bruno@clisp.org>
40200
40201         * lib/localcharset.c (OS2): Don't redefine if already defined.
40202         Reported by Elbert Pol <e.pol@chello.nl>.
40203
40204 2008-04-13  Bruno Haible  <bruno@clisp.org>
40205
40206         * lib/binary-io.h [__EMX__]: Include <io.h>.
40207         Reported by Elbert Pol <e.pol@chello.nl>.
40208
40209 2008-04-12  Bruno Haible  <bruno@clisp.org>
40210
40211         * lib/fpucw.h: Enable the definitions also for x86_64.
40212         Needed for NetBSD/x86_64.
40213         Reported by Thomas Klausner <tk@giga.or.at>.
40214
40215 2008-04-12  Bruno Haible  <bruno@clisp.org>
40216
40217         * tests/test-strtod.c: Include isnand.h.
40218         (main): Use isnand instead of isnan.
40219         Reported by Jim Meyering.
40220
40221 2008-04-12  Bruno Haible  <bruno@clisp.org>
40222
40223         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
40224         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40225
40226 2008-04-12  Jim Meyering  <meyering@redhat.com>
40227
40228         * m4/math_h.m4 (gl_MATH_H): Fix typos.
40229
40230 2008-04-12  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
40233         Reported by Elbert Pol <e.pol@chello.nl>.
40234
40235 2008-04-12  Eric Blake  <ebb9@byu.net>
40236
40237         Work around Solaris 10 math.h bug.
40238         * m4/math_h.m4 (gl_MATH_H): Check for bug.
40239         (gl_MATH_H_DEFAULTS): Set up default.
40240         * modules/math (Makefile.am): Replace new indicators.
40241         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
40242         * tests/test-math.c (main): Test this.
40243         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
40244         * doc/posix-headers/math.texi (math.h): Mention bug.
40245         Reported by Nelson H. F. Beebe and Jim Meyering.
40246
40247 2008-04-11  Bruno Haible  <bruno@clisp.org>
40248
40249         Adapt to future versions of Apple GCC.
40250         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
40251         Reported by Peter O'Gorman <peter@pogma.com>.
40252
40253 2008-04-11  Bruno Haible  <bruno@clisp.org>
40254
40255         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
40256
40257 2008-04-11  Bruno Haible  <bruno@clisp.org>
40258
40259         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
40260
40261         * modules/getaddrinfo-tests (Makefile.am): Define
40262         test_getaddrinfo_LDADD.
40263
40264 2008-04-11  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
40267         (init): Fix syntax error.
40268         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
40269         is declared.
40270
40271 2008-04-11  Bruno Haible  <bruno@clisp.org>
40272
40273         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
40274         * modules/glob (Depends-on): Add stdbool.
40275
40276 2008-04-11  Bruno Haible  <bruno@clisp.org>
40277
40278         * lib/trim.c: Include <string.h>.
40279
40280 2008-04-11  Eric Blake  <ebb9@byu.net>
40281
40282         Avoid compile failure on OS/2.
40283         * lib/regex_internal.h (internal_function): Disable optimization
40284         on OS/2 (__EMX__), where it caused compiler error.
40285         Reported by Elbert Pol.
40286
40287 2008-04-11  Bruno Haible  <bruno@clisp.org>
40288
40289         Flush the standard error stream before aborting. Needed on mingw.
40290         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
40291         * tests/test-array_list.c (ASSERT): Likewise.
40292         * tests/test-array_oset.c (ASSERT): Likewise.
40293         * tests/test-avltree_list.c (ASSERT): Likewise.
40294         * tests/test-avltree_oset.c (ASSERT): Likewise.
40295         * tests/test-avltreehash_list.c (ASSERT): Likewise.
40296         * tests/test-binary-io.c (ASSERT): Likewise.
40297         * tests/test-byteswap.c (ASSERT): Likewise.
40298         * tests/test-c-ctype.c (ASSERT): Likewise.
40299         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
40300         * tests/test-c-strcasestr.c (ASSERT): Likewise.
40301         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
40302         * tests/test-c-strstr.c (ASSERT): Likewise.
40303         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
40304         * tests/test-canonicalize.c (ASSERT): Likewise.
40305         * tests/test-carray_list.c (ASSERT): Likewise.
40306         * tests/test-ceilf1.c (ASSERT): Likewise.
40307         * tests/test-ceilf2.c (ASSERT): Likewise.
40308         * tests/test-ceill.c (ASSERT): Likewise.
40309         * tests/test-count-one-bits.c (ASSERT): Likewise.
40310         * tests/test-fbufmode.c (ASSERT): Likewise.
40311         * tests/test-fflush2.c (ASSERT): Likewise.
40312         * tests/test-floorf1.c (ASSERT): Likewise.
40313         * tests/test-floorf2.c (ASSERT): Likewise.
40314         * tests/test-floorl.c (ASSERT): Likewise.
40315         * tests/test-fopen.c (ASSERT): Likewise.
40316         * tests/test-fpending.c (ASSERT): Likewise.
40317         * tests/test-fprintf-posix.c (ASSERT): Likewise.
40318         * tests/test-fpurge.c (ASSERT): Likewise.
40319         * tests/test-freadable.c (ASSERT): Likewise.
40320         * tests/test-freadahead.c (ASSERT): Likewise.
40321         * tests/test-freading.c (ASSERT): Likewise.
40322         * tests/test-freadptr.c (ASSERT): Likewise.
40323         * tests/test-freadptr2.c (ASSERT): Likewise.
40324         * tests/test-freadseek.c (ASSERT): Likewise.
40325         * tests/test-freopen.c (ASSERT): Likewise.
40326         * tests/test-frexp.c (ASSERT): Likewise.
40327         * tests/test-frexpl.c (ASSERT): Likewise.
40328         * tests/test-fseek.c (ASSERT): Likewise.
40329         * tests/test-fseeko.c (ASSERT): Likewise.
40330         * tests/test-fstrcmp.c (ASSERT): Likewise.
40331         * tests/test-ftell.c (ASSERT): Likewise.
40332         * tests/test-ftello.c (ASSERT): Likewise.
40333         * tests/test-func.c (ASSERT): Likewise.
40334         * tests/test-fwritable.c (ASSERT): Likewise.
40335         * tests/test-fwriting.c (ASSERT): Likewise.
40336         * tests/test-getdelim.c (ASSERT): Likewise.
40337         * tests/test-getline.c (ASSERT): Likewise.
40338         * tests/test-i-ring.c (ASSERT): Likewise.
40339         * tests/test-iconv-utf.c (ASSERT): Likewise.
40340         * tests/test-iconv.c (ASSERT): Likewise.
40341         * tests/test-isfinite.c (ASSERT): Likewise.
40342         * tests/test-isnand.c (ASSERT): Likewise.
40343         * tests/test-isnanf.c (ASSERT): Likewise.
40344         * tests/test-isnanl.h (ASSERT): Likewise.
40345         * tests/test-ldexpl.c (ASSERT): Likewise.
40346         * tests/test-linked_list.c (ASSERT): Likewise.
40347         * tests/test-linkedhash_list.c (ASSERT): Likewise.
40348         * tests/test-localename.c (ASSERT): Likewise.
40349         * tests/test-lseek.c (ASSERT): Likewise.
40350         * tests/test-mbscasecmp.c (ASSERT): Likewise.
40351         * tests/test-mbscasestr1.c (ASSERT): Likewise.
40352         * tests/test-mbscasestr2.c (ASSERT): Likewise.
40353         * tests/test-mbscasestr3.c (ASSERT): Likewise.
40354         * tests/test-mbscasestr4.c (ASSERT): Likewise.
40355         * tests/test-mbschr.c (ASSERT): Likewise.
40356         * tests/test-mbscspn.c (ASSERT): Likewise.
40357         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
40358         * tests/test-mbspbrk.c (ASSERT): Likewise.
40359         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
40360         * tests/test-mbsrchr.c (ASSERT): Likewise.
40361         * tests/test-mbsspn.c (ASSERT): Likewise.
40362         * tests/test-mbsstr1.c (ASSERT): Likewise.
40363         * tests/test-mbsstr2.c (ASSERT): Likewise.
40364         * tests/test-mbsstr3.c (ASSERT): Likewise.
40365         * tests/test-memchr2.c (ASSERT): Likewise.
40366         * tests/test-memmem.c (ASSERT): Likewise.
40367         * tests/test-open.c (ASSERT): Likewise.
40368         * tests/test-printf-frexp.c (ASSERT): Likewise.
40369         * tests/test-printf-frexpl.c (ASSERT): Likewise.
40370         * tests/test-printf-posix.c (ASSERT): Likewise.
40371         * tests/test-quotearg.c (ASSERT): Likewise.
40372         * tests/test-rbtree_list.c (ASSERT): Likewise.
40373         * tests/test-rbtree_oset.c (ASSERT): Likewise.
40374         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
40375         * tests/test-round1.c (ASSERT): Likewise.
40376         * tests/test-roundf1.c (ASSERT): Likewise.
40377         * tests/test-roundl.c (ASSERT): Likewise.
40378         * tests/test-signbit.c (ASSERT): Likewise.
40379         * tests/test-sleep.c (ASSERT): Likewise.
40380         * tests/test-snprintf-posix.c (ASSERT): Likewise.
40381         * tests/test-snprintf.c (ASSERT): Likewise.
40382         * tests/test-sprintf-posix.c (ASSERT): Likewise.
40383         * tests/test-stat-time.c (ASSERT): Likewise.
40384         * tests/test-strcasestr.c (ASSERT): Likewise.
40385         * tests/test-strerror.c (ASSERT): Likewise.
40386         * tests/test-striconv.c (ASSERT): Likewise.
40387         * tests/test-striconveh.c (ASSERT): Likewise.
40388         * tests/test-striconveha.c (ASSERT): Likewise.
40389         * tests/test-strsignal.c (ASSERT): Likewise.
40390         * tests/test-strstr.c (ASSERT): Likewise.
40391         * tests/test-strtod.c (ASSERT): Likewise.
40392         * tests/test-trunc1.c (ASSERT): Likewise.
40393         * tests/test-trunc2.c (ASSERT): Likewise.
40394         * tests/test-truncf1.c (ASSERT): Likewise.
40395         * tests/test-truncf2.c (ASSERT): Likewise.
40396         * tests/test-truncl.c (ASSERT): Likewise.
40397         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
40398         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
40399         * tests/test-vasnprintf.c (ASSERT): Likewise.
40400         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
40401         * tests/test-vasprintf.c (ASSERT): Likewise.
40402         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
40403         * tests/test-vprintf-posix.c (ASSERT): Likewise.
40404         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
40405         * tests/test-vsnprintf.c (ASSERT): Likewise.
40406         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
40407         * tests/test-wcwidth.c (ASSERT): Likewise.
40408         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
40409         * tests/test-xprintf-posix.c (ASSERT): Likewise.
40410         * tests/test-xvasprintf.c (ASSERT): Likewise.
40411         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
40412         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
40413         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
40414         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
40415         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
40416         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
40417         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
40418         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
40419         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
40420         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
40421         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
40422         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
40423         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
40424         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
40425         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
40426         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
40427         * tests/unictype/test-block_list.c (ASSERT): Likewise.
40428         * tests/unictype/test-block_of.c (ASSERT): Likewise.
40429         * tests/unictype/test-block_test.c (ASSERT): Likewise.
40430         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
40431         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
40432         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
40433         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
40434         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
40435         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
40436         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
40437         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
40438         * tests/unictype/test-combining.c (ASSERT): Likewise.
40439         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
40440         * tests/unictype/test-digit.c (ASSERT): Likewise.
40441         * tests/unictype/test-mirror.c (ASSERT): Likewise.
40442         * tests/unictype/test-numeric.c (ASSERT): Likewise.
40443         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
40444         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
40445         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
40446         * tests/unictype/test-scripts.c (ASSERT): Likewise.
40447         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
40448         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
40449         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
40450         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
40451         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
40452         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
40453         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
40454         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
40455         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
40456         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
40457         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
40458         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
40459         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
40460         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
40461         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
40462         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
40463         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
40464         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
40465         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
40466         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
40467         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
40468         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
40469         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
40470         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
40471         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
40472         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
40473         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
40474         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
40475         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
40476         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
40477         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
40478         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
40479         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
40480         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
40481         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
40482         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
40483         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
40484         Reported by Eric Blake.
40485
40486 2008-04-11  Bruno Haible  <bruno@clisp.org>
40487
40488         * lib/wchar.in.h: Tweak comment.
40489
40490 2008-04-11  Bruno Haible  <bruno@clisp.org>
40491
40492         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
40493         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
40494         gl_COMMON.
40495         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
40496
40497 2008-04-11  Bruno Haible  <bruno@clisp.org>
40498
40499         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
40500
40501 2008-04-11  Simon Josefsson  <simon@josefsson.org>
40502
40503         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
40504         of attempting to use non-existing /dev/*random.  Based on patch
40505         from Adam Strzelecki <ono@java.pl> in
40506         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
40507
40508 2008-04-08  Bruno Haible  <bruno@clisp.org>
40509
40510         Add tentative support for emx+gcc.
40511         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
40512         * lib/fpurge.c (fpurge): Likewise.
40513         * lib/freadable.c (freadable): Likewise.
40514         * lib/freadahead.c (freadahead): Likewise.
40515         * lib/freading.c (freading): Likewise.
40516         * lib/freadptr.c (freadptr): Likewise.
40517         * lib/freadseek.c (freadptrinc): Likewise.
40518         * lib/fseeko.c (rpl_fseeko): Likewise.
40519         * lib/fseterr.c (fseterr): Likewise.
40520         * lib/fwritable.c (fwritable): Likewise.
40521         * lib/fwriting.c (fwriting): Likewise.
40522         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
40523
40524 2008-04-09  Eric Blake  <ebb9@byu.net>
40525
40526         Avoid some autoconf warnings.
40527         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
40528         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
40529         * m4/afs.m4 (gl_AFS): Likewise.
40530         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
40531         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
40532         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40533         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
40534         (gl_INTEGER_TYPE_SUFFIX): Likewise.
40535         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
40536         (AC_CHECK_DECLS_ONCE): Likewise.
40537         Rename file...
40538         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
40539         gnulib-tool requires autoconf 2.59 or better.
40540         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
40541
40542 2008-04-08  Eric Blake  <ebb9@byu.net>
40543
40544         Use 'git describe --match' if present (added in git 1.5.5).
40545         * build-aux/git-version-gen: Limit result to tags that match 'v*'
40546         if possible.
40547
40548 2008-04-08  Bruno Haible  <bruno@clisp.org>
40549
40550         Add tentative support for OpenServer.
40551         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
40552         _ptr, _cnt.
40553         * lib/fpurge.c (fpurge): Likewise.
40554         * lib/freadable.c (freadable): Likewise.
40555         * lib/freadahead.c (freadahead): Likewise.
40556         * lib/freading.c (freading): Likewise.
40557         * lib/freadptr.c (freadptr): Likewise.
40558         * lib/freadseek.c (freadptrinc): Likewise.
40559         * lib/fseeko.c (rpl_fseeko): Likewise.
40560         * lib/fseterr.c (fseterr): Likewise.
40561         * lib/fwritable.c (fwritable): Likewise.
40562         * lib/fwriting.c (fwriting): Likewise.
40563         Reported by Roger Cornelius <rac@tenzing.org> and
40564         Brian K. White <brian@aljex.com>.
40565
40566 2008-04-06  Jim Meyering  <meyering@redhat.com>
40567
40568         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
40569
40570 2008-04-06  Bruno Haible  <bruno@clisp.org>
40571
40572         Avoid possible error with non-ASCII bytes in UTF-8 locales.
40573         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
40574         * tests/test-printf-posix.sh: Likewise.
40575         * tests/test-vfprintf-posix.sh: Likewise.
40576         * tests/test-vprintf-posix.sh: Likewise.
40577         * tests/test-xprintf-posix.sh: Likewise.
40578
40579 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40580
40581         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
40582         hide error from 'ls', needed on OS/2.
40583         Report by Elbert Pol <elbert.pol@gmail.com>.
40584
40585 2008-04-04  Eric Blake  <ebb9@byu.net>
40586
40587         Make test-fseeko.c failures meaningful.
40588         * tests/test-fseeko.c: Print line number on failure.
40589         * tests/test-fseek.c: Likewise.
40590         Reported by Nelson H. F. Beebe.
40591
40592         Improve strtod bug detection check.
40593         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
40594         required for Solaris 10.
40595         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
40596
40597 2008-04-04  Bruno Haible  <bruno@clisp.org>
40598
40599         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
40600         by m4/setenv.m4.
40601
40602 2008-04-03  Eric Blake  <ebb9@byu.net>
40603
40604         Ensure sane .version contents.
40605         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
40606         version string.
40607         * build-aux/git-version-gen: Improve documentation.
40608
40609         Make GNU make output nicer.
40610         * top/GNUmakefile [!_have-Makefile]: Add dependency on
40611         MAKECMDGOALS to enforce message for all command line targets.  Set
40612         srcdir for use in maint.mk.
40613
40614         Another maintainer tweak.
40615         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
40616         a target that regenerates version.
40617
40618 2008-04-03  Jim Meyering  <meyering@redhat.com>
40619
40620         vc-list-files: don't cause coreutils "make po-check" failure
40621         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
40622
40623 2008-04-03  Eric Blake  <ebb9@byu.net>
40624
40625         Allow VPATH usage of vc-list-files.
40626         * build-aux/vc-list-files (scriptversion): Add timestamp.
40627         (options): Add --help, --version, -C.
40628         (CVS): Support installed cvsu.
40629
40630 2008-04-02  Bruno Haible  <bruno@clisp.org>
40631
40632         Avoid some "statement with no effect" warnings from gcc.
40633         * tests/test-wctype.c (main): Explicitly ignore unused values.
40634         Reported by Jim Meyering.
40635
40636 2008-04-02  Jim Meyering  <meyering@redhat.com>
40637
40638         Avoid some warnings from "gcc -Wshadow".
40639         * tests/test-frexp.c (exp): Define to a different identifier.
40640         * tests/test-frexpl.c (exp): Likewise.
40641
40642 2008-04-03  Jim Meyering  <meyering@redhat.com>
40643
40644         bootstrap: remove dangling *.[ch] symlinks from lib
40645         * build-aux/bootstrap [dangling symlink removal]: Move find's
40646         -depth option to precede all others, to avoid a warning.
40647         Remove *.[ch] files too, and from "$source_base" (usually lib/).
40648
40649 2008-04-02  Bruno Haible  <bruno@clisp.org>
40650
40651         Avoid some warnings from "gcc -Wshadow".
40652         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
40653         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
40654         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
40655         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
40656         Reported by Jim Meyering.
40657
40658 2008-04-01  Bruno Haible  <bruno@clisp.org>
40659
40660         Fix test to work on IRIX 6.5 with cc.
40661         * tests/test-math.c (numeric_equal): New function.
40662         (main): Use it.
40663
40664 2008-04-01  Bruno Haible  <bruno@clisp.org>
40665
40666         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
40667
40668 2008-04-01  Bruno Haible  <bruno@clisp.org>
40669
40670         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
40671         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40672         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
40673         (Depends-on): Remove math.
40674
40675         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
40676         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40677         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
40678         (Depends-on): Remove math.
40679
40680         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
40681         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40682         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
40683         (Depends-on): Remove math.
40684         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
40685         (Depends-on): Remove math.
40686
40687         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
40688         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
40689         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
40690         (Depends-on): Remove math.
40691         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
40692         (Depends-on): Remove math.
40693
40694         * tests/test-round1.c: Include nan.h.
40695         (main): Use NaNd instead of NAN.
40696         * modules/round-tests (Files): Add tests/nan.h.
40697
40698         * tests/test-trunc1.c: Include nan.h.
40699         (main): Use NaNd instead of NAN.
40700         * modules/trunc-tests (Files): Add tests/nan.h.
40701
40702         * tests/test-roundf1.c: Include nan.h.
40703         (main): Use NaNf instead of NAN.
40704         * modules/roundf-tests (Files): Add tests/nan.h.
40705
40706         * tests/test-truncf1.c: Include nan.h.
40707         (main): Use NaNf instead of NAN.
40708         * modules/truncf-tests (Files): Add tests/nan.h.
40709
40710         * tests/test-ceilf1.c: Include nan.h.
40711         (main): Use NaNf instead of NAN.
40712         * modules/ceilf-tests (Files): Add tests/nan.h.
40713
40714         * tests/test-floorf1.c: Include nan.h.
40715         (main): Use NaNf instead of NAN.
40716         * modules/floorf-tests (Files): Add tests/nan.h.
40717
40718         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
40719         (main): Use NaNf instead of NAN.
40720         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
40721
40722         * tests/test-isnand.c: Include nan.h instead of <math.h>.
40723         (main): Use NaNd instead of NAN.
40724         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
40725
40726         * tests/test-frexp.c: Include nan.h.
40727         (main): Use NaNd instead of NAN.
40728         * modules/frexp-tests (Files): Add tests/nan.h.
40729
40730         * lib/isnan.c: Don't include <math.h>.
40731         (FUNC): Don't use NAN macro.
40732         * modules/isnand-nolibm (Depends-on): Remove math.
40733         * modules/isnanf-nolibm (Depends-on): Remove math.
40734         * modules/isnanl (Depends-on): Remove math.
40735         * modules/isnanl-nolibm (Depends-on): Remove math.
40736
40737         * tests/nan.h: New file.
40738
40739 2008-04-01  Eric Blake  <ebb9@byu.net>
40740
40741         Fix typos.
40742         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
40743         values to be the right type.
40744
40745         For now, cater to gnulib strtod inaccuracies.
40746         * tests/test-strtod.c (main): Allow 1-ulp error on expected
40747         fractional results.  While not as nice from a QoI perspective, it
40748         is a quicker patch than correctly implementing decimal to binary
40749         rounding.
40750
40751 2008-03-31  Eric Blake  <ebb9@byu.net>
40752
40753         Guarantee a definition of NAN.
40754         * lib/math.in.h (NAN): Define if missing.
40755         * tests/test-math.c (main): Test it.
40756         * doc/posix-headers/math.texi (math.h): Document this.
40757         * lib/isnan.c (rpl_isnand): Use it.
40758         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
40759         * tests/test-floorf1.c (NaN): Likewise.
40760         * tests/test-frexp.c (NaN): Likewise.
40761         * tests/test-isnand.c (NaN): Likewise.
40762         * tests/test-isnanf.c (NaN): Likewise.
40763         * tests/test-round1.c (NaN): Likewise.
40764         * tests/test-roundf1.c (NaN): Likewise.
40765         * tests/test-snprintf-posix.h (NaN): Likewise.
40766         * tests/test-sprintf-posix.h (NaN): Likewise.
40767         * tests/test-trunc1.c (NaN): Likewise.
40768         * tests/test-truncf1.c (NaN): Likewise.
40769         * tests/test-vasnprintf-posix.c (NaN): Likewise.
40770         * tests/test-vasprintf-posix.c (NaN): Likewise.
40771         * modules/isnand-nolibm (Depends-on): Add math.
40772         * modules/isnanf-nolibm (Depends-on): Likewise.
40773         * modules/isnanl (Depends-on): Likewise.
40774         * modules/isnanl-nolibm (Depends-on): Likewise.
40775         * modules/snprintf-posix-tests (Depends-on): Likewise.
40776         * modules/sprintf-posix-tests (Depends-on): Likewise.
40777         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
40778         * modules/vsprintf-posix-tests (Depends-on): Likewise.
40779         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
40780         * modules/vasprintf-posix-tests (Depends-on): Likewise.
40781
40782 2008-03-31  Bruno Haible  <bruno@clisp.org>
40783
40784         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
40785         * doc/posix-functions/strtod.texi: Likewise.
40786
40787 2008-03-31  Bruno Haible  <bruno@clisp.org>
40788
40789         * tests/test-strtod.c (main): Don't use C99 syntax.
40790
40791 2008-03-31  Bruno Haible  <bruno@clisp.org>
40792
40793         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
40794         Reported by Eric Blake.
40795
40796 2008-03-31  Jim Meyering  <meyering@redhat.com>
40797
40798         Don't compare actual signbit return values.
40799         * tests/test-strtod.c (main): Rather, compare only their
40800         zero/non-zero nature.
40801
40802 2008-03-31  Eric Blake  <ebb9@byu.net>
40803
40804         More strtod documentation.
40805         * doc/posix-functions/strtod.texi (strtod): Interpret more test
40806         failures as distinct bugs.
40807
40808 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40809
40810         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
40811         Problem reported by Erik Benada in
40812         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
40813
40814 2008-03-30  Bruno Haible  <bruno@clisp.org>
40815
40816         * tests/test-strtod.c: Add comments about which assertion fails on which
40817         platform.
40818         * doc/posix-functions/strtod.texi: Add info about many more platforms.
40819
40820 2008-03-30  Eric Blake  <ebb9@byu.net>
40821
40822         Test signbit behavior on zeros.
40823         * tests/test-signbit.c (test_signbitf): Add tests for zero.
40824         (test_signbitd, test_signbitl): Likewise.
40825
40826         More strtod touchups.
40827         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
40828         sign of negative underflow, for now.  Use .5, not .1.
40829         * doc/posix-functions/strtod.texi (strtod): Mention these
40830         limitations.
40831         Reported by Jim Meyering.
40832
40833 2008-03-30  Bruno Haible  <bruno@clisp.org>
40834
40835         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
40836         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
40837
40838 2008-03-30  Bruno Haible  <bruno@clisp.org>
40839
40840         Avoid failure when attempting to return empty iconv results on some
40841         platforms.
40842         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
40843         allocation, don't report ENOMEM when the resulting string is empty.
40844
40845 2008-03-30  Bruno Haible  <bruno@clisp.org>
40846
40847         Fix buffer overrun.
40848         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
40849         Don't consider the width for tmp_length. Check count against tmp_length
40850         before doing the padding. Ensure enough allocation during padding.
40851
40852 2008-03-30  Eric Blake  <ebb9@byu.net>
40853
40854         strtod touchups.
40855         * lib/strtod.c (strtod): Avoid compiler warnings.
40856         Reported by Jim Meyering.
40857
40858 2008-03-30  Bruno Haible  <bruno@clisp.org>
40859
40860         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
40861         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
40862         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
40863         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
40864         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
40865         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
40866         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
40867         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
40868
40869         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
40870         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
40871         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
40872         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
40873         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
40874         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
40875         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
40876         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
40877
40878         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
40879         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
40880         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
40881         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
40882         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
40883         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
40884         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
40885         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
40886
40887         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
40888         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
40889
40890         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
40891         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
40892
40893         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
40894         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
40895
40896         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
40897         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
40898         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
40899
40900         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
40901         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
40902         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
40903
40904         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
40905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
40906         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
40907
40908         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
40909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
40910         * modules/vasprintf (Depends-on): Add EOVERFLOW.
40911
40912         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
40913         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
40914         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
40915         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
40916         (Depends-on): Add EOVERFLOW.
40917         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
40918         (Depends-on): Add EOVERFLOW.
40919         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40920         (Depends-on): Add EOVERFLOW.
40921         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
40922         (Depends-on): Add EOVERFLOW.
40923         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40924         (Depends-on): Add EOVERFLOW.
40925         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
40926         (Depends-on): Add EOVERFLOW.
40927         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40928         (Depends-on): Add EOVERFLOW.
40929         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
40930         (Depends-on): Add EOVERFLOW.
40931
40932         * lib/sprintf.c (EOVERFLOW): Remove fallback.
40933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
40934         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
40935
40936         * lib/snprintf.c (EOVERFLOW): Remove fallback.
40937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
40938         * modules/snprintf (Depends-on): Add EOVERFLOW.
40939
40940         * lib/poll.c (EOVERFLOW): Remove fallback.
40941         * modules/poll (Depends-on): Add EOVERFLOW.
40942
40943         * lib/getugroups.c (EOVERFLOW): Remove fallback.
40944         * modules/getugroups (Depends-on): Add EOVERFLOW.
40945
40946         * lib/getdelim.c (EOVERFLOW): Remove fallback.
40947         * modules/getdelim (Depends-on): Add EOVERFLOW.
40948
40949         * lib/ftell.c (EOVERFLOW): Remove fallback.
40950         * modules/ftell (Depends-on): Add EOVERFLOW.
40951
40952         * lib/fprintf.c (EOVERFLOW): Remove fallback.
40953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
40954         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
40955
40956         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
40957
40958         * modules/EOVERFLOW-tests: New file.
40959         * tests/test-EOVERFLOW.c: New file.
40960
40961         * modules/EOVERFLOW: New file.
40962         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
40963
40964 2008-03-30  Bruno Haible  <bruno@clisp.org>
40965
40966         Fix bug introduced on 2007-06-10.
40967         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
40968         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
40969
40970 2008-03-30  Bruno Haible  <bruno@clisp.org>
40971
40972         Improve freadseek's efficiency after ungetc.
40973         * lib/freadseek.c: Include freadahead.h.
40974         (freadptrinc): New function, extracted from freadseek.
40975         (freadseek): Use it in a loop. Use freadahead to determine the number
40976         of loop iterations.
40977         * modules/freadseek (Depends-on): Add freadahead.
40978         (configure.ac): Require AC_C_INLINE.
40979
40980 2008-03-30  Bruno Haible  <bruno@clisp.org>
40981
40982         * lib/freadseek.c (freadseek): Don't ignore the return value of
40983         freadptr.
40984
40985 2008-03-29  Eric Blake  <ebb9@byu.net>
40986
40987         Add hex float support.
40988         * modules/strtod (Depends-on): Add c-ctype.
40989         (Link): Mention POW_LIB.
40990         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
40991         whitespace between 'e' and exponent.
40992         * tests/test-strtod.c (main): Enable hex float tests.
40993         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
40994         now provides.
40995
40996         Document various strtod bugs, with some fixes.
40997         * doc/posix-functions/strtod.texi (strtod): Document bugs with
40998         "-0x", "inf", "nan", and hex constants.
40999         * doc/posix-functions/atof.texi (atof): Likewise.
41000         * modules/stdlib (Makefile.am): Support strtod.
41001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41002         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
41003         detect additional strtod bugs.
41004         * lib/stdlib.in.h (rpl_strtod): Add declarations.
41005         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
41006         bool where appropriate.  Parse 'inf' and 'nan'.
41007         * tests/test-strtod.c: New file.
41008         * modules/strtod (Depends-on): Add stdbool, stdlib.
41009         (configure.ac): Turn on module indicator.
41010         * modules/strtod-tests: New module.
41011
41012 2008-03-29  Eric Blake  <ebb9@byu.net>
41013
41014         Fix ftell on mingw.
41015         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
41016         * modules/ftell-tests (Depends-on): Add binary-io.
41017         * modules/ftello-tests (Depends-on): Likewise.
41018         * tests/test-ftell.c (main): Enhance test to cover behavior after
41019         ungetc.  Enforce binary mode.
41020         * tests/test-ftello.c (main): Likewise.
41021
41022         Pass test-freadseek on cygwin.
41023         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
41024         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
41025         ungetc buffer.
41026
41027         * tests/test-fflush2.c (main): Fix typo.
41028
41029 2008-03-29  Bruno Haible  <bruno@clisp.org>
41030
41031         * tests/test-fflush2.c (main): Temporarily disable the contents of
41032         this test.
41033         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
41034         Reported by Eric Blake.
41035
41036 2008-03-28  Simon Josefsson  <simon@josefsson.org>
41037
41038         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
41039         (GC_SHA224_DIGEST_SIZE): Add.
41040
41041         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
41042         (gc_hash_digest_length): Likewise.
41043         (gc_hash_buffer): Likewise.
41044
41045 2008-03-25  Bruno Haible  <bruno@clisp.org>
41046
41047         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
41048         detail which gettext release to use.
41049         Reported by Simon Josefsson.
41050
41051 2008-03-26  Jim Meyering  <meyering@redhat.com>
41052
41053         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
41054         * modules/gnumakefile (clean-GNUmakefile): Also, use
41055         test ... && ... || : syntax rather than if-then ... fi.
41056
41057         gnumakefile: Don't double-quote-expand $(VPATH) value.
41058         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
41059
41060 2008-03-24  Eric Blake  <ebb9@byu.net>
41061
41062         Alter GNUmakefile to install into top directory.
41063         * modules/maintainer-makefile: Split, and add dependency...
41064         * modules/gnumakefile: to this new module.
41065         * build-aux/GNUmakefile: Move...
41066         * top/GNUmakefile: ...here.
41067         * build-aux/maint.mk: Move...
41068         * top/maint.mk: ...here.
41069         * MODULES.html.sh (Support for maintaining...): Document new
41070         module.
41071
41072 2008-03-23  Bruno Haible  <bruno@clisp.org>
41073
41074         * gnulib-tool: New options --vc-files, --no-vc-files.
41075         (func_usage): Document them.
41076         (vc_files): New variable.
41077         (func_import): Consider vc_files.
41078         (func_create_testdir): Set vc_files to empty.
41079         Suggested by Jim Meyering and Karl Berry.
41080
41081 2008-03-23  Bruno Haible  <bruno@clisp.org>
41082
41083         Fix regex compilation error on HP-UX 11.
41084         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
41085         * modules/regex (Files): Add m4/mbstate_t.m4.
41086         Reported by Ton Voon <ton.voon@altinity.com>.
41087
41088 2008-03-23  Bruno Haible  <bruno@clisp.org>
41089
41090         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
41091
41092 2008-03-23  Eric Blake  <ebb9@byu.net>
41093             Bruno Haible  <bruno@clisp.org>
41094
41095         Install files from top/ in the destination directory.
41096         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
41097         augmentation also for the files from top/.
41098         (func_import, func_create_testdir): Rewrite file names:
41099         top/filename -> filename.
41100
41101 2008-03-23  Bruno Haible  <bruno@clisp.org>
41102
41103         Tweak "gnulib --version" output.
41104         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
41105
41106 2008-03-23  Bruno Haible  <bruno@clisp.org>
41107
41108         Tweak "gnulib --version" output.
41109         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
41110         rather than contents of ChangeLog, when possible.
41111
41112 2008-03-21  Eric Blake  <ebb9@byu.net>
41113
41114         More --version tweaks.
41115         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
41116         date of last ChangeLog entry.
41117
41118 2008-03-21  Jim Meyering  <meyering@redhat.com>
41119
41120         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
41121
41122 2008-03-20  Eric Blake  <ebb9@byu.net>
41123
41124         VPATH fix.
41125         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
41126
41127 2008-03-20  Simon Josefsson  <simon@josefsson.org>
41128
41129         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
41130         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
41131
41132 2008-03-20  Eric Blake  <ebb9@byu.net>
41133
41134         Sync GNUmakefile with coreutils.
41135         * build-aux/GNUmakefile (have-Makefile): Rename...
41136         (_have-Makefile): ...to this, for namespace consideration.
41137         (GNUmakefile.cfg): Include, if present.
41138         (_autoreconf): Define a default.
41139         (_is-dist-target): New rule for rebuilds to pick up intra-release
41140         version.
41141         (maint-cfg.mk): Rename...
41142         (cfg.mk): ...to this.
41143
41144 2008-03-18  Jim Meyering  <meyering@redhat.com>
41145
41146         New script and module: mktempd
41147         * MODULES.html.sh (maint+release support): Add mktempd.
41148         * build-aux/mktempd: New file.
41149         * modules/mktempd: New file.
41150
41151 2008-03-15  Jim Meyering  <meyering@redhat.com>
41152
41153         Undo last change.
41154         * lib/sha1.c, lib/md5.c: 63 != ~63.
41155         Reported by Andreas Schwab.
41156
41157         sha1.c, md5.c: Hoist a redundant expression.
41158         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
41159         "ctx->buflen" only once, before calling *_process_block.
41160         * lib/md5.c (md5_process_bytes): Likewise.
41161
41162 2008-03-14  Eric Blake  <ebb9@byu.net>
41163
41164         Bump copyright year in files generated by gnulib-tool.
41165         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
41166         gnulib-tool, rather than hard-coding it.
41167
41168         Fix 'gnulib-tool --version' output to work with git.
41169         * gnulib-tool (func_gnulib_dir): New function, extracted from...
41170         (startup): ...here.
41171         (func_version): Use it to invoke git-version-gen, rather than
41172         relying on CVS keyword expansion.  Modernize wording.
41173         (cvsdatestamp, last_checkin_date, version): Kill unused
41174         variables.
41175
41176 2008-03-12  Jim Meyering  <meyering@redhat.com>
41177
41178         Recognize optional cast of the argument to free.
41179         * build-aux/useless-if-before-free: Update regexps.
41180
41181         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
41182
41183 2008-03-11  Bruno Haible  <bruno@clisp.org>
41184
41185         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
41186         by a single package.
41187         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
41188         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
41189         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
41190         Reported by Sam Steingold <sds@gnu.org>.
41191
41192 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41193
41194         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
41195         repositories.
41196
41197 2008-03-11  Bruno Haible  <bruno@clisp.org>
41198
41199         Avoid conflicts between local macro definitions.
41200         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
41201         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
41202
41203 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
41204             Bruno Haible  <bruno@clisp.org>
41205
41206         Make va_copy work with some version of xlc on AIX 5.1.
41207         * lib/stdarg.in.h: New file.
41208         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
41209         On AIX, use a <stdarg.h> file substitute.
41210         * modules/stdarg (Files): Add lib/stdarg.in.h.
41211         (Depends-on): Add include_next.
41212         (Makefile.am): Build a stdarg.h substitute if requested.
41213         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
41214
41215 2008-03-10  Bruno Haible  <bruno@clisp.org>
41216
41217         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
41218         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41219         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41220
41221 2008-03-10  Bruno Haible  <bruno@clisp.org>
41222
41223         * modules/stdlib (Depends-on): Add include_next, remove
41224         absolute-header.
41225
41226 2008-03-09  Bruno Haible  <bruno@clisp.org>
41227
41228         * lib/freadahead.h (freadahead): Document more precisely.
41229         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
41230         the sum of both buffer sizes.
41231         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
41232         * NEWS: Document the change.
41233
41234 2008-03-09  Bruno Haible  <bruno@clisp.org>
41235
41236         Extend freadptr to return also the buffer size.
41237         * lib/freadptr.h (freadptr): Add sizep argument.
41238         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
41239         (freadptr): Add sizep argument. Determine buffer size like freadahead
41240         does.
41241         * tests/test-freadptr.c: Don't include freadahead.h.
41242         (main): Adapt for new calling convention of freadptr.
41243         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
41244         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
41245         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
41246         tests/test-freadptr2.sh.
41247         (Depends): Remove freadahead.
41248         (TESTS): Add test-freadptr2.sh.
41249         (check_PROGRAMS): Add test-freadptr2.
41250
41251 2008-03-09  Bruno Haible  <bruno@clisp.org>
41252
41253         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
41254         Report and solution by Simon Josefsson.
41255
41256 2008-03-06  Bruno Haible  <bruno@clisp.org>
41257
41258         Make fflush after ungetc work on BSD platforms.
41259         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
41260         * tests/test-fflush2.c: New file.
41261         * tests/test-fflush2.sh: New file.
41262         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
41263         tests/test-fflush2.c.
41264         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
41265         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
41266
41267 2008-03-06  Eric Blake  <ebb9@byu.net>
41268
41269         Likewise for ftello.
41270         * modules/ftello (Dependencies): Add extensions.
41271         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
41272
41273 2008-03-06  Bruno Haible  <bruno@clisp.org>
41274
41275         * modules/fseeko (Dependencies): Add extensions.
41276         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
41277         Needed on glibc systems.
41278
41279 2008-03-06  Bruno Haible  <bruno@clisp.org>
41280
41281         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
41282         email address.
41283         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41284
41285 2008-03-06  Bruno Haible  <bruno@clisp.org>
41286
41287         * users.txt: Add libgnupdf.
41288
41289 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41290
41291         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
41292         (Header File Substitutes, Function Substitutes,
41293         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
41294         (Build robot for gnulib): Fix typo.
41295
41296 2008-03-06  Bruno Haible  <bruno@clisp.org>
41297
41298         * doc/gnulib-tool.texi (VCS Issues): Small updates.
41299         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
41300
41301 2008-03-06  Bruno Haible  <bruno@clisp.org>
41302
41303         * doc/func.texi: New file, extracted from doc/gnulib.texi.
41304         * doc/gnulib.texi: Include it.
41305
41306 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41307
41308         * modules/func (License): Change license to unlimited; there was
41309         no LGPL parts in the module anyway.
41310
41311 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41312
41313         * modules/__func__: Renamed to modules/func.
41314         * modules/__func__-tests: Renamed to modules/func-tests.
41315         * tests/test-__func__.c: Renamed to tests/test-func.c.
41316         * m4/__func__.m4: Renamed to m4/func.m4.
41317         * doc/gnulib.texi (__func__): Section renamed to func.
41318         Suggested by Eric Blake <ebb9@byu.net>.
41319
41320 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41321
41322         * doc/gnulib.texi (__func__): Use C99 terminology when talking
41323         about __func__.  Make example self-contained.  Suggested by Eric
41324         Blake <ebb9@byu.net>.
41325
41326         * tests/test-__func__.c (main): Avoid extraneous () around __func.
41327         Suggested by Eric Blake <ebb9@byu.net>.
41328
41329 2008-03-06  Simon Josefsson  <simon@josefsson.org>
41330
41331         * modules/__func__: New file.
41332         * modules/__func__-tests: New file.
41333         * tests/test-__func__.c: New file.
41334         * m4/__func__.m4: New file.
41335         * doc/gnulib.texi (__func__): Document __func__ module.
41336
41337 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41338
41339         * modules/byteswap (License): Re-license as LGPLv2+.
41340
41341 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41342
41343         * doc/Makefile: Add pdf target.
41344
41345 2008-03-05  Simon Josefsson  <simon@josefsson.org>
41346
41347         * modules/inline (License): Use 'unlimited', since there are only
41348         *.m4 files in this module.
41349
41350 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41351             Bruno Haible  <bruno@clisp.org>
41352
41353         Add support for HP C 7.1 on OpenVMS 8.3.
41354         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
41355
41356 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
41357
41358         Update VMS specifics.
41359         * lib/getopt.c [VMS]: Remove include of unixlib.h.
41360
41361 2008-03-02  Jim Meyering  <meyering@redhat.com>
41362
41363         Remove the last dependency on the "free" module.
41364         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
41365         Reported by Bob Proulx.
41366
41367         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
41368
41369         Remove useless "if" tests before free.  Deprecate "free" module.
41370         * doc/posix-functions/free.texi: Mention that this
41371         module is no longer useful.
41372         * modules/free (Notice): Say this module is obsolete.
41373         * modules/readutmp (Depends-on): Remove free.
41374         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
41375         * lib/putenv.c (putenv): Likewise.
41376         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
41377         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
41378         * tests/test-c-strcasestr.c (main): Likewise.
41379         * tests/test-c-strstr.c (main): Likewise.
41380         * tests/test-mbscasestr1.c (main): Likewise.
41381         * tests/test-mbscasestr2.c (main): Likewise.
41382         * tests/test-mbsstr1.c (main): Likewise.
41383         * tests/test-mbsstr2.c (main): Likewise.
41384         * tests/test-memmem.c (main): Likewise.
41385         * tests/test-strcasestr.c (main): Likewise.
41386         * tests/test-striconv.c (main): Likewise.
41387         * tests/test-striconveh.c (main): Likewise.
41388         * tests/test-striconveha.c (main): Likewise.
41389         * tests/test-strstr.c (main): Likewise.
41390
41391         * build-aux/git-version-gen: Adjust a comment and the Usage string.
41392
41393         bootstrap: sync from coreutils again
41394         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
41395
41396 2008-03-01  Jim Meyering  <meyering@redhat.com>
41397
41398         bootstrap: sync from coreutils
41399         * build-aux/bootstrap (update_po_files): Copy a .po file into place
41400         also when the target doesn't exist.
41401
41402 2008-03-01  Eric Blake  <ebb9@byu.net>
41403
41404         Fix bugs in last patch.
41405         * lib/memchr2.c (memchr2): Fix typo.
41406         * tests/test-memchr2.c: Test previous bug, and don't use GNU
41407         extension.
41408         Reported by Bruce Korb.
41409
41410         New module 'memchr2'.
41411         * modules/memchr2: New file.
41412         * modules/memchr2-tests: Likewise.
41413         * lib/memchr2.h: Likewise.
41414         * lib/memchr2.c: Likewise, based on memchr.c.
41415         * tests/test-memchr2.c: New test.
41416         * MODULES.html.sh (String handling): Add memchr2.
41417
41418 2008-02-29  Bruno Haible  <bruno@clisp.org>
41419
41420         * modules/freadseek-tests: New file.
41421         * tests/test-freadseek.sh: New file.
41422         * tests/test-freadseek.c: New file.
41423
41424         New module 'freadseek'.
41425         * modules/freadseek: New file.
41426         * lib/freadseek.h: New file.
41427         * lib/freadseek.c: New file.
41428         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
41429
41430 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41431
41432         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
41433         wydawca.
41434
41435         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
41436         program_invocation_name and program_invocation_short_name are
41437         present.
41438
41439 2008-02-28  Bruno Haible  <bruno@clisp.org>
41440
41441         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
41442         * tests/test-freadptr.sh: Also test non-seekable stdin.
41443
41444 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
41445
41446         * build-aux/bootstrap (source_base, m4_base)
41447         (doc_base, tests_base): New variables.
41448         (gnulib_tool_options): Do not hardcode base directories, use
41449         the above variables instead.
41450
41451 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
41452
41453         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
41454
41455 2008-02-28  Bruno Haible  <bruno@clisp.org>
41456
41457         * modules/freadptr-tests: New file.
41458         * tests/test-freadptr.sh: New file.
41459         * tests/test-freadptr.c: New file.
41460
41461         New module 'freadptr'.
41462         * modules/freadptr: New file.
41463         * lib/freadptr.h: New file.
41464         * lib/freadptr.c: New file.
41465         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
41466
41467 2008-02-26  Karl Berry  <karl@freefriends.org>
41468
41469         Sync from Libtool:
41470         * libltdl/argz.c (argz_add, argz_count): New functions.
41471         * libltdl/argz.in.h: Declare them.
41472         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
41473
41474 2008-02-22  Bruno Haible  <bruno@clisp.org>
41475
41476         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
41477         is a pointer type.  Needed for HP-UX 10.
41478         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
41479         * doc/posix-functions/gmtime_r.texi: Likewise.
41480         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
41481
41482 2008-02-24  Bruno Haible  <bruno@clisp.org>
41483
41484         * modules/environ-tests: New file.
41485         * tests/test-environ.c: New file.
41486
41487         New module 'environ'.
41488         * modules/environ: New file.
41489         * lib/unistd.in.h (environ): New declaration.
41490         * m4/environ.m4: New file.
41491         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
41492         after use.
41493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
41494         HAVE_DECL_ENVIRON.
41495         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
41496         HAVE_DECL_ENVIRON.
41497         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
41498         wrong claim that 'environ' is missing on some systems.
41499         * modules/execute (Depends-on): Add environ.
41500         * lib/execute.c (environ): Remove fallback declaration.
41501         * modules/pipe (Depends-on): Add environ.
41502         * lib/pipe.c (environ): Remove fallback declaration.
41503         * modules/setenv (Depends-on): Add environ.
41504         * lib/setenv.c (environ): Remove fallback declaration.
41505         * modules/unsetenv (Depends-on): Add environ.
41506         * lib/unsetenv.c (environ): Remove fallback declaration.
41507         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
41508         m4/environ.m4.
41509         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
41510         (gl_PREREQ_UNSETENV): Likewise.
41511
41512 2008-02-24  Bruno Haible  <bruno@clisp.org>
41513
41514         * doc/posix-functions/environ.texi: Document the MacOS X problem.
41515
41516 2008-02-20  Bob Proulx  <bob@proulx.com>
41517
41518         Enable use of older two part flavor 'git describe'.
41519         * build-aux/git-version-gen: If using the older two part flavor of
41520         git version then recreate the third part now present in the
41521         newer three part flavor of git describe.
41522
41523 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
41524
41525         * lib/fts.c (fts_build): Typo correction to comment.
41526
41527 2008-02-17  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
41530         generating no-op conflicts.
41531
41532 2008-02-17  Bruno Haible  <bruno@clisp.org>
41533
41534         Speed up by 10%.
41535         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
41536         result_entries, rather than an index-based loop.
41537
41538 2008-02-17  Bruno Haible  <bruno@clisp.org>
41539
41540         Speed up by 25%.
41541         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
41542         'hashcode_cached'.
41543         (entry_create): New function.
41544         (entry_hashcode): Use the cached hashcode if possible.
41545         (read_changelog_file, try_split_merged_entry): Use entry_create.
41546
41547 2008-02-17  Bruno Haible  <bruno@clisp.org>
41548
41549         Speed up from O(n^2) to O(n) for long ChangeLog files.
41550         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
41551         (read_changelog_file): Change implementation of entries_reversed list
41552         to rbtreehash.
41553         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
41554
41555 2008-02-17  Bruno Haible  <bruno@clisp.org>
41556
41557         New option --split-merged-entry.
41558         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
41559         (find_paragraph_end, try_split_merged_entry): New functions.
41560         (long_options): Add option --split-merged-entry.
41561         (usage): Document option --split-merged-entry.
41562         (main): Implement option --split-merged-entry.
41563         Reported by Eric Blake.
41564
41565 2008-02-17  Bruno Haible  <bruno@clisp.org>
41566
41567         * lib/git-merge-changelog.c: Include c-strstr.h.
41568         (main): Support the "git pull --rebase" situation.
41569         * modules/git-merge-changelog (Depends-on): Add c-strstr.
41570         Reported by Eric Blake.
41571
41572 2008-02-16  Eric Blake  <ebb9@byu.net>
41573
41574         Avoid doubling \ in common case of "c-maybe" quoting style.
41575         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
41576         eliding outer quotes.
41577         * lib/quotearg.h: Document this.
41578         * tests/test-quotearg.c (result_strings, inputs, results_g)
41579         (flag_results, locale_results): Test it by adding a new string to
41580         each test group.
41581         (compare_strings): Test new string.
41582
41583 2008-02-13  Eric Blake  <ebb9@byu.net>
41584
41585         Avoid trigraph quoting in default output.
41586         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
41587         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
41588         unless explicitly requested.
41589         * tests/test-quotearg.c (flag_results, main): Add additional tests.
41590
41591 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
41592
41593         Don't rely on signed integer overflowing to negative value.
41594         * lib/getugroups.c (getugroups): Include <limits.h>.
41595         Instead, compare against INT_MAX, and increment only if the test passes.
41596
41597 2008-02-13  Jim Meyering  <meyering@redhat.com>
41598         and Eric Blake  <ebb9@byu.net>
41599
41600         Avoid shadowing warning and compile errors on Linux.
41601         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
41602         forwarding macros on Linux.
41603         (dcgettext): Define a stub, for Linux.
41604         (results_g, main): Avoid warnings.
41605
41606 2008-02-12  Eric Blake  <ebb9@byu.net>
41607
41608         Silence warning in last patch.
41609         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
41610
41611         Quotearg part 4: add tests, fix c-maybe colon quoting.
41612         * lib/quotearg.h: Improve documentation.
41613         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
41614         escapes when adding outer quotes.  When quoting trigraphs, use
41615         valid C notation.  When quoting NUL, omit extra characters if next
41616         character is not digit.  Alter prototype.
41617         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
41618         callers.
41619         * modules/quotearg-tests: New module.
41620         * tests/test-quotearg.c: New test.
41621
41622 2008-02-07  Eric Blake  <ebb9@byu.net>
41623
41624         Quotearg part 3: add flag to control outer quote elision.
41625         * lib/quotearg.h (c_maybe_quoting_style): New style.
41626         (enum quoting_flags): Better documentation of flags.
41627         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
41628         c-maybe style.
41629         (quotearg_buffer_restyled): Handle new flag to elide outer
41630         quotes.
41631
41632         Quotearg part 2: add flag that can control NUL elision.
41633         * lib/quotearg.h (set_quoting_flags): New prototype.
41634         * lib/quotearg.c (struct quoting_options): Add flag field.
41635         (set_quoting_flags): New function.
41636         (quotearg_buffer_restyled): Add flags parameter.
41637         (quotearg_alloc_mem): Set the flag if length cannot be returned.
41638         (quotearg_n_options): Set the flag, since length cannot be
41639         returned.
41640         (quoting_options_from_style): Default flags correctly.
41641
41642         Quotearg part 1: more wrappers, restore quotearg_char state.
41643         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
41644         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
41645         (quotearg_colon_mem): New wrappers.
41646         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
41647         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
41648         functions.
41649         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
41650         (quotearg_colon_mem): New functions.
41651
41652 2008-02-11  Bruno Haible  <bruno@clisp.org>
41653
41654         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
41655         library in the current directory: it does not work with parallel make.
41656         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41657
41658 2008-02-11  Bruno Haible  <bruno@clisp.org>
41659
41660         * .gitattributes: New file.
41661
41662 2008-02-11  Jim Meyering  <meyering@redhat.com>
41663
41664         useless-if-before-free: Fix reversed exit values.
41665         * build-aux/useless-if-before-free: Use correct values
41666         for EXIT_MATCH and EXIT_NO_MATCH.
41667
41668         * build-aux/useless-if-before-free: Close stdout carefully.
41669
41670 2008-02-10  Bruno Haible  <bruno@clisp.org>
41671
41672         New module 'git-merge-changelog'.
41673         * modules/git-merge-changelog: New file.
41674         * lib/git-merge-changelog.c: New file.
41675
41676 2008-02-10  Jim Meyering  <meyering@redhat.com>
41677
41678         useless-if-before-free: New option: --list (-l).
41679
41680         useless-if-before-free: Don't exit immediately upon open failure.
41681         * build-aux/useless-if-before-free: Exit 2 for errors.
41682         Upon failure to open a file, don't exit immediately.
41683         Rather, just warn and continue with any remaining files.
41684
41685 2008-02-10  Bruno Haible  <bruno@clisp.org>
41686
41687         New abstract list operation 'node_set_value'.
41688         * lib/gl_list.h (gl_list_node_set_value): New function.
41689         (struct gl_list_implementation): New field node_set_value.
41690         * lib/gl_list.c (gl_list_node_set_value): New function.
41691         * lib/gl_array_list.c (gl_array_node_set_value): New function.
41692         (gl_array_list_implementation): Update.
41693         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
41694         (gl_carray_list_implementation): Update.
41695         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
41696         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41697         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41698         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
41699         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41700         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41701         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41702         Update.
41703         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41704         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
41705         (gl_sublist_list_implementation): Update.
41706
41707 2008-02-10  Bruno Haible  <bruno@clisp.org>
41708
41709         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
41710         Needed when ELEMENT is #defined to 'some_type *'.
41711
41712 2008-02-10  Jim Meyering  <meyering@redhat.com>
41713
41714         New script and module: useless-if-before-free
41715         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
41716         * build-aux/useless-if-before-free: New file.
41717         * modules/useless-if-before-free: New file.
41718
41719         * build-aux/gitlog-to-changelog: Use committer date, not author date.
41720
41721         xstrtol_error: Fix typo.
41722         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
41723         s/exit_failure/exit_status/.
41724
41725 2008-02-09  Jim Meyering  <meyering@redhat.com>
41726
41727         New script and module: gitlog-to-changelog
41728         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
41729         * modules/gitlog-to-changelog: New file.
41730         * build-aux/gitlog-to-changelog: New file.
41731
41732 2008-02-08  Jim Meyering  <meyering@redhat.com>
41733
41734         Avoid two "parameter unused" warnings.
41735         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
41736         Mark "st" as used.
41737
41738         Use "git COMMAND", not "git-COMMAND".
41739         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
41740         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
41741         * build-aux/git-version-gen: Use "git status", not "git-status".
41742
41743 2008-02-07  Bruno Haible  <bruno@clisp.org>
41744
41745         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
41746         Avoids a crash on Windows Vista.
41747         Reported by Adam Strzelecki <ono@java.pl> via
41748         Simon Josefsson <simon@josefsson.org>.
41749
41750 2008-02-06  Bruno Haible  <bruno@clisp.org>
41751
41752         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
41753         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
41754         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
41755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
41756         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41757         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41758         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
41759         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
41760         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41761         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41762         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41765         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41766         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41767         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
41768         left-adjust flag.
41769         * tests/test-snprintf-posix.h (test_function): Likewise.
41770         * tests/test-sprintf-posix.h (test_function): Likewise.
41771         * tests/test-vasprintf-posix.c (test_function): Likewise.
41772         * doc/posix-functions/fprintf.texi: Update.
41773         * doc/posix-functions/printf.texi: Update.
41774         * doc/posix-functions/snprintf.texi: Update.
41775         * doc/posix-functions/sprintf.texi: Update.
41776         * doc/posix-functions/vfprintf.texi: Update.
41777         * doc/posix-functions/vprintf.texi: Update.
41778         * doc/posix-functions/vsnprintf.texi: Update.
41779         * doc/posix-functions/vsprintf.texi: Update.
41780         Reported by Peter Fales <psfales@alcatel-lucent.com>.
41781
41782 2008-02-06  Bruno Haible  <bruno@clisp.org>
41783
41784         Fix bug introduced on 2008-01-26.
41785         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
41786
41787 2008-02-06  Bruno Haible  <bruno@clisp.org>
41788
41789         Fix bug introduced on 2007-06-10.
41790         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
41791         !NEED_PRINTF_FLAG_ZERO.
41792
41793 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
41794
41795         getloadavg: use libperfstat on AIX5
41796         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
41797
41798 2008-02-03  Bruno Haible  <bruno@clisp.org>
41799
41800         * lib/diffseq.h: Add comments about required #includes.
41801         Reported by Michael Biggs <gnulib@doubleplum.net>.
41802
41803 2008-02-01  Bruno Haible  <bruno@clisp.org>
41804
41805         * users.txt: Add gnuit.
41806
41807 2008-01-31  Bruno Haible  <bruno@clisp.org>
41808
41809         * lib/md4.c (set_uint32): Mark as inline.
41810         * lib/md5.c (set_uint32): Likewise.
41811         * lib/sha1.c (set_uint32): Likewise.
41812         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
41813         * m4/md5.m4 (gl_MD5): Likewise.
41814         * m4/sha1.m4 (gl_SHA1): Likewise.
41815
41816 2008-01-31  Jim Meyering  <meyering@redhat.com>
41817
41818         Use "sizeof VAR", rather than a literal "4".
41819         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
41820         * lib/md4.c (md4_read_ctx): Likewise.
41821         * lib/sha1.c (sha1_read_ctx): Likewise.
41822
41823 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41824
41825         * tests/test-sha1.c: New file, based on test-md5.c.
41826
41827         * modules/crypto/sha1-tests: New file.
41828
41829 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41830
41831         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
41832
41833 2008-01-31  Jim Meyering  <meyering@redhat.com>
41834
41835         Prefer "sizeof v" over the equivalent "4".
41836         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
41837         * lib/md5.c (set_uint32): Likewise.
41838         * lib/sha1.c (set_uint32): Likewise.
41839
41840 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41841
41842         * lib/sha1.c (set_uint32): Mark function as static.
41843
41844 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41845
41846         md2: clarify comments to say that alignment is not required.
41847         * lib/md2.h: Remove warning about alignment in comment.
41848         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
41849         never been required.
41850
41851 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41852
41853         md4: adapt alignment constraint fix from sha1.
41854         * lib/md4.c (set_uint32): New function, from sha1.c
41855         (md4_read_ctx): Use it.
41856         (md4_finish_ctx): Doc fix.
41857         * lib/md4.h: Doc fix.
41858
41859 2008-01-31  Simon Josefsson  <simon@josefsson.org>
41860
41861         md5: adapt alignment constraint fix from sha1.
41862         * lib/md5.c (set_uint32): New function, from sha1.c
41863         (md5_read_ctx): Use it.
41864         (md5_finish_ctx): Doc fix.
41865         * lib/md5.h: Doc fix.
41866
41867 2008-01-30  Peter Palfrader  <weasel@debian.org>
41868
41869         sha1: remove the result buffer alignment constraint
41870         * lib/sha1.c (set_uint32): New function.
41871         (sha1_read_ctx): Rewrite to remove the result buffer alignment
41872         constraint.
41873         (sha1_finish_ctx): Remove comment warning about alignment constraint.
41874         * lib/sha1.h: Likewise.
41875
41876 2008-01-30  Andreas Schwab  <schwab@suse.de>
41877             Bruno Haible  <bruno@clisp.org>
41878
41879         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
41880         correct definition of LDBL_MIN_EXP.
41881
41882 2008-01-30  Karl Berry  <karl@gnu.org>
41883
41884         * config/srclist-update: try to preserve x bit on updates.
41885         * config/srclistvars.sh: update for karl.
41886
41887 2008-01-29  Jim Meyering  <meyering@redhat.com>
41888
41889         vasnprintf.c: Avoid warning about unused label
41890         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
41891         "overflow" label definition and associated code with the
41892         same cpp condition that guards the sole use of that label.
41893
41894 2008-01-26  Bruno Haible  <bruno@clisp.org>
41895
41896         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
41897         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
41898         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
41899         * lib/isnanl-nolibm.h (isnanl): Likewise.
41900         Reported by Paul Eggert <eggert@cs.ucla.edu>.
41901
41902 2008-01-26  Bruno Haible  <bruno@clisp.org>
41903
41904         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
41905         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
41906
41907 2008-01-26  Bruno Haible  <bruno@clisp.org>
41908
41909         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
41910         GCC >= 4.0 built-in.
41911         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
41912
41913 2008-01-26  Bruno Haible  <bruno@clisp.org>
41914
41915         Rename isnan, applicable to 'double' only, to isnand.
41916         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
41917         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
41918         (configure.ac): Update.
41919         (Include): Replace "isnan.h" with "isnand.h".
41920         * m4/isnand.m4: Renamed from m4/isnan.m4.
41921         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
41922         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
41923         instead of isnan.c.
41924         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
41925         instead of HAVE_ISNAN_IN_LIBC.
41926         (isnand): Renamed from isnan.
41927         * lib/isnand.c: New file.
41928         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
41929         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
41930         (Makefile.am): Update.
41931         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
41932         Include isnand.h instead of isnan.h.
41933         (main): Test isnand instead of isnan.
41934         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
41935         isnan-nolibm.
41936         * modules/frexp (Depends-on): Likewise.
41937         * modules/frexp-tests (Depends-on): Likewise.
41938         * modules/frexp-nolibm (Depends-on): Likewise.
41939         * modules/frexp-nolibm-tests (Depends-on): Likewise.
41940         * modules/isfinite (Depends-on): Likewise.
41941         * modules/round-tests (Depends-on): Likewise.
41942         * modules/signbit (Depends-on): Likewise.
41943         * modules/signbit-tests (Depends-on): Likewise.
41944         * modules/snprintf-posix (Depends-on): Likewise.
41945         * modules/sprintf-posix (Depends-on): Likewise.
41946         * modules/trunc-tests (Depends-on): Likewise.
41947         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
41948         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
41949         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
41950         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
41951         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
41952         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
41953         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
41954         * modules/vasnprintf-posix (Depends-on): Likewise.
41955         * modules/vasprintf-posix (Depends-on): Likewise.
41956         * modules/vfprintf-posix (Depends-on): Likewise.
41957         * modules/vsnprintf-posix (Depends-on): Likewise.
41958         * modules/vsprintf-posix (Depends-on): Likewise.
41959         * lib/frexp.c: Include isnand.h instead of isnan.h.
41960         (ISNAN): Set to isnand instead of isnan.
41961         * lib/isfinite.c: Include isnand.h instead of isnan.h.
41962         (gl_isfinited): Use isnand instead of isnan.
41963         * lib/signbitd.c: Include isnand.h instead of isnan.h.
41964         (gl_signbitd): Use isnand instead of isnan.
41965         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
41966         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
41967         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
41968         (main): Use isnand instead of isnan.
41969         * tests/test-round1.c: Include isnand.h.
41970         (main): Use isnand instead of isnan.
41971         * tests/test-round2.c: Include isnand.h instead of isnan.h.
41972         (ISNAN): Set to isnand instead of isnan.
41973         * tests/test-trunc1.c: Include isnand.h.
41974         (main): Use isnand instead of isnan.
41975         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
41976         (equal): Use isnand instead of isnan.
41977         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
41978         isnand-nolibm.
41979         * NEWS: Mention the change.
41980
41981 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
41982             Bruno Haible  <bruno@clisp.org>
41983
41984         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
41985         the GCC builtins for signbits are present and set
41986         REPLACE_SIGNBIT_USING_GCC if so.
41987         * lib/math.in.h (signbit): Define using GCC builtins if
41988         REPLACE_SIGNBIT_USING_GCC is set.
41989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
41990         REPLACE_SIGNBIT_USING_GCC.
41991         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
41992
41993 2008-01-25  Jim Meyering  <meyering@redhat.com>
41994
41995         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
41996         * lib/poll.c: Include <config.h>, not "config.h".
41997         * tests/test-getaddrinfo.c: Likewise.
41998
41999 2008-01-25  Simon Josefsson  <simon@josefsson.org>
42000
42001         * modules/sockets-tests: New file.
42002
42003 2008-01-24  Simon Josefsson  <simon@josefsson.org>
42004
42005         * modules/sockets: New module, can be used to call WSA_Startup and
42006         WSA_Cleanup when needed.
42007
42008         * lib/sockets.h, lib/sockets.c: New files.
42009
42010         * m4/sockets.m4: New file.
42011
42012         * tests/test-sockets.c: New file.
42013
42014 2008-01-19  Bruno Haible  <bruno@clisp.org>
42015
42016         * doc/posix-headers: Renamed from doc/headers.
42017         * doc/posix-functions: Renamed from doc/functions.
42018         * doc/gnulib.texi: Update.
42019
42020 2008-01-19  Bruno Haible  <bruno@clisp.org>
42021
42022         * doc/glibc-functions/strcasestr.texi: Include contents of
42023         doc/functions/strcasestr.texi, fixing the list of platforms.
42024         * doc/functions/strcasestr.texi: Remove file.
42025
42026 2008-01-19  Bruno Haible  <bruno@clisp.org>
42027
42028         * doc/glibc-functions/memmem.texi: Include contents of
42029         doc/functions/memmem.texi.
42030         * doc/functions/memmem.texi: Remove file.
42031
42032 2008-01-18  Bruno Haible  <bruno@clisp.org>
42033
42034         * doc/glibc-functions/*.texi: New files.
42035         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
42036         to use the new files.
42037
42038 2008-01-17  Bruno Haible  <bruno@clisp.org>
42039
42040         * tests/test-gethostname.c (main): Fix printf statement.
42041
42042 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42043
42044         * modules/gethostname-tests: New file.
42045
42046         * tests/test-gethostname.c: New file.
42047
42048 2008-01-17  Simon Josefsson  <simon@josefsson.org>
42049
42050         * lib/gethostname.c: Include string.h unconditionally, strncpy is
42051         used by the UNAME case.  Reported by Bruno Haible
42052         <bruno@clisp.org>.
42053
42054 2008-01-17  Eric Blake  <ebb9@byu.net>
42055
42056         Convert c-strcasestr to be more efficient.
42057         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
42058         (Depends-on): Add c-strcase, remove malloca, strnlen.
42059         * tests/test-c-strcasestr.c (main): Enhance test.
42060         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
42061
42062 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
42063
42064         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
42065         Use it in creating po/Makevars.
42066
42067 2008-01-15  Simon Josefsson  <simon@josefsson.org>
42068
42069         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
42070         Applications that requires it should initialize libgcrypt
42071         manually.
42072
42073 2008-01-16  Simon Josefsson  <simon@josefsson.org>
42074
42075         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
42076
42077 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
42078
42079         Fix problem with getdate on mingw32 reported by Simon Josefsson
42080         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
42081         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
42082         tzname", when deciding whether to declare tzname.
42083         * lib/strftime.c (tzname): Likewise.
42084
42085 2008-01-15  Bruno Haible  <bruno@clisp.org>
42086
42087         Work around a MacOS X 10.5 bug in frexpl().
42088         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
42089         * doc/functions/frexpl.texi: Document the bug.
42090         Reported by Elias Pipping <pipping@gentoo.org>.
42091
42092 2008-01-14  Eric Blake  <ebb9@byu.net>
42093
42094         Touch up previous patch.
42095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
42096         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
42097
42098         Convert strcasestr module to use Two-Way algorithm.
42099         * modules/strcasestr-simple: New module, based on the old
42100         strcasestr, but with Two-Way rather than KMP.
42101         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
42102         * lib/string.in.h (rpl_strcasestr): Declare.
42103         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
42104         performance.
42105         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
42106         * modules/string (Makefile.am): Support strcasestr.
42107         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42108         * modules/strcasestr-tests (Depends-on): Check for alarm.
42109         * tests/test-strcasestr.c: Augment test.
42110         * lib/str-two-way.h: Clean up stray macro.
42111         * NEWS: Document new module.
42112         * MODULES.html.sh (string handling): Likewise.
42113         * doc/functions/strcasestr.texi: New file.
42114         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
42115         here, since it is not a POSIX function.
42116
42117 2008-01-14  Colin Watson  <cjwatson@debian.org>
42118             Bruno Haible  <bruno@clisp.org>
42119
42120         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
42121         works fine; if not, set REPLACE_STRSIGNAL.
42122         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
42123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42124         REPLACE_STRSIGNAL.
42125         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
42126         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
42127         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
42128
42129 2008-01-14  Bruno Haible  <bruno@clisp.org>
42130
42131         * modules/strsignal (Include): Change to <string.h>.
42132
42133 2008-01-14  Colin Watson  <cjwatson@debian.org>
42134
42135         * modules/argp (Notice): Add a notice recommending to change
42136         XGETTEXT_OPTIONS.
42137         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
42138
42139 2008-01-13  Colin Watson  <cjwatson@debian.org>
42140
42141         * modules/strsignal-tests: New file.
42142         * tests/test-strsignal.c: New file.
42143
42144         * lib/strsignal.c: New file, from glibc with modifications.
42145         * lib/siglist.h: New file, from glibc with modifications.
42146         * lib/string.in.h (strsignal): New declaration.
42147         * m4/strsignal.m4: New file.
42148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42149         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
42150         * modules/strsignal: New file.
42151         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
42152         HAVE_DECL_STRSIGNAL.
42153
42154 2008-01-13  Bruno Haible  <bruno@clisp.org>
42155
42156         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
42157         locale encoding is not ASCII. Needed for OpenBSD 4.0.
42158         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
42159         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
42160
42161 2008-01-13  Bruno Haible  <bruno@clisp.org>
42162
42163         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
42164         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
42165         * lib/argp.h (__attribute__): Likewise.
42166         * lib/c-stack.c (__attribute__): Likewise.
42167         * lib/error.h (__attribute__): Likewise.
42168         * lib/fts.c (__attribute__): Likewise.
42169         * lib/openat.h (__attribute__): Likewise.
42170         * lib/stdio.in.h (__attribute__): Likewise.
42171         * lib/string.in.h (__attribute__): Likewise.
42172         * lib/utimens.c (__attribute__): Likewise.
42173         * lib/vasnprintf.h (__attribute__): Likewise.
42174         * lib/xalloc.h (__attribute__): Likewise.
42175         * lib/xprintf.h (__attribute__): Likewise.
42176         * lib/xstrtol.h (__attribute__): Likewise.
42177         * lib/xvasprintf.h (__attribute__): Likewise.
42178
42179 2008-01-12  Bruno Haible  <bruno@clisp.org>
42180
42181         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
42182         * doc/glibc-headers/a.out.texi: New file.
42183         * doc/glibc-headers/aliases.texi: New file.
42184         * doc/glibc-headers/alloca.texi: New file.
42185         * doc/glibc-headers/ar.texi: New file.
42186         * doc/glibc-headers/argp.texi: New file.
42187         * doc/glibc-headers/argz.texi: New file.
42188         * doc/glibc-headers/byteswap.texi: New file.
42189         * doc/glibc-headers/crypt.texi: New file.
42190         * doc/glibc-headers/endian.texi: New file.
42191         * doc/glibc-headers/envz.texi: New file.
42192         * doc/glibc-headers/err.texi: New file.
42193         * doc/glibc-headers/error.texi: New file.
42194         * doc/glibc-headers/execinfo.texi: New file.
42195         * doc/glibc-headers/fpu_control.texi: New file.
42196         * doc/glibc-headers/fstab.texi: New file.
42197         * doc/glibc-headers/fts.texi: New file.
42198         * doc/glibc-headers/getopt.texi: New file.
42199         * doc/glibc-headers/ieee754.texi: New file.
42200         * doc/glibc-headers/ifaddrs.texi: New file.
42201         * doc/glibc-headers/libintl.texi: New file.
42202         * doc/glibc-headers/mcheck.texi: New file.
42203         * doc/glibc-headers/mntent.texi: New file.
42204         * doc/glibc-headers/obstack.texi: New file.
42205         * doc/glibc-headers/paths.texi: New file.
42206         * doc/glibc-headers/printf.texi: New file.
42207         * doc/glibc-headers/pty.texi: New file.
42208         * doc/glibc-headers/resolv.texi: New file.
42209         * doc/glibc-headers/shadow.texi: New file.
42210         * doc/glibc-headers/sysexits.texi: New file.
42211         * doc/glibc-headers/ttyent.texi: New file.
42212
42213 2008-01-12  Jim Meyering  <meyering@redhat.com>
42214
42215         announce-gen: emit Gnulib's git-based version string.
42216         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
42217         New option --gnulib-version=V, where V is expected to be
42218         the output of running git describe in the gnulib directory.
42219         (get_tool_versions): Request feedback on xdelta.  I suspect it's
42220         not useful, and plan to stop publishing an xdelta file with each
42221         coreutils release.
42222
42223         * build-aux/announce-gen: Also check for lzma-compressed files.
42224
42225 2008-01-11  Bruno Haible  <bruno@clisp.org>
42226
42227         * tests/test-memmem.c (main): Increase maximum allowed time.
42228         * tests/test-strstr.c (main): Likewise.
42229
42230 2008-01-11  Bruno Haible  <bruno@clisp.org>
42231
42232         * doc/functions/memmem.texi: Add more precisions about platforms.
42233         * doc/functions/strstr.texi: Likewise.
42234
42235 2008-01-10  Eric Blake  <ebb9@byu.net>
42236
42237         * m4/strstr.m4: Delete cruft from copy-n-paste.
42238         Reported by Bruno Haible.
42239
42240 2008-01-10  Bruno Haible  <bruno@clisp.org>
42241
42242         Make c-strstr rely on strstr.
42243         * lib/c-strstr.c: Don't include str-kmp.h.
42244         (c_strstr): Define in terms of strstr.
42245         * modules/c-strstr (Files): Remove lib/str-kmp.h.
42246         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
42247
42248 2008-01-10  Bruno Haible  <bruno@clisp.org>
42249
42250         * doc/gnulib.texi (String Functions in C Locale): New section.
42251         * doc/c-ctype.texi: New file.
42252         * doc/c-strcase.texi: New file.
42253         * doc/c-strcaseeq.texi: New file.
42254         * doc/c-strcasestr.texi: New file.
42255         * doc/c-strstr.texi: New file.
42256         * doc/c-strtod.texi: New file.
42257         * doc/c-strtold.texi: New file.
42258
42259 2008-01-10  Eric Blake  <ebb9@byu.net>
42260
42261         * lib/relocatable.h: Fix a comment.
42262
42263 2008-01-10  Eric Blake  <ebb9@byu.net>
42264
42265         Share two-way algorithm.
42266         * lib/str-two-way.h: New file, merged from...
42267         * lib/memmem.c: ...here...
42268         * lib/strstr.c: ...and here.
42269         * modules/memmem (Files): Use it.
42270         * modules/strstr (Files): Likewise.
42271
42272         Avoid quadratic strstr implementations.
42273         * lib/strstr.c: New file.
42274         * m4/strstr.m4: Likewise.
42275         * modules/strstr: Likewise.
42276         * modules/strstr-tests: Likewise.
42277         * tests/test-strstr.c: Likewise.
42278         * lib/string.in.h (rpl_strstr): Declare.
42279         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
42280         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
42281         * modules/string (Makefile.am): Likewise.
42282         * MODULES.html.sh (string handling): Mention new module.
42283         * doc/functions/strstr.texi (strstr): Document the bug.
42284
42285 2008-01-10  Bruno Haible  <bruno@clisp.org>
42286
42287         * lib/relocatable.h (relocate): State whether result is freshly
42288         allocated or not.
42289         * lib/relocatable.c (relocate): Return a freshly allocated string
42290         instead of a pointer to a privately held string.
42291         Reported by Sylvain Beucler <beuc@gnu.org>.
42292
42293 2008-01-10  Colin Watson  <cjwatson@debian.org>
42294
42295         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
42296         s/S_ISNLK/S_ISLNK/.
42297
42298 2008-01-09  Bruno Haible  <bruno@clisp.org>
42299
42300         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
42301         and other files.
42302         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
42303         if it's only a guess.
42304         * modules/memmem: Simplify by depending on memmem-simple.
42305
42306 2008-01-09  Bruno Haible  <bruno@clisp.org>
42307
42308         Work around OpenBSD 4.0 tdelete() bug.
42309         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
42310         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
42311         macros and don't redefine the enum values.
42312         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
42313         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
42314         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
42315
42316 2008-01-09  Bruno Haible  <bruno@clisp.org>
42317
42318         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
42319         (main): Don't perform the tests if setlocale did not install a UTF-8
42320         locale. Needed on OpenBSD 4.0.
42321         * modules/wcwidth-tests (Depends-on): Add localcharset.
42322
42323 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
42324
42325         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
42326         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
42327         * NEWS: announce this.
42328         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
42329
42330 2008-01-09  Simon Josefsson  <simon@josefsson.org>
42331         and Eric Blake  <ebb9@byu.net>
42332
42333         Add memmem-simple module.
42334         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
42335         (gl_FUNC_MEMMEM): Separate performance from presence checks.
42336         * modules/memmem-simple: New file.
42337         * modules/memmem (Description): Tweak.
42338         * MODULES.html.sh (string handling): Mention new module.
42339         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
42340         addressed by memmem-simple.
42341         * NEWS: Document the difference.
42342
42343 2008-01-09  Eric Blake  <ebb9@byu.net>
42344
42345         Give gcc some memmem optimization hints.
42346         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
42347         (strcasestr): Declare as pure.
42348         * modules/memmem (Maintainer): Claim my implementation.
42349
42350 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42351
42352         Support AIX 6.1 and higher.
42353         * build-aux/config.libpath: Likewise.
42354         * build-aux/config.rpath: Likewise.
42355
42356 2008-01-08  Jim Meyering  <meyering@redhat.com>
42357             Bruno Haible  <bruno@clisp.org>
42358
42359         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
42360         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
42361         Reported by Peter Fales in
42362         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
42363
42364 2008-01-08  Bruno Haible  <bruno@clisp.org>
42365
42366         * modules/unictype/category-of (Depends-on): Add
42367         unictype/category-none.
42368         * modules/unictype/category-and-tests (Depends-on): Add
42369         unictype/category-{L,N,Lu,Nd}.
42370         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
42371         * modules/unictype/category-or-tests (Depends-on): Add
42372         unictype/category-{L,N}.
42373         * modules/unictype/category-name-tests (Depends-on): Add
42374         unictype/category-{Z,Nl}.
42375         Reported by Simon Josefsson.
42376
42377 2008-01-08  Bruno Haible  <bruno@clisp.org>
42378
42379         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
42380         convention better.
42381         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
42382         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
42383         Reported by Peter Miller <millerp@canb.auug.org.au>.
42384
42385 2008-01-08  Eric Blake  <ebb9@byu.net>
42386
42387         Rewrite memmem to guarantee linear complexity without malloc.
42388         * lib/memmem.c (memmem): Use Two-Way rather than
42389         Knuth-Morris-Pratt, to allow O(1) space usage.
42390         (critical_factorization, two_way_short_needle)
42391         (two_way_long_needle): New functions.
42392         (knuth_morris_pratt): Delete.
42393         * modules/memmem (Depends-on): No longer need malloca or stdbool.
42394         Add stdint.
42395         * tests/test-memmem.c (main): Add tests for periodic needle and
42396         sublinear performance.
42397         * doc/functions/memmem.texi (memmem): Document other deficiencies
42398         in cygwin and older glibc.
42399
42400 2008-01-08  Bruno Haible  <bruno@clisp.org>
42401
42402         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
42403         augmentation.
42404
42405 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
42406
42407         Add a configure time option: --disable-acl.
42408         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
42409         AC_ARG_ENABLE(acl).
42410
42411 2008-01-06  Simon Josefsson  <simon@josefsson.org>
42412
42413         * tests/test-localename.c: Don't include obsolete "setenv.h".
42414
42415         * modules/localename-tests (Depends-on): Need unsetenv.
42416
42417 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42418
42419         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
42420
42421 2008-01-06  Colin Watson  <cjwatson@debian.org>
42422
42423         * users.txt: Add man-db.
42424
42425 2008-01-07  Bruno Haible  <bruno@clisp.org>
42426
42427         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
42428         previous section name.
42429
42430 2008-01-07  Bruno Haible  <bruno@clisp.org>
42431
42432         * lib/progname.c (set_program_name): Don't strip off a leading
42433         "lt-" prefix outside a .libs directory.
42434         Suggested by Paul Eggert.
42435
42436 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
42437             Bruno Haible  <bruno@clisp.org>
42438
42439         Improve memory cleanup in 'relocatable' module.
42440         * lib/relocatable.h (compute_curr_prefix): Change return type to
42441         'char *'.
42442         * lib/relocatable.c (compute_curr_prefix): Change return type to
42443         'char *'. Free curr_installdir after use.
42444         (relocate): Free curr_prefix_better after use.
42445         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
42446
42447 2008-01-01  Bruno Haible  <bruno@clisp.org>
42448
42449         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
42450         failure on older glibc systems.
42451         Reported by Peter Fales <psfales@alcatel-lucent.com>.
42452
42453 2008-01-05  Eric Blake  <ebb9@byu.net>
42454
42455         Avoid quadratic system memmem.
42456         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
42457         Reported by Ralf Wildenhues.
42458
42459         Fix memmem test for mingw.
42460         * modules/memmem-tests (configure.ac): Check for alarm.
42461         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
42462         it.
42463         * doc/functions/memmem.texi: New file.
42464         * doc/gnulib.texi (Function Substitutes): Add memmem.
42465         Reported by Bruno Haible.
42466
42467 2008-01-04  Bruno Haible  <bruno@clisp.org>
42468
42469         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
42470         Require gl_HEADER_STRINGS_H_DEFAULTS, not
42471         gl_HEADER_STRING_H_DEFAULTS.
42472
42473 2008-01-04  Eric Blake  <ebb9@byu.net>
42474
42475         Shorten duration of memmem test.
42476         * tests/test-memmem.c (main): Use alarm to declare failure if test
42477         is taking too long.
42478         Reported by Ralf Wildenhues.
42479
42480 2007-12-21  Simon Josefsson  <simon@josefsson.org>
42481
42482         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
42483         string, needed by strerror.
42484
42485 2008-01-03  Colin Watson  <cjwatson@debian.org>
42486             Bruno Haible  <bruno@clisp.org>
42487
42488         * doc/gnulib-tool.texi (Localization): New section.
42489
42490 2008-01-02  Bruno Haible  <bruno@clisp.org>
42491
42492         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
42493         variables to 'unsigned char *' type.
42494         Reported by Paul Eggert.
42495
42496 2008-01-02  Jim Meyering  <jim@meyering.net>
42497
42498         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
42499
42500 2007-12-31  Jim Meyering  <jim@meyering.net>
42501
42502         Avoid use of private FTS type name.
42503         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
42504
42505 2007-12-30  Karl Berry  <karl@gnu.org>
42506
42507         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
42508         work around defect in Texinfo and/or the standalone Info browser.
42509
42510 2007-12-30  Bruno Haible  <bruno@clisp.org>
42511
42512         Unify 5 copies of the KMP code.
42513         * lib/str-kmp.h: New file.
42514         * lib/c-strcasestr.c: Include str-kmp.h.
42515         (knuth_morris_pratt): Remove function.
42516         (c_strcasestr): Update.
42517         * lib/c-strstr.c: Include str-kmp.h.
42518         (knuth_morris_pratt): Remove function.
42519         (c_strcasestr): Update.
42520         * lib/mbscasestr.c: Include str-kmp.h.
42521         (knuth_morris_pratt_unibyte): Remove function.
42522         * lib/mbsstr.c: Include str-kmp.h.
42523         (knuth_morris_pratt_unibyte): Remove function.
42524         * lib/strcasestr.c: Include str-kmp.h.
42525         (knuth_morris_pratt): Remove function.
42526         (strcasestr): Update.
42527         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
42528         * modules/c-strstr (Files): Likewise.
42529         * modules/mbscasestr (Files): Likewise.
42530         * modules/mbsstr (Files): Likewise.
42531         * modules/strcasestr (Files): Likewise.
42532         Suggested by Paul Eggert.
42533
42534 2007-12-30  Bruno Haible  <bruno@clisp.org>
42535
42536         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
42537         defined.
42538
42539 2007-12-30  Bruno Haible  <bruno@clisp.org>
42540
42541         * lib/xmalloca.h: Include xalloc.h.
42542         (xnmalloca): New macro.
42543
42544 2007-12-30  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/malloca.h (nmalloca): New macro.
42547         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
42548         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
42549         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
42550         knuth_morris_pratt_multibyte): Likewise.
42551         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
42552         knuth_morris_pratt_multibyte): Likewise.
42553         * lib/memmem.c (knuth_morris_pratt): Likewise.
42554         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
42555
42556 2007-12-25  Bruno Haible  <bruno@clisp.org>
42557
42558         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
42559         * lib/glob.c: Don't include openat.h.
42560         (link_exists2_p): Add back the code that deals with the
42561         !GLOB_ALTDIRFUNC case.
42562         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
42563         let it do the filename concatenation.
42564         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
42565         * modules/glob (Depends-on): Remove openat.
42566
42567 2007-12-31  Bruno Haible  <bruno@clisp.org>
42568
42569         * modules/dirfd (License): Change to LGPLv2+.
42570         Approved by Jim Meyering.
42571
42572 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
42573
42574         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
42575         when multiplying M by sizeof (size_t).
42576
42577 2007-12-10  Martin Lambers  <marlam@marlam.de>
42578
42579         Override getpagesize on mingw.
42580         * lib/getpagesize.c: New file.
42581         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
42582         * modules/getpagesize (Files): Add lib/getpagesize.c.
42583         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
42584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42585         REPLACE_GETPAGESIZE.
42586         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
42587
42588 2007-12-25  Bruno Haible  <bruno@clisp.org>
42589
42590         * modules/localcharset (Notice): New field.
42591         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
42592         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
42593
42594 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
42595             Bruno Haible  <bruno@clisp.org>
42596
42597         Avoid using the syntax symbol() in formatted documentation.
42598         * MODULES.html.sh (func_module): When replacing symbol() with a
42599         hyperlink, remove the parentheses. Show an error if some remain.
42600         Recognize and render the '...' syntax.
42601         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
42602         Rework. Add paragraph about GCC's inlining.
42603         * doc/alloca.texi: Likewise.
42604         * doc/error.texi: Remove parentheses from symbol reference.
42605         * doc/gnulib-intro.texi: Likewise.
42606         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
42607         * modules/fnmatch (Description): Reword to say "the ... function".
42608         * modules/full-read (Description): Likewise.
42609         * modules/full-write (Description): Likewise.
42610         * modules/safe-read (Description): Likewise.
42611         * modules/safe-write (Description): Likewise.
42612         * modules/strchrnul (Description): Likewise.
42613         * modules/trim (Description): Likewise.
42614         * modules/error (Description): Remove parentheses from symbol
42615         references.
42616         * modules/verror (Description): Likewise.
42617         Reported by Karl Berry.
42618
42619 2007-12-25  Bruno Haible  <bruno@clisp.org>
42620
42621         Fixup after 2007-10-16 commit.
42622         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
42623
42624 2007-12-24  Bruno Haible  <bruno@clisp.org>
42625
42626         Make --enable-relocatable work with DESTDIR.
42627         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
42628         to compute installdir from destprog.
42629         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
42630         also set the RELOC_DESTDIR variable.
42631         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42632
42633 2007-12-24  Bruno Haible  <bruno@clisp.org>
42634
42635         Fix link error due to xalloc_die().
42636         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
42637         of xreadlink.
42638         * lib/relocwrapper.c: Update comments.
42639         * build-aux/install-reloc: Remove xreadlink.c from file list.
42640         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
42641         xreadlink.c.
42642         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42643
42644 2007-12-24  Bruno Haible  <bruno@clisp.org>
42645
42646         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
42647         * lib/setenv.h: Remove file.
42648         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
42649         lib/setenv.h.
42650         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
42651         (Depends-on): Add stdlib.
42652         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
42653         gl_FUNC_UNSETENV.
42654         (Include): Replace setenv.h with <stdlib.h>.
42655         * modules/unsetenv: New file.
42656         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
42657         * lib/unsetenv.c: Include <stdlib.h> first.
42658         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
42659         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
42660         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
42661         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
42662         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
42663         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42664         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
42665         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
42666         * doc/functions/unsetenv.texi: Update.
42667         * modules/xsetenv (Depends-on): Add unsetenv.
42668         * modules/getdate (Depends-on): Likewise.
42669         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
42670         * lib/xsetenv.c: Don't include setenv.h.
42671         * lib/getdate.y: Likewise.
42672         * lib/relocwrapper.c: Likewise.
42673         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
42674         (Depends-on): Add stdlib.
42675         * NEWS: Mention the changes.
42676         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
42677
42678 2007-12-23  Bruno Haible  <bruno@clisp.org>
42679
42680         * lib/memmem.c (memmem): Use lowercase variable names. Tab
42681         indentation.
42682
42683 2007-12-23  Bruno Haible  <bruno@clisp.org>
42684
42685         * lib/c-strcasestr.c: Add more comments.
42686         * lib/c-strstr.c: Likewise.
42687         * lib/mbscasestr.c: Likewise.
42688         * lib/mbsstr.c: Likewise.
42689         * lib/strcasestr.c: Likewise.
42690         * lib/memmem.c: Likewise.
42691
42692 2007-12-23  Bruno Haible  <bruno@clisp.org>
42693
42694         * tests/test-memmem.c: Include <string.h> first.
42695
42696 2007-12-22  Bruno Haible  <bruno@clisp.org>
42697
42698         * gnulib-tool (func_create_testdir): Change $auxdir while generating
42699         the contents of $testsbase.
42700         Reported by Ralf Wildenhues.
42701
42702 2007-12-22  Bruno Haible  <bruno@clisp.org>
42703
42704         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
42705         two variables local_ldadd_before, local_ldadd_last.
42706
42707 2007-12-20  Eric Blake  <ebb9@byu.net>
42708
42709         Work around circular library issue when cross-compiling.
42710         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
42711         that progname.o does not need to pull in rpl_memcmp.
42712
42713 2007-12-19  Eric Blake  <ebb9@byu.net>
42714
42715         Fix memmem to avoid O(n^2) worst-case complexity.
42716         * lib/memmem.c (knuth_morris_pratt): New function.
42717         (memmem): Use it if first few naive iterations fail.
42718         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
42719         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
42720         * modules/memchr (License): Likewise.
42721         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
42722         malloca.
42723         * tests/test-memmem.c: Rewrite, borrowing ideas from
42724         test-mbsstr1.c; the old version wouldn't even compile!
42725         * modules/memmem-tests: New file.
42726         * lib/string.in.h (rpl_memmem): Add declaration.
42727         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
42728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
42729         REPLACE_MEMMEM.
42730
42731 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42732
42733         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
42734         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
42735         before any system include files, and undef after them all.  This
42736         should fix a problem on VMS reported by John E. Malmberg in
42737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
42738
42739 2007-12-17  Eric Blake  <ebb9@byu.net>
42740
42741         Revert addition of verify, for BSD/OS.
42742         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
42743         can't handle large files, for the sake of obsolete platforms.
42744         * modules/fseeko (Depends-on): Remove verify.
42745         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
42746         * doc/functions/ftello.texi (ftello): Likewise.
42747         * doc/functions/fgetpos.texi (fgetpos): Likewise.
42748         Reported by Larry Jones.
42749
42750 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
42751
42752         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
42753         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
42754
42755 2007-12-17  Jim Meyering  <meyering@redhat.com>
42756
42757         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
42758         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
42759         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
42760         * modules/getcwd (Depends-on): Add openat.
42761         Reported by Petr Salinger.
42762
42763 2007-12-17  Bruno Haible  <bruno@clisp.org>
42764
42765         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
42766         avoid a segmentation fault of the configure test on x86_64 systems.
42767
42768 2007-12-15  Jim Meyering  <meyering@redhat.com>
42769
42770         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
42771
42772 2007-12-13  Eric Blake  <ebb9@byu.net>
42773
42774         Another fseek test.
42775         * tests/test-fseek.c (main): Also test ungetc handling.
42776         * tests/test-fseeko.c (main): Likewise.
42777         * modules/fseeko (Depends-on): Add verify.
42778         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
42779         large.
42780         Reported by Larry Jones.
42781
42782         Fix fseeko on mingw.
42783         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
42784         seek.
42785
42786         Beef up fseek tests.
42787         * tests/test-fseek.c (main): Also test eof handling.
42788         * tests/test-fseeko.c (main): Likewise.
42789         Reported by Larry Jones.
42790
42791 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
42792
42793         Fix fseeko on BSD-based platforms.
42794         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
42795         successful seek.
42796
42797 2007-12-12  Eric Blake  <ebb9@byu.net>
42798
42799         Allow circular dependency of separate libtests.a
42800         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
42801         when use_libtests.
42802
42803 2007-12-11  Eric Blake  <ebb9@byu.net>
42804
42805         Fix bug with -0.0L in previous patch.
42806         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
42807         * tests/test-isnan.c (main): Also test on zeroes.
42808         * tests/test-isnanf.c (main): Likewise.
42809         * tests/test-isnanl.h (main): Likewise.
42810
42811         Detect pseudo-denormals on x86 even when cross-compiling.
42812         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
42813         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
42814         invalid bit patterns that happen to satisfy ==.
42815
42816         Avoid link failures with separate libtests.a.
42817         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
42818         last, to satisfy circular dependencies.
42819
42820 2007-12-11  Eric Blake  <ebb9@byu.net>
42821         and Bruno Haible  <bruno@clisp.org>
42822
42823         Fix OpenBSD 4.0 <float.h> handling of long double.
42824         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
42825         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
42826         * doc/headers/float.texi (float.h): Document OpenBSD bug.
42827
42828 2007-12-11  Jim Meyering  <meyering@redhat.com>
42829
42830         * users.txt: Add libvirt.
42831
42832         Support versions of autoconf prior to 2.59c.
42833         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
42834         if it is not already defined.
42835
42836 2007-12-09  Bruno Haible  <bruno@clisp.org>
42837
42838         Let 'gnulib-tool --import' collect sources needed for the tests in
42839         tests/ rather than in lib/.
42840         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
42841         argument. If true, add rules to generate libtests.a, and put libtests.a
42842         into $(LDADD). Consider source files in subdirectories and set
42843         uses_subdirs.
42844         (func_emit_initmacro_start, func_emit_initmacro_end,
42845         func_emit_initmacro_done): Pass all arguments explicitly.
42846         (func_import): Determine two module lists main_modules,
42847         testsrelated_modules. Determine use_libtests. Determine two variables
42848         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
42849         instead of just sed_transform_lib_file. Determine two variables
42850         main_files and testsrelated_files. Compute 'files' as the union of
42851         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
42852         func_add_or_update. In the generated gnulib-comp.m4, collect the
42853         object files for tests/ in different variables than those for lib/.
42854         Substitute LIBTESTS_LIBDEPS.
42855         (func_create_testdir): Combine the uses_subdirs results from
42856         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
42857
42858 2007-12-09  Bruno Haible  <bruno@clisp.org>
42859
42860         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
42861         the build-aux directory.
42862
42863 2007-12-09  Bruno Haible  <bruno@clisp.org>
42864
42865         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
42866         introduced on 2006-09-09.
42867
42868 2007-12-07  Jim Meyering  <meyering@redhat.com>
42869
42870         Let these macros work also with autoconf-2.59.
42871         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
42872         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
42873         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42874
42875 2007-12-06  Jim Meyering  <meyering@redhat.com>
42876
42877         Avoid a configure-time syntax error in gl_FUNC_ACL.
42878         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
42879         function in each branch, before testing the cache variable.
42880
42881 2007-12-04  Eric Blake  <ebb9@byu.net>
42882
42883         Make scripts executable.
42884         * build-aux/config.guess: Add execute permissions.
42885         * build-aux/config.sub: Likewise.
42886         * build-aux/gendocs.sh: Likewise.
42887
42888         Fix frexp on mingw.
42889         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
42890         cross-compiling.
42891         * doc/functions/frexp.texi (frexp): Document the bug.
42892
42893         Make cygwin fseeko check more reliable.
42894         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
42895         version numbers, rather than unrelated feature check.
42896         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
42897         * doc/functions/ftello.texi (ftello): Likewise.
42898         Reported by Bruno Haible.
42899
42900         * m4/strerror.m4: Bump version number.
42901
42902 2007-12-03  Bruno Haible  <bruno@clisp.org>
42903
42904         * doc/functions/mprotect.texi: Mention the mingw problem.
42905
42906 2007-12-03  Eric Blake  <ebb9@byu.net>
42907
42908         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
42909         REPLACE_STRERROR is initialized before this macro.
42910
42911 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
42912
42913         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
42914         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
42915         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
42916         put -lsec in even for programs other than 'ls'.  This fixes a problem
42917         for gettext reported by Bruno Haible in
42918         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
42919         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
42920         Add support for Solaris 10.  This isn't efficient, but should get the
42921         job done for now.
42922
42923 2007-12-03  James Youngman  <jay@gnu.org>
42924
42925         * doc/regexprops-generic.texi: change "an close-group" to "a
42926         close-group" and "illegal" to "not allowed".
42927
42928 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42929
42930         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
42931         pr_byname.h. Needed for the rare case when the maintainer has done
42932         "make maintainer-clean" in the source directory and then attempts a
42933         build outside the source directory.
42934         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
42935         scripts_byname.h.
42936
42937 2007-12-02  Martin Lambers <marlam@marlam.de>
42938             Bruno Haible  <bruno@clisp.org>
42939
42940         * lib/getpagesize.h: Remove file.
42941         * lib/unistd.in.h: Include declaration of getpagesize here.
42942         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
42943         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
42944         HAVE_SYS_PARAM_H.
42945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
42946         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42947         * modules/getpagesize (Files): Remove lib/getpagesize.h.
42948         (Depends-on): Add unistd.
42949         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
42950         (Include): Use <unistd.h> instead of getpagesize.h.
42951         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
42952         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
42953         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
42954         gl_GETPAGESIZE invocation, already handled by module dependency.
42955         * lib/pagealign_alloc.c: Don't include getpagesize.h.
42956
42957 2007-12-02  Bruno Haible  <bruno@clisp.org>
42958
42959         * modules/strings-tests: New file.
42960         * tests/test-strings.c: New file.
42961
42962         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
42963         * lib/strings.in.h: New file.
42964         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
42965         * m4/strings_h.m4: New file.
42966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
42967         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
42968         * modules/strings: New file.
42969         * modules/string (Makefile.am): Update.
42970         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
42971         Reported by Karl Berry.
42972
42973 2007-12-01  Eric Blake  <ebb9@byu.net>
42974
42975         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
42976         accomodate fix in cygwin 1.5.25.
42977
42978 2007-12-01  Jim Meyering  <meyering@redhat.com>
42979
42980         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
42981         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
42982         that would inhibit utf8-optimization of a regexp containing line-
42983         or buffer-anchors, e.g., `^', `$'.
42984
42985 2007-11-30  Bruno Haible  <bruno@clisp.org>
42986
42987         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
42988         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
42989         glthread_recursive_lock_init.
42990         * lib/lock.c (glthread_recursive_lock_init)
42991         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
42992         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42993
42994 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
42995
42996         New function qset_acl, like set_acl but with syscall semantics.
42997         * lib/acl.h (qset_acl): New decl.
42998         * lib/acl.c (qset_acl): New function.
42999         (set_acl): Use new function.  Use more-consistent diagnostics.
43000
43001 2007-11-28  Jim Meyering  <meyering@redhat.com>
43002
43003         * modules/physmem (License): Change from GPL to LGPLv2+.
43004
43005 2007-11-26  Bruno Haible  <bruno@clisp.org>
43006
43007         * lib/vasnprintf.c (decode_long_double): Don't abort if the
43008         'long double' type has excess precision.
43009         Reported by Jim Meyering in
43010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
43011
43012 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43013
43014         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
43015         Sync from <http://gnu.org/licenses>.
43016         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
43017         with license text from same location.
43018         * doc/maintain.texi, doc/standards.texi:  Sync from
43019         <http://savannah.gnu.org/projects/gnustandards>.
43020
43021 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
43022         and Jim Meyering  <meyering@redhat.com>
43023
43024         Adjust getdate' grammar to accept a slightly more regular language.
43025         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
43026         Before, the former was rejected.
43027         * lib/getdate.y (digits_to_date_time): New function, factored
43028         out of ...
43029         (number): ...here.  Just call digits_to_date_time.
43030         (hybrid): New non-terminal to handle an <unsigned number,
43031         signed relative offset> sequence consistently.
43032
43033 2007-11-18  Jim Meyering  <meyering@redhat.com>
43034
43035         Pull my changes from coreutils:
43036         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
43037         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
43038         use of $gnulib_tool_option_extras, so that it's separated from the
43039         preceding argument.
43040
43041         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
43042         * build-aux/bootstrap (cp_mark_as_generated): Create any required
43043         parent destination directories before copying a file into place.
43044
43045 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
43046
43047         bootstrap: work also with 4-argument variant of AC_INIT
43048         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
43049
43050 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
43051
43052         Port test-getaddrinfo to Solaris.
43053         Problem reported by Bruno Haible in
43054         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
43055         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
43056         explanation of setting 'hints'.
43057         Don't reject an implementation merely because it returns EAI_SERVICE.
43058         (EAI_SERVICE): Define to 0 if not defined.
43059
43060 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
43061
43062         The license of gnu-make and posix-shell is now "GPLed build tool".
43063         * modules/gnu-make (License): Likewise.
43064         * modules/posix-shell (License): Likewise.
43065
43066         New module posix-shell, for determining a POSIX shell
43067         or perhaps something that is close enough to a POSIX shell.
43068         * m4/posix-shell.m4: New file.
43069         * modules/posix-shell: New file.
43070
43071         * MODULES.html.sh: Mention new module.
43072
43073         New module gnu-make, for determining whether we're using GNU Make.
43074         * m4/gnu-make.m4: New file.
43075         * modules/gnu-make: New file.
43076         * MODULES.html.sh: Mention new module.
43077
43078 2007-11-14  Jim Meyering  <meyering@redhat.com>
43079
43080         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
43081         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
43082         use this macro to create a function _definition_.
43083         Remove useless "#undef ARGMATCH_DIE".
43084
43085 2007-11-14  Bruno Haible  <bruno@clisp.org>
43086
43087         * lib/config.charset: Update for OpenBSD 4.1.
43088         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
43089
43090 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
43091
43092         Document 64-bit #if problems in stdint.texi.
43093         * doc/headers/stdint.texi (stdint.h): Mention problems with
43094         64-bit-#if, and how to work around them.
43095
43096         Don't insist on 'long long int' support in the preprocessor.  It
43097         breaks too many things.  For example, PRIdMAX still uses a 'long
43098         long int' format with the latest Sun compiler, even though
43099         HAVE_LONG_LONG_INT isn't defined due to that compiler's
43100         preprocessor problem.  This causes the latest coreutils to dump
43101         core on Solaris 10 sparc with the Sun C compiler.
43102         Instead, fix the 2007-10-16 problem in a different way, by evaluating
43103         the troublesome expressions at configure-time, not at #if-time.
43104         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
43105         preprocessor.
43106         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
43107         compile-time C checks, done at 'configure'-time.
43108         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
43109         * modules/inttypes (Makefile): Substitute the new symbols that
43110         gl_INTTYPES_H now generates.
43111         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
43112
43113 2007-11-12  Bruno Haible  <bruno@clisp.org>
43114
43115         Tests for Unicode character classification functions.
43116
43117         * modules/unictype/bidicategory-byname-tests: New file.
43118         * modules/unictype/bidicategory-name-tests: New file.
43119         * modules/unictype/bidicategory-of-tests: New file.
43120         * modules/unictype/bidicategory-test-tests: New file.
43121         * modules/unictype/block-list-tests: New file.
43122         * modules/unictype/block-of-tests: New file.
43123         * modules/unictype/block-test-tests: New file.
43124         * modules/unictype/category-C-tests: New file.
43125         * modules/unictype/category-Cc-tests: New file.
43126         * modules/unictype/category-Cf-tests: New file.
43127         * modules/unictype/category-Cn-tests: New file.
43128         * modules/unictype/category-Co-tests: New file.
43129         * modules/unictype/category-Cs-tests: New file.
43130         * modules/unictype/category-L-tests: New file.
43131         * modules/unictype/category-Ll-tests: New file.
43132         * modules/unictype/category-Lm-tests: New file.
43133         * modules/unictype/category-Lo-tests: New file.
43134         * modules/unictype/category-Lt-tests: New file.
43135         * modules/unictype/category-Lu-tests: New file.
43136         * modules/unictype/category-M-tests: New file.
43137         * modules/unictype/category-Mc-tests: New file.
43138         * modules/unictype/category-Me-tests: New file.
43139         * modules/unictype/category-Mn-tests: New file.
43140         * modules/unictype/category-N-tests: New file.
43141         * modules/unictype/category-Nd-tests: New file.
43142         * modules/unictype/category-Nl-tests: New file.
43143         * modules/unictype/category-No-tests: New file.
43144         * modules/unictype/category-P-tests: New file.
43145         * modules/unictype/category-Pc-tests: New file.
43146         * modules/unictype/category-Pd-tests: New file.
43147         * modules/unictype/category-Pe-tests: New file.
43148         * modules/unictype/category-Pf-tests: New file.
43149         * modules/unictype/category-Pi-tests: New file.
43150         * modules/unictype/category-Po-tests: New file.
43151         * modules/unictype/category-Ps-tests: New file.
43152         * modules/unictype/category-S-tests: New file.
43153         * modules/unictype/category-Sc-tests: New file.
43154         * modules/unictype/category-Sk-tests: New file.
43155         * modules/unictype/category-Sm-tests: New file.
43156         * modules/unictype/category-So-tests: New file.
43157         * modules/unictype/category-Z-tests: New file.
43158         * modules/unictype/category-Zl-tests: New file.
43159         * modules/unictype/category-Zp-tests: New file.
43160         * modules/unictype/category-Zs-tests: New file.
43161         * modules/unictype/category-and-not-tests: New file.
43162         * modules/unictype/category-and-tests: New file.
43163         * modules/unictype/category-byname-tests: New file.
43164         * modules/unictype/category-name-tests: New file.
43165         * modules/unictype/category-none-tests: New file.
43166         * modules/unictype/category-of-tests: New file.
43167         * modules/unictype/category-or-tests: New file.
43168         * modules/unictype/category-test-withtable-tests: New file.
43169         * modules/unictype/combining-class-tests: New file.
43170         * modules/unictype/ctype-alnum-tests: New file.
43171         * modules/unictype/ctype-alpha-tests: New file.
43172         * modules/unictype/ctype-blank-tests: New file.
43173         * modules/unictype/ctype-cntrl-tests: New file.
43174         * modules/unictype/ctype-digit-tests: New file.
43175         * modules/unictype/ctype-graph-tests: New file.
43176         * modules/unictype/ctype-lower-tests: New file.
43177         * modules/unictype/ctype-print-tests: New file.
43178         * modules/unictype/ctype-punct-tests: New file.
43179         * modules/unictype/ctype-space-tests: New file.
43180         * modules/unictype/ctype-upper-tests: New file.
43181         * modules/unictype/ctype-xdigit-tests: New file.
43182         * modules/unictype/decimal-digit-tests: New file.
43183         * modules/unictype/digit-tests: New file.
43184         * modules/unictype/mirror-tests: New file.
43185         * modules/unictype/numeric-tests: New file.
43186         * modules/unictype/property-alphabetic-tests: New file.
43187         * modules/unictype/property-ascii-hex-digit-tests: New file.
43188         * modules/unictype/property-bidi-arabic-digit-tests: New file.
43189         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
43190         * modules/unictype/property-bidi-block-separator-tests: New file.
43191         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
43192         * modules/unictype/property-bidi-common-separator-tests: New file.
43193         * modules/unictype/property-bidi-control-tests: New file.
43194         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
43195         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
43196         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
43197         * modules/unictype/property-bidi-european-digit-tests: New file.
43198         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
43199         * modules/unictype/property-bidi-left-to-right-tests: New file.
43200         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
43201         * modules/unictype/property-bidi-other-neutral-tests: New file.
43202         * modules/unictype/property-bidi-pdf-tests: New file.
43203         * modules/unictype/property-bidi-segment-separator-tests: New file.
43204         * modules/unictype/property-bidi-whitespace-tests: New file.
43205         * modules/unictype/property-byname-tests: New file.
43206         * modules/unictype/property-combining-tests: New file.
43207         * modules/unictype/property-composite-tests: New file.
43208         * modules/unictype/property-currency-symbol-tests: New file.
43209         * modules/unictype/property-dash-tests: New file.
43210         * modules/unictype/property-decimal-digit-tests: New file.
43211         * modules/unictype/property-default-ignorable-code-point-tests: New file.
43212         * modules/unictype/property-deprecated-tests: New file.
43213         * modules/unictype/property-diacritic-tests: New file.
43214         * modules/unictype/property-extender-tests: New file.
43215         * modules/unictype/property-format-control-tests: New file.
43216         * modules/unictype/property-grapheme-base-tests: New file.
43217         * modules/unictype/property-grapheme-extend-tests: New file.
43218         * modules/unictype/property-grapheme-link-tests: New file.
43219         * modules/unictype/property-hex-digit-tests: New file.
43220         * modules/unictype/property-hyphen-tests: New file.
43221         * modules/unictype/property-id-continue-tests: New file.
43222         * modules/unictype/property-id-start-tests: New file.
43223         * modules/unictype/property-ideographic-tests: New file.
43224         * modules/unictype/property-ids-binary-operator-tests: New file.
43225         * modules/unictype/property-ids-trinary-operator-tests: New file.
43226         * modules/unictype/property-ignorable-control-tests: New file.
43227         * modules/unictype/property-iso-control-tests: New file.
43228         * modules/unictype/property-join-control-tests: New file.
43229         * modules/unictype/property-left-of-pair-tests: New file.
43230         * modules/unictype/property-line-separator-tests: New file.
43231         * modules/unictype/property-logical-order-exception-tests: New file.
43232         * modules/unictype/property-lowercase-tests: New file.
43233         * modules/unictype/property-math-tests: New file.
43234         * modules/unictype/property-non-break-tests: New file.
43235         * modules/unictype/property-not-a-character-tests: New file.
43236         * modules/unictype/property-numeric-tests: New file.
43237         * modules/unictype/property-other-alphabetic-tests: New file.
43238         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
43239         * modules/unictype/property-other-grapheme-extend-tests: New file.
43240         * modules/unictype/property-other-id-continue-tests: New file.
43241         * modules/unictype/property-other-id-start-tests: New file.
43242         * modules/unictype/property-other-lowercase-tests: New file.
43243         * modules/unictype/property-other-math-tests: New file.
43244         * modules/unictype/property-other-uppercase-tests: New file.
43245         * modules/unictype/property-paired-punctuation-tests: New file.
43246         * modules/unictype/property-paragraph-separator-tests: New file.
43247         * modules/unictype/property-pattern-syntax-tests: New file.
43248         * modules/unictype/property-pattern-white-space-tests: New file.
43249         * modules/unictype/property-private-use-tests: New file.
43250         * modules/unictype/property-punctuation-tests: New file.
43251         * modules/unictype/property-quotation-mark-tests: New file.
43252         * modules/unictype/property-radical-tests: New file.
43253         * modules/unictype/property-sentence-terminal-tests: New file.
43254         * modules/unictype/property-soft-dotted-tests: New file.
43255         * modules/unictype/property-space-tests: New file.
43256         * modules/unictype/property-terminal-punctuation-tests: New file.
43257         * modules/unictype/property-test-tests: New file.
43258         * modules/unictype/property-titlecase-tests: New file.
43259         * modules/unictype/property-unassigned-code-value-tests: New file.
43260         * modules/unictype/property-unified-ideograph-tests: New file.
43261         * modules/unictype/property-uppercase-tests: New file.
43262         * modules/unictype/property-variation-selector-tests: New file.
43263         * modules/unictype/property-white-space-tests: New file.
43264         * modules/unictype/property-xid-continue-tests: New file.
43265         * modules/unictype/property-xid-start-tests: New file.
43266         * modules/unictype/property-zero-width-tests: New file.
43267         * modules/unictype/scripts-tests: New file.
43268         * modules/unictype/syntax-c-ident-tests: New file.
43269         * modules/unictype/syntax-c-whitespace-tests: New file.
43270         * modules/unictype/syntax-java-ident-tests: New file.
43271         * modules/unictype/syntax-java-whitespace-tests: New file.
43272         * tests/unictype/test-bidi_byname.c: New file.
43273         * tests/unictype/test-bidi_name.c: New file.
43274         * tests/unictype/test-bidi_of.c: New file.
43275         * tests/unictype/test-bidi_test.c: New file.
43276         * tests/unictype/test-block_list.c: New file.
43277         * tests/unictype/test-block_of.c: New file.
43278         * tests/unictype/test-block_test.c: New file.
43279         * tests/unictype/test-categ_and.c: New file.
43280         * tests/unictype/test-categ_and_not.c: New file.
43281         * tests/unictype/test-categ_byname.c: New file.
43282         * tests/unictype/test-categ_name.c: New file.
43283         * tests/unictype/test-categ_none.c: New file.
43284         * tests/unictype/test-categ_of.c: New file.
43285         * tests/unictype/test-categ_or.c: New file.
43286         * tests/unictype/test-categ_test_withtable.c: New file.
43287         * tests/unictype/test-combining.c: New file.
43288         * tests/unictype/test-decdigit.c: New file.
43289         * tests/unictype/test-digit.c: New file.
43290         * tests/unictype/test-mirror.c: New file.
43291         * tests/unictype/test-numeric.c: New file.
43292         * tests/unictype/test-pr_byname.c: New file.
43293         * tests/unictype/test-pr_test.c: New file.
43294         * tests/unictype/test-predicate-part1.h: New file.
43295         * tests/unictype/test-predicate-part2.h: New file.
43296         * tests/unictype/test-scripts.c: New file.
43297         * tests/unictype/test-sy_c_ident.c: New file.
43298         * tests/unictype/test-sy_java_ident.c: New file.
43299
43300         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
43301         for Unicode 5.0.0.
43302         * tests/unictype/test-categ_Cc.c: Likewise.
43303         * tests/unictype/test-categ_Cf.c: Likewise.
43304         * tests/unictype/test-categ_Cn.c: Likewise.
43305         * tests/unictype/test-categ_Co.c: Likewise.
43306         * tests/unictype/test-categ_Cs.c: Likewise.
43307         * tests/unictype/test-categ_L.c: Likewise.
43308         * tests/unictype/test-categ_Ll.c: Likewise.
43309         * tests/unictype/test-categ_Lm.c: Likewise.
43310         * tests/unictype/test-categ_Lo.c: Likewise.
43311         * tests/unictype/test-categ_Lt.c: Likewise.
43312         * tests/unictype/test-categ_Lu.c: Likewise.
43313         * tests/unictype/test-categ_M.c: Likewise.
43314         * tests/unictype/test-categ_Mc.c: Likewise.
43315         * tests/unictype/test-categ_Me.c: Likewise.
43316         * tests/unictype/test-categ_Mn.c: Likewise.
43317         * tests/unictype/test-categ_N.c: Likewise.
43318         * tests/unictype/test-categ_Nd.c: Likewise.
43319         * tests/unictype/test-categ_Nl.c: Likewise.
43320         * tests/unictype/test-categ_No.c: Likewise.
43321         * tests/unictype/test-categ_P.c: Likewise.
43322         * tests/unictype/test-categ_Pc.c: Likewise.
43323         * tests/unictype/test-categ_Pd.c: Likewise.
43324         * tests/unictype/test-categ_Pe.c: Likewise.
43325         * tests/unictype/test-categ_Pf.c: Likewise.
43326         * tests/unictype/test-categ_Pi.c: Likewise.
43327         * tests/unictype/test-categ_Po.c: Likewise.
43328         * tests/unictype/test-categ_Ps.c: Likewise.
43329         * tests/unictype/test-categ_S.c: Likewise.
43330         * tests/unictype/test-categ_Sc.c: Likewise.
43331         * tests/unictype/test-categ_Sk.c: Likewise.
43332         * tests/unictype/test-categ_Sm.c: Likewise.
43333         * tests/unictype/test-categ_So.c: Likewise.
43334         * tests/unictype/test-categ_Z.c: Likewise.
43335         * tests/unictype/test-categ_Zl.c: Likewise.
43336         * tests/unictype/test-categ_Zp.c: Likewise.
43337         * tests/unictype/test-categ_Zs.c: Likewise.
43338         * tests/unictype/test-ctype_alnum.c: Likewise.
43339         * tests/unictype/test-ctype_alpha.c: Likewise.
43340         * tests/unictype/test-ctype_blank.c: Likewise.
43341         * tests/unictype/test-ctype_cntrl.c: Likewise.
43342         * tests/unictype/test-ctype_digit.c: Likewise.
43343         * tests/unictype/test-ctype_graph.c: Likewise.
43344         * tests/unictype/test-ctype_lower.c: Likewise.
43345         * tests/unictype/test-ctype_print.c: Likewise.
43346         * tests/unictype/test-ctype_punct.c: Likewise.
43347         * tests/unictype/test-ctype_space.c: Likewise.
43348         * tests/unictype/test-ctype_upper.c: Likewise.
43349         * tests/unictype/test-ctype_xdigit.c: Likewise.
43350         * tests/unictype/test-decdigit.h: Likewise.
43351         * tests/unictype/test-digit.h: Likewise.
43352         * tests/unictype/test-numeric.h: Likewise.
43353         * tests/unictype/test-pr_alphabetic.c: Likewise.
43354         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
43355         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
43356         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
43357         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
43358         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
43359         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
43360         * tests/unictype/test-pr_bidi_control.c: Likewise.
43361         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
43362         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
43363         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
43364         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
43365         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
43366         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
43367         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
43368         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
43369         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
43370         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
43371         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
43372         * tests/unictype/test-pr_combining.c: Likewise.
43373         * tests/unictype/test-pr_composite.c: Likewise.
43374         * tests/unictype/test-pr_currency_symbol.c: Likewise.
43375         * tests/unictype/test-pr_dash.c: Likewise.
43376         * tests/unictype/test-pr_decimal_digit.c: Likewise.
43377         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
43378         * tests/unictype/test-pr_deprecated.c: Likewise.
43379         * tests/unictype/test-pr_diacritic.c: Likewise.
43380         * tests/unictype/test-pr_extender.c: Likewise.
43381         * tests/unictype/test-pr_format_control.c: Likewise.
43382         * tests/unictype/test-pr_grapheme_base.c: Likewise.
43383         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
43384         * tests/unictype/test-pr_grapheme_link.c: Likewise.
43385         * tests/unictype/test-pr_hex_digit.c: Likewise.
43386         * tests/unictype/test-pr_hyphen.c: Likewise.
43387         * tests/unictype/test-pr_id_continue.c: Likewise.
43388         * tests/unictype/test-pr_id_start.c: Likewise.
43389         * tests/unictype/test-pr_ideographic.c: Likewise.
43390         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
43391         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
43392         * tests/unictype/test-pr_ignorable_control.c: Likewise.
43393         * tests/unictype/test-pr_iso_control.c: Likewise.
43394         * tests/unictype/test-pr_join_control.c: Likewise.
43395         * tests/unictype/test-pr_left_of_pair.c: Likewise.
43396         * tests/unictype/test-pr_line_separator.c: Likewise.
43397         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
43398         * tests/unictype/test-pr_lowercase.c: Likewise.
43399         * tests/unictype/test-pr_math.c: Likewise.
43400         * tests/unictype/test-pr_non_break.c: Likewise.
43401         * tests/unictype/test-pr_not_a_character.c: Likewise.
43402         * tests/unictype/test-pr_numeric.c: Likewise.
43403         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
43404         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
43405         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
43406         * tests/unictype/test-pr_other_id_continue.c: Likewise.
43407         * tests/unictype/test-pr_other_id_start.c: Likewise.
43408         * tests/unictype/test-pr_other_lowercase.c: Likewise.
43409         * tests/unictype/test-pr_other_math.c: Likewise.
43410         * tests/unictype/test-pr_other_uppercase.c: Likewise.
43411         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
43412         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
43413         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
43414         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
43415         * tests/unictype/test-pr_private_use.c: Likewise.
43416         * tests/unictype/test-pr_punctuation.c: Likewise.
43417         * tests/unictype/test-pr_quotation_mark.c: Likewise.
43418         * tests/unictype/test-pr_radical.c: Likewise.
43419         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
43420         * tests/unictype/test-pr_soft_dotted.c: Likewise.
43421         * tests/unictype/test-pr_space.c: Likewise.
43422         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
43423         * tests/unictype/test-pr_titlecase.c: Likewise.
43424         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
43425         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
43426         * tests/unictype/test-pr_uppercase.c: Likewise.
43427         * tests/unictype/test-pr_variation_selector.c: Likewise.
43428         * tests/unictype/test-pr_white_space.c: Likewise.
43429         * tests/unictype/test-pr_xid_continue.c: Likewise.
43430         * tests/unictype/test-pr_xid_start.c: Likewise.
43431         * tests/unictype/test-pr_zero_width.c: Likewise.
43432         * tests/unictype/test-sy_c_whitespace.c: Likewise.
43433         * tests/unictype/test-sy_java_whitespace.c: Likewise.
43434
43435 2007-11-12  Bruno Haible  <bruno@clisp.org>
43436
43437         Unicode character classification functions.
43438         * lib/unictype.h: New file.
43439         * modules/unictype/base: New file.
43440         * modules/unictype/category-L: New file.
43441         * modules/unictype/category-Lu: New file.
43442         * modules/unictype/category-Ll: New file.
43443         * modules/unictype/category-Lt: New file.
43444         * modules/unictype/category-Lm: New file.
43445         * modules/unictype/category-Lo: New file.
43446         * modules/unictype/category-M: New file.
43447         * modules/unictype/category-Mn: New file.
43448         * modules/unictype/category-Mc: New file.
43449         * modules/unictype/category-Me: New file.
43450         * modules/unictype/category-N: New file.
43451         * modules/unictype/category-Nd: New file.
43452         * modules/unictype/category-Nl: New file.
43453         * modules/unictype/category-No: New file.
43454         * modules/unictype/category-P: New file.
43455         * modules/unictype/category-Pc: New file.
43456         * modules/unictype/category-Pd: New file.
43457         * modules/unictype/category-Ps: New file.
43458         * modules/unictype/category-Pe: New file.
43459         * modules/unictype/category-Pi: New file.
43460         * modules/unictype/category-Pf: New file.
43461         * modules/unictype/category-Po: New file.
43462         * modules/unictype/category-S: New file.
43463         * modules/unictype/category-Sm: New file.
43464         * modules/unictype/category-Sc: New file.
43465         * modules/unictype/category-Sk: New file.
43466         * modules/unictype/category-So: New file.
43467         * modules/unictype/category-Z: New file.
43468         * modules/unictype/category-Zs: New file.
43469         * modules/unictype/category-Zl: New file.
43470         * modules/unictype/category-Zp: New file.
43471         * modules/unictype/category-C: New file.
43472         * modules/unictype/category-Cc: New file.
43473         * modules/unictype/category-Cf: New file.
43474         * modules/unictype/category-Cs: New file.
43475         * modules/unictype/category-Co: New file.
43476         * modules/unictype/category-Cn: New file.
43477         * modules/unictype/category-or: New file.
43478         * modules/unictype/category-of: New file.
43479         * modules/unictype/category-test: New file.
43480         * modules/unictype/category-test-withtable: New file.
43481         * modules/unictype/category-byname: New file.
43482         * modules/unictype/category-none: New file.
43483         * modules/unictype/category-and: New file.
43484         * modules/unictype/category-and-not: New file.
43485         * modules/unictype/category-name: New file.
43486         * modules/unictype/combining-class: New file.
43487         * modules/unictype/category-all: New file.
43488         * modules/unictype/bidicategory-all: New file.
43489         * modules/unictype/bidicategory-byname: New file.
43490         * modules/unictype/bidicategory-name: New file.
43491         * modules/unictype/bidicategory-of: New file.
43492         * modules/unictype/bidicategory-test: New file.
43493         * modules/unictype/decimal-digit: New file.
43494         * modules/unictype/digit: New file.
43495         * modules/unictype/numeric: New file.
43496         * modules/unictype/mirror: New file.
43497         * modules/unictype/property-white-space: New file.
43498         * modules/unictype/property-alphabetic: New file.
43499         * modules/unictype/property-other-alphabetic: New file.
43500         * modules/unictype/property-not-a-character: New file.
43501         * modules/unictype/property-default-ignorable-code-point: New file.
43502         * modules/unictype/property-other-default-ignorable-code-point: New
43503         file.
43504         * modules/unictype/property-deprecated: New file.
43505         * modules/unictype/property-logical-order-exception: New file.
43506         * modules/unictype/property-variation-selector: New file.
43507         * modules/unictype/property-private-use: New file.
43508         * modules/unictype/property-unassigned-code-value: New file.
43509         * modules/unictype/property-uppercase: New file.
43510         * modules/unictype/property-other-uppercase: New file.
43511         * modules/unictype/property-lowercase: New file.
43512         * modules/unictype/property-other-lowercase: New file.
43513         * modules/unictype/property-titlecase: New file.
43514         * modules/unictype/property-soft-dotted: New file.
43515         * modules/unictype/property-id-start: New file.
43516         * modules/unictype/property-other-id-start: New file.
43517         * modules/unictype/property-id-continue: New file.
43518         * modules/unictype/property-other-id-continue: New file.
43519         * modules/unictype/property-xid-start: New file.
43520         * modules/unictype/property-xid-continue: New file.
43521         * modules/unictype/property-pattern-white-space: New file.
43522         * modules/unictype/property-pattern-syntax: New file.
43523         * modules/unictype/property-join-control: New file.
43524         * modules/unictype/property-grapheme-base: New file.
43525         * modules/unictype/property-grapheme-extend: New file.
43526         * modules/unictype/property-other-grapheme-extend: New file.
43527         * modules/unictype/property-grapheme-link: New file.
43528         * modules/unictype/property-bidi-control: New file.
43529         * modules/unictype/property-bidi-left-to-right: New file.
43530         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
43531         * modules/unictype/property-bidi-arabic-right-to-left: New file.
43532         * modules/unictype/property-bidi-european-digit: New file.
43533         * modules/unictype/property-bidi-eur-num-separator: New file.
43534         * modules/unictype/property-bidi-eur-num-terminator: New file.
43535         * modules/unictype/property-bidi-arabic-digit: New file.
43536         * modules/unictype/property-bidi-common-separator: New file.
43537         * modules/unictype/property-bidi-block-separator: New file.
43538         * modules/unictype/property-bidi-segment-separator: New file.
43539         * modules/unictype/property-bidi-whitespace: New file.
43540         * modules/unictype/property-bidi-non-spacing-mark: New file.
43541         * modules/unictype/property-bidi-boundary-neutral: New file.
43542         * modules/unictype/property-bidi-pdf: New file.
43543         * modules/unictype/property-bidi-embedding-or-override: New file.
43544         * modules/unictype/property-bidi-other-neutral: New file.
43545         * modules/unictype/property-hex-digit: New file.
43546         * modules/unictype/property-ascii-hex-digit: New file.
43547         * modules/unictype/property-ideographic: New file.
43548         * modules/unictype/property-unified-ideograph: New file.
43549         * modules/unictype/property-radical: New file.
43550         * modules/unictype/property-ids-binary-operator: New file.
43551         * modules/unictype/property-ids-trinary-operator: New file.
43552         * modules/unictype/property-zero-width: New file.
43553         * modules/unictype/property-space: New file.
43554         * modules/unictype/property-non-break: New file.
43555         * modules/unictype/property-iso-control: New file.
43556         * modules/unictype/property-format-control: New file.
43557         * modules/unictype/property-dash: New file.
43558         * modules/unictype/property-hyphen: New file.
43559         * modules/unictype/property-punctuation: New file.
43560         * modules/unictype/property-line-separator: New file.
43561         * modules/unictype/property-paragraph-separator: New file.
43562         * modules/unictype/property-quotation-mark: New file.
43563         * modules/unictype/property-sentence-terminal: New file.
43564         * modules/unictype/property-terminal-punctuation: New file.
43565         * modules/unictype/property-currency-symbol: New file.
43566         * modules/unictype/property-math: New file.
43567         * modules/unictype/property-other-math: New file.
43568         * modules/unictype/property-paired-punctuation: New file.
43569         * modules/unictype/property-left-of-pair: New file.
43570         * modules/unictype/property-combining: New file.
43571         * modules/unictype/property-composite: New file.
43572         * modules/unictype/property-decimal-digit: New file.
43573         * modules/unictype/property-numeric: New file.
43574         * modules/unictype/property-diacritic: New file.
43575         * modules/unictype/property-extender: New file.
43576         * modules/unictype/property-ignorable-control: New file.
43577         * modules/unictype/property-test: New file.
43578         * modules/unictype/property-byname: New file.
43579         * modules/unictype/property-all: New file.
43580         * modules/unictype/scripts: New file.
43581         * modules/unictype/scripts-all: New file.
43582         * modules/unictype/block-of: New file.
43583         * modules/unictype/block-test: New file.
43584         * modules/unictype/block-list: New file.
43585         * modules/unictype/block-all: New file.
43586         * modules/unictype/syntax-c-whitespace: New file.
43587         * modules/unictype/syntax-java-whitespace: New file.
43588         * modules/unictype/syntax-c-ident: New file.
43589         * modules/unictype/syntax-java-ident: New file.
43590         * modules/unictype/ctype-alnum: New file.
43591         * modules/unictype/ctype-alpha: New file.
43592         * modules/unictype/ctype-cntrl: New file.
43593         * modules/unictype/ctype-digit: New file.
43594         * modules/unictype/ctype-graph: New file.
43595         * modules/unictype/ctype-lower: New file.
43596         * modules/unictype/ctype-print: New file.
43597         * modules/unictype/ctype-punct: New file.
43598         * modules/unictype/ctype-space: New file.
43599         * modules/unictype/ctype-upper: New file.
43600         * modules/unictype/ctype-xdigit: New file.
43601         * modules/unictype/ctype-blank: New file.
43602         * lib/unictype/bidi_byname.c: New file.
43603         * lib/unictype/bidi_name.c: New file.
43604         * lib/unictype/bidi_of.c: New file.
43605         * lib/unictype/bidi_test.c: New file.
43606         * lib/unictype/bitmap.h: New file.
43607         * lib/unictype/block_test.c: New file.
43608         * lib/unictype/blocks.c: New file.
43609         * lib/unictype/categ_C.c: New file.
43610         * lib/unictype/categ_Cc.c: New file.
43611         * lib/unictype/categ_Cf.c: New file.
43612         * lib/unictype/categ_Cn.c: New file.
43613         * lib/unictype/categ_Co.c: New file.
43614         * lib/unictype/categ_Cs.c: New file.
43615         * lib/unictype/categ_L.c: New file.
43616         * lib/unictype/categ_Ll.c: New file.
43617         * lib/unictype/categ_Lm.c: New file.
43618         * lib/unictype/categ_Lo.c: New file.
43619         * lib/unictype/categ_Lt.c: New file.
43620         * lib/unictype/categ_Lu.c: New file.
43621         * lib/unictype/categ_M.c: New file.
43622         * lib/unictype/categ_Mc.c: New file.
43623         * lib/unictype/categ_Me.c: New file.
43624         * lib/unictype/categ_Mn.c: New file.
43625         * lib/unictype/categ_N.c: New file.
43626         * lib/unictype/categ_Nd.c: New file.
43627         * lib/unictype/categ_Nl.c: New file.
43628         * lib/unictype/categ_No.c: New file.
43629         * lib/unictype/categ_P.c: New file.
43630         * lib/unictype/categ_Pc.c: New file.
43631         * lib/unictype/categ_Pd.c: New file.
43632         * lib/unictype/categ_Pe.c: New file.
43633         * lib/unictype/categ_Pf.c: New file.
43634         * lib/unictype/categ_Pi.c: New file.
43635         * lib/unictype/categ_Po.c: New file.
43636         * lib/unictype/categ_Ps.c: New file.
43637         * lib/unictype/categ_S.c: New file.
43638         * lib/unictype/categ_Sc.c: New file.
43639         * lib/unictype/categ_Sk.c: New file.
43640         * lib/unictype/categ_Sm.c: New file.
43641         * lib/unictype/categ_So.c: New file.
43642         * lib/unictype/categ_Z.c: New file.
43643         * lib/unictype/categ_Zl.c: New file.
43644         * lib/unictype/categ_Zp.c: New file.
43645         * lib/unictype/categ_Zs.c: New file.
43646         * lib/unictype/categ_and.c: New file.
43647         * lib/unictype/categ_and_not.c: New file.
43648         * lib/unictype/categ_byname.c: New file.
43649         * lib/unictype/categ_name.c: New file.
43650         * lib/unictype/categ_none.c: New file.
43651         * lib/unictype/categ_of.c: New file.
43652         * lib/unictype/categ_or.c: New file.
43653         * lib/unictype/categ_test.c: New file.
43654         * lib/unictype/combining.c: New file.
43655         * lib/unictype/ctype_alnum.c: New file.
43656         * lib/unictype/ctype_alpha.c: New file.
43657         * lib/unictype/ctype_blank.c: New file.
43658         * lib/unictype/ctype_cntrl.c: New file.
43659         * lib/unictype/ctype_digit.c: New file.
43660         * lib/unictype/ctype_graph.c: New file.
43661         * lib/unictype/ctype_lower.c: New file.
43662         * lib/unictype/ctype_print.c: New file.
43663         * lib/unictype/ctype_punct.c: New file.
43664         * lib/unictype/ctype_space.c: New file.
43665         * lib/unictype/ctype_upper.c: New file.
43666         * lib/unictype/ctype_xdigit.c: New file.
43667         * lib/unictype/decdigit.c: New file.
43668         * lib/unictype/digit.c: New file.
43669         * lib/unictype/identsyntaxmap.h: New file.
43670         * lib/unictype/mirror.c: New file.
43671         * lib/unictype/numeric.c: New file.
43672         * lib/unictype/pr_alphabetic.c: New file.
43673         * lib/unictype/pr_ascii_hex_digit.c: New file.
43674         * lib/unictype/pr_bidi_arabic_digit.c: New file.
43675         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
43676         * lib/unictype/pr_bidi_block_separator.c: New file.
43677         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
43678         * lib/unictype/pr_bidi_common_separator.c: New file.
43679         * lib/unictype/pr_bidi_control.c: New file.
43680         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
43681         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
43682         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
43683         * lib/unictype/pr_bidi_european_digit.c: New file.
43684         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
43685         * lib/unictype/pr_bidi_left_to_right.c: New file.
43686         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
43687         * lib/unictype/pr_bidi_other_neutral.c: New file.
43688         * lib/unictype/pr_bidi_pdf.c: New file.
43689         * lib/unictype/pr_bidi_segment_separator.c: New file.
43690         * lib/unictype/pr_bidi_whitespace.c: New file.
43691         * lib/unictype/pr_byname.c: New file.
43692         * lib/unictype/pr_byname.gperf: New file.
43693         * lib/unictype/pr_combining.c: New file.
43694         * lib/unictype/pr_composite.c: New file.
43695         * lib/unictype/pr_currency_symbol.c: New file.
43696         * lib/unictype/pr_dash.c: New file.
43697         * lib/unictype/pr_decimal_digit.c: New file.
43698         * lib/unictype/pr_default_ignorable_code_point.c: New file.
43699         * lib/unictype/pr_deprecated.c: New file.
43700         * lib/unictype/pr_diacritic.c: New file.
43701         * lib/unictype/pr_extender.c: New file.
43702         * lib/unictype/pr_format_control.c: New file.
43703         * lib/unictype/pr_grapheme_base.c: New file.
43704         * lib/unictype/pr_grapheme_extend.c: New file.
43705         * lib/unictype/pr_grapheme_link.c: New file.
43706         * lib/unictype/pr_hex_digit.c: New file.
43707         * lib/unictype/pr_hyphen.c: New file.
43708         * lib/unictype/pr_id_continue.c: New file.
43709         * lib/unictype/pr_id_start.c: New file.
43710         * lib/unictype/pr_ideographic.c: New file.
43711         * lib/unictype/pr_ids_binary_operator.c: New file.
43712         * lib/unictype/pr_ids_trinary_operator.c: New file.
43713         * lib/unictype/pr_ignorable_control.c: New file.
43714         * lib/unictype/pr_iso_control.c: New file.
43715         * lib/unictype/pr_join_control.c: New file.
43716         * lib/unictype/pr_left_of_pair.c: New file.
43717         * lib/unictype/pr_line_separator.c: New file.
43718         * lib/unictype/pr_logical_order_exception.c: New file.
43719         * lib/unictype/pr_lowercase.c: New file.
43720         * lib/unictype/pr_math.c: New file.
43721         * lib/unictype/pr_non_break.c: New file.
43722         * lib/unictype/pr_not_a_character.c: New file.
43723         * lib/unictype/pr_numeric.c: New file.
43724         * lib/unictype/pr_other_alphabetic.c: New file.
43725         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
43726         * lib/unictype/pr_other_grapheme_extend.c: New file.
43727         * lib/unictype/pr_other_id_continue.c: New file.
43728         * lib/unictype/pr_other_id_start.c: New file.
43729         * lib/unictype/pr_other_lowercase.c: New file.
43730         * lib/unictype/pr_other_math.c: New file.
43731         * lib/unictype/pr_other_uppercase.c: New file.
43732         * lib/unictype/pr_paired_punctuation.c: New file.
43733         * lib/unictype/pr_paragraph_separator.c: New file.
43734         * lib/unictype/pr_pattern_syntax.c: New file.
43735         * lib/unictype/pr_pattern_white_space.c: New file.
43736         * lib/unictype/pr_private_use.c: New file.
43737         * lib/unictype/pr_punctuation.c: New file.
43738         * lib/unictype/pr_quotation_mark.c: New file.
43739         * lib/unictype/pr_radical.c: New file.
43740         * lib/unictype/pr_sentence_terminal.c: New file.
43741         * lib/unictype/pr_soft_dotted.c: New file.
43742         * lib/unictype/pr_space.c: New file.
43743         * lib/unictype/pr_terminal_punctuation.c: New file.
43744         * lib/unictype/pr_test.c: New file.
43745         * lib/unictype/pr_titlecase.c: New file.
43746         * lib/unictype/pr_unassigned_code_value.c: New file.
43747         * lib/unictype/pr_unified_ideograph.c: New file.
43748         * lib/unictype/pr_uppercase.c: New file.
43749         * lib/unictype/pr_variation_selector.c: New file.
43750         * lib/unictype/pr_white_space.c: New file.
43751         * lib/unictype/pr_xid_continue.c: New file.
43752         * lib/unictype/pr_xid_start.c: New file.
43753         * lib/unictype/pr_zero_width.c: New file.
43754         * lib/unictype/scripts.c: New file.
43755         * lib/unictype/sy_c_ident.c: New file.
43756         * lib/unictype/sy_c_whitespace.c: New file.
43757         * lib/unictype/sy_java_ident.c: New file.
43758         * lib/unictype/sy_java_whitespace.c: New file.
43759
43760         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
43761         Unicode 5.0.0.
43762         * lib/unictype/blocks.h: Likewise.
43763         * lib/unictype/categ_C.h: Likewise.
43764         * lib/unictype/categ_Cc.h: Likewise.
43765         * lib/unictype/categ_Cf.h: Likewise.
43766         * lib/unictype/categ_Cn.h: Likewise.
43767         * lib/unictype/categ_Co.h: Likewise.
43768         * lib/unictype/categ_Cs.h: Likewise.
43769         * lib/unictype/categ_L.h: Likewise.
43770         * lib/unictype/categ_Ll.h: Likewise.
43771         * lib/unictype/categ_Lm.h: Likewise.
43772         * lib/unictype/categ_Lo.h: Likewise.
43773         * lib/unictype/categ_Lt.h: Likewise.
43774         * lib/unictype/categ_Lu.h: Likewise.
43775         * lib/unictype/categ_M.h: Likewise.
43776         * lib/unictype/categ_Mc.h: Likewise.
43777         * lib/unictype/categ_Me.h: Likewise.
43778         * lib/unictype/categ_Mn.h: Likewise.
43779         * lib/unictype/categ_N.h: Likewise.
43780         * lib/unictype/categ_Nd.h: Likewise.
43781         * lib/unictype/categ_Nl.h: Likewise.
43782         * lib/unictype/categ_No.h: Likewise.
43783         * lib/unictype/categ_P.h: Likewise.
43784         * lib/unictype/categ_Pc.h: Likewise.
43785         * lib/unictype/categ_Pd.h: Likewise.
43786         * lib/unictype/categ_Pe.h: Likewise.
43787         * lib/unictype/categ_Pf.h: Likewise.
43788         * lib/unictype/categ_Pi.h: Likewise.
43789         * lib/unictype/categ_Po.h: Likewise.
43790         * lib/unictype/categ_Ps.h: Likewise.
43791         * lib/unictype/categ_S.h: Likewise.
43792         * lib/unictype/categ_Sc.h: Likewise.
43793         * lib/unictype/categ_Sk.h: Likewise.
43794         * lib/unictype/categ_Sm.h: Likewise.
43795         * lib/unictype/categ_So.h: Likewise.
43796         * lib/unictype/categ_Z.h: Likewise.
43797         * lib/unictype/categ_Zl.h: Likewise.
43798         * lib/unictype/categ_Zp.h: Likewise.
43799         * lib/unictype/categ_Zs.h: Likewise.
43800         * lib/unictype/categ_of.h: Likewise.
43801         * lib/unictype/combining.h: Likewise.
43802         * lib/unictype/ctype_alnum.h: Likewise.
43803         * lib/unictype/ctype_alpha.h: Likewise.
43804         * lib/unictype/ctype_blank.h: Likewise.
43805         * lib/unictype/ctype_cntrl.h: Likewise.
43806         * lib/unictype/ctype_digit.h: Likewise.
43807         * lib/unictype/ctype_graph.h: Likewise.
43808         * lib/unictype/ctype_lower.h: Likewise.
43809         * lib/unictype/ctype_print.h: Likewise.
43810         * lib/unictype/ctype_punct.h: Likewise.
43811         * lib/unictype/ctype_space.h: Likewise.
43812         * lib/unictype/ctype_upper.h: Likewise.
43813         * lib/unictype/ctype_xdigit.h: Likewise.
43814         * lib/unictype/decdigit.h: Likewise.
43815         * lib/unictype/digit.h: Likewise.
43816         * lib/unictype/mirror.h: Likewise.
43817         * lib/unictype/numeric.h: Likewise.
43818         * lib/unictype/pr_alphabetic.h: Likewise.
43819         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
43820         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
43821         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
43822         * lib/unictype/pr_bidi_block_separator.h: Likewise.
43823         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
43824         * lib/unictype/pr_bidi_common_separator.h: Likewise.
43825         * lib/unictype/pr_bidi_control.h: Likewise.
43826         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
43827         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
43828         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
43829         * lib/unictype/pr_bidi_european_digit.h: Likewise.
43830         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
43831         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
43832         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
43833         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
43834         * lib/unictype/pr_bidi_pdf.h: Likewise.
43835         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
43836         * lib/unictype/pr_bidi_whitespace.h: Likewise.
43837         * lib/unictype/pr_combining.h: Likewise.
43838         * lib/unictype/pr_composite.h: Likewise.
43839         * lib/unictype/pr_currency_symbol.h: Likewise.
43840         * lib/unictype/pr_dash.h: Likewise.
43841         * lib/unictype/pr_decimal_digit.h: Likewise.
43842         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
43843         * lib/unictype/pr_deprecated.h: Likewise.
43844         * lib/unictype/pr_diacritic.h: Likewise.
43845         * lib/unictype/pr_extender.h: Likewise.
43846         * lib/unictype/pr_format_control.h: Likewise.
43847         * lib/unictype/pr_grapheme_base.h: Likewise.
43848         * lib/unictype/pr_grapheme_extend.h: Likewise.
43849         * lib/unictype/pr_grapheme_link.h: Likewise.
43850         * lib/unictype/pr_hex_digit.h: Likewise.
43851         * lib/unictype/pr_hyphen.h: Likewise.
43852         * lib/unictype/pr_id_continue.h: Likewise.
43853         * lib/unictype/pr_id_start.h: Likewise.
43854         * lib/unictype/pr_ideographic.h: Likewise.
43855         * lib/unictype/pr_ids_binary_operator.h: Likewise.
43856         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
43857         * lib/unictype/pr_ignorable_control.h: Likewise.
43858         * lib/unictype/pr_iso_control.h: Likewise.
43859         * lib/unictype/pr_join_control.h: Likewise.
43860         * lib/unictype/pr_left_of_pair.h: Likewise.
43861         * lib/unictype/pr_line_separator.h: Likewise.
43862         * lib/unictype/pr_logical_order_exception.h: Likewise.
43863         * lib/unictype/pr_lowercase.h: Likewise.
43864         * lib/unictype/pr_math.h: Likewise.
43865         * lib/unictype/pr_non_break.h: Likewise.
43866         * lib/unictype/pr_not_a_character.h: Likewise.
43867         * lib/unictype/pr_numeric.h: Likewise.
43868         * lib/unictype/pr_other_alphabetic.h: Likewise.
43869         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
43870         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
43871         * lib/unictype/pr_other_id_continue.h: Likewise.
43872         * lib/unictype/pr_other_id_start.h: Likewise.
43873         * lib/unictype/pr_other_lowercase.h: Likewise.
43874         * lib/unictype/pr_other_math.h: Likewise.
43875         * lib/unictype/pr_other_uppercase.h: Likewise.
43876         * lib/unictype/pr_paired_punctuation.h: Likewise.
43877         * lib/unictype/pr_paragraph_separator.h: Likewise.
43878         * lib/unictype/pr_pattern_syntax.h: Likewise.
43879         * lib/unictype/pr_pattern_white_space.h: Likewise.
43880         * lib/unictype/pr_private_use.h: Likewise.
43881         * lib/unictype/pr_punctuation.h: Likewise.
43882         * lib/unictype/pr_quotation_mark.h: Likewise.
43883         * lib/unictype/pr_radical.h: Likewise.
43884         * lib/unictype/pr_sentence_terminal.h: Likewise.
43885         * lib/unictype/pr_soft_dotted.h: Likewise.
43886         * lib/unictype/pr_space.h: Likewise.
43887         * lib/unictype/pr_terminal_punctuation.h: Likewise.
43888         * lib/unictype/pr_titlecase.h: Likewise.
43889         * lib/unictype/pr_unassigned_code_value.h: Likewise.
43890         * lib/unictype/pr_unified_ideograph.h: Likewise.
43891         * lib/unictype/pr_uppercase.h: Likewise.
43892         * lib/unictype/pr_variation_selector.h: Likewise.
43893         * lib/unictype/pr_white_space.h: Likewise.
43894         * lib/unictype/pr_xid_continue.h: Likewise.
43895         * lib/unictype/pr_xid_start.h: Likewise.
43896         * lib/unictype/pr_zero_width.h: Likewise.
43897         * lib/unictype/scripts.h: Likewise.
43898         * lib/unictype/scripts_byname.gperf: Likewise.
43899         * lib/unictype/sy_c_ident.h: Likewise.
43900         * lib/unictype/sy_c_whitespace.h: Likewise.
43901         * lib/unictype/sy_java_ident.h: Likewise.
43902         * lib/unictype/sy_java_whitespace.h: Likewise.
43903
43904         * lib/unictype/Makefile: New file.
43905         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
43906         glibc.
43907         * lib/unictype/3level.h: New file, copied from glibc.
43908         * lib/unictype/3levelbit.h: New file.
43909
43910 2007-11-11  Bruno Haible  <bruno@clisp.org>
43911
43912         * modules/gperf: New file.
43913         * modules/iconv_open (Depends-on): Add it.
43914         (Makefile.am): Remove the GPERF definition.
43915
43916 2007-11-11  Bruno Haible  <bruno@clisp.org>
43917
43918         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
43919         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
43920
43921 2007-11-11  Bruno Haible  <bruno@clisp.org>
43922
43923         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
43924         (usage): Remove function.
43925
43926 2007-11-11  Bruno Haible  <bruno@clisp.org>
43927
43928         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
43929         gl_FUNC_CEILF_LIBS.
43930         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
43931         gl_FUNC_CEIL_LIBS.
43932         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
43933         gl_FUNC_CEILL_LIBS.
43934         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
43935         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
43936         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
43937
43938 2007-11-11  Bruno Haible  <bruno@clisp.org>
43939
43940         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
43941         roundf were declared but do not exist on functions.
43942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
43943         roundl were declared but do not exist on functions.
43944         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
43945         HAVE_FLOORL_AND_CEILL, respectively.
43946         Needed for Sun C on Solaris 10.
43947
43948 2007-11-11  Bruno Haible  <bruno@clisp.org>
43949
43950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
43951         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
43952         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
43953         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
43954         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
43955         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
43956         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
43957         HAVE_DECL_ROUNDF.
43958         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
43959         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
43960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
43961         of HAVE_DECL_ROUND*.
43962         * modules/math (Makefile.am): Update.
43963
43964 2007-11-10  Bruno Haible  <bruno@clisp.org>
43965
43966         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
43967         ptrdiff_t as m4/intl.m4.
43968
43969 2007-11-10  Jim Meyering  <meyering@redhat.com>
43970
43971         Avoid link failure for the argmatch test.
43972         * tests/test-argmatch.c (usage): Define function to avoid a link
43973         failure: argmatch_die requires a usage function.
43974
43975 2007-11-09  Bruno Haible  <bruno@clisp.org>
43976
43977         * doc/functions/snprintf.texi: Mention BeOS deficiency.
43978         * doc/functions/vsnprintf.texi: Likewise.
43979         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
43980         with a size argument < 2.
43981
43982 2007-11-09  Bruno Haible  <bruno@clisp.org>
43983
43984         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
43985         buffer. Fixes an inefficiency introduced on 2007-11-03.
43986
43987 2007-11-09  Bruno Haible  <bruno@clisp.org>
43988
43989         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
43990         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
43991
43992 2007-11-08  Jim Meyering  <meyering@redhat.com>
43993
43994         Change cache variable name prefix "jm_" to "gl_" everywhere.
43995         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
43996         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
43997         * m4/uptime.m4: s/gl_/jm_/
43998
43999 2007-11-07  Bruno Haible  <bruno@clisp.org>
44000
44001         Update to GNU gettext 0.17.
44002         * m4/intl.m4: Update to GNU gettext 0.17.
44003         * m4/po.m4: Likewise.
44004         * modules/gettext (Files): Remove m4/ulonglong.m4.
44005         (configure.ac): Require gettext infrastructure from version 0.17.
44006
44007 2007-11-06  Bruno Haible  <bruno@clisp.org>
44008
44009         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
44010         symbolic values are not defined in a public header.
44011         * lib/freadable.c (freadable) [QNX]: Likewise.
44012         * lib/freadahead.c (freadahead) [QNX]: Likewise.
44013         * lib/freading.c (freading) [QNX]: Likewise.
44014         * lib/fseterr.c (fseterr) [QNX]: Likewise.
44015         * lib/fwritable.c (fwritable) [QNX]: Likewise.
44016         * lib/fwriting.c (fwriting) [QNX]: Likewise.
44017         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
44018         Reported by Alain Magloire.
44019
44020         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
44021
44022 2007-11-05  Bruno Haible  <bruno@clisp.org>
44023
44024         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
44025         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
44026         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
44027         Reported by Eric Blake.
44028
44029 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44030             Bruno Haible  <bruno@clisp.org>
44031
44032         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
44033         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
44034         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
44035         (malloc): Undefine also before including <stdlib.h>.
44036         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
44037         Needed on OSF/1 4.0.
44038
44039 2007-11-05  Jim Meyering  <meyering@redhat.com>
44040
44041         git-version-gen: sync from coreutils.
44042         * build-aux/git-version-gen: Add comments.
44043         Change the first '-' to '.' in the snapshot version string,
44044         e.g., 6.9-377-08144 -> 6.9.377-08144
44045         Remove first parameter.
44046         Don't declare a version "-dirty" merely because a time
44047         stamp has changed.
44048
44049 2007-11-04  Bruno Haible  <bruno@clisp.org>
44050
44051         * lib/lock.h: Protect all macro definitions containing an 'if'
44052         statement through a "do { ... } while (0)".
44053         * lib/tls.h: Likewise.
44054
44055 2007-11-04  Bruno Haible  <bruno@clisp.org>
44056
44057         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
44058
44059 2007-11-04  Bruno Haible  <bruno@clisp.org>
44060
44061         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
44062         * modules/fprintf-posix (Depends-on): Add nocrash.
44063         * modules/snprintf-posix (Depends-on): Likewise.
44064         * modules/sprintf-posix (Depends-on): Likewise.
44065         * modules/vasnprintf-posix (Depends-on): Likewise.
44066         * modules/vasprintf-posix (Depends-on): Likewise.
44067         * modules/vfprintf-posix (Depends-on): Likewise.
44068         * modules/vsnprintf-posix (Depends-on): Likewise.
44069         * modules/vsprintf-posix (Depends-on): Likewise.
44070         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44071         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44072         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44073         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44074         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44075         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44076         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44077
44078 2007-11-04  Bruno Haible  <bruno@clisp.org>
44079
44080         * modules/nocrash: New file.
44081         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
44082         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
44083
44084 2007-11-04  Bruno Haible  <bruno@clisp.org>
44085
44086         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
44087         precision handling.
44088         * tests/test-vasprintf-posix.c (test_function): Likewise.
44089         * tests/test-snprintf-posix.h (test_function): Likewise.
44090         * tests/test-sprintf-posix.h (test_function): Likewise.
44091
44092         Fix *printf behaviour for large precisions on mingw and BeOS.
44093         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
44094         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
44095         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
44096         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44097         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44098         gl_PRINTF_PRECISION and test its result. Invoke
44099         gl_PREREQ_VASNPRINTF_PRECISION.
44100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44101         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44103         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44104         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44105         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44106         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44107         * doc/functions/fprintf.texi: Update.
44108         * doc/functions/printf.texi: Update.
44109         * doc/functions/snprintf.texi: Update.
44110         * doc/functions/sprintf.texi: Update.
44111         * doc/functions/vfprintf.texi: Update.
44112         * doc/functions/vprintf.texi: Update.
44113         * doc/functions/vsnprintf.texi: Update.
44114         * doc/functions/vsprintf.texi: Update.
44115
44116 2007-11-04  Bruno Haible  <bruno@clisp.org>
44117
44118         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
44119
44120 2007-11-04  Bruno Haible  <bruno@clisp.org>
44121
44122         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
44123         Reported by Sylvain Beucler <beuc@gnu.org>.
44124
44125 2007-11-03  Bruno Haible  <bruno@clisp.org>
44126
44127         * tests/test-fprintf-posix2.sh: New file.
44128         * tests/test-fprintf-posix2.c: New file.
44129         * modules/fprintf-posix-tests (Files): Add them.
44130         (TESTS): Add test-fprintf-posix2.sh.
44131         (configure.ac): Check for getrlimit and setrlimit.
44132         (check_PROGRAMS): Add test-fprintf-posix2.
44133
44134         * tests/test-printf-posix2.sh: New file.
44135         * tests/test-printf-posix2.c: New file.
44136         * modules/printf-posix-tests (Files): Add them.
44137         (TESTS): Add test-printf-posix2.sh.
44138         (configure.ac): Check for getrlimit and setrlimit.
44139         (check_PROGRAMS): Add test-printf-posix2.
44140
44141         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
44142         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
44143         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
44144         (decode_double): New function, copied from decode_long_double.
44145         (scale10_round_decimal_decoded): New function, extracted from
44146         scale10_round_decimal_long_double.
44147         (scale10_round_decimal_long_double): Use it.
44148         (scale10_round_decimal_double): New function.
44149         (floorlog10): New function.
44150         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
44151         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
44152         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
44153         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
44154         gl_PRINTF_ENOMEM and test its result. Invoke
44155         gl_PREREQ_VASNPRINTF_ENOMEM.
44156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
44157         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44158         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44159         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44160         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44161         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44162         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44163         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
44164         * modules/snprintf-posix (Depends-on): Likewise.
44165         * modules/sprintf-posix (Depends-on): Likewise.
44166         * modules/vasnprintf-posix (Depends-on): Likewise.
44167         * modules/vasprintf-posix (Depends-on): Likewise.
44168         * modules/vfprintf-posix (Depends-on): Likewise.
44169         * modules/vsnprintf-posix (Depends-on): Likewise.
44170         * modules/vsprintf-posix (Depends-on): Likewise.
44171         * doc/functions/fprintf.texi: Update.
44172         * doc/functions/printf.texi: Update.
44173         * doc/functions/snprintf.texi: Update.
44174         * doc/functions/sprintf.texi: Update.
44175         * doc/functions/vfprintf.texi: Update.
44176         * doc/functions/vprintf.texi: Update.
44177         * doc/functions/vsnprintf.texi: Update.
44178         * doc/functions/vsprintf.texi: Update.
44179
44180 2007-11-03  Bruno Haible  <bruno@clisp.org>
44181
44182         * modules/frexp-nolibm-tests: New file.
44183
44184         * modules/frexp-nolibm: New file.
44185         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
44186
44187 2007-11-03  Bruno Haible  <bruno@clisp.org>
44188
44189         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
44190         value is C99 compliant.
44191         Needed for OSF/1 5.1.
44192
44193 2007-11-03  Bruno Haible  <bruno@clisp.org>
44194
44195         Fix out-of-memory handling of vasnprintf.
44196         * lib/printf-parse.c: Include <errno.h>.
44197         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
44198         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
44199         is already set.
44200
44201 2007-11-02  Eric Blake  <ebb9@byu.net>
44202
44203         Fix tests on cygwin.
44204         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
44205
44206 2007-11-01  Bruno Haible  <bruno@clisp.org>
44207
44208         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
44209         warning.
44210         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
44211         needed for POSIX compatibility.
44212
44213 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44214
44215         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
44216         for compatibility with GNU.
44217
44218 2007-11-01  Bruno Haible  <bruno@clisp.org>
44219
44220         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
44221         (putenv): Renamed from rpl_putenv. Change argument type from
44222         'const char *' to 'char *'.
44223         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
44224         of defining putenv in config.h, just set REPLACE_PUTENV.
44225         * modules/putenv (Depends-on): Add stdlib.
44226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44227         (Include): Use <stdlib.h>.
44228         * lib/stdlib.in.h (putenv): New declaration.
44229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
44230         REPLACE_PUTENV.
44231         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
44232         REPLACE_PUTENV.
44233         Needed for MacOS X 10.5.0.
44234         Reported by Peter O'Gorman <peter@pogma.com>.
44235
44236 2007-11-01  Jim Meyering  <meyering@redhat.com>
44237
44238         Treat an empty date string exactly like "0".
44239         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
44240         if the remaining date string (to be parsed) is empty, use "0".
44241         Reported by Mischa Molhoek and discussed in this thread:
44242         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
44243
44244 2007-10-31  Bruno Haible  <bruno@clisp.org>
44245
44246         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
44247         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
44248         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
44249         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
44250         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
44251         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
44252
44253 2007-10-31  Bruno Haible  <bruno@clisp.org>
44254
44255         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
44256         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
44257         (AC_TYPE_LONG_LONG_INT): Use it.
44258         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
44259         it as well.
44260         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
44261         to m4/longlong.m4.
44262         * modules/stdint (Files): Remove m4/ulonglong.m4.
44263         * modules/strtoull (Files): Use m4/longlong.m4 instead of
44264         m4/ulonglong.m4.
44265         * modules/strtoumax (Files): Likewise.
44266
44267 2007-10-30  Bruno Haible  <bruno@clisp.org>
44268
44269         * modules/xvasprintf-posix: New file.
44270         Suggested by Eric Blake.
44271
44272 2007-10-30  Bruno Haible  <bruno@clisp.org>
44273
44274         * modules/xprintf-posix-tests: New file.
44275         * tests/test-xprintf-posix.sh: New file.
44276         * tests/test-xprintf-posix.c: New file.
44277         * tests/test-xfprintf-posix.c: New file.
44278
44279         * modules/xprintf-posix: New file.
44280
44281 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44282
44283         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
44284         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
44285         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
44286
44287 2007-10-29  Bruno Haible  <bruno@clisp.org>
44288
44289         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
44290         contain the special marker '_cv_'.
44291         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44292         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44293         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44294         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
44295         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44296         Reported by Ralf Wildenhues.
44297
44298 2007-10-29  Bruno Haible  <bruno@clisp.org>
44299
44300         * gnulib-tool (func_import): When --lgpl is not specified, set
44301         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
44302         GPLv3.
44303         Reported by Simon Josefsson.
44304
44305 2007-10-28  Bruno Haible  <bruno@clisp.org>
44306
44307         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
44308         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
44309         HAVE_DECL_ISFINITE.
44310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44311         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
44312         HAVE_DECL_ISFINITE.
44313
44314 2007-10-28  Bruno Haible  <bruno@clisp.org>
44315
44316         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
44317         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
44318
44319 2007-10-28  Bruno Haible  <bruno@clisp.org>
44320
44321         Fix link errors with Sun C 5.0 on Solaris 10.
44322         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
44323         function is declared but not present in the compiler's libm.
44324         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
44325         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
44326         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
44327         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
44328         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
44329         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
44330         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
44331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
44332         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
44333         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
44334         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
44335         HAVE_DECL_FLOORL.
44336
44337 2007-10-28  Bruno Haible  <bruno@clisp.org>
44338
44339         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
44340         gl_FUNC_FLOORL. Cache the result.
44341         (gl_FUNC_FLOORL): Use it.
44342         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
44343         gl_FUNC_CEILL. Cache the result.
44344         (gl_FUNC_CEILL): Use it.
44345
44346         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
44347         gl_FUNC_FLOOR. Cache the result.
44348         (gl_FUNC_FLOOR): Use it.
44349         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
44350         gl_FUNC_CEIL. Cache the result.
44351         (gl_FUNC_CEIL): Use it.
44352
44353         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
44354         gl_FUNC_FLOORF. Cache the result.
44355         (gl_FUNC_FLOORF): Use it.
44356         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
44357         gl_FUNC_CEILF. Cache the result.
44358         (gl_FUNC_CEILF): Use it.
44359
44360 2007-10-28  Bruno Haible  <bruno@clisp.org>
44361
44362         * gnulib-tool: Allow specifying the LGPL version number through
44363         --lgpl=2 or --lgpl=3.
44364         (func_usage): Document --lgpl with argument.
44365         Handle --lgpl=... arguments.
44366         (func_import): Recognize also gl_LGPL calls with an argument. When
44367         --lgpl=2 is used and the module's license is just LGPL, report an
44368         error. Set sed_transform_lib_file according to the lgpl variable. In
44369         the generated files, use --lgpl or gl_LGPL invocations with argument,
44370         if necessary.
44371         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
44372         an LGPv2+ license.
44373         * doc/gnulib-tool.texi (Modified imports): Update explanation of
44374         gl_LGPL macro.
44375
44376 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44377             Bruno Haible  <bruno@clisp.org>
44378
44379         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
44380         (u16_uctomb_aux): Likewise.
44381         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
44382         !HAVE_INLINE.
44383         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
44384
44385 2007-10-28  Bruno Haible  <bruno@clisp.org>
44386
44387         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
44388         Invoke AM_GETTEXT_OPTION if it exists.
44389         * modules/vasprintf: Likewise.
44390         * modules/verror: Likewise.
44391         * modules/xprintf: Likewise.
44392         * modules/xvasprintf: Likewise.
44393
44394 2007-10-27  Ben Pfaff  <blp@gnu.org>
44395
44396         * lib/math.in.h: Define isfinite macro and prototypes for
44397         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
44398         implementations.
44399         * m4/math_h.m4: New substitutions for isfinite module.
44400         * lib/isfinite.c: New file.
44401         * m4/isfinite.m4: New file.
44402         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
44403         * modules/isfinite: New file.
44404         * modules/isfinite-tests: New file.
44405         * tests/tests-isfinite.c: New file.
44406         * doc/functions/isfinite.texi: Mention isfinite module.
44407         * MODULES.html.sh: Mention new module.
44408
44409 2007-10-27  Ben Pfaff  <blp@gnu.org>
44410
44411         Ralf Wildenhues reported that Tru64 4.0D declares the round
44412         functions but does not have definitions.
44413         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
44414         cannot be found in any library, set the output variable to
44415         "missing" instead of "".
44416         * m4/round.m4: Also use our substitute if we cannot find round in
44417         any library, even if it is declared.
44418         * m4/roundf.m4: Likewise for roundf.
44419         * m4/roundl.m4: Likewise for roundl.
44420         * lib/math.in.h: Undefine roundf, round, roundl before defining
44421         their replacements, to allow for hypothetical systems where these
44422         may be defined as macros but not available in libraries.
44423
44424 2007-10-27  Bruno Haible  <bruno@clisp.org>
44425
44426         * doc/gnulib.texi: Invoke @firstparagraphindent.
44427         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
44428         changes in gnulib.
44429         (Source changes): New section.
44430
44431 2007-10-26  Bruno Haible  <bruno@clisp.org>
44432
44433         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
44434         borrowed from autoconf.
44435
44436 2007-10-26  Bruno Haible  <bruno@clisp.org>
44437
44438         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
44439         strerror returned the empty string. Needed on HP-UX 11.00.
44440
44441 2007-10-24  Micah Cowan  <micah@cowan.name>
44442
44443         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
44444         * build-aux/bootstrap: Remove support for now-unnecessary option,
44445         --cvs-user, and envvars CVS_USER, CVS_RSH.
44446
44447 2007-10-24  Jim Meyering  <meyering@redhat.com>
44448
44449         Avoid diagnostics from sha1sum when there is no cached checksum.
44450         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
44451         if the po.s1 file hasn't been created yet.
44452
44453         * build-aux/bootstrap: Sync from coreutils:
44454         2007-10-24  Jim Meyering  <meyering@redhat.com>
44455         Get gnulib from the git repository, not from an obsolete cvs one.
44456         * build-aux/bootstrap: Suggestion from Micah Cowan.
44457         2007-10-04  Jim Meyering  <jim@meyering.net>
44458         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
44459         (update_po_files): Work also when there are no .po files in po/.
44460
44461 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
44462
44463         * README: Append ".git" to git and cg examples.
44464         Problem reported by Benoit Sigoure.
44465
44466 2007-10-23  Micah Cowan  <micah@cowan.name>
44467
44468         * users.txt: Add wget.
44469
44470 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44471
44472         Fix linking of some unistdio tests on FreeBSD.
44473         * modules/unistdio/u16-vsnprintf-tests
44474         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
44475         * modules/unistdio/u16-vsprintf-tests
44476         (test_u16_vsnprintf1_LDADD): Likewise.
44477         * modules/unistdio/u32-vsnprintf-tests
44478         (test_u32_vsnprintf1_LDADD): Likewise.
44479         * modules/unistdio/u32-vsprintf-tests
44480         (test_u32_vsprintf1_LDADD): Likewise.
44481         * modules/unistdio/u8-vsnprintf-tests
44482         (test_u8_vsnprintf1_LDADD): Likewise.
44483         * modules/unistdio/u8-vsprintf-tests
44484         (test_u8_vsprintf1_LDADD): Likewise.
44485         * modules/unistdio/ulc-vsnprintf-tests
44486         (test_ulc_vsnprintf1_LDADD): Likewise.
44487         * modules/unistdio/ulc-vsprintf-tests
44488         (test_ulc_vsprintf1_LDADD): Likewise.
44489
44490         Fix linking of some uniconv tests on FreeBSD.
44491         * modules/uniconv/u16-conv-from-enc-tests
44492         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
44493         * modules/uniconv/u16-conv-to-enc-tests
44494         (test_u16_conv_to_enc_LDADD): Likewise.
44495         * modules/uniconv/u16-strconv-from-enc-tests
44496         (test_u16_strconv_from_enc_LDADD): Likewise.
44497         * modules/uniconv/u16-strconv-to-enc-tests
44498         (test_u16_strconv_to_enc_LDADD): Likewise.
44499         * modules/uniconv/u32-conv-from-enc-tests
44500         (test_u32_conv_from_enc_LDADD): Likewise.
44501         * modules/uniconv/u32-conv-to-enc-tests
44502         (test_u32_conv_to_enc_LDADD): Likewise.
44503         * modules/uniconv/u32-strconv-from-enc-tests
44504         (test_u32_strconv_from_enc_LDADD): Likewise.
44505         * modules/uniconv/u32-strconv-to-enc-tests
44506         (test_u32_strconv_to_enc_LDADD): Likewise.
44507         * modules/uniconv/u8-conv-from-enc-tests
44508         (test_u8_conv_from_enc_LDADD): Likewise.
44509         * modules/uniconv/u8-conv-to-enc-tests
44510         (test_u8_conv_to_enc_LDADD): Likewise.
44511         * modules/uniconv/u8-strconv-from-enc-tests
44512         (test_u8_strconv_from_enc_LDADD): Likewise.
44513         * modules/uniconv/u8-strconv-to-enc-tests
44514         (test_u8_strconv_to_enc_LDADD): Likewise.
44515
44516 2007-10-22  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
44519         size.
44520
44521 2007-10-22  Eric Blake  <ebb9@byu.net>
44522
44523         Tweak x*printf documentation.
44524         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
44525         variable name and comments.
44526         Suggested by Bruno Haible.
44527
44528 2007-10-22  Bruno Haible  <bruno@clisp.org>
44529
44530         * lib/acl.c (copy_acl): Fix file name in comment.
44531
44532 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44533
44534         Fix Tru64 problem with stdbool.h.
44535         * lib/stdbool.in.h (false, true):
44536         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
44537         Don't declare as an enum in this situation; it runs afoul of Tru64.
44538         Problem reported by Steven M. Schweda in
44539         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
44540
44541 2007-10-22  Eric Blake  <ebb9@byu.net>
44542
44543         Also wrap vf?printf.
44544         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
44545         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
44546         (xvprintf, xvfprintf): New functions.
44547
44548 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44549
44550         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
44551         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
44552
44553         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
44554         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
44555
44556 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
44557
44558         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
44559         by Bruno Haible.
44560
44561 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44562
44563         * lib/getloadavg.c
44564         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
44565         Undef `sys' after including sys/table.h, for Tru64 4.0D.
44566
44567         * tests/test-i-ring.c: Work for C89.
44568
44569 2007-10-22  Bruno Haible  <bruno@clisp.org>
44570
44571         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
44572         -1u, in preprocessor expression, so that we don't test for the bug
44573         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
44574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
44575
44576 2007-10-22  Eric Blake  <ebb9@byu.net>
44577
44578         * tests/test-yesno.sh: Silence stderr during test.
44579
44580 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44581
44582         * modules/crypto/gc-camellia: New file.
44583
44584         * m4/gc-camellia.m4: New file.
44585
44586         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
44587
44588         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
44589
44590 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44591
44592         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
44593         --help to stdout.  Reported by sms@antinode.org (Steven
44594         M. Schweda).
44595
44596 2007-10-22  Simon Josefsson  <simon@josefsson.org>
44597
44598         * users.txt: Fix link to libksba.
44599
44600 2007-10-21  Ben Pfaff  <blp@gnu.org>
44601
44602         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
44603         round.c roundf implementation that depends on floorf and ceilf to
44604         be tested unconditionally.
44605
44606 2007-10-21  Ben Pfaff  <blp@gnu.org>
44607
44608         * m4/check-libm-func.m4: Removed.
44609         * m4/check-math-lib.m4: New file.
44610         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
44611         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
44612         definition and lack of AC_LIBOBJ([roundf]).
44613         * m4/roundl.m4: Ditto, and similarly for roundl.
44614         * modules/round: Reference new m4 file.
44615         * modules/roundf: Ditto.
44616         * modules/roundl: Ditto.
44617         * tests/test-round2.c (main): Use ROUND instead of round.
44618         Bug report from Bruno Haible.
44619
44620 2007-10-21  Bruno Haible  <bruno@clisp.org>
44621
44622         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
44623         context.
44624
44625 2007-10-21  Bruno Haible  <bruno@clisp.org>
44626
44627         * tests/test-wcwidth.c (main): Allow negative result for some control
44628         characters.
44629
44630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
44631         Needed on OSF/1 5.1.
44632
44633 2007-10-21  Bruno Haible  <bruno@clisp.org>
44634
44635         * tests/test-floorf1.c: Include isnanf.h.
44636         (main): Use isnanf() instead of isnan().
44637         * tests/test-ceilf1.c: Include isnanf.h.
44638         (main): Use isnanf() instead of isnan().
44639         * tests/test-truncf1.c: Include isnanf.h.
44640         (main): Use isnanf() instead of isnan().
44641         * tests/test-roundf1.c: Include isnanf.h.
44642         (main): Use isnanf() instead of isnan().
44643
44644 2007-10-21  Eric Blake  <ebb9@byu.net>
44645
44646         * users.txt: Update URL for m4.
44647
44648 2007-10-21  Bruno Haible  <bruno@clisp.org>
44649
44650         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
44651
44652 2007-10-21  Bruno Haible  <bruno@clisp.org>
44653
44654         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
44655         Git's management files if the CVS files are not present.
44656
44657 2007-10-20  Bruno Haible  <bruno@clisp.org>
44658
44659         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
44660         gcc-3.4.x.
44661
44662 2007-10-20  Ben Pfaff  <blp@gnu.org>
44663
44664         * lib/math.in.h: Declare round, roundf, roundl if we are providing
44665         implementations.
44666         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
44667         * lib/round.c: New file.
44668         * lib/roundf.c: New file.
44669         * lib/roundl.c: New file.
44670         * m4/round.m4: New file.
44671         * m4/roundf.m4: New file.
44672         * m4/roundl.m4: New file.
44673         * m4/check-libm-func-m4: New file.
44674         * modules/math: Replace round, roundf, roundl related @VARS@ in
44675         math.in.h.
44676         * modules/round: New file.
44677         * modules/round-tests: New file.
44678         * modules/roundf: New file.
44679         * modules/roundf-tests: New file.
44680         * modules/roundl: New file.
44681         * modules/roundl-tests: New file.
44682         * tests/test-round1.c: New file.
44683         * tests/test-round2.c: New file.
44684         * tests/test-roundf1.c: New file.
44685         * tests/test-roundf2.c: New file.
44686         * tests/test-roundl.c: New file.
44687         * doc/functions/round.texi: Mention round module.
44688         * doc/functions/roundf.texi: Mention roundf module.
44689         * doc/functions/roundl.texi: Mention roundl module.
44690         * MODULES.html.sh: Mention new modules.
44691         Thanks to Bruno Haible for suggestions.
44692
44693 2007-10-20  Jim Meyering  <meyering@redhat.com>
44694
44695         * lib/xprintf.c: Include <config.h> unconditionally.
44696
44697         Change xprintf's license to GPL.
44698         * modules/xprintf (License): s/LGPL/GPL/, since this module
44699         depends on modules (exit and exitfail) which are GPL.
44700         Suggestion from Bruno Haible.
44701
44702         xprintf fixes.
44703         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
44704         Use a clearer diagnostic.
44705         Patch from Bruno Haible.
44706
44707 2007-10-20  Bruno Haible  <bruno@clisp.org>
44708
44709         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
44710         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
44711         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44712
44713 2007-10-20  Bruno Haible  <bruno@clisp.org>
44714
44715         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
44716         precision in the comparison result > x - 1 or similar.
44717         * tests/test-ceilf2.c (correct_result_p): Likewise.
44718         * tests/test-truncf2.c (correct_result_p): Likewise.
44719         * tests/test-trunc2.c (correct_result_p): Likewise.
44720         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44721
44722 2007-10-20  Bruno Haible  <bruno@clisp.org>
44723
44724         * modules/ceil: New file.
44725         * m4/ceil.m4: New file.
44726         * doc/functions/ceil.texi: Mention the 'ceil' module.
44727
44728 2007-10-20  Bruno Haible  <bruno@clisp.org>
44729
44730         * modules/floor: New file.
44731         * m4/floor.m4: New file.
44732         * doc/functions/floor.texi: Mention the 'floor' module.
44733
44734 2007-10-20  Bruno Haible  <bruno@clisp.org>
44735
44736         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
44737         of %a.
44738         * modules/floorf-tests (Depends-on): Likewise.
44739         * modules/truncf-tests (Depends-on): Likewise.
44740         * modules/trunc-tests (Depends-on): Likewise.
44741         Reported by Ben Pfaff.
44742
44743 2007-10-19  Jim Meyering  <meyering@redhat.com>
44744
44745         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
44746         Don't bother testing specific errno values.  Just test ferror.
44747
44748         New module: xprintf
44749         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
44750
44751 2007-10-19  Bruno Haible  <bruno@clisp.org>
44752
44753         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
44754         syntax.
44755         * modules/javaexec (Makefile.am): Likewise.
44756         * modules/relocatable-prog (Makefile.am): Likewise.
44757         Suggested by Jim Meyering.
44758
44759 2007-10-18  Bruno Haible  <bruno@clisp.org>
44760
44761         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
44762         Reported by Jim Meyering.
44763
44764 2007-10-18  Eric Blake  <ebb9@byu.net>
44765
44766         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
44767
44768 2007-10-18  Bruno Haible  <bruno@clisp.org>
44769
44770         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
44771         the format string into writable memory. Needed in Fortify conditions.
44772
44773 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
44774             Bruno Haible  <bruno@clisp.org>
44775
44776         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
44777         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
44778         * modules/trim (Depends-on): Add mbchar.
44779         (configure.ac): Add gl_FUNC_MBRTOWC.
44780         (Makefile.am): Augment lib_SOURCES.
44781
44782 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
44783
44784         Modify glob.c to use fstatat and dirfd, to simplify it.
44785         Suggested by Eric Blake.
44786         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
44787         Don't include <stdbool.h>; not used.
44788         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
44789         (link_exists_p): Simplify implementation, since we can now assume
44790         dirfd and fstatat.
44791         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
44792
44793 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44794
44795         * gnulib-tool (func_get_dependencies): Fix sed script to
44796         match only tests.
44797
44798 2007-10-17  Bruno Haible  <bruno@clisp.org>
44799
44800         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
44801         allow locale names without encoding suffix.
44802         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
44803         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44804
44805 2007-10-16  Bruno Haible  <bruno@clisp.org>
44806
44807         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
44808         * lib/getgroups.c (getgroups): Likewise.
44809         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
44810
44811 2007-10-16  Bruno Haible  <bruno@clisp.org>
44812
44813         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
44814         * modules/malloc-posix (License): Likewise.
44815         * modules/realloc-posix (License): Likewise.
44816         * modules/calloc-posix (License): Likewise.
44817         * modules/intprops (License): Change from GPL to LGPL, with
44818         Paul Eggert's approval.
44819
44820 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44821
44822         Merge glibc changes into lib/glob.c.
44823
44824         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
44825         2007-10-15 04:59:03 UTC.  Here are the changes:
44826
44827         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
44828
44829         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
44830
44831         * lib/glob.c: Add some branch prediction throughout.
44832
44833         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
44834
44835         [BZ #5103]
44836         * lib/glob.c (glob): Recognize patterns starting \/.
44837
44838         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
44839
44840         [BZ #3996]
44841         * lib/glob.c (attribute_hidden): Define if not defined.
44842         (glob): Unescape dirname, filename or username when needed and not
44843         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
44844         is NULL.  Handle unescaped [ in pattern without closing ].
44845         Don't pass GLOB_CHECK down to recursive glob for directories.
44846         (__glob_pattern_type): New function.
44847         (__glob_pattern_p): Implement using __glob_pattern_type.
44848         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
44849         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
44850         Remove unreachable code.
44851
44852         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
44853
44854         * lib/glob.c (glob_in_dir): Add some comments and asserts to
44855         explain why there are no leaks.
44856
44857         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
44858
44859         [BZ #3253]
44860         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
44861         time, rather allocate increasingly bigger arrays of pointers, if
44862         possible with alloca, if too large with malloc.
44863
44864 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
44865
44866         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
44867         Problem reported by H.Merijn Brand in
44868         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
44869         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
44870         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44871
44872 2007-10-15  Bruno Haible  <bruno@clisp.org>
44873
44874         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
44875         with explicit rpl_ prefix.
44876         * lib/fopen.c (fopen): Likewise.
44877         * lib/freopen.c (freopen): Likewise.
44878         * lib/iconv.c (iconv): Likewise.
44879         * lib/iconv_close.c (iconv_close): Likewise.
44880
44881 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44882
44883         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
44884
44885 2007-10-15  Bruno Haible  <bruno@clisp.org>
44886
44887         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
44888         <stddef.h> instead of <stdlib.h> since we only need NULL.
44889         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44890
44891 2007-10-15  Bruno Haible  <bruno@clisp.org>
44892
44893         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
44894         Replace paragraph talking about LIBOBJS.
44895         Reported by Colin Watson <cjwatson@debian.org>.
44896
44897 2007-10-15  Bruno Haible  <bruno@clisp.org>
44898
44899         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
44900         <stdlib.h> before using NULL.
44901
44902 2007-10-15  Simon Josefsson  <simon@josefsson.org>
44903
44904         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
44905         Reported by Albert Chin <china@thewrittenword.com>.
44906
44907 2007-10-14  Bruno Haible  <bruno@clisp.org>
44908
44909         * modules/iconv_open-utf-tests: New file.
44910         * tests/test-iconv-utf.c: New file.
44911
44912         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
44913         * modules/iconv_open-utf: New file.
44914         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
44915         (iconv, iconv_close): New declarations.
44916         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
44917         be defined.
44918         (iconv_open): Add special handling of conversion between UTF-8 and
44919         UTF-{16,32}{BE,LE}.
44920         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
44921         * lib/iconv_close.c: New file.
44922         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
44923         gl_FUNC_ICONV_OPEN.
44924         (gl_FUNC_ICONV_OPEN): Use it.
44925         (gl_FUNC_ICONV_OPEN_UTF): New macro.
44926         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
44927         and REPLACE_ICONV_UTF.
44928         * modules/iconv_open (Depends-on): Add c-strcase.
44929         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
44930         ICONV_CONST.
44931         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
44932
44933 2007-10-13  Albert Chin  <china@thewrittenword.com>
44934             Bruno Haible  <bruno@clisp.org>
44935
44936         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
44937         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
44938
44939 2007-10-13  Bruno Haible  <bruno@clisp.org>
44940
44941         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
44942         defined, use the ISO C99 inline semantics.
44943         * lib/argp.h (ARGP_EI): Likewise.
44944
44945 2007-10-13  Bruno Haible  <bruno@clisp.org>
44946
44947         Handle 'inline' change in gcc 4.3.0.
44948         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
44949         argp_fmtstream_write, argp_fmtstream_set_lmargin,
44950         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
44951         argp_fmtstream_point): Disable 'extern' declaration if the function
44952         definition is going to be provided inline.
44953         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
44954         semantics, not the ISO C99 inline semantics.
44955         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
44956         'extern' declaration if the function definition is going to be provided
44957         inline.
44958         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
44959         the GNU C inline semantics, not the ISO C99 inline semantics. With
44960         GCC 4.2, avoid a warning.
44961
44962 2007-10-13  Bruno Haible  <bruno@clisp.org>
44963
44964         * lib/freading.h (freading): Enable the use of __freading for
44965         glibc >= 2.7.
44966         * lib/freading.c (freading): Likewise.
44967
44968 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
44969
44970         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
44971         "warning: C99 inline functions are not supported; using GNU89".
44972
44973 2007-10-12  Bruno Haible  <bruno@clisp.org>
44974
44975         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
44976         of 2.
44977         * tests/test-ceilf2.c: New file.
44978         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
44979
44980         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
44981         * modules/ceilf-tests: Update.
44982
44983 2007-10-12  Bruno Haible  <bruno@clisp.org>
44984
44985         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
44986         of 2.
44987         * tests/test-floorf2.c: New file.
44988         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
44989
44990         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
44991         * modules/floorf-tests: Update.
44992
44993 2007-10-12  Bruno Haible  <bruno@clisp.org>
44994
44995         * tests/test-trunc2.c: New file.
44996         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
44997
44998         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
44999         * modules/trunc-tests: Update.
45000
45001 2007-10-12  Bruno Haible  <bruno@clisp.org>
45002
45003         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
45004         of 2.
45005         * tests/test-truncf2.c: New file.
45006         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
45007
45008         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
45009         * modules/truncf-tests: Update.
45010
45011 2007-10-11  Eric Blake  <ebb9@byu.net>
45012
45013         Don't claim strerror is broken on Interix.
45014         * doc/functions/strerror.texi (strerror): Known broken systems are
45015         now Solaris 8, and not Interix.
45016         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
45017         Interix on cross-compile.
45018         Reported by Martin Koeppe in
45019         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
45020
45021 2007-10-11  Bruno Haible  <bruno@clisp.org>
45022
45023         * modules/i-ring-tests: New file.
45024         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
45025         instead of assert.
45026
45027 2007-10-11  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/filenamecat-tests: New file.
45030         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
45031         * lib/filenamecat.c: Remove test code.
45032
45033 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
45034
45035         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
45036
45037         * lib/strerror.c: Include <string.h> always, to test interface,
45038         and to remove the need for the dummy.
45039         Include intprops.h to compute width instead of doing it ourselves
45040         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
45041         (strerror): Define it to return NULL if there's no system strerror.
45042         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
45043         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
45044         ancient pre-strerror Unix systems well any more.  Saying "unknown
45045         system error" is enough.
45046         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
45047         simpler strerror.c implementation.
45048         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
45049         Simplify the tests to reflect the simpler strerror implementation.
45050         * modules/strerror (Depends-on): Add intprops.
45051
45052 2007-10-09  Eric Blake  <ebb9@byu.net>
45053
45054         Silence test-fpending.
45055         * modules/fpending-tests (Files): Add wrapper script.
45056         * tests/test-fpending.sh: New file.
45057
45058 2007-10-09  Bruno Haible  <bruno@clisp.org>
45059
45060         * MODULES.html.sh (func_module): Don't create a hyperlink for
45061         function names like 'printf_frexp'.
45062         (Misc): Add crc, memxor.
45063         (Characteristics of floating types): New section.
45064         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
45065         isnanf-nolibm, signbit, trunc, truncf, truncl.
45066         (Enhancements for ISO C 99 functions): New subsection Input/output.
45067         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
45068         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
45069         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
45070         (Compatibility checks for POSIX:2001 functions): Add clock-time.
45071         (Enhancements for POSIX:2001 functions): Add chdir-long.
45072         (File system functions): Add areadlink, chdir-safer, read-file.
45073         Remove cycle-check.
45074         (File system as inode set): New section.
45075         (Date and time): Add gethrxtime.
45076         (Multithreading): Add openmp.
45077         (Internationalization functions): Add localename.
45078         (Unicode string functions): Add unistr/u*-mbsnlen.
45079         (Support for maintaining and releasing projects): Add git-version-gen.
45080         (Lone files): Remove directories.
45081
45082 2007-10-08  Ben Pfaff  <blp@gnu.org>
45083
45084         * lib/xmalloca.h: Fix typo in comment.
45085
45086 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45087
45088         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
45089         when avoiding problems with integer overflow.  Use a portable test
45090         instead.
45091
45092 2007-10-08  Simon Josefsson  <simon@josefsson.org>
45093
45094         * modules/dummy (License): Change to LGPLv2+.
45095         * modules/float (License): Likewise
45096         * modules/realloc (License): Likewise
45097         * modules/stdlib (License): Likewise
45098
45099 2007-10-07  Bruno Haible  <bruno@clisp.org>
45100
45101         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
45102         * floor.c (TWO_MANT_DIG): Likewise.
45103         * ceil.c (TWO_MANT_DIG): Likewise.
45104         Reported by Ben Pfaff.
45105
45106 2007-10-07  Bruno Haible  <bruno@clisp.org>
45107
45108         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
45109         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
45110         * lib/frexp.c (FUNC): Likewise.
45111         * lib/printf-frexp.h (printf_frexp): Likewise.
45112         * lib/printf-frexpl.h (printf_frexpl): Likewise.
45113         * lib/printf-frexp.c (FUNC): Likewise.
45114         Suggested by Jim Meyering.
45115
45116 2007-10-07  Jim Meyering  <meyering@redhat.com>
45117
45118         Make xnanosleep's integer overflow test more robust.
45119         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
45120         so that gcc-4.3.0 doesn't optimize away this test for overflow.
45121
45122 2007-10-07  Bruno Haible  <bruno@clisp.org>
45123
45124         * NEWS: Mention the license change.
45125
45126         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
45127         abbreviations in the modules files.
45128
45129         Change copyright notice from GPLv2+ to GPLv3+.
45130         * README: Change copyright notice.
45131         * MODULES.html.sh: Likewise.
45132         * build-aux/bootstrap.conf: Likewise.
45133         * build-aux/config.libpath: Likewise.
45134         * build-aux/csharpcomp.sh.in: Likewise.
45135         * build-aux/csharpexec.sh.in: Likewise.
45136         * build-aux/install-reloc: Likewise.
45137         * build-aux/javacomp.sh.in: Likewise.
45138         * build-aux/javaexec.sh.in: Likewise.
45139         * build-aux/ldd.sh.in: Likewise.
45140         * build-aux/reloc-ldflags: Likewise.
45141         * build-aux/relocatable.sh.in: Likewise.
45142         * build-aux/x-to-1.in: Likewise.
45143         * check-module: Likewise.
45144         * config/srclistvars.sh: Likewise.
45145         * gnulib-tool: Likewise.
45146         * lib/acl-internal.h: Likewise.
45147         * lib/acl.c: Likewise.
45148         * lib/acl.h: Likewise.
45149         * lib/acl_entries.c: Likewise.
45150         * lib/areadlink-with-size.c: Likewise.
45151         * lib/areadlink.c: Likewise.
45152         * lib/areadlink.h: Likewise.
45153         * lib/argmatch.c: Likewise.
45154         * lib/argmatch.h: Likewise.
45155         * lib/argp-ba.c: Likewise.
45156         * lib/argp-eexst.c: Likewise.
45157         * lib/argp-fmtstream.c: Likewise.
45158         * lib/argp-fmtstream.h: Likewise.
45159         * lib/argp-fs-xinl.c: Likewise.
45160         * lib/argp-help.c: Likewise.
45161         * lib/argp-namefrob.h: Likewise.
45162         * lib/argp-parse.c: Likewise.
45163         * lib/argp-pin.c: Likewise.
45164         * lib/argp-pv.c: Likewise.
45165         * lib/argp-pvh.c: Likewise.
45166         * lib/argp-xinl.c: Likewise.
45167         * lib/argp.h: Likewise.
45168         * lib/at-func.c: Likewise.
45169         * lib/atanl.c: Likewise.
45170         * lib/backupfile.c: Likewise.
45171         * lib/backupfile.h: Likewise.
45172         * lib/basename.c: Likewise.
45173         * lib/binary-io.h: Likewise.
45174         * lib/byteswap.in.h: Likewise.
45175         * lib/c-stack.c: Likewise.
45176         * lib/c-stack.h: Likewise.
45177         * lib/c-strcasestr.c: Likewise.
45178         * lib/c-strcasestr.h: Likewise.
45179         * lib/c-strstr.c: Likewise.
45180         * lib/c-strstr.h: Likewise.
45181         * lib/c-strtod.c: Likewise.
45182         * lib/calloc.c: Likewise.
45183         * lib/canon-host.c: Likewise.
45184         * lib/canon-host.h: Likewise.
45185         * lib/canonicalize-lgpl.c: Likewise.
45186         * lib/canonicalize.c: Likewise.
45187         * lib/canonicalize.h: Likewise.
45188         * lib/ceil.c: Likewise.
45189         * lib/ceilf.c: Likewise.
45190         * lib/ceill.c: Likewise.
45191         * lib/chdir-long.c: Likewise.
45192         * lib/chdir-long.h: Likewise.
45193         * lib/chdir-safer.c: Likewise.
45194         * lib/chdir-safer.h: Likewise.
45195         * lib/chown.c: Likewise.
45196         * lib/classpath.c: Likewise.
45197         * lib/classpath.h: Likewise.
45198         * lib/clean-temp.c: Likewise.
45199         * lib/clean-temp.h: Likewise.
45200         * lib/cloexec.c: Likewise.
45201         * lib/close-stream.c: Likewise.
45202         * lib/closein.c: Likewise.
45203         * lib/closein.h: Likewise.
45204         * lib/closeout.c: Likewise.
45205         * lib/closeout.h: Likewise.
45206         * lib/concat-filename.c: Likewise.
45207         * lib/copy-file.c: Likewise.
45208         * lib/copy-file.h: Likewise.
45209         * lib/count-one-bits.h: Likewise.
45210         * lib/crc.c: Likewise.
45211         * lib/crc.h: Likewise.
45212         * lib/creat-safer.c: Likewise.
45213         * lib/csharpcomp.c: Likewise.
45214         * lib/csharpcomp.h: Likewise.
45215         * lib/csharpexec.c: Likewise.
45216         * lib/csharpexec.h: Likewise.
45217         * lib/cycle-check.c: Likewise.
45218         * lib/cycle-check.h: Likewise.
45219         * lib/diacrit.c: Likewise.
45220         * lib/diacrit.h: Likewise.
45221         * lib/diffseq.h: Likewise.
45222         * lib/dirchownmod.c: Likewise.
45223         * lib/dirent.in.h: Likewise.
45224         * lib/dirfd.c: Likewise.
45225         * lib/dirfd.h: Likewise.
45226         * lib/dirname.c: Likewise.
45227         * lib/dirname.h: Likewise.
45228         * lib/dummy.c: Likewise.
45229         * lib/dup-safer.c: Likewise.
45230         * lib/dup2.c: Likewise.
45231         * lib/eealloc.h: Likewise.
45232         * lib/error.c: Likewise.
45233         * lib/error.h: Likewise.
45234         * lib/euidaccess.c: Likewise.
45235         * lib/exclude.c: Likewise.
45236         * lib/exclude.h: Likewise.
45237         * lib/execute.c: Likewise.
45238         * lib/execute.h: Likewise.
45239         * lib/exitfail.c: Likewise.
45240         * lib/exitfail.h: Likewise.
45241         * lib/expl.c: Likewise.
45242         * lib/fatal-signal.c: Likewise.
45243         * lib/fatal-signal.h: Likewise.
45244         * lib/fbufmode.c: Likewise.
45245         * lib/fbufmode.h: Likewise.
45246         * lib/fchdir.c: Likewise.
45247         * lib/fchmodat.c: Likewise.
45248         * lib/fchownat.c: Likewise.
45249         * lib/fcntl--.h: Likewise.
45250         * lib/fcntl-safer.h: Likewise.
45251         * lib/fcntl.in.h: Likewise.
45252         * lib/fd-safer.c: Likewise.
45253         * lib/fflush.c: Likewise.
45254         * lib/file-has-acl.c: Likewise.
45255         * lib/file-set.c: Likewise.
45256         * lib/file-type.c: Likewise.
45257         * lib/file-type.h: Likewise.
45258         * lib/fileblocks.c: Likewise.
45259         * lib/filemode.c: Likewise.
45260         * lib/filemode.h: Likewise.
45261         * lib/filename.h: Likewise.
45262         * lib/filenamecat.c: Likewise.
45263         * lib/filenamecat.h: Likewise.
45264         * lib/findprog.c: Likewise.
45265         * lib/findprog.h: Likewise.
45266         * lib/float.in.h: Likewise.
45267         * lib/floor.c: Likewise.
45268         * lib/floorf.c: Likewise.
45269         * lib/floorl.c: Likewise.
45270         * lib/fopen-safer.c: Likewise.
45271         * lib/fopen.c: Likewise.
45272         * lib/fpending.c: Likewise.
45273         * lib/fpending.h: Likewise.
45274         * lib/fprintf.c: Likewise.
45275         * lib/fprintftime.h: Likewise.
45276         * lib/fpucw.h: Likewise.
45277         * lib/fpurge.c: Likewise.
45278         * lib/fpurge.h: Likewise.
45279         * lib/freadable.c: Likewise.
45280         * lib/freadable.h: Likewise.
45281         * lib/freadahead.c: Likewise.
45282         * lib/freadahead.h: Likewise.
45283         * lib/freading.c: Likewise.
45284         * lib/freading.h: Likewise.
45285         * lib/free.c: Likewise.
45286         * lib/freopen.c: Likewise.
45287         * lib/frexp.c: Likewise.
45288         * lib/frexpl.c: Likewise.
45289         * lib/fseek.c: Likewise.
45290         * lib/fseterr.c: Likewise.
45291         * lib/fseterr.h: Likewise.
45292         * lib/fstatat.c: Likewise.
45293         * lib/fstrcmp.c: Likewise.
45294         * lib/fstrcmp.h: Likewise.
45295         * lib/fsusage.c: Likewise.
45296         * lib/fsusage.h: Likewise.
45297         * lib/ftell.c: Likewise.
45298         * lib/ftello.c: Likewise.
45299         * lib/fts-cycle.c: Likewise.
45300         * lib/fts.c: Likewise.
45301         * lib/fts_.h: Likewise.
45302         * lib/full-read.c: Likewise.
45303         * lib/full-read.h: Likewise.
45304         * lib/full-write.c: Likewise.
45305         * lib/full-write.h: Likewise.
45306         * lib/fwritable.c: Likewise.
45307         * lib/fwritable.h: Likewise.
45308         * lib/fwriteerror.c: Likewise.
45309         * lib/fwriteerror.h: Likewise.
45310         * lib/fwriting.c: Likewise.
45311         * lib/fwriting.h: Likewise.
45312         * lib/gcd.c: Likewise.
45313         * lib/gcd.h: Likewise.
45314         * lib/getcwd.c: Likewise.
45315         * lib/getdate.h: Likewise.
45316         * lib/getdate.y: Likewise.
45317         * lib/getdomainname.c: Likewise.
45318         * lib/getdomainname.h: Likewise.
45319         * lib/getgroups.c: Likewise.
45320         * lib/gethostname.c: Likewise.
45321         * lib/gethrxtime.c: Likewise.
45322         * lib/gethrxtime.h: Likewise.
45323         * lib/getloadavg.c: Likewise.
45324         * lib/getndelim2.c: Likewise.
45325         * lib/getndelim2.h: Likewise.
45326         * lib/getnline.c: Likewise.
45327         * lib/getnline.h: Likewise.
45328         * lib/getopt.c: Likewise.
45329         * lib/getopt.in.h: Likewise.
45330         * lib/getopt1.c: Likewise.
45331         * lib/getopt_int.h: Likewise.
45332         * lib/getpagesize.h: Likewise.
45333         * lib/getsubopt.c: Likewise.
45334         * lib/gettime.c: Likewise.
45335         * lib/getugroups.c: Likewise.
45336         * lib/getugroups.h: Likewise.
45337         * lib/getusershell.c: Likewise.
45338         * lib/gl_anyavltree_list1.h: Likewise.
45339         * lib/gl_anyavltree_list2.h: Likewise.
45340         * lib/gl_anyhash_list1.h: Likewise.
45341         * lib/gl_anyhash_list2.h: Likewise.
45342         * lib/gl_anylinked_list1.h: Likewise.
45343         * lib/gl_anylinked_list2.h: Likewise.
45344         * lib/gl_anyrbtree_list1.h: Likewise.
45345         * lib/gl_anyrbtree_list2.h: Likewise.
45346         * lib/gl_anytree_list1.h: Likewise.
45347         * lib/gl_anytree_list2.h: Likewise.
45348         * lib/gl_anytree_oset.h: Likewise.
45349         * lib/gl_anytreehash_list1.h: Likewise.
45350         * lib/gl_anytreehash_list2.h: Likewise.
45351         * lib/gl_array_list.c: Likewise.
45352         * lib/gl_array_list.h: Likewise.
45353         * lib/gl_array_oset.c: Likewise.
45354         * lib/gl_array_oset.h: Likewise.
45355         * lib/gl_avltree_list.c: Likewise.
45356         * lib/gl_avltree_list.h: Likewise.
45357         * lib/gl_avltree_oset.c: Likewise.
45358         * lib/gl_avltree_oset.h: Likewise.
45359         * lib/gl_avltreehash_list.c: Likewise.
45360         * lib/gl_avltreehash_list.h: Likewise.
45361         * lib/gl_carray_list.c: Likewise.
45362         * lib/gl_carray_list.h: Likewise.
45363         * lib/gl_linked_list.c: Likewise.
45364         * lib/gl_linked_list.h: Likewise.
45365         * lib/gl_linkedhash_list.c: Likewise.
45366         * lib/gl_linkedhash_list.h: Likewise.
45367         * lib/gl_list.c: Likewise.
45368         * lib/gl_list.h: Likewise.
45369         * lib/gl_oset.c: Likewise.
45370         * lib/gl_oset.h: Likewise.
45371         * lib/gl_rbtree_list.c: Likewise.
45372         * lib/gl_rbtree_list.h: Likewise.
45373         * lib/gl_rbtree_oset.c: Likewise.
45374         * lib/gl_rbtree_oset.h: Likewise.
45375         * lib/gl_rbtreehash_list.c: Likewise.
45376         * lib/gl_rbtreehash_list.h: Likewise.
45377         * lib/gl_sublist.c: Likewise.
45378         * lib/gl_sublist.h: Likewise.
45379         * lib/group-member.c: Likewise.
45380         * lib/group-member.h: Likewise.
45381         * lib/hard-locale.c: Likewise.
45382         * lib/hard-locale.h: Likewise.
45383         * lib/hash-pjw.c: Likewise.
45384         * lib/hash-pjw.h: Likewise.
45385         * lib/hash-triple.c: Likewise.
45386         * lib/hash.c: Likewise.
45387         * lib/hash.h: Likewise.
45388         * lib/human.c: Likewise.
45389         * lib/human.h: Likewise.
45390         * lib/i-ring.c: Likewise.
45391         * lib/i-ring.h: Likewise.
45392         * lib/idcache.c: Likewise.
45393         * lib/imaxabs.c: Likewise.
45394         * lib/imaxdiv.c: Likewise.
45395         * lib/inet_pton.c: Likewise.
45396         * lib/inet_pton.h: Likewise.
45397         * lib/intprops.h: Likewise.
45398         * lib/inttostr.c: Likewise.
45399         * lib/inttostr.h: Likewise.
45400         * lib/inttypes.in.h: Likewise.
45401         * lib/isapipe.c: Likewise.
45402         * lib/isdir.c: Likewise.
45403         * lib/isnan.c: Likewise.
45404         * lib/isnan.h: Likewise.
45405         * lib/isnanf.c: Likewise.
45406         * lib/isnanf.h: Likewise.
45407         * lib/isnanl-nolibm.h: Likewise.
45408         * lib/isnanl.c: Likewise.
45409         * lib/isnanl.h: Likewise.
45410         * lib/javacomp.c: Likewise.
45411         * lib/javacomp.h: Likewise.
45412         * lib/javaexec.c: Likewise.
45413         * lib/javaexec.h: Likewise.
45414         * lib/javaversion.c: Likewise.
45415         * lib/javaversion.h: Likewise.
45416         * lib/javaversion.java: Likewise.
45417         * lib/lbrkprop.h: Likewise.
45418         * lib/lchmod.h: Likewise.
45419         * lib/lchown.c: Likewise.
45420         * lib/ldexpl.c: Likewise.
45421         * lib/linebreak.c: Likewise.
45422         * lib/linebreak.h: Likewise.
45423         * lib/linebuffer.c: Likewise.
45424         * lib/linebuffer.h: Likewise.
45425         * lib/locale.in.h: Likewise.
45426         * lib/logl.c: Likewise.
45427         * lib/long-options.c: Likewise.
45428         * lib/long-options.h: Likewise.
45429         * lib/lstat.c: Likewise.
45430         * lib/lstat.h: Likewise.
45431         * lib/math.in.h: Likewise.
45432         * lib/mbchar.c: Likewise.
45433         * lib/mbchar.h: Likewise.
45434         * lib/mbfile.h: Likewise.
45435         * lib/mbiter.h: Likewise.
45436         * lib/mbscasecmp.c: Likewise.
45437         * lib/mbscasestr.c: Likewise.
45438         * lib/mbschr.c: Likewise.
45439         * lib/mbscspn.c: Likewise.
45440         * lib/mbslen.c: Likewise.
45441         * lib/mbsncasecmp.c: Likewise.
45442         * lib/mbsnlen.c: Likewise.
45443         * lib/mbspbrk.c: Likewise.
45444         * lib/mbspcasecmp.c: Likewise.
45445         * lib/mbsrchr.c: Likewise.
45446         * lib/mbssep.c: Likewise.
45447         * lib/mbsspn.c: Likewise.
45448         * lib/mbsstr.c: Likewise.
45449         * lib/mbstok_r.c: Likewise.
45450         * lib/mbswidth.c: Likewise.
45451         * lib/mbswidth.h: Likewise.
45452         * lib/mbuiter.h: Likewise.
45453         * lib/memcasecmp.c: Likewise.
45454         * lib/memcasecmp.h: Likewise.
45455         * lib/memchr.c: Likewise.
45456         * lib/memcmp.c: Likewise.
45457         * lib/memcoll.c: Likewise.
45458         * lib/memcoll.h: Likewise.
45459         * lib/memcpy.c: Likewise.
45460         * lib/memrchr.c: Likewise.
45461         * lib/mkancesdirs.c: Likewise.
45462         * lib/mkdir-p.c: Likewise.
45463         * lib/mkdir-p.h: Likewise.
45464         * lib/mkdir.c: Likewise.
45465         * lib/mkdirat.c: Likewise.
45466         * lib/mkdtemp.c: Likewise.
45467         * lib/mkstemp-safer.c: Likewise.
45468         * lib/mkstemp.c: Likewise.
45469         * lib/modechange.c: Likewise.
45470         * lib/modechange.h: Likewise.
45471         * lib/mountlist.c: Likewise.
45472         * lib/mountlist.h: Likewise.
45473         * lib/mpsort.c: Likewise.
45474         * lib/nanosleep.c: Likewise.
45475         * lib/obstack.c: Likewise.
45476         * lib/obstack.h: Likewise.
45477         * lib/open-safer.c: Likewise.
45478         * lib/open.c: Likewise.
45479         * lib/openat-die.c: Likewise.
45480         * lib/openat-priv.h: Likewise.
45481         * lib/openat-proc.c: Likewise.
45482         * lib/openat.c: Likewise.
45483         * lib/openat.h: Likewise.
45484         * lib/pagealign_alloc.c: Likewise.
45485         * lib/pagealign_alloc.h: Likewise.
45486         * lib/physmem.c: Likewise.
45487         * lib/physmem.h: Likewise.
45488         * lib/pipe-safer.c: Likewise.
45489         * lib/pipe.c: Likewise.
45490         * lib/pipe.h: Likewise.
45491         * lib/posixtm.c: Likewise.
45492         * lib/posixtm.h: Likewise.
45493         * lib/posixver.c: Likewise.
45494         * lib/printf-frexp.c: Likewise.
45495         * lib/printf-frexp.h: Likewise.
45496         * lib/printf-frexpl.c: Likewise.
45497         * lib/printf-frexpl.h: Likewise.
45498         * lib/printf.c: Likewise.
45499         * lib/progname.c: Likewise.
45500         * lib/progname.h: Likewise.
45501         * lib/progreloc.c: Likewise.
45502         * lib/putenv.c: Likewise.
45503         * lib/quote.c: Likewise.
45504         * lib/quote.h: Likewise.
45505         * lib/quotearg.c: Likewise.
45506         * lib/quotearg.h: Likewise.
45507         * lib/raise.c: Likewise.
45508         * lib/readline.c: Likewise.
45509         * lib/readline.h: Likewise.
45510         * lib/readlink.c: Likewise.
45511         * lib/readtokens.c: Likewise.
45512         * lib/readtokens.h: Likewise.
45513         * lib/readtokens0.c: Likewise.
45514         * lib/readtokens0.h: Likewise.
45515         * lib/readutmp.c: Likewise.
45516         * lib/readutmp.h: Likewise.
45517         * lib/realloc.c: Likewise.
45518         * lib/relocwrapper.c: Likewise.
45519         * lib/rename-dest-slash.c: Likewise.
45520         * lib/rename.c: Likewise.
45521         * lib/rmdir.c: Likewise.
45522         * lib/rpmatch.c: Likewise.
45523         * lib/safe-read.c: Likewise.
45524         * lib/safe-read.h: Likewise.
45525         * lib/safe-write.c: Likewise.
45526         * lib/safe-write.h: Likewise.
45527         * lib/same-inode.h: Likewise.
45528         * lib/same.c: Likewise.
45529         * lib/same.h: Likewise.
45530         * lib/save-cwd.c: Likewise.
45531         * lib/save-cwd.h: Likewise.
45532         * lib/savedir.c: Likewise.
45533         * lib/savedir.h: Likewise.
45534         * lib/savewd.c: Likewise.
45535         * lib/savewd.h: Likewise.
45536         * lib/search.in.h: Likewise.
45537         * lib/setenv.c: Likewise.
45538         * lib/setenv.h: Likewise.
45539         * lib/settime.c: Likewise.
45540         * lib/sh-quote.c: Likewise.
45541         * lib/sh-quote.h: Likewise.
45542         * lib/sig2str.c: Likewise.
45543         * lib/sig2str.h: Likewise.
45544         * lib/signal.in.h: Likewise.
45545         * lib/signbitd.c: Likewise.
45546         * lib/signbitf.c: Likewise.
45547         * lib/signbitl.c: Likewise.
45548         * lib/sigprocmask.c: Likewise.
45549         * lib/sincosl.c: Likewise.
45550         * lib/sleep.c: Likewise.
45551         * lib/sprintf.c: Likewise.
45552         * lib/sqrtl.c: Likewise.
45553         * lib/stat-time.h: Likewise.
45554         * lib/stdio--.h: Likewise.
45555         * lib/stdio-safer.h: Likewise.
45556         * lib/stdlib--.h: Likewise.
45557         * lib/stdlib-safer.h: Likewise.
45558         * lib/stdlib.in.h: Likewise.
45559         * lib/stpcpy.c: Likewise.
45560         * lib/stpncpy.c: Likewise.
45561         * lib/strchrnul.c: Likewise.
45562         * lib/strcspn.c: Likewise.
45563         * lib/strerror.c: Likewise.
45564         * lib/strftime.c: Likewise.
45565         * lib/strftime.h: Likewise.
45566         * lib/striconveh.c: Likewise.
45567         * lib/striconveh.h: Likewise.
45568         * lib/striconveha.c: Likewise.
45569         * lib/striconveha.h: Likewise.
45570         * lib/stripslash.c: Likewise.
45571         * lib/strnlen1.c: Likewise.
45572         * lib/strnlen1.h: Likewise.
45573         * lib/strtod.c: Likewise.
45574         * lib/strtoimax.c: Likewise.
45575         * lib/strtok_r.c: Likewise.
45576         * lib/strtol.c: Likewise.
45577         * lib/strtoll.c: Likewise.
45578         * lib/strtoul.c: Likewise.
45579         * lib/strtoull.c: Likewise.
45580         * lib/sysexits.in.h: Likewise.
45581         * lib/tempname.c: Likewise.
45582         * lib/tempname.h: Likewise.
45583         * lib/timespec.h: Likewise.
45584         * lib/tls.c: Likewise.
45585         * lib/tls.h: Likewise.
45586         * lib/tmpdir.c: Likewise.
45587         * lib/tmpdir.h: Likewise.
45588         * lib/tmpfile-safer.c: Likewise.
45589         * lib/tmpfile.c: Likewise.
45590         * lib/trigl.c: Likewise.
45591         * lib/trigl.h: Likewise.
45592         * lib/trim.c: Likewise.
45593         * lib/trim.h: Likewise.
45594         * lib/trunc.c: Likewise.
45595         * lib/truncf.c: Likewise.
45596         * lib/truncl.c: Likewise.
45597         * lib/tsearch.c: Likewise.
45598         * lib/unicodeio.c: Likewise.
45599         * lib/unicodeio.h: Likewise.
45600         * lib/unistd--.h: Likewise.
45601         * lib/unistd-safer.h: Likewise.
45602         * lib/unistdio/ulc-fprintf.c: Likewise.
45603         * lib/unistdio/ulc-vfprintf.c: Likewise.
45604         * lib/unlinkdir.c: Likewise.
45605         * lib/unlinkdir.h: Likewise.
45606         * lib/unlocked-io.h: Likewise.
45607         * lib/unsetenv.c: Likewise.
45608         * lib/userspec.c: Likewise.
45609         * lib/utime.c: Likewise.
45610         * lib/utimecmp.c: Likewise.
45611         * lib/utimecmp.h: Likewise.
45612         * lib/utimens.c: Likewise.
45613         * lib/verify.h: Likewise.
45614         * lib/verror.c: Likewise.
45615         * lib/verror.h: Likewise.
45616         * lib/version-etc-fsf.c: Likewise.
45617         * lib/version-etc.c: Likewise.
45618         * lib/version-etc.h: Likewise.
45619         * lib/vfprintf.c: Likewise.
45620         * lib/vprintf.c: Likewise.
45621         * lib/vsprintf.c: Likewise.
45622         * lib/w32spawn.h: Likewise.
45623         * lib/wait-process.c: Likewise.
45624         * lib/wait-process.h: Likewise.
45625         * lib/wcwidth.c: Likewise.
45626         * lib/write-any-file.c: Likewise.
45627         * lib/xalloc-die.c: Likewise.
45628         * lib/xalloc.h: Likewise.
45629         * lib/xasprintf.c: Likewise.
45630         * lib/xgetcwd.c: Likewise.
45631         * lib/xgetcwd.h: Likewise.
45632         * lib/xgetdomainname.c: Likewise.
45633         * lib/xgetdomainname.h: Likewise.
45634         * lib/xgethostname.c: Likewise.
45635         * lib/xmalloc.c: Likewise.
45636         * lib/xmalloca.c: Likewise.
45637         * lib/xmalloca.h: Likewise.
45638         * lib/xmemcoll.c: Likewise.
45639         * lib/xnanosleep.c: Likewise.
45640         * lib/xreadlink.c: Likewise.
45641         * lib/xreadlink.h: Likewise.
45642         * lib/xsetenv.c: Likewise.
45643         * lib/xsetenv.h: Likewise.
45644         * lib/xstriconv.c: Likewise.
45645         * lib/xstriconv.h: Likewise.
45646         * lib/xstrndup.c: Likewise.
45647         * lib/xstrndup.h: Likewise.
45648         * lib/xstrtod.c: Likewise.
45649         * lib/xstrtod.h: Likewise.
45650         * lib/xstrtol-error.c: Likewise.
45651         * lib/xstrtol.c: Likewise.
45652         * lib/xstrtol.h: Likewise.
45653         * lib/xtime.h: Likewise.
45654         * lib/xvasprintf.c: Likewise.
45655         * lib/xvasprintf.h: Likewise.
45656         * lib/yesno.c: Likewise.
45657         * lib/yesno.h: Likewise.
45658         * posix-modules: Likewise.
45659         * tests/test-alloca-opt.c: Likewise.
45660         * tests/test-arcfour.c: Likewise.
45661         * tests/test-arctwo.c: Likewise.
45662         * tests/test-argmatch.c: Likewise.
45663         * tests/test-argp-2.sh: Likewise.
45664         * tests/test-argp.c: Likewise.
45665         * tests/test-arpa_inet.c: Likewise.
45666         * tests/test-array_list.c: Likewise.
45667         * tests/test-array_oset.c: Likewise.
45668         * tests/test-atexit.c: Likewise.
45669         * tests/test-avltree_list.c: Likewise.
45670         * tests/test-avltree_oset.c: Likewise.
45671         * tests/test-avltreehash_list.c: Likewise.
45672         * tests/test-base64.c: Likewise.
45673         * tests/test-binary-io.c: Likewise.
45674         * tests/test-byteswap.c: Likewise.
45675         * tests/test-c-ctype.c: Likewise.
45676         * tests/test-c-strcasecmp.c: Likewise.
45677         * tests/test-c-strcasestr.c: Likewise.
45678         * tests/test-c-strncasecmp.c: Likewise.
45679         * tests/test-c-strstr.c: Likewise.
45680         * tests/test-canonicalize-lgpl.c: Likewise.
45681         * tests/test-canonicalize.c: Likewise.
45682         * tests/test-carray_list.c: Likewise.
45683         * tests/test-ceilf.c: Likewise.
45684         * tests/test-ceill.c: Likewise.
45685         * tests/test-count-one-bits.c: Likewise.
45686         * tests/test-crc.c: Likewise.
45687         * tests/test-dirname.c: Likewise.
45688         * tests/test-fbufmode.c: Likewise.
45689         * tests/test-fcntl.c: Likewise.
45690         * tests/test-fflush.c: Likewise.
45691         * tests/test-floorf.c: Likewise.
45692         * tests/test-floorl.c: Likewise.
45693         * tests/test-fopen.c: Likewise.
45694         * tests/test-fprintf-posix.c: Likewise.
45695         * tests/test-fprintf-posix.h: Likewise.
45696         * tests/test-fpurge.c: Likewise.
45697         * tests/test-freadable.c: Likewise.
45698         * tests/test-freadahead.c: Likewise.
45699         * tests/test-freading.c: Likewise.
45700         * tests/test-freopen.c: Likewise.
45701         * tests/test-frexp.c: Likewise.
45702         * tests/test-frexpl.c: Likewise.
45703         * tests/test-fseek.c: Likewise.
45704         * tests/test-fseeko.c: Likewise.
45705         * tests/test-fseterr.c: Likewise.
45706         * tests/test-fstrcmp.c: Likewise.
45707         * tests/test-ftell.c: Likewise.
45708         * tests/test-ftello.c: Likewise.
45709         * tests/test-fwritable.c: Likewise.
45710         * tests/test-fwriting.c: Likewise.
45711         * tests/test-getaddrinfo.c: Likewise.
45712         * tests/test-getpass.c: Likewise.
45713         * tests/test-gettimeofday.c: Likewise.
45714         * tests/test-hmac-md5.c: Likewise.
45715         * tests/test-hmac-sha1.c: Likewise.
45716         * tests/test-iconv.c: Likewise.
45717         * tests/test-iconvme.c: Likewise.
45718         * tests/test-inttypes.c: Likewise.
45719         * tests/test-isnan.c: Likewise.
45720         * tests/test-isnanf.c: Likewise.
45721         * tests/test-isnanl-nolibm.c: Likewise.
45722         * tests/test-isnanl.c: Likewise.
45723         * tests/test-isnanl.h: Likewise.
45724         * tests/test-ldexpl.c: Likewise.
45725         * tests/test-linked_list.c: Likewise.
45726         * tests/test-linkedhash_list.c: Likewise.
45727         * tests/test-locale.c: Likewise.
45728         * tests/test-localename.c: Likewise.
45729         * tests/test-lock.c: Likewise.
45730         * tests/test-lseek.c: Likewise.
45731         * tests/test-malloca.c: Likewise.
45732         * tests/test-math.c: Likewise.
45733         * tests/test-mbscasecmp.c: Likewise.
45734         * tests/test-mbscasestr1.c: Likewise.
45735         * tests/test-mbscasestr2.c: Likewise.
45736         * tests/test-mbscasestr3.c: Likewise.
45737         * tests/test-mbscasestr4.c: Likewise.
45738         * tests/test-mbschr.c: Likewise.
45739         * tests/test-mbscspn.c: Likewise.
45740         * tests/test-mbsncasecmp.c: Likewise.
45741         * tests/test-mbspbrk.c: Likewise.
45742         * tests/test-mbspcasecmp.c: Likewise.
45743         * tests/test-mbsrchr.c: Likewise.
45744         * tests/test-mbsspn.c: Likewise.
45745         * tests/test-mbsstr1.c: Likewise.
45746         * tests/test-mbsstr2.c: Likewise.
45747         * tests/test-mbsstr3.c: Likewise.
45748         * tests/test-md5.c: Likewise.
45749         * tests/test-memmem.c: Likewise.
45750         * tests/test-netinet_in.c: Likewise.
45751         * tests/test-open.c: Likewise.
45752         * tests/test-printf-frexp.c: Likewise.
45753         * tests/test-printf-frexpl.c: Likewise.
45754         * tests/test-printf-posix.c: Likewise.
45755         * tests/test-printf-posix.h: Likewise.
45756         * tests/test-rbtree_list.c: Likewise.
45757         * tests/test-rbtree_oset.c: Likewise.
45758         * tests/test-rbtreehash_list.c: Likewise.
45759         * tests/test-read-file.c: Likewise.
45760         * tests/test-rijndael.c: Likewise.
45761         * tests/test-search.c: Likewise.
45762         * tests/test-signbit.c: Likewise.
45763         * tests/test-sleep.c: Likewise.
45764         * tests/test-snprintf-posix.c: Likewise.
45765         * tests/test-snprintf-posix.h: Likewise.
45766         * tests/test-snprintf.c: Likewise.
45767         * tests/test-sprintf-posix.c: Likewise.
45768         * tests/test-sprintf-posix.h: Likewise.
45769         * tests/test-stat-time.c: Likewise.
45770         * tests/test-stdbool.c: Likewise.
45771         * tests/test-stdint.c: Likewise.
45772         * tests/test-stdio.c: Likewise.
45773         * tests/test-stdlib.c: Likewise.
45774         * tests/test-stpncpy.c: Likewise.
45775         * tests/test-strcasestr.c: Likewise.
45776         * tests/test-striconv.c: Likewise.
45777         * tests/test-striconveh.c: Likewise.
45778         * tests/test-striconveha.c: Likewise.
45779         * tests/test-string.c: Likewise.
45780         * tests/test-sys_select.c: Likewise.
45781         * tests/test-sys_socket.c: Likewise.
45782         * tests/test-sys_stat.c: Likewise.
45783         * tests/test-sys_time.c: Likewise.
45784         * tests/test-sysexits.c: Likewise.
45785         * tests/test-time.c: Likewise.
45786         * tests/test-tls.c: Likewise.
45787         * tests/test-trunc.c: Likewise.
45788         * tests/test-truncf.c: Likewise.
45789         * tests/test-truncl.c: Likewise.
45790         * tests/test-unistd.c: Likewise.
45791         * tests/test-vasnprintf-posix.c: Likewise.
45792         * tests/test-vasnprintf-posix2.c: Likewise.
45793         * tests/test-vasnprintf.c: Likewise.
45794         * tests/test-vasprintf-posix.c: Likewise.
45795         * tests/test-vasprintf.c: Likewise.
45796         * tests/test-verify.c: Likewise.
45797         * tests/test-vfprintf-posix.c: Likewise.
45798         * tests/test-vprintf-posix.c: Likewise.
45799         * tests/test-vsnprintf-posix.c: Likewise.
45800         * tests/test-vsnprintf.c: Likewise.
45801         * tests/test-vsprintf-posix.c: Likewise.
45802         * tests/test-wchar.c: Likewise.
45803         * tests/test-wctype.c: Likewise.
45804         * tests/test-wcwidth.c: Likewise.
45805         * tests/test-xstrtol.c: Likewise.
45806         * tests/test-xvasprintf.c: Likewise.
45807         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
45808         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
45809         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
45810         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
45811         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
45812         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
45813         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
45814         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
45815         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
45816         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
45817         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
45818         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
45819         * tests/uniname/test-uninames.c: Likewise.
45820         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
45821         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
45822         * tests/unistdio/test-u16-printf1.h: Likewise.
45823         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
45824         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
45825         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
45826         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
45827         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
45828         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
45829         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
45830         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
45831         * tests/unistdio/test-u32-printf1.h: Likewise.
45832         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
45833         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
45834         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
45835         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
45836         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
45837         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
45838         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
45839         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
45840         * tests/unistdio/test-u8-printf1.h: Likewise.
45841         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
45842         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
45843         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
45844         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
45845         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
45846         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
45847         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
45848         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
45849         * tests/unistdio/test-ulc-printf1.h: Likewise.
45850         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
45851         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
45852         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
45853         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
45854         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
45855         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
45856         * tests/uniwidth/test-u16-strwidth.c: Likewise.
45857         * tests/uniwidth/test-u16-width.c: Likewise.
45858         * tests/uniwidth/test-u32-strwidth.c: Likewise.
45859         * tests/uniwidth/test-u32-width.c: Likewise.
45860         * tests/uniwidth/test-u8-strwidth.c: Likewise.
45861         * tests/uniwidth/test-u8-width.c: Likewise.
45862         * tests/uniwidth/test-uc_width.c: Likewise.
45863         * config/srclist-update: Likewise.
45864         (fixlicense): Update to GPLv3+.
45865
45866         Change copyright notice from LGPLv2.1+ to LGPLv3+.
45867         * tests/test-tsearch.c: Change copyright notice.
45868
45869         Change copyright notice from LGPLv2.0+ to LGPLv3+.
45870         * lib/c-strcaseeq.h: Change copyright notice.
45871         * lib/streq.h: Likewise.
45872         * lib/uniconv.h: Likewise.
45873         * lib/uniconv/u-conv-from-enc.h: Likewise.
45874         * lib/uniconv/u-conv-to-enc.h: Likewise.
45875         * lib/uniconv/u-strconv-from-enc.h: Likewise.
45876         * lib/uniconv/u-strconv-to-enc.h: Likewise.
45877         * lib/uniconv/u16-conv-from-enc.c: Likewise.
45878         * lib/uniconv/u16-conv-to-enc.c: Likewise.
45879         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
45880         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
45881         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
45882         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
45883         * lib/uniconv/u32-conv-from-enc.c: Likewise.
45884         * lib/uniconv/u32-conv-to-enc.c: Likewise.
45885         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
45886         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
45887         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
45888         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
45889         * lib/uniconv/u8-conv-from-enc.c: Likewise.
45890         * lib/uniconv/u8-conv-to-enc.c: Likewise.
45891         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
45892         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
45893         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
45894         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
45895         * lib/uniname.h: Likewise.
45896         * lib/uniname/uniname.c: Likewise.
45897         * lib/unistdio.h: Likewise.
45898         * lib/unistdio/u-asnprintf.h: Likewise.
45899         * lib/unistdio/u-asprintf.h: Likewise.
45900         * lib/unistdio/u-printf-args.c: Likewise.
45901         * lib/unistdio/u-printf-args.h: Likewise.
45902         * lib/unistdio/u-printf-parse.h: Likewise.
45903         * lib/unistdio/u-snprintf.h: Likewise.
45904         * lib/unistdio/u-sprintf.h: Likewise.
45905         * lib/unistdio/u-vasprintf.h: Likewise.
45906         * lib/unistdio/u-vsnprintf.h: Likewise.
45907         * lib/unistdio/u-vsprintf.h: Likewise.
45908         * lib/unistdio/u16-asnprintf.c: Likewise.
45909         * lib/unistdio/u16-asprintf.c: Likewise.
45910         * lib/unistdio/u16-printf-parse.c: Likewise.
45911         * lib/unistdio/u16-snprintf.c: Likewise.
45912         * lib/unistdio/u16-sprintf.c: Likewise.
45913         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
45914         * lib/unistdio/u16-u16-asprintf.c: Likewise.
45915         * lib/unistdio/u16-u16-snprintf.c: Likewise.
45916         * lib/unistdio/u16-u16-sprintf.c: Likewise.
45917         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
45918         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
45919         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
45920         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
45921         * lib/unistdio/u16-vasnprintf.c: Likewise.
45922         * lib/unistdio/u16-vasprintf.c: Likewise.
45923         * lib/unistdio/u16-vsnprintf.c: Likewise.
45924         * lib/unistdio/u16-vsprintf.c: Likewise.
45925         * lib/unistdio/u32-asnprintf.c: Likewise.
45926         * lib/unistdio/u32-asprintf.c: Likewise.
45927         * lib/unistdio/u32-printf-parse.c: Likewise.
45928         * lib/unistdio/u32-snprintf.c: Likewise.
45929         * lib/unistdio/u32-sprintf.c: Likewise.
45930         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
45931         * lib/unistdio/u32-u32-asprintf.c: Likewise.
45932         * lib/unistdio/u32-u32-snprintf.c: Likewise.
45933         * lib/unistdio/u32-u32-sprintf.c: Likewise.
45934         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
45935         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
45936         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
45937         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
45938         * lib/unistdio/u32-vasnprintf.c: Likewise.
45939         * lib/unistdio/u32-vasprintf.c: Likewise.
45940         * lib/unistdio/u32-vsnprintf.c: Likewise.
45941         * lib/unistdio/u32-vsprintf.c: Likewise.
45942         * lib/unistdio/u8-asnprintf.c: Likewise.
45943         * lib/unistdio/u8-asprintf.c: Likewise.
45944         * lib/unistdio/u8-printf-parse.c: Likewise.
45945         * lib/unistdio/u8-snprintf.c: Likewise.
45946         * lib/unistdio/u8-sprintf.c: Likewise.
45947         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
45948         * lib/unistdio/u8-u8-asprintf.c: Likewise.
45949         * lib/unistdio/u8-u8-snprintf.c: Likewise.
45950         * lib/unistdio/u8-u8-sprintf.c: Likewise.
45951         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
45952         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
45953         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
45954         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
45955         * lib/unistdio/u8-vasnprintf.c: Likewise.
45956         * lib/unistdio/u8-vasprintf.c: Likewise.
45957         * lib/unistdio/u8-vsnprintf.c: Likewise.
45958         * lib/unistdio/u8-vsprintf.c: Likewise.
45959         * lib/unistdio/ulc-asnprintf.c: Likewise.
45960         * lib/unistdio/ulc-asprintf.c: Likewise.
45961         * lib/unistdio/ulc-printf-parse.c: Likewise.
45962         * lib/unistdio/ulc-snprintf.c: Likewise.
45963         * lib/unistdio/ulc-sprintf.c: Likewise.
45964         * lib/unistdio/ulc-vasnprintf.c: Likewise.
45965         * lib/unistdio/ulc-vasprintf.c: Likewise.
45966         * lib/unistdio/ulc-vsnprintf.c: Likewise.
45967         * lib/unistdio/ulc-vsprintf.c: Likewise.
45968         * lib/unistr.h: Likewise.
45969         * lib/unistr/u-cpy-alloc.h: Likewise.
45970         * lib/unistr/u-cpy.h: Likewise.
45971         * lib/unistr/u-endswith.h: Likewise.
45972         * lib/unistr/u-move.h: Likewise.
45973         * lib/unistr/u-set.h: Likewise.
45974         * lib/unistr/u-startswith.h: Likewise.
45975         * lib/unistr/u-stpcpy.h: Likewise.
45976         * lib/unistr/u-stpncpy.h: Likewise.
45977         * lib/unistr/u-strcat.h: Likewise.
45978         * lib/unistr/u-strcpy.h: Likewise.
45979         * lib/unistr/u-strcspn.h: Likewise.
45980         * lib/unistr/u-strdup.h: Likewise.
45981         * lib/unistr/u-strlen.h: Likewise.
45982         * lib/unistr/u-strncat.h: Likewise.
45983         * lib/unistr/u-strncpy.h: Likewise.
45984         * lib/unistr/u-strnlen.h: Likewise.
45985         * lib/unistr/u-strpbrk.h: Likewise.
45986         * lib/unistr/u-strspn.h: Likewise.
45987         * lib/unistr/u-strstr.h: Likewise.
45988         * lib/unistr/u-strtok.h: Likewise.
45989         * lib/unistr/u16-check.c: Likewise.
45990         * lib/unistr/u16-chr.c: Likewise.
45991         * lib/unistr/u16-cmp.c: Likewise.
45992         * lib/unistr/u16-cpy-alloc.c: Likewise.
45993         * lib/unistr/u16-cpy.c: Likewise.
45994         * lib/unistr/u16-endswith.c: Likewise.
45995         * lib/unistr/u16-mblen.c: Likewise.
45996         * lib/unistr/u16-mbsnlen.c: Likewise.
45997         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45998         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45999         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46000         * lib/unistr/u16-mbtouc.c: Likewise.
46001         * lib/unistr/u16-mbtoucr.c: Likewise.
46002         * lib/unistr/u16-move.c: Likewise.
46003         * lib/unistr/u16-next.c: Likewise.
46004         * lib/unistr/u16-prev.c: Likewise.
46005         * lib/unistr/u16-set.c: Likewise.
46006         * lib/unistr/u16-startswith.c: Likewise.
46007         * lib/unistr/u16-stpcpy.c: Likewise.
46008         * lib/unistr/u16-stpncpy.c: Likewise.
46009         * lib/unistr/u16-strcat.c: Likewise.
46010         * lib/unistr/u16-strchr.c: Likewise.
46011         * lib/unistr/u16-strcmp.c: Likewise.
46012         * lib/unistr/u16-strcpy.c: Likewise.
46013         * lib/unistr/u16-strcspn.c: Likewise.
46014         * lib/unistr/u16-strdup.c: Likewise.
46015         * lib/unistr/u16-strlen.c: Likewise.
46016         * lib/unistr/u16-strmblen.c: Likewise.
46017         * lib/unistr/u16-strmbtouc.c: Likewise.
46018         * lib/unistr/u16-strncat.c: Likewise.
46019         * lib/unistr/u16-strncmp.c: Likewise.
46020         * lib/unistr/u16-strncpy.c: Likewise.
46021         * lib/unistr/u16-strnlen.c: Likewise.
46022         * lib/unistr/u16-strpbrk.c: Likewise.
46023         * lib/unistr/u16-strrchr.c: Likewise.
46024         * lib/unistr/u16-strspn.c: Likewise.
46025         * lib/unistr/u16-strstr.c: Likewise.
46026         * lib/unistr/u16-strtok.c: Likewise.
46027         * lib/unistr/u16-to-u32.c: Likewise.
46028         * lib/unistr/u16-to-u8.c: Likewise.
46029         * lib/unistr/u16-uctomb-aux.c: Likewise.
46030         * lib/unistr/u16-uctomb.c: Likewise.
46031         * lib/unistr/u32-check.c: Likewise.
46032         * lib/unistr/u32-chr.c: Likewise.
46033         * lib/unistr/u32-cmp.c: Likewise.
46034         * lib/unistr/u32-cpy-alloc.c: Likewise.
46035         * lib/unistr/u32-cpy.c: Likewise.
46036         * lib/unistr/u32-endswith.c: Likewise.
46037         * lib/unistr/u32-mblen.c: Likewise.
46038         * lib/unistr/u32-mbsnlen.c: Likewise.
46039         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46040         * lib/unistr/u32-mbtouc.c: Likewise.
46041         * lib/unistr/u32-mbtoucr.c: Likewise.
46042         * lib/unistr/u32-move.c: Likewise.
46043         * lib/unistr/u32-next.c: Likewise.
46044         * lib/unistr/u32-prev.c: Likewise.
46045         * lib/unistr/u32-set.c: Likewise.
46046         * lib/unistr/u32-startswith.c: Likewise.
46047         * lib/unistr/u32-stpcpy.c: Likewise.
46048         * lib/unistr/u32-stpncpy.c: Likewise.
46049         * lib/unistr/u32-strcat.c: Likewise.
46050         * lib/unistr/u32-strchr.c: Likewise.
46051         * lib/unistr/u32-strcmp.c: Likewise.
46052         * lib/unistr/u32-strcpy.c: Likewise.
46053         * lib/unistr/u32-strcspn.c: Likewise.
46054         * lib/unistr/u32-strdup.c: Likewise.
46055         * lib/unistr/u32-strlen.c: Likewise.
46056         * lib/unistr/u32-strmblen.c: Likewise.
46057         * lib/unistr/u32-strmbtouc.c: Likewise.
46058         * lib/unistr/u32-strncat.c: Likewise.
46059         * lib/unistr/u32-strncmp.c: Likewise.
46060         * lib/unistr/u32-strncpy.c: Likewise.
46061         * lib/unistr/u32-strnlen.c: Likewise.
46062         * lib/unistr/u32-strpbrk.c: Likewise.
46063         * lib/unistr/u32-strrchr.c: Likewise.
46064         * lib/unistr/u32-strspn.c: Likewise.
46065         * lib/unistr/u32-strstr.c: Likewise.
46066         * lib/unistr/u32-strtok.c: Likewise.
46067         * lib/unistr/u32-to-u16.c: Likewise.
46068         * lib/unistr/u32-to-u8.c: Likewise.
46069         * lib/unistr/u32-uctomb.c: Likewise.
46070         * lib/unistr/u8-check.c: Likewise.
46071         * lib/unistr/u8-chr.c: Likewise.
46072         * lib/unistr/u8-cmp.c: Likewise.
46073         * lib/unistr/u8-cpy-alloc.c: Likewise.
46074         * lib/unistr/u8-cpy.c: Likewise.
46075         * lib/unistr/u8-endswith.c: Likewise.
46076         * lib/unistr/u8-mblen.c: Likewise.
46077         * lib/unistr/u8-mbsnlen.c: Likewise.
46078         * lib/unistr/u8-mbtouc-aux.c: Likewise.
46079         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46080         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46081         * lib/unistr/u8-mbtouc.c: Likewise.
46082         * lib/unistr/u8-mbtoucr.c: Likewise.
46083         * lib/unistr/u8-move.c: Likewise.
46084         * lib/unistr/u8-next.c: Likewise.
46085         * lib/unistr/u8-prev.c: Likewise.
46086         * lib/unistr/u8-set.c: Likewise.
46087         * lib/unistr/u8-startswith.c: Likewise.
46088         * lib/unistr/u8-stpcpy.c: Likewise.
46089         * lib/unistr/u8-stpncpy.c: Likewise.
46090         * lib/unistr/u8-strcat.c: Likewise.
46091         * lib/unistr/u8-strchr.c: Likewise.
46092         * lib/unistr/u8-strcmp.c: Likewise.
46093         * lib/unistr/u8-strcpy.c: Likewise.
46094         * lib/unistr/u8-strcspn.c: Likewise.
46095         * lib/unistr/u8-strdup.c: Likewise.
46096         * lib/unistr/u8-strlen.c: Likewise.
46097         * lib/unistr/u8-strmblen.c: Likewise.
46098         * lib/unistr/u8-strmbtouc.c: Likewise.
46099         * lib/unistr/u8-strncat.c: Likewise.
46100         * lib/unistr/u8-strncmp.c: Likewise.
46101         * lib/unistr/u8-strncpy.c: Likewise.
46102         * lib/unistr/u8-strnlen.c: Likewise.
46103         * lib/unistr/u8-strpbrk.c: Likewise.
46104         * lib/unistr/u8-strrchr.c: Likewise.
46105         * lib/unistr/u8-strspn.c: Likewise.
46106         * lib/unistr/u8-strstr.c: Likewise.
46107         * lib/unistr/u8-strtok.c: Likewise.
46108         * lib/unistr/u8-to-u16.c: Likewise.
46109         * lib/unistr/u8-to-u32.c: Likewise.
46110         * lib/unistr/u8-uctomb-aux.c: Likewise.
46111         * lib/unistr/u8-uctomb.c: Likewise.
46112         * lib/unitypes.h: Likewise.
46113         * lib/uniwidth.h: Likewise.
46114         * lib/uniwidth/cjk.h: Likewise.
46115         * lib/uniwidth/u16-strwidth.c: Likewise.
46116         * lib/uniwidth/u16-width.c: Likewise.
46117         * lib/uniwidth/u32-strwidth.c: Likewise.
46118         * lib/uniwidth/u32-width.c: Likewise.
46119         * lib/uniwidth/u8-strwidth.c: Likewise.
46120         * lib/uniwidth/u8-width.c: Likewise.
46121         * lib/uniwidth/width.c: Likewise.
46122
46123 2007-10-07  Bruno Haible  <bruno@clisp.org>
46124
46125         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
46126         The file is still under LGPL (see modules/inttypes).
46127
46128 2007-10-06  Bruno Haible  <bruno@clisp.org>
46129
46130         * modules/trunc (Dependencies): Add 'extensions'.
46131         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
46132         Reported by Ben Pfaff <blp@gnu.org>.
46133
46134 2007-10-06  Bruno Haible  <bruno@clisp.org>
46135
46136         * modules/freopen-tests: New file.
46137         * tests/test-freopen.c: New file.
46138
46139         * modules/fopen-tests: New file.
46140         * tests/test-fopen.c: New file.
46141
46142         * modules/fopen: New file.
46143         * lib/fopen.c: New file.
46144         * m4/fopen.m4: New file.
46145         * modules/freopen: New file.
46146         * lib/freopen.c: New file.
46147         * m4/freopen.m4: New file.
46148         * lib/stdio.in.h (fopen, freopen): New declarations.
46149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
46150         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46151         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
46152         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
46153         * doc/functions/fopen.texi: Mention the 'fopen' module.
46154         * doc/functions/freopen.texi: Mention the 'freopen' module.
46155
46156 2007-10-06  Bruno Haible  <bruno@clisp.org>
46157
46158         * modules/open-tests: New file.
46159         * tests/test-open.c: New file.
46160
46161         * modules/open: New file.
46162         * lib/open.c: New file.
46163         * m4/open.m4: New file.
46164         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
46165         lib/open.c does.
46166         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
46167         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
46168         macros.
46169         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
46170         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
46171         REPLACE_OPEN.
46172         * doc/functions/open.texi: Mention the 'open' module.
46173
46174 2007-10-04  Bruno Haible  <bruno@clisp.org>
46175
46176         * modules/ceill-tests: New file.
46177         * tests/test-ceill.c: New file.
46178
46179         * modules/ceill: New file.
46180         * lib/ceill.c: Replace entire file.
46181         * m4/ceill.m4: New file.
46182         * lib/math.in.h (ceill): Replace declaration.
46183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
46184         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
46185         * doc/functions/ceill.texi: Mention the 'ceill' module.
46186         * modules/mathl (Files): Remove lib/ceill.c.
46187         (Depends-on): Add ceill.
46188
46189 2007-10-04  Bruno Haible  <bruno@clisp.org>
46190
46191         * modules/ceilf-tests: New file.
46192         * tests/test-ceilf.c: New file.
46193
46194         * modules/ceilf: New file.
46195         * lib/ceil.c: New file.
46196         * lib/ceilf.c: New file.
46197         * m4/ceilf.m4: New file.
46198         * lib/math.in.h (ceilf): New declaration.
46199         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
46200         HAVE_DECL_CEILF.
46201         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
46202         HAVE_DECL_CEILF.
46203         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
46204
46205 2007-10-04  Bruno Haible  <bruno@clisp.org>
46206
46207         * modules/floorl-tests: New file.
46208         * tests/test-floorl.c: New file.
46209
46210         * modules/floorl: New file.
46211         * lib/floorl.c: Replace entire file.
46212         * m4/floorl.m4: New file.
46213         * lib/math.in.h (floorl): Replace declaration.
46214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
46215         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
46216         * doc/functions/floorl.texi: Mention the 'floorl' module.
46217         * modules/mathl (Files): Remove lib/floorl.c.
46218         (Depends-on): Add floorl.
46219
46220 2007-10-04  Bruno Haible  <bruno@clisp.org>
46221
46222         * modules/floorf-tests: New file.
46223         * tests/test-floorf.c: New file.
46224
46225         * modules/floorf: New file.
46226         * lib/floor.c: New file.
46227         * lib/floorf.c: New file.
46228         * m4/floorf.m4: New file.
46229         * lib/math.in.h (floorf): New declaration.
46230         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
46231         HAVE_DECL_FLOORF.
46232         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
46233         HAVE_DECL_FLOORF.
46234         * doc/functions/floorf.texi: Mention the 'floorf' module.
46235
46236 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
46237             Bruno Haible  <bruno@clisp.org>
46238
46239         Advertise for the Git server instead of the CVS server.
46240         * doc/gnulib-intro.texi (Steady Development): Mention the Git
46241         repository instead of the CVS one.
46242         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
46243         about all VCS systems generically.
46244         * doc/gnulib.texi (Introduction): Capitalize `Git'.
46245
46246 2007-10-04  Bruno Haible  <bruno@clisp.org>
46247
46248         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
46249         means.
46250         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
46251
46252 2007-10-04  Bruno Haible  <bruno@clisp.org>
46253
46254         * modules/truncl-tests: New file.
46255         * tests/test-truncl.c: New file.
46256
46257         * modules/truncl: New file.
46258         * lib/truncl.c: New file.
46259         * m4/truncl.m4: New file.
46260         * lib/math.in.h (truncl): New declaration.
46261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
46262         HAVE_DECL_TRUNCL.
46263         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
46264         HAVE_DECL_TRUNCL.
46265         * doc/functions/truncl.texi: Mention the 'truncl' module.
46266
46267 2007-10-04  Bruno Haible  <bruno@clisp.org>
46268
46269         * modules/truncf-tests: New file.
46270         * tests/test-truncf.c: New file.
46271
46272         * modules/truncf: New file.
46273         * lib/trunc.c: Make paramerizable through USE_* macros.
46274         * lib/truncf.c: New file.
46275         * m4/truncf.m4: New file.
46276         * lib/math.in.h (truncf): New declaration.
46277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
46278         HAVE_DECL_TRUNCF.
46279         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
46280         HAVE_DECL_TRUNCF.
46281         * doc/functions/truncf.texi: Mention the 'truncf' module.
46282
46283 2007-10-03  Bruno Haible  <bruno@clisp.org>
46284
46285         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
46286         augmentation also for tests modules.
46287         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
46288         * modules/atexit-tests (Makefile.am): Likewise.
46289         * modules/binary-io-tests (Makefile.am): Likewise.
46290         * modules/c-strcase-tests (Makefile.am): Likewise.
46291         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
46292         * modules/canonicalize-tests (Makefile.am): Likewise.
46293         * modules/closein-tests (Makefile.am): Likewise.
46294         * modules/fprintf-posix-tests (Makefile.am): Likewise.
46295         * modules/freadahead-tests (Makefile.am): Likewise.
46296         * modules/fseek-tests (Makefile.am): Likewise.
46297         * modules/fseeko-tests (Makefile.am): Likewise.
46298         * modules/ftell-tests (Makefile.am): Likewise.
46299         * modules/ftello-tests (Makefile.am): Likewise.
46300         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
46301         * modules/isnanl-tests (Makefile.am): Likewise.
46302         * modules/lseek-tests (Makefile.am): Likewise.
46303         * modules/mbscasecmp-tests (Makefile.am): Likewise.
46304         * modules/mbscasestr-tests (Makefile.am): Likewise.
46305         * modules/mbschr-tests (Makefile.am): Likewise.
46306         * modules/mbscspn-tests (Makefile.am): Likewise.
46307         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
46308         * modules/mbspbrk-tests (Makefile.am): Likewise.
46309         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
46310         * modules/mbsrchr-tests (Makefile.am): Likewise.
46311         * modules/mbsspn-tests (Makefile.am): Likewise.
46312         * modules/mbsstr-tests (Makefile.am): Likewise.
46313         * modules/printf-posix-tests (Makefile.am): Likewise.
46314         * modules/snprintf-posix-tests (Makefile.am): Likewise.
46315         * modules/sprintf-posix-tests (Makefile.am): Likewise.
46316         * modules/tsearch-tests (Makefile.am): Likewise.
46317         * modules/uniname/uniname-tests (Makefile.am): Likewise.
46318         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
46319         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
46320         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
46321         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
46322         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
46323         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
46324         * modules/vprintf-posix-tests (Makefile.am): Likewise.
46325         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
46326         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
46327         * modules/xstrtoimax-tests (Makefile.am): Likewise.
46328         * modules/xstrtol-tests (Makefile.am): Likewise.
46329         * modules/xstrtoumax-tests (Makefile.am): Likewise.
46330         * modules/yesno-tests (Makefile.am): Likewise.
46331
46332 2007-10-03  Bruno Haible  <bruno@clisp.org>
46333
46334         * modules/trunc-tests: New file.
46335         * tests/test-trunc.c: New file.
46336
46337         * modules/trunc: New file.
46338         * lib/trunc.c: New file.
46339         * m4/trunc.m4: New file.
46340         * lib/math.in.h (trunc): New declaration.
46341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
46342         HAVE_DECL_TRUNC.
46343         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
46344         HAVE_DECL_TRUNC.
46345         * doc/functions/trunc.texi: Mention the 'trunc' module.
46346
46347 2007-10-03  Bruno Haible  <bruno@clisp.org>
46348
46349         * tests/test-fpending.c: New file, mostly copied
46350         from coreutils/lib/t-fpending.c.
46351         * modules/fpending-tests: New file.
46352
46353 2007-10-03  Bruno Haible  <bruno@clisp.org>
46354
46355         Port the stdio extensions to QNX (untested).
46356         * lib/fseterr.c (fseterr): Add support for QNX.
46357         * lib/fbufmode.c (fbufmode): Likewise.
46358         * lib/freadable.c (freadable): Likewise.
46359         * lib/fwritable.c (fwritable): Likewise.
46360         * lib/freading.c (freading): Likewise.
46361         * lib/fwriting.c (fwriting): Likewise.
46362         * lib/freadahead.c (freadahed): Likewise.
46363         * lib/fpurge.c (fpurge): Likewise.
46364         * lib/fseeko.c (rpl_fseeko): Likewise.
46365
46366 2007-10-03  Bruno Haible  <bruno@clisp.org>
46367             Jim Meyering  <jim@meyering.net>
46368             Eric Blake  <ebb9@byu.net>
46369
46370         * doc/relocatable.texi: Use @command instead of @program.
46371
46372 2007-10-02  Jim Meyering  <jim@meyering.net>
46373
46374         Perform one more "_.h" -> ".in.h" substitution.
46375         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
46376         instead of unistd_.h here, too.
46377
46378 2007-10-01  Bruno Haible  <bruno@clisp.org>
46379
46380         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
46381         Needed for the alloca-opt module.
46382
46383 2007-09-30  Bruno Haible  <bruno@clisp.org>
46384
46385         * lib/alloca.in.h: Renamed from lib/alloca_.h.
46386         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
46387         alloca_.h.
46388         * lib/argz.in.h: Renamed from lib/argz_.h.
46389         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
46390         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
46391         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
46392         byteswap_.h.
46393         * lib/dirent.in.h: Renamed from lib/dirent_.h.
46394         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
46395         dirent_.h.
46396         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
46397         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
46398         fcntl_.h.
46399         * lib/float.in.h: Renamed from lib/float_.h.
46400         * modules/float (Files, Makefile.am): Use float.in.h instead of
46401         float_.h.
46402         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
46403         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
46404         fnmatch_.h.
46405         * lib/getopt.in.h: Renamed from lib/getopt_.h.
46406         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
46407         getopt_.h.
46408         * lib/glob.in.h: Renamed from lib/glob_.h.
46409         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
46410         * lib/iconv.in.h: Renamed from lib/iconv_.h.
46411         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
46412         iconv_.h.
46413         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
46414         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
46415         inttypes_.h.
46416         * lib/locale.in.h: Renamed from lib/locale_.h.
46417         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
46418         locale_.h.
46419         * lib/math.in.h: Renamed from lib/math_.h.
46420         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
46421         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
46422         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
46423         of netinet_in_.h. Add dependency.
46424         * lib/poll.in.h: Renamed from lib/poll_.h.
46425         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
46426         * lib/search.in.h: Renamed from lib/search_.h.
46427         * modules/search (Files, Makefile.am): Use search.in.h instead of
46428         search_.h.
46429         * lib/signal.in.h: Renamed from lib/signal_.h.
46430         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
46431         _signal.h.
46432         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
46433         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
46434         stdbool_.h.
46435         * lib/stdint.in.h: Renamed from lib/stdint_.h.
46436         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
46437         stdint_.h.
46438         * lib/stdio.in.h: Renamed from lib/stdio_.h.
46439         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
46440         stdio_.h.
46441         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
46442         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
46443         stdlib_.h.
46444         * lib/string.in.h: Renamed from lib/string_.h.
46445         * modules/string (Files, Makefile.am): Use string.in.h instead of
46446         string_.h.
46447         * doc/gnulib-tool.texi (Initial import): Update.
46448         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
46449         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
46450         of sys_select_.h. Add dependency.
46451         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
46452         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
46453         of sys_socket_.h.
46454         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
46455         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
46456         sys_stat_.h.
46457         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
46458         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
46459         sys_time_.h.
46460         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
46461         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
46462         sysexits_.h.
46463         * lib/time.in.h: Renamed from lib/time_.h.
46464         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
46465         * lib/unistd.in.h: Renamed from lib/unistd_.h.
46466         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
46467         unistd_.h.
46468         * lib/wchar.in.h: Renamed from lib/wchar_.h.
46469         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
46470         wchar_.h.
46471         * lib/wctype.in.h: Renamed from lib/wctype_.h.
46472         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
46473         wctype_.h.
46474         * build-aux/bootstrap (slurp): Update.
46475         * lib/.cppi-disable: Update.
46476
46477 2007-09-30  Bruno Haible  <bruno@clisp.org>
46478
46479         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
46480         Needed on BeOS.
46481
46482 2007-09-30  Bruno Haible  <bruno@clisp.org>
46483
46484         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
46485
46486 2007-09-29  Bruno Haible  <bruno@clisp.org>
46487
46488         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
46489
46490 2007-09-29  Bruno Haible  <bruno@clisp.org>
46491
46492         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
46493         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
46494         * build-aux/install-reloc: Compile also areadlink.c.
46495         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
46496
46497 2007-09-29  Bruno Haible  <bruno@clisp.org>
46498
46499         * gnulib-tool (func_emit_initmacro_done): Indentation.
46500
46501 2007-09-29  Bruno Haible  <bruno@clisp.org>
46502
46503         * README: Add CVS checkout update instructions.
46504         Info from Bob Proulx <bob@proulx.com>.
46505
46506 2007-09-28  Eric Blake  <ebb9@byu.net>
46507
46508         Provide move-if-change.
46509         * build-aux/move-if-change: New file, based on best practice
46510         rather than any canonical upstream location.
46511
46512 2007-09-28  Jim Meyering  <jim@meyering.net>
46513
46514         Fix canonicalize loop-detection corner case.
46515         Do not attempt to stat the symlink values stored via seen_triple.
46516         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
46517         on linux-2.6.18, (but not 2.6.22).
46518         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
46519         triple_compare.  The former compares dev,ino,filename, while the latter
46520         would actually stat dirname(filename) when dev and ino were equal.
46521         * lib/hash-triple.c: Install <string.h>.
46522         (STREQ): Define.
46523         (triple_compare_ino_str): New function.
46524         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
46525
46526 2007-09-28  Eric Blake  <ebb9@byu.net>
46527
46528         Enforce that AC_REPLACE_FUNCS files exist.
46529         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
46530         override check for typos.
46531
46532         Fix test-closein on Solaris 10.
46533         * tests/test-closein.c (main): Don't assume stdin can be inherited
46534         closed on all systems.
46535         * tests/test-closein.sh: Likewise.
46536         Reported by Piotr Tarnowski.
46537
46538 2007-09-28  Jim Meyering  <jim@meyering.net>
46539
46540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
46541
46542 2007-09-27  Jim Meyering  <jim@meyering.net>
46543
46544         canonicalize: Avoid a false-positive cycle failure.
46545         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
46546         Sort.  Remove cycle-check.
46547         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
46548         not cycle-check.h.
46549         (seen_triple): New function.
46550         (canonicalize_filename_mode): Use it instead of cycle-check.
46551         * tests/test-canonicalize.c: Add a test for this bug.
46552         * tests/test-canonicalize.sh: Set up and run the test.
46553
46554         New module, file-set, from coreutils.
46555         * modules/file-set: Define it.
46556         * lib/file-set.c, lib/file-set.h: Implement.
46557
46558         New module, hash-triple, from coreutils.
46559         * modules/hash-triple: Define it.
46560         * lib/hash-triple.c, lib/hash-triple.h: Implement.
46561
46562 2007-09-25  Eric Blake  <ebb9@byu.net>
46563
46564         Fix strerror on Interix.
46565         * lib/string_.h (strerror): Declare replacement.
46566         * doc/functions/strerror.texi (strerror): Document the Interix
46567         shortcoming.
46568         * modules/string (Makefile.am): Support new hooks.
46569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
46570         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
46571         gl_FUNC_STRERROR_SEPARATE.
46572         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
46573         * lib/strerror.c (rpl_strerror): Provide replacement.
46574         * modules/strerror (Depends-on): Add string.
46575         (configure.ac): Detect use of module.
46576         * tests/test-strerror.c: New file.
46577         * modules/strerror-tests: New test module.
46578         * modules/argp (Depends-on): Add strerror.
46579         * modules/error (Depends-on): Likewise.
46580         Reported by Martin Koeppe.
46581
46582 2007-09-24  Bruno Haible  <bruno@clisp.org>
46583
46584         * README: Update git instructions.
46585
46586 2007-09-24  Eric Blake  <ebb9@byu.net>
46587
46588         Revert fpending breakage from 2007-09-08.
46589         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
46590         __fpending.c.
46591
46592 2007-09-24  Jim Meyering  <jim@meyering.net>
46593
46594         filenamecat.c: Add a test.
46595         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
46596         showing how the function works when DIR is the empty string.
46597
46598 2007-09-21  Simon Josefsson  <simon@josefsson.org>
46599
46600         * tests/test-canonicalize.sh: Turn on executable bit.
46601
46602 2007-09-19  Eric Blake  <ebb9@byu.net>
46603
46604         * README: Update CVS instructions.
46605
46606 2007-09-18  Bruno Haible  <bruno@clisp.org>
46607
46608         * modules/areadlink: New file.
46609         * lib/areadlink.h (areadlink): New declaration.
46610         * lib/areadlink.c: New file, based on lib/xreadlink.c.
46611
46612 2007-09-17  Jim Meyering  <jim@meyering.net>
46613
46614         * lib/savewd.c (ESTALE) [!defined]: Define.
46615         Reported to be required on Interix by Martin Koeppe.
46616
46617 2007-09-17  Bruno Haible  <bruno@clisp.org>
46618
46619         * gnulib-tool (func_version): Use $version.
46620
46621 2007-09-16  Bruno Haible  <bruno@clisp.org>
46622
46623         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
46624         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
46625         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
46626         Reported by Greg Schafer <gschafer@zip.com.au>.
46627
46628 2007-09-15  Bruno Haible  <bruno@clisp.org>
46629
46630         * gnulib-tool (sed): Try a little harder to make bash understand the
46631         alias.
46632         Reported by Bruce Korb <bruce.korb@gmail.com>.
46633
46634 2007-09-13  Eric Blake  <ebb9@byu.net>
46635
46636         * ChangeLog: Remove conflict markers.
46637
46638 2007-09-13  Simon Josefsson  <simon@josefsson.org>
46639
46640         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
46641         Reported by Bruno Haible <bruno@clisp.org>.
46642
46643 2007-09-12  Bruno Haible  <bruno@clisp.org>
46644
46645         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
46646         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
46647         is not defined.
46648
46649 2007-09-12  Eric Blake  <ebb9@byu.net>
46650
46651         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
46652         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
46653         Autoconf definition.
46654         * modules/euidaccess (Depends-on): Add extensions, for
46655         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
46656         * modules/fnmatch (Depends-on): Likewise.
46657         * modules/getaddrinfo (Depends-on): Likewise.
46658         * modules/getdelim (Depends-on): Likewise.
46659         * modules/getline (Depends-on): Likewise.
46660         * modules/getsubopt (Depends-on): Likewise.
46661         * modules/gettext (Depends-on): Likewise.
46662         * modules/group-member (Depends-on): Likewise.
46663         * modules/mbchar (Depends-on): Likewise.
46664         * modules/memmem (Depends-on): Likewise.
46665         * modules/mempcpy (Depends-on): Likewise.
46666         * modules/memrchr (Depends-on): Likewise.
46667         * modules/pagealign_alloc (Depends-on): Likewise.
46668         * modules/readutmp (Depends-on): Likewise.
46669         * modules/stpcpy (Depends-on): Likewise.
46670         * modules/stpncpy (Depends-on): Likewise.
46671         * modules/strchrnul (Depends-on): Likewise.
46672         * modules/strndup (Depends-on): Likewise.
46673         * modules/strsep (Depends-on): Likewise.
46674         * modules/strverscmp (Depends-on): Likewise.
46675         * modules/vasprintf (Depends-on): Likewise.
46676         * modules/wcwidth (Depends-on): Likewise.
46677         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
46678         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
46679         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
46680         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
46681         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
46682         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46683         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
46684         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
46685         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
46686         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
46687         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46688         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46690         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
46691         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
46692         * m4/readutmp.m4 (gl_READUTMP): Likewise.
46693         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46694         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46695         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46696         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46698         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46699         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46700         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
46701         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
46702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46703         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
46704         so that lock.m4 can be used in gettext without extensions module.
46705
46706 2007-09-11  Bruno Haible  <bruno@clisp.org>
46707
46708         * m4/isc-posix.m4: Remove file.
46709         Suggested by Eric Blake.
46710
46711 2007-09-11  Eric Blake  <ebb9@byu.net>
46712
46713         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
46714
46715 2007-09-10  Bruno Haible  <bruno@clisp.org>
46716
46717         * posix-modules: Fix typo in error message.
46718         Reported by Matt <mkraai@beckman.com>.
46719
46720 2007-09-09  Bruno Haible  <bruno@clisp.org>
46721
46722         * doc/functions/getdelim.texi: Update list of platforms lacking the
46723         function.
46724         * doc/functions/getline.texi: Likewise.
46725
46726 2007-09-09  Jim Meyering  <jim@meyering.net>
46727
46728         * lib/hash.c (hash_initialize): Detect calloc failure.
46729         Reported by Bruno Haible.
46730
46731 2007-09-09  Bruno Haible  <bruno@clisp.org>
46732
46733         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
46734         malloc or realloc fails.
46735
46736 2007-09-09  Bruno Haible  <bruno@clisp.org>
46737
46738         * modules/getcwd (Depends-on): Add malloc-posix.
46739         * modules/glob (Depends-on): Likewise.
46740         * modules/putenv (Depends-on): Likewise.
46741         * modules/strdup (Depends-on): Likewise.
46742         * modules/getdelim (Depends-on): Add realloc-posix.
46743         * modules/read-file (Depends-on): Likewise.
46744
46745 2007-09-09  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
46748         (gl_FUNC_MALLOC_POSIX): Require it.
46749         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
46750         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
46751         * modules/realloc (Files): Add m4/malloc.m4.
46752         * modules/calloc (Files): Likewise.
46753
46754 2007-09-09  Bruno Haible  <bruno@clisp.org>
46755
46756         * modules/malloc-posix: New file.
46757         * modules/malloc (Depends-on): Add malloc-posix.
46758         * lib/malloc.c: Include errno.h.
46759         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
46760         and a POSIX-compatible malloc into a single function. Set ENOMEM
46761         when returning NULL.
46762         * m4/malloc.m4: New file.
46763         * doc/functions/malloc.texi: Mention the malloc-posix module.
46764         * lib/stdlib_.h (malloc): New declaration.
46765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46766         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
46767         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
46768         and HAVE_MALLOC_POSIX.
46769
46770 2007-09-09  Bruno Haible  <bruno@clisp.org>
46771
46772         * modules/realloc-posix: New file.
46773         * modules/realloc (Depends-on): Add realloc-posix.
46774         * lib/realloc.c: Include errno.h.
46775         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
46776         and a POSIX-compatible realloc into a single function. Set ENOMEM
46777         when returning NULL.
46778         * m4/realloc.m4: New file.
46779         * doc/functions/realloc.texi: Mention the realloc-posix module.
46780         * lib/stdlib_.h (realloc): New declaration.
46781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46782         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
46783         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
46784         and HAVE_REALLOC_POSIX.
46785
46786 2007-09-09  Bruno Haible  <bruno@clisp.org>
46787
46788         * modules/calloc-posix: New file.
46789         * modules/calloc (Depends-on): Add calloc-posix.
46790         * lib/calloc.c: Include errno.h.
46791         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
46792         and a POSIX-compatible calloc into a single function. Set ENOMEM
46793         when returning NULL.
46794         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
46795         * doc/functions/calloc.texi: Mention the calloc-posix module.
46796         * lib/stdlib_.h (calloc): New declaration.
46797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
46798         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
46799         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
46800         and HAVE_CALLOC_POSIX.
46801
46802 2007-09-09  Bruno Haible  <bruno@clisp.org>
46803
46804         Allow for modules to show an arbitrary notice.
46805         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
46806         * gnulib-tool: New option --extract-notice.
46807         (func_usage): Document it.
46808         (sed_extract_prog): Update.
46809         (func_get_notice): New function.
46810         (func_modules_notice): New function.
46811         (func_import, func_create_testdir): Invoke it.
46812         Suggested by Jim Meyering.
46813
46814 2007-09-09  Bruno Haible  <bruno@clisp.org>
46815
46816         * gnulib-tool: New options --verbose, --quiet.
46817         (func_usage): Document them.
46818         (verbose): New variable.
46819         (func_execute_command): New function.
46820         (func_import): Don't show the module list and the file list if
46821         $verbose < 0.
46822         (func_create_testdir): Likewise. Use func_execute_command.
46823         (func_create_megatestdir): Use func_execute_command.
46824
46825 2007-09-08  Bruno Haible  <bruno@clisp.org>
46826
46827         * gnulib-tool (func_import): Prefer rsync over wget when available,
46828         for fetching the PO files.
46829
46830 2007-09-08  Bruno Haible  <bruno@clisp.org>
46831
46832         * posix-modules: New file. Portions copied from gnulib-tool.
46833         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
46834
46835 2007-09-08  Jim Meyering  <jim@meyering.net>
46836
46837         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
46838         * lib/fpending.h: Rename from __fpending.h.
46839         * lib/fpending.c: Rename from __fpending.c.
46840         Include "fpending.h", not "__fpending.h".
46841         * lib/__fpending.h, lib/__fpending.c: Remove files.
46842         * modules/fpending (Files): Reflect new file names.
46843         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
46844
46845 2007-09-08  Bruno Haible  <bruno@clisp.org>
46846
46847         * m4/inttypes-h.m4: Remove stub file.
46848
46849 2007-09-07  Simon Josefsson  <simon@josefsson.org>
46850
46851         * doc/headers/stdint.texi: Discuss #include_next issue.
46852
46853 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46854
46855         * build-aux/bootstrap: Remove obsolete comment about wget --help.
46856
46857 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46858
46859         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
46860         in variable name.
46861
46862 2007-09-03  Jim Meyering  <jim@meyering.net>
46863
46864         New module: git-version-gen.
46865         * modules/git-version-gen: New file.
46866
46867         Import changes from coreutils for bootstrap script.
46868
46869         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
46870
46871         bootstrap: uses rsync to download the .po files
46872         * build-aux/bootstrap (po_download_command_format): New global.
46873         (download_po_files): Use rsync.
46874         (update_po_files): Don't remove .po files after download,
46875         so future rsync runs can take advantage of the copies.
46876
46877         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
46878
46879         Solve the unnecessary-.po-file-regeneration problem once and for all.
46880         * build-aux/bootstrap (download_po_files): New function, renamed from
46881         get_translations.  Now, downloads, but doesn't update LINGUAS.
46882         (update_po_files): New function.
46883
46884         bootstrap: Ignore more.
46885         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
46886         uniwidth to e.g., lib/.gitignore.
46887         (slurp): Handle the sys_stat_.h -> sys mapping, too.
46888
46889         * build-aux/bootstrap: New setting: vc_ignore.
46890         (insert_sorted_if_absent): Create $file if absent.
46891         Adapt to new, possibly empty, list: $vc_ignore.
46892
46893         bootstrap: generate more ignorable names
46894         * build-aux/bootstrap (slurp): When generating ignorable names,
46895         also map .sin to .sed, .gperf to .c, and .y to .c.
46896
46897 2007-09-03  Jim Meyering  <jim@meyering.net>
46898
46899         * build-aux/git-version-gen: New file, from coreutils.  For details, see
46900         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
46901
46902 2007-09-02  Bruno Haible  <bruno@clisp.org>
46903
46904         Fix mis-recognition of 'mcs' on QNX 6.
46905         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
46906         output contains the string "Mono".
46907         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
46908         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
46909
46910 2007-09-01  Bruno Haible  <bruno@clisp.org>
46911
46912         Fix collision between uniwidth/* and linebreak modules.
46913         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
46914         u32_width): Remove declarations.
46915         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
46916         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
46917         streq3, streq2, streq1, streq0): Remove functions.
46918         (STREQ): Remove macro.
46919         (is_cjk_encoding): Remove function.
46920         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
46921         (uc_width, u8_width, u16_width, u32_width): Remove functions.
46922         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
46923         * NEWS: Document the change.
46924
46925 2007-09-01  Bruno Haible  <bruno@clisp.org>
46926
46927         * lib/streq.h: Add double-inclusion guard.
46928
46929 2007-09-01  Karl Berry  <karl@gnu.org>
46930
46931         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
46932
46933 2007-08-28  Jim Meyering  <jim@meyering.net>
46934
46935         Rename mreadlink_with_size to areadlink_with_size.
46936         * NEWS: Document the change.
46937         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
46938         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
46939         * lib/mreadlink.h: Rename this to...
46940         * lib/areadlink.h: ...this.
46941         * modules/mreadlink-with-size: Rename this to...
46942         * modules/areadlink-with-size: ...this.
46943         * lib/canonicalize.c: Reflect the renaming.
46944         * modules/canonicalize: Likewise.
46945
46946 2007-08-26  Bruno Haible  <bruno@clisp.org>
46947
46948         * gnulib-tool (func_import): When deciding which files to remove,
46949         consider also dangling symbolic links.
46950         Reported by Eric Blake.
46951
46952 2007-08-26  Bruno Haible  <bruno@clisp.org>
46953
46954         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
46955
46956 2007-08-23  Simon Josefsson  <simon@josefsson.org>
46957
46958         * lib/readline.c: Don't include getline.h, the prototype is now
46959         found in stdio.h.
46960
46961 2007-08-23  Jim Meyering  <jim@meyering.net>
46962
46963         Getdelim touchup.
46964         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
46965         around the funlockfile call, since funlockfile never sets errno.
46966         Don't set errno upon failed realloc.
46967
46968 2007-08-22  Eric Blake  <ebb9@byu.net>
46969
46970         Getline touchups.
46971         * lib/getdelim.c (getdelim): Revert regression that required *n to
46972         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
46973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
46974         getdelim, rather than whether implementation is missing.
46975         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
46976         * lib/stdio_.h (getline): Also declare if replacement is
46977         required.
46978         * doc/functions/getdelim.texi: New file.
46979         * doc/functions/getline.texi: Likewise.
46980         * doc/gnulib.texi (Function Substitutes): Add new files.
46981         Reported by Bruno Haible.
46982
46983 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
46984
46985         * users.txt: Add Guile.
46986
46987 2007-08-22  Eric Blake  <ebb9@byu.net>
46988
46989         * tests/test-getdelim.c (main): Use remove, not unlink.
46990         * tests/test-getline.c (main): Likewise.
46991
46992         Move getline and getdelim into stdio.h, per POSIX 200x.
46993         * modules/getline (Files): Remove getline.h.
46994         (Depends-on): Add stdio.
46995         (configure.ac): Add module indicator.
46996         * modules/getdelim (Files): Remove getdelim.h.
46997         (Depends-on): Add stdio.
46998         (configure.ac): Add module indicator.
46999         * modules/stdio (Makefile.am): Work with new indicators.
47000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
47001         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
47002         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47003         * lib/getdelim.h: Delete.
47004         * lib/getline.h: Delete.
47005         * lib/stdio_.h (getdelim, getline): Declare.
47006         * modules/getdelim-tests: New module.
47007         * modules/getline-tests: Likewise.
47008         * tests/test-getdelim.c: New file.
47009         * tests/test-getline.c: Likewise.
47010         * NEWS: Document the change.
47011         * lib/getline.c: Update choice of header.
47012         * lib/csharpcomp.c: Likewise.
47013         * lib/getpass.c: Likewise.
47014         * lib/javacomp.c: Likewise.
47015         * lib/javaversion.c: Likewise.
47016         * lib/yesno.c: Likewise.
47017         * lib/getdelim.c: Likewise.
47018         (getdelim): Set errno on failure, and avoid memory leak.
47019
47020 2007-08-19  Bruno Haible  <bruno@clisp.org>
47021
47022         * modules/closein (Depends-on): Add freadahead.
47023         * lib/closein.c: Include freadahead.h.
47024         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
47025         is zero.
47026
47027 2007-08-19  Bruno Haible  <bruno@clisp.org>
47028
47029         * modules/freadahead-tests: New file.
47030         * tests/test-freadahead.sh: New file.
47031         * tests/test-freadahead.c: New file.
47032
47033         * modules/freadahead: New file.
47034         * lib/freadahead.h: New file.
47035         * lib/freadahead.c: New file.
47036         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
47037         fbufmode, fpurge, freadable, fwritable.
47038
47039 2007-08-19  Eric Blake  <ebb9@byu.net>
47040
47041         Test yesno in combination with closein.
47042         * lib/yesno.c (yesno): Document use of stdin.
47043         * modules/yesno-tests (Files): New module.
47044         * tests/test-yesno.c (main): New file.
47045         * tests/test-yesno.sh: Likewise.
47046
47047 2007-08-19  Bruno Haible  <bruno@clisp.org>
47048
47049         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
47050         * lib/fseeko.c (rpl_fseeko): Likewise.
47051         * lib/fseterr.c (fseterr): Likewise.
47052
47053 2007-08-19  Bruno Haible  <bruno@clisp.org>
47054
47055         * tests/test-lseek.c (main): Disable a test for BeOS.
47056         * doc/functions/lseek.texi: Document the BeOS bug.
47057
47058 2007-08-19  Bruno Haible  <bruno@clisp.org>
47059             Eric Blake  <ebb9@byu.net>
47060
47061         * lib/lseek.c: Include <sys/stat.h>.
47062         (rpl_lseek): Add workaround code also for Unix platforms.
47063         Needed for BeOS.
47064         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
47065         * doc/functions/lseek.texi: Document BeOS definiency.
47066
47067 2007-08-18  Bruno Haible  <bruno@clisp.org>
47068
47069         * modules/fstrcmp-tests: New file.
47070         * tests/test-fstrcmp.c: New file.
47071
47072 2007-08-18  Bruno Haible  <bruno@clisp.org>
47073
47074         * modules/fstrcmp: New file, from GNU gettext with modifications.
47075         * lib/fstrcmp.h: New file, from GNU gettext.
47076         * lib/fstrcmp.c: New file, from GNU gettext.
47077         * MODULES.html.sh (String handling): Add fstrcmp.
47078
47079 2007-08-18  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
47082         'bool'.
47083         (diag, compareseq): Remove const from the ctxt argument.
47084         (USE_HEURISTIC): Undefine at the end.
47085
47086 2007-08-18  Jim Meyering  <jim@meyering.net>
47087
47088         New file: lib/idcache.h
47089         * NEWS: Mention the addition.
47090         * modules/idcache (Files): Add lib/idcache.h
47091         * lib/idcache.c: Include "idcache.h".
47092         Don't include <sys/types.h>.
47093         Add a FIXME comment.
47094         Move file-scoped "static" declarations to the top.
47095         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
47096
47097 2007-08-17  Bruno Haible  <bruno@clisp.org>
47098         and Paul Eggert  <eggert@cs.ucla.edu>
47099
47100         * MODULES.html.sh: Add diffseq.
47101         * modules/diffseq: New file.
47102         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
47103         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
47104
47105 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47106
47107         Import changes from coreutils for bootstrap script.
47108
47109         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
47110
47111         * build-aux/bootstrap (slurp): Work even in environments where
47112         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
47113         current code does not slurp files whose names start with ".", and
47114         this looks like it might be a troublesome area.
47115
47116         2007-07-11  Jim Meyering  <jim@meyering.net>
47117
47118         If there's a GPL vN copyright comment, require that N == 3.
47119
47120         2007-07-08  Jim Meyering  <jim@meyering.net>
47121
47122         Run the coreutils-specific code only if tests/Makefile.am.in exists.
47123         * build-aux/bootstrap (mam_template): Move definition out of loop.
47124
47125         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
47126
47127         * build-aux/bootstrap (symlink_to_dir): Rename function from
47128         symlink_to_gnulib.  Add a directory parameter.  Update all
47129         callers.
47130         (cp_mark_as_generated): Also check for -- and link to -- files in
47131         gl/.
47132
47133         2007-07-08  Jim Meyering  <jim@meyering.net>
47134
47135         Adapt to deeper hierarchy in gnulib.
47136         * build-aux/bootstrap (symlink_to_dir): If the destination
47137         directory doesn't exist, create it. This is required at least for
47138         "lib/uniwidth/cjk.h".
47139
47140         2007-05-15  Jim Meyering  <jim@meyering.net>
47141
47142         * build-aux/bootstrap: Now that generated Makefile.am files
47143         are no longer under version control, they must be created at
47144         bootstrap time.
47145
47146 2007-08-14  Ben Pfaff  <blp@gnu.org>
47147
47148         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
47149
47150 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
47151
47152         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
47153         given the changes below.
47154         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
47155         even on hosts that have padding bits beyond the supported 64.
47156
47157 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
47158
47159         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
47160         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
47161         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
47162         depends on it.
47163         (xstrtol_error): Remove.
47164         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
47165         but with a different signature.
47166         (ATTRIBUTE_NORETURN, __attribute__): New macros.
47167         * lib/xstrtol-error.c: Include exitfail.h.
47168         (xstrtol_fatal): New function, with a different signature from the
47169         old xstrtol_error, so that the caller need not worry about passing
47170         in an exit status, or about storage management of the option argument.
47171         (xstrtol_error): Now a static function.  Redo signature to
47172         implement xstrtol_fatal.  Output the correct number of hyphens in
47173         front of the option so that the caller need not worry about
47174         storage management.
47175         (N_): New macro.
47176         (_): Remove; not used now.
47177         * modules/xstrtol: Depend on getopt.
47178         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
47179         of old STRTOL_FATAL_ERROR macro.
47180         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
47181         of test program.
47182         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
47183         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
47184
47185 2007-08-08  Eric Blake  <ebb9@byu.net>
47186
47187         * lib/xstrtol-error.c: Add missing include.
47188
47189         Move xstrtol messages into gnulib domain, when --pobase is used.
47190         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
47191         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
47192         * modules/xstrtol (Files): Distribute new file.
47193         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
47194         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
47195         * tests/test-xstrtol.c: ...into new file.
47196         * tests/test-xstrtoul.c: Also test xstrtoul.
47197         * tests/test-xstrtoimax.c: Also test xstrtoimax.
47198         * tests/test-xstrtoumax.c: Also test xstrtoumax.
47199         * tests/test-xstrtol.sh: Drive the tests.
47200         * tests/test-xstrtoimax.sh: Likewise.
47201         * tests/test-xstrtoumax.sh: Likewise.
47202         * modules/xstrtol-tests: New module.
47203         * modules/xstrtoimax-tests: Likewise.
47204         * modules/xstrtoumax-tests: Likewise.
47205
47206 2007-08-08  Jim Meyering  <jim@meyering.net>
47207
47208         New function: mfile_name_concat.
47209         * lib/filenamecat.c (mfile_name_concat): New function, just like
47210         file_name_concat, but return NULL upon failure rather than exiting
47211         with a diagnostic.
47212         * lib/filenamecat.h: Declare it.
47213
47214 2007-08-07  Bruno Haible  <bruno@clisp.org>
47215
47216         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
47217         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
47218         warning from gcc.
47219         Reported by Eric Blake.
47220
47221 2007-08-07  Simon Josefsson  <simon@josefsson.org>
47222
47223         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
47224         * modules/crypto/arcfour (License): Likewise.
47225         * modules/crypto/des-tests (License): Likewise.
47226         * modules/crypto/gc-arctwo-tests (License): Likewise.
47227         * modules/crypto/gc-des-tests (License): Likewise.
47228         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
47229         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
47230         * modules/crypto/gc-md2-tests (License): Likewise.
47231         * modules/crypto/gc-md4-tests (License): Likewise.
47232         * modules/crypto/gc-md5-tests (License): Likewise.
47233         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
47234         * modules/crypto/gc-rijndael-tests (License): Likewise.
47235         * modules/crypto/gc-sha1-tests (License): Likewise.
47236         * modules/crypto/gc-tests (License): Likewise.
47237         * modules/crypto/hmac-md5 (License): Likewise.
47238         * modules/crypto/hmac-sha1 (License): Likewise.
47239         * modules/crypto/md2-tests (License): Likewise.
47240         * modules/crypto/md4-tests (License): Likewise.
47241         * modules/crypto/md5 (License): Likewise.
47242         * modules/crypto/rijndael (License): Likewise.
47243         * modules/crypto/sha1 (License): Likewise.
47244         * modules/memxor (License): Likewise.
47245
47246 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
47247         and Bruno Haible  <bruno@clisp.org>
47248
47249         * NEWS: Describe interface changes to human, xstrtol.
47250         * lib/human.h: Include <xstrtol.h>.
47251         (human_options): Return enum strtol_error, not int.  Remove
47252         bool arg; take int * instead.
47253         * lib/human.c: Don't include "gettext.h".
47254         (_): Remove; no longer used.
47255         Don't include <xstrtol.h>, since human.h does it.
47256         (human_options): Adjust to abovementioned interface changes.
47257         Do not report error to stderr; that's now the caller's
47258         responsibility.
47259         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
47260         interface change.
47261         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
47262         Str, Argument_type_string.  All uses changed.  Put " argument"
47263         in diagnostics to make them clearer.  Change wording of suffix
47264         message for clarity.
47265         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
47266         Argument_type_string.
47267         (STRTOL_FATAL_WARN): Remove; no longer used.
47268         * modules/human (Depends-on): Remove gettext-h.
47269
47270 2007-08-06  Simon Josefsson  <simon@josefsson.org>
47271
47272         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
47273
47274 2007-07-31  Bruno Haible  <bruno@clisp.org>
47275
47276         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
47277         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
47278         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
47279
47280 2007-07-31  Bruno Haible  <bruno@clisp.org>
47281
47282         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
47283         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
47284
47285 2007-07-30  Bruno Haible  <bruno@clisp.org>
47286
47287         * modules/base64 (License): Use the synonymous term "LGPLv2+".
47288         * modules/c-ctype (License): Likewise.
47289         * modules/c-strcase (License): Likewise.
47290         * modules/check-version (License): Likewise.
47291         * modules/iconv (License): Likewise.
47292         * modules/iconv_open (License): Likewise.
47293         * modules/read-file (License): Likewise.
47294         * modules/striconv (License): Likewise.
47295         * modules/strverscmp (License): Likewise.
47296         * modules/vasprintf (License): Likewise.
47297         * modules/crypto/des (License): Likewise.
47298         * modules/crypto/gc (License): Likewise.
47299         * modules/crypto/gc-arcfour (License): Likewise.
47300         * modules/crypto/gc-arctwo (License): Likewise.
47301         * modules/crypto/gc-des (License): Likewise.
47302         * modules/crypto/gc-hmac-md5 (License): Likewise.
47303         * modules/crypto/gc-hmac-sha1 (License): Likewise.
47304         * modules/crypto/gc-md2 (License): Likewise.
47305         * modules/crypto/gc-md4 (License): Likewise.
47306         * modules/crypto/gc-md5 (License): Likewise.
47307         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
47308         * modules/crypto/gc-random (License): Likewise.
47309         * modules/crypto/gc-rijndael (License): Likewise.
47310         * modules/crypto/gc-sha1 (License): Likewise.
47311         * modules/crypto/md2 (License): Likewise.
47312         * modules/crypto/md4 (License): Likewise.
47313
47314 2007-07-30  Jim Meyering  <jim@meyering.net>
47315
47316         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
47317         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
47318         it has valid stat data.  This bug would cause du not to count the
47319         sizes of inaccessible directories.
47320         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
47321         in <http://bugzilla.redhat.com/250077>.
47322
47323 2007-07-25  Peter O'Gorman  <peter@pogma.com>
47324             Bruno Haible  <bruno@clisp.org>
47325
47326         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
47327         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
47328         #include_next, gives a diagnostic about it, but reports no error in
47329         the exit code.
47330         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
47331
47332 2007-07-24  Ben Pfaff  <blp@gnu.org>
47333
47334         Improve name: "count-one-bits" is better than "popcount".
47335         * MODULES.html.sh: Update name.
47336         * lib/popcount.h: Renamed lib/count-one-bits.h.
47337         (popcount): Renamed count_one_bits.
47338         (popcountl): Renamed count_one_bits_l.
47339         (popcountll): Renamed count_one_bits_ll.
47340         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
47341         * modules/popcount: Renamed module/count-one-bits.
47342         * modules/popcount-tests: Renamed module/count-one-bits-tests.
47343         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
47344
47345 2007-07-23  Ben Pfaff  <blp@gnu.org>
47346
47347         * lib/popcount.h (popcount32): Reduce size of constants, to allow
47348         better code generation, and add U to large constants to avoid
47349         warnings, in non-GCC case.
47350         Suggested by Bruno Haible.
47351
47352 2007-07-23  Ben Pfaff  <blp@gnu.org>
47353
47354         * lib/popcount.h: Use verify_true instead of if...abort.
47355         * modules/popcount: Depend on verify module.
47356         Suggested by Jim Meyering.
47357
47358 2007-07-23  Bruno Haible  <bruno@clisp.org>
47359
47360         * gnulib-tool (func_import): Create a .cvsignore file also when the
47361         directory is not yet in CVS but the toplevel directory is. When
47362         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
47363         Reported by Karl Berry.
47364
47365 2007-07-22  Ben Pfaff  <blp@gnu.org>
47366
47367         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
47368         case.
47369         Suggested by Eric Blake.
47370
47371 2007-07-22  Ben Pfaff  <blp@gnu.org>
47372
47373         New module: popcount.
47374         * MODULES.html.sh: Add popcount.
47375         * modules/popcount: New file.
47376         * modules/popcount-tests: New file.
47377         * tests/test-popcount.c: New file.
47378         * lib/popcount.h: New file.
47379         * m4/popcount.m4: New file.
47380
47381 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
47382
47383         * build-aux/announce-gen: Update to GPLv3.
47384
47385         * build-aux/config.guess: Update from config.
47386
47387 2007-07-21  Bruno Haible  <bruno@clisp.org>
47388
47389         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
47390         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
47391
47392 2007-07-20  Jim Meyering  <jim@meyering.net>
47393
47394         * check-module: Diagnose a self-dependency.
47395
47396 2007-07-19  Bruno Haible  <bruno@clisp.org>
47397
47398         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
47399         empty.
47400         Reported by Eric Blake.
47401
47402 2007-07-18  Bruno Haible  <bruno@clisp.org>
47403
47404         * gnulib-tool: New options --po-base, --po-domain.
47405         (func_usage): Document them.
47406         (pobase, po_domain): New variables.
47407         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
47408         DEFAULT_TEXT_DOMAIN.
47409         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
47410         (func_import): Consider pobase and po_domain. Create a po/ directory.
47411         (func_create_testdir): Set pobase and po_domain to empty.
47412         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
47413         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
47414
47415 2007-07-18  Bruno Haible  <bruno@clisp.org>
47416
47417         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47418         EXTRA_DIST augmentation for files in build-aux/.
47419
47420 2007-07-16  Bruno Haible  <bruno@clisp.org>
47421
47422         * modules/lseek (License): Use the synonymous term "LGPLv2+".
47423         * modules/getdelim (License): Likewise.
47424
47425 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47426
47427         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
47428         * modules/d-type (License): Likewise.
47429         * modules/extensions (License): Likewise.
47430         * modules/fnmatch (License): Likewise.
47431         * modules/fseeko (License): Likewise.
47432         * modules/getaddrinfo (License): Likewise.
47433         * modules/getline (License): Likewise.
47434         * modules/getlogin_r (License): Likewise.
47435         * modules/getpass (License): Likewise.
47436         * modules/gettimeofday (License): Likewise.
47437         * modules/glob (License): Likewise.
47438         * modules/inet_ntop (License): Likewise.
47439         * modules/malloc (License): Likewise.
47440         * modules/malloca (License): Likewise.
47441         * modules/memmem (License): Likewise.
47442         * modules/mempcpy (License): Likewise.
47443         * modules/memset (License): Likewise.
47444         * modules/minmax (License): Likewise.
47445         * modules/mktime (License): Likewise.
47446         * modules/netinet_in (License): Likewise.
47447         * modules/pathmax (License): Likewise.
47448         * modules/poll (License): Likewise.
47449         * modules/regex (License): Likewise.
47450         * modules/snprintf (License): Likewise.
47451         * modules/stdbool (License): Likewise.
47452         * modules/stdint (License): Likewise.
47453         * modules/stdio (License): Likewise.
47454         * modules/strcase (License): Likewise.
47455         * modules/strcasestr (License): Likewise.
47456         * modules/strdup (License): Likewise.
47457         * modules/string (License): Likewise.
47458         * modules/strndup (License): Likewise.
47459         * modules/strnlen (License): Likewise.
47460         * modules/strpbrk (License): Likewise.
47461         * modules/strptime (License): Likewise.
47462         * modules/strsep (License): Likewise.
47463         * modules/sys_select (License): Likewise.
47464         * modules/sys_socket (License): Likewise.
47465         * modules/sys_stat (License): Likewise.
47466         * modules/sys_time (License): Likewise.
47467         * modules/time (License): Likewise.
47468         * modules/time_r (License): Likewise.
47469         * modules/timegm (License): Likewise.
47470         * modules/unistd (License): Likewise.
47471         * modules/vsnprintf (License): Likewise.
47472         * modules/wctype (License): Likewise.
47473
47474 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47475
47476         * modules/argz (License): LGPLv2+.
47477
47478 2007-07-15  Karl Berry  <karl@gnu.org>
47479
47480         * doc/gnulib.texi: revise node structure per new fdl.texi.
47481
47482 2007-07-14  Bruno Haible  <bruno@clisp.org>
47483
47484         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
47485         the output file.
47486         * lib/uniname/uninames.h: Regenerated.
47487
47488 2007-07-14  Karl Berry  <karl@gnu.org>
47489
47490         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
47491         omitting sectioning and index commands.
47492
47493 2007-07-13  Bruno Haible  <bruno@clisp.org>
47494
47495         New gnulib-tool option --more-symlinks.
47496         * gnulib-tool (func_usage): Document --more-symlinks.
47497         (do_copyrights): New variable.
47498         Recognize option --more-symlinks.
47499         (func_import): Don't add a copyright notice transform to
47500         sed_transform_lib_file if do_copyrights is empty.
47501
47502 2007-07-13  Bruno Haible  <bruno@clisp.org>
47503
47504         * lib/vasnprintf.c (decimal_point_char): Define also if
47505         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
47506         && !NEED_PRINTF_DIRECTIVE_A.
47507         Reported by Clemens Koller <clemens.koller@anagramm.de> via
47508         Gary V. Vaughan <gary@gnu.org>.
47509
47510 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
47511
47512         * lib/inttypes_.h: Undo previous change, since it was fixed
47513         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
47514
47515 2007-07-13  Bruno Haible  <bruno@clisp.org>
47516
47517         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
47518         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
47519
47520 2007-07-13  Jim Meyering  <jim@meyering.net>
47521
47522         df: Don't fail for Tru64's "file-on-file mount".
47523         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
47524         so we fall through and use statfs instead.  Details here:
47525         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
47526         Reported by Albert Chin.
47527
47528 2007-07-13  Bruno Haible  <bruno@clisp.org>
47529
47530         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
47531         * modules/configmake (License): Likewise.
47532         * modules/gettext (License): Likewise.
47533         * modules/gettext-h (License): Likewise.
47534         * modules/include_next (License): Likewise.
47535         * modules/link-warning (License): Likewise.
47536         * modules/localcharset (License): Likewise.
47537         * modules/localename (License): Likewise.
47538         * modules/lock (License): Likewise.
47539         * modules/relocatable-lib-lgpl (License): Likewise.
47540         * modules/size_max (License): Likewise.
47541         * modules/vasnprintf (License): Likewise.
47542         * modules/wchar (License): Likewise.
47543         * modules/xsize (License): Likewise.
47544
47545 2007-07-13  Bruno Haible  <bruno@clisp.org>
47546
47547         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
47548         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
47549
47550 2007-07-12  Bruno Haible  <bruno@clisp.org>
47551
47552         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
47553         in the modules files.
47554
47555 2007-07-11  Karl Berry  <karl@gnu.org>
47556
47557         * MODULES.html.sh (func_module): use
47558          sed -e '\|^'"${includefile}"'$|d'
47559          instead of /.../d, to avoid errors on $includefile's containing /.
47560
47561 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47562
47563         * gnulib-tool (func_import): Avoid duplication of --avoid
47564         statements
47565         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
47566         names to `_' in variable names.
47567
47568 2007-07-10  Eric Blake  <ebb9@byu.net>
47569
47570         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
47571         * NEWS: Document this change.
47572
47573 2007-07-08  Bruno Haible  <bruno@clisp.org>
47574
47575         Update to Unicode 5.0.
47576         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
47577         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
47578         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
47579         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
47580         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
47581         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
47582         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
47583         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
47584         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
47585         U+10A3F, U+1D242..U+1D244.
47586         (nonspacing_table_ind): Update.
47587         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
47588         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
47589
47590 2007-07-08  Bruno Haible  <bruno@clisp.org>
47591
47592         Update to Unicode 5.0.
47593         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
47594         code transform. Extend the name index field of unicode_name_to_code and
47595         unicode_code_to_name from 16 to 24 bits.
47596         * lib/uniname/uniname.c (unicode_character_name,
47597         unicode_name_character): Add the range 0x12xxx to the code transform.
47598         * lib/uniname/uninames.h: Regenerated.
47599         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
47600
47601 2007-07-07  Bruno Haible  <bruno@clisp.org>
47602
47603         * modules/wcwidth-tests: New file.
47604         * tests/test-wcwidth.c: New file.
47605
47606         Work around MacOS X wcwidth() bug.
47607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
47608         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
47609         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
47610         original wcwidth in non-UTF-8 locales.
47611         * modules/wcwidth (Depends-on): Add localcharset, streq,
47612         uniwidth/width.
47613         * doc/functions/wcwidth.texi: Update.
47614
47615 2007-07-07  Bruno Haible  <bruno@clisp.org>
47616
47617         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
47618         (wcwidth): New declaration.
47619         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
47620         macros.
47621         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
47622         here. Prepare for creating <wchar.h> unconditionally.
47623         * modules/wchar (Depends-on): Add link-warning.
47624         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
47625         REPLACE_WCWIDTH, and GL_LINK_WARNING.
47626         * lib/wcwidth.h: Remove file.
47627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
47628         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
47629         * modules/wcwidth (Files): Remove lib/wcwidth.h.
47630         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
47631         (Include): Replace wcwidth.h with <wchar.h>.
47632         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
47633         * lib/mbchar.h: Don't include wcwidth.h.
47634         * lib/mbswidth.c: Likewise.
47635         * NEWS: Mention the change.
47636
47637 2007-07-07  Bruno Haible  <bruno@clisp.org>
47638
47639         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
47640         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
47641         definition with an external declaration.
47642         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
47643         defined as a function. Remove AC_C_INLINE requirement.
47644         * modules/wcwidth (Files): Add lib/wcwidth.c.
47645         (Makefile.am): Remove redundant statement.
47646
47647 2007-07-07  Bruno Haible  <bruno@clisp.org>
47648
47649         * MODULES.html.sh (Unicode string functions): Add the new modules.
47650
47651         * tests/uniwidth/test-u32-strwidth.c: New file.
47652         * modules/uniwidth/u32-strwidth-tests: New file.
47653
47654         * lib/uniwidth/u32-strwidth.c: New file.
47655         * modules/uniwidth/u32-strwidth: New file.
47656
47657         * tests/uniwidth/test-u16-strwidth.c: New file.
47658         * modules/uniwidth/u16-strwidth-tests: New file.
47659
47660         * lib/uniwidth/u16-strwidth.c: New file.
47661         * modules/uniwidth/u16-strwidth: New file.
47662
47663         * tests/uniwidth/test-u8-strwidth.c: New file.
47664         * modules/uniwidth/u8-strwidth-tests: New file.
47665
47666         * lib/uniwidth/u8-strwidth.c: New file.
47667         * modules/uniwidth/u8-strwidth: New file.
47668
47669         * tests/uniwidth/test-u32-width.c: New file.
47670         * modules/uniwidth/u32-width-tests: New file.
47671
47672         * lib/uniwidth/u32-width.c: New file.
47673         * modules/uniwidth/u32-width: New file.
47674
47675         * tests/uniwidth/test-u16-width.c: New file.
47676         * modules/uniwidth/u16-width-tests: New file.
47677
47678         * lib/uniwidth/u16-width.c: New file.
47679         * modules/uniwidth/u16-width: New file.
47680
47681         * tests/uniwidth/test-u8-width.c: New file.
47682         * modules/uniwidth/u8-width-tests: New file.
47683
47684         * lib/uniwidth/u8-width.c: New file.
47685         * modules/uniwidth/u8-width: New file.
47686
47687         * tests/uniwidth/test-uc_width.c: New file.
47688         * modules/uniwidth/width-tests: New file.
47689
47690         * lib/uniwidth/width.c: New file, from GNU libiconv.
47691         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
47692         * modules/uniwidth/width: New file.
47693
47694         * lib/uniwidth.h: New file, from GNU libiconv.
47695         * modules/uniwidth/base: New file.
47696
47697 2007-07-07  Bruno Haible  <bruno@clisp.org>
47698
47699         * lib/uniname.h: New file, from GNU gettext.
47700         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
47701         * lib/uniname/uninames.h: New file, from GNU gettext.
47702         * lib/uniname/uniname.c: New file, from GNU gettext.
47703         * tests/uniname/test-uninames.sh: New file.
47704         * tests/uniname/test-uninames.c: New file, from GNU gettext.
47705         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
47706         * modules/uniname/base: New file.
47707         * modules/uniname/uniname: New file.
47708         * modules/uniname/uniname-tests: New file.
47709         * MODULES.html.sh (Unicode string functions): Add the new modules.
47710
47711 2007-07-06  Bruno Haible  <bruno@clisp.org>
47712
47713         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
47714
47715 2007-07-06  Bruno Haible  <bruno@clisp.org>
47716
47717         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
47718         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
47719         includes <cygwin/sys_time.h> which includes <sys/select.h> which
47720         include <sys/time.h>.
47721         Reported by Eric Blake.
47722
47723 2007-07-06  Eric Blake  <ebb9@byu.net>
47724
47725         Fix testing canonicalize on cygwin.
47726         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
47727         Revert patch from 2007-06-19.
47728         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
47729         canonicalize module is also in use.
47730         * tests/test-canonicalize.c: New file.
47731         * tests/test-canonicalize.sh: Likewise.
47732         * modules/canonicalize-tests: Likewise.
47733
47734 2007-07-06  Jim Meyering  <jim@meyering.net>
47735
47736         * lib/getugroups.c (getugroups): Detect getgrent failure.
47737         Adjust comment to reflect reality: this function may return -1.
47738
47739 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
47740
47741         * build-aux/bootstrap (TP_URL,get_translations): Update to use
47742         the new TP address.
47743         (usage): Fix typo
47744         (gnulib_mk): New variable.
47745
47746 2007-07-05  Jim Meyering  <jim@meyering.net>
47747
47748         Don't let endgrent clobber errno, no matter how improbable.
47749         * lib/getugroups.c (getugroups): Save and restore errno around
47750         endgrent call.
47751
47752         Close the group DB even when failing with 2^31 or more members.
47753         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
47754
47755 2007-07-04  Jim Meyering  <jim@meyering.net>
47756
47757         * lib/getugroups.h: New file.
47758         * lib/getugroups.c: Include "getugroups.h".
47759         Remove uses of "register" keyword.
47760         Move local variable, "cp", down into scope where used.
47761         Give "username" parameter the "const" attribute.
47762         * modules/getugroups (Files): Add lib/getugroups.h
47763
47764 2007-07-04  Karl Berry  <karl@gnu.org>
47765
47766         * MODULES.html.sh (func_all_modules): Complete rename of
47767         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
47768
47769 2007-07-02  Bruno Haible  <bruno@clisp.org>
47770
47771         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
47772         mode, when inttypes.h comes from gnulib.
47773         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
47774
47775 2007-07-02  Simon Josefsson  <simon@josefsson.org>
47776
47777         * NEWS: Mention lgpl module name change.
47778
47779         * modules/lgpl-2.1: Renamed from lgpl.
47780
47781         * NEWS: Mention gpl module name change.
47782
47783         * modules/gpl-3.0: New file, based on gpl-2.0.
47784
47785         * modules/gpl-2.0: Renamed from gpl.
47786
47787         * modules/gpl: Fix filename, doc/gpl.texi is now found at
47788         doc/gpl-2.0.texi.
47789
47790 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
47791
47792         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
47793         #define __STDC_LIMIT_MACROS temporarily while including
47794         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
47795         Problem reported by Joel E. Denny in
47796         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
47797
47798 2007-07-01  Bruno Haible  <bruno@clisp.org>
47799
47800         * lib/unistdio.h: New file.
47801         * lib/unistdio/u-asnprintf.h: New file.
47802         * lib/unistdio/u-asprintf.h: New file.
47803         * lib/unistdio/u-printf-args.c: New file.
47804         * lib/unistdio/u-printf-args.h: New file.
47805         * lib/unistdio/u-printf-parse.h: New file.
47806         * lib/unistdio/u-snprintf.h: New file.
47807         * lib/unistdio/u-sprintf.h: New file.
47808         * lib/unistdio/u-vasprintf.h: New file.
47809         * lib/unistdio/u-vsnprintf.h: New file.
47810         * lib/unistdio/u-vsprintf.h: New file.
47811         * lib/unistdio/ulc-asnprintf.c: New file.
47812         * lib/unistdio/ulc-asprintf.c: New file.
47813         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
47814         * lib/unistdio/ulc-printf-parse.c: New file.
47815         * lib/unistdio/ulc-snprintf.c: New file.
47816         * lib/unistdio/ulc-sprintf.c: New file.
47817         * lib/unistdio/ulc-vasnprintf.c: New file.
47818         * lib/unistdio/ulc-vasprintf.c: New file.
47819         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
47820         * lib/unistdio/ulc-vsnprintf.c: New file.
47821         * lib/unistdio/ulc-vsprintf.c: New file.
47822         * lib/unistdio/u8-asnprintf.c: New file.
47823         * lib/unistdio/u8-asprintf.c: New file.
47824         * lib/unistdio/u8-printf-parse.c: New file.
47825         * lib/unistdio/u8-snprintf.c: New file.
47826         * lib/unistdio/u8-sprintf.c: New file.
47827         * lib/unistdio/u8-vasnprintf.c: New file.
47828         * lib/unistdio/u8-vasprintf.c: New file.
47829         * lib/unistdio/u8-vsnprintf.c: New file.
47830         * lib/unistdio/u8-vsprintf.c: New file.
47831         * lib/unistdio/u8-u8-asnprintf.c: New file.
47832         * lib/unistdio/u8-u8-asprintf.c: New file.
47833         * lib/unistdio/u8-u8-snprintf.c: New file.
47834         * lib/unistdio/u8-u8-sprintf.c: New file.
47835         * lib/unistdio/u8-u8-vasnprintf.c: New file.
47836         * lib/unistdio/u8-u8-vasprintf.c: New file.
47837         * lib/unistdio/u8-u8-vsnprintf.c: New file.
47838         * lib/unistdio/u8-u8-vsprintf.c: New file.
47839         * lib/unistdio/u16-asnprintf.c: New file.
47840         * lib/unistdio/u16-asprintf.c: New file.
47841         * lib/unistdio/u16-printf-parse.c: New file.
47842         * lib/unistdio/u16-snprintf.c: New file.
47843         * lib/unistdio/u16-sprintf.c: New file.
47844         * lib/unistdio/u16-vasnprintf.c: New file.
47845         * lib/unistdio/u16-vasprintf.c: New file.
47846         * lib/unistdio/u16-vsnprintf.c: New file.
47847         * lib/unistdio/u16-vsprintf.c: New file.
47848         * lib/unistdio/u16-u16-asnprintf.c: New file.
47849         * lib/unistdio/u16-u16-asprintf.c: New file.
47850         * lib/unistdio/u16-u16-snprintf.c: New file.
47851         * lib/unistdio/u16-u16-sprintf.c: New file.
47852         * lib/unistdio/u16-u16-vasnprintf.c: New file.
47853         * lib/unistdio/u16-u16-vasprintf.c: New file.
47854         * lib/unistdio/u16-u16-vsnprintf.c: New file.
47855         * lib/unistdio/u16-u16-vsprintf.c: New file.
47856         * lib/unistdio/u32-asnprintf.c: New file.
47857         * lib/unistdio/u32-asprintf.c: New file.
47858         * lib/unistdio/u32-printf-parse.c: New file.
47859         * lib/unistdio/u32-snprintf.c: New file.
47860         * lib/unistdio/u32-sprintf.c: New file.
47861         * lib/unistdio/u32-vasnprintf.c: New file.
47862         * lib/unistdio/u32-vasprintf.c: New file.
47863         * lib/unistdio/u32-vsnprintf.c: New file.
47864         * lib/unistdio/u32-vsprintf.c: New file.
47865         * lib/unistdio/u32-u32-asnprintf.c: New file.
47866         * lib/unistdio/u32-u32-asprintf.c: New file.
47867         * lib/unistdio/u32-u32-snprintf.c: New file.
47868         * lib/unistdio/u32-u32-sprintf.c: New file.
47869         * lib/unistdio/u32-u32-vasnprintf.c: New file.
47870         * lib/unistdio/u32-u32-vasprintf.c: New file.
47871         * lib/unistdio/u32-u32-vsnprintf.c: New file.
47872         * lib/unistdio/u32-u32-vsprintf.c: New file.
47873         * tests/unistdio/test-ulc-asnprintf1.c: New file.
47874         * tests/unistdio/test-ulc-asnprintf1.h: New file.
47875         * tests/unistdio/test-ulc-printf1.h: New file.
47876         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
47877         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
47878         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
47879         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
47880         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
47881         * tests/unistdio/test-ulc-vasprintf1.c: New file.
47882         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
47883         * tests/unistdio/test-ulc-vsprintf1.c: New file.
47884         * tests/unistdio/test-u8-asnprintf1.c: New file.
47885         * tests/unistdio/test-u8-asnprintf1.h: New file.
47886         * tests/unistdio/test-u8-printf1.h: New file.
47887         * tests/unistdio/test-u8-vasnprintf1.c: New file.
47888         * tests/unistdio/test-u8-vasnprintf2.c: New file.
47889         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
47890         * tests/unistdio/test-u8-vasnprintf3.c: New file.
47891         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
47892         * tests/unistdio/test-u8-vasprintf1.c: New file.
47893         * tests/unistdio/test-u8-vsnprintf1.c: New file.
47894         * tests/unistdio/test-u8-vsprintf1.c: New file.
47895         * tests/unistdio/test-u16-asnprintf1.c: New file.
47896         * tests/unistdio/test-u16-asnprintf1.h: New file.
47897         * tests/unistdio/test-u16-printf1.h: New file.
47898         * tests/unistdio/test-u16-vasnprintf1.c: New file.
47899         * tests/unistdio/test-u16-vasnprintf2.c: New file.
47900         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
47901         * tests/unistdio/test-u16-vasnprintf3.c: New file.
47902         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
47903         * tests/unistdio/test-u16-vasprintf1.c: New file.
47904         * tests/unistdio/test-u16-vsnprintf1.c: New file.
47905         * tests/unistdio/test-u16-vsprintf1.c: New file.
47906         * tests/unistdio/test-u32-asnprintf1.c: New file.
47907         * tests/unistdio/test-u32-asnprintf1.h: New file.
47908         * tests/unistdio/test-u32-printf1.h: New file.
47909         * tests/unistdio/test-u32-vasnprintf1.c: New file.
47910         * tests/unistdio/test-u32-vasnprintf2.c: New file.
47911         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
47912         * tests/unistdio/test-u32-vasnprintf3.c: New file.
47913         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
47914         * tests/unistdio/test-u32-vasprintf1.c: New file.
47915         * tests/unistdio/test-u32-vsnprintf1.c: New file.
47916         * tests/unistdio/test-u32-vsprintf1.c: New file.
47917         * modules/unistdio/base: New file.
47918         * modules/unistdio/u-printf-args: New file.
47919         * modules/unistdio/ulc-asnprintf: New file.
47920         * modules/unistdio/ulc-asprintf: New file.
47921         * modules/unistdio/ulc-fprintf: New file.
47922         * modules/unistdio/ulc-printf-parse: New file.
47923         * modules/unistdio/ulc-snprintf: New file.
47924         * modules/unistdio/ulc-sprintf: New file.
47925         * modules/unistdio/ulc-vasnprintf: New file.
47926         * modules/unistdio/ulc-vasprintf: New file.
47927         * modules/unistdio/ulc-vfprintf: New file.
47928         * modules/unistdio/ulc-vsnprintf: New file.
47929         * modules/unistdio/ulc-vsprintf: New file.
47930         * modules/unistdio/u8-asnprintf: New file.
47931         * modules/unistdio/u8-asprintf: New file.
47932         * modules/unistdio/u8-printf-parse: New file.
47933         * modules/unistdio/u8-snprintf: New file.
47934         * modules/unistdio/u8-sprintf: New file.
47935         * modules/unistdio/u8-vasnprintf: New file.
47936         * modules/unistdio/u8-vasprintf: New file.
47937         * modules/unistdio/u8-vsnprintf: New file.
47938         * modules/unistdio/u8-vsprintf: New file.
47939         * modules/unistdio/u8-u8-asnprintf: New file.
47940         * modules/unistdio/u8-u8-asprintf: New file.
47941         * modules/unistdio/u8-u8-snprintf: New file.
47942         * modules/unistdio/u8-u8-sprintf: New file.
47943         * modules/unistdio/u8-u8-vasnprintf: New file.
47944         * modules/unistdio/u8-u8-vasprintf: New file.
47945         * modules/unistdio/u8-u8-vsnprintf: New file.
47946         * modules/unistdio/u8-u8-vsprintf: New file.
47947         * modules/unistdio/u16-asnprintf: New file.
47948         * modules/unistdio/u16-asprintf: New file.
47949         * modules/unistdio/u16-printf-parse: New file.
47950         * modules/unistdio/u16-snprintf: New file.
47951         * modules/unistdio/u16-sprintf: New file.
47952         * modules/unistdio/u16-vasnprintf: New file.
47953         * modules/unistdio/u16-vasprintf: New file.
47954         * modules/unistdio/u16-vsnprintf: New file.
47955         * modules/unistdio/u16-vsprintf: New file.
47956         * modules/unistdio/u16-u16-asnprintf: New file.
47957         * modules/unistdio/u16-u16-asprintf: New file.
47958         * modules/unistdio/u16-u16-snprintf: New file.
47959         * modules/unistdio/u16-u16-sprintf: New file.
47960         * modules/unistdio/u16-u16-vasnprintf: New file.
47961         * modules/unistdio/u16-u16-vasprintf: New file.
47962         * modules/unistdio/u16-u16-vsnprintf: New file.
47963         * modules/unistdio/u16-u16-vsprintf: New file.
47964         * modules/unistdio/u32-asnprintf: New file.
47965         * modules/unistdio/u32-asprintf: New file.
47966         * modules/unistdio/u32-printf-parse: New file.
47967         * modules/unistdio/u32-snprintf: New file.
47968         * modules/unistdio/u32-sprintf: New file.
47969         * modules/unistdio/u32-vasnprintf: New file.
47970         * modules/unistdio/u32-vasprintf: New file.
47971         * modules/unistdio/u32-vsnprintf: New file.
47972         * modules/unistdio/u32-vsprintf: New file.
47973         * modules/unistdio/u32-u32-asnprintf: New file.
47974         * modules/unistdio/u32-u32-asprintf: New file.
47975         * modules/unistdio/u32-u32-snprintf: New file.
47976         * modules/unistdio/u32-u32-sprintf: New file.
47977         * modules/unistdio/u32-u32-vasnprintf: New file.
47978         * modules/unistdio/u32-u32-vasprintf: New file.
47979         * modules/unistdio/u32-u32-vsnprintf: New file.
47980         * modules/unistdio/u32-u32-vsprintf: New file.
47981         * modules/unistdio/ulc-asnprintf-tests: New file.
47982         * modules/unistdio/ulc-vasnprintf-tests: New file.
47983         * modules/unistdio/ulc-vasprintf-tests: New file.
47984         * modules/unistdio/ulc-vsnprintf-tests: New file.
47985         * modules/unistdio/ulc-vsprintf-tests: New file.
47986         * modules/unistdio/u8-asnprintf-tests: New file.
47987         * modules/unistdio/u8-vasnprintf-tests: New file.
47988         * modules/unistdio/u8-vasprintf-tests: New file.
47989         * modules/unistdio/u8-vsnprintf-tests: New file.
47990         * modules/unistdio/u8-vsprintf-tests: New file.
47991         * modules/unistdio/u16-asnprintf-tests: New file.
47992         * modules/unistdio/u16-vasnprintf-tests: New file.
47993         * modules/unistdio/u16-vasprintf-tests: New file.
47994         * modules/unistdio/u16-vsnprintf-tests: New file.
47995         * modules/unistdio/u16-vsprintf-tests: New file.
47996         * modules/unistdio/u32-asnprintf-tests: New file.
47997         * modules/unistdio/u32-vasnprintf-tests: New file.
47998         * modules/unistdio/u32-vasprintf-tests: New file.
47999         * modules/unistdio/u32-vsnprintf-tests: New file.
48000         * modules/unistdio/u32-vsprintf-tests: New file.
48001         * MODULES.html.sh (Unicode string functions): Add the new modules.
48002
48003 2007-07-01  Bruno Haible  <bruno@clisp.org>
48004
48005         * lib/sprintf.c (sprintf): Limit the available length estimation,
48006         to avoid address wraparound.
48007         * lib/vsprintf.c (vsprintf): Likewise.
48008         * modules/sprintf-posix (Dependencies): Add stdint.
48009         * modules/vsprintf-posix (Dependencies): Likewise.
48010
48011 2007-07-01  Bruno Haible  <bruno@clisp.org>
48012
48013         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
48014         Windows PATH as well. Conservative double-quoting. Comments.
48015
48016 2007-07-01  Bruno Haible  <bruno@clisp.org>
48017             Eric Blake  <ebb9@byu.net>
48018             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48019
48020         * gnulib-tool (self_abspathname): Fix algorithm to cope with
48021         empty components in $PATH, denoting '.'.
48022
48023 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48024
48025         * gnulib-tool: Fix indentation.
48026         (func_create_megatestdir): Likewise.
48027         Report by Bruno Haible.
48028
48029 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48030
48031         Sync from Automake.
48032         * build-aux/gnupload: Fix shell portability issues with for loops.
48033         Report by Karl Berry.
48034
48035 2007-06-29  Simon Josefsson  <simon@josefsson.org>
48036
48037         * build-aux/maint.mk (POURL): Use translationproject.org.
48038
48039 2007-06-27  Simon Josefsson  <simon@josefsson.org>
48040             Bruno Haible  <bruno@clisp.org>
48041
48042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
48043         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
48044         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
48045         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
48046         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
48047
48048 2007-06-27  Bruno Haible  <bruno@clisp.org>
48049
48050         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
48051         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
48052
48053 2007-06-26  Karl Berry  <karl@gnu.org>
48054
48055         * MODULES.html.sh: remove xreadlink-with-size.
48056
48057 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48058
48059         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
48060         method that I hope also handles the double-include problem noted
48061         by Bruno Haible in
48062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
48063
48064 2007-06-23  Bruno Haible  <bruno@clisp.org>
48065
48066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48067         Don't let the 'mostlyclean' target fail if the last subdirectory could
48068         not be removed.
48069         Reported by Karl Berry.
48070
48071 2007-06-23  Bruno Haible  <bruno@clisp.org>
48072
48073         * gnulib-tool (echo): Add a speedier workaround for ksh.
48074         * tests/test-echo.sh: Likewise.
48075
48076 2007-06-23  Bruno Haible  <bruno@clisp.org>
48077
48078         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
48079         * tests/test-echo.sh: Likewise.
48080
48081 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48082
48083         * gnulib-tool (IFS): Initialize early, so we don't set it to
48084         empty later.
48085         (self_abspathname): Rewrite algorithm to set it, reindent.
48086         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
48087         (func_create_megatestdir): Merge some sed scripts.
48088
48089 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48090
48091         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
48092         exposed by Sun Studio 11 cc on Solaris 8.
48093
48094 2007-06-22  Bruno Haible  <bruno@clisp.org>
48095
48096         * gnulib-tool (echo): Ensure the echo primitive does not interpret
48097         backslashes.
48098         * tests/test-echo.sh: New file.
48099
48100 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48101
48102         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
48103         simplify `sed_replace_build_aux' scripts, they are portable but
48104         echoing them with `echo' is not.
48105         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
48106
48107 2007-06-21  Karl Berry  <karl@gnu.org>
48108
48109         * config/srclist.txt: guess we can't handle the licenses via
48110         srclist at the moment.
48111
48112 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
48113
48114         * MODULES.html.sh: Add include_next.
48115         * modules/include_next: New file.
48116
48117 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
48118
48119         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
48120         INCLUDE_NEXT.
48121         (gl_CHECK_NEXT_HEADERS): New macro.
48122         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
48123         the obsolescent gl_ABSOLUTE_HEADER.
48124         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
48125         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
48126         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
48127         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
48128         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
48129         * m4/math_h.m4 (gl_MATH_H): Likewise.
48130         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
48131         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
48132         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48133         * m4/stdint.m4 (gl_STDINT_H): Likewise.
48134         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
48135         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
48136         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
48137         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
48139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
48140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
48141         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
48142         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48143         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48144         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48145         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48146         * m4/inttypes.m4 (gl_INTTYPES_H): Define
48147         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
48148         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
48149         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
48150         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
48151         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
48152         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
48153         * lib/float_.h: Likewise.
48154         * lib/inttypes_.h: Likewise.
48155         * lib/math_.h: Likewise.
48156         * lib/search_.h: Likewise.
48157         * lib/signal_.h: Likewise.
48158         * lib/stdint_.h: Likewise.
48159         * lib/stdio_.h: Likewise.
48160         * lib/stdlib_.h: Likewise.
48161         * lib/string_.h: Likewise.
48162         * lib/sys_stat_.h: Likewise.
48163         * lib/sys_time_.h: Likewise.
48164         * lib/time_.h: Likewise.
48165         * lib/unistd_.h: Likewise.
48166         * lib/wchar_.h: Likewise.
48167         * lib/wctype_.h: Likewise.
48168         * lib/dirent_.h: Likewise.
48169         * lib/iconv_.h: Likewise.
48170         * lib/locale_.h: Likewise.
48171         * lib/netinet_in_.h: Likewise.
48172         * lib/sys_select_.h: Likewise.
48173         * lib/sys_socket_.h: Likewise.
48174         * lib/sysexits_.h: Likewise.
48175         * modules/fcntl (Depends-on): Depend on include_next, not
48176         absolute_header.
48177         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
48178         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
48179         * modules/fchdir: Likewise.
48180         * modules/float: Likewise.
48181         * modules/iconv_open: Likewise.
48182         * modules/inttypes: Likewise.
48183         * modules/locale: Likewise.
48184         * modules/math: Likewise.
48185         * modules/netinet_in: Likewise.
48186         * modules/search: Likewise.
48187         * modules/signal: Likewise.
48188         * modules/stdint: Likewise.
48189         * modules/stdio: Likewise.
48190         * modules/stdlib: Likewise.
48191         * modules/string: Likewise.
48192         * modules/sys_select: Likewise.
48193         * modules/sys_socket: Likewise.
48194         * modules/sys_stat: Likewise.
48195         * modules/sys_time: Likewise.
48196         * modules/sysexits: Likewise.
48197         * modules/time: Likewise.
48198         * modules/unistd: Likewise.
48199         * modules/wchar: Likewise.
48200         * modules/wctype: Likewise.
48201         * modules/sys_stat: Change maintainer to "all".
48202         * modules/unistd: Likewise.
48203
48204 2007-06-20  Karl Berry  <karl@gnu.org>
48205
48206         * config/srclist.txt: track www changes in license files.
48207
48208 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
48209
48210         * build-aux/bootstrap: Remove stray dot.
48211         Make sure build_aux settings are honored when linking
48212         gnulib_extra_files.
48213
48214 2007-06-19  Eric Blake  <ebb9@byu.net>
48215
48216         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
48217         Allow compilation on cygwin.
48218
48219 2007-06-19  Jim Meyering  <jim@meyering.net>
48220
48221         xreadlink-with-size: Remove module.  No longer used.
48222         Ex-callers now use xreadlink or mreadlink-with-size.
48223         * modules/xreadlink-with-size: Remove module.
48224         * lib/xreadlink-with-size.c: Remove file.
48225         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
48226         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
48227         just before the function definition *is* accurate.
48228
48229         Eliminate one way canonicalize_filename_mode could exit.
48230         * lib/canonicalize.c (canonicalize_filename_mode):
48231         Use mreadlink_with_size, not xreadlink_with_size.
48232
48233 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
48234
48235         Detect porting problems to FreeBSD/arm, which has time_t wider than
48236         long int.  Original problem reported for GNU diff by Xin Li in
48237         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
48238         * modules/getdate (Depends-on): Add intprops, verify.
48239         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
48240         is an integer type no wider than long int.
48241
48242 2007-06-18  Jim Meyering  <jim@meyering.net>
48243
48244         New module: mreadlink-with-size.
48245         * MODULES.html.sh: Add mreadlink-with-size.
48246         * modules/mreadlink-with-size: New module
48247         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
48248         not xreadlink-with-size.
48249         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
48250
48251 2007-06-16  Bruno Haible  <bruno@clisp.org>
48252
48253         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
48254         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
48255         Reported by Gary V. Vaughan <gary@gnu.org>.
48256
48257 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
48258
48259         Revamp lchown so that it lives in unistd.h where it belongs.
48260         * lib/lchown.h: Remove.
48261         * lib/dirchownmod.c: Don't include lib/lchown.h.
48262         * lib/fchownat.c: Likewise.
48263         * lib/openat.c: Likewise.
48264         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
48265         does not follow symlinks.
48266         (EOPNOTSUPP): Define if not defined.
48267         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
48268         is defined to 0.
48269         (lchown): New decl.
48270         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
48271         Do not check for lchown decl.
48272         Set REPLACE_LCHOWN.
48273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
48274         REPLACE_LCHOWN.
48275         * modules/chown: Make it clear it follows symlinks.
48276         * modules/lchown: Make it clear it doesn't follow symlinks.
48277         (Files): Remove lib/lchown.h
48278         (Depends-on): Add unistd.
48279         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
48280         (Include): Include <unistd.h>, not "lchown.h".
48281         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
48282         REPLACE_LCHOWN.
48283
48284 2007-06-15  Jim Meyering  <jim@meyering.net>
48285
48286         Change license (GPL to LGPL) of fsusage and dependents.
48287         * modules/fsusage (License): Change to LGPL.
48288         * modules/full-read (License): Likewise.
48289         * modules/full-write (License): Likewise.
48290         * modules/safe-read (License): Likewise.
48291         * modules/safe-write (License): Likewise.
48292
48293 2007-06-14  Ben Pfaff  <blp@gnu.org>
48294
48295         Missing part of allocsa -> malloca transition.
48296         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
48297         gl_MALLOCA.
48298
48299 2007-06-12  Bruno Haible  <bruno@clisp.org>
48300
48301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
48302         to ia64, x86_64, i386.
48303         Reported by Eric Blake.
48304
48305 2007-06-12  Bruno Haible  <bruno@clisp.org>
48306
48307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
48308         cross-compiling to x86_64.
48309
48310 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
48311
48312         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
48313         glitch reported by Ralf Wildenhues in
48314         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
48315
48316         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
48317         Vin Shelton.
48318
48319 2007-06-11  Bruno Haible  <bruno@clisp.org>
48320
48321         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
48322         replacement string.
48323         Reported by Eric Blake.
48324
48325 2007-06-10  Bruno Haible  <bruno@clisp.org>
48326
48327         Prepare vasnprintf code for use with Unicode strings.
48328         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
48329         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
48330         TYPE_U32_STRING.
48331         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
48332         a_u32_string variants.
48333         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48334         * lib/printf-args.c: Don't include config.h and the specification
48335         header if PRINTF_FETCHARGS is already defined.
48336         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
48337         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
48338         TYPE_U16_STRING, TYPE_U32_STRING.
48339         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
48340         u16_directive, u16_directives, u32_directive, u32_directives): New
48341         types.
48342         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
48343         New declarations.
48344         * lib/printf-parse.c: Don't include config.h and the specification
48345         header if PRINTF_PARSE is already defined. Eliminate the set of
48346         parameters for WIDE_CHAR_VERSION; the user of this file must provide
48347         them now. Include c-ctype.h.
48348         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
48349         directive and CHAR_T_ONLY_ASCII.
48350         * lib/vasnprintf.c: Don't include config.h and the specification header
48351         if VASNPRINTF is already defined.
48352         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
48353         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
48354         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
48355         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
48356         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
48357         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
48358         code accordingly.
48359         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
48360         pad_ourselves also in this case, with the 'c' and 's' directives, and
48361         with a different notion of "width".
48362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
48363
48364 2007-06-10  Bruno Haible  <bruno@clisp.org>
48365
48366         * modules/unistr/u32-mbsnlen: New file.
48367         * lib/unistr/u32-mbsnlen.c: New file.
48368
48369         * modules/unistr/u16-mbsnlen: New file.
48370         * lib/unistr/u16-mbsnlen.c: New file.
48371
48372         * modules/unistr/u8-mbsnlen: New file.
48373         * lib/unistr/u8-mbsnlen.c: New file.
48374
48375         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
48376         declarations.
48377
48378 2007-06-10  Bruno Haible  <bruno@clisp.org>
48379
48380         * lib/string_.h (mbsnlen): New declaration.
48381         * lib/mbsnlen.c: New file.
48382         * m4/mbsnlen.m4: New file.
48383         * modules/mbsnlen: New file.
48384         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
48385         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
48386         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
48387
48388 2007-06-10  Bruno Haible  <bruno@clisp.org>
48389
48390         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
48391
48392 2007-06-10  Bruno Haible  <bruno@clisp.org>
48393
48394         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
48395         * lib/mbuiter.h: Likewise.
48396
48397 2007-06-10  Bruno Haible  <bruno@clisp.org>
48398
48399         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
48400         declaration.
48401
48402 2007-06-10  Karl Berry  <karl@gnu.org>
48403
48404         * config/srclist.txt: remove gettext entries, Bruno prefers
48405         to update individually.
48406
48407 2007-06-10  Bruno Haible  <bruno@clisp.org>
48408
48409         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
48410         'maxlen'. Ensure only length + width bytes are allocated, not
48411         length + 1 + width.
48412
48413 2007-06-09  Bruno Haible  <bruno@clisp.org>
48414
48415         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
48416         (CHAR_T): Remove macro.
48417         (VASNPRINTF): Update.
48418
48419 2007-06-09  Bruno Haible  <bruno@clisp.org>
48420
48421         * MODULES.html.sh (Unicode string functions): Add the new modules.
48422
48423         * modules/uniconv/u32-conv-to-enc: New file.
48424         * lib/uniconv/u32-conv-to-enc.c: New file.
48425         * modules/uniconv/u32-conv-to-enc-tests: New file.
48426         * tests/uniconv/test-u32-conv-to-enc.c: New file.
48427
48428         * modules/uniconv/u16-conv-to-enc: New file.
48429         * lib/uniconv/u16-conv-to-enc.c: New file.
48430         * lib/uniconv/u-conv-to-enc.h: New file.
48431         * modules/uniconv/u16-conv-to-enc-tests: New file.
48432         * tests/uniconv/test-u16-conv-to-enc.c: New file.
48433
48434         * modules/uniconv/u8-conv-to-enc: New file.
48435         * lib/uniconv/u8-conv-to-enc.c: New file.
48436         * modules/uniconv/u8-conv-to-enc-tests: New file.
48437         * tests/uniconv/test-u8-conv-to-enc.c: New file.
48438
48439         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48440         u32_conv_to_encoding): New declarations.
48441
48442 2007-06-09  Bruno Haible  <bruno@clisp.org>
48443
48444         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
48445
48446 2007-06-09  Bruno Haible  <bruno@clisp.org>
48447
48448         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
48449         * modules/malloca: Renamed from modules/allocsa, updated.
48450         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
48451         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
48452         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
48453         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
48454         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
48455         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
48456         * modules/xmalloca: Renamed from modules/xallocsa, updated.
48457         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
48458         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
48459         * modules/c-strcasestr (Depends-on): Update.
48460         * lib/c-strcasestr.c: Update.
48461         * modules/c-strstr (Depends-on): Update.
48462         * lib/c-strstr.c: Update.
48463         * modules/canonicalize-lgpl (Depends-on): Update.
48464         * lib/canonicalize-lgpl.c: Update.
48465         * modules/clean-temp (Depends-on): Update.
48466         * lib/clean-temp.c: Update.
48467         * modules/csharpcomp (Depends-on): Update.
48468         * lib/csharpcomp.c: Update.
48469         * modules/csharpexec (Depends-on): Update.
48470         * lib/csharpexec.c: Update.
48471         * modules/javacomp (Depends-on): Update.
48472         * lib/javacomp.c: Update.
48473         * modules/javaexec (Depends-on): Update.
48474         * lib/javaexec.c: Update.
48475         * modules/mbscasestr (Depends-on): Update.
48476         * lib/mbscasestr.c: Update.
48477         * modules/mbsstr (Depends-on): Update.
48478         * lib/mbsstr.c: Update.
48479         * modules/setenv (Depends-on): Update.
48480         * lib/setenv.c: Update.
48481         * modules/strcasestr (Depends-on): Update.
48482         * lib/strcasestr.c: Update.
48483         * modules/striconveha (Depends-on): Update.
48484         * lib/striconveha.c: Update.
48485         * modules/relocatable-prog-wrapper (Files): Update.
48486         * lib/relocwrapper.c: Update.
48487         * build-aux/install-reloc: Update.
48488         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
48489
48490 2007-06-08  Bruno Haible  <bruno@clisp.org>
48491
48492         Port to uClibc.
48493         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
48494         * lib/fpurge.c (fpurge): Likewise.
48495         * lib/freading.c (freading): Likewise.
48496         * lib/fseeko.c (rpl_fseeko): Likewise.
48497         * lib/fseterr.c (fseterr): Likewise.
48498         * lib/fwriting.c (fwriting): Likewise.
48499         * tests/test-fflush.c (main): Avoid a failure on uClibc.
48500
48501 2007-06-08  Bruno Haible  <bruno@clisp.org>
48502
48503         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
48504         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
48505         * modules/gettext (Files): Add m4/intlmacosx.m4.
48506
48507 2007-06-07  Bruno Haible  <bruno@clisp.org>
48508
48509         * modules/localename-tests: New file.
48510         * tests/test-localename.c: New file.
48511
48512         New module 'localename'.
48513         * lib/localename.h: New file.
48514         * lib/localename.c: New file, from GNU gettext.
48515         * m4/localename.m4: New file.
48516         * modules/localename: New file.
48517
48518 2007-06-07  Bruno Haible  <bruno@clisp.org>
48519
48520         Work around the lack of <wchar.h> on some builds of uClibc.
48521         * doc/headers/wchar.texi: Update.
48522         * lib/wchar_.h: Include <wchar.h> only if it exists.
48523         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
48524         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
48525         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
48526         doesn't exist.
48527         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
48528         * modules/mbfile (Depends-on): Add wchar.
48529         * modules/mbiter (Depends-on): Likewise.
48530         * modules/mbuiter (Depends-on): Likewise.
48531         Reported by Simon Josefsson.
48532
48533 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
48534
48535         Work around problem reported by Steven M. Schweda in
48536         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
48537         Tru64 5.1B with the Compaq compiler environment installed declares
48538         an 'isblank' function but does not define it in the C library.
48539         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
48540         * lib/regex_internal.h (isblank): Likewise.
48541         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
48542         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48543
48544 2007-06-05  Bruno Haible  <bruno@clisp.org>
48545
48546         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
48547         ia64.
48548         * modules/printf-safe: New file.
48549         * modules/fprintf-posix (Depends-on): Add printf-safe.
48550         * modules/printf-posix (Depends-on): Likewise.
48551         * modules/snprintf-posix (Depends-on): Likewise.
48552         * modules/sprintf-posix (Depends-on): Likewise.
48553         * modules/vasnprintf-posix (Depends-on): Likewise.
48554         * modules/vasprintf-posix (Depends-on): Likewise.
48555         * modules/vfprintf-posix (Depends-on): Likewise.
48556         * modules/vprintf-posix (Depends-on): Likewise.
48557         * modules/vsnprintf-posix (Depends-on): Likewise.
48558         * modules/vsprintf-posix (Depends-on): Likewise.
48559         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
48560         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
48561         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
48562         "no" on i386, x86_64, ia64.
48563         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
48564         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48565         on i386, x86_64, ia64.
48566         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
48567         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48568         on i386, x86_64, ia64.
48569         * tests/test-vasnprintf-posix.c: Include float.h.
48570         (LDBL80_WORDS): New macro.
48571         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48572         on i386, x86_64, ia64.
48573         * tests/test-vasprintf-posix.c: Include float.h.
48574         (LDBL80_WORDS): New macro.
48575         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
48576         on i386, x86_64, ia64.
48577         * tests/test-snprintf-posix.c: Include float.h.
48578         * tests/test-sprintf-posix.c: Likewise.
48579         * tests/test-vsnprintf-posix.c: Likewise.
48580         * tests/test-vsprintf-posix.c: Likewise.
48581
48582 2007-06-05  Bruno Haible  <bruno@clisp.org>
48583
48584         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
48585         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
48586         non-IEEE numbers on i386, x86_64, ia64.
48587         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
48588         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
48589         * tests/test-isnanl.h: Include float.h.
48590         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
48591
48592 2007-06-05  Bruno Haible  <bruno@clisp.org>
48593
48594         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
48595         also the %a / %A. Handle the %a / %A code before this extra handling.
48596
48597 2007-06-05  Bruno Haible  <bruno@clisp.org>
48598
48599         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
48600         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
48601
48602 2007-06-05  Bruno Haible  <bruno@clisp.org>
48603
48604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
48605         typo in variable name.
48606
48607 2007-06-05  Eric Blake  <ebb9@byu.net>
48608
48609         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
48610         Reported by Simon Josefsson.
48611
48612 2007-06-04  Bruno Haible  <bruno@clisp.org>
48613
48614         Avoid test failures on some PowerPC platforms.
48615         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
48616         Define differently for PowerPC.
48617         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
48618         Reported by Gary V. Vaughan <gary@gnu.org>.
48619
48620 2007-06-02  Bruno Haible  <bruno@clisp.org>
48621
48622         Fix test-stdint failure on FreeBSD/ia64.
48623         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
48624         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
48625         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
48626         * doc/headers/stdint.texi: Update.
48627
48628 2007-06-01  Bruno Haible  <bruno@clisp.org>
48629
48630         * tests/test-binary-io.c (main): Pass a third argument to open().
48631         Reported by Gary V. Vaughan <gary@gnu.org>.
48632
48633 2007-06-01  Bruno Haible  <bruno@clisp.org>
48634
48635         * doc/functions/frexpl.texi: Update for mingw.
48636
48637 2007-06-01  Bruno Haible  <bruno@clisp.org>
48638
48639         * tests/test-lseek.c (main): Disable test of errno for invalid third
48640         argument.
48641         * doc/functions/lseek.texi: Update.
48642         Reported by Gary V. Vaughan <gary@gnu.org>.
48643
48644 2007-05-28  Bruno Haible  <bruno@clisp.org>
48645
48646         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
48647
48648 2007-05-31  Eric Blake  <ebb9@byu.net>
48649
48650         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
48651         cross compiling.
48652
48653 2007-05-30  Eric Blake  <ebb9@byu.net>
48654         and Bruno Haible  <bruno@clisp.org>
48655
48656         Work around mingw test failures exposed by m4-1.4.9b.
48657         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
48658         * tests/test-unistd.c: Disable uid_t and git_t tests for the
48659         moment.
48660
48661 2007-05-30  Bruno Haible  <bruno@clisp.org>
48662
48663         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
48664         assuming that they are closed. Needed on HP-UX 11.
48665
48666 2007-05-29  Bruno Haible  <bruno@clisp.org>
48667
48668         Fix a problem with #include_next.
48669         * lib/dirent_.h: Split the double-inclusion guard.
48670         * lib/fcntl_.h: Likewise.
48671         * lib/float_.h: Likewise.
48672         * lib/iconv_.h: Likewise.
48673         * lib/inttypes_.h: Likewise.
48674         * lib/locale_.h: Likewise.
48675         * lib/math_.h: Likewise.
48676         * lib/netinet_in_.h: Likewise.
48677         * lib/search_.h: Likewise.
48678         * lib/signal_.h: Likewise.
48679         * lib/stdint_.h: Likewise.
48680         * lib/stdio_.h: Likewise.
48681         * lib/stdlib_.h: Likewise.
48682         * lib/string_.h: Likewise.
48683         * lib/sys_select_.h: Likewise.
48684         * lib/sys_socket_.h: Likewise.
48685         * lib/sys_stat_.h: Likewise.
48686         * lib/sys_time_.h: Likewise.
48687         * lib/sysexits_.h: Likewise.
48688         * lib/time_.h: Likewise.
48689         * lib/unistd_.h: Likewise.
48690         * lib/wchar_.h: Likewise.
48691         * lib/wctype_.h: Likewise.
48692
48693 2007-05-29  Bruno Haible  <bruno@clisp.org>
48694
48695         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
48696         for the moment.
48697
48698 2007-05-29  Bruno Haible  <bruno@clisp.org>
48699
48700         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
48701         invocation.
48702         Reported by Eric Blake.
48703
48704 2007-05-29  Bruno Haible  <bruno@clisp.org>
48705
48706         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
48707         compiling case.
48708
48709 2007-05-29  Eric Blake  <ebb9@byu.net>
48710             Bruno Haible  <bruno@clisp.org>
48711
48712         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
48713         cross compiles.
48714
48715 2007-05-28  Eric Blake  <ebb9@byu.net>
48716
48717         * modules/closein-tests (test_closein_LDADD): Support test on
48718         cygwin with libtool.
48719
48720 2007-05-28  Bruno Haible  <bruno@clisp.org>
48721
48722         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
48723         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
48724         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
48725         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
48726         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
48727         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
48728         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
48729         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
48730         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
48731
48732 2007-05-28  Eric Blake  <ebb9@byu.net>
48733
48734         Unconditionally include <config.h> in unit tests.
48735         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
48736         * tests/test-allocsa.c, tests/test-arcfour.c,
48737         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
48738         tests/test-array_list.c, tests/test-array_oset.c,
48739         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
48740         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
48741         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
48742         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
48743         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
48744         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
48745         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
48746         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
48747         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
48748         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
48749         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
48750         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
48751         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
48752         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
48753         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
48754         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
48755         test-md5.c, test-memmem.c, test-printf-posix.c,
48756         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
48757         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
48758         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
48759         test-strcasestr.c, test-striconv.c, test-striconveh.c,
48760         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
48761         test-vasnprintf-posix2.c, test-vasnprintf.c,
48762         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
48763         test-vfprintf-posix.c, test-vprintf-posix.c,
48764         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
48765         test-xvasprintf.c: Likewise.
48766
48767 2007-05-28  Bruno Haible  <bruno@clisp.org>
48768
48769         * gnulib-tool (func_import): Remember the --with-tests command-line
48770         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
48771         Reported by Eric Blake.
48772
48773 2007-05-28  Bruno Haible  <bruno@clisp.org>
48774
48775         * modules/ftell-tests: New file.
48776         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
48777         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
48778
48779         * lib/ftell.c: New file.
48780         * modules/ftell: New file.
48781         * m4/ftell.m4: New file.
48782         * doc/functions/ftell.texi: Update.
48783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
48784         REPLACE_FTELL.
48785         * lib/stdio_.h (rpl_ftell): New declaration.
48786         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
48787         REPLACE_FTELL.
48788
48789 2007-05-28  Eric Blake  <ebb9@byu.net>
48790
48791         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
48792
48793 2007-05-28  Bruno Haible  <bruno@clisp.org>
48794
48795         * modules/fseek-tests: New file.
48796         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
48797         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
48798
48799         * lib/fseek.c: New file.
48800         * modules/fseek: New file.
48801         * m4/fseek.m4: New file.
48802         * doc/functions/fseek.texi: Update.
48803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
48804         REPLACE_FSEEK.
48805         * lib/stdio_.h (rpl_fseek): New declaration.
48806         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
48807         REPLACE_FSEEK.
48808
48809 2007-05-28  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/stdio_.h (fflush): More comments.
48812
48813 2007-05-28  Bruno Haible  <bruno@clisp.org>
48814
48815         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
48816         runtime test.
48817
48818 2007-05-28  Eric Blake  <ebb9@byu.net>
48819
48820         Improve lseek module.
48821         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
48822         * lib/unistd_.h (lseek): Scale back link warning message.
48823         * tests/test-lseek.c: Beef up test.
48824         * tests/test-lseek.sh: Exercise more facets of lseek.
48825         Reported by Bruno Haible.
48826
48827 2007-05-28  Bruno Haible  <bruno@clisp.org>
48828
48829         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
48830         to define.
48831
48832 2007-05-27  Bruno Haible  <bruno@clisp.org>
48833
48834         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
48835
48836 2007-05-27  Bruno Haible  <bruno@clisp.org>
48837
48838         * modules/openmp: New file.
48839         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
48840         Noah Misch.
48841
48842 2007-05-26  Bruno Haible  <bruno@clisp.org>
48843
48844         * modules/chdir-long (Depends-on): Add fchdir.
48845         * modules/chdir-safer (Depends-on): Likewise.
48846         * modules/fts (Depends-on): Likewise.
48847         * modules/fts-lgpl (Depends-on): Likewise.
48848         * modules/openat (Depends-on): Likewise.
48849         * modules/savewd (Depends-on): Likewise.
48850
48851 2007-05-24  Eric Blake  <ebb9@byu.net>
48852
48853         Fix lseek on mingw.
48854         * modules/lseek: New module.
48855         * m4/lseek.m4: New file.
48856         * lib/lseek.c: New file.
48857         * modules/lseek-tests: New file.
48858         * tests/test-lseek.c: New file.
48859         * tests/test-lseek.sh: New file.
48860         * MODULES.html.sh: Document lseek module.
48861         * modules/fflush (Depends-on): Add lseek, fseeko.
48862         * modules/fseeko (Depends-on): Likewise.
48863         * modules/ftello (Depends-on): Likewise.
48864         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
48865         broken.
48866         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
48867         broken.
48868         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
48869         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
48870         * lib/ftello.c (rpl_ftello): Likewise.
48871         * tests/test-fseeko.c (main): Test this.
48872         * tests/test-fseeko.sh: Likewise.
48873         * tests/test-ftello.c (main): Likewise.
48874         * tests/test-ftello.sh: Likewise.
48875         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
48876         implies replacing fseek.
48877         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
48878         HAVE_FTELLO.
48879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
48880         * modules/unistd (Makefile.am): Likewise.
48881         * lib/unistd_.h (lseek): Declare a replacement.
48882         * doc/functions/lseek.texi (lseek): Document this fix.
48883         * doc/functions/fseek.texi (fseek): Likewise.
48884         * doc/functions/ftell.texi (ftell): Likewise.
48885
48886 2007-05-24  Bruno Haible  <bruno@clisp.org>
48887
48888         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
48889         in the printed representation of a NaN.
48890         * tests/test-vasprintf-posix.c (test_function): Likewise.
48891         * tests/test-snprintf-posix.h (test_function): Likewise.
48892         * tests/test-sprintf-posix.h (test_function): Likewise.
48893         Reported by Eric Blake.
48894
48895 2007-05-23  Eric Blake  <ebb9@byu.net>
48896
48897         Fix fseeko/ftello on cygwin 1.5.24.
48898         * doc/functions/fseeko.texi (fseeko): Document the fix.
48899         * doc/functions/ftello.texi (ftello): Document the fix.
48900         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
48901         * doc/functions/stdout.text (stdout): New file.
48902         * doc/functions/stderr.text (stderr): New file.
48903         * doc/gnulib.texi (Function Substitutes): Use new files.
48904         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
48905         prior to 1.7.0.
48906         * tests/test-ftello.c (main): Likewise for ftello.
48907         * tests/test-fseeko.sh: New file.
48908         * tests/test-ftello.sh: New file.
48909         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
48910         with seekable stdin.
48911         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
48912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
48913         (gl_REPLACE_FSEEKO): New macro.
48914         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
48915         * modules/fseeko (Files): Distribute fseeko.c.
48916         * modules/ftello (Files): Distribute ftello.c.
48917         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
48918         mode.
48919         * lib/ftello.c (rpl_ftello): New file.
48920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
48921         fseeko, ftello.
48922         (gl_STDIN_LARGE_OFFSET): New macro.
48923         * modules/stdio (Makefile.am): Perform the replacement.
48924         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
48925
48926 2007-05-23  Bruno Haible  <bruno@clisp.org>
48927
48928         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
48929         GNULIB_POSIXCHECK is defined.
48930
48931 2007-05-21  Bruno Haible  <bruno@clisp.org>
48932
48933         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
48934         Check also the output for NaN arguments. When cross-compiling, guess
48935         no on IRIX.
48936         * lib/vasnprintf.c: Update comments.
48937         * tests/test-vasnprintf-posix.c (strisnan): New function.
48938         (test_function): Use it.
48939         * tests/test-vasprintf-posix.c (strisnan): New function.
48940         (test_function): Use it.
48941         * tests/test-snprintf-posix.h (strisnan): New function.
48942         (test_function): Use it.
48943         * tests/test-sprintf-posix.h (strisnan): New function.
48944         (test_function): Use it.
48945         Reported by Eric Blake.
48946
48947 2007-05-20  Bruno Haible  <bruno@clisp.org>
48948
48949         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
48950         numbers that fails on BeOS.
48951         * doc/functions/frexpl.texi: Update.
48952
48953 2007-05-20  Jim Meyering  <jim@meyering.net>
48954
48955         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
48956         forced upon us by glibc-2.6.
48957
48958 2007-05-20  Bruno Haible  <bruno@clisp.org>
48959
48960         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
48961         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
48962         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
48963         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
48964         NEED_PRINTF_INFINITE.
48965         (is_infinitel): New function.
48966         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
48967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
48968         gl_PREREQ_VASNPRINTF_INFINITE.
48969         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
48970         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48971         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
48972         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
48973         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
48974         gl_PREREQ_VASNPRINTF_INFINITE.
48975         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48976         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48977         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48978         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48979         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48980         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48981         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48982         * doc/functions/fprintf.texi: Update.
48983         * doc/functions/printf.texi: Update.
48984         * doc/functions/snprintf.texi: Update.
48985         * doc/functions/sprintf.texi: Update.
48986         * doc/functions/vfprintf.texi: Update.
48987         * doc/functions/vprintf.texi: Update.
48988         * doc/functions/vsnprintf.texi: Update.
48989         * doc/functions/vsprintf.texi: Update.
48990
48991 2007-05-20  Bruno Haible  <bruno@clisp.org>
48992
48993         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
48994         was not found in libc.
48995         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
48996
48997 2007-05-20  Bruno Haible  <bruno@clisp.org>
48998
48999         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49000         printed as "-nan" instead of "nan".
49001         * tests/test-vasprintf-posix.c (test_function): Likewise.
49002         * tests/test-snprintf-posix.h (test_function): Likewise.
49003         * tests/test-sprintf-posix.h (test_function): Likewise.
49004         Needed for HP-UX 11.
49005
49006 2007-05-20  Jim Meyering  <jim@meyering.net>
49007
49008         Fix buggy test for the fchownat-deref bug.
49009         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
49010         symlink required for the run-test.  Without it, this test would
49011         always declare that fchownat doesn't work, and client code would
49012         unnecessarily use the replacement function with fixed libc.
49013         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
49014         Reported by Greg Schafer.
49015
49016 2007-05-19  Bruno Haible  <bruno@clisp.org>
49017
49018         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
49019         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
49020         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
49021         Needed for IRIX 6.5 and Solaris 2.5.1.
49022
49023 2007-05-19  Bruno Haible  <bruno@clisp.org>
49024
49025         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
49026         (test_function): Skip tests involving -0.0 on platforms where
49027         -0.0 = 0.0.
49028         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
49029         (test_function): Skip tests involving -0.0 on platforms where
49030         -0.0 = 0.0.
49031         * tests/test-snprintf-posix.h (have_minus_zero): New function.
49032         (test_function): Skip tests involving -0.0 on platforms where
49033         -0.0 = 0.0.
49034         * tests/test-sprintf-posix.h (have_minus_zero): New function.
49035         (test_function): Skip tests involving -0.0 on platforms where
49036         -0.0 = 0.0.
49037         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
49038         tests.
49039         * tests/test-printf-posix.h (test_function): Likewise.
49040         * tests/test-printf-posix.output: Remove all -0.0 related results.
49041         Needed for IRIX 6.5.
49042
49043 2007-05-19  Bruno Haible  <bruno@clisp.org>
49044
49045         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
49046         printed as "nan0x7fffffff" instead of "nan".
49047         * tests/test-vasprintf-posix.c (test_function): Likewise.
49048         * tests/test-snprintf-posix.h (test_function): Likewise.
49049         * tests/test-sprintf-posix.h (test_function): Likewise.
49050         * tests/test-fprintf-posix.h (NaN): Remove macro.
49051         (test_function): Remove all NaN related tests.
49052         * tests/test-printf-posix.h (NaN): Remove macro.
49053         (test_function): Remove all NaN related tests.
49054         * tests/test-printf-posix.output: Remove all NaN related results.
49055         Needed for IRIX 6.5.
49056
49057 2007-05-19  Bruno Haible  <bruno@clisp.org>
49058
49059         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
49060         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
49061
49062 2007-05-19  Bruno Haible  <bruno@clisp.org>
49063
49064         * lib/float_.h: New file.
49065         * m4/float_h.m4: New file.
49066         * modules/float: New file.
49067         * modules/isnanl (Dependencies): Add float.
49068         * modules/isnanl-nolibm (Dependencies): Likewise.
49069         * modules/mathl (Dependencies): Likewise.
49070         * modules/printf-frexpl (Dependencies): Likewise.
49071         * modules/signbit (Dependencies): Likewise.
49072         * modules/vasnprintf (Dependencies): Likewise.
49073         * doc/headers/float.texi: Update.
49074
49075 2007-05-19  Jim Meyering  <jim@meyering.net>
49076
49077         * lib/utimens.c (gl_futimens): Rename from futimens,
49078         now that glibc-2.6 declares futimens.
49079         * lib/utimens.h: Likewise.
49080
49081 2007-05-19  Bruno Haible  <bruno@clisp.org>
49082
49083         Avoid test failures on mingw.
49084         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
49085         * tests/test-printf-posix.sh: Likewise.
49086         * tests/test-vfprintf-posix.sh: Likewise.
49087         * tests/test-vprintf-posix.sh: Likewise.
49088
49089 2007-05-19  Bruno Haible  <bruno@clisp.org>
49090
49091         Fix *printf result for NaN, Inf, -0.0 on mingw.
49092         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
49093         * lib/vasnprintf.c: Include math.h and isnan.h.
49094         (is_infinite_or_zero): New function.
49095         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
49096         values in the %f, %F, %e, %E, %g, %G directives.
49097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
49098         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49099         gl_PRINTF_INFINITE and test its result. Invoke
49100         gl_PREREQ_VASNPRINTF_INFINITE.
49101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49102         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49103         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49104         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49105         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49108         * doc/functions/fprintf.texi: Update.
49109         * doc/functions/printf.texi: Update.
49110         * doc/functions/snprintf.texi: Update.
49111         * doc/functions/sprintf.texi: Update.
49112         * doc/functions/vfprintf.texi: Update.
49113         * doc/functions/vprintf.texi: Update.
49114         * doc/functions/vsnprintf.texi: Update.
49115         * doc/functions/vsprintf.texi: Update.
49116
49117 2007-05-19  Bruno Haible  <bruno@clisp.org>
49118
49119         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
49120         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
49121         Instead of multiplying with 10^k, set extra_zeroes to k.
49122         (scale10_round_long_double): Remove function.
49123
49124 2007-05-18  Bruno Haible  <bruno@clisp.org>
49125
49126         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
49127         introduced on 2007-05-06.
49128
49129 2007-05-18  Bruno Haible  <bruno@clisp.org>
49130
49131         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
49132         %g directives.
49133         * tests/test-vasprintf-posix.c (test_function): Likewise.
49134         * tests/test-snprintf-posix.h (test_function): Likewise.
49135         * tests/test-sprintf-posix.h (test_function): Likewise.
49136
49137 2007-05-18  Bruno Haible  <bruno@clisp.org>
49138
49139         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
49140         (strmatch): New function.
49141         (test_function): Test the %f directive on numbers of various exponents.
49142         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
49143         (strmatch): New function.
49144         (test_function): Test the %f directive on numbers of various exponents.
49145         * tests/test-snprintf-posix.h (strmatch): New function.
49146         (test_function): Test the %f directive on numbers of various exponents.
49147         * tests/test-sprintf-posix.h (strmatch): New function.
49148         (test_function): Test the %f directive on numbers of various exponents.
49149         * tests/test-snprintf-posix.c (SIZEOF): New macro.
49150         * tests/test-sprintf-posix.c (SIZEOF): New macro.
49151         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
49152         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
49153
49154 2007-05-18  Bruno Haible  <bruno@clisp.org>
49155
49156         Add support for 'long double' number output.
49157         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
49158         * lib/vasnprintf.c: Include math.h and float+.h.
49159         (mp_limb_t): New type.
49160         (GMP_LIMB_BITS): New macro.
49161         (mp_twolimb_t): New type.
49162         (GMP_TWOLIMB_BITS): New macro.
49163         (mpn_t): New type.
49164         (multiply, divide, convert_to_decimal, decode_long_double,
49165         scale10_round_long_double, scale10_round_decimal_long_double,
49166         floorlog10l): New functions.
49167         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
49168         for the %f, %F, %e, %E, %g, %G directives.
49169         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
49170         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49171         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
49172         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
49173         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49174         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49175         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49176         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49177         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49179         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49180         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
49181         * modules/snprintf-posix (Depends-on): Likewise.
49182         * modules/sprintf-posix (Depends-on): Likewise.
49183         * modules/vasnprintf-posix (Depends-on): Likewise.
49184         * modules/vasprintf-posix (Depends-on): Likewise.
49185         * modules/vfprintf-posix (Depends-on): Likewise.
49186         * modules/vsnprintf-posix (Depends-on): Likewise.
49187         * modules/vsprintf-posix (Depends-on): Likewise.
49188         * modules/vasnprintf (Files): Add lib/float+.h.
49189         * doc/functions/fprintf.texi: Update.
49190         * doc/functions/printf.texi: Update.
49191         * doc/functions/snprintf.texi: Update.
49192         * doc/functions/sprintf.texi: Update.
49193         * doc/functions/vfprintf.texi: Update.
49194         * doc/functions/vprintf.texi: Update.
49195         * doc/functions/vsnprintf.texi: Update.
49196         * doc/functions/vsprintf.texi: Update.
49197
49198 2007-05-18  Bruno Haible  <bruno@clisp.org>
49199
49200         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
49201
49202 2007-05-18  Bruno Haible  <bruno@clisp.org>
49203
49204         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
49205         for printing 64-bit integers. Needed for mingw.
49206
49207 2007-05-18  Bruno Haible  <bruno@clisp.org>
49208
49209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
49210         gl_FUNC_FREXPL_WORKS.
49211         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
49212
49213 2007-05-18  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/frexpl-nolibm-tests: New file.
49216
49217         * modules/frexpl-nolibm: New file.
49218         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
49219
49220 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
49221
49222         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
49223         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49224         GCC 4.2, which otherwise issues a lot of warnings.
49225         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
49226         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
49227         Likewise.
49228         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
49229         * modules/iconv_open (iconv.h): Likewise.
49230         * modules/locale (locale.h): Likewise.
49231         * modules/netinet_in (netinet/in.h): Likewise.
49232         * modules/sys_select (sys_select.h): Likewise.
49233         * modules/sys_socket (sys/socket.h): Likewise.
49234         * modules/sys_stat (sys/stat.h): Likewise.
49235         * modules/sysexits (sysexits.h): Likewise.
49236         * modules/unistd (unistd.h): Likewise.
49237
49238 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49239
49240         * modules/closein-tests (Makefile.am): Distribute
49241         `test-closein.sh'.
49242
49243 2007-05-17  Bruno Haible  <bruno@clisp.org>
49244
49245         * tests/test-printf-posix.output: Renamed from
49246         tests/test-fprintf-posix.out.
49247         * modules/fprintf-posix-tests: Update.
49248         * modules/printf-posix-tests: Update.
49249         * modules/vfprintf-posix-tests: Update.
49250         * modules/vprintf-posix-tests: Update.
49251         * tests/test-fprintf-posix.sh: Update.
49252         * tests/test-printf-posix.sh: Update.
49253         * tests/test-vfprintf-posix.sh: Update.
49254         * tests/test-vprintf-posix.sh: Update.
49255         Reported by Ralf Wildenhues.
49256
49257 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
49258
49259         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
49260         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
49261         GCC 4.2, which otherwise issues a lot of warnings.
49262         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
49263         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
49264         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
49265         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
49266         it should no longer be needed.
49267         * lib/string_.h: Likewise.
49268         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
49269         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
49270         * modules/inttypes (inttypes.h): Likewise.
49271         * modules/math (math.h): Likewise.
49272         * modules/search (search.h): Likewise.
49273         * modules/signal (signal.h): Likewise.
49274         * modules/stdint (stdint.h): Likewise.
49275         * modules/stdio (stdio.h): Likewise.
49276         * modules/stdlib (stdlib.h): Likewise.
49277         * modules/string (string.h): Likewise.
49278         * modules/sys_time (sys/time.h): Likewise.
49279         * modules/time (time.h): Likewise.
49280         * modules/wchar (wchar.h): Likewise.
49281         * modules/wctype (wtype.h): Likewise.
49282
49283 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
49284
49285         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
49286
49287 2007-05-13  Bruno Haible  <bruno@clisp.org>
49288
49289         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
49290         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
49291         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
49292         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
49293         (gl_PREREQ_STRTOK_R): Don't require it here.
49294
49295 2007-05-13  Bruno Haible  <bruno@clisp.org>
49296
49297         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
49298         when used in C++ mode.
49299
49300 2007-05-12  Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/linebuffer.h: Tweak doc.
49303         * lib/linebuffer.c: Likewise.
49304
49305 2007-05-12  James Youngman  <jay@gnu.org>
49306
49307         * lib/linebuffer.c (readlinebuffer_delim): New function,
49308         like readlinebuffer, but use a caller-specified delimiter.
49309         (readlinebuffer): Just call readlinebuffer_delim with '\n'
49310         as the delimiter.
49311         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
49312
49313 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49314
49315         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
49316         * modules/openat (Files): Remove openat-die.c.
49317         (Depends-on): Add openat-die.
49318         * modules/openat-die: New module.
49319
49320 2007-05-06  Bruno Haible  <bruno@clisp.org>
49321
49322         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
49323         Update with info about Cygwin.
49324         * doc/functions/fprintf.texi: Update.
49325         * doc/functions/printf.texi: Update.
49326         * doc/functions/snprintf.texi: Update.
49327         * doc/functions/sprintf.texi: Update.
49328         * doc/functions/vfprintf.texi: Update.
49329         * doc/functions/vprintf.texi: Update.
49330         * doc/functions/vsnprintf.texi: Update.
49331         * doc/functions/vsprintf.texi: Update.
49332         Reported by Eric Blake.
49333
49334 2007-05-06  Bruno Haible  <bruno@clisp.org>
49335
49336         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
49337         padding ourselves for the floating-point directives.
49338         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
49339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
49340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49341         gl_PRINTF_FLAG_ZERO and test its result. Invoke
49342         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
49343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49344         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49350         * tests/test-snprintf-posix.h (test_function): Also check the width
49351         and some flags in the %f directive.
49352         * tests/test-sprintf-posix.h (test_function): Likewise.
49353         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49354         * tests/test-vasprintf-posix.c (test_function): Likewise.
49355         * doc/functions/fprintf.texi: Update.
49356         * doc/functions/printf.texi: Update.
49357         * doc/functions/snprintf.texi: Update.
49358         * doc/functions/sprintf.texi: Update.
49359         * doc/functions/vfprintf.texi: Update.
49360         * doc/functions/vprintf.texi: Update.
49361         * doc/functions/vsnprintf.texi: Update.
49362         * doc/functions/vsprintf.texi: Update.
49363
49364 2007-05-06  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
49367         pass the ' flag character to sprintf or snprintf.
49368         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
49369         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
49370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49371         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
49372         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
49373         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49374         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
49375         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49376         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49377         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49378         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49379         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49380         * tests/test-snprintf-posix.h (test_function): Also check the grouping
49381         flag.
49382         * tests/test-sprintf-posix.h (test_function): Likewise.
49383         * tests/test-vasnprintf-posix.c (test_function): Likewise.
49384         * tests/test-vasprintf-posix.c (test_function): Likewise.
49385         * doc/functions/fprintf.texi: Update.
49386         * doc/functions/printf.texi: Update.
49387         * doc/functions/snprintf.texi: Update.
49388         * doc/functions/sprintf.texi: Update.
49389         * doc/functions/vfprintf.texi: Update.
49390         * doc/functions/vprintf.texi: Update.
49391         * doc/functions/vsnprintf.texi: Update.
49392         * doc/functions/vsprintf.texi: Update.
49393
49394 2007-05-01  Bruno Haible  <bruno@clisp.org>
49395
49396         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
49397
49398 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
49399
49400         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
49401         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
49402
49403 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
49404
49405         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
49406         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
49407         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
49408
49409 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
49410
49411         * lib/argp-help.c (struct hol_entry): New member `ord'.
49412         (HOL_ENTRY_PTRCMP): Use ord for comparison
49413         (hol_sort): Initialize ord.
49414
49415 2007-05-01  Bruno Haible  <bruno@clisp.org>
49416
49417         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
49418         Reported by Eric Blake.
49419         * doc/gnulib.texi (Function Substitutes): Update.
49420
49421 2007-05-01  Bruno Haible  <bruno@clisp.org>
49422
49423         * doc/functions.texi: Remove file, now redundant through
49424         doc/functions/*.texi.
49425
49426 2007-05-01  Bruno Haible  <bruno@clisp.org>
49427
49428         * modules/argp (Depends-on): Add sleep.
49429
49430 2007-05-01  Bruno Haible  <bruno@clisp.org>
49431
49432         * modules/sleep-tests: New file.
49433         * tests/test-sleep.c: New file.
49434
49435         * modules/sleep: New file.
49436         * lib/sleep.c: New file.
49437         * m4/sleep.m4: New file.
49438         * lib/unistd_.h (sleep): New declaration.
49439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
49440         HAVE_SLEEP.
49441         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
49442         * doc/functions/sleep.texi: Document the sleep module.
49443
49444 2007-05-01  Bruno Haible  <bruno@clisp.org>
49445
49446         * lib/sigprocmask.h: Remove file.
49447         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
49448         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
49449         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
49450         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
49451         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
49452         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
49453         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
49454         HAVE_SIGSET_T as a shell variable.
49455         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
49456         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
49457         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
49458         (Depends-on): Add signal. Remove verify.
49459         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
49460         (Include): Mention <signal.h> instead of sigprocmask.h.
49461         * NEWS: Mention the change.
49462         * lib/fatal-signal.c: Don't include sigprocmask.h.
49463
49464 2007-05-01  Bruno Haible  <bruno@clisp.org>
49465
49466         * modules/signal: New file.
49467         * lib/signal_.h: New file.
49468         * m4/signal_h.m4: New file.
49469
49470 2007-05-01  Bruno Haible  <bruno@clisp.org>
49471
49472         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
49473         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
49474         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
49475         HAVE_WCTYPE_CTMP_BUG into wctype.h.
49476
49477 2007-05-01  Bruno Haible  <bruno@clisp.org>
49478
49479         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
49480         configure time.
49481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
49482         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
49483         * modules/sys_stat (Makefile.am): Substitute their values into
49484         sys/stat.h.
49485
49486 2007-05-01  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
49489         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
49490         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
49491
49492 2007-05-01  Bruno Haible  <bruno@clisp.org>
49493
49494         * doc/header/assert.texi: Undo last change: don't mention the gnulib
49495         'assert' module here.
49496
49497 2007-05-01  Bruno Haible  <bruno@clisp.org>
49498
49499         * doc/functions/*.texi: New files.
49500         * doc/functions/google-ranking.txt: New file.
49501         * doc/gnulib.texi (Function Substitutes): New chapter.
49502         (ctime, inet_ntoa): Remove sections.
49503         * doc/ctime.texi: Remove file.
49504         * doc/inet_ntoa.texi: Remove file.
49505         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
49506         dependencies.
49507         (%.info): New rule, specifying a --reference-limit.
49508
49509 2007-05-01  Bruno Haible  <bruno@clisp.org>
49510
49511         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
49512
49513 2007-05-01  Bruno Haible  <bruno@clisp.org>
49514
49515         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
49516         the portability of 'mkdir' to mingw systems.
49517
49518 2007-05-01  Bruno Haible  <bruno@clisp.org>
49519
49520         * doc/headers/google-ranking.txt: New file.
49521
49522 2007-04-30  Eric Blake  <ebb9@byu.net>
49523
49524         Prefer fseeko to fseek.
49525         * modules/getpass (Depends-on): Add fseeko.
49526         * lib/getpass.c (getpass): Use fseeko, not fseek.
49527
49528 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
49529
49530         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
49531         assumes the sorting is stable, while most qsort implementations
49532         are not.  Use argument addresses to ensure they never compare as
49533         equal.
49534
49535         * tests/test-argp-2.sh (usage-indent test): Fix output
49536         (func_compare): Restore diff options
49537         * tests/test-argp.c: Restore #include "progname.h"
49538
49539 2007-04-29  Bruno Haible  <bruno@clisp.org>
49540
49541         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
49542         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
49543         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
49544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49545         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
49546         (configure.ac): Define CHECK_SNPRINTF_POSIX.
49547         (TESTS, check_PROGRAMS): Add test-snprintf.
49548         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
49549         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
49550         (TESTS, check_PROGRAMS): Add test-vsnprintf.
49551         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
49552         assertions that fail on HP-UX, OSF/1, or IRIX.
49553         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
49554
49555 2007-04-29  Bruno Haible  <bruno@clisp.org>
49556
49557         * MODULES.html.sh (posix_functions): Remove 'contents'.
49558
49559 2007-04-29  Karl Berry  <karl@gnu.org>
49560
49561         * config/srclist.txt (gendocs_template_min): new entry.
49562
49563 2007-04-29  Bruno Haible  <bruno@clisp.org>
49564
49565         Work around fpurge bug on BSD systems.
49566         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
49567         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
49568         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
49569         fpurge to rpl_fpurge if the system already has this function.
49570         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
49571         the case where the system already has this function. Correct invariants
49572         on BSD systems.
49573         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
49574         BSD systems.
49575
49576 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
49577
49578         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
49579         proposed by Sven Verdoolaege.
49580
49581         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
49582         options.
49583         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
49584         (usage and help tests): Update
49585
49586 2007-04-29  Bruno Haible  <bruno@clisp.org>
49587
49588         * tests/test-fflush.c (main): Use a file of size 17, not 10.
49589         Print more information in case of failure. Disable a test on BeOS.
49590
49591 2007-04-29  Bruno Haible  <bruno@clisp.org>
49592
49593         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
49594         This helps debugging on systems on which no gdb is available.
49595
49596 2007-04-29  Bruno Haible  <bruno@clisp.org>
49597
49598         * lib/freading.h: Improve comments.
49599         * lib/fwriting.h: Likewise.
49600         * tests/test-freading.c (main): Don't check freading immediately after
49601         repositioning. Needed for glibc.
49602
49603 2007-04-29  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/freading.c (freading): Trivial simplification.
49606
49607 2007-04-28  Bruno Haible  <bruno@clisp.org>
49608
49609         * tests/test-fwriting.c (main): Also test the interaction between
49610         fflush and fwriting.
49611         * modules/fwriting-tests (Depends-on): Add fflush.
49612
49613         * tests/test-freading.c (main): Also test the interaction between
49614         fflush and freading.
49615         * modules/freading-tests (Depends-on): Add fflush.
49616
49617 2007-04-28  Bruno Haible  <bruno@clisp.org>
49618
49619         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
49620         fseeko and ftello.
49621         Suggested by Eric Blake.
49622
49623 2007-04-28  Jim Meyering  <jim@meyering.net>
49624
49625         Avoid false-negative in gl_STDINT_H's C99 conformance test.
49626         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
49627         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
49628
49629 2007-04-27  Eric Blake  <ebb9@byu.net>
49630
49631         * doc/headers/assert.texi (assert.h): Document assert module use.
49632
49633 2007-04-27  Bruno Haible  <bruno@clisp.org>
49634
49635         * doc/headers/*.texi: New files.
49636         * doc/gnulib.texi (Header File Substitutes): New chapter.
49637         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
49638         dependencies.
49639         (standards.info ,standards.html, standards.dvi): Update dependencies.
49640         (mostlyclean, clean): New targets.
49641
49642 2007-04-27  Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
49645         * modules/sysexits (Files, Makefile.am): Update.
49646
49647         * lib/sys_socket_.h: Renamed from lib/socket_.h.
49648         * modules/sys_socket (Files, Makefile.am): Update.
49649
49650         * lib/sys_stat_.h: Renamed from lib/stat_.h.
49651         * modules/sys_stat (Files, Makefile.am): Update.
49652
49653 2007-04-27  Eric Blake  <ebb9@byu.net>
49654
49655         * lib/freading.h: Improve comments.
49656         * lib/fwriting.h: Likewise.
49657         * lib/fflush.c: Likewise.
49658
49659         Fix closein for mingw.
49660         * modules/closein-tests: Add tests for closein.
49661         * tests/test-closein.c: New file.
49662         * tests/test-closein.sh: Likewise.
49663         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
49664         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
49665
49666 2007-04-27  Bruno Haible  <bruno@clisp.org>
49667
49668         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
49669         version is < 6.
49670         * lib/math_.h [__DECC]: Likewise.
49671         * lib/stdio_.h [__DECC]: Likewise.
49672         * lib/stdlib_.h [__DECC]: Likewise.
49673         * lib/string_.h [__DECC]: Likewise.
49674         * lib/time_.h [__DECC]: Likewise.
49675         * lib/wchar_.h [__DECC]: Likewise.
49676         * lib/wctype_.h [__DECC]: Likewise.
49677
49678 2007-04-27  Bruno Haible  <bruno@clisp.org>
49679
49680         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
49681
49682 2007-04-27  Bruno Haible  <bruno@clisp.org>
49683
49684         * lib/fflush.c: Add comments.
49685         * modules/fpurge-tests (Depends-on): Add fflush.
49686         * modules/freadable-tests (Depends-on): Likewise.
49687         * modules/fwritable-tests (Depends-on): Likewise.
49688
49689 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
49690
49691         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
49692         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
49693         Report by Bruno Haible <bruno@clisp.org>.
49694
49695 2007-04-26  Eric Blake  <ebb9@byu.net>
49696
49697         Fix fflush on mingw.
49698         * modules/fflush (Depends-on): Add freading.
49699         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
49700         but unread data.
49701
49702 2007-04-26  Eric Blake  <ebb9@byu.net>
49703         and Bruno Haible  <bruno@clisp.org>
49704
49705         Implement freading and fwriting.
49706         * lib/freading.c: New file.
49707         * lib/freading.h: Likewise.
49708         * m4/freading.m4: Likewise.
49709         * modules/freading: Likewise.
49710         * modules/freading-tests: Likewise.
49711         * tests/test-freading.c: Likewise.
49712         * lib/fwriting.c: New file.
49713         * lib/fwriting.h: Likewise.
49714         * m4/fwriting.m4: Likewise.
49715         * modules/fwriting: Likewise.
49716         * modules/fwriting-tests: Likewise.
49717         * tests/test-fwriting.c: Likewise.
49718         * MODULES.html.sh (File stream based Input/Output): Mention them.
49719
49720 2007-04-26  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
49723         'long' when we assume it.
49724         Suggested by Eric Blake.
49725
49726 2007-04-26  Bruno Haible  <bruno@clisp.org>
49727
49728         Ensure fseeko, ftello are declared on glibc systems.
49729         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
49730         * modules/fseeko (configure.ac-early): Likewise.
49731         * modules/ftello (configure.ac-early): Likewise.
49732         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
49733         AC_FUNC_FSEEKO for this.
49734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
49735         (gl_CHECK_FSEEKO): Remove macro.
49736
49737 2007-04-26  Bruno Haible  <bruno@clisp.org>
49738
49739         * tests/test-fflush.c (main): Also check the ftell result after
49740         fflush and fseek/fseeko.
49741         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
49742         file descriptor position cache in the stream.
49743         * lib/fseeko.c (rpl_fseeko): Likewise.
49744
49745 2007-04-26  Bruno Haible  <bruno@clisp.org>
49746
49747         * modules/fflush-tests (Depends-on): Add fseeko.
49748
49749 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
49750             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49751
49752         * lib/argz_.h: ensure error_t definition is obtained in same
49753         mechanism system argz.h would have.
49754         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
49755         argz facilities are known bad.  Err on the side of caution if
49756         cross-compiling.
49757
49758 2007-04-25  Eric Blake  <ebb9@byu.net>
49759
49760         * lib/fpurge.c (includes): Use stdlib.h for free.
49761         * tests/test-fflush.c (main): Also test fflush-fseeko.
49762
49763 2007-04-25  Bruno Haible  <bruno@clisp.org>
49764
49765         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
49766         * lib/fseeko.c: New file.
49767         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
49768         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
49769         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
49770         gl_FUNC_FSEEKO.
49771         (gl_FUNC_FSEEKO): Invoke it.
49772         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
49773         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
49774         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
49775
49776 2007-04-25  Bruno Haible  <bruno@clisp.org>
49777
49778         * modules/fflush (Depends-on): Add ftello.
49779
49780 2007-04-25  Bruno Haible  <bruno@clisp.org>
49781
49782         * modules/ftello-tests: New file.
49783         * tests/test-ftello.c: New file.
49784
49785         * modules/ftello: New file.
49786         * m4/ftello.m4: New file.
49787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
49788         HAVE_FTELLO.
49789         * lib/stdio_.h (ftello): New declaration.
49790         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
49791         HAVE_FTELLO.
49792
49793 2007-04-25  Bruno Haible  <bruno@clisp.org>
49794
49795         * modules/fseeko-tests: New file.
49796         * tests/test-fseeko.c: New file.
49797
49798         * modules/fseeko: New file.
49799         * m4/fseeko.m4: New file.
49800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
49801         HAVE_FSEEKO.
49802         * lib/stdio_.h (fseeko): New declaration.
49803         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
49804         HAVE_FSEEKO.
49805
49806 2007-04-25  Bruno Haible  <bruno@clisp.org>
49807
49808         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
49809
49810 2007-04-25  Bruno Haible  <bruno@clisp.org>
49811
49812         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
49813         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
49814         * tests/test-unistd.c: Likewise.
49815         * tests/test-fcntl.c: Likewise.
49816
49817 2007-04-23  Eric Blake  <ebb9@byu.net>
49818
49819         * lib/fflush.c: Fix missing include.
49820         Reported by Bruno Haible.
49821
49822 2007-04-23  Bruno Haible  <bruno@clisp.org>
49823
49824         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
49825         Reported by Eric Blake.
49826
49827 2007-04-23  Bruno Haible  <bruno@clisp.org>
49828
49829         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
49830
49831 2007-04-23  Bruno Haible  <bruno@clisp.org>
49832
49833         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
49834
49835 2007-04-23  Bruno Haible  <bruno@clisp.org>
49836
49837         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
49838         Needed on HP-UX 11.
49839
49840 2007-04-16  Eric Blake  <ebb9@byu.net>
49841
49842         Make fflush rely on fpurge.
49843         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
49844         open coding all variants.
49845         * modules/fflush (Depends-on): Add fpurge and unistd.
49846         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
49847         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
49848
49849         Fix --with-tests compilation on cygwin.
49850         * modules/argmatch-tests (Makefile.am): List gnulib library first
49851         in LDADD.
49852         * modules/argp-tests (Makefile.am): Likewise.
49853         * modules/array-list-tests (Makefile.am): Likewise.
49854         * modules/array-oset-tests (Makefile.am): Likewise.
49855         * modules/avltree-list-tests (Makefile.am): Likewise.
49856         * modules/avltree-oset-tests (Makefile.am): Likewise.
49857         * modules/avltreehash-list-tests (Makefile.am): Likewise.
49858         * modules/carray-list-tests (Makefile.am): Likewise.
49859         * modules/dirname-tests (Makefile.am): Likewise.
49860         * modules/frexp-tests (Makefile.am): Likewise.
49861         * modules/isnanl-tests (Makefile.am): Likewise.
49862         * modules/linked-list-tests (Makefile.am): Likewise.
49863         * modules/linkedhash-list-tests (Makefile.am): Likewise.
49864         * modules/lock-tests (Makefile.am): Likewise.
49865         * modules/rbtree-list-tests (Makefile.am): Likewise.
49866         * modules/rbtree-oset-tests (Makefile.am): Likewise.
49867         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
49868         * modules/tls-tests (Makefile.am): Likewise.
49869         * modules/tsearch-tests (Makefile.am): Likewise.
49870         * modules/xvasprintf-tests (Makefile.am): Likewise.
49871
49872         Fix fpurge for cygwin.
49873         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
49874         value.
49875         * modules/fpurge-tests (Depends-on): Clean up trash.
49876
49877 2007-04-16  Simon Josefsson  <simon@josefsson.org>
49878
49879         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
49880
49881         * m4/autobuild.m4: Re-indent.
49882
49883 2007-04-13  Bruno Haible  <bruno@clisp.org>
49884
49885         * modules/fpurge-tests: New file.
49886         * tests/test-fpurge.c: New file.
49887
49888         * modules/fpurge: New file.
49889         * lib/fpurge.h: New file.
49890         * lib/fpurge.c: New file.
49891         * m4/fpurge.m4: New file.
49892
49893 2007-04-13  Bruno Haible  <bruno@clisp.org>
49894
49895         * modules/fbufmode-tests: New file.
49896         * tests/test-fbufmode.c: New file.
49897
49898         * modules/fbufmode: New file.
49899         * lib/fbufmode.h: New file.
49900         * lib/fbufmode.c: New file.
49901         * m4/fbufmode.m4: New file.
49902
49903 2007-04-13  Bruno Haible  <bruno@clisp.org>
49904
49905         * modules/fwritable-tests: New file.
49906         * tests/test-fwritable.c: New file.
49907
49908         * modules/fwritable: New file.
49909         * lib/fwritable.h: New file.
49910         * lib/fwritable.c: New file.
49911         * m4/fwritable.m4: New file.
49912
49913 2007-04-13  Bruno Haible  <bruno@clisp.org>
49914
49915         * modules/freadable-tests: New file.
49916         * tests/test-freadable.c: New file.
49917
49918         * modules/freadable: New file.
49919         * lib/freadable.h: New file.
49920         * lib/freadable.c: New file.
49921         * m4/freadable.m4: New file.
49922
49923 2007-04-13  Bruno Haible  <bruno@clisp.org>
49924
49925         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
49926         MOSTLYCLEANFILES.
49927
49928 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49929
49930         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
49931         gzip bootstrap.conf to avoid dragging in i18n machinery.
49932         (gnulib_tool_option): Use it.
49933
49934 2007-04-13  Bruno Haible  <bruno@clisp.org>
49935
49936         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
49937         %F directives.
49938         * tests/test-vasprintf-posix.c (test_function): Likewise.
49939         * tests/test-snprintf-posix.h (test_function): Likewise.
49940         * tests/test-sprintf-posix.h (test_function): Likewise.
49941         * tests/test-fprintf-posix.h (test_function): Likewise.
49942         * tests/test-printf-posix.h (test_function): Likewise.
49943         * tests/test-fprintf-posix.out: Likewise.
49944
49945 2007-04-13  Bruno Haible  <bruno@clisp.org>
49946
49947         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
49948         * modules/tls-tests (configure.ac): Likewise.
49949         Reported by Arto C. Nirkko <anirkko@insel.ch>.
49950
49951 2007-04-13  Bruno Haible  <bruno@clisp.org>
49952
49953         * lib/tls.c (glthread_tls_get): Fix return type.
49954         Patch by Arto C. Nirkko <anirkko@insel.ch>.
49955
49956 2007-04-12  Eric Blake  <ebb9@byu.net>
49957
49958         * modules/gettime (Depends-on): Remove gettime.
49959         Reported by Dmitry V. Levin.
49960
49961 2007-04-12  Bruno Haible  <bruno@clisp.org>
49962
49963         * modules/fflush (Include): Mention <stdio.h>.
49964         * modules/strtoimax (Include): Mention <inttypes.h>.
49965         * modules/strtoumax (Include): Likewise.
49966
49967 2007-04-12  Eric Blake  <ebb9@byu.net>
49968
49969         * .cvsignore: New file.
49970         * .gitignore: Likewise.
49971
49972 2007-04-12  Bruno Haible  <bruno@clisp.org>
49973
49974         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
49975         not before, since $(LDADD) often contains libgnu.a.
49976         * modules/striconv-tests (test_striconv_LDADD): Likewise.
49977         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
49978         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
49979         Needed on Cygwin.
49980
49981 2007-04-12  Eric Blake  <ebb9@byu.net>
49982
49983         Work around glibc's failure to flush stdin on fclose.
49984         * lib/closein.c (close_stdin): Flush stdin before closing.
49985
49986         Work around glibc's failure to reset seekable stdin on exit.
49987         * modules/closein: New module.
49988         * lib/closein.c: New file.
49989         * lib/closein.h: Likewise.
49990         * m4/closein.m4: Likewise.
49991         * MODULES.html.sh (File stream based Input/Output): Document it.
49992
49993 2007-04-12  Simon Josefsson  <simon@josefsson.org>
49994
49995         * gnulib-tool: Rename generated 'autobuild' script to
49996         'do-autobuild' in --create-megatestdir output.
49997
49998         * doc/gnulib.texi (Build robot for gnulib): Fix.
49999
50000 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50001
50002         * modules/sysexits (Depends-on): Add absolute-header.
50003
50004 2007-04-12  Eric Blake  <ebb9@byu.net>
50005
50006         No need to preserve errno on success.
50007         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
50008         Reported by Bruno Haible.
50009
50010 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50011
50012         * MODULES.html.sh (Support for maintaining and releasing
50013         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
50014
50015 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50016
50017         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
50018
50019 2007-04-12  Simon Josefsson  <simon@josefsson.org>
50020
50021         * modules/autobuild: New module.
50022
50023         * m4/autobuild.m4: New file.
50024
50025 2007-04-11  Bruno Haible  <bruno@clisp.org>
50026
50027         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
50028         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
50029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
50030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
50031         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50032         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50033         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50034         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50035         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50036         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50037         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
50038         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50039         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50040         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
50041         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50042         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
50044         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50045         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
50047         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50048         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50049         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
50050         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50051         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50052         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
50053         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
50054         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
50055         Reported by Eric Blake.
50056
50057 2007-04-11  Bruno Haible  <bruno@clisp.org>
50058
50059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
50060
50061 2007-04-10  Bruno Haible  <bruno@clisp.org>
50062
50063         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
50064         for NaN and Infinity. Needed on FreeBSD 6.1.
50065         * tests/test-vasnprintf-posix.c (test_function): Undo last change
50066         regarding results for "%010a" of Infinity and NaN.
50067         * tests/test-vasprintf-posix.c (test_function): Likewise.
50068         * tests/test-snprintf-posix.h (test_function): Likewise.
50069         * tests/test-sprintf-posix.h (test_function): Likewise.
50070         * tests/test-fprintf-posix.h (test_function): Likewise.
50071         * tests/test-printf-posix.h (test_function): Likewise.
50072         * tests/test-fprintf-posix.out: Likewise.
50073
50074 2007-04-10  Bruno Haible  <bruno@clisp.org>
50075
50076         * modules/locale-tests: New file.
50077         * tests/test-locale.c: New file.
50078
50079         * modules/locale: New file.
50080         * lib/locale_.h: New file.
50081         * m4/locale_h.m4: New file.
50082
50083 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
50084             Bruno Haible  <bruno@clisp.org>
50085
50086         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
50087         be determined, test for availability of the copysignf, copysign,
50088         copysignl functions.
50089         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
50090         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
50091         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
50092
50093 2007-04-09  Eric Blake  <ebb9@byu.net>
50094
50095         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
50096         * modules/stdio (Makefile.am): Support fflush.
50097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50098         * modules/fflush: New file.
50099         * lib/fflush.c: Likewise.
50100         * m4/fflush.m4: Likewise.
50101         * modules/fflush-tests: New test.
50102         * tests/test-fflush.c: Likewise.
50103         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
50104
50105 2007-04-06  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
50108         (VASNPRINTF): Use signbit for faster determination whether to print a
50109         minus sign.
50110         * modules/vasnprintf (Files): Remove lib/float+.h.
50111         * modules/fprintf-posix (Depends-on): Add signbit.
50112         * modules/snprintf-posix (Depends-on): Likewise.
50113         * modules/sprintf-posix (Depends-on): Likewise.
50114         * modules/vasnprintf-posix (Depends-on): Likewise.
50115         * modules/vasprintf-posix (Depends-on): Likewise.
50116         * modules/vfprintf-posix (Depends-on): Likewise.
50117         * modules/vsnprintf-posix (Depends-on): Likewise.
50118         * modules/vsprintf-posix (Depends-on): Likewise.
50119
50120 2007-04-06  Bruno Haible  <bruno@clisp.org>
50121
50122         * tests/test-frexp.c (main): Test also the sign bit of zero results.
50123         * tests/test-frexpl.c (main): Likewise.
50124         * tests/test-ldexpl.c (main): Likewise.
50125         * modules/frexp-tests (Depends-on): Add signbit.
50126         * modules/frexpl-tests (Depdends-on): Likewise.
50127         * modules/ldexpl-tests (Depdends-on): Likewise.
50128
50129 2007-04-06  Bruno Haible  <bruno@clisp.org>
50130
50131         * modules/signbit-tests: New file.
50132         * tests/test-signbit.c: New file.
50133
50134         * modules/signbit: New file.
50135         * lib/signbitf.c: New file.
50136         * lib/signbitd.c: New file.
50137         * lib/signbitl.c: New file.
50138         * m4/signbit.m4: New file.
50139         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
50140         (signbit): New macro.
50141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
50142         REPLACE_SIGNBIT.
50143         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
50144         REPLACE_FREXPL into math.h.
50145
50146 2007-04-06  Bruno Haible  <bruno@clisp.org>
50147
50148         * modules/isnanf-nolibm-tests: New file.
50149         * tests/test-isnanf.c: New file.
50150
50151         * modules/isnanf-nolibm: New file.
50152         * lib/isnanf.h: New file.
50153         * lib/isnanf.c: New file.
50154         * lib/isnan.c: Consider the USE_FLOAT macro.
50155         * m4/isnanf.m4: New file.
50156
50157 2007-04-06  Bruno Haible  <bruno@clisp.org>
50158
50159         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
50160         (Link): New section.
50161
50162         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
50163
50164 2007-04-06  Bruno Haible  <bruno@clisp.org>
50165
50166         Assume the 'long double' type.
50167         * m4/longdouble.m4: Remove file.
50168         * config/srclist.txt: Don't mention longdouble.m4.
50169         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
50170         * lib/float+.h: Likewise.
50171         * lib/frexp.c: Likewise.
50172         * lib/printf-args.h: Likewise.
50173         * lib/printf-args.c: Likewise.
50174         * lib/printf-frexp.c: Likewise.
50175         * lib/printf-parse.c: Likewise.
50176         * lib/vasnprintf.c: Likewise.
50177         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
50178         * m4/intl.m4: Likewise.
50179         * m4/isnanl.m4: Likewise.
50180         * m4/printf.m4: Likewise.
50181         * m4/printf-frexpl.m4: Likewise.
50182         * m4/vasnprintf.m4: Likewise.
50183         * modules/allocsa (Files): Remove m4/longdouble.m4.
50184         * modules/gettext (Files): Likewise.
50185         * modules/relocatable-prog-wrapper (Files): Likewise.
50186         * modules/vasnprintf (Files): Likewise.
50187         * modules/isnanl (Files): Likewise.
50188         (Include): Simplify.
50189         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
50190         (Include): Simplify.
50191         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
50192         (Include): Simplify.
50193         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
50194         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50195         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
50196         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50197         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50198         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50199         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
50200         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50201         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
50202         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50203         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
50204         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
50205         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
50206         * tests/test-isnanl.c: Likewise.
50207         * tests/test-snprintf-posix.h: Likewise.
50208         * tests/test-sprintf-posix.h: Likewise.
50209         * tests/test-vasnprintf-posix.c: Likewise.
50210         * tests/test-vasnprintf-posix2.c: Likewise.
50211         * tests/test-vasprintf-posix.c: Likewise.
50212
50213 2007-04-06  Bruno Haible  <bruno@clisp.org>
50214
50215         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
50216         * lib/math_.h [__DECC]: Include the overridden include file through
50217         #include_next, outside the double-inclusion guard.
50218         * lib/stdio_.h [__DECC]: Likewise.
50219         * lib/stdlib_.h [__DECC]: Likewise.
50220         * lib/string_.h [__DECC]: Likewise.
50221         * lib/time_.h [__DECC]: Likewise.
50222         * lib/wchar_.h [__DECC]: Likewise.
50223         * lib/wctype_.h [__DECC]: Likewise.
50224         * lib/inttypes_.h [__DECC]: Likewise.
50225         Reported by Albert Chin <china@thewrittenword.com> in
50226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
50227
50228 2007-04-04  Eric Blake  <ebb9@byu.net>
50229
50230         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
50231         1.5.x.
50232
50233 2007-04-04  Bruno Haible  <bruno@clisp.org>
50234
50235         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
50236         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
50237
50238 2007-04-04  Bruno Haible  <bruno@clisp.org>
50239
50240         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
50241         results for "%010a" of Infinity and NaN.
50242         * tests/test-vasprintf-posix.c (test_function): Likewise.
50243         * tests/test-snprintf-posix.h (test_function): Likewise.
50244         * tests/test-sprintf-posix.h (test_function): Likewise.
50245         * tests/test-fprintf-posix.h (test_function): Remove these tests.
50246         * tests/test-printf-posix.h (test_function): Likewise.
50247         * tests/test-fprintf-posix.out: Update.
50248         Needed for FreeBSD 6.1.
50249
50250 2007-04-04  Bruno Haible  <bruno@clisp.org>
50251
50252         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
50253         directly used by the gnulib modules nor by gnulib-tool.
50254
50255 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
50256
50257         * DEPENDENCIES: Give overall description of version dependency
50258         desirability.  Use more-typical names for apps.
50259         Add shell, coreutils, diffutils, grep, tar, gzip.
50260
50261 2007-04-04  Simon Josefsson  <simon@josefsson.org>
50262
50263         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
50264
50265 2007-04-04  Karl Berry  <karl@gnu.org>
50266
50267         * MODULES.html.sh (func_module): missing '.
50268
50269 2007-04-03  Bruno Haible  <bruno@clisp.org>
50270
50271         * modules/argmatch-tests (Makefile.am): New variable
50272         test_argmatch_LDADD.
50273         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
50274         * modules/array-list-tests (Makefile.am): New variable
50275         test_array_list_LDADD.
50276         * modules/array-oset-tests (Makefile.am): New variable
50277         test_array_oset_LDADD.
50278         * modules/avltree-list-tests (Makefile.am): New variable
50279         test_avltree_list_LDADD.
50280         * modules/avltree-oset-tests (Makefile.am): New variable
50281         test_avltree_oset_LDADD.
50282         * modules/avltreehash-list-tests (Makefile.am): New variable
50283         test_avltreehash_list_LDADD.
50284         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
50285         test_canonicalize_lgpl_LDADD.
50286         * modules/carray-list-tests (Makefile.am): New variable
50287         test_carray_list_LDADD.
50288         * modules/dirname-tests (Makefile.am): New variable
50289         test_dirname_LDADD.
50290         * modules/linked-list-tests (Makefile.am): New variable
50291         test_linked_list_LDADD.
50292         * modules/linkedhash-list-tests (Makefile.am): New variable
50293         test_linkedhash_list_LDADD.
50294         * modules/rbtree-list-tests (Makefile.am): New variable
50295         test_rbtree_list_LDADD.
50296         * modules/rbtree-oset-tests (Makefile.am): New variable
50297         test_rbtree_oset_LDADD.
50298         * modules/rbtreehash-list-tests (Makefile.am): New variable
50299         test_rbtreehash_list_LDADD.
50300         * modules/xvasprintf-tests (Makefile.am): New variable
50301         test_xvasprintf_LDADD.
50302         Reported by Eric Blake.
50303
50304 2007-04-03  Eric Blake  <ebb9@byu.net>
50305
50306         * DEPENDENCIES: Weaken m4 requirements.
50307
50308 2007-04-03  Bruno Haible  <bruno@clisp.org>
50309
50310         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
50311         * modules/isnanl-tests (configure.ac): Likewise.
50312
50313 2007-04-03  Ben Pfaff  <blp@gnu.org>
50314
50315         * modules/iconv_open: Add $(srcdir)/ to source directory
50316         references in Makefile fragments that call gperf, to fix VPATH
50317         builds.
50318
50319 2007-04-03  Bruno Haible  <bruno@clisp.org>
50320
50321         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
50322         * lib/ldexpl.c: Undo last change.
50323
50324 2007-04-03  Bruno Haible  <bruno@clisp.org>
50325
50326         * modules/printf-frexpl (Depends-on): Undo last change.
50327         (Files): Add m4/ldexpl.m4.
50328
50329 2007-04-03  Bruno Haible  <bruno@clisp.org>
50330
50331         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
50332         * modules/isnanl (Link): New section.
50333
50334         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
50335         * modules/frexp (Link): New section.
50336
50337         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
50338         * modules/frexpl (Link): New section.
50339
50340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
50341         * modules/ldexpl (Link): New section.
50342
50343 2007-04-03  Bruno Haible  <bruno@clisp.org>
50344
50345         * modules/TEMPLATE-EXTENDED: New file.
50346         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
50347
50348 2007-04-03  Bruno Haible  <bruno@clisp.org>
50349
50350         * DEPENDENCIES: New file.
50351         Suggested by Simon Josefsson.
50352
50353 2007-04-03  Bruno Haible  <bruno@clisp.org>
50354
50355         * doc/gnulib.texi: Escape @.
50356
50357 2007-04-03  James Youngman  <jay@gnu.org>
50358         and Paul Eggert  <eggert@cs.ucla.edu>
50359
50360         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
50361         birthtime on all systems that have birthtime, not just those which
50362         use st_birthtimensec rather than st_birthtim.  Putting zero in
50363         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
50364         that the birth time is not available for files on an NFS mount.
50365
50366 2007-04-03  Simon Josefsson  <simon@josefsson.org>
50367
50368         * modules/memxor: Move back from crypto/, suggested by Bruno.
50369         * modules/crypto/hmac-sha1: Fix memxor dependency.
50370
50371         * modules/crypto/gc: Moved from ../.
50372
50373 2007-04-02  Eric Blake  <ebb9@byu.net>
50374
50375         * lib/ldexpl.c (includes): Avoid libm.
50376
50377         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
50378
50379 2007-04-02  Bruno Haible  <bruno@clisp.org>
50380
50381         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
50382         on IRIX.
50383
50384 2007-04-02  Bruno Haible  <bruno@clisp.org>
50385
50386         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
50387         x86 or x86_64 platforms running MacOS X.
50388         Reported by Ryan Schmidt <@ryandesign.com>.
50389
50390 2007-04-02  Bruno Haible  <bruno@clisp.org>
50391
50392         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
50393         i386.
50394
50395 2007-04-01  Simon Josefsson  <simon@josefsson.org>
50396
50397         * modules/crypto/arcfour: Moved from ../.
50398         * modules/crypto/arcfour-tests: Moved from ../.
50399         * modules/crypto/arctwo: Moved from ../.
50400         * modules/crypto/arctwo-tests: Moved from ../.
50401         * modules/crypto/des: Moved from ../.
50402         * modules/crypto/des-tests: Moved from ../.
50403         * modules/crypto/gc-arcfour: Moved from ../.
50404         * modules/crypto/gc-arcfour-tests: Moved from ../.
50405         * modules/crypto/gc-arctwo: Moved from ../.
50406         * modules/crypto/gc-arctwo-tests: Moved from ../.
50407         * modules/crypto/gc-des: Moved from ../.
50408         * modules/crypto/gc-des-tests: Moved from ../.
50409         * modules/crypto/gc-hmac-md5: Moved from ../.
50410         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
50411         * modules/crypto/gc-hmac-sha1: Moved from ../.
50412         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
50413         * modules/crypto/gc-md2: Moved from ../.
50414         * modules/crypto/gc-md2-tests: Moved from ../.
50415         * modules/crypto/gc-md4: Moved from ../.
50416         * modules/crypto/gc-md4-tests: Moved from ../.
50417         * modules/crypto/gc-md5: Moved from ../.
50418         * modules/crypto/gc-md5-tests: Moved from ../.
50419         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
50420         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
50421         * modules/crypto/gc-random: Moved from ../.
50422         * modules/crypto/gc-rijndael: Moved from ../.
50423         * modules/crypto/gc-rijndael-tests: Moved from ../.
50424         * modules/crypto/gc-sha1: Moved from ../.
50425         * modules/crypto/gc-sha1-tests: Moved from ../.
50426         * modules/crypto/gc-tests: Moved from ../.
50427         * modules/crypto/hmac-md5: Moved from ../.
50428         * modules/crypto/hmac-md5-tests: Moved from ../.
50429         * modules/crypto/hmac-sha1: Moved from ../.
50430         * modules/crypto/hmac-sha1-tests: Moved from ../.
50431         * modules/crypto/md2: Moved from ../.
50432         * modules/crypto/md2-tests: Moved from ../.
50433         * modules/crypto/md4: Moved from ../.
50434         * modules/crypto/md4-tests: Moved from ../.
50435         * modules/crypto/md5: Moved from ../.
50436         * modules/crypto/md5-tests: Moved from ../.
50437         * modules/crypto/memxor: Moved from ../.
50438         * modules/crypto/rijndael: Moved from ../.
50439         * modules/crypto/rijndael-tests: Moved from ../.
50440         * modules/crypto/sha1: Moved from ../.
50441
50442 2007-03-30  James Youngman  <jay@gnu.org>
50443
50444         * tests/test-stat-time.c (prepare_test): use chmod() rather than
50445         rename() to change the ctime of a file (because ctime is unaffected
50446         by rename on jfs2 on AIX 5.1).
50447         (main): Start by doing cleanup, in case a previous run failed leaving
50448         test files behind.
50449
50450 2007-03-31  Bruno Haible  <bruno@clisp.org>
50451
50452         Support old proprietary implementations of iconv.
50453         * modules/iconv_open: New file.
50454         * lib/iconv_.h: New file.
50455         * m4/iconv_h.m4: New file.
50456         * lib/iconv_open.c: New file.
50457         * lib/iconv_open-aix.gperf: New file.
50458         * lib/iconv_open-hpux.gperf: New file.
50459         * lib/iconv_open-irix.gperf: New file.
50460         * lib/iconv_open-osf.gperf: New file.
50461         * m4/iconv_open.m4: New file.
50462         * modules/linebreak (Depends-on): Add iconv_open.
50463         * modules/striconv (Depends-on): Likewise.
50464         * modules/striconveh (Depends-on): Likewise.
50465         * modules/unicodeio (Depends-on): Likewise.
50466         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
50467         (iconv_t)(-1).
50468         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
50469         conversion if cd is (iconv_t)(-1).
50470         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
50471         is not possible.
50472
50473 2007-03-31  Bruno Haible  <bruno@clisp.org>
50474
50475         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50476         work on Solaris either. Protect also second use of "autodetect_jp".
50477
50478 2007-03-31  Bruno Haible  <bruno@clisp.org>
50479
50480         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
50481         the function is not present.
50482
50483 2007-03-31  Bruno Haible  <bruno@clisp.org>
50484
50485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
50486         the function is not present.
50487
50488 2007-03-31  Bruno Haible  <bruno@clisp.org>
50489
50490         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
50491         a bug in HP-UX iconv_open().
50492
50493 2007-03-31  Bruno Haible  <bruno@clisp.org>
50494
50495         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
50496         (Mathematics <math.h>): New section, add fpieee.
50497         (Input/output <stdio.h>): Add fseterr.
50498         (Mathematics <math.h>): New section, add printf-frexp.
50499         (Container data structures): Add sublist.
50500         (Core language properties): Add fpucw, inline.
50501         (Functions for greatest-width integer types <inttypes.h>): Add
50502         imaxabs, imaxdiv, inttypes.
50503         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
50504         isnanl-nolibm, ldexp.
50505         (Mathematics <math.h>): New section, add printf-frexpl.
50506         (Support for systems lacking POSIX:2001): Add fprintf-posix,
50507         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
50508         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
50509         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
50510         (Unicode string functions): Add unistr/u*-mbtoucr.
50511         (Java): Add javacomp-script, javaexec-script.
50512         (C#): Add csharpcomp-script, csharpexec-script.
50513         (Support for building libraries and executables): Add havelib,
50514         relocatable-*.
50515         (Support for maintaining and releasing projects): Renamed from
50516         'Support for maintaining and release projects'. Add announce-gen.
50517
50518 2007-03-31  Bruno Haible  <bruno@clisp.org>
50519
50520         * README: Talk primarily about git.
50521         (git and CVS): Renamed from CVS.
50522         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
50523         gnulib is available through git.
50524         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
50525
50526 2007-03-30  Bruno Haible  <bruno@clisp.org>
50527
50528         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
50529         * lib/poll_.h: Likewise.
50530         * lib/stat_.h: Likewise.
50531         * lib/sys_time_.h: Likewise.
50532         * lib/sysexit_.h: Likewise.
50533         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
50534         * lib/stdbool_.h: Likewise.
50535         * lib/byteswap_.h: Add double-inclusion guard.
50536
50537 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
50538
50539         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
50540
50541 2007-03-30  Karl Berry  <karl@gnu.org>
50542
50543         * config/srclist-update: double space after USA in the license
50544         substitution, since that's how it's usually (?) written.
50545
50546 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
50547
50548         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
50549         reported by Bruno Haible.
50550
50551 2007-03-29  Bruno Haible  <bruno@clisp.org>
50552
50553         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
50554         a bug in AIX iconv().
50555
50556 2007-03-29  Bruno Haible  <bruno@clisp.org>
50557
50558         * modules/ldexpl-tests: New file.
50559         * tests/test-ldexpl.c: New file.
50560
50561 2007-03-29  Bruno Haible  <bruno@clisp.org>
50562
50563         * lib/ldexpl.c: Include fpucw.h.
50564         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
50565         multiplication.
50566         * modules/ldexpl (Depends-on): Add fpucw.
50567
50568 2007-03-29  Bruno Haible  <bruno@clisp.org>
50569
50570         * modules/ldexpl: New file.
50571         * m4/ldexpl.m4: New file.
50572         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
50573         set.
50574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
50575         REPLACE_LDEXPL.
50576         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
50577         REPLACE_LDEXPL.
50578         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50579         gl_FUNC_LDEXPL_WORKS.
50580         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
50581         * modules/mathl (Files): Remove lib/ldexpl.c.
50582         (Depends-on): Add ldexpl.
50583
50584 2007-03-29  Bruno Haible  <bruno@clisp.org>
50585
50586         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
50587
50588 2007-03-29  Bruno Haible  <bruno@clisp.org>
50589
50590         * tests/test-striconveh.c (main): Don't assume that a direct conversion
50591         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
50592         and possibly also HP-UX.
50593         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
50594         work on AIX, IRIX, HP-UX, OSF/1.
50595         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
50596         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
50597         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
50598         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
50599         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
50600         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
50601
50602 2007-03-29  Bruno Haible  <bruno@clisp.org>
50603
50604         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
50605
50606 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50607
50608         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
50609         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
50610
50611 2007-03-29  Eric Blake  <ebb9@byu.net>
50612
50613         * lib/acl-internal.h: Remove redundant include.
50614         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
50615         Cygwin when a file is locked.
50616
50617 2007-03-29  Bruno Haible  <bruno@clisp.org>
50618
50619         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
50620         file.
50621         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
50622
50623 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
50624
50625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
50626         try to remove a parent directory if the child couldn't be removed
50627         (except for the first rmdir, which could fail because the child
50628         doesn't exist).  Problem reported by Jeff Blaine in
50629         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
50630
50631 2007-03-28  Bruno Haible  <bruno@clisp.org>
50632
50633         * lib/striconveh.c (utf8conv_carefully): New function.
50634         (mem_cd_iconveh_internal): Invoke it.
50635
50636 2007-03-28  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
50639         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
50640         input.
50641         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
50642         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
50643         unistr/u8-uctomb.
50644
50645 2007-03-28  Bruno Haible  <bruno@clisp.org>
50646
50647         * modules/unistr/u8-mbtoucr: New file.
50648         * lib/unistr/u8-mbtoucr.c: New file.
50649         * modules/unistr/u16-mbtoucr: New file.
50650         * lib/unistr/u16-mbtoucr.c: New file.
50651         * modules/unistr/u16-mbtoucr: New file.
50652         * lib/unistr/u16-mbtoucr.c: New file.
50653         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
50654
50655 2007-03-27  Simon Josefsson  <simon@josefsson.org>
50656             Bruno Haible  <bruno@clisp.org>
50657
50658         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
50659         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
50660         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
50661
50662         * m4/stdio_h.m4: Add stubs for vasprintf too.
50663
50664         * modules/stdio: Support vasprintf in sed command.
50665
50666         * modules/vasprintf: Depend on stdio for prototypes.  Remove
50667         vasprintf.h.  Add stdio module indicator.
50668
50669         * lib/stdio_.h: Declare asprintf and vasprintf, based on
50670         vasprintf.h.
50671
50672         * lib/vasprintf.h: File removed.
50673
50674         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
50675         * lib/vasprintf.c: Ditto.
50676         * lib/xvasprintf.c: Ditto.
50677         * tests/test-vasprintf-posix.c: Ditto.
50678         * tests/test-vasprintf.c: Ditto.
50679
50680 2007-03-27  Bruno Haible  <bruno@clisp.org>
50681
50682         Make vasnprintf multithread-safe.
50683         * lib/vasnprintf.c (decimal_point_char): New function.
50684         (VASNPRINTF): Use it.
50685         Suggested by Simon Josefsson.
50686
50687 2007-03-27  Eric Blake  <ebb9@byu.net>
50688
50689         Support sub-second birthtime on cygwin.
50690         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
50691         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
50692         (get_stat_birthtime): Also work with st_birthtim.
50693
50694 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
50695
50696         * lib/stat-time.h (USE_BIRTHTIME): Remove.
50697         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
50698         (get_stat_birthtime_ns): Do not try to use "spare" fields.
50699         (get_stat_birthtime_ns): Simplify compile-time tests.
50700         (get_stat_birthtime): Change the API to look like
50701         get_stat_mtime etc., except return a negative tv_nsec on error.
50702         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
50703         Don't check for "spare" fields.
50704         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
50705         or for struct stat.st_birthtime, as these tests aren't used.
50706         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
50707
50708 2007-03-27  Bruno Haible  <bruno@clisp.org>
50709
50710         * lib/stat-time.h: Include <sys/stat.h>.
50711
50712 2007-03-27  James Youngman  <jay@gnu.org>
50713
50714         * lib/stat-time.h (get_stat_birthtime): New function for
50715           retrieving st_birthtime as provided by UFS2 (hence *BSD).
50716         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
50717           and its variants.
50718         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
50719         * modules/stat-time-test: New file.
50720         * tests/test-stat-time.c: New test, devised by Bruno Haible.
50721
50722 2007-03-26  Bruno Haible  <bruno@clisp.org>
50723
50724         Better support of signalling NaNs.
50725         * lib/atanl.c: Include isnanl.h.
50726         (atanl): Perform test for NaN at the beginning of the function and
50727         through a call to isnanl.
50728         * lib/cosl.c: Include isnanl.h.
50729         (cosl): Perform test for NaN at the beginning of the function and
50730         through a call to isnanl.
50731         * lib/ldexpl.c: Include isnanl.h.
50732         (ldexpl): Perform test for NaN through a call to isnanl.
50733         * lib/logl.c: Include isnanl.h.
50734         (logl): Perform test for NaN at the beginning of the function and
50735         through a call to isnanl.
50736         * lib/sinl.c: Include isnanl.h.
50737         (sinl): Perform test for NaN at the beginning of the function and
50738         through a call to isnanl.
50739         * lib/sqrtl.c: Include isnanl.h.
50740         (sqrtl): Perform test for NaN at the beginning of the function and
50741         through a call to isnanl.
50742         * lib/tanl.c: Include isnanl.h.
50743         (tanl): Perform test for NaN at the beginning of the function and
50744         through a call to isnanl.
50745         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
50746         * modules/mathl (Depends-on): Add isnanl.
50747
50748 2007-03-26  Eric Blake  <ebb9@byu.net>
50749
50750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
50751         regression in logic sense of previous patch.
50752
50753 2007-03-26  Bruno Haible  <bruno@clisp.org>
50754
50755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
50756         unportable shell command "if ! ...".
50757         Reported by Ralf Wildenhues.
50758
50759 2007-03-25  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
50762         <sysexits.h> file, and only add EX_CONFIG.
50763         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
50764         absolute file name and whether it is sufficient. Substitute also
50765         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
50766         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
50767         ABSOLUTE_SYSEXITS_H into sysexits.h.
50768
50769 2007-03-25  Bruno Haible  <bruno@clisp.org>
50770
50771         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
50772         hints is NULL.
50773
50774 2007-03-25  Bruno Haible  <bruno@clisp.org>
50775
50776         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
50777         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
50778
50779 2007-03-25  Bruno Haible  <bruno@clisp.org>
50780
50781         * lib/vasnprintf.c: Include langinfo.h.
50782         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
50783         multithread-safe.
50784         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
50785         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
50786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50789         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50790         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50791         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
50792         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50793         Reported by Simon Josefsson.
50794
50795 2007-03-25  Bruno Haible  <bruno@clisp.org>
50796
50797         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
50798         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
50799         * modules/vasnprintf (Depends-on): Add stdint.
50800
50801 2007-03-25  Bruno Haible  <bruno@clisp.org>
50802
50803         * modules/fpieee: New file.
50804         * m4/fpieee.m4: New file.
50805         * modules/isnan-nolibm (Depends-on): Add fpieee.
50806         * modules/isnanl-nolibm (Depends-on): Add fpieee.
50807         * modules/isnanl (Depends-on): Add fpieee.
50808
50809 2007-03-25  Bruno Haible  <bruno@clisp.org>
50810
50811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
50812
50813 2007-03-25  Bruno Haible  <bruno@clisp.org>
50814
50815         Avoid test failures on IRIX 6.5.
50816         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
50817         (main): Use it.
50818         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
50819         macros.
50820         (main): Use them.
50821
50822 2007-03-25  Bruno Haible  <bruno@clisp.org>
50823
50824         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
50825         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
50826         exists but doesn't work.
50827         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
50828         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
50829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
50830         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
50831
50832 2007-03-25  Bruno Haible  <bruno@clisp.org>
50833
50834         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
50835         returns inf. Needed on IRIX 6.5.
50836
50837 2007-03-25  Bruno Haible  <bruno@clisp.org>
50838
50839         * tests/test-frexpl.c: Include isnanl-nolibm.h.
50840         (main): Use isnanl instead of x != x idiom.
50841         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
50842
50843         * tests/test-frexp.c: Include isnan.h.
50844         (main): Use isnan instead of x != x idiom.
50845         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
50846
50847 2007-03-25  Bruno Haible  <bruno@clisp.org>
50848
50849         * tests/test-frexp.c (NaN): New function/macro.
50850         (main): Use it instead of 0.0 / 0.0.
50851         * tests/test-isnan.c (NaN): New function/macro.
50852         (main): Use it instead of 0.0 / 0.0.
50853         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
50854         (test_function): Use it instead of 0.0 / 0.0.
50855         * tests/test-vasprintf-posix.c (NaN): New function/macro.
50856         (test_function): Use it instead of 0.0 / 0.0.
50857         * tests/test-snprintf-posix.h (NaN): New function/macro.
50858         (test_function): Use it instead of 0.0 / 0.0.
50859         * tests/test-sprintf-posix.h (NaN): New function/macro.
50860         (test_function): Use it instead of 0.0 / 0.0.
50861         * tests/test-fprintf-posix.h (NaN): New function/macro.
50862         (test_function): Use it instead of 0.0 / 0.0.
50863         * tests/test-printf-posix.h (NaN): New function/macro.
50864         (test_function): Use it instead of 0.0 / 0.0.
50865
50866         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
50867
50868 2007-03-25  Bruno Haible  <bruno@clisp.org>
50869
50870         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
50871
50872 2007-03-25  Bruno Haible  <bruno@clisp.org>
50873
50874         * lib/regexec.c (merge_state_with_log): Make static.
50875
50876 2007-03-25  Bruno Haible  <bruno@clisp.org>
50877
50878         * lib/trigl.c (kernel_rem_pio2): Make static.
50879
50880 2007-03-25  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/sincosl.c (sincosl_table): Make static.
50883
50884 2007-03-25  Bruno Haible  <bruno@clisp.org>
50885
50886         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
50887         if the compiler does not support C99.
50888
50889 2007-03-25  Bruno Haible  <bruno@clisp.org>
50890
50891         * modules/time (Makefile.am): Ensure all rule action lines start with a
50892         tab.
50893
50894 2007-03-24  Bruno Haible  <bruno@clisp.org>
50895
50896         * modules/tsearch-tests: New file.
50897         * tests/test-tsearch.sh: New file.
50898         * tests/test-tsearch.c: New file, mostly copied from glibc.
50899
50900         * modules/search-tests: New file.
50901         * tests/test-search.c: New file.
50902
50903         * modules/search: New file.
50904         * lib/search_.h: New file, incorporating lib/tsearch.h.
50905         * m4/search_h.m4: New file.
50906         * lib/tsearch.h: Remove file.
50907         * lib/tsearch.c: Include search.h instead of tsearch.h.
50908         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
50909         HAVE_TSEARCH.
50910         * modules/tsearch (Files): Remove lib/tsearch.h.
50911         (Depends-on): Add search.
50912         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
50913         (Include): Change tsearch.h into search.h.
50914
50915 2007-03-24  Bruno Haible  <bruno@clisp.org>
50916
50917         * modules/fpucw: New file.
50918         * lib/fpucw.h: New file.
50919         * lib/frexp.c: Include fpucw.h.
50920         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50921         (FUNC): Use them.
50922         * lib/printf-frexp.c: Include fpucw.h.
50923         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
50924         (FUNC): Use them.
50925         * lib/vasnprintf.c: Include fpucw.h.
50926         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
50927         'long double' calculations.
50928         * tests/test-frexpl.c: Include fpucw.h.
50929         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50930         * tests/test-printf-frexpl.c: Include fpucw.h.
50931         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
50932         * modules/frexpl (Depends-on): Add fpucw.
50933         * modules/printf-frexpl (Depends-on): Likewise.
50934         * modules/fprintf-posix (Depends-on): Likewise.
50935         * modules/snprintf-posix (Depends-on): Likewise.
50936         * modules/sprintf-posix (Depends-on): Likewise.
50937         * modules/vasnprintf-posix (Depends-on): Likewise.
50938         * modules/vasprintf-posix (Depends-on): Likewise.
50939         * modules/vfprintf-posix (Depends-on): Likewise.
50940         * modules/vsnprintf-posix (Depends-on): Likewise.
50941         * modules/vsprintf-posix (Depends-on): Likewise.
50942         * modules/frexpl-tests (Depends-on): Likewise.
50943         * modules/printf-frexpl-tests (Depends-on): Likewise.
50944
50945 2007-03-24  Bruno Haible  <bruno@clisp.org>
50946
50947         * lib/float+.h: New file.
50948         * lib/isnan.c: Include float+.h.
50949         (SIZE): New macro.
50950         (FUNC): Compare only SIZE bytes of the value.
50951         * lib/vasnprintf.c: Include float+.h.
50952         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
50953         SIZEOF_LDBL or SIZEOF_DBL bytes.
50954         * modules/isnan-nolibm (Files): Add lib/float+.h.
50955         * modules/isnanl-nolibm (Files): Add lib/float+.h.
50956         * modules/isnanl (Files): Add lib/float+.h.
50957         * modules/vasnprintf (Files): Add lib/float+.h.
50958
50959 2007-03-24  Bruno Haible  <bruno@clisp.org>
50960
50961         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
50962         include isnanl-nolibm.h.
50963
50964 2007-03-24  Bruno Haible  <bruno@clisp.org>
50965
50966         * tests/test-read-file.c (main): Don't produce spurious output for
50967         expected situations. Make the test fail if it encountered unexpected
50968         results.
50969
50970 2007-03-24  Bruno Haible  <bruno@clisp.org>
50971
50972         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
50973         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
50974
50975 2007-03-24  Bruno Haible  <bruno@clisp.org>
50976
50977         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
50978
50979 2007-03-24  Bruno Haible  <bruno@clisp.org>
50980
50981         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
50982         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
50983
50984         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
50985         * modules/utf8-ucs4: Turn into a symbolic link to module
50986         unistr/u8-mbtouc.
50987
50988         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
50989         utf8-ucs4-unsafe.
50990         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
50991         unistr/u8-mbtouc-unsafe.
50992
50993         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
50994         * modules/utf16-ucs4: Turn into a symbolic link to module
50995         unistr/u16-mbtouc.
50996
50997         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
50998         utf16-ucs4-unsafe.
50999         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
51000         unistr/u16-mbtouc-unsafe.
51001
51002         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
51003         * modules/ucs4-utf8: Turn into a symbolic link to module
51004         unistr/u8-ubtomb.
51005
51006         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
51007         * modules/ucs4-utf16: Turn into a symbolic link to module
51008         unistr/u16-ubtomb.
51009
51010 2007-03-24  Bruno Haible  <bruno@clisp.org>
51011
51012         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
51013         Enable the function only if HAVE_INLINE.
51014         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
51015         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51016         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
51017         Enable the function only if HAVE_INLINE.
51018         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
51019         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
51020         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
51021         Enable the function only if HAVE_INLINE.
51022         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
51023         Enable the function only if HAVE_INLINE.
51024         * modules/utf8-ucs4: Update.
51025         * modules/utf8-ucs4-unsafe: Update.
51026         * modules/utf16-ucs4: Update.
51027         * modules/utf16-ucs4-unsafe: Update.
51028         * modules/ucs4-utf8: Update.
51029         * modules/ucs4-utf16: Update.
51030
51031 2007-03-24  Bruno Haible  <bruno@clisp.org>
51032
51033         * lib/utf8-ucs4.h: Remove file.
51034         * lib/utf8-ucs4-unsafe.h: Remove file.
51035         * lib/utf16-ucs4.h: Remove file.
51036         * lib/utf16-ucs4-unsafe.h: Remove file.
51037         * lib/ucs4-utf8.h: Remove file.
51038         * lib/ucs4-utf16.h: Remove file.
51039         * lib/unistr.h: Include their previous contents.
51040         * m4/utf-ucs4.m4: Remove file.
51041         * m4/ucs4-utf.m4: Remove file.
51042         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
51043         (Depends-on): Add unistr/base.
51044         (configure.ac): Remove gl_UTF_UCS4.
51045         (Makefile.am): Update.
51046         (Include): Change to unistr.h.
51047         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
51048         (Depends-on): Add unistr/base.
51049         (configure.ac): Remove gl_UTF_UCS4.
51050         (Makefile.am): Update.
51051         (Include): Change to unistr.h.
51052         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
51053         (Depends-on): Add unistr/base.
51054         (configure.ac): Remove gl_UTF_UCS4.
51055         (Makefile.am): Update.
51056         (Include): Change to unistr.h.
51057         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
51058         (Depends-on): Add unistr/base.
51059         (configure.ac): Remove gl_UTF_UCS4.
51060         (Makefile.am): Update.
51061         (Include): Change to unistr.h.
51062         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
51063         (Depends-on): Add unistr/base.
51064         (configure.ac): Remove gl_UCS4_UTF.
51065         (Makefile.am): Update.
51066         (Include): Change to unistr.h.
51067         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
51068         (Depends-on): Add unistr/base.
51069         (configure.ac): Remove gl_UCS4_UTF.
51070         (Makefile.am): Update.
51071         (Include): Change to unistr.h.
51072         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
51073         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
51074         utf8-ucs4-unsafe.h.
51075         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
51076         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
51077         utf16-ucs4-unsafe.h.
51078         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
51079         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
51080         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
51081         * lib/unistr/u8-strchr.c: Likewise.
51082         * lib/unistr/u8-strrchr.c: Likewise.
51083         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
51084         * lib/unistr/u16-strchr.c: Likewise.
51085         * lib/unistr/u16-strrchr.c: Likewise.
51086         * lib/striconveh.c: Update.
51087         * lib/linebreak.c: Update.
51088
51089 2007-03-24  Bruno Haible  <bruno@clisp.org>
51090
51091         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
51092         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
51093
51094 2007-03-22  Bruno Haible  <bruno@clisp.org>
51095
51096         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
51097
51098 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51099
51100         * MODULES.html.sh (File system functions): New module write-any-file.
51101         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
51102         * m4/write-any-file.m4: New files.
51103
51104 2007-03-23  Eric Blake  <ebb9@byu.net>
51105
51106         * gnulib-tool: Rearrange space-tab sequences, since some editors
51107         like to eat them.
51108
51109 2007-03-23  Eric Blake  <ebb9@byu.net>
51110
51111         * lib/version-etc.c (version_etc_va): Update license wording to
51112         be more concise.  Recommended by Richard Stallman.
51113
51114 2007-03-22  Bruno Haible  <bruno@clisp.org>
51115
51116         * lib/poll.c (MSG_PEEK): New fallback definition.
51117
51118 2007-03-22  Bruno Haible  <bruno@clisp.org>
51119
51120         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
51121         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
51122         (main): Update.
51123         Fixes a compilation error on BeOS.
51124
51125 2007-03-22  Bruno Haible  <bruno@clisp.org>
51126
51127         * modules/frexpl-tests: New file.
51128         * tests/test-frexpl.c: New file.
51129
51130         * modules/frexpl: New file.
51131         * m4/frexpl.m4: New file.
51132         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
51133         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
51134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
51135         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
51136         (Depends-on): Add frexpl. Remove isnanl-nolibm.
51137         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
51138
51139 2007-03-22  Bruno Haible  <bruno@clisp.org>
51140
51141         * lib/frexpl.c: Share code with lib/frexp.c.
51142         * modules/mathl (Files): Add lib/frexp.c.
51143         (Depends-on): Add isnanl-nolibm.
51144
51145 2007-03-22  Bruno Haible  <bruno@clisp.org>
51146
51147         * modules/printf-frexp (Files): Add m4/frexp.m4.
51148         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
51149         only if the found frexp function actually works.
51150
51151 2007-03-22  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/frexp.c: Remove older implementation that uses divisions.
51154
51155 2007-03-21  Bruno Haible  <bruno@clisp.org>
51156
51157         * modules/frexp-tests: New file.
51158         * tests/test-frexp.c: New file.
51159
51160         * modules/frexp: New file.
51161         * lib/frexp.c: New file.
51162         * m4/frexp.m4: New file.
51163         * lib/math_.h (frexp): New declaration.
51164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
51165         REPLACE_FREXP.
51166         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
51167
51168 2007-03-21  Bruno Haible  <bruno@clisp.org>
51169
51170         * modules/isnanl-tests: New file.
51171         * tests/test-isnanl.c: New file.
51172
51173         * modules/isnanl: New file.
51174         * lib/isnanl.h: New file.
51175         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
51176         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
51177         gl_FUNC_ISNANL_WORKS.
51178         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
51179         New macros.
51180
51181 2007-03-21  Bruno Haible  <bruno@clisp.org>
51182
51183         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
51184         lib/isnanl.h.
51185         (Include): Update.
51186         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
51187         * lib/vasnprintf.c: Update.
51188         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
51189         tests/test-isnanl.h, remove tests/test-isnanl.c.
51190         (Makefile.am): Update.
51191         * tests/test-isnanl-nolibm.c: New file.
51192         * tests/test-isnanl.h: New file.
51193         * tests/test-isnanl.c: Remove file.
51194
51195 2007-03-21  Jim Meyering  <jim@meyering.net>
51196
51197         When trying to open ".", treat ESTALE like EACCES.
51198         * lib/savewd.c (savewd_save): Resort to forking not just upon
51199         failure with EACCES, but also when errno is ESTALE.
51200
51201 2007-03-20  Bruno Haible  <bruno@clisp.org>
51202
51203         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
51204         Needed on AIX 5.1. Reported by Matthew Woehlke.
51205
51206 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51207
51208         Suggestions by Bruno Haible:
51209         * lib/acl-internal.h: Include "gettext.h" rather than rolling
51210         our own.
51211         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
51212         * modules/acl (Depends-on): Add gettext.
51213
51214 2007-03-19  Bruno Haible  <bruno@clisp.org>
51215
51216         * modules/iconvme: Remove file.
51217         * lib/iconvme.h: Remove file.
51218         * lib/iconvme.c: Remove file.
51219         * m4/iconvme.m4: Remove file.
51220
51221 2007-03-19  Bruno Haible  <bruno@clisp.org>
51222
51223         * doc/relocatable-maint.texi: Break long shell script line.
51224         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51225
51226 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51227
51228         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
51229         handle file_has_acl.
51230         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
51231         * lib/acl.c: Move header inclusions and related macro defns into
51232         lib/acl-internal.h.
51233         (S_ISLNK): Remove defn, since that's now done for us.
51234         (file_has_acl): Move to lib/file-has-acl.c.
51235         Call acl_trivial if available.  This is the crucial part of the fix.
51236         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
51237         shared within the library.  Rewrite a bit, partly to make it compatible
51238         with the GNU coding style.
51239         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
51240         Remove unnecessary double-quotes.
51241         Don't test for acl_to_text; the build will catch that.
51242         Replace acl_entries if it doesn't exist and it is needed.
51243         Check for -lsec and acl_trivial (as used on Solaris 10).
51244         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
51245         lib/file-has-acl.c.
51246         (Depends-on): Add sys_stat, for S_ISLNK.
51247
51248 2007-03-19  Ben Pfaff  <blp@gnu.org>
51249
51250         * doc/gnulib.texi: Fix typos.
51251         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
51252
51253 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
51254
51255         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
51256         If size is zero here, buf must be zero.
51257
51258 2007-03-19  Simon Josefsson  <simon@josefsson.org>
51259
51260         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
51261         <bruno@clisp.org>.
51262
51263 2007-03-18  Bruno Haible  <bruno@clisp.org>
51264
51265         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
51266         Suggested by Eric Blake.
51267
51268 2007-03-18  Ben Pfaff  <blp@gnu.org>
51269
51270         * doc/relocatable.texi: Recommend using as prefix a directory
51271         that does not exist and will never be created.  Based on
51272         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
51273         and others.
51274
51275 2007-03-17  Bruno Haible  <bruno@clisp.org>
51276
51277         * lib/fchownat.c: Include lchown.h.
51278
51279 2007-03-17  Bruno Haible  <bruno@clisp.org>
51280
51281         Fix endless loop when the given allocated size was > INT_MAX.
51282         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
51283         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
51284         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
51285         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
51286         * lib/sprintf.c (sprintf): Likewise.
51287
51288 2007-03-17  Bruno Haible  <bruno@clisp.org>
51289
51290         * tests/test-argp-2.sh (func_compare): Output a context diff.
51291
51292 2007-03-17  Bruno Haible  <bruno@clisp.org>
51293
51294         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
51295         locale's decimal-point character.
51296
51297 2007-03-17  Bruno Haible  <bruno@clisp.org>
51298
51299         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
51300         before comparing it. Needed because on some platforms (e.g. x86) a
51301         'long double' occupies less bytes than sizeof (long double).
51302
51303 2007-03-17  Bruno Haible  <bruno@clisp.org>
51304
51305         * tests/test-crc.c (main): Make printf statements 64-bit clean.
51306         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
51307         * tests/test-getaddrinfo.c (simple): Likewise.
51308         * tests/test-read-file.c (main): Likewise.
51309
51310 2007-03-17  Bruno Haible  <bruno@clisp.org>
51311
51312         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
51313
51314 2007-03-17  Bruno Haible  <bruno@clisp.org>
51315
51316         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
51317         unused variable.
51318
51319 2007-03-17  Bruno Haible  <bruno@clisp.org>
51320
51321         * tests/test-c-strcasecmp.c: Include c-strcase.h.
51322         * tests/test-c-strncasecmp.c: Likewise.
51323
51324 2007-03-17  Bruno Haible  <bruno@clisp.org>
51325
51326         * modules/stdlib (Depends-on): Add unistd.
51327         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
51328         Needed for MacOS X 10.3.
51329
51330 2007-03-17  Bruno Haible  <bruno@clisp.org>
51331
51332         * lib/unistr/u-strdup.h: Include <stdlib.h>.
51333
51334 2007-03-17  Bruno Haible  <bruno@clisp.org>
51335
51336         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
51337
51338 2007-03-17  Bruno Haible  <bruno@clisp.org>
51339
51340         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
51341         to reflect files copied from gnulib (with or without modifications).
51342         Suggested by Jim Meyering.
51343
51344 2007-03-17  Eric Blake  <ebb9@byu.net>
51345
51346         * NEWS: Document stdlib change from 2007-02-18.
51347
51348 2007-03-17  Jim Meyering  <jim@meyering.net>
51349
51350         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
51351         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
51352         someone uses a name containing shell meta-characters.
51353         Reported by Alfred M. Szmidt.
51354
51355         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
51356
51357 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51358
51359         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
51360         and copy gettext configuration files only if configure.ac contains
51361         a use of AM_GNU_GETTEXT_VERSION.
51362
51363 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
51364
51365         * build-aux/bootstrap (gnulib_name): New variable.
51366         (gnulib_tool_options): Use it.
51367
51368 2007-03-13  Simon Josefsson  <simon@josefsson.org>
51369
51370         * tests/test-des.c: Use new namespace.
51371
51372 2007-03-15  Bruno Haible  <bruno@clisp.org>
51373
51374         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
51375         Reported by James Youngman <jay@gnu.org>.
51376
51377 2007-03-15  Bruno Haible  <bruno@clisp.org>
51378
51379         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
51380         declared prototype. Needed with cc on OSF/1 5.1.
51381
51382 2007-03-15  Bruno Haible  <bruno@clisp.org>
51383
51384         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
51385         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
51386         (struct gl_list_implementation): Add dispose_fn argument to the
51387         'create_empty', 'create' methods.
51388         (struct gl_list_impl_base): Add field 'dispose_fn'.
51389         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
51390         argument.
51391         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
51392         dispose_fn argument.
51393         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
51394         dispose_fn on the dropped values.
51395         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
51396         dispose_fn argument.
51397         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
51398         dropped values.
51399         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
51400         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51401         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
51402         (gl_tree_remove_node): Call dispose_fn on the dropped value.
51403         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
51404         argument.
51405         (gl_tree_list_free): Call dispose_fn on the dropped values.
51406         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
51407         the dropped values.
51408         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
51409         Add dispose_fn argument.
51410         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
51411         Call dispose_fn on the dropped values.
51412         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
51413         Add dispose_fn argument.
51414         (gl_sublist_create): Initialize the 'dispose_fn' field.
51415         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
51416         * tests/test-array_list.c (main): Update.
51417         * tests/test-carray_list.c (main): Update.
51418         * tests/test-avltree_list.c (main): Update.
51419         * tests/test-rbtree_list.c (main): Update.
51420         * tests/test-avltreehash_list.c (main): Update.
51421         * tests/test-rbtreehash_list.c (main): Update.
51422         * tests/test-linked_list.c (main): Update.
51423         * tests/test-linkedhash_list.c (main): Update.
51424         * tests/test-array_oset.c (main): Update.
51425
51426 2007-03-15  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
51429         (gl_oset_create_empty): Add dispose_fn argument.
51430         (struct gl_oset_implementation): Add dispose_fn argument to
51431         'create_empty' method.
51432         (struct gl_oset_impl_base): Add dispose_fn field.
51433         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
51434         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
51435         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
51436         values.
51437         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
51438         (gl_tree_oset_free): Call dispose_fn on the dropped values.
51439         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51440         dropped value.
51441         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
51442         dropped value.
51443         * tests/test-array_oset.c (main): Update.
51444         * tests/test-avltree_oset.c (main): Update.
51445         * tests/test-rbtree_oset.c (main): Update.
51446         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
51447
51448 2007-03-13  Bruno Haible  <bruno@clisp.org>
51449
51450         * tests/test-stdbool.c (i): Update after last patch.
51451
51452 2007-03-12  Bruno Haible  <bruno@clisp.org>
51453
51454         * lib/quotearg.c: Include <wctype.h> early, before the definition of
51455         the iswprint macro. Needed on Solaris 2.5.1.
51456
51457 2007-03-12  Bruno Haible  <bruno@clisp.org>
51458
51459         * tests/test-printf-frexp.c (main): Declare x as volatile.
51460
51461 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51462
51463         * doc/gnulib.texi (Build robot for gnulib): New section.
51464
51465 2007-03-12  Jim Meyering  <jim@meyering.net>
51466
51467         * build-aux/bootstrap: New file.
51468         * build-aux/bootstrap.conf: New file, from coreutils.
51469
51470 2007-03-11  Bruno Haible  <bruno@clisp.org>
51471
51472         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
51473
51474 2007-03-12  Simon Josefsson  <simon@josefsson.org>
51475
51476         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
51477         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
51478         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
51479
51480 2007-03-11  Bruno Haible  <bruno@clisp.org>
51481
51482         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
51483         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
51484
51485 2007-03-11  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
51488         formula. Needed for SunPRO C 5.0.
51489
51490 2007-03-11  Bruno Haible  <bruno@clisp.org>
51491
51492         * modules/long-options (Depends-on): Add getopt.
51493
51494 2007-03-11  Bruno Haible  <bruno@clisp.org>
51495
51496         * modules/modechange (Depends-on): Add stdbool.
51497
51498 2007-03-11  Bruno Haible  <bruno@clisp.org>
51499
51500         * modules/i-ring (Depends-on): Add stdbool.
51501
51502 2007-03-11  Bruno Haible  <bruno@clisp.org>
51503
51504         * modules/gc-des (Depends-on): Add stdbool.
51505
51506 2007-03-11  Bruno Haible  <bruno@clisp.org>
51507
51508         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
51509
51510 2007-03-11  Bruno Haible  <bruno@clisp.org>
51511
51512         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
51513
51514 2007-03-11  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
51517
51518 2007-03-11  Bruno Haible  <bruno@clisp.org>
51519
51520         * lib/vasnprintf.c (sprintf): Undefine.
51521
51522 2007-03-11  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
51525         initializers in SunPRO C and Compaq C compilers.
51526
51527 2007-03-11  Bruno Haible  <bruno@clisp.org>
51528
51529         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
51530         decrementing code ANSI C compliant.
51531
51532 2007-03-11  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
51535         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
51536
51537 2007-03-11  Bruno Haible  <bruno@clisp.org>
51538
51539         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
51540         <stdbool.h> substitute doesn't pass.
51541
51542 2007-03-11  Bruno Haible  <bruno@clisp.org>
51543
51544         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
51545
51546 2007-03-11  Bruno Haible  <bruno@clisp.org>
51547
51548         * gnulib-tool (func_create_megatestdir): Create also an autobuild
51549         script, for submission to autobuild.josefsson.org.
51550
51551 2007-03-10  Bruno Haible  <bruno@clisp.org>
51552
51553         * modules/canonicalize-lgpl-tests: New file.
51554         * tests/test-canonicalize-lgpl.sh: New file.
51555         * tests/test-canonicalize-lgpl.c: New file.
51556
51557         * modules/c-strcase-tests: New file.
51558         * tests/test-c-strcase.sh: New file.
51559         * tests/test-c-strcasecmp.c: New file.
51560         * tests/test-c-strncasecmp.c: New file.
51561
51562         * modules/atexit-tests: New file.
51563         * tests/test-atexit.sh: New file.
51564         * tests/test-atexit.c: New file.
51565
51566 2007-03-10  Bruno Haible  <bruno@clisp.org>
51567
51568         * tests/test-binary-io.sh: Use temporary filenames that are not so
51569         likely to clash with those of other tests (in a parallel make).
51570         * tests/test-binary-io.c: Likewise.
51571
51572 2007-03-10  Bruno Haible  <bruno@clisp.org>
51573
51574         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
51575         fallback; use #error instead.
51576         Suggested by Simon Josefsson.
51577
51578 2007-03-10  Bruno Haible  <bruno@clisp.org>
51579
51580         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
51581         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
51582         first and the last.
51583
51584 2007-03-10  Bruno Haible  <bruno@clisp.org>
51585
51586         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
51587
51588 2007-03-10  Bruno Haible  <bruno@clisp.org>
51589
51590         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
51591         "make distcheck".
51592         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
51593         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
51594         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
51595
51596 2007-03-10  Bruno Haible  <bruno@clisp.org>
51597
51598         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
51599         variable.
51600         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
51601         variable.
51602
51603 2007-03-09  Eric Blake  <ebb9@byu.net>
51604         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
51605
51606         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
51607         types are not being provided by gnulib.
51608         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
51609         types are supported.
51610
51611 2007-03-10  Bruno Haible  <bruno@clisp.org>
51612
51613         * lib/stdio_.h (__attribute__): New macro.
51614         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
51615         vsprintf): Specify __attribute__ __format__ for GCC.
51616         Suggested by Eric Blake.
51617
51618 2007-03-09  Bruno Haible  <bruno@clisp.org>
51619
51620         * modules/printf-posix-tests: New file.
51621         * tests/test-printf-posix.sh: New file.
51622         * tests/test-printf-posix.c: New file.
51623
51624         * modules/printf-posix: New file.
51625         * lib/printf.c: New file.
51626         * m4/printf-posix-rpl.m4: New file.
51627         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
51628         REPLACE_PRINTF.
51629         * lib/stdio_.h (printf): New declaration.
51630         (format, __format__, ____printf____, ____scanf____, ____strftime____,
51631         ____strfmon____): New macros.
51632         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
51633         REPLACE_PRINTF.
51634
51635 2007-03-09  Bruno Haible  <bruno@clisp.org>
51636
51637         * tests/test-vasnprintf-posix2.sh: New file.
51638         * tests/test-vasnprintf-posix2.c: New file.
51639         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
51640         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51641         (Makefile.am): Activate test-vasnprintf-posix2.sh.
51642
51643         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
51644         a locale dependent decimal point, rather than always '.'.
51645
51646 2007-03-09  Eric Blake  <ebb9@byu.net>
51647
51648         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
51649         spite of platforms like Tandem/NSK that define it to -1.
51650
51651 2007-03-08  Bruno Haible  <bruno@clisp.org>
51652
51653         * modules/vprintf-posix-tests: New file.
51654         * tests/test-vprintf-posix.sh: New file.
51655         * tests/test-vprintf-posix.c: New file.
51656         * tests/test-printf-posix.h: New file.
51657
51658         * modules/vprintf-posix: New file.
51659         * lib/vprintf.c: New file.
51660         * m4/vprintf-posix.m4: New file.
51661         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
51662         REPLACE_VPRINTF.
51663         * lib/stdio_.h (vprintf): New declaration.
51664         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
51665         REPLACE_VPRINTF.
51666
51667 2007-03-08  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/fprintf-posix-tests: New file.
51670         * tests/test-fprintf-posix.sh: New file.
51671         * tests/test-fprintf-posix.c: New file.
51672
51673         * modules/fprintf-posix: New file.
51674         * lib/fprintf.c: New file.
51675         * m4/fprintf-posix.m4: New file.
51676         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
51677         REPLACE_FPRINTF.
51678         * lib/stdio_.h (fprintf): New declaration.
51679         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
51680         REPLACE_FPRINTF.
51681
51682 2007-03-08  Bruno Haible  <bruno@clisp.org>
51683
51684         * modules/vfprintf-posix-tests: New file.
51685         * tests/test-vfprintf-posix.sh: New file.
51686         * tests/test-vfprintf-posix.c: New file.
51687         * tests/test-fprintf-posix.h: New file.
51688         * tests/test-fprintf-posix.out: New file.
51689
51690         * modules/vfprintf-posix: New file.
51691         * lib/vfprintf.c: New file.
51692         * m4/vfprintf-posix.m4: New file.
51693         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
51694         REPLACE_VFPRINTF.
51695         * lib/stdio_.h (vfprintf): New declaration.
51696         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
51697         REPLACE_VFPRINTF.
51698
51699 2007-03-08  Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
51702
51703 2007-03-08  Bruno Haible  <bruno@clisp.org>
51704
51705         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
51706         instead of 'expr' invocations.
51707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51708         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51709         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51711         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51712         Suggested by Paul Eggert.
51713
51714 2007-03-08  Bruno Haible  <bruno@clisp.org>
51715
51716         * modules/fseterr-tests: New file.
51717         * tests/test-fseterr.c: New file.
51718
51719         * modules/fseterr: New file.
51720         * lib/fseterr.h: New file.
51721         * lib/fseterr.c: New file.
51722
51723 2007-03-08  Bruno Haible  <bruno@clisp.org>
51724
51725         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
51726         * lib/getopt_.h: Likewise.
51727         * lib/mbswidth.h: Likewise.
51728         * lib/setenv.h: Likewise.
51729         * lib/vasnprintf.h: Likewise.
51730         * lib/vasprintf.h: Likewise.
51731         * lib/verror.h: Likewise.
51732         * lib/xsetenv.h: Likewise.
51733         * lib/xvasprintf.h: Likewise.
51734
51735 2007-03-08  Jim Meyering  <jim@meyering.net>
51736
51737         * users.txt: Add parted.
51738
51739         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
51740
51741 2007-03-07  Bruno Haible  <bruno@clisp.org>
51742
51743         * m4/printf.m4: Make the shell script snippets copy&pastable.
51744
51745 2007-03-02  Bruno Haible  <bruno@clisp.org>
51746
51747         * lib/netinet_in_.h: New file.
51748         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
51749         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
51750         * modules/netinet_in (Files): Add lib/netinet_in_.h.
51751         (Depends-on): Add absolute-header.
51752         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
51753         into netinet/in.h.
51754
51755 2007-03-03  Bruno Haible  <bruno@clisp.org>
51756
51757         * lib/sys_select_.h: New file.
51758         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
51759         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
51760         * modules/sys_select (Files): Add lib/sys_select_.h.
51761         (Depends-on): Add absolute-header.
51762         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
51763         into sys/select.h.
51764
51765 2007-03-02  Bruno Haible  <bruno@clisp.org>
51766
51767         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
51768         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
51769         values.
51770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
51771         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
51772         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
51773         * modules/sys_socket (Depends-on): Add absolute-header.
51774         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
51775         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
51776         (Include): Remove requirement of inclusion of <sys/types.h>.
51777
51778 2007-03-02  Bruno Haible  <bruno@clisp.org>
51779
51780         * lib/byteswap_.h (bswap_32): Fix formula.
51781
51782 2007-03-06  Bruno Haible  <bruno@clisp.org>
51783
51784         * modules/sprintf-posix-tests: New file.
51785         * tests/test-sprintf-posix.c: New file.
51786
51787         * modules/sprintf-posix: New file.
51788         * lib/sprintf.c: New file.
51789         * m4/sprintf-posix.m4: New file.
51790         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
51791         REPLACE_SPRINTF.
51792         * lib/stdio_.h (sprintf): New declaration.
51793         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
51794         REPLACE_SPRINTF.
51795
51796 2007-03-06  Bruno Haible  <bruno@clisp.org>
51797
51798         * modules/vsprintf-posix-tests: New file.
51799         * tests/test-vsprintf-posix.c: New file.
51800         * tests/test-sprintf-posix.h: New file.
51801
51802         * modules/vsprintf-posix: New file.
51803         * lib/vsprintf.c: New file.
51804         * m4/vsprintf-posix.m4: New file.
51805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
51806         REPLACE_VSPRINTF.
51807         * lib/stdio_.h (vsprintf): New declaration.
51808         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
51809         REPLACE_VSPRINTF.
51810
51811 2007-03-06  Bruno Haible  <bruno@clisp.org>
51812
51813         * modules/vsnprintf (Depend-on): Remove minmax.
51814
51815 2007-03-06  Bruno Haible  <bruno@clisp.org>
51816
51817         * modules/snprintf-posix-tests: New file.
51818         * tests/test-snprintf-posix.c: New file.
51819
51820         * modules/snprintf-posix: New file.
51821         * m4/snprintf-posix.m4: New file.
51822         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
51823         gl_FUNC_SNPRINTF.
51824         (gl_FUNC_SNPRINTF): Invoke it.
51825         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
51826         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
51827         is set.
51828         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
51829
51830 2007-03-06  Bruno Haible  <bruno@clisp.org>
51831
51832         * modules/vsnprintf-posix-tests: New file.
51833         * tests/test-vsnprintf-posix.c: New file.
51834         * tests/test-snprintf-posix.h: New file.
51835
51836         * modules/vsnprintf-posix: New file.
51837         * m4/vsnprintf-posix.m4: New file.
51838         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
51839         gl_FUNC_VSNPRINTF.
51840         (gl_FUNC_VSNPRINTF): Invoke it.
51841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
51842         * lib/stdio_.h (vsnprintf): Define as a replacement if
51843         REPLACE_VSNPRINTF is set.
51844         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
51845
51846 2007-03-06  Bruno Haible  <bruno@clisp.org>
51847
51848         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
51849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
51850
51851 2007-03-06  Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
51854         (asinl): Declare also if HAVE_DECL_ASINL is set.
51855         (atanl): Declare also if HAVE_DECL_ATANL is set.
51856         (ceill): Declare also if HAVE_DECL_CEILL is set.
51857         (cosl): Declare also if HAVE_DECL_COSL is set.
51858         (expl): Declare also if HAVE_DECL_EXPL is set.
51859         (floorl): Declare also if HAVE_DECL_FLOORL is set.
51860         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
51861         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
51862         (logl): Declare also if HAVE_DECL_LOGL is set.
51863         (sinl): Declare also if HAVE_DECL_SINL is set.
51864         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
51865         (tanl): Declare also if HAVE_DECL_TANL is set.
51866         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
51867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
51868         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
51869         declaration of frexpl, ldexpl.
51870         * modules/printf-frexpl (Depends-on): Add math.
51871         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
51872
51873 2007-03-05  Bruno Haible  <bruno@clisp.org>
51874
51875         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
51876         frexpl and ldexpl are declared.
51877         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
51878
51879 2007-03-05  Bruno Haible  <bruno@clisp.org>
51880
51881         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
51882         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
51883
51884 2007-03-05  Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/stdio_.h: Include <stddef.h>.
51887
51888 2007-03-05  Bruno Haible  <bruno@clisp.org>
51889
51890         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
51891
51892 2007-03-05  Bruno Haible  <bruno@clisp.org>
51893
51894         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
51895         NetBSD 4, from Ralf Wildenhues.
51896
51897 2007-03-04  Bruno Haible  <bruno@clisp.org>
51898
51899         * lib/vasprintf.h: Update #if logic for the case when the functions
51900         exist but are overridden.
51901
51902 2007-03-04  Bruno Haible  <bruno@clisp.org>
51903
51904         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
51905         implementations: glibc-2.4 and MacOS X 10.3.
51906         * tests/test-vasnprintf-posix.c (test_function): Test also the case
51907         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
51908         * tests/test-vasprintf-posix.c (test_function): Likewise.
51909
51910 2007-03-04  Bruno Haible  <bruno@clisp.org>
51911
51912         * modules/vasprintf-posix-tests: New file.
51913         * tests/test-vasprintf-posix.c: New file.
51914
51915         * modules/vasprintf-posix: New file.
51916         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
51917         defined.
51918         * m4/vasprintf-posix.m4: New file.
51919         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
51920         gl_FUNC_VASPRINTF.
51921         (gl_FUNC_VASPRINTF): Invoke it.
51922         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
51923         here.
51924         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
51925
51926 2007-03-04  Bruno Haible  <bruno@clisp.org>
51927
51928         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
51929         REPLACE_GETTIMEOFDAY.
51930         * modules/sys_time (Makefile.am): Likewise.
51931         * m4/sys_time_h.m4: Likewise.
51932         * m4/gettimeofday.m4: Likewise.
51933
51934 2007-03-04  Bruno Haible  <bruno@clisp.org>
51935
51936         * modules/vasnprintf-posix-tests: New file.
51937         * tests/test-vasnprintf-posix.c: New file.
51938
51939         * modules/vasnprintf-posix: New file.
51940         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
51941         printf-frexpl.h.
51942         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
51943         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
51944         REPLACE_VASNPRINTF is defined.
51945         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
51946         gl_FUNC_VASNPRINTF.
51947         (gl_FUNC_VASNPRINTF): Invoke it.
51948         * m4/vasnprintf-posix.m4: New file.
51949         * m4/printf.m4: New file.
51950
51951 2007-03-04  Bruno Haible  <bruno@clisp.org>
51952
51953         Compile progreloc.c only if --enable-relocatable is specified.
51954         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
51955         if --enable-relocatable was specified.
51956         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
51957         lib_SOURCES.
51958
51959 2007-03-04  Jim Meyering  <jim@meyering.net>
51960
51961         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
51962         Use it consistently, rather than enumerating errno constants.
51963
51964 2007-03-04  Bruno Haible  <bruno@clisp.org>
51965
51966         * modules/xvasprintf-tests: New file.
51967         * tests/test-xvasprintf.c: New file.
51968
51969         * modules/vasprintf-tests: New file.
51970         * tests/test-vasprintf.c: New file.
51971
51972         * modules/vasnprintf-tests: New file.
51973         * tests/test-vasnprintf.c: New file.
51974
51975         * modules/vsnprintf-tests: New file.
51976         * tests/test-vsnprintf.c: New file.
51977
51978         * modules/snprintf-tests: New file.
51979         * tests/test-snprintf.c: New file.
51980
51981 2007-03-04  Bruno Haible  <bruno@clisp.org>
51982
51983         Compile relocatable.c only if --enable-relocatable is specified.
51984         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
51985         gl_RELOCATABLE_LIBRARY.
51986         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
51987         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
51988         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
51989         gl_RELOCATABLE_LIBRARY.
51990         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
51991         (Makefile.am): Remove lib_SOURCES.
51992         * modules/relocatable-lib-lgpl (configure.ac): Invoke
51993         gl_RELOCATABLE_LIBRARY.
51994         (Makefile.am): Remove lib_SOURCES.
51995         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
51996         always.
51997         * modules/relocatable-prog-wrapper (configure.ac): Invoke
51998         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
51999
52000 2007-03-04  Bruno Haible  <bruno@clisp.org>
52001
52002         * modules/argmatch-tests: New file.
52003         * tests/test-argmatch.c: New file.
52004
52005         * tests/test-allocsa.c (main): Halve the number of loop runs.
52006
52007         * modules/alloca-opt-tests: New file.
52008         * tests/test-alloca-opt.c: New file.
52009
52010 2007-03-04  Jim Meyering  <jim@meyering.net>
52011
52012         Work around difference between Linux ACLs and Solaris 10 ZFS.
52013         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
52014         for EINVAL.
52015
52016 2007-03-03  Bruno Haible  <bruno@clisp.org>
52017
52018         * modules/relocatable-prog (Depends-on): Add back progreloc's
52019         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
52020
52021 2007-03-03  Bruno Haible  <bruno@clisp.org>
52022
52023         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
52024         * modules/relocatable-lib: New file.
52025
52026 2007-03-03  Bruno Haible  <bruno@clisp.org>
52027
52028         * modules/relocatable-prog: Renamed from modules/relocatable.
52029         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
52030
52031 2007-03-03  Bruno Haible  <bruno@clisp.org>
52032
52033         * modules/relocatable-script (Files): Add doc/relocatable.texi,
52034         m4/relocatable-lib.m4.
52035         (Depends-on): Remove 'relocatable'.
52036         (configure.ac): Add gl_RELOCATABLE_NOP.
52037
52038 2007-03-03  Bruno Haible  <bruno@clisp.org>
52039
52040         * modules/relocatable-prog-wrapper: New file.
52041         * modules/relocatable (Depends-on): Add it. Remove all other
52042         dependencies except progname.
52043         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
52044
52045         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
52046         (gl_FUNC_STRERROR): Nop.
52047         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
52048
52049         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
52050         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
52051
52052         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
52053         (gl_FUNC_READLINK): Update.
52054
52055         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
52056
52057 2007-03-03  Bruno Haible  <bruno@clisp.org>
52058
52059         * lib/xreadlink.c: Include <unistd.h> unconditionally.
52060         * modules/xreadlink (Depends-on): Add unistd.
52061         * modules/xreadlink-with-size (Depends-on): Likewise.
52062
52063 2007-03-03  Bruno Haible  <bruno@clisp.org>
52064
52065         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
52066         extracted from gt_FUNC_SETENV.
52067         (gt_FUNC_SETENV): Remove macro.
52068         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
52069         remove gt_FUNC_SETENV.
52070
52071 2007-03-03  Bruno Haible  <bruno@clisp.org>
52072
52073         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
52074         ENABLE_RELOCATABLE here.
52075         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
52076
52077 2007-03-03  Bruno Haible  <bruno@clisp.org>
52078
52079         * modules/rbtreehash-list-tests (Depends-on): Add progname.
52080         * tests/test-rbtreehash_list.c: Include progname.h.
52081         (main): Call set_program_name.
52082
52083         * modules/rbtree-oset-tests (Depends-on): Add progname.
52084         * tests/test-rbtree_oset.c: Include progname.h.
52085         (main): Call set_program_name.
52086
52087         * modules/rbtree-list-tests (Depends-on): Add progname.
52088         * tests/test-rbtree_list.c: Include progname.h.
52089         (main): Call set_program_name.
52090
52091         * modules/linked-list-tests (Depends-on): Add progname.
52092         * tests/test-linked_list.c: Include progname.h.
52093         (main): Call set_program_name.
52094
52095 2007-03-03  Bruno Haible  <bruno@clisp.org>
52096
52097         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
52098         All uses of __restrict changed to _Restrict_.
52099         * lib/glob_.h (__restrict): Remove macro.
52100
52101 2007-03-02  Bruno Haible  <bruno@clisp.org>
52102
52103         * modules/gettext (configure.ac): Require gettext infrastructure
52104         from version 0.16.1.
52105
52106 2007-03-02  Bruno Haible  <bruno@clisp.org>
52107
52108         * modules/linkedhash-list-tests (Depends-on): Add progname.
52109         * tests/test-linkedhash_list.c: Include progname.h.
52110         (main): Call set_program_name.
52111
52112         * modules/carray-list-tests (Depends-on): Add progname.
52113         * tests/test-carray_list.c: Include progname.h.
52114         (main): Call set_program_name.
52115
52116         * modules/avltreehash-list-tests (Depends-on): Add progname.
52117         * tests/test-avltreehash_list.c: Include progname.h.
52118         (main): Call set_program_name.
52119
52120         * modules/avltree-oset-tests (Depends-on): Add progname.
52121         * tests/test-avltree_oset.c: Include progname.h.
52122         (main): Call set_program_name.
52123
52124         * modules/avltree-list-tests (Depends-on): Add progname.
52125         * tests/test-avltree_list.c: Include progname.h.
52126         (main): Call set_program_name.
52127
52128         * modules/array-oset-tests (Depends-on): Add progname.
52129         * tests/test-array_oset.c: Include progname.h.
52130         (main): Call set_program_name.
52131
52132         * modules/array-list-tests (Depends-on): Add progname.
52133         * tests/test-array_list.c: Include progname.h.
52134         (main): Call set_program_name.
52135
52136         * modules/argp-tests (Depends-on): Add progname.
52137         * tests/test-argp.c: Include argp.h first. Include progname.h.
52138         (main): Call set_program_name.
52139
52140 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         * doc/gnulib-tool.texi (Initial import): Reword description of
52143         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
52144         limited effect even if defined after the first system include.
52145
52146 2007-03-01  Bruno Haible  <bruno@clisp.org>
52147
52148         * build-aux/config.libpath: Update to libtool-1.5.22.
52149         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52150
52151 2007-03-01  Bruno Haible  <bruno@clisp.org>
52152
52153         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
52154         foo_CFLAGS.
52155         Reported by Ralf Wildenhues.
52156
52157 2007-03-01  Bruno Haible  <bruno@clisp.org>
52158
52159         * build-aux/install-reloc: Remove object files left over by some
52160         compilers.
52161         Reported by Ralf Wildenhues.
52162
52163 2007-03-01  Bruno Haible  <bruno@clisp.org>
52164
52165         * build-aux/install-reloc: Break long lines.
52166
52167 2007-03-01  Bruno Haible  <bruno@clisp.org>
52168
52169         * doc/relocatable.texi: Document that it may not work on OpenBSD.
52170         Reported by Ralf Wildenhues.
52171
52172 2007-03-01  Bruno Haible  <bruno@clisp.org>
52173
52174         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
52175         include ordering constraints.
52176
52177 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52178
52179         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
52180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
52181         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
52182         as another example.
52183         * lib/time_.h: Fix misspelling.
52184         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52185         Require gl_HEADER_TIME_H_DEFAULTS.
52186         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
52187         * m4/time_r.m4 (gl_TIME_R): Likewise.
52188         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
52189
52190 2007-03-01  Bruno Haible  <bruno@clisp.org>
52191
52192         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
52193         * m4/utimens.m4 (gl_UTIMENS): Likewise.
52194
52195 2007-03-01  Jim Meyering  <jim@meyering.net>
52196
52197         * modules/xreadlink (Maintainer): Add my name.
52198         * modules/xreadlink-with-size (Depends-on): Alphabetize.
52199
52200 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
52201             Bruno Haible  <bruno@clisp.org>
52202
52203         * build-aux/install-reloc: Compile also c-ctype.c.
52204         * build-aux/relocatable.sh.in: New file.
52205         * doc/relocatable.texi: New file.
52206         * doc/relocatable-maint.texi: New file.
52207         * doc/gnulib.texi: Include relocatable-maint.texi.
52208         * lib/progreloc.c: Include unistd.h unconditionally.
52209         * lib/relocwrapper.c: Include unistd.h unconditionally.
52210         Include c-ctype.h.
52211         (add_dotbin): Use c_tolower.
52212         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
52213         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
52214         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
52215         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
52216         to m4/relocatable-lib.m4.
52217         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
52218         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
52219         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
52220         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
52221         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
52222         * modules/relocatable: New file.
52223         * modules/relocatable-lib: New file.
52224         * modules/relocatable-script: New file.
52225
52226 2007-02-28  Bruno Haible  <bruno@clisp.org>
52227
52228         Import --enable-relocatable infrastructure.
52229         * build-aux/config.libpath: New file, from GNU gettext.
52230         * build-aux/install-reloc: New file, from GNU gettext.
52231         * build-aux/reloc-ldflags: New file, from GNU gettext.
52232         * lib/relocatable.h: New file, from GNU gettext.
52233         * lib/relocatable.c: New file, from GNU gettext.
52234         * lib/relocwrapper.c: New file, from GNU gettext.
52235         * m4/relocatable.m4: New file, from GNU gettext.
52236
52237 2007-02-28  Bruno Haible  <bruno@clisp.org>
52238
52239         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
52240
52241         * modules/xreadlink: New file, from GNU gettext with modifications.
52242         * lib/xreadlink.c: New file, from GNU gettext.
52243         * lib/xreadlink.h: Add comments.
52244         (xreadlink): New declaration.
52245
52246         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
52247         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
52248         lib/xreadlink-with-size.c.
52249         (configure.ac): Remove gl_XREADLINK invocation.
52250         (Makefile.am): Augment lib_SOURCES.
52251         * m4/xreadlink.m4: Remove file.
52252         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
52253         (xreadlink_with_size): Renamed from xreadink.
52254         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
52255         * modules/canonicalize (Depends-on): Replace xreadlink with
52256         xreadlink-with-size.
52257         * lib/canonicalize.c (canonicalize_filename_mode): Update.
52258
52259 2007-02-25  Jim Meyering  <jim@meyering.net>
52260
52261         * build-aux/announce-gen: When complaining about excess arguments,
52262         list them.
52263
52264 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
52265
52266         * README: Document signed integer overflow situation more
52267         accurately.
52268
52269 2007-02-25  Bruno Haible  <bruno@clisp.org>
52270
52271         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
52272         'a' or 'A' conversion.
52273
52274 2007-02-25  Bruno Haible  <bruno@clisp.org>
52275
52276         * modules/filename: Renamed from modules/pathname.
52277         (Files): Replace lib/pathname.h with lib/filename.h. Replace
52278         lib/concatpath.c with lib/concat-filename.c.
52279         (Makefile.am): Update.
52280         (Include): Replace pathname.h with filename.h.
52281         * lib/filename.h: Renamed from lib/pathname.h.
52282         (concatenated_filename): Renamed from concatenated_pathname.
52283         * lib/concat-filename.c: Renamed from lib/concatpath.c.
52284         (concatenated_filename): Renamed from concatenated_pathname.
52285         * lib/findprog.c: Include filename.h instead of pathname.h.
52286         (find_in_path): Update.
52287         * lib/javacomp.c: Include filename.h instead of pathname.h.
52288         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52289         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52290         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52291         is_oldgcj_14_13_usable, is_javac_usable): Update.
52292         * lib/javaexec.c: Include filename.h instead of pathname.h.
52293         (execute_java_class): Update.
52294         * modules/findprog: Update.
52295         * modules/javacomp: Update.
52296         * modules/javaexec: Update.
52297         * MODULES.html.sh (File system functions): Add 'filename', remove
52298         'pathname'.
52299
52300 2007-02-25  Bruno Haible  <bruno@clisp.org>
52301
52302         * modules/printf-frexpl-tests: New file.
52303         * tests/test-printf-frexpl.c: New file.
52304
52305         * modules/printf-frexpl: New file.
52306         * lib/printf-frexpl.h: New file.
52307         * lib/printf-frexpl.c: New file.
52308         * m4/printf-frexpl.m4: New file.
52309
52310 2007-02-25  Bruno Haible  <bruno@clisp.org>
52311
52312         * modules/printf-frexp-tests: New file.
52313         * tests/test-printf-frexp.c: New file.
52314
52315         * modules/printf-frexp: New file.
52316         * lib/printf-frexp.h: New file.
52317         * lib/printf-frexp.c: New file.
52318         * m4/printf-frexp.m4: New file.
52319
52320 2007-02-25  Bruno Haible  <bruno@clisp.org>
52321
52322         Assume automake >= 1.10 for the tests.
52323         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
52324         * modules/arctwo-tests: Likewise.
52325         * modules/argp-tests: Likewise.
52326         * modules/avltree-list-tests: Likewise.
52327         * modules/avltree-oset-tests: Likewise.
52328         * modules/avltreehash-list-tests: Likewise.
52329         * modules/carray-list-tests: Likewise.
52330         * modules/crc-tests: Likewise.
52331         * modules/des-tests: Likewise.
52332         * modules/gc-arcfour-tests: Likewise.
52333         * modules/gc-arctwo-tests: Likewise.
52334         * modules/gc-des-tests: Likewise.
52335         * modules/gc-hmac-md5-tests: Likewise.
52336         * modules/gc-hmac-sha1-tests: Likewise.
52337         * modules/gc-md2-tests: Likewise.
52338         * modules/gc-md4-tests: Likewise.
52339         * modules/gc-md5-tests: Likewise.
52340         * modules/gc-pbkdf2-sha1-tests: Likewise.
52341         * modules/gc-rijndael-tests: Likewise.
52342         * modules/gc-sha1-tests: Likewise.
52343         * modules/gc-tests: Likewise.
52344         * modules/getaddrinfo-tests: Likewise.
52345         * modules/hmac-md5-tests: Likewise.
52346         * modules/hmac-sha1-tests: Likewise.
52347         * modules/linked-list-tests: Likewise.
52348         * modules/linkedhash-list-tests: Likewise.
52349         * modules/lock-tests: Likewise.
52350         * modules/md2-tests: Likewise.
52351         * modules/md4-tests: Likewise.
52352         * modules/md5-tests: Likewise.
52353         * modules/rbtree-list-tests: Likewise.
52354         * modules/rbtree-oset-tests: Likewise.
52355         * modules/rbtreehash-list-tests: Likewise.
52356         * modules/read-file-tests: Likewise.
52357         * modules/rijndael-tests: Likewise.
52358         * modules/stdint-tests: Likewise.
52359         * modules/tls-tests: Likewise.
52360
52361 2007-02-24  Bruno Haible  <bruno@clisp.org>
52362
52363         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
52364         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
52365         function; instead check whether isnan with a double argument links.
52366         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
52367         function; instead check whether isnan with a 'long double' argument
52368         links.
52369         Reported by Eric Blake <ebb9@byu.net>.
52370
52371 2007-02-24  Bruno Haible  <bruno@clisp.org>
52372
52373         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
52374         defined.
52375         * lib/isnanl.c: Remove all code. Just include isnan.c.
52376         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
52377
52378 2007-02-25  Jim Meyering  <jim@meyering.net>
52379
52380         Avoid conflicting types for 'unsetenv' on FreeBSD.
52381         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
52382         conflicting with FreeBSD's (5.0 and 6.1) function declaration
52383         in stdlib.h.
52384
52385 2007-02-24  Bruno Haible  <bruno@clisp.org>
52386
52387         * modules/isnanl-nolibm-tests: New file.
52388         * tests/test-isnanl.c: New file.
52389
52390         * modules/isnanl-nolibm: New file.
52391         * lib/isnanl.h: New file.
52392         * lib/isnanl.c: New file.
52393         * m4/isnanl.m4: New file.
52394
52395 2007-02-24  Bruno Haible  <bruno@clisp.org>
52396
52397         * modules/isnan-nolibm-tests: New file.
52398         * tests/test-isnan.c: New file.
52399
52400         * modules/isnan-nolibm: New file.
52401         * lib/isnan.h: New file.
52402         * lib/isnan.c: New file.
52403         * m4/isnan.m4: New file.
52404
52405 2007-02-24  Bruno Haible  <bruno@clisp.org>
52406
52407         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
52408         assume that an exponent fits in 20 bits.
52409
52410 2007-02-24  Jim Meyering  <jim@meyering.net>
52411
52412         * m4/regex.m4: Update the description of the configure-time option,
52413         --without-included-regex, to state accurately what the defaults are,
52414         and perhaps to give people an idea why using this option is risky.
52415
52416 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
52417
52418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
52419         loops on small arguments.  This attempts to avoid the problem
52420         Bruno Haible reported for AIX 4.3.2 in
52421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
52422
52423 2007-02-23  Bruno Haible  <bruno@clisp.org>
52424
52425         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
52426         Needed for help2man.
52427
52428 2007-02-23  Karl Berry  <karl@gnu.org>
52429
52430         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
52431         exists, foo.h should be cvs-ignored, not committed.
52432
52433 2007-02-23  Eric Blake  <ebb9@byu.net>
52434
52435         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
52436         * lib/stat-time.h (includes): Likewise.
52437         * lib/utimecmp.c (includes): Likewise.
52438         * lib/utimens.h (includes): Likewise.
52439         * lib/getdate.y (includes): Also include "timespec.h" for use
52440         internal to the module.
52441         * modules/utimens (Depends-on): Revert yesterday's patch.
52442         * modules/nanosleep (Depends-on): Add missing dependency.
52443
52444 2007-02-22  Bruno Haible  <bruno@clisp.org>
52445
52446         * lib/glob.c: Don't include getlogin_r.h.
52447
52448 2007-02-22  Jim Meyering  <jim@meyering.net>
52449
52450         * modules/utimens (Depends-on): Add timespec, required for
52451         utimens.h's inclusion of timespec.h.
52452
52453 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
52454
52455         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
52456         long unreadable paths in GNU/Linux.  Problem reported by Andreas
52457         Schwab in
52458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
52459         I'll try to think of a better way to fix the Solaris problem.
52460
52461         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
52462         like glibc; on Solaris 10, it fails with errno == EINVAL.
52463         POSIX says the behavior is unspecified if the first argument is NULL,
52464         so play it safe and never pass NULL to the system getcwd.
52465
52466 2007-02-21  Jim Meyering  <jim@meyering.net>
52467
52468         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
52469         of gettimeofday.  It would conflict with the one now always
52470         provided via sys_time_.h.  Reported by Matthew Woehlke, as
52471         an IRIX 6.5 build failure.
52472
52473 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
52474
52475         Minor fixups to port to Solaris 10 with Sun C 5.8.
52476         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
52477         * modules/getcwd (Depends-on): Add dirfd.
52478         * lib/putenv.c (putenv): #undef it.
52479         (rpl_putenv): New decl.
52480         (malloc, free): Include <stdlib.h> rather than prototyping separately.
52481
52482 2007-02-20  Bruno Haible  <bruno@clisp.org>
52483
52484         * modules/stdio-tests: New file.
52485         * tests/test-stdio.c: New file.
52486
52487         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
52488         (Depends-on): Add stdio.
52489         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52490         (Include): Use <stdio.h> instead of vsnprintf.h.
52491         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52492         HAVE_DECL_VSNPRINTF.
52493         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
52494
52495         * modules/snprintf (Files): Remove lib/snprintf.h.
52496         (Depends-on): Add stdio.
52497         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
52498         (Include): Use <stdio.h> instead of snprintf.h.
52499         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
52500         HAVE_DECL_SNPRINTF.
52501         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
52502         * lib/getaddrinfo.c: Likewise.
52503
52504         * modules/stdio: New file.
52505         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
52506         * lib/snprintf.h: Remove file.
52507         * lib/vsnprintf.h: Remove file.
52508         * lib/.cppi-disable: Remove snprintf.h.
52509         * m4/stdio_h.m4: New file.
52510         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
52511
52512 2007-02-20  Jim Meyering  <jim@meyering.net>
52513
52514         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
52515         used by e.g., mingw.  From Bruno Haible.
52516
52517 2007-02-19  Bruno Haible  <bruno@clisp.org>
52518
52519         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
52520         warnings.
52521         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52522
52523 2007-02-19  Bruno Haible  <bruno@clisp.org>
52524
52525         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
52526         from mingw users.
52527
52528 2007-02-19  Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
52531         warnings.
52532         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
52533
52534 2007-02-19  Jim Meyering  <jim@meyering.net>
52535
52536         Don't use FD after a successful "fdopendir (fd)".
52537         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
52538         Reset it by calling dirfd on the just-obtained DIR*.
52539
52540         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
52541         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
52542
52543 2007-02-18  Bruno Haible  <bruno@clisp.org>
52544
52545         * lib/readlink.c: Include <unistd.h>.
52546         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
52547         HAVE_READLINK.
52548         * modules/readlink (Depends-on): Add unistd.
52549         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52550         (Include): Add <unistd.h>.
52551
52552         * lib/getlogin_r.h: Remove file.
52553         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
52554         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
52555         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
52556         HAVE_DECL_GETLOGIN_R.
52557         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
52558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52559         (Include): Use <unistd.h> instead of getlogin_r.h.
52560
52561         * lib/getcwd.h: Remove file.
52562         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
52563         * lib/xgetcwd.c: Likewise.
52564         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
52565         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
52566         * modules/getcwd (Files): Remove lib/getcwd.h.
52567         (Depends-on): Add unistd.
52568         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52569         (Include): Use <unistd.h> instad of getcwd.h.
52570
52571         * lib/ftruncate.c: Include <unistd.h> first.
52572         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
52573         Set HAVE_FTRUNCATE.
52574         * modules/ftruncate (Depends-on): Add unistd.
52575         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52576
52577         * lib/fchdir.c: Include <unistd.h> first.
52578         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
52579         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
52580         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
52581         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52582         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
52583
52584         * lib/dup2.c: Include <unistd.h> first.
52585         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
52586         HAVE_DUP2.
52587         * modules/dup2 (Depends-on): Add unistd.
52588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52589
52590         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
52591         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
52592         REPLACE_CHOWN. Don't define chown as a macro here.
52593         * modules/chown (Depends-on): Add unistd.
52594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52595
52596         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
52597         Add definition for GL_LINK_WARNING.
52598         (chown, dup2): New declarations.
52599         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
52600         link warning.
52601         (ftruncate): New declaration.
52602         (getcwd): New declaration, taken from old getcwd.h.
52603         (getlogin_r): New declaration, taken from old getlogin_r.h.
52604         (readlink): New declaration.
52605         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
52606         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
52607         (gl_PREREQ_UNISTD): Remove macro.
52608         (gl_UNISTD_MODULE_INDICATOR): New macro.
52609         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
52610         many new variables. Don't set UNISTD_H.
52611         * modules/unistd (Description): Change.
52612         (Depends-on): Add link-warning.
52613         (configure.ac): Update.
52614         (Makefile.am): Create unistd.h always. Substitute many new variables
52615         into it.
52616
52617 2007-02-18  Bruno Haible  <bruno@clisp.org>
52618
52619         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
52620         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
52621         HAVE_GETSUBOPT.
52622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
52623         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
52624         * lib/getsubopt.h: Remove file.
52625         * modules/getsubopt (Files): Remove lib/getsubopt.h.
52626         (Depends-on): Add stdlib.
52627         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52628         (Includes): Use <stdlib.h> instead of getsubopt.h.
52629         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
52630         Set HAVE_GETSUBOPT.
52631         * lib/getsubopt.c: Don't include getsubopt.h.
52632
52633 2007-02-18  Bruno Haible  <bruno@clisp.org>
52634
52635         * modules/fchdir (Depends-on): Add dup2.
52636
52637 2007-02-18  Bruno Haible  <bruno@clisp.org>
52638
52639         * lib/stdlib_.h: Handle glibc's special invocation convention
52640         specially.
52641
52642 2007-02-18  Bruno Haible  <bruno@clisp.org>
52643
52644         * modules/stdlib-tests: New file.
52645         * tests/test-stdlib.c: New file.
52646
52647         * modules/mkstemp (Files): Remove lib/mkstemp.h.
52648         (Depends-on): Add stdlib.
52649         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52650         (Includes): Use <stdlib.h> instead of mkstemp.h.
52651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52652         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
52653         * lib/mkstemp.c: Don't include mkstemp.h.
52654         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
52655         * lib/stdlib--.h: Don't include mkstemp.h.
52656
52657         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
52658         (Depends-on): Add stdlib.
52659         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52660         (Includes): Use <stdlib.h> instead of mkdtemp.h.
52661         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
52662         HAVE_MKDTEMP.
52663         * lib/mkdtemp.c: Don't include mkdtemp.h.
52664         * lib/clean-temp.c: Don't include mkdtemp.h.
52665
52666         * modules/exit (Files): Remove lib/exit.h.
52667         (Depends-on): Add stdlib.
52668         (Makefile.am): Remove lib_SOURCES.
52669         (Include): Use <stdlib.h> instead of exit.h.
52670         * lib/argmatch.c: Don't include exit.h.
52671         * lib/execute.c: Likewise.
52672         * lib/pagealign_alloc.c: Likewise.
52673         * lib/pipe.c: Likewise.
52674         * lib/wait-process.c: Likewise.
52675         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
52676         * lib/exitfail.c: Likewise.
52677         * lib/savewd.c: Likewise.
52678         * lib/xsetenv.c: Likewise.
52679
52680         * modules/stdlib: New file.
52681         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
52682         and extra comments about mkstemp().
52683         * lib/exit.h: Remove file.
52684         * lib/mkdtemp.h: Remove file.
52685         * lib/mkstemp.h: Remove file.
52686         * m4/stdlib_h.m4: New file.
52687         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
52688
52689 2007-02-18  Bruno Haible  <bruno@clisp.org>
52690
52691         * modules/math-tests: New file.
52692         * tests/test-math.c: New file.
52693
52694         * modules/math: New file.
52695         * modules/mathl (Files): Remove lib/mathl.h.
52696         (Depends-on): Add math.
52697         (Makefile.am): Don't mention mathl.h.
52698         (Include): Use <math.h> instead of mathl.h.
52699         * lib/math_.h: New file.
52700         * lib/mathl.h: Remove file.
52701         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
52702         mathl.h.
52703         * lib/asinl.c: Likewise.
52704         * lib/atanl.c: Likewise.
52705         * lib/ceill.c: Likewise.
52706         * lib/cosl.c: Likewise.
52707         * lib/expl.c: Likewise.
52708         * lib/floorl.c: Likewise.
52709         * lib/frexpl.c: Likewise.
52710         * lib/ldexpl.c: Likewise.
52711         * lib/logl.c: Likewise.
52712         * lib/sincosl.c: Likewise.
52713         * lib/sinl.c: Likewise.
52714         * lib/sqrtl.c: Likewise.
52715         * lib/tanl.c: Likewise.
52716         * lib/trigl.c: Likewise.
52717         * m4/math_h.m4: New file.
52718         * MODULES.html.sh (Mathematics): Add math.
52719
52720 2007-02-17  Bruno Haible  <bruno@clisp.org>
52721
52722         * modules/wctype-tests: New file.
52723         * tests/test-wctype.c: New file.
52724
52725         * modules/wchar-tests: New file.
52726         * tests/test-wchar.c: New file.
52727
52728         * modules/unistd-tests: New file.
52729         * tests/test-unistd.c: New file.
52730
52731         * modules/time-tests: New file.
52732         * tests/test-time.c: New file.
52733
52734         * modules/sysexits-tests: New file.
52735         * tests/test-sysexits.c: New file.
52736
52737         * modules/sys_time-tests: New file.
52738         * tests/test-sys_time.c: New file.
52739
52740         * modules/sys_stat-tests: New file.
52741         * tests/test-sys_stat.c: New file.
52742
52743         * modules/sys_socket-tests: New file.
52744         * tests/test-sys_socket.c: New file.
52745
52746         * modules/sys_select-tests: New file.
52747         * tests/test-sys_select.c: New file.
52748
52749         * modules/string-tests: New file.
52750         * tests/test-string.c: New file.
52751
52752         * modules/stdbool-tests: New file.
52753         * tests/test-stdbool.c: New file.
52754
52755         * modules/netinet_in-tests: New file.
52756         * tests/test-netinet_in.c: New file.
52757
52758         * modules/inttypes-tests: New file.
52759         * tests/test-inttypes.c: New file.
52760
52761         * modules/fcntl-tests: New file.
52762         * tests/test-fcntl.c: New file.
52763
52764         * modules/byteswap-tests: New file.
52765         * tests/test-byteswap.c: New file.
52766
52767         * modules/arpa_inet-tests: New file.
52768         * tests/test-arpa_inet.c: New file.
52769
52770 2007-02-17  Bruno Haible  <bruno@clisp.org>
52771
52772         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
52773         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
52774         if the corresponding module is not enabled. Emit link warnings if
52775         the function is used nevertheless.
52776         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
52777         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
52778         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
52779         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
52780         * modules/inttypes (Depends-on): Add link-warning.
52781         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52782         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
52783         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
52784         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
52785         * modules/imaxdiv (configure.ac): Likewise.
52786         * modules/strtoimax (configure.ac): Likewise.
52787         * modules/strtoumax (configure.ac): Likewise.
52788
52789 2007-02-17  Bruno Haible  <bruno@clisp.org>
52790
52791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
52792         gl_STRING_MODULE_INDICATOR_DEFAULTS.
52793         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
52794         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
52795
52796 2007-02-17  Bruno Haible  <bruno@clisp.org>
52797
52798         * modules/link-warning: New file.
52799         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
52800         * lib/string_.h (GL_LINK_WARNING): Remove definition.
52801         * modules/string (Depends-on): Add link-warning.
52802         (Makefile.am): Copy the contents of build-aux/link-warning.h into
52803         string.h.
52804         * MODULES.html.sh (Support for building libraries and executables): Add
52805         link-warning.
52806
52807 2007-02-17  Bruno Haible  <bruno@clisp.org>
52808
52809         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
52810         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
52811         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
52812         long lines.
52813
52814 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
52815             Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/tmpfile: New file.
52818         * lib/tmpfile.c: New file.
52819         * m4/tmpfile.m4: New file.
52820         * MODULES.html.sh (func_all_modules): New section "Input/output".
52821
52822 2007-02-15  Bruno Haible  <bruno@clisp.org>
52823
52824         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
52825         (supports_delete_on_close): New function.
52826         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
52827
52828 2007-02-14  Bruno Haible  <bruno@clisp.org>
52829
52830         * modules/mbspcasecmp-tests: New file.
52831         * tests/test-mbspcasecmp.sh: New file.
52832         * tests/test-mbspcasecmp.c: New file.
52833
52834         New module mbspcasecmp.
52835         * modules/mbspcasecmp: New file.
52836         * lib/mbspcasecmp.c: New file.
52837         * lib/string_.h (strncasecmp): Change warning message.
52838         (mbspcasecmp): New declaration.
52839         * m4/mbspcasecmp.m4: New file.
52840         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52841         GNULIB_MBSPCASECMP.
52842         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
52843         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
52844
52845 2007-02-14  Bruno Haible  <bruno@clisp.org>
52846
52847         * modules/mbsncasecmp-tests: New file.
52848         * tests/test-mbsncasecmp.sh: New file.
52849         * tests/test-mbsncasecmp.c: New file.
52850
52851         New module mbsncasecmp.
52852         * modules/mbsncasecmp: New file.
52853         * lib/mbsncasecmp.c: New file.
52854         * lib/string_.h (mbsncasecmp): New declaration.
52855         * m4/mbsncasecmp.m4: New file.
52856         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
52857         GNULIB_MBSNCASECMP.
52858         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
52859         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
52860
52861 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
52862
52863         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
52864         Verify that it doesn't overlap with our flags.
52865         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
52866         do not have the desired effect in multibyte locales; instead, use
52867         mbscasecmp.
52868         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
52869         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
52870         we don't require GNU fnmatch ourselves (if our users require it, they
52871         should do so explicitly).
52872
52873         Fix regex code so it doesn't rely on strcasecmp.
52874         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
52875         Otherwise, include gnulib's langinfo.h.
52876         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
52877         undesirable behavior in non-C locales.  Instead, rely on localecharset.
52878         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
52879         * modules/regex (FILES): Remove m4/codeset.m4.
52880         (Depends-on): Add localcharset.  Remove strcase.
52881
52882 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52883
52884         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
52885         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
52886
52887 2007-02-13  Bruno Haible  <bruno@clisp.org>
52888
52889         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
52890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52891
52892 2007-02-12  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
52895         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
52896         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
52897         time warning rather than a link error.
52898
52899 2007-02-12  Bruno Haible  <bruno@clisp.org>
52900
52901         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
52902         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52903         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52904
52905 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52906
52907         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
52908         args, not 2.
52909
52910 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
52911
52912         New module 'time', so that apps can include <time.h> as per
52913         POSIX and GNU instead of separate include files like time_r.h
52914         and timegm.h.  This implementation tries out a simpler approach
52915         for replacing decls in standard include files (as compared to
52916         the string module), somewhat as an experiment.
52917
52918         * config/srclist.txt: Comment out mktime.c for now.
52919         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
52920         since it doesn't apply any more.  Use generic wording instead.
52921         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
52922         'time'.
52923         * lib/time_.h, m4/time_h.m4, modules/time: New files.
52924         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
52925         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
52926         Don't include <sys/types.h>; no longer needed since we assume C89.
52927         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
52928         * lib/strftime.c: Likewise.
52929         * lib/time_r.c: Likewise.
52930         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
52931         * lib/nanosleep.c: Include <time.h> first, to check interface.
52932         * lib/strptime.c: Likewise.
52933         * lib/time_r.c: Likewise.
52934         * lib/timegm.c: Likewise.
52935         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
52936         needed.
52937         * lib/timegm.c: Don't include timegm.h; no longer needed.
52938         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
52939         time.h now handles any problems in that area.
52940         (struct timespec, nanosleep): Remove; time.h now arranges for these.
52941         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
52942         that time.h defines struct timespec.
52943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
52944         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
52945         handles that.
52946         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
52947         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
52948         needed.  Set REPLACE_LOCALTIME.
52949         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
52950         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
52951         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
52952         nanosleep; time_h.m4 now does that.  Don't require
52953         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
52954         module handles this now.
52955         * modules/getdate (Depends-on): Remove timespec.  Add time.
52956         * modules/nanosleep (Depends-on): Likewise.
52957         * modules/stat-time (Depends-on): Likewise.
52958         * modules/nanosleep (Include): Include time.h, not timespec.h.
52959         * modules/strptime (Files): Remove lib/strptime.h.
52960         (Depends-on): Add extensions, time.
52961         (Include): Include time.h, not strptime.h.
52962         * modules/time_r (Files): Remove lib/time_r.h.
52963         (Depends-on): Add time.
52964         (Include): Include time.h, not time_r.h.
52965         * modules/timegm: Likewise.
52966         * modules/timespec (Description): Now does timespec-related decls
52967         of our own, instead of struct timespec itself.
52968         (Depends-on): Add time; remove extensions.
52969         (Maintainer): Add self.
52970         * modules/utimecmp (Depends-on): Add time; remove timespec.
52971         * modules/utimens (Depends-on): Likewise.
52972         * modules/xnanosleep (Depends-on): Likewise.
52973
52974 2007-02-11  Bruno Haible  <bruno@clisp.org>
52975
52976         * lib/c-strstr.c: Include allocsa.h.
52977         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52978         * lib/c-strcasestr.c: Include allocsa.h.
52979         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52980         * lib/strcasestr.c: Include allocsa.h.
52981         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
52982         * lib/mbsstr.c: Include allocsa.h.
52983         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52984         allocsa/freesa instead of malloc/free.
52985         * lib/mbscasestr.c: Include allocsa.h.
52986         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
52987         allocsa/freesa instead of malloc/free.
52988         * modules/c-strstr (Depends-on): Add allocsa.
52989         * modules/c-strcasestr (Depends-on): Likewise.
52990         * modules/strcasestr (Depends-on): Likewise.
52991         * modules/mbsstr (Depends-on): Likewise.
52992         * modules/mbscasestr (Depends-on): Likewise.
52993
52994 2007-02-11  Bruno Haible  <bruno@clisp.org>
52995
52996         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
52997
52998         * modules/mbsspn-tests: New file.
52999         * tests/test-mbsspn.sh: New file.
53000         * tests/test-mbsspn.c: New file.
53001
53002 2007-02-11  Bruno Haible  <bruno@clisp.org>
53003
53004         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
53005
53006         * modules/mbspbrk-tests: New file.
53007         * tests/test-mbspbrk.sh: New file.
53008         * tests/test-mbspbrk.c: New file.
53009
53010 2007-02-11  Bruno Haible  <bruno@clisp.org>
53011
53012         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
53013         unneeded cast.
53014
53015         * modules/mbscspn-tests: New file.
53016         * tests/test-mbscspn.sh: New file.
53017         * tests/test-mbscspn.c: New file.
53018
53019 2007-02-11  Bruno Haible  <bruno@clisp.org>
53020
53021         * modules/mbscasecmp-tests: New file.
53022         * tests/test-mbscasecmp.sh: New file.
53023         * tests/test-mbscasecmp.c: New file.
53024
53025 2007-02-11  Bruno Haible  <bruno@clisp.org>
53026
53027         Ensure O(n) worst-case complexity of mbscasestr.
53028         * lib/mbscasestr.c: Include stdbool.h.
53029         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53030         functions.
53031         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
53032         the bookkeeping indicates that it's worth it.
53033         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
53034
53035         * modules/mbscasestr-tests: New file.
53036         * tests/test-mbscasestr1.c: New file.
53037         * tests/test-mbscasestr2.sh: New file.
53038         * tests/test-mbscasestr2.c: New file.
53039         * tests/test-mbscasestr3.sh: New file.
53040         * tests/test-mbscasestr3.c: New file.
53041         * tests/test-mbscasestr4.sh: New file.
53042         * tests/test-mbscasestr4.c: New file.
53043         * m4/locale-tr.m4: New file.
53044
53045 2007-02-11  Bruno Haible  <bruno@clisp.org>
53046
53047         Ensure O(n) worst-case complexity of mbsstr.
53048         * lib/mbsstr.c: Include stdbool.h.
53049         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
53050         functions.
53051         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
53052         bookkeeping indicates that it's worth it.
53053         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
53054
53055         * modules/mbsstr-tests: New file.
53056         * tests/test-mbsstr1.c: New file.
53057         * tests/test-mbsstr2.sh: New file.
53058         * tests/test-mbsstr2.c: New file.
53059         * tests/test-mbsstr3.sh: New file.
53060         * tests/test-mbsstr3.c: New file.
53061         * m4/locale-fr.m4: New file.
53062
53063 2007-02-11  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/mbsrchr.c (mbsrchr): Fix bug.
53066
53067         * modules/mbsrchr-tests: New file.
53068         * tests/test-mbsrchr.sh: New file.
53069         * tests/test-mbsrchr.c: New file.
53070
53071 2007-02-11  Bruno Haible  <bruno@clisp.org>
53072
53073         * lib/mbschr.c (mbschr): Fix bug.
53074
53075         * modules/mbschr-tests: New file.
53076         * tests/test-mbschr.sh: New file.
53077         * tests/test-mbschr.c: New file.
53078         * m4/locale-zh.m4: New file.
53079
53080 2007-02-11  Bruno Haible  <bruno@clisp.org>
53081
53082         Support for copying multibyte string iterators.
53083         * lib/mbiter.h: Include <string.h>.
53084         (mbiter_multi_copy): New function.
53085         (mbi_copy): New macro.
53086         * lib/mbuiter.h: Include <string.h>.
53087         (mbuiter_multi_copy): New function.
53088         (mbui_copy): New macro.
53089
53090 2007-02-11  Bruno Haible  <bruno@clisp.org>
53091
53092         New module mbslen.
53093         * modules/mbslen: New file.
53094         * lib/mbslen.c: New file.
53095         * lib/string_.h (mbslen): New declaration.
53096         * m4/mbslen.m4: New file.
53097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53098         GNULIB_MBSLEN.
53099         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
53100         * MODULES.html.sh (Internationalization functions): Add mbslen.
53101
53102 2007-02-11  Bruno Haible  <bruno@clisp.org>
53103
53104         Ensure O(n) worst-case complexity of strcasestr substitute.
53105         * lib/strcasestr.c: Include stdbool.h.
53106         (knuth_morris_pratt): New function.
53107         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53108         bookkeeping indicates that it's worth it.
53109         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
53110
53111         * modules/strcasestr-tests: New file.
53112         * tests/test-strcasestr.c: New file.
53113
53114 2007-02-11  Bruno Haible  <bruno@clisp.org>
53115
53116         Ensure O(n) worst-case complexity of c_strcasestr.
53117         * lib/c-strcasestr.c: Include stdbool.h, string.h.
53118         (knuth_morris_pratt): New function.
53119         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
53120         the bookkeeping indicates that it's worth it.
53121         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
53122
53123         * modules/c-strcasestr-tests: New file.
53124         * tests/test-c-strcasestr.c: New file.
53125
53126 2007-02-11  Bruno Haible  <bruno@clisp.org>
53127
53128         Ensure O(n) worst-case complexity of c_strstr.
53129         * lib/c-strstr.c: Include stdbool.h, string.h.
53130         (knuth_morris_pratt): New function.
53131         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
53132         bookkeeping indicates that it's worth it.
53133         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
53134
53135         * lib/c-strstr.c: Complete rewrite for maintainability.
53136
53137         * modules/c-strstr-tests: New file.
53138         * tests/test-c-strstr.c: New file.
53139
53140 2007-02-11  Bruno Haible  <bruno@clisp.org>
53141
53142         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
53143         5.2.1 and earlier, whereby \055 was treated just like the range
53144         delimiter '-'.
53145         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53146
53147 2007-02-08  Bruno Haible  <bruno@clisp.org>
53148
53149         * modules/regex (Depends-on): Add stdbool.
53150         Reported by Dalibor Topic <robilad@kaffe.org>.
53151
53152 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53153
53154         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
53155         Prefer returning from main to exiting from it.
53156         Remove unnecessary parens after sizeof.
53157
53158 2007-02-05  Bruno Haible  <bruno@clisp.org>
53159
53160         New module mbssep.
53161         * modules/mbssep: New file.
53162         * lib/mbssep.c: New file.
53163         * lib/string_.h (strsep): Add a conditional link warning.
53164         (mbssep): New declaration.
53165         * m4/mbssep.m4: New file.
53166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53167         GNULIB_MBSSEP.
53168         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
53169         * MODULES.html.sh (Internationalization functions): Add mbssep.
53170
53171 2007-02-05  Bruno Haible  <bruno@clisp.org>
53172
53173         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
53174         Optimize search in case of 1 delimiter.
53175
53176 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53177
53178         * lib/acl.h: Include sys/types.h before sys/acl.h.
53179
53180 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
53181
53182         Merge upstream fix for glibc bugzilla #3957:
53183
53184         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
53185
53186         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
53187         bit for RE_HAT_LISTS_NOT_NEWLINE.
53188         (build_charclass_op): Remove bogus comment.
53189
53190 2007-02-05  Simon Josefsson  <simon@josefsson.org>
53191
53192         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
53193
53194 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53195
53196         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
53197         * lib/memmem.c [!defined _LIBC]: Include config.h.
53198
53199 2007-02-04  Bruno Haible  <bruno@clisp.org>
53200
53201         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
53202         warning message.
53203
53204 2007-02-04  Bruno Haible  <bruno@clisp.org>
53205
53206         New module mbstok_r.
53207         * modules/mbstok_r: New file.
53208         * lib/mbstok_r.c: New file.
53209         * lib/string_.h (strtok_r): Change argument names to match the
53210         comments. Add a conditional link warning.
53211         (mbstok_r): New declaration.
53212         * m4/mbstok_r.m4: New file.
53213         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53214         GNULIB_MBSTOK_R.
53215         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
53216         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
53217
53218 2007-02-04  Bruno Haible  <bruno@clisp.org>
53219
53220         New module mbsspn.
53221         * modules/mbsspn: New file.
53222         * lib/mbsspn.c: New file.
53223         * lib/string_.h (strspn): Add a conditional link warning.
53224         (mbsspn): New declaration.
53225         * m4/mbsspn.m4: New file.
53226         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53227         GNULIB_MBSSPN.
53228         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
53229         * MODULES.html.sh (Internationalization functions): Add mbsspn.
53230
53231 2007-02-04  Bruno Haible  <bruno@clisp.org>
53232
53233         New module mbspbrk.
53234         * modules/mbspbrk: New file.
53235         * lib/mbspbrk.c: New file.
53236         * lib/string_.h (strpbrk): Add a conditional link warning.
53237         (mbspbrk): New declaration.
53238         * m4/mbspbrk.m4: New file.
53239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53240         GNULIB_MBSPBRK.
53241         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
53242         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
53243
53244 2007-02-04  Bruno Haible  <bruno@clisp.org>
53245
53246         New module mbscspn.
53247         * modules/mbscspn: New file.
53248         * lib/mbscspn.c: New file.
53249         * lib/string_.h (strcspn): Add a conditional link warning.
53250         (mbscspn): New declaration.
53251         * m4/mbscspn.m4: New file.
53252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53253         GNULIB_MBSCSPN.
53254         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
53255         * MODULES.html.sh (Internationalization functions): Add mbscspn.
53256
53257 2007-02-04  Bruno Haible  <bruno@clisp.org>
53258
53259         New module mbscasestr, reduced goal of strcasestr.
53260         * modules/mbscasestr: New file.
53261         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
53262         (mbscasestr): Renamed from strcasestr.
53263         * lib/strcasestr.c: Don't include mbuiter.h.
53264         (strcasestr): Remove support for multibyte locales.
53265         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
53266         Change the conditional link warning.
53267         (mbscasestr): New declaration.
53268         * m4/mbscasestr.m4: New file.
53269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
53270         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
53271         REPLACE_STRCASESTR.
53272         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
53273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53274         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53275         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
53276         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
53277         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
53278         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
53279         (Depends-on): Remove mbuiter.
53280         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
53281
53282 2007-02-04  Bruno Haible  <bruno@clisp.org>
53283
53284         Simplify handling of strncasecmp.
53285         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
53286         the conditional link warning.
53287         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53288         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
53289         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
53290         * modules/strcase (configure.ac): Don't invoke
53291         gl_STRING_MODULE_INDICATOR.
53292         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
53293
53294 2007-02-04  Bruno Haible  <bruno@clisp.org>
53295
53296         New module mbscasecmp, reduced goal of strcasecmp.
53297         * modules/mbscasecmp: New file.
53298         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
53299         (mbscasecmp): Renamed from strcasecmp.
53300         * lib/strcasecmp.c: Don't include mbuiter.h.
53301         (strcasecmp): Remove support for multibyte locales.
53302         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
53303         Change the conditional link warning.
53304         (mbscasecmp): New declaration.
53305         * m4/mbscasecmp.m4: New file.
53306         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
53307         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
53308         REPLACE_STRCASECMP.
53309         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
53310         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53311         GNULIB_MBSCASECMP.
53312         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53313         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
53314         * modules/strcase (Files): Remove m4/mbrtowc.m4.
53315         (Depends-on): Remove mbuiter.
53316         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
53317
53318 2007-02-04  Bruno Haible  <bruno@clisp.org>
53319
53320         New module mbsstr. Remove module strstr.
53321         * modules/mbsstr: New file.
53322         * modules/strstr: Remove file.
53323         * lib/mbsstr.c: Renamed from lib/strstr.c.
53324         (mbsstr): Renamed from strstr.
53325         * lib/string_.h (strstr): Remove declaration. Change the conditional
53326         link warning.
53327         (mbsstr): New declaration.
53328         * m4/mbsstr.m4: New file.
53329         * m4/strstr.m4: Remove file.
53330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53331         REPLACE_STRSTR.
53332         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
53333         Don't initialize GNULIB_STRSTR.
53334         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
53335         substitute GNULIB_STRSTR and REPLACE_STRSTR.
53336         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53337         (Support for systems lacking ANSI C 89): Remove strstr.
53338
53339 2007-02-04  Bruno Haible  <bruno@clisp.org>
53340
53341         New module mbsrchr.
53342         * modules/mbsrchr: New file.
53343         * lib/mbsrchr.c: New file.
53344         * lib/string_.h (strrchr): Add a conditional link warning.
53345         (mbsrchr): New declaration.
53346         * m4/mbsrchr.m4: New file.
53347         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53348         GNULIB_MBSRCHR.
53349         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
53350         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
53351
53352 2007-02-04  Bruno Haible  <bruno@clisp.org>
53353
53354         New module mbschr.
53355         * modules/mbschr: New file.
53356         * lib/mbschr.c: New file.
53357         * lib/string_.h (strchr): Add a conditional link warning.
53358         (mbschr): New declaration.
53359         * m4/mbschr.m4: New file.
53360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
53361         GNULIB_MBSCHR.
53362         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
53363         * MODULES.html.sh (Internationalization functions): Add mbschr.
53364
53365 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
53366
53367         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
53368
53369         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
53370
53371 2007-02-04  Bruno Haible  <bruno@clisp.org>
53372
53373         New module description section 'configure.ac-early'.
53374         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
53375         (func_get_autoconf_early_snippet): New function.
53376         (func_import, func_create_testdir): Use it. Remove special cases for
53377         modules 'extensions' and 'lock'.
53378         * modules/extensions (configure.ac-early): Require
53379         gl_USE_SYSTEM_EXTENSIONS.
53380         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
53381
53382 2007-02-04  Bruno Haible  <bruno@clisp.org>
53383
53384         Make use of gcj-4.3's -fsource and -ftarget option.
53385         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
53386         and if so try the options -fsource and -ftarget.
53387         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
53388         source_version, ftarget_option, target_version arguments.
53389         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
53390         (is_envjavac_oldgcj_14_14_usable): Renamed from
53391         is_envjavac_gcj_14_14_usable.
53392         (is_envjavac_oldgcj_14_13_usable): Renamed from
53393         is_envjavac_gcj_14_13_usable.
53394         (is_gcj_present): Update.
53395         (is_gcj_43, is_gcj43_usable): New functions.
53396         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
53397         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
53398         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
53399         try the options -fsource and -ftarget.
53400
53401 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
53402
53403         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
53404         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
53405         larger value.
53406
53407 2007-02-03  Jim Meyering  <jim@meyering.net>
53408
53409         Give tools a better chance to allocate space for very large buffers.
53410         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
53411
53412         Make pwd and readlink work also when run with an unreadable parent dir
53413         on systems with openat support.
53414         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
53415         provided getcwd function, even when we have openat support.
53416         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
53417
53418 2007-02-02  Bruno Haible  <bruno@clisp.org>
53419
53420         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
53421         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
53422         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
53423         portability problems if one of these functions is only used on specific
53424         platforms.
53425         Reported by Paul Eggert.
53426
53427 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
53428
53429         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
53430         is causing more trouble than it's curing.
53431         * lib/regex_internal.h (__mempcpy): Remove.
53432         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
53433         (and make the code a tad smaller to boot).
53434         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
53435
53436 2007-02-02  Jim Meyering  <jim@meyering.net>
53437
53438         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
53439         section, not in the Makefile.am: one.
53440
53441 2007-02-02  Eric Blake  <ebb9@byu.net>
53442
53443         * lib/strchrnul.c: Always include config.h first.
53444
53445         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
53446         gnulib strstr is not necessary here.
53447
53448 2007-02-02  Simon Josefsson  <simon@josefsson.org>
53449
53450         * m4/socklen.m4: Fix typo.
53451
53452 2007-02-02  Eric Blake  <ebb9@byu.net>
53453
53454         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
53455         * modules/netinet_in (Makefile.am): Likewise.
53456
53457 2007-02-01  Bruno Haible  <bruno@clisp.org>
53458
53459         * lib/string_.h (GL_LINK_WARNING): New macro.
53460         (strcasecmp, strstr, strcasestr): If provided by the system,
53461         conditionally define as a macro that leads to a warning instead of to
53462         an error.
53463         (strncasecmp): Conditionally define as a macro that leads to a warning.
53464
53465 2007-02-01  Karl Berry  <karl@gnu.org>
53466
53467         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
53468
53469 2007-02-01  Bruno Haible  <bruno@clisp.org>
53470
53471         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
53472         renamings.
53473
53474 2007-02-01  Eric Blake  <ebb9@byu.net>
53475
53476         * modules/regex (Depends-on): Revert dependence on mempcpy.
53477         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
53478         module's definition of mempcpy.
53479         Reported by Paul Eggert.
53480
53481 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         * lib/string_.h: If the gnulib module XYZ is not present, undefine
53484         the symbol XYZ before redefining it.  This fixes a problem with
53485         programs that don't use XYZ, when compiled on systems that define
53486         XYZ to something else.
53487
53488 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
53489
53490         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
53491         occurs when "mkdir -m foo" creates a setgid directory that is (1)
53492         writeable to group or other and (2) is intended to have a special
53493         mode bit that is set or cleared.  In such a case, the directory
53494         should be neither group- nor other-writeable until the special
53495         mode bits are right.
53496
53497 2007-01-31  Eric Blake  <ebb9@byu.net>
53498
53499         * modules/mountlist (Depends-on): Add strstr.
53500
53501         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
53502         bug.
53503         * modules/string (Makefile.am): Remove redundant replacement.
53504         * modules/regex (Depends-on): Add mempcpy.
53505
53506 2007-01-31  Bruno Haible  <bruno@clisp.org>
53507
53508         New module description field 'Link'.
53509         * gnulib-tool (func_usage): Document --extract-link-directive.
53510         (sed_extract_prog): Recognize 'Link' directive.
53511         (func_get_link_directive): New function.
53512         (func_import): Show summary of link directives.
53513         Handle --extract-link-directive option.
53514         * modules/acl (Link): New section.
53515         * modules/clock-time (Link): New section.
53516         * modules/euidaccess (Link): New section.
53517         * modules/gettext (Link): New section.
53518         * modules/iconv (Link): New section.
53519         * modules/lock (Link): New section.
53520         * modules/nanosleep (Link): New section.
53521         * modules/readline (Link): New section.
53522
53523 2007-01-27  Bruno Haible  <bruno@clisp.org>
53524
53525         Enforce the use of gnulib modules for unportable <string.h> functions.
53526         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
53527         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
53528         (gl_HEADER_STRING_H_BODY): Require it.
53529         * lib/string_.h: If the gnulib module XYZ is not present, redefine
53530         the symbol XYZ to one that gives a link error.
53531         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
53532         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
53533         * modules/mempcpy (configure.ac): Likewise.
53534         * modules/memrchr (configure.ac): Likewise.
53535         * modules/stpcpy (configure.ac): Likewise.
53536         * modules/stpncpy (configure.ac): Likewise.
53537         * modules/strcase (configure.ac): Likewise.
53538         * modules/strcasestr (configure.ac): Likewise.
53539         * modules/strchrnul (configure.ac): Likewise.
53540         * modules/strdup (configure.ac): Likewise.
53541         * modules/strndup (configure.ac): Likewise.
53542         * modules/strnlen (configure.ac): Likewise.
53543         * modules/strpbrk (configure.ac): Likewise.
53544         * modules/strsep (configure.ac): Likewise.
53545         * modules/strstr (configure.ac): Likewise.
53546         * modules/strtok_r (configure.ac): Likewise.
53547
53548 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
53549
53550         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
53551
53552 2007-01-30  Jim Meyering  <jim@meyering.net>
53553
53554         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
53555
53556 2007-01-29  Bruno Haible  <bruno@clisp.org>
53557
53558         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
53559         * lib/execute.c: Likewise.
53560         * lib/pipe.c: Likewise.
53561         * lib/printf-args.h: Likewise.
53562         * lib/printf-args.c: Likewise.
53563         * lib/printf-parse.c: Likewise.
53564         * lib/vasnprintf.c: Likewise.
53565
53566 2007-01-29  Eric Blake  <ebb9@byu.net>
53567
53568         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
53569         declaration.
53570
53571 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
53572
53573         * lib/strptime.h (strptime): Use 'restrict' for args where
53574         POSIX requires this.
53575         * lib/strptime.c (strptime): Likewise.
53576         Change license notice from LGPL to GPL, since gnulib-tool will
53577         change this as needed.
53578         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
53579         defined.
53580         Include "strptime.h" first, to check interface.
53581         Do not #undef _LIBC and _NL_CURRENT.
53582         Do not include <stdlib.h>; no longer needed.
53583         Include "time_r.h" and declare ptime_locale_status
53584         only if _LIBC is not defined.
53585         (__P): Remove unused macro.
53586         (match_string): Bring back glibc version, but use it only if _LIBC
53587         is defined.
53588         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
53589         Remove unnecessary assertion and abort() call.
53590         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
53591         * m4/strptime.m4: Fix serial number comment.
53592         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
53593         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
53594         (Depends-on): Add time_r.
53595
53596 2007-01-29  Bruno Haible  <bruno@clisp.org>
53597
53598         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53599         strptime.
53600         * modules/strptime (Depends-on): Add stdbool.
53601         * lib/strptime.h: Include <time.h> always. Add comments.
53602
53603 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53604
53605         * modules/strptime: New file.
53606         * lib/strptime.h: New file.
53607         * lib/strptime.c: New file.
53608         * m4/strptime.m4: New file.
53609
53610 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
53611
53612         * MODULES.html.sh: New module mpsort.
53613         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
53614
53615         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
53616         a circularity problem with HP-UX ia64 reported by Bob Proulx in
53617         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
53618         All uses changed.
53619         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
53620         All uses changed.
53621         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
53622         to _Restrict_.
53623         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
53624         the parameter matches the prototype.
53625
53626 2007-01-28  Jim Meyering  <jim@meyering.net>
53627
53628         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
53629         sys/time.h here, reverting that part of the previous patch:
53630         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
53631
53632 2007-01-28  Bruno Haible  <bruno@clisp.org>
53633
53634         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
53635         value of $(SYS_TIME_H).
53636         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
53637         remove it conditionally, too. [added by Jim Meyering]
53638         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
53639         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
53640         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
53641         GETTIMEOFDAY_REPLACEMENT to 1.
53642
53643 2007-01-28  Bruno Haible  <bruno@clisp.org>
53644
53645         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
53646         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
53647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
53648         Set UNISTD_H instead of UNISTD_H2.
53649         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
53650
53651 2007-01-28  Bruno Haible  <bruno@clisp.org>
53652
53653         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
53654         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
53655
53656 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53657
53658         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
53659         (func_create_testdir): Ensure C locale for `grep' and `tr'
53660         character ranges.
53661         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
53662         ACLOCAL_AMFLAGS parsing state machine.
53663
53664 2007-01-27  Bruno Haible  <bruno@clisp.org>
53665
53666         * modules/unistr/base: Update.
53667
53668 2007-01-27  Bruno Haible  <bruno@clisp.org>
53669
53670         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
53671         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
53672         * modules/unistr/u32-mbtouc-unsafe: Renamed from
53673         modules/unistr/u32-mbtouc.
53674         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
53675         * lib/unistr.h: Update.
53676         * lib/linebreak.c: Update.
53677         * modules/unistr/u32-mbtouc: Renamed from
53678         modules/unistr/u32-mbtouc-safe.
53679         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
53680         * lib/unistr.h: Update.
53681         * lib/unistr/u32-to-u8.c: Update.
53682         * lib/unistr/u32-to-u16.c: Update.
53683
53684 2007-01-27  Bruno Haible  <bruno@clisp.org>
53685
53686         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
53687         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
53688         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
53689         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
53690         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
53691         * modules/unistr/u16-mbtouc-unsafe: Renamed from
53692         modules/unistr/u16-mbtouc.
53693         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
53694         * lib/unistr.h: Update.
53695         * lib/linebreak.c: Update.
53696         * modules/linebreak: Update.
53697         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
53698         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
53699         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
53700         * modules/unistr/u16-mbtouc: Renamed from
53701         modules/unistr/u16-mbtouc-safe.
53702         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
53703         * lib/unistr.h: Update.
53704         * lib/unistr/u16-to-u8.c: Update.
53705         * modules/unistr/u16-to-u8: Update.
53706         * lib/unistr/u16-to-u32.c: Update.
53707         * modules/unistr/u16-to-u32: Update.
53708
53709 2007-01-27  Bruno Haible  <bruno@clisp.org>
53710
53711         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
53712         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
53713         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
53714         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
53715         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
53716         * modules/unistr/u8-mbtouc-unsafe: Renamed from
53717         modules/unistr/u8-mbtouc.
53718         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
53719         * lib/unistr.h: Update.
53720         * lib/striconveh.c: Update.
53721         * modules/striconveh: Update.
53722         * lib/linebreak.c: Update.
53723         * modules/linebreak: Update.
53724         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
53725         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
53726         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
53727         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
53728         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
53729         * lib/unistr.h: Update.
53730         * lib/striconveh.c: Update.
53731         * modules/striconveh: Update.
53732         * lib/unistr/u8-to-u16.c: Update.
53733         * modules/unistr/u8-to-u16: Update.
53734         * lib/unistr/u8-to-u32.c: Update.
53735         * modules/unistr/u8-to-u32: Update.
53736
53737 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53738
53739         Sync from Libtool.
53740         * lib/argz.c: Do not include strings.h nor memory.h, include
53741         string.h unconditionally.  Patch by Simon Josefsson.
53742
53743 2007-01-27  Bruno Haible  <bruno@clisp.org>
53744
53745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
53746         from gl_HEADER_STRING_H_BODY.
53747         (gl_HEADER_STRING_H_BODY): Require it.
53748         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
53749         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53750         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53751         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53752         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53753         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
53754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53755         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53756         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
53757         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53758         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53759         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
53760         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53761         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53762         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
53763
53764 2007-01-27  Bruno Haible  <bruno@clisp.org>
53765
53766         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
53767         check_PROGRAMS into noinst_PROGRAMS.
53768         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
53769         check_PROGRAMS in this case.
53770         (func_import): Set for_test to false.
53771         (func_create_testdir): Set for_test to true.
53772
53773 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
53774             Bruno Haible  <bruno@clisp.org>
53775
53776         * modules/strcasestr (Files): Remove lib/strcasestr.h.
53777         (Depends-on): Add string.
53778         (Includes): Use <string.h> instead of strcasestr.h.
53779         * modules/string (Makefile.am): Also substitute the value of
53780         REPLACE_STRCASESTR.
53781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
53782         assume strcasestr is declared in <string.h> not <strings.h>. Also
53783         set REPLACE_STRCASESTR.
53784         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
53785         REPLACE_STRCASESTR.
53786         * lib/strcasestr.h: Remove file.
53787         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
53788         * lib/string_.h (strcasestr): New declaration.
53789
53790 2007-01-27  Bruno Haible  <bruno@clisp.org>
53791
53792         * lib/string_.h: Use 'extern'.
53793
53794 2007-01-27  Jim Meyering  <jim@meyering.net>
53795
53796         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
53797         of set-but-not-used local, "q".
53798
53799         * lib/mempcpy.c: Include <config.h> before <string.h>.
53800         This fixes a compilation error on HP-UX, due to the system's
53801         "restrict"-using mempcpy prototype.
53802
53803 2007-01-26  Bruno Haible  <bruno@clisp.org>
53804
53805         Small optimization.
53806         * lib/javacomp.c: Include c-strstr.h.
53807          (is_envjavac_gcj): Use c_strstr instead of strstr.
53808         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
53809
53810 2007-01-26  Bruno Haible  <bruno@clisp.org>
53811
53812         * MODULES.html.sh (Unicode string functions): Add the new modules.
53813
53814         * modules/uniconv/u32-strconv-to-locale: New file.
53815         * lib/uniconv/u32-strconv-to-locale.c: New file.
53816
53817         * modules/uniconv/u16-strconv-to-locale: New file.
53818         * lib/uniconv/u16-strconv-to-locale.c: New file.
53819
53820         * modules/uniconv/u8-strconv-to-locale: New file.
53821         * lib/uniconv/u8-strconv-to-locale.c: New file.
53822
53823         * modules/uniconv/u32-strconv-from-locale: New file.
53824         * lib/uniconv/u32-strconv-from-locale.c: New file.
53825
53826         * modules/uniconv/u16-strconv-from-locale: New file.
53827         * lib/uniconv/u16-strconv-from-locale.c: New file.
53828
53829         * modules/uniconv/u8-strconv-from-locale: New file.
53830         * lib/uniconv/u8-strconv-from-locale.c: New file.
53831
53832         * modules/uniconv/u32-strconv-to-enc: New file.
53833         * lib/uniconv/u32-strconv-to-enc.c: New file.
53834         * modules/uniconv/u32-strconv-to-enc-tests: New file.
53835         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
53836
53837         * modules/uniconv/u16-strconv-to-enc: New file.
53838         * lib/uniconv/u16-strconv-to-enc.c: New file.
53839         * lib/uniconv/u-strconv-to-enc.h: New file.
53840         * modules/uniconv/u16-strconv-to-enc-tests: New file.
53841         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
53842
53843         * modules/uniconv/u8-strconv-to-enc: New file.
53844         * lib/uniconv/u8-strconv-to-enc.c: New file.
53845         * modules/uniconv/u8-strconv-to-enc-tests: New file.
53846         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
53847
53848         * modules/uniconv/u32-strconv-from-enc: New file.
53849         * lib/uniconv/u32-strconv-from-enc.c: New file.
53850         * modules/uniconv/u32-strconv-from-enc-tests: New file.
53851         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
53852
53853         * modules/uniconv/u16-strconv-from-enc: New file.
53854         * lib/uniconv/u16-strconv-from-enc.c: New file.
53855         * modules/uniconv/u16-strconv-from-enc-tests: New file.
53856         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
53857
53858         * modules/uniconv/u8-strconv-from-enc: New file.
53859         * lib/uniconv/u8-strconv-from-enc.c: New file.
53860         * lib/uniconv/u-strconv-from-enc.h: New file.
53861         * modules/uniconv/u8-strconv-from-enc-tests: New file.
53862         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
53863
53864         * modules/uniconv/u32-conv-from-enc: New file.
53865         * lib/uniconv/u32-conv-from-enc.c: New file.
53866         * modules/uniconv/u32-conv-from-enc-tests: New file.
53867         * tests/uniconv/test-u32-conv-from-enc.c: New file.
53868
53869         * modules/uniconv/u16-conv-from-enc: New file.
53870         * lib/uniconv/u16-conv-from-enc.c: New file.
53871         * lib/uniconv/u-conv-from-enc.h: New file.
53872         * modules/uniconv/u16-conv-from-enc-tests: New file.
53873         * tests/uniconv/test-u16-conv-from-enc.c: New file.
53874
53875         * modules/uniconv/u8-conv-from-enc: New file.
53876         * lib/uniconv/u8-conv-from-enc.c: New file.
53877         * modules/uniconv/u8-conv-from-enc-tests: New file.
53878         * tests/uniconv/test-u8-conv-from-enc.c: New file.
53879
53880         * modules/uniconv/base: New file.
53881         * lib/uniconv.h: New file.
53882
53883 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53884
53885         * doc/gnulib-tool.texi (Initial import): Update to match current
53886         behavior with strdup module.
53887         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
53888         * lib/memmem.h: Remove; all uses removed.  This is now done
53889         by <string.h>.
53890         * lib/mempcpy.h: Likewise.
53891         * lib/memrchr.h: Likewise.
53892         * lib/stpcpy.h: Likewise.
53893         * lib/stpncpy.h: Likewise.
53894         * lib/strcase.h: Likewise.
53895         * lib/strchrnul.h: Likewise.
53896         * lib/strdup.h: Likewise.
53897         * lib/strndup.h: Likewise.
53898         * lib/strnlen.h: Likewise.
53899         * lib/strpbrk.h: Likewise.
53900         * lib/strsep.h: Likewise.
53901         * lib/strstr.h: Likewise.
53902         * lib/strtok_r.h: Likewise.
53903         * lib/string_.h: New file.
53904         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
53905         Rely on <string.h> instead.
53906         * lib/canon-host.c: Likewise.
53907         * lib/chdir-long.c: Likewise.
53908         * lib/concatpath.c: Likewise.
53909         * lib/exclude.c: Likewise.
53910         * lib/fchdir.c: Likewise.
53911         * lib/getaddrinfo.c: Likewise.
53912         * lib/getcwd.c: Likewise.
53913         * lib/getsubopt.c: Likewise.
53914         * lib/glob.c: Likewise.
53915         * lib/hard-locale.c: Likewise.
53916         * lib/iconvme.c: Likewise.
53917         * lib/javacomp.c: Likewise.
53918         * lib/mempcpy.c: Likewise.
53919         * lib/memrchr.c: Likewise.
53920         * lib/regex_internal.h: Likewise.
53921         * lib/stpncpy.c: Likewise.
53922         * lib/strcasecmp.c: Likewise.
53923         * lib/strchrnul.c: Likewise.
53924         * lib/strdup.c: Likewise.
53925         * lib/striconv.c: Likewise.
53926         * lib/striconveh.c: Likewise.
53927         * lib/striconveha.c: Likewise.
53928         * lib/strncasecmp.c: Likewise.
53929         * lib/strndup.c: Likewise.
53930         * lib/strnlen.c: Likewise.
53931         * lib/strsep.c: Likewise.
53932         * lib/strstr.c: Likewise.
53933         * lib/strtok_r.c: Likewise.
53934         * lib/userspec.c: Likewise.
53935         * lib/w32spawn.h: Likewise.
53936         * lib/xstrndup.c: Likewise.
53937         * lib/mountlist.c (strstr): Remove decl.
53938         * m4/string_h.m4: New file.
53939         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
53940         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
53941         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
53942         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
53943         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
53944         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
53945         Set REPLACE_STRCASECMP if necessary.
53946         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
53947         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
53948         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
53949         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
53950         HAVE_DECL_STRDUP if necessary.
53951         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
53952         since gl_FUNC_STRNDUP does that now.
53953         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
53954         Check for decl here...
53955         (gl_PREREQ_STRNLEN): ... not here.
53956         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
53957         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
53958         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
53959         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
53960         necessary.
53961         * modules/string: New file.
53962         * modules/memmem (Files): Remove special-purpose include file.
53963         (Depends-on): Add string.
53964         (Include): Include <string.h>, not the removed file.
53965         * modules/mempcpy: Likewise.
53966         * modules/memrchr: Likewise.
53967         * modules/stpcpy: Likewise.
53968         * modules/stpncpy: Likewise.
53969         * modules/strcase: Likewise.
53970         * modules/strchrnul: Likewise.
53971         * modules/strdup: Likewise.
53972         * modules/strndup: Likewise.
53973         * modules/strnlen: Likewise.
53974         * modules/strpbrk: Likewise.
53975         * modules/strsep: Likewise.
53976         * modules/strstr: Likewise.
53977         * modules/strtok_r: Likewise.
53978         * tests/test-dirname.c: Don't include "strdup.h", since
53979         <string.h> now suffices.
53980         * tests/test-memmem.c: Don't include "memmem.h", since
53981         <string.h> now suffices.
53982
53983 2007-01-25  Bruno Haible  <bruno@clisp.org>
53984
53985         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
53986         *resultp is 0.
53987
53988         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
53989         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
53990         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
53991         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
53992
53993         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
53994         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
53995         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
53996         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
53997         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
53998         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
53999
54000 2007-01-24  Bruno Haible  <bruno@clisp.org>
54001
54002         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
54003         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
54004         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
54005         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
54006         gl_FUNC_FTS_CORE.
54007         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
54008         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
54009         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54010         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
54011         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
54012         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
54013         gl_FUNC_FCHOWNAT.
54014         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
54015         gl_FUNC_STRFTIME.
54016         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
54017         Reported by Ralf Wildenhues.
54018
54019 2007-01-24  Bruno Haible  <bruno@clisp.org>
54020
54021         Drop AC_REQUIRE calls that are redundant with the module dependencies.
54022         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
54023         gl_GETADDRINFO.
54024         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
54025         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
54026         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
54027
54028 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
54029
54030         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
54031         Don't use 'exit'; just return from 'main'.
54032         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
54033
54034         * lib/fnmatch_.h: Readjust white space and comments to match
54035         glibc, to avoid spurious diffs.
54036
54037 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54038
54039         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
54040         2004-12-01 change by Jakub Jelinek, since this code won't compile
54041         if !LIBC.  Problem reported by Bob Proulx.
54042
54043 2007-01-23  Bruno Haible  <bruno@clisp.org>
54044
54045         * lib/striconveh.c: Include c-strcaseeq.h.
54046         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
54047         * modules/striconveh (Depends-on): Add c-strcaseeq.
54048
54049 2007-01-23  Bruno Haible  <bruno@clisp.org>
54050
54051         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
54052
54053         * modules/c-strcaseeq: New file.
54054         * lib/c-strcaseeq.h: New file.
54055
54056         * modules/streq: New file.
54057         * lib/streq.h: New file.
54058
54059 2007-01-23  Bruno Haible  <bruno@clisp.org>
54060
54061         * modules/striconveha-tests: New file.
54062         * tests/test-striconveha.c: New file.
54063
54064         * lib/striconveha.h: Include <stdbool.h>.
54065         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
54066         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
54067         (mem_iconveha_notranslit): Renamed from mem_iconveha.
54068         (mem_iconveha): New function.
54069         (str_iconveha_notranslit): Renamed from str_iconveha.
54070         (str_iconveha): New function.
54071         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
54072         c-strcase.
54073
54074 2007-01-23  Bruno Haible  <bruno@clisp.org>
54075
54076         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
54077         encodings without forgiving before trying any encoding with handler.
54078         (str_iconveha): Try all encodings without forgiving before trying any
54079         encoding with handler.
54080
54081 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54082
54083         Import the following changes from libc.
54084
54085         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
54086
54087         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
54088
54089         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
54090
54091         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
54092         normal_bracket label.
54093
54094         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
54095
54096         [BZ #361]
54097         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
54098         to normal_bracket after fetching the next character.
54099
54100 2007-01-22  Bruno Haible  <bruno@clisp.org>
54101
54102         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
54103         argument.
54104         * lib/striconveh.c (iconv_carefully_1): New function.
54105         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
54106         argument.
54107         (str_cd_iconveh): Update.
54108         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
54109         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
54110         * tests/test-striconveh.c (MAGIC): New macro.
54111         (new_offsets): New function.
54112         (main): Test call with and without offsets.
54113
54114 2007-01-22  Bruno Haible  <bruno@clisp.org>
54115
54116         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
54117         * modules/sys_select (Makefile.am): Likewise.
54118         * modules/sys_socket (Makefile.am): Likewise.
54119         * modules/sys_time (Makefile.am): Likewise.
54120
54121 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54122
54123         * modules/gettimeofday (License): Change from GPL to LGPL, since
54124         gettimeofday is a library function.
54125
54126 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54127
54128         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
54129
54130 2007-01-21  Bruno Haible  <bruno@clisp.org>
54131
54132         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
54133
54134 2007-01-21  Bruno Haible  <bruno@clisp.org>
54135
54136         * modules/striconveha: New file.
54137         * lib/striconveha.h: New file.
54138         * lib/striconveha.c: New file.
54139         * MODULES.html.sh (Internationalization functions): Add striconveha.
54140         * lib/striconv.c (str_iconv): Optimize the case of an empty input
54141         string.
54142         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
54143
54144 2007-01-21  Bruno Haible  <bruno@clisp.org>
54145
54146         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
54147         * lib/striconveh.c (str_iconveh): Likewise.
54148
54149 2007-01-21  Bruno Haible  <bruno@clisp.org>
54150
54151         * lib/striconveh.h (mem_iconveh): New declaration.
54152         * lib/striconveh.c (mem_iconveh): New function.
54153         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
54154
54155 2007-01-21  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
54158
54159         * lib/striconveh.h (mem_cd_iconveh): Change specification.
54160         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
54161         original result buffer.
54162         (str_cd_iconveh): Update.
54163         * tests/test-striconveh.c (main): Update.
54164
54165         * lib/striconv.h (mem_cd_iconv): Change specification.
54166         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
54167         result buffer.
54168         (str_cd_iconv): Update.
54169         * tests/test-striconv.c (main): Update.
54170
54171 2007-01-21  Bruno Haible  <bruno@clisp.org>
54172
54173         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
54174
54175 2007-01-20  Jim Meyering  <jim@meyering.net>
54176
54177         * lib/userspec.c (parse_with_separator): If a user or group string
54178         starts with "+", skip the corresponding name-to-ID look-up, since
54179         such a look-up must fail: user and group names may not include "+".
54180
54181 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
54182
54183         * lib/poll.c: Include sys/time.h and time.h unconditionally,
54184         since we now assume the sys_time module.
54185         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
54186         check for sys/time.h; no longer needed.
54187         * modules/poll (Depends-on): Depend on sys_time.
54188
54189 2007-01-18  Bruno Haible  <bruno@clisp.org>
54190
54191         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
54192         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54193
54194         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
54195         gettimeofday.
54196
54197         * tests/test-gettimeofday.c: Include <time.h>.
54198         (dummy): Remove variable.
54199
54200         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
54201         gl_HEADER_SYS_TIME_H.
54202         (gl_HEADER_SYS_TIME_H): New macro.
54203
54204         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
54205         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54206         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54207         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
54208         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54209         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
54210         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
54211         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54212         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
54213         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
54214         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54215
54216         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
54217         last change; it caused a compilation error when cross-compiling to
54218         Cygwin.
54219
54220 2007-01-18  Jim Meyering  <jim@meyering.net>
54221
54222         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
54223         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
54224         than the race-prone "test -d sys || mkdir sys".
54225         (configure.ac): Use AC_PROG_MKDIR_P.
54226         * modules/sys_select: Likewise.
54227         * modules/sys_socket: Likewise.
54228         * modules/sys_time: Likewise.
54229
54230 2007-01-18  Eric Blake  <ebb9@byu.net>
54231
54232         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
54233         replace gettimeofday.
54234         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
54235         name, to avoid infinite recursion.
54236
54237 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
54238
54239         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
54240         module sys_time.
54241         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
54242         assume timespec.h defines struct timeval.
54243         * lib/settime.c: Likewise.
54244         * lib/utimens.c: Likewise.
54245         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
54246         since we now assume the gettimeofday module.
54247         * lib/tempname.c (__gen_tempname): Likewise.
54248         * lib/gettimeofday.h: Remove.
54249         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
54250         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
54251         Include <time.h>, for 'time()'.
54252         (localtime_buffer_addr): Also use this workaround if
54253         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
54254         to simplify the uses.  All uses changed.
54255         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
54256         that #undef is inside {}, and 'const' follows type name consistently.
54257         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
54258         (gettimeofday): Do not use the maximum possible value for
54259         tv->tv_usec, since that might break usages other than ls.c.
54260         Instead, we'll leave ls.c alone.  This undoes today's patch
54261         by Bruno.  Add a compile-time warning for 1s-clock resolution;
54262         we've never observed the problem but might as well keep the
54263         canary.
54264         * lib/nanosleep.c: Include timespec.h first, for interface check.
54265         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
54266         now assume the sys_time module.
54267         * lib/tempname.c: Likewise.
54268         * lib/timespec.h: Likewise.
54269         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
54270         needed.
54271         * lib/strftime.c: Likewise.
54272         * lib/timespec.h: Likewise.
54273         * lib/posixtm.c: Include posixtm.h first, for interface check.
54274         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
54275         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
54276         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
54277         * lib/sys_time_.h: New file.
54278         * lib/timespec.h (struct timespec): Use long int, not long.
54279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54280         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
54281         Remove obsolescent call to AC_HEADER_TIME.
54282         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
54283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54284         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
54285         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
54286         Likewise.
54287         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
54288         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
54289         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
54290         into the sys_time module.  Check for gettimeofday just once.
54291         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
54292         for gettimeofday signature to just check the signature.  Merely
54293         compile it, since linking doesn't test signature.  Improve test for
54294         whether gettimeofday.o is actually needed.
54295         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
54296         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
54297         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
54298         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54299         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
54300         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
54301         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
54302         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
54303         than worrying about sys/time.h.
54304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
54305         Don't bother worrying about TIME_WITH_SYS_TIME.
54306         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
54307         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
54308         * m4/sys_time_h.m4: New file.
54309         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
54310         Don't include sys/time.h.  Return from main rather than exiting.
54311         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
54312         all uses changed.
54313         * modules/gethrxtime (Depends-on): Add sys_time.
54314         * modules/gettime (Depends-on): Likewise.
54315         * modules/gettimeofday (Depends-on): Likewise.
54316         * modules/nanosleep (Depends-on): Likewise.
54317         * modules/settime (Depends-on): Likewise.
54318         * modules/tempname (Depends-on): Likewise.
54319         * modules/utimens (Depends-on): Likewise.
54320         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
54321         (Include:) Change back to <sys/time.h>.
54322         (Maintainer:) Add self.
54323         * modules/sys_time: New file.
54324         * modules/tempname (Depends-on): Add gettimeofday.
54325         * tests/test-gettimeofday.c: Include <sys/time.h>
54326         rather than gettimeofday.h.
54327
54328 2007-01-17  Bruno Haible  <bruno@clisp.org>
54329
54330         * gnulib-tool (func_get_license): Revert last patch. Instead, let
54331         the license default to GPL.
54332         (func_create_testdir): Don't complain if a module is LGPL and its
54333         tests module depends on GPLed modules.
54334
54335 2007-01-17  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/gettimeofday.c (gettimeofday): Add code for the case
54338         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
54339         maximum possible value for tv->tv_usec, rather than the minimum one.
54340
54341 2005-10-08  Martin Lambers  <marlam@marlam.de>
54342 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54343 2007-01-16  Bruno Haible  <bruno@clisp.org>
54344
54345         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
54346         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
54347         gl_FUNC_GETTIMEOFDAY.
54348         (Include): Add gettimeofday.h.
54349         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
54350         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
54351         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
54352         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
54353         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
54354         * lib/gettimeofday.h: New file.
54355         * lib/gettimeofday.c: Include <sys/timeb.h>.
54356         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
54357         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
54358         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
54359         fall back on time().
54360
54361         * tests/test-gettimeofday.c: New file.
54362         * modules/gettimeofday-tests: New file.
54363
54364 2007-01-16  Eric Blake  <ebb9@byu.net>
54365
54366         * modules/fnmatch (Depends-on): Depend on wchar.
54367         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
54368         * m4/fnmatch.m4: Likewise.
54369         * modules/mbchar (Makefile.am): Assume <wchar.h>.
54370         * m4/mbchar.m4: Likewise.
54371         * modules/mbswidth (Depends-on): Depend on wchar.
54372         * lib/mbswidth.c: Assume <wchar.h>.
54373         * m4/mbswidth.m4: Likewise.
54374         * modules/quotearg (Depends-on): Depend on wchar.
54375         * lib/quotearg.c: Assume <wchar.h>.
54376         * m4/quotearg.m4: Likewise.
54377         * modules/regex (Depends-on): Depend on wchar.
54378         * lib/regex_internal.h: Assume <wchar.h>.
54379         * m4/regex.m4: Likewise.
54380         * modules/stdint (Depends-on): Depend on wchar.
54381         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
54382         * m4/stdint.m4: Likewise.
54383         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
54384         * modules/strftime (Depends-on): Depend on wchar.
54385         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
54386         * modules/strtol (Depends-on): Depend on wchar.
54387         * lib/strtol.c: Assume <wchar.h>.
54388         * modules/wcwidth (Depends-on): Depend on wchar.
54389         * lib/wcwidth.h: Assume <wchar.h>.
54390         * m4/wcwidth.m4: Likewise.
54391
54392 2007-01-16  Bruno Haible  <bruno@clisp.org>
54393
54394         * modules/csharpexec-script: New, created from...
54395         * modules/csharpexec: ... this.
54396
54397 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54398
54399         * modules/javaexec-script: New, created from...
54400         * modules/javaexec: ... this.
54401
54402 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54403
54404         * modules/poll (Dependencies): Add sys_select.
54405
54406 2007-01-15  Jim Meyering  <jim@meyering.net>
54407
54408         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
54409         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
54410         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
54411         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
54412
54413 2007-01-15  Bruno Haible  <bruno@clisp.org>
54414
54415         * modules/striconveh: New file.
54416         * lib/striconveh.h: New file.
54417         * lib/striconveh.c: New file.
54418         * MODULES.html.sh (Internationalization functions): Add striconveh.
54419
54420         * modules/striconveh-tests: New file.
54421         * tests/test-striconveh.c: New file.
54422
54423 2007-01-15  Bruno Haible  <bruno@clisp.org>
54424
54425         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
54426         not from GNU libiconv or GNU libc.
54427
54428 2007-01-15  Bruno Haible  <bruno@clisp.org>
54429
54430         * doc/gnulib-intro.texi (Copyright): Explain the different license
54431         terms for module descriptions, autoconf macros, tests, documentation.
54432
54433 2007-01-14  Bruno Haible  <bruno@clisp.org>
54434
54435         * modules/striconv-tests: New file.
54436         * tests/test-striconv.c: New file.
54437
54438 2007-01-14  Bruno Haible  <bruno@clisp.org>
54439
54440         * modules/iconv-tests: New file.
54441         * tests/test-iconv.c: New file.
54442
54443 2007-01-14  Bruno Haible  <bruno@clisp.org>
54444
54445         * gnulib-tool (func_get_license): For test modules, use the license of
54446         the main module.
54447
54448 2007-01-14  Bruno Haible  <bruno@clisp.org>
54449
54450         * modules/iconv (Include): Clarify that <iconv.h> can only be included
54451         if iconv is found to exist.
54452
54453 2007-01-14  Bruno Haible  <bruno@clisp.org>
54454
54455         * modules/c-ctype-tests: New file.
54456         * tests/test-c-ctype.c: New file.
54457
54458 2007-01-14  Bruno Haible  <bruno@clisp.org>
54459
54460         * modules/binary-io-tests: New file.
54461         * tests/test-binary-io.sh: New file.
54462         * tests/test-binary-io.c: New file.
54463
54464 2007-01-14  Bruno Haible  <bruno@clisp.org>
54465
54466         * modules/array-oset-tests: New file.
54467         * tests/test-array_oset.c: New file.
54468
54469 2007-01-14  Bruno Haible  <bruno@clisp.org>
54470
54471         * modules/array-list-tests: New file.
54472         * tests/test-array_list.c: New file.
54473
54474 2007-01-14  Bruno Haible  <bruno@clisp.org>
54475
54476         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
54477         and make.
54478         Reported by Simon Josefsson in
54479         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
54480
54481 2007-01-14  Bruno Haible  <bruno@clisp.org>
54482
54483         * modules/allocsa-tests: New file.
54484         * tests/test-allocsa.c: New file.
54485
54486 2007-01-14  Bruno Haible  <bruno@clisp.org>
54487
54488         * modules/fchdir (Depends-on): Add absolute-header.
54489         * modules/unistd (Depends-on): Likewise.
54490
54491 2006-12-30  Bruno Haible  <bruno@clisp.org>
54492
54493         * modules/fchdir: New file.
54494         * modules/unistd (Files): Add lib/unistd_.h.
54495         (Makefile.am): Generate unistd.h from unistd_.h.
54496         * lib/fchdir.c: New file.
54497         * lib/dirent_.h: New file.
54498         * lib/unistd_.h: New file.
54499         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
54500         * m4/fchdir.m4: New file.
54501         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
54502         (gl_HEADER_UNISTD): Invoke it.
54503         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
54504         function.
54505         * lib/backupfile.c (opendir, closedir): Undefine.
54506         * lib/chown.c (open, close): Undefine.
54507         * lib/clean-temp.c (open, close): Undefine.
54508         * lib/copy-file.c (open, close): Undefine.
54509         * lib/execute.c (open, close): Undefine.
54510         * lib/fsusage.c (open, close): Undefine.
54511         * lib/gc-gnulib.c (open, close): Undefine.
54512         * lib/getcwd.c (opendir, closedir): Undefine.
54513         * lib/glob.c (opendir, closedir): Undefine.
54514         * lib/javacomp.c (open, close): Undefine.
54515         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
54516         * lib/openat-proc.c (open, close): Undefine.
54517         * lib/pagealign_alloc.c (open, close): Undefine.
54518         * lib/pipe.c (open, close): Undefine.
54519         * lib/progreloc.c (open, close): Undefine.
54520         * lib/savedir.c (opendir, closedir): Undefine.
54521         * lib/utime.c (open, close): Undefine.
54522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
54523
54524 2007-01-10  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
54527
54528 2007-01-12  Eric Blake  <ebb9@byu.net>
54529
54530         Provide a robust <wchar.h>.  Further simplifications are now
54531         possible in other modules, but not included here.
54532         * modules/wchar: New module.
54533         * m4/wchar.m4: New file.
54534         * lib/wchar_.h: Likewise.
54535         * modules/mbchar (Depends-on): Depend on wchar, as the first use
54536         of the new module.
54537         * MODULES.html.sh (Extended multibyte and wide character utilities):
54538         New section.
54539
54540 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
54541
54542         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
54543         to a reasonable default for memory allocation.
54544         (xreadlink): Don't allocate a huge buffer, to work around a buggy
54545         file system that reports garbage st_size values for symlinks.
54546         Problem reported by Liyang Hu.
54547
54548 2007-01-11  Simon Josefsson  <simon@josefsson.org>
54549
54550         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
54551         Emacs .#* auto-save files).
54552
54553 2007-01-11  Bruno Haible  <bruno@clisp.org>
54554
54555         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
54556         directory.
54557
54558 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54559
54560         Use @...@ consistently in lib/wctype_.h.
54561         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
54562         on it being set to 1 or 0.
54563         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
54564         go back to AC_SUBSTing it.
54565         * modules/wctype (Makefile.am): Undo previous change.
54566
54567 2007-01-10  Eric Blake  <ebb9@byu.net>
54568
54569         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
54570         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
54571         * modules/wctype (Makefile.am): Likewise.
54572         Reported by Chris McGuire.
54573
54574 2007-01-10  Jim Meyering  <jim@meyering.net>
54575
54576         fts.c: a small readability/maintainability improvement
54577         * lib/fts.c (fts_read): Make this code slightly more readable and
54578         maintainable by hoisting the "sp->fts_cur = p" assignments to
54579         immediately follow the statements that set P.  Derived from
54580         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
54581
54582 2007-01-10  Eric Blake  <ebb9@byu.net>
54583
54584         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
54585         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
54586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
54587         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54588         Reported by Chris McGuire.
54589
54590 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54591
54592         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
54593         in sed script.
54594
54595 2007-01-09  Bruno Haible  <bruno@clisp.org>
54596
54597         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
54598         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
54599         variables.
54600         (func_module): Use them.
54601
54602 2007-01-09  Bruno Haible  <bruno@clisp.org>
54603
54604         * modules/unistr/base: New file.
54605         * lib/unistr.h: New file.
54606
54607         * modules/unistr/u8-to-u16: New file.
54608         * lib/unistr/u8-to-u16.c: New file.
54609
54610         * modules/unistr/u8-to-u32: New file.
54611         * lib/unistr/u8-to-u32.c: New file.
54612
54613         * modules/unistr/u16-to-u8: New file.
54614         * lib/unistr/u16-to-u8.c: New file.
54615
54616         * modules/unistr/u16-to-u32: New file.
54617         * lib/unistr/u16-to-u32.c: New file.
54618
54619         * modules/unistr/u32-to-u8: New file.
54620         * lib/unistr/u32-to-u8.c: New file.
54621
54622         * modules/unistr/u32-to-u16: New file.
54623         * lib/unistr/u32-to-u16.c: New file.
54624
54625         * modules/unistr/u8-check: New file.
54626         * modules/unistr/u16-check: New file.
54627         * modules/unistr/u32-check: New file.
54628         * lib/unistr/u8-check.c: New file.
54629         * lib/unistr/u16-check.c: New file.
54630         * lib/unistr/u32-check.c: New file.
54631
54632         * modules/unistr/u8-chr: New file.
54633         * modules/unistr/u16-chr: New file.
54634         * modules/unistr/u32-chr: New file.
54635         * lib/unistr/u8-chr.c: New file.
54636         * lib/unistr/u16-chr.c: New file.
54637         * lib/unistr/u32-chr.c: New file.
54638
54639         * modules/unistr/u8-cmp: New file.
54640         * modules/unistr/u16-cmp: New file.
54641         * modules/unistr/u32-cmp: New file.
54642         * lib/unistr/u8-cmp.c: New file.
54643         * lib/unistr/u16-cmp.c: New file.
54644         * lib/unistr/u32-cmp.c: New file.
54645
54646         * modules/unistr/u8-cpy: New file.
54647         * modules/unistr/u16-cpy: New file.
54648         * modules/unistr/u32-cpy: New file.
54649         * lib/unistr/u8-cpy.c: New file.
54650         * lib/unistr/u16-cpy.c: New file.
54651         * lib/unistr/u32-cpy.c: New file.
54652         * lib/unistr/u-cpy.h: New file.
54653
54654         * modules/unistr/u8-cpy-alloc: New file.
54655         * modules/unistr/u16-cpy-alloc: New file.
54656         * modules/unistr/u32-cpy-alloc: New file.
54657         * lib/unistr/u8-cpy-alloc.c: New file.
54658         * lib/unistr/u16-cpy-alloc.c: New file.
54659         * lib/unistr/u32-cpy-alloc.c: New file.
54660         * lib/unistr/u-cpy-alloc.h: New file.
54661
54662         * modules/unistr/u8-endswith: New file.
54663         * modules/unistr/u16-endswith: New file.
54664         * modules/unistr/u32-endswith: New file.
54665         * lib/unistr/u8-endswith.c: New file.
54666         * lib/unistr/u16-endswith.c: New file.
54667         * lib/unistr/u32-endswith.c: New file.
54668         * lib/unistr/u-endswith.h: New file.
54669
54670         * modules/unistr/u8-mblen: New file.
54671         * modules/unistr/u16-mblen: New file.
54672         * modules/unistr/u32-mblen: New file.
54673         * lib/unistr/u8-mblen.c: New file.
54674         * lib/unistr/u16-mblen.c: New file.
54675         * lib/unistr/u32-mblen.c: New file.
54676
54677         * modules/unistr/u8-mbtouc: New file.
54678         * modules/unistr/u16-mbtouc: New file.
54679         * modules/unistr/u32-mbtouc: New file.
54680         * lib/unistr/u8-mbtouc.c: New file.
54681         * lib/unistr/u16-mbtouc.c: New file.
54682         * lib/unistr/u32-mbtouc.c: New file.
54683
54684         * modules/unistr/u8-mbtouc-safe: New file.
54685         * modules/unistr/u16-mbtouc-safe: New file.
54686         * modules/unistr/u32-mbtouc-safe: New file.
54687         * lib/unistr/u8-mbtouc-safe.c: New file.
54688         * lib/unistr/u16-mbtouc-safe.c: New file.
54689         * lib/unistr/u32-mbtouc-safe.c: New file.
54690
54691         * modules/unistr/u8-move: New file.
54692         * modules/unistr/u16-move: New file.
54693         * modules/unistr/u32-move: New file.
54694         * lib/unistr/u8-move.c: New file.
54695         * lib/unistr/u16-move.c: New file.
54696         * lib/unistr/u32-move.c: New file.
54697         * lib/unistr/u-move.h: New file.
54698
54699         * modules/unistr/u8-next: New file.
54700         * modules/unistr/u16-next: New file.
54701         * modules/unistr/u32-next: New file.
54702         * lib/unistr/u8-next.c: New file.
54703         * lib/unistr/u16-next.c: New file.
54704         * lib/unistr/u32-next.c: New file.
54705
54706         * modules/unistr/u8-prev: New file.
54707         * modules/unistr/u16-prev: New file.
54708         * modules/unistr/u32-prev: New file.
54709         * lib/unistr/u8-prev.c: New file.
54710         * lib/unistr/u16-prev.c: New file.
54711         * lib/unistr/u32-prev.c: New file.
54712
54713         * modules/unistr/u8-set: New file.
54714         * modules/unistr/u16-set: New file.
54715         * modules/unistr/u32-set: New file.
54716         * lib/unistr/u8-set.c: New file.
54717         * lib/unistr/u16-set.c: New file.
54718         * lib/unistr/u32-set.c: New file.
54719         * lib/unistr/u-set.h: New file.
54720
54721         * modules/unistr/u8-startswith: New file.
54722         * modules/unistr/u16-startswith: New file.
54723         * modules/unistr/u32-startswith: New file.
54724         * lib/unistr/u8-startswith.c: New file.
54725         * lib/unistr/u16-startswith.c: New file.
54726         * lib/unistr/u32-startswith.c: New file.
54727         * lib/unistr/u-startswith.h: New file.
54728
54729         * modules/unistr/u8-stpcpy: New file.
54730         * modules/unistr/u16-stpcpy: New file.
54731         * modules/unistr/u32-stpcpy: New file.
54732         * lib/unistr/u8-stpcpy.c: New file.
54733         * lib/unistr/u16-stpcpy.c: New file.
54734         * lib/unistr/u32-stpcpy.c: New file.
54735         * lib/unistr/u-stpcpy.h: New file.
54736
54737         * modules/unistr/u8-stpncpy: New file.
54738         * modules/unistr/u16-stpncpy: New file.
54739         * modules/unistr/u32-stpncpy: New file.
54740         * lib/unistr/u8-stpncpy.c: New file.
54741         * lib/unistr/u16-stpncpy.c: New file.
54742         * lib/unistr/u32-stpncpy.c: New file.
54743         * lib/unistr/u-stpncpy.h: New file.
54744
54745         * modules/unistr/u8-strcat: New file.
54746         * modules/unistr/u16-strcat: New file.
54747         * modules/unistr/u32-strcat: New file.
54748         * lib/unistr/u8-strcat.c: New file.
54749         * lib/unistr/u16-strcat.c: New file.
54750         * lib/unistr/u32-strcat.c: New file.
54751         * lib/unistr/u-strcat.h: New file.
54752
54753         * modules/unistr/u8-strchr: New file.
54754         * modules/unistr/u16-strchr: New file.
54755         * modules/unistr/u32-strchr: New file.
54756         * lib/unistr/u8-strchr.c: New file.
54757         * lib/unistr/u16-strchr.c: New file.
54758         * lib/unistr/u32-strchr.c: New file.
54759
54760         * modules/unistr/u8-strcmp: New file.
54761         * modules/unistr/u16-strcmp: New file.
54762         * modules/unistr/u32-strcmp: New file.
54763         * lib/unistr/u8-strcmp.c: New file.
54764         * lib/unistr/u16-strcmp.c: New file.
54765         * lib/unistr/u32-strcmp.c: New file.
54766
54767         * modules/unistr/u8-strcpy: New file.
54768         * modules/unistr/u16-strcpy: New file.
54769         * modules/unistr/u32-strcpy: New file.
54770         * lib/unistr/u8-strcpy.c: New file.
54771         * lib/unistr/u16-strcpy.c: New file.
54772         * lib/unistr/u32-strcpy.c: New file.
54773         * lib/unistr/u-strcpy.h: New file.
54774
54775         * modules/unistr/u8-strcspn: New file.
54776         * modules/unistr/u16-strcspn: New file.
54777         * modules/unistr/u32-strcspn: New file.
54778         * lib/unistr/u8-strcspn.c: New file.
54779         * lib/unistr/u16-strcspn.c: New file.
54780         * lib/unistr/u32-strcspn.c: New file.
54781         * lib/unistr/u-strcspn.h: New file.
54782
54783         * modules/unistr/u8-strdup: New file.
54784         * modules/unistr/u16-strdup: New file.
54785         * modules/unistr/u32-strdup: New file.
54786         * lib/unistr/u8-strdup.c: New file.
54787         * lib/unistr/u16-strdup.c: New file.
54788         * lib/unistr/u32-strdup.c: New file.
54789         * lib/unistr/u-strdup.h: New file.
54790
54791         * modules/unistr/u8-strlen: New file.
54792         * modules/unistr/u16-strlen: New file.
54793         * modules/unistr/u32-strlen: New file.
54794         * lib/unistr/u8-strlen.c: New file.
54795         * lib/unistr/u16-strlen.c: New file.
54796         * lib/unistr/u32-strlen.c: New file.
54797         * lib/unistr/u-strlen.h: New file.
54798
54799         * modules/unistr/u8-strmblen: New file.
54800         * modules/unistr/u16-strmblen: New file.
54801         * modules/unistr/u32-strmblen: New file.
54802         * lib/unistr/u8-strmblen.c: New file.
54803         * lib/unistr/u16-strmblen.c: New file.
54804         * lib/unistr/u32-strmblen.c: New file.
54805
54806         * modules/unistr/u8-strmbtouc: New file.
54807         * modules/unistr/u16-strmbtouc: New file.
54808         * modules/unistr/u32-strmbtouc: New file.
54809         * lib/unistr/u8-strmbtouc.c: New file.
54810         * lib/unistr/u16-strmbtouc.c: New file.
54811         * lib/unistr/u32-strmbtouc.c: New file.
54812
54813         * modules/unistr/u8-strncat: New file.
54814         * modules/unistr/u16-strncat: New file.
54815         * modules/unistr/u32-strncat: New file.
54816         * lib/unistr/u8-strncat.c: New file.
54817         * lib/unistr/u16-strncat.c: New file.
54818         * lib/unistr/u32-strncat.c: New file.
54819         * lib/unistr/u-strncat.h: New file.
54820
54821         * modules/unistr/u8-strncmp: New file.
54822         * modules/unistr/u16-strncmp: New file.
54823         * modules/unistr/u32-strncmp: New file.
54824         * lib/unistr/u8-strncmp.c: New file.
54825         * lib/unistr/u16-strncmp.c: New file.
54826         * lib/unistr/u32-strncmp.c: New file.
54827
54828         * modules/unistr/u8-strncpy: New file.
54829         * modules/unistr/u16-strncpy: New file.
54830         * modules/unistr/u32-strncpy: New file.
54831         * lib/unistr/u8-strncpy.c: New file.
54832         * lib/unistr/u16-strncpy.c: New file.
54833         * lib/unistr/u32-strncpy.c: New file.
54834         * lib/unistr/u-strncpy.h: New file.
54835
54836         * modules/unistr/u8-strnlen: New file.
54837         * modules/unistr/u16-strnlen: New file.
54838         * modules/unistr/u32-strnlen: New file.
54839         * lib/unistr/u8-strnlen.c: New file.
54840         * lib/unistr/u16-strnlen.c: New file.
54841         * lib/unistr/u32-strnlen.c: New file.
54842         * lib/unistr/u-strnlen.h: New file.
54843
54844         * modules/unistr/u8-strpbrk: New file.
54845         * modules/unistr/u16-strpbrk: New file.
54846         * modules/unistr/u32-strpbrk: New file.
54847         * lib/unistr/u8-strpbrk.c: New file.
54848         * lib/unistr/u16-strpbrk.c: New file.
54849         * lib/unistr/u32-strpbrk.c: New file.
54850         * lib/unistr/u-strpbrk.h: New file.
54851
54852         * modules/unistr/u8-strrchr: New file.
54853         * modules/unistr/u16-strrchr: New file.
54854         * modules/unistr/u32-strrchr: New file.
54855         * lib/unistr/u8-strrchr.c: New file.
54856         * lib/unistr/u16-strrchr.c: New file.
54857         * lib/unistr/u32-strrchr.c: New file.
54858
54859         * modules/unistr/u8-strspn: New file.
54860         * modules/unistr/u16-strspn: New file.
54861         * modules/unistr/u32-strspn: New file.
54862         * lib/unistr/u8-strspn.c: New file.
54863         * lib/unistr/u16-strspn.c: New file.
54864         * lib/unistr/u32-strspn.c: New file.
54865         * lib/unistr/u-strspn.h: New file.
54866
54867         * modules/unistr/u8-strstr: New file.
54868         * modules/unistr/u16-strstr: New file.
54869         * modules/unistr/u32-strstr: New file.
54870         * lib/unistr/u8-strstr.c: New file.
54871         * lib/unistr/u16-strstr.c: New file.
54872         * lib/unistr/u32-strstr.c: New file.
54873         * lib/unistr/u-strstr.h: New file.
54874
54875         * modules/unistr/u8-strtok: New file.
54876         * modules/unistr/u16-strtok: New file.
54877         * modules/unistr/u32-strtok: New file.
54878         * lib/unistr/u8-strtok.c: New file.
54879         * lib/unistr/u16-strtok.c: New file.
54880         * lib/unistr/u32-strtok.c: New file.
54881         * lib/unistr/u-strtok.h: New file.
54882
54883         * modules/unistr/u8-uctomb: New file.
54884         * modules/unistr/u16-uctomb: New file.
54885         * modules/unistr/u32-uctomb: New file.
54886         * lib/unistr/u8-uctomb.c: New file.
54887         * lib/unistr/u16-uctomb.c: New file.
54888         * lib/unistr/u32-uctomb.c: New file.
54889
54890         * MODULES.html.sh (Unicode string functions): Add the new modules.
54891
54892 2007-01-08  Bruno Haible  <bruno@clisp.org>
54893
54894         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
54895         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
54896         subdirectories.
54897
54898 2007-01-08  Karl Berry  <karl@gnu.org>
54899
54900         * doc/error.texi: mention that main() fns must set program_name
54901         when progname is used.
54902
54903 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
54904
54905         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
54906         WCTYPE_H is empty, for the benefit of builds from non-distclean
54907         directories.  Problem reported by Eric Blake in
54908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
54909
54910 2007-01-08  Bruno Haible  <bruno@clisp.org>
54911
54912         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
54913         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
54914         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
54915         PROVIDE_CANONICALIZE_FILENAME_MODE.
54916         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
54917
54918 2007-01-08  Bruno Haible  <bruno@clisp.org>
54919
54920         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
54921         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
54922         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
54923         * lib/fts.c: Likewise.
54924         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
54925
54926 2006-12-25  Bruno Haible  <bruno@clisp.org>
54927
54928         * modules/utf8-ucs4-safe: New file.
54929         * lib/utf8-ucs4-safe.h: New file.
54930         * lib/unistr/utf8-ucs4-safe.c: New file.
54931
54932         * modules/utf16-ucs4-safe: New file.
54933         * lib/utf16-ucs4-safe.h: New file.
54934         * lib/unistr/utf16-ucs4-safe.c: New file.
54935
54936         * MODULES.html.sh (Unicode string functions): Add the new modules.
54937
54938 2007-01-08  Bruno Haible  <bruno@clisp.org>
54939
54940         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
54941         (Depends-on): Add unitypes.
54942         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54943         (u8_mbtouc_aux): Move out to separate file.
54944         (u8_mbtouc): Use ucs4_t, uint8_t types.
54945         * lib/unistr/utf8-ucs4.c: New file.
54946
54947         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
54948         (Depends-on): Add unitypes.
54949         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
54950         (u16_mbtouc_aux): Move out to separate file.
54951         (u16_mbtouc): Use ucs4_t, uint16_t types.
54952         * lib/unistr/utf16-ucs4.c: New file.
54953
54954         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
54955         (Depends-on): Add unitypes.
54956         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
54957         (u8_uctomb_aux): Move out to separate file.
54958         (u8_uctomb): Use ucs4_t, uint8_t types.
54959         * lib/unistr/ucs4-utf8.c: New file.
54960
54961         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
54962         (Depends-on): Add unitypes.
54963         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
54964         (u16_uctomb_aux): Move out to separate file.
54965         (u16_uctomb): Use ucs4_t, uint16_t types.
54966         * lib/unistr/ucs4-utf16.c: New file.
54967
54968 2006-12-25  Bruno Haible  <bruno@clisp.org>
54969
54970         * modules/unitypes: New file.
54971         * lib/unitypes.h: New file.
54972         * MODULES.html.sh (func_all_modules): New section "Unicode string
54973         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
54974         this section. Add unitypes.
54975
54976 2007-01-08  Bruno Haible  <bruno@clisp.org>
54977
54978         Avoid variable names that conflict with those from libtool.
54979         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
54980         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
54981         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
54982         library_names_spec to acl_library_names_spec, hardcode_* to
54983         acl_hardcode_*.
54984         Reported by Ralf Wildenhues.
54985
54986 2007-01-08  Bruno Haible  <bruno@clisp.org>
54987
54988         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
54989         definition.
54990         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
54991         definition.
54992         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
54993         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
54994         definition.
54995         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
54996         definition.
54997         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
54998         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
54999         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
55000         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
55001         definition.
55002         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
55003         definition.
55004         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
55005         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
55006         GC_USE_<algorithm>.
55007         * lib/gc-libgcrypt.c: Likewise.
55008         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
55009         * modules/gc-arctwo (configure.ac): Likewise.
55010         * modules/gc-des (configure.ac): Likewise.
55011         * modules/gc-hmac-md5 (configure.ac): Likewise.
55012         * modules/gc-hmac-sha1 (configure.ac): Likewise.
55013         * modules/gc-md2 (configure.ac): Likewise.
55014         * modules/gc-md4 (configure.ac): Likewise.
55015         * modules/gc-md5 (configure.ac): Likewise.
55016         * modules/gc-random (configure.ac): Likewise.
55017         * modules/gc-rijndael (configure.ac): Likewise.
55018         * modules/gc-sha1 (configure.ac): Likewise.
55019
55020 2007-01-08  Bruno Haible  <bruno@clisp.org>
55021
55022         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
55023         macro definition.
55024         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
55025         definition.
55026         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
55027         definition.
55028         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
55029         * modules/fcntl-safer (configure.ac): Likewise.
55030         * modules/fopen-safer (configure.ac): Likewise.
55031         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
55032         GNULIB_FWRITEERROR macro definition.
55033
55034 2007-01-08  Bruno Haible  <bruno@clisp.org>
55035
55036         * m4/gnulib-common.m4: New file.
55037         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
55038         (func_get_filelist): Add m4/gnulib-common.m4.
55039
55040 2007-01-08  Bruno Haible  <bruno@clisp.org>
55041
55042         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
55043         command.
55044
55045 2007-01-08  Jim Meyering  <jim@meyering.net>
55046
55047         Use a more robust test for a "can't happen" condition.
55048         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
55049         narrowed the st_size value.  Presuming the "can't happen" condition
55050         is true, that narrowing could conceivably convert an invalid st_size
55051         value into a valid one.  Instead, use a change based on Matthew
55052         Woehlke's original patch.
55053
55054         Slight readability improvement: use an assert-like macro
55055         in place of literal "abort ()" uses.
55056         * lib/fts.c (fts_assert): Define.
55057         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
55058         Use this macro instead of a bare 'abort'.
55059
55060 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
55061
55062         Don't worry about using IRIX 5.3's wctype.h broken definitions;
55063         simply work around them.
55064         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
55065         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
55066         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
55067         declaring.
55068         Don't bother to define as macros, since the standard doesn't require it.
55069         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
55070         longer worry about IRIX 5.3.
55071         (HAVE_WCTYPE_CTMP_BUG): Remove.
55072
55073 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55074
55075         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
55076         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
55077         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55078         Problems reported by Georg Schwarz for IRIX 5.3.
55079
55080         * gnulib-tool (autoconf_minversion): Take the maximum version number
55081         found, not the minimum.  Problem reported by James Youngman.
55082
55083 2007-01-03  Karl Berry  <karl@gnu.org>
55084
55085         * doc/error.texi: new file, explaining interaction with progname.
55086         * doc/gnulib.texi: include it.  Update copyright.
55087
55088 2007-01-03  Simon Josefsson  <simon@josefsson.org>
55089
55090         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
55091         AC_CANONICAL_HOST, to improve autobuild outputs.
55092
55093 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
55094             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55095
55096         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
55097         sockets, server sockets, and other file descriptors.  Count errors
55098         to compute the return value.  Reorder the code a bit to be easier
55099         to follow.  Don't set event bits that were not requested (except
55100         POLLERR and POLLHUP).
55101
55102 2007-01-01  Bruno Haible  <bruno@clisp.org>
55103
55104         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
55105
55106 2007-01-03  Jim Meyering  <jim@meyering.net>
55107
55108         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
55109
55110 2007-01-02  Bruno Haible  <bruno@clisp.org>
55111
55112         * modules/settime (Include): Require timespec.h.
55113         * modules/nanosleep (Include): Likewise.
55114
55115 2007-01-01  Bruno Haible  <bruno@clisp.org>
55116
55117         * gnulib-tool (func_emit_copyright_notice): Bump year.
55118         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
55119
55120 2007-01-01  Bruno Haible  <bruno@clisp.org>
55121
55122         Improve support for OpenBSD.
55123         * build-aux/config.rpath (libname_spec): Export.
55124         (library_names_spec): New variable. Export.
55125         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
55126         library_names_spec from the config.rpath output. Locate shared library
55127         through the name pattern in library_names_spec.
55128
55129 2007-01-01  Eric Blake  <ebb9@byu.net>
55130
55131         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
55132
55133 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
55134
55135         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
55136         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
55137         assume the C locale, and avoid an "eval" that could cause trouble.
55138         Problem with SORT reported by Bob Proulx.
55139
55140         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
55141         Define.  Trivial patch from Henning Nielsen Lund, originally
55142         sent to bug-grep@gnu.org today.
55143
55144 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
55147         struct stat.  Problem reported by Henning Nielsen Lund.
55148         * lib/acl.c: Include acl.h first, to check interface.  Don't
55149         bother to include sys/types.h and sys/stat.h again.
55150
55151 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         Import the following change from libc; problem reported by
55154         Sven Verdoolaege.
55155
55156         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
55157
55158         [BZ #1373]
55159         * lib/argp.h: Remove __NTH for __argp_usage inline function.
55160
55161 2006-12-28  Jim Meyering  <jim@meyering.net>
55162
55163         * build-aux/announce-gen: Do not assume that the package
55164         builds any of tar.gz, tar.bz2, and .xdelta files.
55165         Suggestion from Simon Josefsson.
55166
55167 2006-12-28  Simon Josefsson  <simon@josefsson.org>
55168
55169         * modules/announce-gen: New file.
55170
55171 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
55172
55173         * lib/mbchar.h: Just include <wctype.h>; the wctype module
55174         handles its gotchas now.
55175         * lib/mbswidth.c: Likewise.
55176         * lib/wcwidth.h: Likewise.
55177         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
55178         and iswcntrl; the wctype module does this stuff now.
55179         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55181         * modules/mbchar (Depends-on): Add wctype.
55182         * modules/mbswidth (Depends-on): Likewise.
55183         * modules/wcwidth (Depends-on): Likewise.
55184
55185 2006-12-27  Eric Blake  <ebb9@byu.net>
55186
55187         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
55188         module uses more than what <wctype.h> is required to provide.
55189
55190 2006-12-26  Eric Blake  <ebb9@byu.net>
55191
55192         * gnulib-tool (sed_extract_prog): Avoid space-tab.
55193
55194 2006-12-26  Eric Blake  <ebb9@byu.net>
55195
55196         * modules/absolute-header: New module.
55197         * modules/fcntl (Depends-on): Depend on it.
55198         * modules/inttypes (Depends-on): Likewise.
55199         * modules/stdint (Depends-on): Likewise.
55200         * modules/sys_stat (Depends-on): Likewise.
55201         * modules/wctype (Depends-on): Likewise.
55202         * MODULES.html.sh (Support for building libraries and
55203         executables): Document it.
55204
55205 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         * gnulib-tool (SED): Remove, undoing previous change.
55208         The problem was that it broke coreutils on Solaris, because
55209         "sed --posix" leaked into a makefile.
55210         (sed): New alias, if 'alias' and GNU sed.
55211
55212 2006-12-24  Jim Meyering  <jim@meyering.net>
55213
55214         Work around an fchownat bug in glibc-2.4:
55215         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
55216         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
55217         in spite of the -P option.
55218         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
55219         New macros.
55220         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
55221         * modules/openat (Files): Add lib/fchownat.c.
55222         * lib/openat.c (fchownat): Don't define here.  Move to...
55223         * lib/fchownat.c: ...this new file.
55224
55225 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
55226
55227         Fix bug reported by Bruno Haible in
55228         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
55229         where quotearg.c didn't compile on Mac OS X 10.2 because it
55230         lacks <wchar.h> and wint_t.
55231         * lib/wctype_.h (__wctype_wint_t): New type.
55232         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
55233         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
55234         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
55235         Arg is now of type __wctype_wint_t, not wint_t.
55236         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
55237         substitute HAVE_WINT_T.
55238         * modules/wctype (Files): Add m4/wint_t.m4.
55239         (wctype.h): Substitute HAVE_WINT_T.
55240
55241 2006-12-23  Bruno Haible  <bruno@clisp.org>
55242
55243         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
55244
55245 2006-12-23  Bruno Haible  <bruno@clisp.org>
55246
55247         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
55248         S_ISLNK.
55249         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
55250         mingw.
55251
55252 2006-12-22  Bruno Haible  <bruno@clisp.org>
55253
55254         * lib/copy-file.c: Include acl.h.
55255         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
55256         Close the file descriptors only after being done with copy_acl.
55257         * modules/copy-file (Depends-on): Add acl.
55258
55259 2006-12-22  Bruno Haible  <bruno@clisp.org>
55260
55261         * gnulib-tool (SED): New variable.
55262         Use $SED instead of sed everywhere.
55263
55264 2006-12-22  Bruno Haible  <bruno@clisp.org>
55265
55266         * modules/no-c++: New file.
55267         * m4/no-c++.m4: New file.
55268         * MODULES.html.sh (Support for building libraries and executables):
55269         Add no-c++.
55270
55271 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
55272
55273         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
55274         Include <limits.h>, and use its INT_MAX to rewrite the
55275         j loop so that it does not overflow 'int'.  Problem reported by
55276         Ralf Wildenhues in
55277         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
55278         Play it safe by shifting left by 1 rather than multiplying by 2,
55279         as GCC is less likely to optimize this away when the value
55280         is signed (when it assumes overflow leads to undefined behavior).
55281         Also, don't assume time_t uses two's complement.
55282
55283 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
55284
55285         * MODULES.html.sh: New module wctype.
55286         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
55287         * lib/fnmatch.c: Don't bother to include <wchar.h> before
55288         <wctype.h>, since the new wctype module should fix this.
55289         * lib/quotearg.c: Include <wctype.h> unconditionally, since
55290         the wctype module should arrange for it.
55291         * lib/regex_internal.h: Likewise.
55292         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
55293         since the wctype module should handle this now.
55294         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
55295         * modules/fnmatch (Depends-on): Add wctype.
55296         * modules/quotearg (Depends-on): Likewise.
55297         * modules/regex (Depends-on): Likewise.
55298
55299 2006-12-19  Bruno Haible  <bruno@clisp.org>
55300
55301         * lib/strdup.h [C++]: Wrap definitions in extern "C".
55302         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
55303
55304 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55305
55306         * modules/savewd (Depends-on): Fix dependency on fcntl.
55307
55308 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55309
55310         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
55311         conforms to C99, rather than relying on the user's environment
55312         setting of STDINT_H.
55313
55314 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55315         and Eric Blake  <ebb9@byu.net>
55316
55317         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
55318         This is more consistent with the other defines here.
55319         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
55320         Port to z/OS.  Problem reported by Paul Gilmartin.
55321         Change local vars to use gl_ prefix rather than ac_.
55322         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
55323         with other defines.
55324         * modules/double-slash-root: New module.
55325         * modules/dirname (Files): Remove m4/double-slash-root.m4.
55326         (Depends-on): Add double-slash-root.
55327         * MODULES.html.sh (File system functions): Mention new module.
55328
55329 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
55330
55331         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
55332         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
55333         This is for the benefit of gzip, which doesn't do i18n.
55334
55335 2006-12-12  Jim Meyering  <jim@meyering.net>
55336
55337         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
55338         Reported by Andreas Schwab <schwab@suse.de>.
55339
55340 2006-12-12  Bruno Haible  <bruno@clisp.org>
55341
55342         Merge these changes.
55343         2006-09-05  Bruno Haible  <bruno@clisp.org>
55344         * lib/iconvme.c (iconv_string): No need to save and restore errno when
55345         iconv_alloc succeeded.
55346         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
55347         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
55348         test for " && dest " at the end - dest is always != NULL there. Call
55349         iconv with 4xNULL arguments initially, to reset the state. Call iconv
55350         with 2xNULL arguments, also to flush the state storage. Handle the
55351         IRIX iconv behaviour. Realloc the final result, to throw away unused
55352         memory.
55353
55354 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
55355
55356         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
55357         and fchmodat unconditionally, since glibc 2.4 has them.
55358         Problem reported by Arkadiusz Miskiewicz.
55359
55360 2006-12-10  Bruno Haible  <bruno@clisp.org>
55361
55362         * gnulib-tool (func_import): Show the include files only for those
55363         modules that are copied and specified.
55364         Reported by Karl Berry.
55365
55366 2006-12-08  Jim Meyering  <jim@meyering.net>
55367
55368         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
55369         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
55370
55371         * build-aux/announce-gen: Add two new options, both optional:
55372         --bootstrap-tools=TOOL_LIST
55373               a comma-separated list of tools, e.g.,
55374               autoconf,automake,bison,gnulib
55375         --gnulib-snapshot-date=DATE
55376               if gnulib is in the bootstrap tool list,
55377               then report this as the snapshot date.
55378               If not specified, use the current date/time.
55379               If you specify a date here, be sure it's UTC.
55380
55381 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55382
55383         * tests/test-argp-2.sh: Fix test to match actual output.
55384         (func_compare): Fix sed script to be portable.
55385
55386 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
55389         workaround for this case.  It is not autoconfigured now; offhand
55390         it's hard to see how to autoconfigure it.
55391
55392 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55393
55394         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
55395         a directory that is about to be chowned.  Such a directory's
55396         initial file permissions should permit the owner only and this
55397         should not be changed until after the chown, since the group and
55398         other bits would be incorrect if they granted permission before
55399         the chown.
55400
55401         Fix porting problem for iswctype reported by Georg Schwarz in:
55402         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
55403         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
55404         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
55405         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
55406         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55407
55408 2006-12-03  Jim Meyering  <jim@meyering.net>
55409
55410         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
55411         p->fts_statp may not yet be defined.
55412         (fts_read): Instead, set it in the caller, once p->fts_statp is
55413         sure to be defined, and corresponds to a top-level directory.
55414         This bug made du -x fail.  Here's the coreutils test case:
55415         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
55416         Reported by Mike Frysinger.
55417
55418 2006-12-01  Jim Meyering  <jim@meyering.net>
55419
55420         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
55421         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
55422         Reported by Simon Josefsson.
55423
55424 2006-11-30  Jim Meyering  <jim@meyering.net>
55425
55426         * m4/warning.m4: Use the all-permissive copyright notice
55427         recommended by RMS (rather than LGPL).
55428         * m4/vararrays.m4: Likewise.
55429         * m4/flexmember.m4: Likewise.
55430
55431 2006-11-29  Bruno Haible  <bruno@clisp.org>
55432
55433         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55434         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
55435         using +=.
55436         Reported by Simon Josefsson <simon@josefsson.org>.
55437
55438 2006-11-28  James Youngman <jay@gnu.org>
55439
55440         * README: Advise users that they might find the bug-gnulib@gnu.org
55441         and autotools-announce@gnu.org mailing lists useful.
55442
55443 2006-11-28  Bruno Haible  <bruno@clisp.org>
55444
55445         * m4/ptrdiff_max.m4: Remove file.
55446
55447 2006-11-21  Bruno Haible  <bruno@clisp.org>
55448
55449         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
55450         _AC_COMPUTE_INT.
55451         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55452         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
55453         _AC_COMPUTE_INT.
55454         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55455         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
55456         _AC_COMPUTE_INT.
55457         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55458
55459 2006-11-28  Jim Meyering  <jim@meyering.net>
55460
55461         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
55462         warning from "gcc -Wshadow" about shadowing the builtin.
55463
55464 2006-11-27  Bruno Haible  <bruno@clisp.org>
55465
55466         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
55467         _AC_COMPUTE_INT.
55468         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
55469
55470 2006-11-27  Bruno Haible  <bruno@clisp.org>
55471             Paul Eggert  <eggert@cs.ucla.edu>
55472
55473         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
55474
55475 2006-11-26  Bruno Haible  <bruno@clisp.org>
55476
55477         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
55478         noinst_LTLIBRARIES.
55479
55480 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
55481             Bruno Haible  <bruno@clisp.org>
55482
55483         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
55484         if compiling with "gcc -ansi".
55485
55486 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
55487
55488         Fix some incompatibilities with gcc -ansi -pedantic.
55489         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
55490         if compiling pedantically with GCC, unless it's C99 or later.
55491         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
55492         it mishandles gcc -ansi -pedantic as well.
55493         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
55494         if gcc -pedantic.
55495         * lib/regexec.c (check_node_accept_bytes): Don't use auto
55496         initializers for struct if -pedantic, unless it's C99 or later.
55497
55498 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
55499
55500         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
55501         Don't close an fd more than once. Identical atimes indicate
55502         success, not failure.
55503
55504 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
55505
55506         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
55507
55508 2006-11-23  Jim Meyering  <jim@meyering.net>
55509
55510         * build-aux/announce-gen: New file.  From coreutils.
55511
55512 2006-11-22  Jim Meyering  <jim@meyering.net>
55513
55514         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
55515         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
55516         (fts_read): Use a temporary to narrow the overused st_size member
55517         before using it in a switch statement.  Reported by Matthew Woehlke.
55518
55519         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
55520         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
55521
55522 2006-11-20  Bruno Haible  <bruno@clisp.org>
55523
55524         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
55525         changequote instead of pairs of brackets.
55526         Reported by Andreas Schwab <schwab@suse.de>.
55527
55528 2006-11-21  Jim Meyering  <jim@meyering.net>
55529
55530         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
55531         so as to remain compatible with older compilers.
55532         Patch from Michael Deutschmann.
55533
55534 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55535
55536         * MODULES.html.sh (File system functions): Add openat.
55537
55538         * lib/openat.h (rpl_fstatat): New macro, if
55539         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
55540         (fstatat): Define to rpl_fstatat under the same conditions,
55541         unless COMPILING_FSTATAT.
55542         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
55543         seems to have the bug.
55544         * lib/fstatat.c: New file.
55545         * modules/openat (Files): Add it.
55546
55547 2006-11-20  Bruno Haible  <bruno@clisp.org>
55548
55549         * Makefile: New file.
55550
55551 2006-11-20  Jim Meyering  <jim@meyering.net>
55552
55553         The beginnings of syntax-related checks for gnulib.
55554         * lib/Makefile: New file.
55555         * lib/t-idcache: New script.  Ensure that the two halves of
55556         idcache.c stay in sync.
55557
55558         * lib/idcache.c: Adjust comments in user- and group- portions to
55559         be more accurate, and to be consistent with one another.
55560
55561 2006-11-20  Jim Meyering  <jim@meyering.net>
55562
55563         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
55564         continue using the flexible array member (thus, this module performs
55565         half as many malloc calls), with the addition that...
55566         (getgroup, getuser): Consistently record a non-match via an empty
55567         "name" string, and map an empty string match to a NULL return value.
55568         * modules/idcache (Depends-on): Re-add flexmember.
55569
55570         * lib/idcache.c (getuser): Remove all uses of the register keyword.
55571         (getuidbyname, getgroup, getgidbyname): Likewise.
55572
55573         Use cleaner syntax: NULL rather than 0.
55574         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
55575
55576 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
55577
55578         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
55579         It mishandled the case where the group was missing.
55580         Problem reported by Greg Schafer.
55581         * modules/idcache: Likewise.
55582
55583 2006-11-18  Jim Meyering  <jim@meyering.net>
55584
55585         * check-module (%exempt_header): Add exception for some
55586         conditionally-included headers.
55587
55588         * modules/i-ring (Depends-on): Add verify.
55589         (License): Change to LGPL.
55590
55591 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55592
55593         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
55594         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
55595         and inttostr.h.  Use snprintf rather than uinttostr, so that
55596         LGPLed code doesn't depend on GPLed.
55597
55598 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
55599
55600         * modules/inline (License): Change from GPL to LGPL.
55601
55602 2006-11-17  Jim Meyering  <jim@meyering.net>
55603
55604         * modules/d-type (License): Switch to LGPL.
55605
55606 2006-11-15  Bruno Haible  <bruno@clisp.org>
55607
55608         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
55609
55610 2006-11-15  Eric Blake  <ebb9@byu.net>
55611
55612         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
55613         the module dependency.
55614
55615 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55616             Bruno Haible  <bruno@clisp.org>
55617
55618         * gnulib-tool (func_create_testdir): Add license consistency check.
55619
55620 2006-11-15  Eric Blake  <ebb9@byu.net>
55621
55622         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
55623         random "(cached)" in configure output.
55624
55625 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55626
55627         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
55628         test for conforming inttypes.h is both announced and cached.
55629
55630         * MODULES.html.sh (seen_modules, seen_files): New variables.
55631         (func_module): Rewrite to use a few less gnulib-tool and sed
55632         invocations.  Avoid a couple of quadratic algorithms for ...
55633         (missed_modules, missed_files): ... these, with ...
55634         (func_append, func_tmpdir): ... these new functions, from
55635         gnulib-tool.  Analogously, install traps for cleanup.
55636
55637         * tests/test-gc.c (main): Remove unused variables.
55638         * tests/test-read-file.c: Include stdlib.h, for 'free'.
55639
55640 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
55641
55642         * modules/inttostr (License): Change to LGPL.
55643
55644 2006-11-14  Eric Blake  <ebb9@byu.net>
55645
55646         * modules/tempname (License): Change to LGPL.
55647
55648 2006-11-14  Eric Blake  <ebb9@byu.net>
55649
55650         * doc/functions.texi (Function Portability): *printf functions on
55651         Cygwin now understand all POSIX size specifiers.
55652
55653 2006-11-14  Bruno Haible  <bruno@clisp.org>
55654
55655         * modules/c-ctype (License): Change to LGPL.
55656
55657 2006-11-12  Bruno Haible  <bruno@clisp.org>
55658
55659         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55660         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
55661         for GNOME libraries, for which the include files are installed in
55662         subdirectories of $prefix/include.
55663
55664 2006-11-12  Bruno Haible  <bruno@clisp.org>
55665
55666         * m4/lib-link.m4: Require at least autoconf-2.54.
55667         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
55668         name to underscores for the --with option.
55669
55670 2006-11-13  Bruno Haible  <bruno@clisp.org>
55671
55672         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
55673         the tests directory.
55674         Reported by Ralf Wildenhues.
55675
55676 2006-11-13  Bruno Haible  <bruno@clisp.org>
55677
55678         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
55679         (func_emit_initmacro_end): Undo the override here.
55680         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
55681         Works around the famous automake error in coreutils.
55682
55683 2006-11-13  Eric Blake  <ebb9@byu.net>
55684
55685         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
55686         element, not its node.
55687
55688 2006-11-12  Bruno Haible  <bruno@clisp.org>
55689
55690         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
55691         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
55692
55693 2006-11-12  Bruno Haible  <bruno@clisp.org>
55694
55695         * gnulib-tool: New option --local-symlink.
55696         (func_usage): Document it.
55697         (lsymbolic): New variable.
55698         (func_import, func_create_testdir): If --symlink was not specified,
55699         test whether --local-symlink was specified and the file comes from
55700         the local_gnulib_dir.
55701
55702 2006-11-12  Bruno Haible  <bruno@clisp.org>
55703
55704         * gnulib-tool (func_ln): New function.
55705         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
55706
55707 2006-11-12  Bruno Haible  <bruno@clisp.org>
55708
55709         Finish support for source files in subdirectories.
55710         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
55711         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
55712         AUTOMAKE_OPTIONS.
55713         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
55714
55715 2006-11-12  Bruno Haible  <bruno@clisp.org>
55716
55717         * gnulib-tool (func_get_automake_snippet): Synthesize also an
55718         EXTRA_lib_SOURCES augmentation.
55719         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
55720
55721 2006-11-12  Jim Meyering  <jim@meyering.net>
55722
55723         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
55724         file descriptors.  This also averts a failure on systems with
55725         native openat support when a traversed directory lacks "x" access.
55726         * lib/fts_.h: Include "i-ring.h"
55727         (struct FTS) [fts_fd_ring]: New member.
55728         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
55729         (FCHDIR): Add parentheses.
55730         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
55731         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
55732         When descending, rather than simply closing the previous
55733         fts_cwd_fd value, push that file descriptor onto the ring.
55734         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
55735         (fts_open): Initialize the new fd_ring member.
55736         (fts_close): Clear the ring.
55737         (fts_safe_changedir): When possible, use our new fd_ring to skip
55738         the diropen and fstat and dev/ino comparison that would normally
55739         accompany a virtual `chdir ("..")'.
55740
55741         * modules/fts (Depends-on): Add i-ring.
55742         * modules/i-ring: New module.
55743         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
55744         * m4/i-ring.m4: New file.
55745
55746 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55747
55748         * gnulib-tool (func_create_testdir): Fix replacement of
55749         `build-aux' in configure.ac.  Run autotools in gltests
55750         subdirectory.
55751         (func_create_testdir, func_create_megatestdir, test): There is
55752         no need for '--force' in most autotool invocations in a new
55753         tree.  Actually fail the whole test if any of the tools, or the
55754         configure or make stages fail.
55755
55756         Sync from Automake.
55757         * build-aux/gnupload: Revert last change.  Add pointer to upload
55758         instructions of the GNU Maintenance Instructions.
55759         Suggestion by Karl Berry.
55760
55761 2006-11-10  Jim Meyering  <jim@meyering.net>
55762
55763         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
55764
55765 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55766
55767         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
55768         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
55769         (bind_textdomain_codeset) [! ENABLE_NLS]:
55770         Evaluate all the arguments.  That way, callers get compatible behavior
55771         if the arguments have side effects.  Also, it avoids some GCC
55772         diagnostics in some cases; Joel E. Denny reported problems when Bison
55773         was configured with --enable-gcc-warnigs.
55774
55775 2006-11-10  Jim Meyering  <jim@meyering.net>
55776
55777         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
55778         relevant options in CFLAGS (like -O, -fno-inline) are taken into
55779         account.
55780
55781 2006-11-10  Jim Meyering  <jim@meyering.net>
55782
55783         * modules/inline: New file/module.
55784         * modules/xalloc (Files): Remove m4/inline.m4.
55785         (Depends-on): Add inline, instead.
55786         * modules/oset: Likewise.
55787         * modules/list: Likewise.
55788
55789 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
55790
55791         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
55792         Problem reported by Matthew Woehlke.
55793
55794 2006-11-09  Bruno Haible  <bruno@clisp.org>
55795
55796         * lib/tempname.c (gen_tempname): Remove variant that invokes
55797         __gen_tempname.
55798         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
55799         __gen_tempname.
55800
55801 2006-11-08  Bruno Haible  <bruno@clisp.org>
55802
55803         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
55804         to 'yes' instead of 'cross-compiling'.
55805
55806 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
55807
55808         * lib/quotearg.h (quotearg_free): New decl.
55809         * lib/quotearg.c (quotearg_free): New function.
55810         (slot0, nslots, slotvec0, slotvec):
55811         Now file-scope so that quotearg_free can get at them.
55812
55813 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55814
55815         Sync from Automake.
55816         * build-aux/gnupload: Add missing 'gnu' to example URL.
55817         Report by Karl Berry.
55818
55819 2006-11-08  Bruno Haible  <bruno@clisp.org>
55820
55821         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
55822         Suggested by Paul Eggert.
55823
55824 2006-11-08  Jim Meyering  <jim@meyering.net>
55825
55826         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
55827         It's already included if !_LIBC.
55828         (fts_safe_changedir): Add a comment.
55829
55830 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55831
55832         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
55833         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
55834         Matthew Woehlke.
55835
55836         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
55837         definitions up, to avoid colliding with change below.
55838         (static_inline) [HAVE_INLINE]: New macro.
55839         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
55840         Provide extern decls when !HAVE_INLINE.  Do not define unless
55841         static_inline is defined, either by us or by xmalloc.c.  Use
55842         static_inline rather than static inline.
55843         (XCALLOC): Optimize sizeof(T) = 1 case.
55844         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
55845
55846 2006-11-07  Bruno Haible  <bruno@clisp.org>
55847
55848         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
55849         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
55850         AC_C_INLINE.
55851         * modules/xalloc (Files): Add m4/inline.m4.
55852
55853 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55854
55855         * README: Fix typo.
55856         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
55857         (Miscellanous Notes): ...from this.
55858
55859 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
55860
55861         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
55862         Mention that offsetof should be used instead of sizeof.
55863         From Bruno Haible.
55864
55865 2006-11-07  Bruno Haible  <bruno@clisp.org>
55866
55867         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
55868
55869 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55870
55871         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55872         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
55873         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55874         (gl_tree_add_before, gl_tree_add_after):
55875         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
55876         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
55877         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
55878         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
55879         (gl_linked_add_after, gl_linked_add_at): Likewise.
55880         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
55881         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
55882         (gl_tree_add_before, gl_tree_add_after): Likewise.
55883         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
55884         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
55885         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
55886
55887 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55888
55889         * lib/gl_oset.h: Use C comment style, not C++ comment style.
55890
55891 2006-11-06  Bruno Haible  <bruno@clisp.org>
55892
55893         * m4/inline.m4: New file.
55894         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
55895         * modules/list (Files): Add m4/inline.m4.
55896         * modules/oset (Files): Likewise.
55897
55898 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * lib/idcache.c: Include <stddef.h>, for offsetof.
55901         (struct userid.name): Change from char * to a flexible array member.
55902         All uses changed.
55903         * modules/idcache (Depends-on): Add flexmember.
55904
55905         * MODULES.html.sh (Core language properties): New module flexmember.
55906         * modules/flexmember, m4/flexmember.m4: New files.
55907
55908         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
55909         inline functions that are identical with the old xnmalloc_inline,
55910         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
55911         that we can avoid some unnecessary integer multiplications and
55912         divisions in the common case where the element size is known at
55913         compile time.
55914         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
55915         needed.
55916         (xnboundedmalloc): Remove.
55917         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
55918         arguments, for consistency with rest of this header.
55919         (xcharalloc): Rewrite using XNMALLOC.
55920         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
55921         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
55922         versions have been moved to lib/xalloc.h and renamed to be the
55923         non-*_inline versions.
55924         (xmalloc, xrealloc): Implement without reference to the xnmalloc
55925         and xnrealloc functions, since those functions are now inline and
55926         now call us.
55927         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
55928         renaming described above.
55929         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
55930         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
55931         captures the dependency in AC_C_INLINE.
55932
55933         New module canonicalize-lgpl, proposed by Charles Wilson in
55934         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
55935         with a few small changes afterwards.
55936         * MODULES.html.sh (File system functions): New module
55937         canonicalize-lgpl.
55938         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
55939         and canonicalize_file_name.
55940         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
55941         * modules/canonicalize-lgpl: New files.
55942
55943 2006-11-05  Bruno Haible  <bruno@clisp.org>
55944
55945         * gnulib-tool (func_import, func_create_testdir): Create directories
55946         also for files in subdirectories of lib/.
55947
55948 2006-11-05  Bruno Haible  <bruno@clisp.org>
55949
55950         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
55951         ANSI C compliant.
55952
55953 2006-11-03  Bruno Haible  <bruno@clisp.org>
55954
55955         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
55956         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
55957         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
55958         (xnboundedmalloc): New inline function.
55959         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
55960         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
55961         xmalloc.
55962         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
55963         xmalloc.
55964         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
55965         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
55966         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
55967         xmalloc.
55968         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55969         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
55970         xmalloc.
55971         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
55972         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55973         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
55974         xmalloc.
55975         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
55976         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
55977         gl_tree_add_after): Use XMALLOC instead of xmalloc.
55978         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
55979         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
55980         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
55981         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
55982
55983 2006-11-03  Bruno Haible  <bruno@clisp.org>
55984
55985         * lib/c-ctype.h [C++]: Define functions without name mangling.
55986         * lib/fwriteerror.h [C++]: Likewise.
55987         * lib/gcd.h [C++]: Likewise.
55988         * lib/linebreak.h [C++]: Likewise.
55989
55990 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
55991
55992         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
55993         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
55994         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
55995         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
55996         Check for functions and headers just once.
55997         Check for declaration of canonicalize_file_name.
55998         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
55999
56000 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56001
56002         * gnulib-tool (func_import): Fix typo in actioncmd.
56003
56004 2006-11-02  Bruno Haible  <bruno@clisp.org>
56005
56006         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
56007         newline sequence in the Makefile.am snippet as a space, like "make"
56008         does.
56009         Reported by Roger Persson <perrog@gmail.com>.
56010
56011 2006-11-01  Bruno Haible  <bruno@clisp.org>
56012
56013         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
56014         already declared in <string.h>.
56015         * lib/strcase.h (strncasecmp): Don't declare it if yes.
56016
56017 2006-11-01  Bruno Haible  <bruno@clisp.org>
56018
56019         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
56020         * lib/strcase.h: Include <string.h>.
56021         (strcasecmp): Define to rpl_strcasecmp here.
56022
56023 2006-11-01  Bruno Haible  <bruno@clisp.org>
56024
56025         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
56026
56027 2006-11-01  Eric Blake  <ebb9@byu.net>
56028
56029         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
56030
56031         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
56032
56033 2006-10-29  Bruno Haible  <bruno@clisp.org>
56034
56035         Make it compile in C++ mode.
56036         * lib/full-write.c (full_rw): Add a cast.
56037
56038 2006-11-01  Bruno Haible  <bruno@clisp.org>
56039
56040         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
56041         be POSIX compliant.
56042         Reported by Roger Persson <perrog@gmail.com>.
56043
56044 2006-11-01  Eric Blake  <ebb9@byu.net>
56045
56046         * lib/getopt_.h: Fix comments.
56047
56048 2006-10-31  Eric Blake  <ebb9@byu.net>
56049
56050         * modules/tmpdir (Depends-on): Add sys_stat.
56051         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
56052         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
56053         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
56054         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
56055         tempname.
56056
56057 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
56058
56059         Avoid some C++ diagnostics reported by Bruno Haible.
56060         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
56061         xmalloc.
56062         (quotearg_alloc): Use xcharalloc rather than xmalloc.
56063         (struct slotvec): Move to top level.
56064         (quotearg_n_options): Rewrite to avoid xmalloc.
56065         * lib/xalloc.h (xcharalloc): New function.
56066         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
56067         [defined __cplusplus]: Add function template that provides result
56068         type propagation.  This part of the change is from Bruno Haible.
56069
56070 2006-10-29  Bruno Haible  <bruno@clisp.org>
56071
56072         Make it compile in C++ mode.
56073         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
56074         * lib/strnlen1.c (strnlen1): Cast memchr result.
56075         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
56076         * lib/clean-temp.c (string_equals, string_hash): Add casts.
56077         (create_temp_dir): Rename local variable 'template'.
56078         (compile_csharp_using_sscli): Add cast.
56079         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
56080         * lib/findprog.c (find_in_path): Likewise.
56081         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
56082         * lib/wait-process.c (register_slave_subprocess): Likewise.
56083
56084 2006-10-22  Bruno Haible  <bruno@clisp.org>
56085
56086         * modules/tsearch: New file.
56087         * lib/tsearch.h: New file.
56088         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
56089         * m4/tsearch.m4: New file.
56090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
56091
56092 2006-10-29  Eric Blake  <ebb9@byu.net>
56093
56094         * lib/arcfour.c: Assume config.h.
56095         * lib/arctwo.c: Likewise.
56096         * lib/base64.c: Likewise.
56097         * lib/check-version.c: Likewise.
56098         * lib/crc.c: Likewise.
56099         * lib/des.c: Likewise.
56100         * lib/gc-gnulib.c: Likewise.
56101         * lib/gc-libgcrypt.c: Likewise.
56102         * lib/gc-pbkdf2-sha1.c: Likewise.
56103         * lib/getaddrinfo.c: Likewise.
56104         * lib/getdelim.c: Likewise.
56105         * lib/getline.c: Likewise.
56106         * lib/hmac-md5.c: Likewise.
56107         * lib/hmac-sha1.c: Likewise.
56108         * lib/iconvme.c: Likewise.
56109         * lib/md2.c: Likewise.
56110         * lib/md4.c: Likewise.
56111         * lib/memxor.c: Likewise.
56112         * lib/read-file.c: Likewise.
56113         * lib/readline.c: Likewise.
56114         * lib/rijndael-alg-fst.c: Likewise.
56115         * lib/rijndael-api-fst.c: Likewise.
56116         * lib/xgetdomainname.c: Likewise.
56117
56118 2006-10-28  Eric Blake  <ebb9@byu.net>
56119
56120         * lib/xstrndup.c: Assume config.h.
56121
56122 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56123
56124         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
56125         stat-macros.h is now for our own macros, whereas stat_h is for
56126         macros in the <sys/stat.h> name space.
56127         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
56128         (STAT_MACROS_H): Remove.
56129         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
56130         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
56131         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
56132         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
56133         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
56134         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
56135         Move these macros to ...
56136         * lib/stat_.h: here.  Don't include stat-macros.h.
56137         * lib/canonicalize.c: Don't include stat-macros.h.
56138         * lib/chown.c: Likewise.
56139         * lib/euidaccess.c: Likewise.
56140         * lib/file-type.c: Likewise.
56141         * lib/filemode.c: Likewise.
56142         * lib/glob.c: Likewise.
56143         * lib/isapipe.c: Likewise.
56144         * lib/lchown.c: Likewise.
56145         * lib/lstat.c: Likewise.
56146         * lib/mkdir-p.c: Likewise.
56147         * lib/rmdir.c: Likewise.
56148         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
56149         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
56150         unless mkdir isn't declared, to speed up 'configure'.
56151         Always create sys/stat.h, since it's unlikely any real sys/stat.h
56152         would define all the S_* symbols.
56153         * modules/canonicalize (Depends-on):
56154         Depend on sys_stat, not stat-macros.
56155         * modules/chown: Likewise.
56156         * modules/euidaccess: Likewise.
56157         * modules/filemode: Likewise.
56158         * modules/file-type: Likewise.
56159         * modules/glob: Likewise.
56160         * modules/isapipe: Likewise.
56161         * modules/lchown: Likewise.
56162         * modules/lstat: Likewise.
56163         * modules/mkancesdirs: Likewise.
56164         * modules/rmdir: Likewise.
56165         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
56166         * modules/modechange: Likewise.
56167         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
56168         (configure.ac): Remove gl_STAT_MACROS.
56169         * modules/sys_stat (Depends-on): Remove stat-macros.
56170
56171 2006-10-27  Bruno Haible  <bruno@clisp.org>
56172
56173         * m4/signed.m4: Remove file.
56174         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
56175         invocation.
56176         * modules/vasnprintf (Files): Remove m4/signed.m4.
56177
56178 2006-10-27  Bruno Haible  <bruno@clisp.org>
56179
56180         Update to GNU gettext 0.16.
56181         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
56182         m4/inttypes-h.m4, m4/signed.m4.
56183         * m4/gettext.m4: Update to GNU gettext 0.16.
56184         * m4/intl.m4: New file, from GNU gettext.
56185         * m4/intldir.m4: New file, from GNU gettext.
56186         * config/srclist.txt: Update
56187
56188 2006-10-27  Eric Blake  <ebb9@byu.net>
56189
56190         * MODULES.html.sh: Document tempname.
56191         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
56192         dependencies.
56193         (Files): Move lib/tempname.c...
56194         * modules/tempname: ...to this new module.
56195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
56196         (gl_PREREQ_TEMPNAME): Move...
56197         * m4/tempname.m4: ...to this new file.
56198         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
56199         * modules/sys_stat (Depends-on): Add stat-macros.
56200         * lib/stat_.h (includes): Pick up stat macros.
56201         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
56202         if stat macros are broken.
56203         * lib/tempname.c (includes): No need to include "stat-macros.h".
56204         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
56205         (direxists, __path_search) [!_LIBC]: Don't compile these in
56206         gnulib; the tmpdir module covers that.
56207         * lib/tempname.h: New file.
56208
56209 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
56210
56211         * COPYING: Explain how gnulib-tool converts licence headers.
56212         Almost all wording by Eric Blake.
56213
56214 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
56215
56216         * lib/mbchar.h (is_basic_table): Make read-only.
56217         * lib/mbchar.c (is_basic_table): Likewise.
56218         Reported by John Darrington.
56219
56220 2006-10-25  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/progname.h (set_program_name): Undefine before defining.
56223
56224 2006-10-25  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
56227         false for non-gcc C++ compilers.
56228         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56229
56230 2006-10-24  Bruno Haible  <bruno@clisp.org>
56231
56232         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
56233         iconv implementations like Irix iconv.
56234
56235 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56236
56237         * modules/vararrays: New file.
56238         * m4/vararrays.m4: New file, taken from diffutils.
56239         * MODULES.html.sh: New module vararrays.
56240
56241 2006-10-24  Karl Berry  <karl@gnu.org>
56242
56243         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
56244         Don't call GNU Unix.
56245
56246 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56247
56248         * users.txt: Add Libtool.
56249
56250         Sync from Libtool:
56251
56252         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56253
56254         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
56255         to gnulib's policy of including config.h unconditionally.
56256
56257 2006-10-24  Bruno Haible  <bruno@clisp.org>
56258
56259         * modules/wcwidth (Files): Add m4/wint_t.m4.
56260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
56261         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
56262
56263 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56264
56265         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
56266         to pacify GCC with some -W flags enabled.  Problem reported by
56267         Bruno Haible.
56268
56269 2006-10-24  Jim Meyering  <jim@meyering.net>
56270
56271         * MODULES.html.sh: Remove uinttostr.  It's not a module.
56272         Reported by Karl Berry.
56273
56274 2006-10-23  Bruno Haible  <bruno@clisp.org>
56275
56276         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
56277
56278 2006-10-24  Bruno Haible  <bruno@clisp.org>
56279
56280         * lib/gl_list.h: Use C comment style, not C++ comment style.
56281
56282 2006-10-23  Eric Blake  <ebb9@byu.net>
56283
56284         * lib/getaddrinfo.c (includes): Add missing include.
56285
56286 2006-10-23  Bruno Haible  <bruno@clisp.org>
56287             Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         Ability to rename obstack_free.
56290         * lib/obstack.h (__obstack_free): New macro. Declare instead of
56291         obstack_free.
56292         (obstack_free): Invoke the __obstack_free macro.
56293         * lib/obstack.c (obstack_free): Use __obstack_free macro.
56294
56295 2006-10-23  Bruno Haible  <bruno@clisp.org>
56296             Paul Eggert  <eggert@cs.ucla.edu>
56297
56298         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
56299         __argc, __argv from the declaration. (They are defined as macros on
56300         mingw.)
56301
56302 2006-10-22  Bruno Haible  <bruno@clisp.org>
56303
56304         * doc/gnulib-intro.texi: New file.
56305         * doc/gnulib.texi: Include it.
56306
56307 2006-10-21  Bruno Haible  <bruno@clisp.org>
56308
56309         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
56310         "Introduction", "Miscellanous Notes", "Particular Modules".
56311
56312 2006-10-21  Bruno Haible  <bruno@clisp.org>
56313
56314         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56315         Change mostlyclean-local rule to avoid sh syntax error from bash
56316         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
56317
56318 2006-10-23  Jim Meyering  <jim@meyering.net>
56319
56320         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
56321         in place of snprintf.
56322
56323         * modules/inttostr (Files): Add lib/uinttostr.c.
56324         * lib/uinttostr.c (inttostr): New file/function.
56325         * lib/inttostr.h (uinttostr): Declare.
56326         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
56327         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
56328         Add uinttostr.
56329         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
56330
56331 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56332
56333         * lib/canonicalize.c (ELOOP): Define if not already defined.
56334         Problem reported by Bruno Haible in
56335         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
56336
56337 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
56338
56339         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
56340         Problem reported by Perry Smith and Ville Laurikari.
56341
56342         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
56343         uses.
56344
56345 2006-10-19  Bruno Haible  <bruno@clisp.org>
56346
56347         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
56348         for mingw.
56349
56350 2006-10-19  Bruno Haible  <bruno@clisp.org>
56351
56352         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
56353         Needed for mingw.
56354
56355 2006-10-19  Bruno Haible  <bruno@clisp.org>
56356
56357         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
56358
56359 2006-10-19  Bruno Haible  <bruno@clisp.org>
56360
56361         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
56362         it.
56363
56364 2006-10-19  Bruno Haible  <bruno@clisp.org>
56365
56366         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
56367         invocation.
56368
56369 2006-10-19  Bruno Haible  <bruno@clisp.org>
56370
56371         * gnulib-tool (func_create_testdir): Don't include ftruncate and
56372         mountlist by default.
56373
56374 2006-10-16  Bruno Haible  <bruno@clisp.org>
56375
56376         * lib/c-strstr.c: Include c-strstr.h.
56377
56378 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
56379
56380         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
56381         in a slash.
56382
56383 2006-10-18  Bruno Haible  <bruno@clisp.org>
56384
56385         * lib/lock.h [C++]: Wrap definitions in extern "C".
56386
56387 2006-10-18  Bruno Haible  <bruno@clisp.org>
56388
56389         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
56390         gl_LIBOBJS list.
56391
56392 2006-10-18  Bruno Haible  <bruno@clisp.org>
56393
56394         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
56395
56396 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
56397
56398         * lib/xstrtol.h: Include gettext.h.
56399         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
56400         Problem reported by Eric Blake.
56401         * modules/xstrtol (Depends-on): Add gettext-h.
56402
56403 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
56404
56405         * lib/strftime.c (advance): New macro.
56406         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
56407         incomplete type, so you can't add 0 to it.  Problem and patch
56408         reported by Eelco Dolstra for dietlibc.
56409
56410 2006-10-18  Jim Meyering  <jim@meyering.net>
56411
56412         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
56413         type for a local, and rename it: s/up/user_proc/.
56414
56415 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
56416
56417         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
56418         READ_UTMP_USER_PROCESS.
56419         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
56420
56421 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56422
56423         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
56424         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
56425
56426 2006-10-17  Eric Blake  <ebb9@byu.net>
56427
56428         * lib/sigprocmask.c (sigprocmask): Fix typo.
56429
56430         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
56431
56432         * modules/clean-temp (Makefile.am): Don't add to make output...
56433         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
56434         config.h.
56435
56436 2006-10-17  Bruno Haible  <bruno@clisp.org>
56437
56438         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
56439         differently if DEFAULT_TEXT_DOMAIN is set.
56440
56441 2006-10-16  Bruno Haible  <bruno@clisp.org>
56442
56443         * lib/clean-temp.c: Include fwriteerror.h.
56444
56445 2006-10-16  Bruno Haible  <bruno@clisp.org>
56446
56447         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
56448
56449 2006-10-16  Bruno Haible  <bruno@clisp.org>
56450
56451         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
56452         * lib/sigprocmask.h: Include <sys/types.h>.
56453         (sigset_t): Use the system's definition if present.
56454
56455 2006-10-17  Eric Blake  <ebb9@byu.net>
56456
56457         * lib/xvasprintf.c (includes): Assume config.h.
56458         * lib/xasprintf.c (includes): Likewise.
56459
56460 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56461
56462         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
56463         at least as wide as intmax_t.
56464
56465 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
56466
56467         (Imported from Automake.)
56468         * build-aux/gnupload: Update to version 1.1 of directive file.
56469
56470 2006-10-16  Eric Blake  <ebb9@byu.net>
56471
56472         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
56473         match Automake 1.10a.
56474
56475 2006-10-14  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/sigprocmask: New file.
56478         * lib/sigprocmask.h: New file.
56479         * lib/sigprocmask.c: New file.
56480         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
56481         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
56482         request sigprocmask.o.
56483         (gl_PREREQ_SIGPROCMASK): New macro.
56484         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
56485         (Depends-on): Add sigprocmask.
56486         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
56487         gt_SIGNALBLOCKING. Test for 'raise' only once.
56488         * lib/fatal-signal.c: Include sigprocmask.h.
56489         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
56490         unblock_fatal_signals): Define always.
56491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56492         sigprocmask.
56493
56494 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56495
56496         Sync from Automake.
56497         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
56498         which incorrectly sets the mode of an existing destination
56499         directory.  In some cases the unpatched install-sh could do the
56500         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
56501         system.  We hope this is rare in practice, but it's clearly worth
56502         fixing.  Problem reported by Alex Unleashed in
56503         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
56504         Also, don't bother to check for -m bugs unless we're using -m;
56505         suggested by Stepan Kasal.
56506
56507 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56508
56509         Sync from Automake.
56510         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
56511         `-c' flag, so they appear at the same position as in %FASTDEP%
56512         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
56513         which ignores unknown options only after the first non-option.
56514         Bug report against M4 by Nelson H. F. Beebe.
56515
56516 2006-10-13  Jim Meyering  <jim@meyering.net>
56517
56518         Fix a bug in yesterday's change.
56519         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
56520         p->fts_statp->st_dev would be used uninitialized.
56521         Ensures that we always call fts_stat on the very first entry.
56522         Miklos Szeredi reported that find -xdev stopped working.
56523
56524 2006-10-12  Bruno Haible  <bruno@clisp.org>
56525
56526         * gnulib-tool (func_get_automake_snippet): Append an automatically
56527         computed EXTRA_DIST augmentation.
56528         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
56529         * modules/alloca-opt (Makefile.am): Likewise.
56530         * modules/allocsa (Makefile.am): Likewise.
56531         * modules/arcfour (Makefile.am): Likewise.
56532         * modules/arctwo (Makefile.am): Likewise.
56533         * modules/argmatch (Makefile.am): Likewise.
56534         * modules/argz (Makefile.am): Likewise.
56535         * modules/atexit (Makefile.am): Likewise.
56536         * modules/backupfile (Makefile.am): Likewise.
56537         * modules/byteswap (Makefile.am): Likewise.
56538         * modules/c-strtod (Makefile.am): Likewise.
56539         * modules/c-strtold (Makefile.am): Likewise.
56540         * modules/calloc (Makefile.am): Likewise.
56541         * modules/canon-host (Makefile.am): Likewise.
56542         * modules/canonicalize (Makefile.am): Likewise.
56543         * modules/chdir-long (Makefile.am): Likewise.
56544         * modules/chdir-safer (Makefile.am): Likewise.
56545         * modules/check-version (Makefile.am): Likewise.
56546         * modules/chown (Makefile.am): Likewise.
56547         * modules/cloexec (Makefile.am): Likewise.
56548         * modules/close-stream (Makefile.am): Likewise.
56549         * modules/closeout (Makefile.am): Likewise.
56550         * modules/crc (Makefile.am): Likewise.
56551         * modules/csharpexec (Makefile.am): Likewise.
56552         * modules/cycle-check (Makefile.am): Likewise.
56553         * modules/des (Makefile.am): Likewise.
56554         * modules/dev-ino (Makefile.am): Likewise.
56555         * modules/dirfd (Makefile.am): Likewise.
56556         * modules/dirname (Makefile.am): Likewise.
56557         * modules/dup2 (Makefile.am): Likewise.
56558         * modules/eealloc (Makefile.am): Likewise.
56559         * modules/error (Makefile.am): Likewise.
56560         * modules/euidaccess (Makefile.am): Likewise.
56561         * modules/exclude (Makefile.am): Likewise.
56562         * modules/exitfail (Makefile.am): Likewise.
56563         * modules/fcntl-safer (Makefile.am): Likewise.
56564         * modules/fcntl (Makefile.am): Likewise.
56565         * modules/file-type (Makefile.am): Likewise.
56566         * modules/fileblocks (Makefile.am): Likewise.
56567         * modules/filemode (Makefile.am): Likewise.
56568         * modules/filenamecat (Makefile.am): Likewise.
56569         * modules/fnmatch (Makefile.am): Likewise.
56570         * modules/fopen-safer (Makefile.am): Likewise.
56571         * modules/fpending (Makefile.am): Likewise.
56572         * modules/fprintftime (Makefile.am): Likewise.
56573         * modules/free (Makefile.am): Likewise.
56574         * modules/fsusage (Makefile.am): Likewise.
56575         * modules/ftruncate (Makefile.am): Likewise.
56576         * modules/fts (Makefile.am): Likewise.
56577         * modules/gc-arcfour (Makefile.am): Likewise.
56578         * modules/gc-des (Makefile.am): Likewise.
56579         * modules/gc-hmac-md5 (Makefile.am): Likewise.
56580         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
56581         * modules/gc-md4 (Makefile.am): Likewise.
56582         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56583         * modules/gc-sha1 (Makefile.am): Likewise.
56584         * modules/gc (Makefile.am): Likewise.
56585         * modules/getaddrinfo (Makefile.am): Likewise.
56586         * modules/getcwd (Makefile.am): Likewise.
56587         * modules/getdelim (Makefile.am): Likewise.
56588         * modules/getdomainname (Makefile.am): Likewise.
56589         * modules/getgroups (Makefile.am): Likewise.
56590         * modules/gethostname (Makefile.am): Likewise.
56591         * modules/gethrxtime (Makefile.am): Likewise.
56592         * modules/getline (Makefile.am): Likewise.
56593         * modules/getloadavg (Makefile.am): Likewise.
56594         * modules/getlogin_r (Makefile.am): Likewise.
56595         * modules/getndelim2 (Makefile.am): Likewise.
56596         * modules/getopt (Makefile.am): Likewise.
56597         * modules/getpagesize (Makefile.am): Likewise.
56598         * modules/getpass-gnu (Makefile.am): Likewise.
56599         * modules/getpass (Makefile.am): Likewise.
56600         * modules/getsubopt (Makefile.am): Likewise.
56601         * modules/gettime (Makefile.am): Likewise.
56602         * modules/gettimeofday (Makefile.am): Likewise.
56603         * modules/getugroups (Makefile.am): Likewise.
56604         * modules/getusershell (Makefile.am): Likewise.
56605         * modules/glob (Makefile.am): Likewise.
56606         * modules/group-member (Makefile.am): Likewise.
56607         * modules/hard-locale (Makefile.am): Likewise.
56608         * modules/hash (Makefile.am): Likewise.
56609         * modules/hmac-md5 (Makefile.am): Likewise.
56610         * modules/hmac-sha1 (Makefile.am): Likewise.
56611         * modules/human (Makefile.am): Likewise.
56612         * modules/idcache (Makefile.am): Likewise.
56613         * modules/imaxabs (Makefile.am): Likewise.
56614         * modules/imaxdiv (Makefile.am): Likewise.
56615         * modules/inet_ntop (Makefile.am): Likewise.
56616         * modules/inet_pton (Makefile.am): Likewise.
56617         * modules/intprops (Makefile.am): Likewise.
56618         * modules/inttostr (Makefile.am): Likewise.
56619         * modules/inttypes (Makefile.am): Likewise.
56620         * modules/isapipe (Makefile.am): Likewise.
56621         * modules/javaversion (Makefile.am): Likewise.
56622         * modules/lchmod (Makefile.am): Likewise.
56623         * modules/lchown (Makefile.am): Likewise.
56624         * modules/localcharset (Makefile.am): Likewise.
56625         * modules/long-options (Makefile.am): Likewise.
56626         * modules/lstat (Makefile.am): Likewise.
56627         * modules/malloc (Makefile.am): Likewise.
56628         * modules/mathl (Makefile.am): Likewise.
56629         * modules/mbchar (Makefile.am): Likewise.
56630         * modules/md2 (Makefile.am): Likewise.
56631         * modules/md4 (Makefile.am): Likewise.
56632         * modules/md5 (Makefile.am): Likewise.
56633         * modules/memcasecmp (Makefile.am): Likewise.
56634         * modules/memchr (Makefile.am): Likewise.
56635         * modules/memcmp (Makefile.am): Likewise.
56636         * modules/memcoll (Makefile.am): Likewise.
56637         * modules/memcpy (Makefile.am): Likewise.
56638         * modules/memmem (Makefile.am): Likewise.
56639         * modules/memmove (Makefile.am): Likewise.
56640         * modules/mempcpy (Makefile.am): Likewise.
56641         * modules/memrchr (Makefile.am): Likewise.
56642         * modules/memset (Makefile.am): Likewise.
56643         * modules/memxor (Makefile.am): Likewise.
56644         * modules/mkancesdirs (Makefile.am): Likewise.
56645         * modules/mkdir-p (Makefile.am): Likewise.
56646         * modules/mkdir (Makefile.am): Likewise.
56647         * modules/mkdtemp (Makefile.am): Likewise.
56648         * modules/mkstemp (Makefile.am): Likewise.
56649         * modules/mktime (Makefile.am): Likewise.
56650         * modules/modechange (Makefile.am): Likewise.
56651         * modules/mountlist (Makefile.am): Likewise.
56652         * modules/nanosleep (Makefile.am): Likewise.
56653         * modules/obstack (Makefile.am): Likewise.
56654         * modules/openat (Makefile.am): Likewise.
56655         * modules/pagealign_alloc (Makefile.am): Likewise.
56656         * modules/pathmax (Makefile.am): Likewise.
56657         * modules/physmem (Makefile.am): Likewise.
56658         * modules/poll (Makefile.am): Likewise.
56659         * modules/posixtm (Makefile.am): Likewise.
56660         * modules/posixver (Makefile.am): Likewise.
56661         * modules/putenv (Makefile.am): Likewise.
56662         * modules/quote (Makefile.am): Likewise.
56663         * modules/quotearg (Makefile.am): Likewise.
56664         * modules/raise (Makefile.am): Likewise.
56665         * modules/read-file (Makefile.am): Likewise.
56666         * modules/readline (Makefile.am): Likewise.
56667         * modules/readlink (Makefile.am): Likewise.
56668         * modules/readtokens (Makefile.am): Likewise.
56669         * modules/readutmp (Makefile.am): Likewise.
56670         * modules/realloc (Makefile.am): Likewise.
56671         * modules/regex (Makefile.am): Likewise.
56672         * modules/rename-dest-slash (Makefile.am): Likewise.
56673         * modules/rename (Makefile.am): Likewise.
56674         * modules/rijndael (Makefile.am): Likewise.
56675         * modules/rmdir (Makefile.am): Likewise.
56676         * modules/rpmatch (Makefile.am): Likewise.
56677         * modules/safe-read (Makefile.am): Likewise.
56678         * modules/safe-write (Makefile.am): Likewise.
56679         * modules/same-inode (Makefile.am): Likewise.
56680         * modules/same (Makefile.am): Likewise.
56681         * modules/save-cwd (Makefile.am): Likewise.
56682         * modules/savedir (Makefile.am): Likewise.
56683         * modules/setenv (Makefile.am): Likewise.
56684         * modules/settime (Makefile.am): Likewise.
56685         * modules/sha1 (Makefile.am): Likewise.
56686         * modules/sig2str (Makefile.am): Likewise.
56687         * modules/snprintf (Makefile.am): Likewise.
56688         * modules/stat-macros (Makefile.am): Likewise.
56689         * modules/stat-time (Makefile.am): Likewise.
56690         * modules/stdbool (Makefile.am): Likewise.
56691         * modules/stdint (Makefile.am): Likewise.
56692         * modules/stdlib-safer (Makefile.am): Likewise.
56693         * modules/stpcpy (Makefile.am): Likewise.
56694         * modules/stpncpy (Makefile.am): Likewise.
56695         * modules/strcase (Makefile.am): Likewise.
56696         * modules/strcasestr (Makefile.am): Likewise.
56697         * modules/strchrnul (Makefile.am): Likewise.
56698         * modules/strcspn (Makefile.am): Likewise.
56699         * modules/strdup (Makefile.am): Likewise.
56700         * modules/strerror (Makefile.am): Likewise.
56701         * modules/strftime (Makefile.am): Likewise.
56702         * modules/strndup (Makefile.am): Likewise.
56703         * modules/strnlen (Makefile.am): Likewise.
56704         * modules/strpbrk (Makefile.am): Likewise.
56705         * modules/strsep (Makefile.am): Likewise.
56706         * modules/strstr (Makefile.am): Likewise.
56707         * modules/strtod (Makefile.am): Likewise.
56708         * modules/strtoimax (Makefile.am): Likewise.
56709         * modules/strtok_r (Makefile.am): Likewise.
56710         * modules/strtol (Makefile.am): Likewise.
56711         * modules/strtoll (Makefile.am): Likewise.
56712         * modules/strtoul (Makefile.am): Likewise.
56713         * modules/strtoull (Makefile.am): Likewise.
56714         * modules/strtoumax (Makefile.am): Likewise.
56715         * modules/strverscmp (Makefile.am): Likewise.
56716         * modules/sys_socket (Makefile.am): Likewise.
56717         * modules/sys_stat (Makefile.am): Likewise.
56718         * modules/sysexits (Makefile.am): Likewise.
56719         * modules/time_r (Makefile.am): Likewise.
56720         * modules/timegm (Makefile.am): Likewise.
56721         * modules/timespec (Makefile.am): Likewise.
56722         * modules/tmpfile-safer (Makefile.am): Likewise.
56723         * modules/trim (Makefile.am): Likewise.
56724         * modules/unistd-safer (Makefile.am): Likewise.
56725         * modules/unlinkdir (Makefile.am): Likewise.
56726         * modules/unlocked-io (Makefile.am): Likewise.
56727         * modules/userspec (Makefile.am): Likewise.
56728         * modules/utime (Makefile.am): Likewise.
56729         * modules/utimecmp (Makefile.am): Likewise.
56730         * modules/utimens (Makefile.am): Likewise.
56731         * modules/vasnprintf (Makefile.am): Likewise.
56732         * modules/vasprintf (Makefile.am): Likewise.
56733         * modules/vsnprintf (Makefile.am): Likewise.
56734         * modules/xalloc (Makefile.am): Likewise.
56735         * modules/xgetcwd (Makefile.am): Likewise.
56736         * modules/xnanosleep (Makefile.am): Likewise.
56737         * modules/xreadlink (Makefile.am): Likewise.
56738         * modules/xstrtod (Makefile.am): Likewise.
56739         * modules/xstrtol (Makefile.am): Likewise.
56740         * modules/xstrtold (Makefile.am): Likewise.
56741         * modules/yesno (Makefile.am): Likewise.
56742         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
56743
56744 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56745
56746         * modules/error (Makefile.am): Distribute files through
56747         EXTRA_DIST, not lib_SOURCES.
56748
56749 2006-10-12  Eric Blake  <ebb9@byu.net>
56750
56751         * modules/error (Makefile.am): Distribute files in /lib.
56752         * modules/obstack (Makefile.am): Likewise.
56753
56754 2006-10-12  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/acl (Makefile.am): Distribute all files in lib/ through
56757         EXTRA_DIST.
56758         * modules/arcfour (Makefile.am): Likewise.
56759         * modules/arctwo (Makefile.am): Likewise.
56760         * modules/argmatch (Makefile.am): Likewise.
56761         * modules/argz (Makefile.am): Likewise.
56762         * modules/atexit (Makefile.am): Likewise.
56763         * modules/backupfile (Makefile.am): Likewise.
56764         * modules/c-strtod (Makefile.am): Likewise.
56765         * modules/c-strtold (Makefile.am): Likewise.
56766         * modules/calloc (Makefile.am): Likewise.
56767         * modules/canon-host (Makefile.am): Likewise.
56768         * modules/canonicalize (Makefile.am): Likewise.
56769         * modules/chdir-long (Makefile.am): Likewise.
56770         * modules/chdir-safer (Makefile.am): Likewise.
56771         * modules/check-version (Makefile.am): Likewise.
56772         * modules/chown (Makefile.am): Likewise.
56773         * modules/cloexec (Makefile.am): Likewise.
56774         * modules/close-stream (Makefile.am): Likewise.
56775         * modules/closeout (Makefile.am): Likewise.
56776         * modules/crc (Makefile.am): Likewise.
56777         * modules/cycle-check (Makefile.am): Likewise.
56778         * modules/des (Makefile.am): Likewise.
56779         * modules/dirfd (Makefile.am): Likewise.
56780         * modules/dirname (Makefile.am): Likewise.
56781         * modules/dup2 (Makefile.am): Likewise.
56782         * modules/euidaccess (Makefile.am): Likewise.
56783         * modules/exclude (Makefile.am): Likewise.
56784         * modules/exitfail (Makefile.am): Likewise.
56785         * modules/fcntl-safer (Makefile.am): Likewise.
56786         * modules/file-type (Makefile.am): Likewise.
56787         * modules/fileblocks (Makefile.am): Likewise.
56788         * modules/filemode (Makefile.am): Likewise.
56789         * modules/filenamecat (Makefile.am): Likewise.
56790         * modules/fnmatch (Makefile.am): Likewise.
56791         * modules/fopen-safer (Makefile.am): Likewise.
56792         * modules/fpending (Makefile.am): Likewise.
56793         * modules/fprintftime (Makefile.am): Likewise.
56794         * modules/free (Makefile.am): Likewise.
56795         * modules/fsusage (Makefile.am): Likewise.
56796         * modules/ftruncate (Makefile.am): Likewise.
56797         * modules/fts (Makefile.am): Likewise.
56798         * modules/gc (Makefile.am): Likewise.
56799         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
56800         * modules/getaddrinfo (Makefile.am): Likewise.
56801         * modules/getcwd (Makefile.am): Likewise.
56802         * modules/getdelim (Makefile.am): Likewise.
56803         * modules/getdomainname (Makefile.am): Likewise.
56804         * modules/getgroups (Makefile.am): Likewise.
56805         * modules/gethostname (Makefile.am): Likewise.
56806         * modules/gethrxtime (Makefile.am): Likewise.
56807         * modules/getline (Makefile.am): Likewise.
56808         * modules/getloadavg (Makefile.am): Likewise.
56809         * modules/getlogin_r (Makefile.am): Likewise.
56810         * modules/getopt (Makefile.am): Likewise.
56811         * modules/getpass (Makefile.am): Likewise.
56812         * modules/getpass-gnu (Makefile.am): Likewise.
56813         * modules/getsubopt (Makefile.am): Likewise.
56814         * modules/gettime (Makefile.am): Likewise.
56815         * modules/gettimeofday (Makefile.am): Likewise.
56816         * modules/getugroups (Makefile.am): Likewise.
56817         * modules/getusershell (Makefile.am): Likewise.
56818         * modules/glob (Makefile.am): Likewise.
56819         * modules/group-member (Makefile.am): Likewise.
56820         * modules/hard-locale (Makefile.am): Likewise.
56821         * modules/hash (Makefile.am): Likewise.
56822         * modules/hmac-md5 (Makefile.am): Likewise.
56823         * modules/hmac-sha1 (Makefile.am): Likewise.
56824         * modules/human (Makefile.am): Likewise.
56825         * modules/idcache (Makefile.am): Likewise.
56826         * modules/imaxabs (Makefile.am): Likewise.
56827         * modules/imaxdiv (Makefile.am): Likewise.
56828         * modules/inet_ntop (Makefile.am): Likewise.
56829         * modules/inet_pton (Makefile.am): Likewise.
56830         * modules/inttostr (Makefile.am): Likewise.
56831         * modules/isapipe (Makefile.am): Likewise.
56832         * modules/lchown (Makefile.am): Likewise.
56833         * modules/long-options (Makefile.am): Likewise.
56834         * modules/lstat (Makefile.am): Likewise.
56835         * modules/malloc (Makefile.am): Likewise.
56836         * modules/mathl (Makefile.am): Likewise.
56837         * modules/mbchar (Makefile.am): Likewise.
56838         * modules/md2 (Makefile.am): Likewise.
56839         * modules/md4 (Makefile.am): Likewise.
56840         * modules/md5 (Makefile.am): Likewise.
56841         * modules/memcasecmp (Makefile.am): Likewise.
56842         * modules/memchr (Makefile.am): Likewise.
56843         * modules/memcmp (Makefile.am): Likewise.
56844         * modules/memcoll (Makefile.am): Likewise.
56845         * modules/memcpy (Makefile.am): Likewise.
56846         * modules/memmem (Makefile.am): Likewise.
56847         * modules/memmove (Makefile.am): Likewise.
56848         * modules/mempcpy (Makefile.am): Likewise.
56849         * modules/memrchr (Makefile.am): Likewise.
56850         * modules/memset (Makefile.am): Likewise.
56851         * modules/memxor (Makefile.am): Likewise.
56852         * modules/mkancesdirs (Makefile.am): Likewise.
56853         * modules/mkdir (Makefile.am): Likewise.
56854         * modules/mkdir-p (Makefile.am): Likewise.
56855         * modules/mkdtemp (Makefile.am): Likewise.
56856         * modules/mkstemp (Makefile.am): Likewise.
56857         * modules/mktime (Makefile.am): Likewise.
56858         * modules/modechange (Makefile.am): Likewise.
56859         * modules/mountlist (Makefile.am): Likewise.
56860         * modules/nanosleep (Makefile.am): Likewise.
56861         * modules/openat (Makefile.am): Likewise.
56862         * modules/pagealign_alloc (Makefile.am): Likewise.
56863         * modules/physmem (Makefile.am): Likewise.
56864         * modules/poll (Makefile.am): Likewise.
56865         * modules/posixtm (Makefile.am): Likewise.
56866         * modules/posixver (Makefile.am): Likewise.
56867         * modules/putenv (Makefile.am): Likewise.
56868         * modules/quote (Makefile.am): Likewise.
56869         * modules/quotearg (Makefile.am): Likewise.
56870         * modules/raise (Makefile.am): Likewise.
56871         * modules/read-file (Makefile.am): Likewise.
56872         * modules/readline (Makefile.am): Likewise.
56873         * modules/readlink (Makefile.am): Likewise.
56874         * modules/readtokens (Makefile.am): Likewise.
56875         * modules/readutmp (Makefile.am): Likewise.
56876         * modules/realloc (Makefile.am): Likewise.
56877         * modules/regex (Makefile.am): Likewise.
56878         * modules/rename (Makefile.am): Likewise.
56879         * modules/rename-dest-slash (Makefile.am): Likewise.
56880         * modules/rijndael (Makefile.am): Likewise.
56881         * modules/rmdir (Makefile.am): Likewise.
56882         * modules/rpmatch (Makefile.am): Likewise.
56883         * modules/safe-read (Makefile.am): Likewise.
56884         * modules/safe-write (Makefile.am): Likewise.
56885         * modules/same (Makefile.am): Likewise.
56886         * modules/save-cwd (Makefile.am): Likewise.
56887         * modules/savedir (Makefile.am): Likewise.
56888         * modules/setenv (Makefile.am): Likewise.
56889         * modules/settime (Makefile.am): Likewise.
56890         * modules/sha1 (Makefile.am): Likewise.
56891         * modules/sig2str (Makefile.am): Likewise.
56892         * modules/snprintf (Makefile.am): Likewise.
56893         * modules/stdlib-safer (Makefile.am): Likewise.
56894         * modules/stpcpy (Makefile.am): Likewise.
56895         * modules/stpncpy (Makefile.am): Likewise.
56896         * modules/strcase (Makefile.am): Likewise.
56897         * modules/strcasestr (Makefile.am): Likewise.
56898         * modules/strchrnul (Makefile.am): Likewise.
56899         * modules/strcspn (Makefile.am): Likewise.
56900         * modules/strdup (Makefile.am): Likewise.
56901         * modules/strerror (Makefile.am): Likewise.
56902         * modules/strftime (Makefile.am): Likewise.
56903         * modules/strndup (Makefile.am): Likewise.
56904         * modules/strnlen (Makefile.am): Likewise.
56905         * modules/strpbrk (Makefile.am): Likewise.
56906         * modules/strsep (Makefile.am): Likewise.
56907         * modules/strstr (Makefile.am): Likewise.
56908         * modules/strtod (Makefile.am): Likewise.
56909         * modules/strtoimax (Makefile.am): Likewise.
56910         * modules/strtok_r (Makefile.am): Likewise.
56911         * modules/strtol (Makefile.am): Likewise.
56912         * modules/strtoll (Makefile.am): Likewise.
56913         * modules/strtoul (Makefile.am): Likewise.
56914         * modules/strtoull (Makefile.am): Likewise.
56915         * modules/strtoumax (Makefile.am): Likewise.
56916         * modules/strverscmp (Makefile.am): Likewise.
56917         * modules/time_r (Makefile.am): Likewise.
56918         * modules/timegm (Makefile.am): Likewise.
56919         * modules/tmpfile-safer (Makefile.am): Likewise.
56920         * modules/unistd-safer (Makefile.am): Likewise.
56921         * modules/unlinkdir (Makefile.am): Likewise.
56922         * modules/userspec (Makefile.am): Likewise.
56923         * modules/utime (Makefile.am): Likewise.
56924         * modules/utimecmp (Makefile.am): Likewise.
56925         * modules/utimens (Makefile.am): Likewise.
56926         * modules/vasnprintf (Makefile.am): Likewise.
56927         * modules/vasprintf (Makefile.am): Likewise.
56928         * modules/vsnprintf (Makefile.am): Likewise.
56929         * modules/xalloc (Makefile.am): Likewise.
56930         * modules/xgetcwd (Makefile.am): Likewise.
56931         * modules/xnanosleep (Makefile.am): Likewise.
56932         * modules/xreadlink (Makefile.am): Likewise.
56933         * modules/xstrtod (Makefile.am): Likewise.
56934         * modules/xstrtol (Makefile.am): Likewise.
56935         * modules/xstrtold (Makefile.am): Likewise.
56936         * modules/yesno (Makefile.am): Likewise.
56937
56938 2006-10-12  Jim Meyering  <jim@meyering.net>
56939
56940         * m4/getloadavg.m4: Revert the change below.
56941
56942         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
56943         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
56944         fail with a symlink, which is what coreutils' ./bootstrap now
56945         creates by default.
56946
56947 2006-10-12  Bruno Haible  <bruno@clisp.org>
56948
56949         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
56950         mingw.
56951         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
56952         MSVC and mingw explicitly.
56953
56954 2006-10-11  Simon Josefsson  <jas@extundo.com>
56955             Bruno Haible  <bruno@clisp.org>
56956
56957         Add support for multiple gnulib-tool invocations in the scope of a
56958         single configure.ac file.
56959         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
56960         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
56961         with the same contents as the _LIBADD variable.
56962         (func_emit_initmacro_start, func_emit_initmacro_end,
56963         func_emit_initmacro_done): New functions.
56964         (func_import, func_create_testdir): Invoke them. Allow the identifiers
56965         gl_LIBOBJS and gl_LTLIBOBJS.
56966
56967 2006-10-11  Bruno Haible  <bruno@clisp.org>
56968
56969         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
56970         (func_create_testdir): Don't create po/Makefile.am, don't invoke
56971         autoreconf. Instead, invoke autopoint explicitly but move back the
56972         *.m4 files from gnulib.
56973
56974 2006-10-11  Bruno Haible  <bruno@clisp.org>
56975
56976         * gnulib-tool (func_usage): Make module names after --create-testdir
56977         optional.
56978         (func_create_testdir): If no module was specified, use nearly all
56979         modules.
56980
56981 2006-10-12  Jim Meyering  <jim@meyering.net>
56982
56983         Big performance improvement for fts-based tools that use FTS_NOSTAT.
56984         Avoid spurious inode-mismatch problems on non-POSIX file systems.
56985         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
56986         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
56987         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
56988         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
56989         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
56990         (fts_set_stat_required): New function.
56991         (fts_open): Defer the calls to fts_stat, if possible or requested.
56992         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
56993         into fts_stat itself.
56994         (fts_read): Perform any required (deferred) fts_stat call.
56995         (fts_build): Likewise, for the directory we're about to open and read.
56996         In the readdir loop, carefully decide whether each entry will require
56997         an eventual call to fts_stat, using dirent.d_type info if available.
56998         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
56999         a command line argument into this function.  Update all callers.
57000         Map a return value of FTS_DOT to FTS_D for a command line argument.
57001         * modules/fts (Depends-on): Add d-type.  Alphabetize.
57002         Thanks to Miklos Szeredi for his tenacity and for the initial
57003         bug report about "find" failing on a FUSE-based file system.
57004
57005         * lib/fts.c (fts_open): Use consistent indentation.
57006
57007 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57008
57009         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
57010         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
57011         reported by Jim Meyering.  All uses of cache variables renamed
57012         to match Autoconf's.
57013         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
57014         the other one.
57015
57016         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
57017         Fix misspelling in diagnostic.
57018
57019 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57020
57021         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
57022         defined.  Problem reported by Matthew Woehlke.
57023
57024         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
57025         Add support for Tandem NonStop R series.
57026         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
57027         Use new macro.
57028
57029         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
57030         (has_trailing_slash): Omit size arg; all callers changed.
57031         Omit 'inline', since it doesn't help performance and we'd
57032         need to configure it.
57033         Don't count //, ///, etc. as having a trailing slash.
57034         As a side effect, this removes a C99ism reported by Matthew Woehlke.
57035         (rpl_rename_dest_slash): On failure, use rename's errno rather
57036         than (in some cases) an incorrect or junk errno.
57037         Simplify code by removing need to compute length; this does
57038         cause it to make two passes instead of one over the file name,
57039         but it's worth it.
57040
57041         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
57042         change, since Autoconf's version may no longer be appropriate now
57043         that we are using CVS Autoconf's version.  Add support for Tandem.
57044
57045 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57046             Bruno Haible  <bruno@clisp.org>
57047
57048         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
57049         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
57050         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
57051         gl_AC_TYPE_LONG_LONG.
57052
57053         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
57054         instead of HAVE_LONG_LONG.
57055         * lib/printf-args.c (printf_fetchargs): Likewise.
57056         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
57057         * lib/vasnprintf.c (VASNPRINTF): Likewise.
57058         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
57059         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
57060         gl_AC_TYPE_LONG_LONG.
57061
57062 2006-10-11  Bruno Haible  <bruno@clisp.org>
57063
57064         * m4/longlong.m4: Add comments.
57065         * m4/ulonglong.m4: Likewise.
57066
57067 2006-10-10  Bruno Haible  <bruno@clisp.org>
57068
57069         Make it possible to #define stpcpy, strdup to aliases.
57070         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
57071         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
57072
57073 2006-10-10  Bruno Haible  <bruno@clisp.org>
57074
57075         Make it possible to #define gcd to an alias.
57076         * lib/gcd.c: Include config.h.
57077
57078 2006-10-10  Bruno Haible  <bruno@clisp.org>
57079
57080         Make it possible to #define c_isascii to an alias.
57081         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
57082         defined. Undefine the macros before defining them, to avoid gcc
57083         warnings.
57084         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
57085         define NO_C_CTYPE_MACROS early.
57086
57087 2006-10-10  Bruno Haible  <bruno@clisp.org>
57088
57089         Make it possible to #define set_program_name to an alias.
57090         * lib/progname.c: Don't undefine set_program_name; instead, undefine
57091         ENABLE_RELOCATABLE early.
57092
57093 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57094
57095         Port to Tandem NSK OSS, which has 64-bit signed int but at most
57096         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
57097         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
57098         More generally, don't assume that 64-bit signed int is available
57099         if unsigned int is, and vice versa.
57100         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
57101         unsigned symbols, not on their signed counterparts.
57102         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
57103         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
57104         (UINT64_C, UINTMAX_C):
57105         Likewise.
57106         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
57107         unsigned counterparts.
57108         (Have_long_long, Unsigned): New macros.
57109         (Int): Renamed from INT.
57110         (strtoimax): Use the new macros.
57111         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
57112         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
57113         * modules/inttypes (inttypes.h): Substitute
57114         HAVE_UNSIGNED_LONG_LONG_INT.
57115         * modules/stdint (stdint.h): Likewise.
57116         (Files): Add m4/ulonglong.m4.
57117
57118 2006-10-10  Bruno Haible  <bruno@clisp.org>
57119
57120         Fix a gcc -Wshadow warning.
57121         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
57122         to 'bucket'.
57123         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
57124         gl_linked_indexof_from_to): Likewise.
57125         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
57126         Likewise.
57127         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
57128         Likewise.
57129         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
57130         Reported by Eric Blake.
57131
57132 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
57135         for NetBSD.  Problem reported by Bruno Haible.
57136
57137 2006-10-09  Jim Meyering  <jim@meyering.net>
57138
57139         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
57140         Patch from Bruno Haible.
57141
57142 2006-10-09  Jim Meyering  <jim@meyering.net>
57143
57144         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
57145         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
57146         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
57147
57148 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57149
57150         Don't include <config.h> twice; this doesn't work in some cases,
57151         e.g., when config.h has "#define intmax_t long long int" and
57152         we include <config.h>, <inttypes.h>, <config.h> in that order.
57153         Problem reported by Matthew Woehlke in:
57154         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
57155         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
57156         * lib/fts-cycle.c: Don't include config.h.
57157         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
57158         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
57159         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
57160         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
57161         inttypes.h.
57162         * lib/xstrtoumax.c: Likewise.
57163         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
57164         __strtol and the like, so that this module is more like its siblings.
57165         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
57166         Remove; no longer needed now that we assume gnulib inttypes.h.
57167
57168 2006-10-08  Bruno Haible  <bruno@clisp.org>
57169
57170         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
57171         option.
57172
57173 2006-10-07  Jim Meyering  <jim@meyering.net>
57174
57175         * modules/inttypes (inttypes.h): Revert what seems to have been
57176         an inadvertent part of today's change: use "|", not "/" in the
57177         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
57178
57179 2006-10-07  Bruno Haible  <bruno@clisp.org>
57180
57181         * modules/sublist: New file.
57182
57183 2006-10-07  Bruno Haible  <bruno@clisp.org>
57184
57185         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
57186         * modules/argz (argz.h): Likewise.
57187         * modules/arpa_inet (arpa/inet.h): Likewise.
57188         * modules/byteswap (byteswap.h): Likewise.
57189         * modules/configmake (configmake.h): Likewise.
57190         * modules/fcntl (fcntl.h): Likewise.
57191         * modules/fnmatch (fnmatch.h): Likewise.
57192         * modules/getopt (getopt.h): Likewise.
57193         * modules/glob (glob.h): Likewise.
57194         * modules/inttypes (inttypes.h): Likewise.
57195         * modules/netinet_in (netinet/in.h): Likewise.
57196         * modules/poll (poll.h): Likewise.
57197         * modules/stdbool (stdbool.h): Likewise.
57198         * modules/stdint (stdint.h): Likewise.
57199         * modules/sys_select (sys/select.h): Likewise.
57200         * modules/sys_socket (sys/socket.h): Likewise.
57201         * modules/sys_stat (sys/stat.h): Likewise.
57202         * modules/sysexits (sysexits.h): Likewise.
57203         * modules/unistd (unistd.h): Likewise.
57204         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57205         Add a "DO NOT EDIT" comment to the generated file.
57206         (func_import): Likewise for gnulib-comp.m4.
57207
57208 2006-10-07  Bruno Haible  <bruno@clisp.org>
57209
57210         * lib/gl_sublist.h: New file.
57211         * lib/gl_sublist.c: New file.
57212
57213 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57214
57215         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
57216         name (relative to the original working directory) and the file
57217         name component (relative to the temporary working directory).  All
57218         callers changed.
57219         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
57220         * lib/mkdir-p.c (make_dir_parents): Likewise.
57221         * lib/mkdir-p.h (make_dir_parents): Likewise.
57222
57223 2006-10-06  Eric Blake  <ebb9@byu.net>
57224
57225         Define several macros for use by the clean-temp module.
57226         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
57227         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
57228         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
57229
57230         * lib/clean-temp.h (close_stream_temp): New declaration.
57231         * lib/clean-temp.c (includes): Pull in headers according to what
57232         other modules are in use.
57233         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
57234
57235 2006-10-06  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
57238         instead of fopen, fwriteerror.
57239
57240 2006-10-06  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
57243         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
57244         int.
57245         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
57246         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
57247         Return an error indicator.
57248         Suggested by Eric Blake.
57249
57250 2006-10-06  Bruno Haible  <bruno@clisp.org>
57251
57252         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
57253         Reported by Eric Blake.
57254
57255 2006-10-06  Bruno Haible  <bruno@clisp.org>
57256
57257         * modules/closeout (Description): Mention stderr too.
57258
57259 2006-10-06  Bruno Haible  <bruno@clisp.org>
57260         and Paul Eggert  <eggert@cs.ucla.edu>
57261
57262         * lib/closeout.c (close_stdout): Also close stderr.
57263         * lib/closeout.h: Update comment.
57264
57265 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57266
57267         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
57268         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
57269         * lib/dirchownmod.c: Include lchown.h.
57270         * lib/lchown.c: Don't include files that lchown.h now includes.
57271         Don't declare chown, since lchown.h now does that.
57272         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
57273         (lchown): Define to rpl_chown if lchown is declared but
57274         does not exist.  Declare using a prototype if lchown is not
57275         declared.  Add a copyright notice.
57276         * lib/mkstemp.h: Include <unistd.h>.
57277         * lib/openat.c: Include lchown.h.
57278
57279         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
57280         we now test for that separately.
57281         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
57282         rather than O_NOFOLLOW, when testing whether it's possible to
57283         avoid a race condition reliably.
57284         * lib/savewd.c (savewd_chdir): Likewise.
57285
57286         Remove macros that are no longer needed now that stdint.h is
57287         reliable.
57288         * lib/fsusage.c (UINTMAX_MAX): Remove.
57289         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
57290         * lib/utimecmp.c (SIZE_MAX): Remove.
57291
57292         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
57293
57294         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
57295         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
57296         O_NOATIME works.
57297
57298 2006-10-05  Bruno Haible  <bruno@clisp.org>
57299
57300         * lib/gl_list.h (gl_sortedlist_search_from_to,
57301         gl_sortedlist_indexof_from_to): New declarations.
57302         (gl_list_implementation): New fields sortedlist_search_from_to,
57303         sortedlist_indexof_from_to.
57304         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
57305         inline functions.
57306         * lib/gl_list.c (gl_sortedlist_search_from_to,
57307         gl_sortedlist_indexof_from_to): New functions.
57308         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
57309         function.
57310         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
57311         (gl_array_sortedlist_search_from_to): New function.
57312         (gl_array_list_implementation): Update.
57313         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
57314         function.
57315         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
57316         (gl_carray_sortedlist_search_from_to): New function.
57317         (gl_carray_list_implementation): Update.
57318         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
57319         gl_linked_sortedlist_indexof_from_to): New functions.
57320         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57321         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57322         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
57323         gl_tree_sortedlist_indexof_from_to): New functions.
57324         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57325         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57326         Update.
57327         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57328         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
57329         Update.
57330
57331 2006-10-05  Bruno Haible  <bruno@clisp.org>
57332
57333         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
57334         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
57335         (struct gl_list_implementation): Add fields search_from_to,
57336         indexof_from_to. Remove fields search, indexof.
57337         (gl_list_search): Use the search_from_to method.
57338         (gl_list_search_from, gl_list_search_from_to): New functions.
57339         (gl_list_indexof): Use the indexof_from_to method.
57340         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57341         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
57342         (gl_list_search_from, gl_list_search_from_to): New functions.
57343         (gl_list_indexof): Use the indexof_from_to method.
57344         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
57345         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
57346         gl_array_indexof. Add start_index, end_index arguments.
57347         (gl_array_search_from_to): Renamed from gl_array_search. Add
57348         start_index, end_index arguments.
57349         (gl_array_remove, gl_array_list_implementation): Update.
57350         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
57351         gl_carray_indexof. Add start_index, end_index arguments.
57352         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
57353         start_index, end_index arguments.
57354         (gl_carray_remove, gl_carray_list_implementation): Update.
57355         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
57356         gl_linked_search. Add start_index, end_index arguments.
57357         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
57358         start_index, end_index arguments.
57359         (gl_linked_remove): Update.
57360         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57361         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57362         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
57363         field to 'size_t'.
57364         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
57365         gl_tree_search. Add start_index, end_index arguments.
57366         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57367         start_index, end_index arguments.
57368         (gl_tree_remove): Update.
57369         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57370         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57371         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
57372         function.
57373         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
57374         gl_tree_search. Add start_index, end_index arguments.
57375         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
57376         start_index, end_index arguments.
57377         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57378         Update.
57379         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57380
57381 2006-10-05  Bruno Haible  <bruno@clisp.org>
57382
57383         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
57384
57385         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
57386         fwriteerror_temp): New declarations.
57387         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
57388         (descriptors): New variable.
57389         (cleanup): First, close the descriptors.
57390         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
57391         fclose_temp, fwriteerror_temp): New functions.
57392
57393 2006-10-04  Jim Meyering  <jim@meyering.net>
57394
57395         * lib/fts.c (fts_open): Tiny comment change.
57396
57397 2006-10-04  Bruno Haible  <bruno@clisp.org>
57398
57399         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
57400         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
57401         gl_LOCK_BODY.
57402         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
57403         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
57404         gl_LOCK_EARLY_BODY.
57405         (gl_LOCK): Require gl_LOCK_BODY.
57406
57407 2006-10-04  Bruno Haible  <bruno@clisp.org>
57408
57409         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
57410         (gl_oset_search_atleast): New declaration.
57411         (struct gl_oset_implementation): Add field 'search_atleast'.
57412         (gl_oset_search_atleast): New inline function.
57413         * lib/gl_oset.c (gl_oset_search_atleast): New function.
57414         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
57415         (gl_array_oset_implementation): Update.
57416         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
57417         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
57418         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
57419
57420 2006-10-04  Bruno Haible  <bruno@clisp.org>
57421
57422         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
57423
57424 2006-10-03  Bruno Haible  <bruno@clisp.org>
57425
57426         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
57427         from gl_avltreehash_list_implementation.
57428
57429 2006-10-03  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/gl_oset.c (gl_oset_add): Fix return type.
57432
57433 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
57434
57435         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
57436
57437 2006-10-02  Eric Blake  <ebb9@byu.net>
57438
57439         * modules/strnlen (Depends-on): Add extensions.
57440
57441 2006-10-02  Eric Blake  <ebb9@byu.net>
57442
57443         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
57444         definition in 2.60+.
57445
57446 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
57447
57448         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
57449         checks.
57450
57451 2006-10-02  Bruno Haible  <bruno@clisp.org>
57452
57453         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
57454         to the AUTOMAKE_OPTIONS.
57455         Reported by Jim Meyering.
57456
57457 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57458
57459         Work around bug in Solaris 10 /proc file system:
57460         /proc/self/fd/NNN/.. isn't the parent directory of
57461         the directory whose file descriptor is NNN.  This needs to
57462         be worked around at run time, not compile time, since a
57463         program might be built on Solaris 8, where things work, and
57464         run on Solaris 10.
57465         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
57466         to use the following interface instead:
57467         (OPENAT_BUFFER_SIZE): New macro.
57468         (openat_proc_name): New function.
57469         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
57470         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
57471         Likewise.
57472         * lib/openat-proc.c: New file.
57473         * modules/openat (Files): Add lib/openat-proc.c.
57474         (Depends-on): Add same-inode, stdbool.
57475         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
57476
57477 2006-09-29  Bruno Haible  <bruno@clisp.org>
57478
57479         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
57480         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
57481         argument. Set stdout_closed before testing for ferror, not after.
57482         (fwriteerror, fwriteerror_no_ebadf): New functions.
57483
57484 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57485
57486         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
57487
57488 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
57489
57490         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
57491         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
57492
57493 2006-09-28  Jim Meyering  <jim@meyering.net>
57494
57495         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
57496         Include <unistd.h>.
57497
57498 2006-09-28  Bruno Haible  <bruno@clisp.org>
57499
57500         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
57501         * modules/linkedhash-list (Depends-on): Likewise.
57502         * modules/rbtreehash-list (Depends-on): Likewise.
57503
57504 2006-09-28  Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/strndup.h: Simplify the redefinition of strndup.
57507         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
57508         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
57509
57510 2006-09-28  Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
57513         * lib/gl_linkedhash_list.c: Likewise.
57514         * lib/gl_rbtreehash_list.c: Likewise.
57515
57516 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57517
57518         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
57519         getaddrinfo.
57520
57521         * lib/__fpending.h: Don't include <stdio_ext.h> unless
57522         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
57523         it causes <stdio_ext.h> to cause a compile-time error.
57524         Problem reported by Nelson H. F. Beebe.
57525         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
57526         of HAVE_DECL___PENDING.
57527
57528         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
57529         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
57530         declaration.
57531
57532 2006-09-27  Jim Meyering  <jim@meyering.net>
57533
57534         This file could end up with a definition for a function
57535         named __strndup, rather than rpl_strndup on a system with
57536         incomplete weak_alias support.
57537         * lib/strndup.c (strndup): Rename from __strndup.
57538         Remove #defines that used to map __strndup to strndup.
57539         Don't use K&R prototypes.
57540         Remove LIBC-related code, since this file is not sync'd with glibc.
57541         * lib/strndup.h: Revamp, accordingly.
57542         * m4/strndup.m4: Modernize.
57543
57544 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         * modules/savewd (Depends-on): Add 'raise'.
57547         * lib/savewd.c: Include <signal.h>, for 'raise'.
57548
57549 2006-09-26  Jim Meyering  <jim@meyering.net>
57550
57551         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
57552         when we detect Darwin 8.7.0's acl_get_file bug.
57553         Rearrange to perform the new (below) run-test while $LIBS
57554         contains any acl-related library.  Set USE_ACL at the end.
57555         (gl_ACL_GET_FILE): New function.
57556
57557 2006-09-26  Eric Blake  <ebb9@byu.net>
57558
57559         * lib/verror.c: Include <config.h> unconditionally.
57560
57561 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
57562
57563         * modules/clock-time (Maintainer): Add self.
57564         * modules/getlogin_r (Depends-on): Add extensions.
57565
57566 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57567
57568         * modules/clock-time: New module.
57569         * modules/nanosleep (Depends-on): Add clock-time.
57570         * modules/gethrxtime (Depends-on): Likewise.
57571         * modules/gettime (Depends-on): Likewise.
57572         * modules/settime (Depends-on): Likewise.
57573
57574         * modules/fts-lgpl: Depend on openat.
57575         * modules/mkancesdirs: Depend on savewd.
57576         * modules/mkdir-p: Likewise.
57577
57578 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57579
57580         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
57581
57582         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
57583         `gl_have_arbitrary_file_name_length_limit' to
57584         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
57585         actually works between configure runs.
57586
57587 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57588             Bruno Haible  <bruno@clisp.org>
57589
57590         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
57591
57592 2006-09-25  Jim Meyering  <jim@meyering.net>
57593
57594         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
57595         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
57596
57597 2006-09-25  Eric Blake  <ebb9@byu.net>
57598
57599         * gnulib-tool (func_import, func_create_testdir): Fix typos in
57600         exec's in 2006-09-18 patch when shuffling fds.
57601
57602 2006-09-25  Bruno Haible  <bruno@clisp.org>
57603
57604         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
57605         Reported by Jim Meyering.
57606
57607 2006-09-24  Jim Meyering  <jim@meyering.net>
57608
57609         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
57610         compare a pointer against a literal "0".  That caused failures with
57611         at least HP-UX's hpcc.
57612
57613 2006-09-22  Simon Josefsson  <jas@extundo.com>
57614
57615         * modules/gc-sha1:
57616         * modules/gc-md4:
57617         * modules/gc-hmac-sha1:
57618         * modules/gc-hmac-md5:
57619         * modules/gc-des:
57620         * modules/gc-arcfour: Distribute more files.
57621
57622 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57623
57624         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
57625         (gl_linked_iterator_from_to): Initialize struct completely.
57626         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
57627         (gl_tree_iterator_from_to): Likewise
57628         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
57629         * lib/gl_array_list.c [lint] (gl_array_iterator)
57630         (gl_array_iterator_from_to): Likewise.
57631         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
57632         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
57633         (gl_carray_iterator_from_to): Likewise.
57634
57635         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
57636         * lib/md4.c (md4_process_block): Remove unused variable.
57637         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
57638         parentheses for clarity.
57639
57640 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57641
57642         * modules/bison-i18n (Depends-on): Add gettext.
57643
57644 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57645
57646         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
57647         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
57648         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
57649         also add missing comma that caused broken test.
57650         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
57651         stdlib.h, for `abort'.
57652         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
57653         variables.
57654         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
57655         include unistd.h if present, for `rmdir'.
57656         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
57657         variables.
57658         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
57659         in the process include standard headers for prototypes.
57660         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
57661         gets declared on GNU/Linux.
57662         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
57663         unistd.h, for `rmdir'.
57664         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
57665
57666         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
57667         always true.
57668         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
57669
57670         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
57671
57672 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57673
57674         * gnulib-tool (func_version): Create output all at once.  This
57675         may help avoid triggering unnecessary SIGPIPEs, and at any
57676         rate it doesn't hurt.
57677
57678 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57679             Bruno Haible  <bruno@clisp.org>
57680
57681         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
57682         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
57683         * m4/signed.m4 (bh_C_SIGNED): Likewise.
57684
57685         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
57686         (gl_FUNC_VASPRINTF): Invoke it.
57687
57688 2006-09-22  Bruno Haible  <bruno@clisp.org>
57689
57690         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
57691         getloadavg.c as first argument.
57692
57693 2006-09-22  Bruno Haible  <bruno@clisp.org>
57694
57695         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
57696         at the beginning of the gl_INIT macro.
57697         * modules/getloadavg (configure.ac): Pass $gl_source_base to
57698         gl_GETLOADAVG.
57699
57700 2006-09-22  Bruno Haible  <bruno@clisp.org>
57701
57702         * gnulib-tool (func_create_megatestdir): Don't include the config-h
57703         module.
57704         Suggested by Ralf Wildenhues.
57705
57706 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
57707
57708         Import this patch from libc:
57709
57710         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
57711
57712         * lib/regex_internal.c (re_string_reconstruct): Handle
57713         offset < pstr->valid_raw_len && pstr->offsets_needed case.
57714         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
57715         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
57716         re_string_context_at.
57717
57718         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
57719         now requires it.
57720         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
57721         gl_REGEX now does it for us.
57722         (gl_REGEX): Add test taken from
57723         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
57724
57725         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
57726         Check that large offsets work.  Modernize Autoconf usages.
57727         Prefer "yes" to mean a good thing rather than a bad.
57728         Don't put "#define mkstemp" in config.h, as this might interfere
57729         with standard system headers that "#define mkstemp mkstemp64".
57730
57731         * modules/mkstemp (Depends-on): Add extensions, so that
57732         mkstemp is visible on some platforms.
57733         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
57734         (Include): Change to "mkstemp.h" from <stdlib.h>.
57735         (Files): Add mkstemp.h.
57736
57737         * lib/mkstemp.h: New file, since some standard headers
57738         #define mkstemp.
57739         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
57740         Include "mkstemp.h".
57741         Make the _LIBC code resemble glibc original more,
57742         e.g., use K&R style.
57743         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
57744         (mkstemp): Remove, since mkstemp.h does this for us.
57745         * lib/stdlib--.h: Include mkstemp.h.
57746
57747         Import this patch from libc:
57748
57749         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57750
57751         * lib/tempname.c (__gen_tempname): Change attempts_min
57752         into a macro.  Use preprocessor to decide how to initialize
57753         attempts [Coverity CID 67].
57754
57755 2006-09-20  Bruno Haible  <bruno@clisp.org>
57756
57757         * lib/mkdtemp.c: Import from libc.
57758         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
57759                 * sysdeps/posix/tempname.c (__gen_tempname): Change
57760                 attempts_min into a macro.  Use preprocessor to decide how to
57761                 initialize attempts [Coverity CID 67].
57762         2001-11-27  Paul Eggert  <eggert@twinsun.com>
57763                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
57764                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
57765
57766 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57767
57768         * gnulib-tool (func_exit): New function, to allow to pass the
57769         exit status portably through the trap.  Use everywhere.
57770         (--help, --version): Signal a write error.
57771         (trap): catch SIGPIPE, for write errors.
57772         Exit at the end of the trap, with the correct exit status.
57773
57774 2006-09-19  Karl Berry  <karl@gnu.org>
57775
57776         * doc/gnulib.texi: note about the license texinfo files.
57777
57778 2006-09-19  Eric Blake  <ebb9@byu.net>
57779
57780         * gnulib-tool: Avoid space-tab.
57781
57782 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57783
57784         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
57785         that prevented coreutils 6.1 from building.  Problem reported
57786         by Petter Reinholdtsen.
57787
57788 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
57789
57790         * gnulib-tool (avoidlist): Fix typo that broke options like
57791         --avoid=lock that are used by coreutils bootstrap.
57792
57793 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
57794
57795         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
57796         more systematically.
57797
57798 2006-09-18  Jim Meyering  <jim@meyering.net>
57799
57800         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
57801
57802 2006-09-18  Bruno Haible  <bruno@clisp.org>
57803
57804         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
57805
57806 2006-09-18  Bruno Haible  <bruno@clisp.org>
57807
57808         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
57809         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
57810         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
57811         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
57812         * m4/gettext.m4: Require autoconf >= 2.52.
57813         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
57814         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
57815         of gl_cv_header_inttypes_h.
57816
57817 2006-09-18  Bruno Haible  <bruno@clisp.org>
57818
57819         * lib/javaversion.c: Include configmake.h.
57820
57821 2006-09-18  Bruno Haible  <bruno@clisp.org>
57822
57823         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
57824         avoid that the while loops be executed in a subshell.
57825
57826 2006-09-18  Bruno Haible  <bruno@clisp.org>
57827
57828         * MODULES.html.sh (func_module): Break long lines.
57829         Suggested by Bruce Korb <bkorb@gnu.org>.
57830
57831 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57832
57833         Speed up by a factor of 1.12.
57834         * gnulib-tool (nl): New variable.
57835         (func_import): Rewrite include directive extraction to only read each
57836         directive once.
57837
57838 2006-09-17  Bruno Haible  <bruno@clisp.org>
57839
57840         * modules/javaversion (Makefile.am): Remove DEFS setting.
57841         (Depends-on): Add configmake, for PKGDATADIR definition.
57842
57843 2006-09-17  Bruno Haible  <bruno@clisp.org>
57844
57845         * gnulib-tool (func_create_testdir): Rewrite all files at once.
57846
57847 2006-09-17  Bruno Haible  <bruno@clisp.org>
57848
57849         * gnulib-tool (func_append): New function, stolen from libtool.m4.
57850         (func_modules_transitive_closure, func_modules_add_dummy,
57851         func_modules_to_filelist, func_import, func_create_testdir,
57852         func_create_megatestdir, ...): Use it wherever possible.
57853         Suggested by Ralf Wildenhues.
57854
57855 2006-09-16  Karl Berry  <karl@gnu.org>
57856
57857         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
57858         to avoid sectioning errors.
57859         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
57860         [ifinfo]: blank line after @center-ed titles.
57861         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
57862         Spell FSF address consistently with others.
57863         (These changes approved by rms.)
57864
57865 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57866
57867         Speed up by a factor of 1.61.
57868         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
57869         already checked module names again.
57870
57871 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57872
57873         Speed up by a factor of 1.13.
57874         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
57875         for new_files, and the input to func_add_or_update.
57876
57877 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57878
57879         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
57880         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
57881
57882 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57883
57884         * modules/mkancesdirs (Depends-on): Add fcntl.
57885         * modules/savewd: New file.
57886         * MODULES.html.sh (File system functions): Add savewd.
57887
57888         * modules/configmake (Makefile.am): Add support for the
57889         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
57890
57891 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57892
57893         * m4/savewd.m4: New file.
57894
57895 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57896
57897         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
57898         (dirchownmod): New arg FD.  All callers changed.
57899         Use FD rather than opening the directory ourself, as opening is
57900         now the caller's responsibility.
57901         * lib/dirchownmod.h: Likewise.
57902         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
57903         hosts that require <sys/types.h> before <sys/stat.h>.  Include
57904         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
57905         (test_dir): Remove.
57906         (mkancesdirs): Return length of prefix of FILE that has already
57907         been made, or -2 if there is a child doing the work.  Redo
57908         algorithm so that it is O(N) rather than O(N**2).  Optimize away
57909         ".", and treat ".." specially since it might stray back into
57910         already-created areas.  Use a subprocess if necessary.  New arg
57911         WD; all users changed.  MAKE_DIR function should now return 1
57912         if it creates a directory that is not readable.  Return -2 if
57913         a child process is spun off.
57914         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
57915         Adjust signature to match code.
57916         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
57917         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
57918         all users changed.
57919         * lib/savewd.c, lib/savewd.h: New files.
57920
57921 2006-09-15  Jim Meyering  <jim@meyering.net>
57922
57923         * modules/rename-dest-slash: New module.
57924         * MODULES.html.sh (posix_compat): Add it here.
57925
57926         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
57927
57928 2006-09-15  Jim Meyering  <jim@meyering.net>
57929
57930         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
57931         file.
57932
57933         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
57934
57935 2006-09-15  Jim Meyering  <jim@meyering.net>
57936
57937         * lib/rename-dest-slash.c (has_trailing_slash): Use
57938         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
57939         (rpl_rename_dest_slash): Perform the cheaper trailing slash
57940         test before testing whether SRC is a directory.
57941         Suggestions from Bruno Haible.
57942
57943         Avoid a warning about an unused variable.
57944         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
57945         into the #ifdef block where it's used.
57946
57947         * lib/rename-dest-slash.c: New file.
57948
57949 2006-09-14  Bruno Haible  <bruno@clisp.org>
57950
57951         * lib/allocsa.c: Include <config.h> unconditionally.
57952         * lib/asnprintf.c: Likewise.
57953         * lib/asprintf.c: Likewise.
57954         * lib/c-strcasecmp.c: Likewise.
57955         * lib/c-strcasestr.c: Likewise.
57956         * lib/c-strncasecmp.c: Likewise.
57957         * lib/c-strstr.c: Likewise.
57958         * lib/classpath.c: Likewise.
57959         * lib/clean-temp.c: Likewise.
57960         * lib/concatpath.c: Likewise.
57961         * lib/copy-file.c: Likewise.
57962         * lib/csharpcomp.c: Likewise.
57963         * lib/csharpexec.c: Likewise.
57964         * lib/execute.c: Likewise.
57965         * lib/fatal-signal.c: Likewise.
57966         * lib/findprog.c: Likewise.
57967         * lib/fwriteerror.c: Likewise.
57968         * lib/gl_array_list.c: Likewise.
57969         * lib/gl_array_oset.c: Likewise.
57970         * lib/gl_avltree_list.c: Likewise.
57971         * lib/gl_avltree_oset.c: Likewise.
57972         * lib/gl_avltreehash_list.c: Likewise.
57973         * lib/gl_carray_list.c: Likewise.
57974         * lib/gl_linked_list.c: Likewise.
57975         * lib/gl_linkedhash_list.c: Likewise.
57976         * lib/gl_list.c: Likewise.
57977         * lib/gl_oset.c: Likewise.
57978         * lib/gl_rbtree_list.c: Likewise.
57979         * lib/gl_rbtree_oset.c: Likewise.
57980         * lib/gl_rbtreehash_list.c: Likewise.
57981         * lib/imaxabs.c: Likewise.
57982         * lib/imaxdiv.c: Likewise.
57983         * lib/javacomp.c: Likewise.
57984         * lib/javaexec.c: Likewise.
57985         * lib/javaversion.c: Likewise.
57986         * lib/linebreak.c: Likewise.
57987         * lib/localcharset.c: Likewise.
57988         * lib/lock.c: Likewise.
57989         * lib/mbchar.c: Likewise.
57990         * lib/mbswidth.c: Likewise.
57991         * lib/mkdtemp.c: Likewise.
57992         * lib/pipe.c: Likewise.
57993         * lib/printf-args.c: Likewise.
57994         * lib/printf-parse.c: Likewise.
57995         * lib/progname.c: Likewise.
57996         * lib/progreloc.c: Likewise.
57997         * lib/readlink.c: Likewise.
57998         * lib/sh-quote.c: Likewise.
57999         * lib/stpcpy.c: Likewise.
58000         * lib/stpncpy.c: Likewise.
58001         * lib/strcasecmp.c: Likewise.
58002         * lib/strcasestr.c: Likewise.
58003         * lib/strcspn.c: Likewise.
58004         * lib/striconv.c: Likewise.
58005         * lib/strncasecmp.c: Likewise.
58006         * lib/strnlen1.c: Likewise.
58007         * lib/strstr.c: Likewise.
58008         * lib/strtok_r.c: Likewise.
58009         * lib/tls.c: Likewise.
58010         * lib/tmpdir.c: Likewise.
58011         * lib/unicodeio.c: Likewise.
58012         * lib/unsetenv.c: Likewise.
58013         * lib/vasnprintf.c: Likewise.
58014         * lib/vasprintf.c: Likewise.
58015         * lib/wait-process.c: Likewise.
58016         * lib/xallocsa.c: Likewise.
58017         * lib/xsetenv.c: Likewise.
58018         * lib/xstriconv.c: Likewise.
58019
58020 2006-09-13  Simon Josefsson  <jas@extundo.com>
58021
58022         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
58023         that internally, suggested by Ralf Wildenhues
58024         <Ralf.Wildenhues@gmx.de>.
58025
58026 2006-09-13  Simon Josefsson  <jas@extundo.com>
58027
58028         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
58029         @LIBOBJS@.
58030         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58031
58032 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
58033
58034         * lib/_fpending.c: Include <config.h> unconditionally, since we no
58035         longer worry about uses that don't define HAVE_CONFIG_H.
58036         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
58037         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
58038         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
58039         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
58040         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
58041         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
58042         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
58043         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
58044         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
58045         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
58046         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
58047         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
58048         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
58049         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
58050         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
58051         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
58052         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
58053         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
58054         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
58055         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
58056         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
58057         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
58058         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
58059         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
58060         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
58061         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
58062         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
58063         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
58064         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
58065         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
58066         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
58067         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
58068         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
58069         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
58070         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
58071         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
58072         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
58073         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
58074         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
58075         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
58076         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
58077         Likewise.
58078
58079 2006-09-13  Eric Blake  <ebb9@byu.net>
58080
58081         * lib/getopt.c: Fix typo in last commit.
58082
58083 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58084
58085         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
58086         dgettext.
58087
58088 2006-09-12  Jim Meyering  <jim@meyering.net>
58089
58090         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
58091         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
58092         Reported by Nelson H. F. Beebe.
58093
58094 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58095
58096         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
58097         program_invocation_name and program_invocation_short_name are
58098         initialized.
58099         * lib/argp-namefrob.h: Move declarations of program_invocation_name
58100         and program_invocation_short_name to argp.h, so they are visible
58101         to user programs.
58102         * lib/argp.h: Likewise
58103
58104 2006-09-10  Bruno Haible  <bruno@clisp.org>
58105
58106         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
58107         m4/inttypes_h.m4, m4/uintmax_t.m4.
58108
58109 2006-09-10  Bruno Haible  <bruno@clisp.org>
58110
58111         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
58112         gl_AC_TYPE_UINTMAX_T.
58113
58114 2006-09-10  Bruno Haible  <bruno@clisp.org>
58115
58116         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
58117
58118 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58119
58120         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
58121         convention.  Text proposed by Bruno Haible.
58122         (struct argp_option): Document the use of N_() wrappers.
58123
58124         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
58125         '\v', and translate the two parts separately, instead of feeding
58126         the whole string to gettext.  This allows to exclude
58127         '\v' from the strings visible to the translator by writing doc
58128         strings as N_("..") "\v" N_("..").
58129
58130 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
58131
58132         * config/srclist.txt: Undo latest change; the bug was fixed.
58133
58134 2006-09-09  Bruno Haible  <bruno@clisp.org>
58135
58136         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
58137         assignments if building a library without libtool.
58138         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
58139         in func_emit_lib_Makefile_am.
58140         (func_import): When building a static library libfoo.a, arrange to
58141         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
58142         (func_create_testdir): Likewise.
58143         * modules/gc (configure.ac, Makefile.am): If building statically,
58144         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
58145         * modules/iconvme (configure.ac, Makefile.am): Likewise.
58146         * modules/striconv (configure.ac, Makefile.am): Likewise.
58147         Based on a suggestion by Ralf Wildenhues.
58148
58149 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58150
58151         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
58152         Check for unistd.h too, since Autoconf doesn't assume POSIX.
58153         Also:
58154
58155         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58156         Add year_2050_test to catch glibc bug 2821
58157         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58158
58159         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58160         Prefer #ifdef to #if.
58161
58162         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
58163         Return from 'main' instead of calling 'exit'.
58164
58165 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58166
58167         * lib/mktime.c (guess_time_tm): Fix bug where mktime
58168         returned the maximum time_t value rather than (time_t) -1.
58169         Problem originally reported by William Bardwell
58170         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
58171
58172         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58173         Moved to here ...
58174         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
58175         ... from here.
58176
58177 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
58178
58179         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
58180         2821 is fixed.
58181
58182 2006-09-08  Jim Meyering  <jim@meyering.net>
58183
58184         Don't make generated files read-only.  That would bother too many
58185         people.  However, do retain the ability to work when targets are
58186         read-only: remove the destination and temporary files before writing
58187         them (when generated via sed or echo), or by using the -f option for
58188         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
58189         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58190         * modules/byteswap, modules/configmake, modules/fcntl:
58191         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58192         * modules/localcharset, modules/netinet_in, modules/poll:
58193         * modules/stdbool, modules/stdint, modules/sys_select:
58194         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58195
58196 2006-09-08  Jim Meyering  <jim@meyering.net>
58197
58198         Avoid new build failure on FreeBSD 6.0.
58199         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
58200         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
58201         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
58202
58203 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58204
58205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
58206
58207 2006-09-07  Jim Meyering  <jim@meyering.net>
58208
58209         Fix global typo in last change: use chmod u-w, not chmod u-x.
58210         Spotted by Paul Eggert and Bruce Korb.
58211         * modules/alloca-opt, modules/argz, modules/arpa_inet:
58212         * modules/byteswap, modules/configmake, modules/fcntl:
58213         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
58214         * modules/localcharset, modules/netinet_in, modules/poll:
58215         * modules/stdbool, modules/stdint, modules/sys_select:
58216         * modules/sys_socket, modules/sys_stat, modules/sysexits:
58217
58218 2006-09-06  Jim Meyering  <jim@meyering.net>
58219
58220         Make generated files be read-only.
58221         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
58222         Ensure that each generated file is now read-only.
58223         * modules/argz: Likewise.
58224         * modules/arpa_inet: Likewise.
58225         * modules/byteswap: Likewise.
58226         * modules/configmake: Likewise.
58227         * modules/fcntl: Likewise.
58228         * modules/fnmatch: Likewise.
58229         * modules/getopt: Likewise.
58230         * modules/glob: Likewise.
58231         * modules/inttypes: Likewise.
58232         * modules/netinet_in: Likewise.
58233         * modules/poll: Likewise.
58234         * modules/stdbool: Likewise.
58235         * modules/stdint: Likewise.
58236         * modules/sys_select: Likewise.
58237         * modules/sys_socket: Likewise.
58238         * modules/sys_stat: Likewise.
58239         * modules/sysexits: Likewise.
58240         * modules/localcharset: Same as above, but continue using temporary
58241         file named "t-$@" (why different?) rather than the "$@-t" used
58242         everywhere else.
58243
58244         * modules/sysexits (Makefile.am): Replace literal occurrences
58245         of "sysexit.h" more readable, and more consistent, "$@".
58246
58247 2006-09-06  Bruno Haible  <bruno@clisp.org>
58248
58249         * modules/striconv: New file.
58250         * modules/xstriconv: New file.
58251         * MODULES.html.sh (Internationalization functions): Add striconv,
58252         xstriconv.
58253
58254 2006-09-06  Bruno Haible  <bruno@clisp.org>
58255
58256         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
58257         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
58258         not using libtool correctly.
58259
58260 2006-09-06  Bruno Haible  <bruno@clisp.org>
58261
58262         * lib/striconv.h: New file.
58263         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
58264         iconvstring.c.
58265         * lib/xstriconv.h: New file.
58266         * lib/xstriconv.c: New file.
58267
58268 2006-09-06  Bruno Haible  <bruno@clisp.org>
58269
58270         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
58271         lib_..._LDFLAGS.
58272
58273 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58274
58275         * lib/argz_.h: Sync from Libtool.
58276
58277         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
58278                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
58279
58280         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
58281
58282 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58283
58284         * modules/trim: New file.
58285
58286 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
58287
58288         * lib/trim.h: New file.
58289         * lib/trim.c: New file.
58290
58291 2006-09-05  Bruno Haible  <bruno@clisp.org>
58292
58293         * MODULES.html.sh (String handling): Add trim.
58294
58295 2006-09-04  Karl Berry  <karl@gnu.org>
58296
58297         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
58298         until next release.
58299
58300 2006-09-03  Bruno Haible  <bruno@clisp.org>
58301
58302         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
58303         correctly.
58304
58305 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58306
58307         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
58308         not gl_GETLOADAVG.  Omit unneeded semicolons.
58309         Problems reported by Ralf Wildenhues in
58310         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58311         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
58312         at the end, which is the usual gnulib style.
58313
58314         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
58315         of doing all the work ourselves.
58316         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
58317         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
58318
58319 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58320
58321         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
58322         Problem reported by Ralf Wildenhues in
58323         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
58324
58325         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
58326         HAVE_STRUCT_STATFS_F_FSTYPENAME.
58327
58328 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
58331         yesterday's patch by changing test -n to test -z.
58332
58333 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58334
58335         * modules/getloadavg (Files): Add m4/getloadavg.m4.
58336         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
58337         the former is now obsolescent.
58338
58339         * modules/chdir-long (Depends-on): Add fcntl.
58340
58341 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58342
58343         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
58344         obsolescent, and programs should use gnulib instead.
58345         * m4/getloadavg.m4: New file, with contents taken from Autoconf
58346         but with prefixes changed.
58347
58348 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
58351         or stdbool.h, because they might not exist while configuring.
58352
58353         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
58354         Don't include unistd.h or limits.h; not needed, since chdir-long.h
58355         does that for us.
58356         (O_DIRECTORY): Remove.
58357
58358 2006-08-31  Eric Blake  <ebb9@byu.net>
58359
58360         * gnulib-tool: Don't let emacs change spaces to TAB.
58361
58362 2006-08-31  Bruno Haible  <bruno@clisp.org>
58363
58364         * gnulib-tool: When calling func_import more than once, do it in a
58365         subshell.
58366         Reported by Eric Blake <ebb9@byu.net>.
58367
58368 2006-08-31  Bruno Haible  <bruno@clisp.org>
58369
58370         * gnulib-tool (nl): Remove variable.
58371         (sed_transform_lib_file): Use more robust test for config-h module.
58372         (func_import): Fix typo in 2006-08-25 patch.
58373
58374 2006-08-31  Bruno Haible  <bruno@clisp.org>
58375
58376         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
58377         specified, augment Makefile.am variables instead of assigning them.
58378
58379 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58380
58381         Work around a bug in both the Linux and SunOS 64-bit kernels:
58382         nanosleep mishandles sleeps for longer than 2**31 seconds.
58383         Problem reported by Frank v Waveren in
58384         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
58386         Check for nanosleep bug.
58387         (LIB_NANOSLEEP): Append clock_gettime library if needed.
58388
58389 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58390
58391         Work around a bug in both the Linux and SunOS 64-bit kernels:
58392         nanosleep mishandles sleeps for longer than 2**31 seconds.
58393         Problem reported by Frank v Waveren in
58394         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
58395         * lib/nanosleep.c (BILLION): New constant.
58396         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
58397         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
58398         implementation.
58399
58400 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58401
58402         * modules/nanosleep (Depends-on): Add gettime.
58403
58404 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
58405         and Simon Josefsson  <jas@extundo.com>
58406         and Oskar Liljeblad  <oskar@osk.mine.nu>
58407
58408         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
58409         * gnulib-tool (func_import): New license type 'unmodifiable license
58410         text'.
58411         * modules/fdl: Use it.  Longer description.
58412         * module/gpl, module/lgpl: New files.
58413
58414 2006-08-30  Jim Meyering  <jim@meyering.net>
58415
58416         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
58417         shadowing the parameter.
58418
58419 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58420
58421         Sync from Libtool:
58422
58423         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58424
58425         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
58426         sharing with gnulib.  Report by Eric Blake.
58427
58428 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58429
58430         * modules/isapipe: New file.
58431         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
58432
58433 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58434
58435         * modules/configmake (Makefile.am): Add a comment, and omit
58436         the CONFIGMAKE_ prefix from generated macro names.  Suggested
58437         by Bruno Haible.
58438
58439 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58440
58441         * m4/isapipe.m4: New file.
58442
58443 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
58444
58445         * lib/isapipe.c, lib/isapipe.h: New files.
58446
58447 2006-08-29  Jim Meyering  <jim@meyering.net>
58448
58449         * modules/configmake (Makefile.am): Make configmake.h depend on
58450         Makefile.  Otherwise, a stale configmake.h could hang around.
58451
58452 2006-08-29  Eric Blake  <ebb9@byu.net>
58453
58454         * lib/error.c (error_at_line, print_errno_message): Match libc, after
58455         resolution of upstream bug 3044.
58456
58457 2006-08-29  Bruno Haible  <bruno@clisp.org>
58458
58459         * modules/localcharset (Depends-on): Add configmake.
58460         (Makefile.am): Remove setting of LIBDIR through DEFS.
58461
58462 2006-08-29  Bruno Haible  <bruno@clisp.org>
58463
58464         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
58465         defined.
58466
58467 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58468
58469         * modules/fcntl: New file.
58470         * modules/chdir-safer (Depends-on): Add fcntl.
58471         * modules/fts: Likewise.
58472         * modules/mkdir-p: Likewise.
58473
58474         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
58475         This undoes the most recent change, since we're now addressing the
58476         problem in a different way.
58477
58478         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
58479         into output, since the output might be called Makefile.am even
58480         if $makefile_name is something different.
58481         (func_import): Use $makefile_am rather than
58482         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
58483         empty.
58484
58485         * modules/inttypes (Files): Add m4/inttypes-h.m4.
58486
58487 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
58490         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
58491         recent change to stdint.m4, since we're now addressing the problem in a
58492         different way.
58493
58494 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58495
58496         * m4/fcntl_h.m4: New file.
58497
58498 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
58499
58500         * lib/fcntl_.h: New file.
58501         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
58502         the fcntl module.
58503         * lib/dirchownmod.c: Likewise.
58504         * lib/fts.c: Likewise.
58505
58506         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
58507         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
58508         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
58509         just before including <inttypes.h>, to avoid circular inclusion.
58510
58511 2006-08-28  Jim Meyering  <jim@meyering.net>
58512
58513         * doc/visibility.texi: Actually read and correct the grammar of the
58514         sentence affected by yesterday's change.
58515
58516 2006-08-28  Eric Blake  <ebb9@byu.net>
58517
58518         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
58519         needs wrapper.
58520
58521 2006-08-28  Eric Blake  <ebb9@byu.net>
58522
58523         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
58524
58525 2006-08-28  Eric Blake  <ebb9@byu.net>
58526
58527         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
58528
58529 2006-08-28  Bruno Haible  <bruno@clisp.org>
58530
58531         * modules/c-strstr: New file, from GNU gettext.
58532         * MODULES.html.sh (String handling): Add c-strstr.
58533
58534 2006-08-28  Bruno Haible  <bruno@clisp.org>
58535
58536         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
58537         macros.
58538         Reported by Eric Blake.
58539
58540 2006-08-28  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
58543         (VASNPRINTF): Return a string of length > INT_MAX without failing.
58544         * lib/vasprintf.c: Include errno.h, limits.h.
58545         (EOVERFLOW): New fallback definition.
58546         (vasprintf): Test here whether the string length is > INT_MAX.
58547         * lib/vsnprintf.c: Include errno.h, limits.h.
58548         (EOVERFLOW): New fallback definition.
58549         (vsnprintf): Fix bug when generated string was too long for the buffer.
58550         Test here whether the string length is > INT_MAX.
58551
58552 2006-08-28  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/inttypes_.h (SCNX*): Remove definitions.
58555         Reported by Eric Blake.
58556
58557 2006-08-28  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/c-strstr.h: New file, from GNU gettext.
58560         * lib/c-strstr.c: New file, from GNU gettext.
58561
58562 2006-08-28  Bruno Haible  <bruno@clisp.org>
58563
58564         * gnulib-tool: Reorder some statements.
58565
58566 2006-08-28  Bruno Haible  <bruno@clisp.org>
58567
58568         * gnulib-tool: New option --makefile-name.
58569         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
58570         $makefile_name.
58571         (func_import): Write $makefile_name to the cache file, and read it from
58572         there unless explicitly specified. Use $makefile_name as file name
58573         instead of Makefile.am. Adjust the recommendations accordingly.
58574
58575 2006-08-28  Bruno Haible  <bruno@clisp.org>
58576
58577         * gnulib-tool (func_verify_module): Check against misapplying patch.
58578
58579 2006-08-28  Bruno Haible  <bruno@clisp.org>
58580
58581         * gnulib-tool (func_relativize, func_relconcat): New functions.
58582         Give an error if --local-dir is given with --update.
58583         Remove trailing slashes from $local_gnulib_dir.
58584         (func_import): Store the relativized $local_gnulib_dir in
58585         gnulib-cache.m4, and read it from there if not specified explicitly.
58586
58587 2006-08-28  Bruno Haible  <bruno@clisp.org>
58588
58589         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
58590         is the current directory. Respect also $local_gnulib_dir.
58591
58592 2006-08-28  Bruno Haible  <bruno@clisp.org>
58593             Simon Josefsson  <jas@extundo.com>
58594
58595         BeOS portability.
58596         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
58597
58598 2006-08-27  Jim Meyering  <jim@meyering.net>
58599
58600         * doc/visibility.texi: Remove duplicate word: "pointer".
58601
58602 2006-08-26  Bruno Haible  <bruno@clisp.org>
58603
58604         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
58605         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
58606         (Makefile.am): Create inttypes.h from inttypes_.h.
58607         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
58608
58609         * modules/imaxabs: New file.
58610
58611         * modules/imaxdiv: New file.
58612
58613 2006-08-26  Bruno Haible  <bruno@clisp.org>
58614
58615         * m4/inttypes.m4: New file.
58616         * m4/_inttypes_h.m4: Remove file.
58617         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
58618         PRI_MACROS_BROKEN.
58619         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
58620
58621         * m4/imaxabs.m4: New file.
58622
58623         * m4/imaxdiv.m4: New file.
58624
58625 2006-08-26  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/inttypes_.h: New file.
58628         * lib/inttypes.h: Remove file.
58629         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
58630
58631         * lib/imaxabs.c: New file.
58632
58633         * lib/imaxdiv.c: New file.
58634
58635 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58636
58637         New config-h module, so that "make" output needn't be cluttered
58638         by -DHAVE_CONFIG_H.
58639         * MODULES.html.sh (Support for building libraries and executables):
58640         Add config-h.
58641         * modules/config-h: New file.
58642         * gnulib-tool (nl, sed_transform_lib_file): New vars.
58643         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
58644         the config-h module is used.
58645
58646         New configmake module, so that "make" output needn't be cluttered
58647         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
58648         * MODULES.html.sh (Support for building libraries and executables):
58649         Add configmake.
58650         * modules/configmake: New file.
58651
58652 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58653
58654         * m4/config-h.m4: New file.
58655
58656 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         * config/srclist.txt: Add elisp-comp.
58659
58660 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58661
58662         * MODULES.html.sh (Support for building libraries and executables):
58663         Add elisp-comp.
58664         * build-aux/elisp-comp: New file.
58665         * modules/elisp-comp: New file.
58666
58667 2006-08-24  Bruno Haible  <bruno@clisp.org>
58668
58669         * gnulib-tool (func_create_testdir): Use non-default values of
58670         sourcebase and m4base.
58671
58672 2006-08-24  Bruno Haible  <bruno@clisp.org>
58673
58674         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
58675         HTML structure.
58676
58677 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58678
58679         * modules/openat (Depends-on): Add lchown.
58680
58681 2006-08-23  Bruno Haible  <bruno@clisp.org>
58682
58683         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
58684         of gl_LOCK_EARLY instead of gl_LOCK.
58685
58686 2006-08-23  Bruno Haible  <bruno@clisp.org>
58687
58688         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
58689         on OSF/1 to no.
58690         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
58691
58692 2006-08-23  Bruno Haible  <bruno@clisp.org>
58693
58694         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
58695         as unusable.
58696
58697         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
58698         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
58699         (gl_LOCK): New macro.
58700
58701 2006-08-22  Simon Josefsson  <jas@extundo.com>
58702
58703         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
58704         to md5 module.
58705
58706 2006-08-22  Simon Josefsson  <jas@extundo.com>
58707
58708         * MODULES.html.sh: Add "Support for maintaining and release
58709         projects".
58710
58711         * build-aux/gnupload: New file, from coreutils.
58712
58713 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58714
58715         Avoid the need for AC_LIBSOURCES in m4 macros.
58716         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
58717         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
58718         * modules/check-version (EXTRA_DIST): Add check-version.h.
58719         * modules/crc (EXTRA_DIST): Add crc.h.
58720         * modules/des (EXTRA_DIST): Add des.h.
58721         * modules/gc (EXTRA_DIST): Add gc.h.
58722         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
58723         * modules/getline (EXTRA_DIST): Add getline.h.
58724         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
58725         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
58726         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
58727         * modules/md2 (EXTRA_DIST): Add md2.h.
58728         * modules/md4 (EXTRA_DIST): Add md4.h.
58729         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
58730         * modules/read-file (EXTRA_DIST): Add read-file.h.
58731         * modules/readline (EXTRA_DIST): Add readline.h.
58732         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
58733         rijndael-api-fst.h.
58734
58735 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58736
58737         * m4/rijndael.m4 (gl_ARCFOUR):
58738         * m4/arctwo.m4 (gl_ARCTWO):
58739         * m4/check-version.m4 (gl_CHECK_VERSION):
58740         * m4/crc.m4 (gl_CRC):
58741         * m4/des.m4 (gl_DES):
58742         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
58743         * m4/gc.m4 (gl_GC):
58744         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
58745         * m4/getline.m4 (gl_FUNC_GETLINE):
58746         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
58747         * m4/hmac-md5.m4 (gl_HMAC_MD5):
58748         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
58749         * m4/md2.m4 (gl_MD2):
58750         * m4/md4.m4 (gl_MD4):
58751         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
58752         * m4/read-file.m4 (gl_FUNC_READ_FILE):
58753         * m4/readline.m4 (gl_FUNC_READLINE):
58754         * m4/rijndael.m4 (gl_RIJNDAEL):
58755         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
58756         to get the necessary .h files and whatnot.
58757
58758 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
58759
58760         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
58761         gnulib rather than the other way around.
58762         * config/srclistvars.sh (COREUTILS): Remove.
58763
58764 2006-08-22  Jim Meyering  <jim@meyering.net>
58765
58766         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
58767
58768         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
58769
58770 2006-08-22  Eric Blake  <ebb9@byu.net>
58771
58772         * modules/regexprops-generic: New file.
58773         * MODULES.html.sh (Support for building documentation): List it.
58774
58775 2006-08-22  Eric Blake  <ebb9@byu.net>
58776
58777         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
58778         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
58779         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
58780         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
58781
58782 2006-08-22  Bruno Haible  <bruno@clisp.org>
58783
58784         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
58785         and lib_LTLIBRARIES like the other lib_* variables.
58786
58787 2006-08-22  Bruno Haible  <bruno@clisp.org>
58788
58789         * build-aux/x-to-1.in: New file, from GNU gettext.
58790
58791 2006-08-22  Bruno Haible  <bruno@clisp.org>
58792
58793         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
58794         <utmpx.h> exists.
58795
58796 2006-08-22  Bruno Haible  <bruno@clisp.org>
58797
58798         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
58799         <utmpx.h> exists.
58800
58801 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         BeOS portability.
58804         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
58805         exist.
58806         Problem reported by Bruno Haible.
58807
58808 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58809
58810         Avoid the need for AC_LIBSOURCES in m4 macros.
58811         * modules/acl (EXTRA_DIST): Add acl.h.
58812         * modules/argmatch (Files): Add m4/argmatch.m4.
58813         (configure.ac): Add gl_ARGMATCH.
58814         (EXTRA_DIST): Renamed from lib_SOURCES, for
58815         consistency with the other modules.  Remove argmatch.c.
58816         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
58817         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
58818         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
58819         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
58820         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
58821         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
58822         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
58823         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
58824         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
58825         * modules/closeout (EXTRA_DIST): Add closeout.h.
58826         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
58827         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
58828         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
58829         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
58830         dirname.h; remove basename.c and stripslash.c.
58831         * modules/exclude (EXTRA_DIST): Add exclude.h.
58832         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
58833         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
58834         * modules/file-type (EXTRA_DIST): Add file-type.h.
58835         * modules/filemode (EXTRA_DIST): Add filemode.h.
58836         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
58837         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58838         * modules/fpending (EXTRA_DIST): Add __fpending.h.
58839         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
58840         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
58841         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
58842         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
58843         * modules/getdate (EXTRA_DIST): Add getdate.c.
58844         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
58845         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
58846         * modules/getpass (EXTRA_DIST): Add getpass.h.
58847         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
58848         * modules/group-member (EXTRA_DIST): Add group-member.h.
58849         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
58850         * modules/hash (EXTRA_DIST): Add hash.h.
58851         * modules/human (EXTRA_DIST): Add human.h.
58852         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
58853         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
58854         * modules/lchown (EXTRA_DIST): Add lchown.h.
58855         * modules/long-options (EXTRA_DIST): Add long-options.h.
58856         * modules/lstat (EXTRA_DIST): Add lstat.h.
58857         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
58858         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
58859         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
58860         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
58861         * modules/memxor (EXTRA_DIST): Add memxor.h.
58862         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
58863         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
58864         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
58865         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
58866         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
58867         * modules/physmem (EXTRA_DIST): Add physmem.h.
58868         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
58869         * modules/posixver (EXTRA_DIST): Add posixver.h.
58870         * modules/quote (EXTRA_DIST): Add quote.h.
58871         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
58872         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
58873         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
58874         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
58875         regex_internal.h regexec.c.
58876         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
58877         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
58878         * modules/same (EXTRA_DIST): Add same.h.
58879         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
58880         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
58881         * modules/savedir (EXTRA_DIST): Add savedir.h.
58882         * modules/sha1 (EXTRA_DIST): Add sha1.h.
58883         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
58884         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
58885         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
58886         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
58887         * modules/strdup (EXTRA_DIST): Add strdup.h.
58888         * modules/strftime (EXTRA_DIST): Add strftime.h.
58889         * modules/strndup (EXTRA_DIST): Add strndup.h.
58890         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
58891         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
58892         * modules/time_r (EXTRA_DIST): Add time_r.h.
58893         * modules/timespec (EXTRA_DIST): Add timespec.h.
58894         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
58895         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
58896         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
58897         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
58898         * modules/userspec (EXTRA_DIST): Add userspec.h.
58899         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
58900         * modules/utimens (EXTRA_DIST): Add utimens.h.
58901         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
58902         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
58903         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
58904         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
58905         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
58906         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
58907         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
58908         * modules/yesno (EXTRA_DIST): Add yesno.h.
58909
58910 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
58911
58912         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
58913
58914         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
58915         * m4/dev-ino.m4, same-inode.m4: Remove.
58916
58917         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
58918         * m4/acl.m4 (AC_FUNC_ACL):
58919         * m4/backupfile.m4 (gl_BACKUPFILE):
58920         * m4/c-strtod.m4 (gl_C99_STRTOLD):
58921         * m4/canon-host.m4 (gl_CANON_HOST):
58922         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
58923         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
58924         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
58925         * m4/cloexec.m4 (gl_CLOEXEC):
58926         * m4/close-stream.m4 (gl_CLOSE_STREAM):
58927         * m4/closeout.m4 (gl_CLOSEOUT):
58928         * m4/dirfd.m4 (gl_FUNC_DIRFD):
58929         * m4/dirname.m4 (gl_DIRNAME):
58930         * m4/exclude.m4 (gl_EXCLUDE):
58931         * m4/exitfail.m4 (gl_EXITFAIL):
58932         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
58933         * m4/file-type.m4 (gl_FILE_TYPE):
58934         * m4/filemode.m4 (gl_FILEMODE):
58935         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
58936         * m4/fpending.m4 (gl_FUNC_FPENDING):
58937         * m4/fprintftime.m4 (gl_FPRINTFTIME):
58938         * m4/fts.m4 (gl_FUNC_FTS):
58939         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
58940         * m4/getdate.m4 (gl_GETDATE):
58941         * m4/gethrxtime.m4 (gl_GETHRXTIME):
58942         * m4/getpagesize.m4 (gl_GETPAGESIZE):
58943         * m4/getpass.m4 (gl_FUNC_GETPASS):
58944         * m4/gettime.m4 (gl_GETTIME):
58945         * m4/getugroups.m4 (gl_GETUGROUPS):
58946         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
58947         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
58948         * m4/hard-locale.m4 (gl_HARD_LOCALE):
58949         * m4/hash.m4 (gl_HASH):
58950         * m4/idcache.m4 (gl_IDCACHE):
58951         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
58952         * m4/lchown.m4 (gl_FUNC_LCHOWN):
58953         * m4/long-options.m4 (gl_LONG_OPTIONS):
58954         * m4/lstat.m4 (gl_FUNC_LSTAT):
58955         * m4/md5.m4 (gl_MD5):
58956         * m4/memcasecmp.m4 (gl_MEMCASECMP):
58957         * m4/memcoll.m4 (gl_MEMCOLL):
58958         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
58959         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
58960         * m4/memxor.m4 (gl_MEMXOR):
58961         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
58962         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
58963         * m4/modechange.m4 (gl_MODECHANGE):
58964         * m4/mountlist.m4 (gl_MOUNTLIST):
58965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58966         * m4/openat.m4 (gl_FUNC_OPENAT):
58967         * m4/pathmax.m4 (gl_PATHMAX):
58968         * m4/physmem.m4 (gl_PHYSMEM):
58969         * m4/posixtm.m4 (gl_POSIXTM):
58970         * m4/posixver.m4 (gl_POSIXVER):
58971         * m4/quote.m4 (gl_QUOTE):
58972         * m4/quotearg.m4 (gl_QUOTEARG):
58973         * m4/readtokens.m4 (gl_READTOKENS):
58974         * m4/readutmp.m4 (gl_READUTMP):
58975         * m4/regex.m4 (gl_REGEX):
58976         * m4/safe-read.m4 (gl_SAFE_READ):
58977         * m4/safe-write.m4 (gl_SAFE_WRITE):
58978         * m4/same.m4 (gl_SAME):
58979         * m4/save-cwd.m4 (gl_SAVE_CWD):
58980         * m4/savedir.m4 (gl_SAVEDIR):
58981         * m4/settime.m4 (gl_SETTIME):
58982         * m4/sha1.m4 (gl_SHA1):
58983         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
58984         * m4/stat-macros.m4 (gl_STAT_MACROS):
58985         * m4/stat-time.m4 (gl_STAT_TIME):
58986         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
58987         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
58988         * m4/strdup.m4 (gl_FUNC_STRDUP):
58989         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
58990         * m4/strndup.m4 (gl_FUNC_STRNDUP):
58991         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
58992         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
58993         * m4/time_r.m4 (gl_TIME_R):
58994         * m4/timespec.m4 (gl_TIMESPEC):
58995         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
58996         * m4/unlinkdir.m4 (gl_UNLINKDIR):
58997         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
58998         * m4/userspec.m4 (gl_USERSPEC):
58999         * m4/utimecmp.m4 (gl_UTIMECMP):
59000         * m4/utimens.m4 (gl_UTIMENS):
59001         * m4/xalloc.m4 (gl_XALLOC):
59002         * m4/xgetcwd.m4 (gl_XGETCWD):
59003         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
59004         * m4/xreadlink.m4 (gl_XREADLINK):
59005         * m4/xstrtod.m4 (gl_XSTRTOD):
59006         * m4/yesno.m4 (gl_YESNO):
59007         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
59008         to get the necessary .h files and whatnot.
59009
59010 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
59011             Bruno Haible  <bruno@clisp.org>
59012
59013         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
59014         /bin/sh understanding of '!' conditional negation.
59015
59016 2006-08-21  Jim Meyering  <jim@meyering.net>
59017
59018         * modules/openat (Depends-on): Really alphabetize.
59019
59020         * modules/acl (Depends-on): Add error and quote.
59021
59022         * check-module (find_included_lib_files): Add at-func.c to the
59023         ok-to-include-more-than-once white list.
59024
59025         * modules/openat (Depends-on): Add lstat.  Alphabetize.
59026
59027 2006-08-21  Bruno Haible  <bruno@clisp.org>
59028
59029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59030         Emit a pkgdata_DATA variable only if some snippets add contents to it.
59031         Reported by Martin Lambers <marlam@marlam.de>.
59032
59033 2006-08-21  Bruno Haible  <bruno@clisp.org>
59034
59035         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
59036         specify an installation location, don't emit a noinst_LIBRARIES or
59037         noinst_LTLIBRARIES assignment.
59038
59039 2006-08-21  Bruno Haible  <bruno@clisp.org>
59040
59041         BeOS portability.
59042         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
59043         BeOS has mbrtowc() but no <wctype.h>.
59044
59045 2006-08-21  Bruno Haible  <bruno@clisp.org>
59046
59047         BeOS portability.
59048         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
59049         exist.
59050
59051 2006-08-21  Bruno Haible  <bruno@clisp.org>
59052
59053         BeOS portability.
59054         * lib/mbchar.h: Include <wctype.h> only if it exists.
59055
59056 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59057
59058         Remove files that are no longer needed by their respective modules.
59059         * m4/obstack.m4: Remove.
59060         * m4/strerror_r.m4: Remove.
59061         * m4/uint32_t.m4: Remove.
59062         * m4/uintptr_t.m4: Remove.
59063         * m4/ullong_max.m4: Remove.
59064         * m4/xstrtoimax.m4: Remove.
59065         * m4/xstrtoumax.m4: Remove.
59066
59067         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
59068         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
59069         dependencies now capture this.
59070
59071         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
59072         Do not use AC_LIBSOURCES, since gnulib modules now do this.
59073         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
59074         * m4/human.m4 (gl_HUMAN): Likewise.
59075         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
59076         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
59077
59078         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
59079
59080         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
59081         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
59082         stdint.
59083         * m4/human.m4 (gl_HUMAN): Likewise.
59084         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
59085         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
59086         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59087         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59088         * m4/xstrtol (gl_XSTRTOL): Likewise.
59089
59090         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
59091         AC_TYPE_LONG_LONG_INT.
59092         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
59093         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
59094         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
59095         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
59096
59097         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
59098         on stdbool.
59099
59100         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
59101         (gl_PREREQ_XSTRTOUL): Remove.
59102
59103         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
59104
59105         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
59106         mode.
59107
59108 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59109
59110         Add and change modules to make it easier for coreutils to use
59111         gnulib-tool.
59112         * modules/backupfile (Files): Remove m4/d-ino.m4.
59113         (Depends-on): Add d-ino.
59114         * modules/cycle-check (Depends-on): Add stdint.
59115         (lib_SOURCES): Add cycle-check.h.
59116         * modules/d-ino: New module.
59117         * modules/d-type: New module.
59118         * modules/error (Files): Remove m4/strerror_r.m4.
59119         * modules/filemode (Files): Add m4/st_dm_mode.m4.
59120         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59121         m4/inttypes_h.m4, m4/uintmax_t.m4.
59122         (Depends-on): Add stdint.
59123         (lib_SOURCES): Add fsusage.h.
59124         * modules/getcwd (Files): Remove d-ino.m4.
59125         (Depends-on): Add d-ino.
59126         * modules/getndelim2 (Depends-on): Add stdint.
59127         * modules/glob (Files): Remove m4/d-type.m4.
59128         (Depends-on): Add d-type.
59129         * modules/host-os: New module.
59130         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
59131         m4/inttypes_h.m4, m4/uintmax_t.m4.
59132         * Depends-on: Add stdint.
59133         (lib_SOURCES): Add human.h.
59134         * modules/inttostr (Files): Remove m4/intmax_t.m4,
59135         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
59136         m4/uintmax_t.m4, m4/ulonglong.m4.
59137         (Depends-on): Add stdint.
59138         (EXTRA_DIST): Add inttostr.h.
59139         * modules/lchmod: New module.
59140         * modules/link-follow: New module.
59141         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
59142         (Depends-on): Add lchmod.
59143         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
59144         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
59145         (Depends-on): Add stdint.
59146         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
59147         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
59148         (Depends-on): Add stdint.
59149         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
59150         * modules/perl: New module.
59151         * modules/regex (Depends-on): Add stdint.
59152         * modules/rmdir-errno: New module.
59153         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59154         m4/intmax_t.m4.
59155         (Depends-on): Add stdint.
59156         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
59157         m4/uintmax_t.m4.
59158         (Depends-on): Add stdint.
59159         * modules/unlink-busy: New module.
59160         * modules/utimecmp (Depends-on): Add stdint.
59161         * modules/uptime: New module.
59162         * modules/winsz-ioctl: New module.
59163         * modules/winsz-termios: New module.
59164         * modules/xnanosleep (Depends-on): Add nanosleep.
59165         * modules/ullong_max: Remove.
59166         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
59167         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
59168         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
59169         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
59170         (Depends-on): Add inttypes.
59171         (lib_SOURCES): Add xstrtol.h.
59172         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
59173         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
59174         * MODULES.html.sh: Move 'assert' into the assert section.
59175         Move 'dummy' into the linking section.
59176         Remove ullong_max.
59177         Add section for compatibility checks for POSIX:2001 functions,
59178         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
59179         winsz-ioctl, and winsz-termios into it.
59180         Add lchmod.
59181         Add top-level Misc section and put host-os, perl, and uptime
59182         into it.
59183
59184 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
59185
59186         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
59187         now assume the stdint module.  Do not include inttypes.h.
59188         * lib/fsusage.h: Likewise.
59189         * lib/getndelim2.c: Likewise.
59190         * lib/human.h: Likewise.
59191         * lib/inttostr.h: Likewise.
59192         * lib/obstack.c: Likewise.
59193         * lib/regex_internal.h: Likewise.
59194         * lib/tempname.c: Likewise.
59195         * lib/utimecmp.c: Likewise.
59196         * lib/xstrtol.h: Likewise.
59197
59198         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
59199
59200         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
59201         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
59202         * lib/xtime.h: Likewise.
59203
59204 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59205
59206         * modules/openat (Files): Add lib/fchmodat.c.
59207         Fixes problem reported by Jay Youngman.
59208
59209 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
59210
59211         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
59212         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
59213
59214 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
59215             Bruno Haible  <bruno@clisp.org>
59216
59217         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
59218         and is a script that invokes bison. Tighten the code. Add comments.
59219
59220 2006-08-18  Jim Meyering  <jim@meyering.net>
59221
59222         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
59223         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
59224         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
59225         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
59226
59227 2006-08-18  Bruno Haible  <bruno@clisp.org>
59228
59229         * modules/bison-i18n: New file.
59230         * MODULES.html.sh (Internationalization functions): Add it.
59231
59232 2006-08-18  Bruno Haible  <bruno@clisp.org>
59233
59234         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
59235         sys/statvfs.h. When getmntinfo was found, check its declaration and
59236         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
59237
59238 2006-08-18  Bruno Haible  <bruno@clisp.org>
59239
59240         * m4/bison-i18n.m4: New file, from bison.
59241
59242 2006-08-18  Bruno Haible  <bruno@clisp.org>
59243
59244         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
59245         (ME_DUMMY): Treat "kernfs" as a dummy.
59246         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
59247
59248 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         Update from coreutils.
59251
59252         2006-08-15  Jim Meyering  <jim@meyering.net>
59253
59254         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
59255
59256         2006-01-17  Jim Meyering  <jim@meyering.net>
59257
59258         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
59259
59260         2006-01-11  Jim Meyering  <jim@meyering.net>
59261
59262         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
59263         Check for the lchmod function.
59264
59265 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
59266
59267         Update from coreutils.
59268
59269         * lib/__fpending.h: Add copyright notice.
59270         * lib/fprintftime.h: Likewise.
59271         * lib/savedir.c: Use (C) in copyright notice.
59272         * lib/savedir.h: Likewise.
59273
59274         2006-08-15  Jim Meyering  <jim@meyering.net>
59275
59276         * lib/at-func.c: New file, with the logic of all emulated at-functions.
59277         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
59278         in support of the EXPECTED_ERRNO macro.
59279         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
59280         definitions.  Instead, define the appropriate symbols and include
59281         "at-func.c".
59282         * lib/mkdirat.c (mkdirat): Likewise.
59283         * lib/fchmodat.c (fchmodat): Likewise.
59284         (ENOSYS): Remove definition.
59285         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
59286         it.  Don't include "unistd--.h" -- it wasn't ever used.
59287
59288         2006-01-17  Jim Meyering  <jim@meyering.net>
59289
59290         Rewrite fts.c not to change the current working directory,
59291         by using openat, fstatat, fdopendir, etc..
59292
59293         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
59294         (HAVE_OPENAT_SUPPORT): Define.
59295         [_LIBC] (fchdir): Don't undef or define; no longer used.
59296         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
59297         Now, this `function' always succeeds, and consumes its file descriptor
59298         parameter -- so callers must not close such FDs.  Update callers.
59299         (diropen_fd, opendirat, cwd_advance_fd): New functions.
59300         (diropen): Add parameter, SP.  Adjust all callers.
59301         Implement using diropen_fd, rather than open.
59302         (fts_open): Initialize new member, fts_cwd_fd.
59303         Remove fts_rft-setting code.
59304         (fts_close): Close fts_cwd_fd, if necessary.
59305         (__opendir2): Define in terms of opendir or opendirat,
59306         depending on whether the FST_NOCHDIR flag is set.
59307         (fts_build): Since fts_safe_changedir consumes its FD, and since
59308         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
59309         and close the dup'd file descriptor upon failure.
59310         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
59311         (fts_safe_changedir): Tweak semantics to reflect that this function
59312         now calls cwd_advance_fd and hence consumes its FD argument.
59313         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
59314         [struct FTS] (fts_rft): Remove now-unused member.
59315         [struct FTS] (fts_cycle.state): Improve comment.
59316
59317         * lib/openat.c (openat_needs_fchdir): New function.
59318         * lib/openat.h (openat_needs_fchdir): Declare it.
59319
59320 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59321
59322         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
59323         Problem and fix reported by Pádraig Brady in
59324         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
59325
59326 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59327
59328         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
59329
59330 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59331
59332         * lib/memcoll.c (memcoll): Optimize for the common case where the
59333         arguments are bytewise equal.
59334
59335 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59336
59337         * doc/regexprops-generic.texi: Add a copyright notice.
59338
59339 2006-08-15  Bruno Haible  <bruno@clisp.org>
59340
59341         * modules/tmpdir (License): Change to LGPL.
59342
59343 2006-08-15  Bruno Haible  <bruno@clisp.org>
59344
59345         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
59346         module.
59347
59348 2006-08-14  Simon Josefsson  <jas@extundo.com>
59349
59350         * config/srclist.txt: Add gnupload.
59351
59352 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59353
59354         Change copyright notice from LGPL 2 to GPL 2, since that's the
59355         standard form used in the gnulib repository.
59356         * tests/test-lock.c: Likewise.
59357         * tests/test-stdint.c: Likewise.
59358         * tests/test-tls.c: Likewise.
59359
59360         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
59361         prelude-manager.  User shorter URLs for GNU projects, without '?'.
59362         Add copyright notice.
59363
59364         * check-module: Add copyright notice.  Output a copyright
59365         notice if "--version" is specified.
59366         * modules/COPYING: New file.
59367         * tests/test-getaddrinfo.c: Add copyright notice.
59368         * tests/test-verify.c: Likewise.
59369
59370 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59371
59372         Change copyright notice from LGPL 2 to GPL 2, since that's the
59373         standard form used in the gnulib repository.
59374         * lib/lock.c: LGPL -> GPL.
59375         * lib/lock.h: Likewise.
59376         * lib/strnlen1.c: Likewise.
59377         * lib/strnlen1.h: Likewise.
59378         * lib/tls.c: Likewise.
59379         * lib/tls.h: Likewise.
59380         * lib/tmpdir.c: Likewise.
59381
59382         * lib/TODO: Remove; this belongs only in coreutils.
59383
59384 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59385
59386         Add copyright notices to long-enough files that lack them, since
59387         otherwise the files aren't clearly free.  Use the same notice that
59388         getdate.texi already uses.
59389         * doc/alloca-opt.texi: Add copyright notice.
59390         * doc/alloca.texi: Likewise.
59391         * doc/ctime.texi: Likewise.
59392         * doc/functions.texi: Likewise.
59393         * doc/gcd.texi: Likewise.
59394         * doc/gnulib-tool.texi: Likewise.
59395         * doc/inet_ntoa.texi: Likewise.
59396         * doc/visibility.texi: Likewise.
59397
59398         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
59399         * doc/quote.texi: Add copyright notice.
59400
59401         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
59402         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
59403         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
59404         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
59405         is now obsolete, and give a pointer to the Sun list.
59406         Add copyright notice.
59407
59408 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59409
59410         * config/srclistvars.sh: Add copyright notice.
59411
59412 2006-08-14  Eric Blake  <ebb9@byu.net>
59413
59414         Import the following change from libc:
59415
59416         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
59417
59418         Upstream bug 2997.
59419         * lib/misc/error.c: Add space between program name and message if file
59420         name is missing.
59421
59422 2006-08-12  Karl Berry  <karl@gnu.org>
59423
59424         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
59425         remove, these originate in gnulib now.
59426
59427 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59428
59429         * doc/Makefile (standards.info standards.html standards.dvi):
59430         Also depend on make-stds.texi.
59431
59432 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
59433
59434         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
59435         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
59436
59437         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
59438         in wchar_t.  Problem reported by Eric Blake.
59439
59440         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
59441         LEN is smaller than SIZE.  Suggested by Bruno Haible.
59442         Also, help the compiler to keep LEN in a register.
59443
59444 2006-08-11  Eric Blake  <ebb9@byu.net>
59445
59446         * users.txt: Sort.  Add tar.
59447
59448 2006-08-11  Bruno Haible  <bruno@clisp.org>
59449
59450         * users.txt: New file.
59451
59452 2006-08-11  Bruno Haible  <bruno@clisp.org>
59453
59454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
59455         before <wchar.h>. Needed for OSF/1 and BSD/OS.
59456
59457 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * modules/snprintf (Depends-on): Remove minmax.
59460         (Maintainer): Add self and Bruno.
59461
59462 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59463
59464         * lib/.cppi-disable: Add snprintf.h, socket_.h.
59465         * lib/snprintf.c: Include <errno.h> and <limits.h>.
59466         (EOVERFLOW): Define if the system does not.
59467         Do not include "minmax.h"; it wasn't used.
59468         (snprintf): Don't assume size_t promotes to an unsigned type.
59469         Fix bug when generated string was too long for the buffer: the
59470         buffer's contents are supposed to be the initial prefix of the
59471         output.  Don't assume vasnprintf returns EOVERFLOW if the size
59472         exceeds INT_MAX; do the check ourselves.
59473
59474         Import the following changes from libc:
59475
59476         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
59477
59478         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
59479         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
59480         set wc to the byte which couldn't be converted.
59481         (re_string_reconstruct): Don't clear valid_raw_len before calling
59482         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
59483         tip_context using re_string_context_at.
59484
59485         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
59486
59487         * lib/posix/regex.h: g++ still cannot handled [restrict].
59488
59489         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
59490
59491         * lib/posix/regex.h: Remove special handling for VMS.
59492
59493 2006-08-10  Jim Meyering  <jim@meyering.net>
59494
59495         * modules/same-inode: New module.
59496         * modules/dev-ino: New module.
59497         * modules/cycle-check: Depend on these modules, rather than simply
59498         including their .h files.
59499         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
59500         required via m4/cycle-check.m4.
59501         * modules/same: Depend on new same-inode module, rather than
59502         including same-inode.h.
59503         * modules/chdir-safer: New file.
59504
59505         * modules/chown (Depends-on): Add stat-macros.
59506
59507 2006-08-10  Jim Meyering  <jim@meyering.net>
59508
59509         * m4/cycle-check.m4: New file.
59510         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
59511         * m4/dev-ino.m4, m4/same-inode.m4: New files.
59512
59513 2006-08-10  Eric Blake  <ebb9@byu.net>
59514
59515         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
59516         in from original proposal.
59517
59518 2006-08-10  Eric Blake  <ebb9@byu.net>
59519         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59520
59521         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
59522         namespace.
59523
59524 2006-08-10  Bruno Haible  <bruno@clisp.org>
59525
59526         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
59527         as well.
59528
59529 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59530
59531         Sync from coreutils.
59532
59533         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
59534
59535         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
59536         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
59537
59538 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59539
59540         * modules/restrict: Remove; no longer needed now that we assume
59541         Autoconf 2.59 or later.
59542         * MODULES.html.sh: Remove 'restrict'.
59543         * modules/argp (Depends-on): Remove 'restrict'.
59544         * modules/base64 (Depends-on): Likewise.
59545         * modules/gc (Depends-on): Likewise.
59546         * modules/getaddrinfo (Depends-on): Likewise.
59547         * modules/glob (Depends-on): Likewise.
59548         * modules/inet_ntop (Depends-on): Likewise.
59549         * modules/inet_pton (Depends-on): Likewise.
59550         * modules/memxor (Depends-on): Likewise.
59551         * modules/regex (Depends-on): Likewise.
59552         * modules/strtok_r (Depends-on): Likewise.
59553         * modules/time_r (Depends-on): Likewise.
59554
59555 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
59556
59557         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
59558         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
59559         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59560         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
59561         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
59562         * m4/memxor.m4 (gl_MEMXOR): Likewise.
59563         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
59564         gl_C_RESTRICT replaced by AC_C_RESTRICT.
59565
59566         Merge from coreutils.
59567         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
59568         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
59569         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59570         * m4/time_r.m4 (gl_TIME_R): Likewise.
59571
59572 2006-08-09  Karl Berry  <karl@gnu.org>
59573
59574         * config/srclist.txt: no more gettext-tools, per Bruno.
59575
59576 2006-08-08  Eric Blake  <ebb9@byu.net>
59577
59578         * modules/verror: New module.
59579         * MODULES.html.sh: Document it.
59580
59581 2006-08-08  Eric Blake  <ebb9@byu.net>
59582
59583         * lib/verror.h, lib/verror.c: New files.
59584
59585 2006-08-08  Eric Blake  <ebb9@byu.net>
59586
59587         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
59588         verror_at_line output complies with GNU Coding Standards even when
59589         file is NULL.
59590
59591 2006-08-07  Bruno Haible  <bruno@clisp.org>
59592
59593         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
59594         versions of AIX.
59595         Reported by Ralf Wildenhues.
59596
59597 2006-08-07  Bruno Haible  <bruno@clisp.org>
59598
59599         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
59600         in an AC_DEFUN. Needed so that the autoconf snippets can use
59601         AC_REQUIRE.
59602
59603 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59604
59605         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59606         Initialize pkgdata_DATA.
59607         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
59608         overriding it.
59609
59610 2006-08-06  Eric Blake  <ebb9@byu.net>
59611
59612         * lib/error.h: Fold in some upstream changes from glibc.
59613         * lib/error.c: Likewise.
59614
59615 2006-08-04  Bruno Haible  <bruno@clisp.org>
59616
59617         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59618         Make the mostlyclean-local rule depend on mostlyclean-generic.
59619         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
59620
59621 2006-07-31  Bruno Haible  <bruno@clisp.org>
59622
59623         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
59624         <stdlib.h>, <string.h>.
59625
59626 2006-07-30  Bruno Haible  <bruno@clisp.org>
59627
59628         * modules/readlink (License): Change to LGPL.
59629
59630 2006-07-30  Bruno Haible  <bruno@clisp.org>
59631
59632         * modules/javaversion (Makefile.am): Distribute javaversion.java and
59633         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
59634         set PKGDATADIR to point to it.
59635
59636 2006-07-30  Bruno Haible  <bruno@clisp.org>
59637
59638         * modules/csharpexec (configure.ac): Comment out macro invocation.
59639         * modules/javaexec (configure.ac): Likewise.
59640         * modules/javacomp-script (configure.ac): Likewise.
59641
59642         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
59643
59644 2006-07-30  Bruno Haible  <bruno@clisp.org>
59645
59646         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
59647         linked-list.
59648
59649 2006-07-30  Bruno Haible  <bruno@clisp.org>
59650
59651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
59652
59653 2006-07-30  Bruno Haible  <bruno@clisp.org>
59654
59655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59656         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
59657         get removed.
59658
59659 2006-07-29  Bruno Haible  <bruno@clisp.org>
59660
59661         Make it possible for gnulib-tool to work with locally modified or
59662         augmented gnulib repositories.
59663         * gnulib-tool (func_usage): Document --local-dir option.
59664         (local_gnulib_dir): New variable.
59665         Handle --local-dir option.
59666         (func_lookup_file): New function.
59667         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
59668         (func_get_description, func_get_filelist, func_get_description,
59669         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
59670         func_get_automake_snippet, func_get_include_directive,
59671         func_get_license, func_get_maintainer): Use func_lookup_file.
59672         (func_import, func_create_testdir): Use func_lookup_file.
59673
59674 2006-07-29  Bruno Haible  <bruno@clisp.org>
59675
59676         * modules/setenv (Depends-on): Add unistd.
59677
59678 2006-07-29  Bruno Haible  <bruno@clisp.org>
59679
59680         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
59681
59682 2006-07-29  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
59685
59686 2006-07-29  Bruno Haible  <bruno@clisp.org>
59687
59688         * gnulib-tool (import, update): If there is no Makefile.am, look at
59689         aclocal.m4, instead of bailing out.
59690
59691 2006-07-29  Bruno Haible  <bruno@clisp.org>
59692
59693         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
59694         Categorize the options by when they are useful.
59695
59696 2006-07-29  Bruno Haible  <bruno@clisp.org>
59697
59698         * gnulib-tool (func_usage): Document option --no-libtool.
59699         Handle option --no-libtool.
59700         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
59701         for changed semantics of $libtool variable.
59702         (func_import): Likewise. If libtool is not used, show this through
59703         an option --no-libtool.
59704         (func_create_testdir): Update.
59705
59706 2006-07-29  Bruno Haible  <bruno@clisp.org>
59707
59708         * gnulib-tool (func_import): Extend error message about missing
59709         --doc-base.
59710
59711 2006-07-29  Bruno Haible  <bruno@clisp.org>
59712
59713         * gnulib-tool (func_import): Don't create the $docbase directory if
59714         there is no file to store there.
59715
59716 2006-07-29  Bruno Haible  <bruno@clisp.org>
59717
59718         * gnulib-tool (autoconf_minversion): If a --dir option is given and
59719         relevant, look for configure.ac there, not in the current directory.
59720         Also use a simple search for AC_PREREQ, not "autoconf --trace".
59721
59722 2006-07-29  Bruno Haible  <bruno@clisp.org>
59723
59724         * gnulib-tool (SORT): New variable.
59725         (func_usage): Undocument --assume-autoconf option.
59726         Remove --assume-autoconf option handling.
59727         (autoconf_minversion): Determine from the contents of configure.ac.
59728         (func_import): Remove autoconf_minversion handling.
59729         Suggested by Eric Blake.
59730
59731 2006-07-29  Bruno Haible  <bruno@clisp.org>
59732
59733         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
59734
59735 2006-07-29  Bruno Haible  <bruno@clisp.org>
59736
59737         * config/srclist.txt (*setenv.[ch]): Remove rules.
59738
59739 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59740
59741         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
59742
59743 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59744
59745         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
59746         arpa/inet.h.
59747
59748 2006-07-28  Simon Josefsson  <jas@extundo.com>
59749
59750         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
59751         * modules/inet_pton (Depends-on): Likewise.
59752
59753 2006-07-28  Simon Josefsson  <jas@extundo.com>
59754
59755         * m4/netinet_in_h.m4: New file.
59756
59757 2006-07-28  Simon Josefsson  <jas@extundo.com>
59758
59759         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
59760         #include's.
59761
59762 2006-07-28  Simon Josefsson  <jas@extundo.com>
59763
59764         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
59765         #include's.
59766
59767 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
59768
59769         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
59770         setgid on directories only if they set these bits.
59771         * lib/modechange.h: Remove obsolete comment about masks.
59772
59773 2006-07-28  Eric Blake  <ebb9@byu.net>
59774
59775         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
59776         macro expansion.
59777
59778 2006-07-28  Bruno Haible  <bruno@clisp.org>
59779
59780         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
59781
59782 2006-07-28  Bruno Haible  <bruno@clisp.org>
59783
59784         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
59785
59786 2006-07-28  Bruno Haible  <bruno@clisp.org>
59787
59788         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59789         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59790         Define fallbacks.
59791         Avoids link error on FreeBSD 4.x.
59792         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59793
59794         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
59795         encoding.
59796         * lib/mbswidth.c (iswcntrl): Likewise.
59797
59798 2006-07-27  Bruno Haible  <bruno@clisp.org>
59799
59800         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
59801         test.
59802
59803 2006-07-27  Bruno Haible  <bruno@clisp.org>
59804
59805         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
59806         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
59807         defined.
59808
59809 2006-07-26  Eric Blake  <ebb9@byu.net>
59810
59811         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
59812
59813 2006-07-26  Eric Blake  <ebb9@byu.net>
59814
59815         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
59816         like mingw that lack mkstemp.
59817         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
59818         avoid compilation warning on mingw.
59819
59820 2006-07-26  Bruno Haible  <bruno@clisp.org>
59821
59822         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
59823         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
59824         INT_FAST*_MIN, INTPTR_MIN.
59825
59826 2006-07-25  Bruno Haible  <bruno@clisp.org>
59827
59828         * modules/version-etc (Depends-on): Add stdarg.
59829
59830 2006-07-25  Bruno Haible  <bruno@clisp.org>
59831
59832         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
59833         complex commands.
59834
59835 2006-07-25  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
59838         defined in <stdarg.h> or config.h.
59839
59840 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
59843         (gl_STDIO_SAFER): Remove.
59844
59845 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
59846
59847         * MODULES.html.sh (File stream based Input/Output):
59848         Add fopen-safer, tmpfile-safer; remove stdio-safer.
59849         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
59850         * modules/fopen-safer, modules/tmpfile-safer: New files.
59851         * modules/stdio-safer: Remove.
59852
59853 2006-07-24  Bruno Haible  <bruno@clisp.org>
59854
59855         * modules/tmpdir: New file.
59856         * MODULES.html.sh (File system functions): Add it.
59857
59858 2006-07-24  Bruno Haible  <bruno@clisp.org>
59859
59860         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
59861         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
59862
59863 2006-07-24  Bruno Haible  <bruno@clisp.org>
59864
59865         * modules/clean-temp: New file.
59866
59867 2006-07-24  Bruno Haible  <bruno@clisp.org>
59868
59869         * m4/tmpdir.m4: New file, from GNU gettext.
59870
59871 2006-07-24  Bruno Haible  <bruno@clisp.org>
59872
59873         * lib/tmpdir.h: New file, from GNU gettext.
59874         * lib/tmpdir.c: New file, from GNU gettext.
59875
59876 2006-07-24  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/clean-temp.h: New file, from GNU gettext.
59879         * lib/clean-temp.c: New file, from GNU gettext.
59880
59881 2006-07-23  Eric Blake  <ebb9@byu.net>
59882
59883         * modules/stdio-safer (Files): Add tmpfile-safer.c.
59884         (Depends-on): Add binary-io.
59885
59886 2006-07-23  Eric Blake  <ebb9@byu.net>
59887
59888         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
59889
59890 2006-07-23  Eric Blake  <ebb9@byu.net>
59891
59892         * lib/tmpfile-safer.c: New file.
59893         * lib/stdio-safer.h (fopen_safer): Add prototype.
59894         * lib/stdio--.h (tmpfile): Make safer.
59895
59896 2006-07-23  Bruno Haible  <bruno@clisp.org>
59897
59898         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
59899         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
59900         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
59901         gl_linked_remove_at): Use it.
59902
59903 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59904         and Simon Josefsson <jas@extundo.com>
59905
59906         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
59907
59908         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
59909
59910 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59911
59912         * modules/close-stream: New file.
59913         * modules/closeout (Description): Make it clear that it exits
59914         with a diagnostic on error.
59915         (Depends-on): Add close-stream.  Remove fpending, stdbool.
59916         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
59917
59918 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         * m4/close-stream.m4: New file.
59921
59922 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59923
59924         * lib/close-stream.c, lib/close-stream.h: New files.
59925
59926 2006-07-22  Bruno Haible  <bruno@clisp.org>
59927
59928         Merge from GNU gettext 0.15.
59929
59930         2006-05-01  Bruno Haible  <bruno@clisp.org>
59931
59932                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
59933
59934         2006-07-22  Bruno Haible  <bruno@clisp.org>
59935
59936                 * modules/javaversion: New file.
59937                 * MODULES.html.sh (Java): Add javaversion.
59938
59939         2006-03-12  Bruno Haible  <bruno@clisp.org>
59940
59941                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
59942
59943         2005-12-04  Bruno Haible  <bruno@clisp.org>
59944
59945                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
59946                 (untested).
59947
59948         2006-06-21  Bruno Haible  <bruno@clisp.org>
59949
59950                 Avoid warnings from recent versions of mcs.
59951                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
59952                 -o, -L, -r any more. Use options documented since mcs-1.0
59953                 instead. Similarly for -g.
59954
59955         2005-12-04  Bruno Haible  <bruno@clisp.org>
59956
59957                 * build-aux/csharpcomp.sh.in: Suffix for resources is
59958                 .resources, not .resource.
59959
59960         2005-07-09  Bruno Haible  <bruno@clisp.org>
59961
59962                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
59963                 add a .dll suffix.
59964                 Reported by Mark Junker <mjscod@gmx.de>.
59965
59966         2006-07-22  Bruno Haible  <bruno@clisp.org>
59967
59968                 * modules/gettext: Upgrade to gettext-0.15.
59969                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
59970                 m4/visibility.m4.
59971                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
59972
59973 2006-07-22  Bruno Haible  <bruno@clisp.org>
59974
59975         Merge from GNU gettext 0.15.
59976
59977         2006-03-25  Bruno Haible  <bruno@clisp.org>
59978
59979                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
59980
59981         2006-07-21  Bruno Haible  <bruno@clisp.org>
59982
59983                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
59984                 "1.1".
59985
59986         2006-05-09  Bruno Haible  <bruno@clisp.org>
59987
59988                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
59989                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
59990                 for the conftestver execution.
59991
59992         2006-05-01  Bruno Haible  <bruno@clisp.org>
59993
59994                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
59995                 optional target-version argument. Verify that the compiler
59996                 groks source of the specified source-version, or add -source
59997                 option as necessary. Verify that the compiler produces
59998                 bytecode in the specified target-version, or add -target and
59999                 -source options as necessary. Make the result of the test
60000                 available as variable CONF_JAVAC. Also log error output in
60001                 config.log.
60002
60003         2006-03-11  Bruno Haible  <bruno@clisp.org>
60004
60005                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
60006
60007         2006-05-09  Bruno Haible  <bruno@clisp.org>
60008
60009                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
60010                 CLASSPATH_SEPARATOR to a semicolon.
60011
60012         2006-03-12  Bruno Haible  <bruno@clisp.org>
60013
60014                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
60015                 available as variable CONF_JAVA, for subsequent autoconf
60016                 tests. Also log error output in config.log.
60017
60018         2006-07-19  Bruno Haible  <bruno@clisp.org>
60019
60020                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
60021                 that getline works on glibc2 systems. Needed to avoid trouble
60022                 in relocatable.c.
60023                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
60024
60025         2005-12-04  Bruno Haible  <bruno@clisp.org>
60026
60027                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
60028                 launcher (untested).
60029
60030         2005-12-04  Bruno Haible  <bruno@clisp.org>
60031
60032                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
60033
60034         2006-07-22  Bruno Haible  <bruno@clisp.org>
60035
60036                 * gettext.m4: Update from GNU gettext-0.15.
60037                 * nls.m4: Likewise.
60038                 * po.m4: Likewise.
60039                 * inttypes-pri.m4: Likewise.
60040                 * inttypes-h.m4: Renamed from inttypes.m4.
60041                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
60042
60043 2006-07-22  Bruno Haible  <bruno@clisp.org>
60044
60045         Merge from GNU gettext 0.15.
60046
60047         2005-07-05  Bruno Haible  <bruno@clisp.org>
60048
60049                 * printf-args.c (printf_fetchargs): Work around broken
60050                 definition of wint_t on mingw.
60051
60052         2005-02-12  Bruno Haible  <bruno@clisp.org>
60053
60054                 * xallocsa.h: Add extern "C" for C++.
60055
60056         2006-05-17  Bruno Haible  <bruno@clisp.org>
60057
60058                 Cygwin portability.
60059                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
60060
60061         2006-04-30  Bruno Haible  <bruno@clisp.org>
60062
60063                 * progreloc.c: Include <mach-o/dyld.h> if available.
60064                 (find_executable): Use _NSGetExecutablePath when possible.
60065
60066         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
60067
60068                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
60069                 function.
60070
60071         2005-12-29  Bruno Haible  <bruno@clisp.org>
60072
60073                 * progreloc.c (set_program_name_and_installdir): Fix
60074                 compilation error.
60075
60076         2005-12-04  Bruno Haible  <bruno@clisp.org>
60077
60078                 Cygwin portability.
60079                 * progreloc.c: Include <windows.h> also on Cygwin.
60080                 (find_executable): Add support for Cygwin.
60081                 (set_program_name_and_installdir): Handle also platforms with
60082                 nonempty EXEEXT.
60083
60084         2006-07-11  Bruno Haible  <bruno@clisp.org>
60085
60086                 * javacomp.c: Fix a comment.
60087                 Reported by Jim Meyering.
60088
60089         2006-04-30  Bruno Haible  <bruno@clisp.org>
60090
60091                 * javacomp.h (compile_java_class): Add source_version,
60092                 target_version arguments.
60093                 * javacomp.c: Rewritten to choose only a compiler that
60094                 respects the specified source_version and target_version.
60095
60096         2006-06-27  Bruno Haible  <bruno@clisp.org>
60097
60098                 Assume correct S_ISDIR macro.
60099                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
60100
60101         2006-07-22  Bruno Haible  <bruno@clisp.org>
60102
60103                 * javaversion.h: New file, from GNU gettext.
60104                 * javaversion.c: New file, from GNU gettext.
60105                 * javaversion.java: New file, from GNU gettext.
60106                 * javaversion.class: New file, from GNU gettext.
60107
60108         2006-05-17  Bruno Haible  <bruno@clisp.org>
60109
60110                 Cygwin portability.
60111                 * javaexec.c (execute_java_class): Test for jview program
60112                 also on Cygwin.
60113
60114         2006-04-09  Bruno Haible  <bruno@clisp.org>
60115
60116                 * fatal-signal.c: Don't include string.h.
60117                 (at_fatal_signal): Use a copying loop instead of memcpy.
60118
60119         2005-12-04  Bruno Haible  <bruno@clisp.org>
60120
60121                 * csharpexec.c: Add support for 'clix' launcher (untested).
60122                 (execute_csharp_using_sscli): New function.
60123                 (execute_csharp_program): Call it.
60124
60125         2006-06-21  Bruno Haible  <bruno@clisp.org>
60126
60127                 Avoid warnings from recent versions of mcs.
60128                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
60129                 -o, -L, -r any more. Use options documented since mcs-1.0
60130                 instead. Similarly for -g.
60131
60132         2005-07-09  Bruno Haible  <bruno@clisp.org>
60133
60134                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
60135                 add a .dll suffix.
60136                 Reported by Mark Junker <mjscod@gmx.de>.
60137
60138         2006-06-17  Bruno Haible  <bruno@clisp.org>
60139
60140                 * config.charset: Update for NetBSD 3.0.
60141
60142         2006-05-17  Bruno Haible  <bruno@clisp.org>
60143
60144                 Cygwin portability.
60145                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
60146
60147         2006-05-16  Bruno Haible  <bruno@clisp.org>
60148
60149                 * localcharset.c [CYGWIN]: Include <windows.h>.
60150                 (get_charset_aliases): For Cygwin, return the same CPxxx
60151                 aliases list as under WIN32.
60152                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
60153                 the environment variables. Fall back to GetACP().
60154
60155         2006-04-05  Bruno Haible  <bruno@clisp.org>
60156
60157                 * config.charset: Update Juan Manuel Guerrero's address.
60158
60159         2005-02-12  Bruno Haible  <bruno@clisp.org>
60160
60161                 * allocsa.h: Add extern "C" for C++.
60162
60163         2005-02-10  Bruno Haible  <bruno@clisp.org>
60164
60165                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
60166                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
60167
60168         2006-07-22  Bruno Haible  <bruno@clisp.org>
60169
60170                 * gettext.h: Update to GNU gettext-0.15.
60171
60172 2006-07-22  Bruno Haible  <bruno@clisp.org>
60173
60174         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
60175         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
60176         lib-prefix.m4, longdouble.m4, ssize_t.m4.
60177
60178 2006-07-21  Eric Blake  <ebb9@byu.net>
60179
60180         * modules/stdlib-safer: New file.
60181         * MODULES.html.sh (File stream based Input/Output): Add
60182         stdlib-safer.
60183
60184 2006-07-21  Eric Blake  <ebb9@byu.net>
60185
60186         * lib/stdlib-safer.h: New file from coreutils, required by
60187         stdlib--.h.
60188
60189 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
60192
60193 2006-07-20  Bruno Haible  <bruno@clisp.org>
60194
60195         * gnulib-tool: Recognize new option --assume-autoconf.
60196         (autoconf_minversion): New variable.
60197         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
60198
60199 2006-07-20  Bruno Haible  <bruno@clisp.org>
60200
60201         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
60202
60203 2006-07-19  Derek R. Price  <derek@ximbiot.com>
60204
60205         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
60206         Reindent and repaginate.
60207
60208 2006-07-19  Derek Price  <derek@ximbiot.com>
60209
60210         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
60211         Correct grammar.
60212
60213 2006-07-17  Bruno Haible  <bruno@clisp.org>
60214
60215         * modules/list: New file.
60216         * modules/array-list: New file.
60217         * modules/carray-list, modules/carray-list-tests: New files.
60218         * modules/linked-list, modules/linked-list-tests: New files.
60219         * modules/avltree-list, modules/avltree-list-tests: New files.
60220         * modules/rbtree-list, modules/rbtree-list-tests: New files.
60221         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
60222         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
60223         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
60224         * modules/oset: New file.
60225         * modules/array-oset: New file.
60226         * modules/avltree-oset, modules/avltree-oset-tests: New files.
60227         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
60228         * tests/test-carray_list.c: New file.
60229         * tests/test-linked_list.c: New file.
60230         * tests/test-avltree_list.c: New file.
60231         * tests/test-rbtree_list.c: New file.
60232         * tests/test-linkedhash_list.c: New file.
60233         * tests/test-avltreehash_list.c: New file.
60234         * tests/test-rbtreehash_list.c: New file.
60235         * tests/test-avltree_oset.c: New file.
60236         * tests/test-rbtree_oset.c: New file.
60237         * MODULES.html.sh (Container data structures): New section.
60238
60239 2006-07-17  Bruno Haible  <bruno@clisp.org>
60240
60241         * m4/gl_list.m4: New file.
60242
60243 2006-07-17  Bruno Haible  <bruno@clisp.org>
60244
60245         * lib/gl_list.h: New file.
60246         * lib/gl_list.c: New file.
60247         * lib/gl_array_list.h: New file.
60248         * lib/gl_array_list.c: New file.
60249         * lib/gl_carray_list.h: New file.
60250         * lib/gl_carray_list.c: New file.
60251         * lib/gl_linked_list.h: New file.
60252         * lib/gl_linked_list.c: New file.
60253         * lib/gl_anylinked_list1.h: New file.
60254         * lib/gl_anylinked_list2.h: New file.
60255         * lib/gl_avltree_list.h: New file.
60256         * lib/gl_avltree_list.c: New file.
60257         * lib/gl_anyavltree_list1.h: New file.
60258         * lib/gl_anyavltree_list2.h: New file.
60259         * lib/gl_rbtree_list.h: New file.
60260         * lib/gl_rbtree_list.c: New file.
60261         * lib/gl_anyrbtree_list1.h: New file.
60262         * lib/gl_anyrbtree_list2.h: New file.
60263         * lib/gl_anytree_list1.h: New file.
60264         * lib/gl_anytree_list2.h: New file.
60265         * lib/gl_linkedhash_list.h: New file.
60266         * lib/gl_linkedhash_list.c: New file.
60267         * lib/gl_anyhash_list1.h: New file.
60268         * lib/gl_anyhash_list2.h: New file.
60269         * lib/gl_avltreehash_list.h: New file.
60270         * lib/gl_avltreehash_list.c: New file.
60271         * lib/gl_rbtreehash_list.h: New file.
60272         * lib/gl_rbtreehash_list.c: New file.
60273         * lib/gl_anytreehash_list1.h: New file.
60274         * lib/gl_anytreehash_list2.h: New file.
60275
60276         * lib/gl_oset.h: New file.
60277         * lib/gl_oset.c: New file.
60278         * lib/gl_array_oset.h: New file.
60279         * lib/gl_array_oset.c: New file.
60280         * lib/gl_avltree_oset.h: New file.
60281         * lib/gl_avltree_oset.c: New file.
60282         * lib/gl_rbtree_oset.h: New file.
60283         * lib/gl_rbtree_oset.c: New file.
60284         * lib/gl_anytree_oset.h: New file.
60285
60286 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60287
60288         * m4/mkancesdirs.m4: New file.
60289         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
60290         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
60291         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
60292         it.
60293
60294 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60295
60296         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
60297         * lib/mkancesdirs.h: New files.
60298         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
60299         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
60300         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
60301         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
60302         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
60303         callers changed.  Revamp internals significantly, by not
60304         attempting to create directories that are temporarily more
60305         permissive than the final results.  Do not attempt to use
60306         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
60307         This removes some race conditions, fixes some bugs, and simplifies
60308         things.  Use new dirchownmod function to do owner and mode changes.
60309         * lib/mkdir-p.h: Likewise.
60310         * lib/modechange.c (octal_to_mode): New function.
60311         (struct mode_change): New member mentioned.
60312         (make_node_op_equals): New arg mentioned.  All callers changed.
60313         (mode_compile): Keep track of which mode bits the user has explicitly
60314         mentioned.
60315         (mode_adjust): New arg DIR, so that we implement the X op correctly.
60316         New arg PMODE_BITS, to keep track of which mode bits the user
60317         mentioned; it treats S_ISUID and S_ISGID speciall.
60318         All callers changed.
60319         * lib/modechange.h: Likewise.
60320
60321 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * MODULES.html.sh: Add mkancestors.
60324         * modules/mkancesdirs: New module.
60325         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
60326         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
60327         The chdir-safer and afs files are now orphans; I'll remove them
60328         unless someone speaks up.
60329         Add lib/dirchownmod.c, lib/dirchownmod.h.
60330         (Depends-on): Remove alloca, chown, save-cwd, dirname.
60331         Add lchown, mkancesdirs.
60332         (Maintainer): Add self.
60333
60334 2006-07-15  Karl Berry  <karl@gnu.org>
60335
60336         * gnulib-tool: help message wording/arrangement.
60337
60338 2006-07-14  Simon Josefsson  <jas@extundo.com>
60339
60340         * doc/gnulib.texi (Libtool and Windows): New section.
60341
60342 2006-07-12  Simon Josefsson  <jas@extundo.com>
60343
60344         * modules/gendocs (License): Fix license, approved by Karl.
60345
60346 2006-07-12  Eric Blake  <ebb9@byu.net>
60347
60348         * MODULES.html.sh: Add gendocs.
60349
60350 2006-07-11  Eric Blake  <ebb9@byu.net>
60351
60352         * modules/fdl: New module, to install doc/fdl.texi.
60353         * MODULES.html.sh: Add new section for documentation modules.
60354         * gnulib-tool: Avoid space-tab.
60355         (--doc-base): New option, to manage files from doc.
60356
60357 2006-07-11  Eric Blake  <ebb9@byu.net>
60358
60359         * m4/absolute-header.m4: Fix comments to match recent change.
60360
60361 2006-07-11  Eric Blake  <ebb9@byu.net>
60362
60363         * gnulib-tool: List --doc-base before --tests-base.
60364
60365 2006-07-11  Derek R. Price  <derek@ximbiot.com>
60366
60367         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
60368
60369 2006-07-11  Bruno Haible  <bruno@clisp.org>
60370
60371         * README: Mention where to put documentation.
60372
60373 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60374
60375         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
60376
60377 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60378
60379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
60380         to stdint.m4.
60381
60382 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
60383
60384         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
60385         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
60386         "no/such/file/stdint.h" when there is no such file, so that
60387         the resulting C code can be parsed by dodgy compilers.
60388         Problems reported by Bob Proulx.
60389
60390 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60391
60392         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
60393         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60394         macros into the GNU _D_EXACT_NAMLEN.
60395         * lib/savedir.c:  Likewise.
60396         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
60397
60398 2006-07-10  Derek R. Price  <derek@ximbiot.com>
60399         and Paul Eggert  <eggert@cs.ucla.edu>
60400
60401         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
60402         * m4/savedir.m4:
60403         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
60404         macros into the GNU _D_EXACT_NAMLEN.
60405
60406 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60407
60408         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
60409         around the absolute name, to work around a problem with the HP-UX
60410         11.23 native C compiler, reported by Bob Proulx.
60411
60412 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60413
60414         * doc/maintain.texi, make-stds.texi: Sync from
60415         <http://savannah.gnu.org/projects/gnustandards>.
60416
60417 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60418
60419         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
60420
60421 2006-07-09  Jim Meyering  <jim@meyering.net>
60422
60423         * m4/glob.m4: Remove a doubled word in a comment.
60424
60425 2006-07-09  Jim Meyering  <jim@meyering.net>
60426
60427         * lib/argp-pv.c: Remove a doubled word in a comment.
60428         * lib/check-version.c (check_version): Likewise.
60429         * lib/javacomp.c (compile_java_class): Likewise.
60430
60431 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
60434         for the benefit of people using Autoconf 2.60.  If you want to
60435         support older Autoconf versions you can copy m4/onceonly_2_57.m4
60436         (or m4/onceonly.m4, if pre-2.57) manually.
60437
60438 2006-07-08  Jim Meyering  <jim@meyering.net>
60439
60440         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
60441         comment.
60442         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
60443         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
60444         comment.
60445
60446 2006-07-08  Jim Meyering  <jim@meyering.net>
60447
60448         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
60449
60450 2006-07-07  Simon Josefsson  <jas@extundo.com>
60451
60452         * tests/test-crc.c: Change expected crc value, the test vector
60453         were probably computed using the old broken crc.c?
60454
60455 2006-07-06  Simon Josefsson  <jas@extundo.com>
60456
60457         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
60458         now the canonical place for the M4 file).
60459
60460         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
60461         from the sys_socket dependency now.
60462
60463         * modules/inet_pton (Files): Ditto.
60464
60465         * modules/inet_ntop (Files): Ditto.
60466
60467 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
60468
60469         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
60470         not gl_PREREQ_GETUSERSHELL.
60471
60472 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60473
60474         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
60475         with only one argument, for Autoconf 2.60.
60476         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
60477         expand to nothing, so add a shell command to avoid syntax error.
60478         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
60479
60480 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60481
60482         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
60483
60484 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60485
60486         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
60487         no longer needed.  Check for isblank decl.
60488         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
60489         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
60490         of existence.
60491
60492 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60493
60494         * lib/getloadavg.c: Use __VMS, not VMS.
60495         * lib/getopt.c: Likewise.
60496         * lib/getpagesize.h: Likewise.
60497         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
60498         and probably does not work.
60499
60500 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * lib/.cppi-disable: Add wcwidth.
60503         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
60504         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
60505         (ISGRAPH): Remove.  All uses changed to isgraph.
60506         (FOLD) [!defined _LIBC]: Remove special case.
60507         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
60508         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
60509         HAVE_ISBLANK.
60510         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
60511         case.
60512
60513 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
60514
60515         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
60516         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
60517         brackets.  Other minor changes to suppress some compiler
60518         warnings.
60519
60520 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60521         and Paul Eggert  <eggert@cs.ucla.edu>
60522
60523         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
60524         of invoking obsolescent AC_HEADER_DIRENT macro.
60525         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
60526         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
60527         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60528         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
60529         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
60530         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60531         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
60532         * m4/readdir.m4: Remove; no longer needed.
60533
60534 2006-07-06  Derek R. Price  <derek@ximbiot.com>
60535         and Paul Eggert  <eggert@cs.ucla.edu>
60536
60537         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
60538         Don't worry about this obsolete case any more.
60539         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
60540         directories.
60541         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
60542         worry about this obsolete case any more.
60543         * lib/fts.c: Likewise.
60544         * lib/getcwd.c: Likewise.
60545         * lib/glob.h: Likewise.
60546         * lib/savedir.c: Likewise.
60547
60548 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60549
60550         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
60551         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
60552         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
60553         needed.
60554         All uses removed.
60555         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60556         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60557         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
60558         needed.
60559         * m4/getdate.m4 (gl_GETDATE): Likewise.
60560         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60561         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60562         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60563         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60564         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
60565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60566         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
60567         needed.
60568
60569 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
60570
60571         * lib/memcasecmp.c: Include <limits.h>.
60572         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
60573         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
60574         Don't assume isdigit succeeds only on '0' through '9'.
60575
60576 2006-07-05  Eric Blake  <ebb9@byu.net>
60577
60578         * modules/getaddrinfo (Depends-on): Add snprintf.
60579
60580 2006-07-05  Eric Blake  <ebb9@byu.net>
60581
60582         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
60583         to avoid 'header present but could not be compiled' on cygwin.
60584
60585 2006-07-05  Eric Blake  <ebb9@byu.net>
60586
60587         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
60588         missing from netdb.h.
60589         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
60590
60591 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60592
60593         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
60594         no longer needed.
60595         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
60596         * m4/getdate.m4 (gl_GETDATE): Likewise.
60597         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
60598         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
60599         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
60600         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
60601         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
60602
60603 2006-07-05  Derek R. Price  <derek@ximbiot.com>
60604
60605         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
60606         All uses of is_space replaced by isspace.
60607         * lib/exit.h: Don't talk about STDC_HEADERS.
60608         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
60609         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
60610         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
60611         replaced by isprint etc.
60612         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
60613         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60614         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
60615         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
60616         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
60617         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
60618
60619 2006-07-05  Bruno Haible  <bruno@clisp.org>
60620
60621         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
60622         the function exists, before testing against AIX.
60623         Reported by Martin Lambers <marlam@marlam.de>.
60624
60625 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60626
60627         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
60628         From Mark D. Baushke.
60629
60630 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
60631
60632         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
60633         to the absolute name, not just one, to bypass Sun C 5.8's
60634         "warning: #include of /usr/include/... may be non-portable".
60635
60636 2006-07-04  Eric Blake  <ebb9@byu.net>
60637
60638         * modules/dirname-tests: New test module.
60639         * tests/test-dirname.c: New file, replacing dirname.c
60640         TEST_DIRNAME section that was recently deleted.
60641
60642 2006-07-04  Bruno Haible  <bruno@clisp.org>
60643
60644         Assume ANSI C header files and <ctype.h> functions.
60645         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
60646         (mbsnwidth): Use isprint, iscntrl instead.
60647
60648 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60649
60650         Merge from coreutils.
60651         * MODULES.html.sh: Add xstrtold.
60652         * modules/xstrtold: New file.
60653         * modules/cycle-check (Files): Add lib/same-inode.h.
60654         * modules/dirname (Files): Add m4/double-slash-root.m4.
60655         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
60656         * modules/mkdir-p (Files): Add lib/same-inode.h.
60657         * modules/same (Files): Add lib/same-inode.h.
60658
60659 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60660
60661         * m4/absolute-header.m4: Renamed from full-header-path.m4.
60662         This is to keep the terminology clean; POSIX talks about
60663         "absolute pathnames", not "full pathnames", but the GNU
60664         Coding Standards say to use "path" for something else;
60665         so use "absolute" to keep both sides happy.
60666         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
60667         Set gl_absolute_header, not gl_full_header_path.
60668         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
60669         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
60670         All uses changed.
60671
60672         Merge from coreutils.
60673
60674         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60675
60676         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
60677         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
60678         want to require the building of c-strtod.o.
60679         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
60680         needs -lm directly.
60681         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
60682
60683         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
60684
60685         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
60686         --as-needed option if available.  Problem reported by Albert Chin in
60687         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
60688         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
60689         cc merely issues a bunch of annoying warnings for --as-needed
60690         (this problem was reported by Bob Proulx).  Also, try linking with
60691         -lm to detect a bug in binutils 2.16 (this problem was reported
60692         by Ralf Wildenhues).
60693
60694         2006-06-18  Jim Meyering  <jim@meyering.net>
60695
60696         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
60697         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
60698         macro.
60699         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
60700         also check for glibc-2.4's abort-inducing bug.
60701
60702         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
60703         Low-probability clean-up should be to use rmdir to get rid of
60704         the just-created directory, not unlink.
60705
60706         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
60707         configure fail, and request a bug report to inform us about it.
60708         Add a comment that, barring reports to the contrary, in 2007 we'll
60709         assume ftruncate is universally available.
60710
60711         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60712
60713         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
60714
60715         2006-03-12  Jim Meyering  <jim@meyering.net>
60716
60717         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
60718         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
60719         * m4/same.m4 (gl_SAME): Likewise.
60720         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
60721
60722         2006-03-11  Eric Blake  <ebb9@byu.net>
60723
60724         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
60725         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
60726         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
60727         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
60728
60729 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
60730
60731         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
60732         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
60733         reported by Mark D. Baushke, one in
60734         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
60735
60736         Merge from coreutils.
60737
60738         * lib/.cppi-disable: Add stdint_.h.
60739         * lib/.cvsignore: Add stdint.h.
60740
60741         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
60742
60743         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
60744         both double and long double versions.
60745         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
60746         * lib/xstrtold.c: New file.
60747         * lib/xstrtod.h (xstrtold): New decl.
60748
60749         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
60750
60751         * lib/filemode.c (setst): Remove.
60752         (strmode): Rewrite to avoid setst.  This makes the code shorter,
60753         (arguably) clearer, and the generated code is a bit smaller on my
60754         Debian GNU/Linux stable x86 host.
60755
60756         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
60757
60758         * lib/filemode.c: Include "filemode.h" first, to test the interface.
60759         Assume that filemode.h includes sys/types.h and sys/stat.h.
60760         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
60761         (ftypelet): Reorder to put common cases first, for efficiency.
60762         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
60763         to do 'M'.
60764         (strmode): Renamed from mode_string, and now stores 12 bytes instead
60765         of 10, for compatibility with FreeBSD.  All callers changed.
60766         (filemodestring): Now stores 12 bytes instead of 10, and sets file
60767         types that can't be deduced solely from st_mode.  First arg is now a
60768         const pointer.
60769         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
60770         (strmode): Renamed from mode_string.
60771         (filemodestring): New decl.
60772         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
60773         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
60774         needed.
60775         (S_ISPORT, S_ISWHT): New macros, if not already defined.
60776
60777         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60778
60779         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
60780         fsusage.h now does that.  Include fsusage.h first, to test interface.
60781         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
60782         at most one method (the old code could have generated decls that
60783         didn't conform to C89, not that this was ever exercised).
60784         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
60785
60786         2006-03-19  Jim Meyering  <jim@meyering.net>
60787
60788         Work even in a chroot where d_ino values for entries in "/"
60789         don't match the stat.st_ino values for the same names.
60790         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
60791         number, iterate through all entries again, using lstat instead.
60792         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
60793         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
60794
60795         * lib/getcwd.c (__getcwd): Clarify a comment.
60796         Use memcpy in place of a call to strcpy.
60797
60798         2006-03-12  Jim Meyering  <jim@meyering.net>
60799
60800         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
60801         matches that of the current directory (which we're about to chdir ".."
60802         out of), then save the dev-ino of the parent, instead.
60803
60804         * lib/same-inode.h (SAME_INODE): New file/macro.
60805         * lib/chdir-safer.c (SAME_INODE): Remove definition.
60806         Include "same-inode.h", instead.
60807         * lib/same.c: Likewise.
60808         * lib/cycle-check.h: Include "same-inode.h".
60809         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
60810         * lib/cycle-check.c (SAME_INODE): Remove definition.
60811         * lib/root-dev-ino.h: Include "same-inode.h".
60812
60813         2006-03-11  Eric Blake  <ebb9@byu.net>
60814
60815         * lib/same.c (same_name): s/base_name/last_component/
60816         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
60817         * lib/filenamecat.c (file_name_concat): Likewise.
60818
60819         2006-03-11  Eric Blake  <ebb9@byu.net>,
60820                     Paul Eggert  <eggert@cs.ucla.edu>
60821
60822         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
60823         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
60824         drive prefix.
60825         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
60826         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
60827         (last_component): New method.
60828         * lib/dirname.c (dir_len): Determine when drive letters need a
60829         subsequent slash.  Preserve // when it is special.
60830         (dir_name): Don't append dot when drive letter is absolute.
60831         [TEST_DIRNAME]: Move into a full-blown gnulib test.
60832         * lib/basename.c (base_name): New semantics - malloc the result.
60833         Preserve // when it is special.  Preserve relative files that look
60834         like drive letters.
60835         (base_len): Preserve // when it is special.
60836         (last_component): New method, similar to old base_name semantics.
60837         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
60838         base_name.  Strip redundant slashes from ///.
60839
60840 2006-07-03  Jim Meyering  <jim@meyering.net>
60841
60842         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
60843         macro is used before the first cycle_check call.
60844
60845 2006-07-03  Eric Blake  <ebb9@byu.net>
60846
60847         * modules/dirname (Depends-on): Add xstrndup.
60848
60849 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60850
60851         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
60852         test cases, so that config.log is a bit easier to follow.
60853
60854 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
60857         both are 64 bits, since this seems to be the tradition, and this
60858         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
60859         we ever run into a host that prefers long long to long in this
60860         case, we'll need another configure-time test.  Problem reported by
60861         Jim Meyering.
60862
60863 2006-07-02  Eric Blake  <ebb9@byu.net>
60864
60865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
60866
60867 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60868
60869         * modules/inttypes (Depends-on): No longer depends on stdint.
60870         * modules/stdint (Description): Say more about assumptions.
60871         Say that the fast types might differ.  Say macros are used.
60872         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
60873         (Makefile.am): Revise list of substituted symbols to match
60874         new stdint.m4.
60875         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
60876         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
60877         * tests/test-stdint.c (verify_same_types)
60878         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
60879         the code conforms to C99/C89.
60880         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
60881         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
60882
60883 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60884
60885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
60886         but fix a bug, by requiring at least 64 bits.
60887         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60888         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
60889         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
60890         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
60891
60892         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
60893         changes.  Make 2.59 a prerequisite.  Check and substitute for
60894         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
60895         inttypes.h.  Do not use special include files; just use the
60896         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
60897         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
60898         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
60899         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
60900         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
60901         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
60902         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
60903         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
60904         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
60905         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
60906         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
60907         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
60908         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
60909         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
60910         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
60911         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
60912         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
60913         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
60914         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
60915         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
60916         WINT_MAX.  Check for C99 conformance more strictly, by detecting
60917         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
60918         not check for things that C99 does not require, e.g., int8_t.  If
60919         a test isn't needed unless <stdint.h> isn't working, and is
60920         unlikely to be needed for any other reason, then don't do it
60921         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
60922         size_t, since we assume C89 freestanding at least.  Do not check
60923         for sig_atomic_t, wchar_t, or wint_t, since the code now does
60924         the right thing even if the types are not defined.  Instead use:
60925         (gl_STDINT_TYPE_PROPERTIES): New macro.
60926         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
60927         testing whether <sys/types.h> clashes, as Autoconf does this for
60928         us now.  All uses removed.
60929         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
60930         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
60931         (gl_CHECK_TYPE_SAME):
60932         Remove; no longer needed.
60933         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
60934         exists, since we'll return 0 anyway in that case.
60935         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
60936
60937 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
60938
60939         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
60940         possible collision with system files.
60941         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
60942         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
60943         WCHAR_MIN and WCHAR_MAX in this case.
60944         (<stddef.h>): Do not include; no longer needed.
60945         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
60946         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
60947         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
60948         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
60949         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
60950         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
60951         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
60952         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
60953         !defined(__c99))]: Include in this case too, since it's harmless
60954         now.
60955         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
60956         dangerous to do so.
60957         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
60958         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
60959         (_STDINT_MIN, _STDINT_MAX): New macros.
60960         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
60961         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
60962         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
60963         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
60964         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
60965         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
60966         macros, not typedefs; this simplifies things quite a bit.
60967         Use long int for all types narrower than int64_t.
60968         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
60969         Define in terms of long long int or int64_t or long int,
60970         not int64_t or int32_t.  This saves some compile-time testing.
60971         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
60972         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
60973         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
60974         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
60975         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
60976         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
60977         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
60978         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
60979         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
60980         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
60981         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60982         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60983         undef any previous version and define our own version, for
60984         simplicity and consistency with the new macros for types.
60985         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
60986         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
60987         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
60988         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
60989         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
60990         @WINT_T_SUFFIX@ to keep things simple here.
60991         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
60992         Simplify by assuming typical 8/16/32/64 host, since we're
60993         already doing that elsewhere anyway.
60994         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
60995         and assume long long int is 64 bits if available.  This
60996         speeds up 'configure'.
60997
60998 2006-07-01  Eric Blake  <ebb9@byu.net>
60999
61000         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
61001         Reported by Andreas Buening.
61002
61003 2006-07-01  Eric Blake  <ebb9@byu.net>
61004
61005         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
61006
61007 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61008
61009         * lib/getaddrinfo.c: fixed typo
61010
61011 2006-06-29  Jim Meyering  <jim@meyering.net>
61012
61013         * modules/strftime (Maintainer): Add my name, since with the
61014         FPRINTFTIME changes strftime.c has forked from glibc.
61015
61016 2006-06-29  Eric Blake  <ebb9@byu.net>
61017
61018         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
61019
61020 2006-06-29  Eric Blake  <ebb9@byu.net>
61021
61022         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
61023
61024 2006-06-29  Eric Blake  <ebb9@byu.net>
61025
61026         * lib/stat_.h: New file.
61027
61028 2006-06-29  Eric Blake  <ebb9@byu.net>
61029
61030         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
61031         unused static function.
61032
61033 2006-06-29  Eric Blake  <ebb9@byu.net>
61034
61035         * doc/functions.texi (Function Portability): Document missing lstat
61036         on mingw.
61037
61038 2006-06-29  Eric Blake  <ebb9@byu.net>
61039
61040         * MODULES.html.sh: Add sys_stat.
61041         * modules/sys_stat: New module.
61042         * modules/mkstemp (Depends-on): Add sys_stat.
61043
61044 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61045
61046         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
61047
61048 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61049
61050         * m4/c-bs-a.m4: Removed.
61051
61052 2006-06-29  Derek R. Price  <derek@ximbiot.com>
61053
61054         * lib/strftime.c: Assume strftime() exists.
61055
61056 2006-06-29  Derek Price  <derek@ximbiot.com>
61057
61058         * modules/c-bs-a: Removed - \a is C89.
61059         * MODULES.html.sh: Remove c-bs-a.
61060
61061 2006-06-29  Bruno Haible  <bruno@clisp.org>
61062
61063         * modules/wcwidth (License): Change to LGPL.
61064
61065 2006-06-28  Simon Josefsson  <jas@extundo.com>
61066
61067         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
61068         on _WIN32.
61069
61070         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
61071         getnameinfo.
61072
61073 2006-06-28  Simon Josefsson  <jas@extundo.com>
61074
61075         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
61076
61077 2006-06-28  Simon Josefsson  <jas@extundo.com>
61078
61079         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
61080         functions there.  It will succeed on Windows XP, but on Windows
61081         2000 and (presumably) earlier, it will fail, and use the internal
61082         re-implementation.
61083         (use_win32_p): New function.
61084         (getaddrinfo): Use strtoul on servname, to support numeric ports.
61085         Support AI_NUMERICSERV to disable getservbyname.
61086         (getnameinfo): New function, only supports
61087         NI_NUMERICHOST|NI_NUMERICSERV for now.
61088
61089         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
61090         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
61091         getnameinfo.
61092
61093 2006-06-28  Eric Blake  <ebb9@byu.net>
61094
61095         * modules/wcwidth: New file.
61096         * modules/mbchar (Depends-on): Add wcwidth.
61097         * modules/mbswidth (Depends-on): Add wcwidth.
61098         * MODULES.html.sh: Add wcwidth.
61099
61100 2006-06-28  Eric Blake  <ebb9@byu.net>
61101
61102         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
61103         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
61104
61105 2006-06-28  Eric Blake  <ebb9@byu.net>
61106
61107         * lib/xvasprintf.h: Fix comments.
61108
61109 2006-06-28  Eric Blake  <ebb9@byu.net>
61110
61111         * lib/mbchar.h (wcwidth): Include wcwidth.h.
61112         * lib/mbswidth.c (wcwidth): Move from here...
61113         * lib/wcwidth.h: ...to this new file.
61114
61115 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61116
61117         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
61118
61119         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
61120         it's obsolete.
61121         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
61122
61123 2006-06-28  Derek R. Price  <derek@ximbiot.com>
61124
61125         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
61126         Autoconf 2.60 says this stuff was obsolete.
61127
61128 2006-06-28  Bruno Haible  <bruno@clisp.org>
61129
61130         * modules/wcwidth (Files): Add m4/wchar_t.m4.
61131
61132 2006-06-28  Bruno Haible  <bruno@clisp.org>
61133
61134         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
61135         gt_TYPE_WCHAR_T.
61136
61137 2006-06-28  Bruno Haible  <bruno@clisp.org>
61138
61139         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
61140         declaration for wcwidth.
61141         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
61142
61143 2006-06-28  Bruno Haible  <bruno@clisp.org>
61144
61145         * lib/mkdtemp.c [MINGW]: Include <io.h>.
61146         (mkdir): Define using _mkdir.
61147
61148 2006-06-28  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/getaddrinfo.h: Fix POSIX URL.
61151         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
61152         _WIN32.
61153         (use_win32_p): Make static.
61154         (getaddrinfo): Reject service name if it is empty or does not consist
61155         solely of decimal digits, or if its value is > 65535.
61156         (getnameinfo): Remove useless casts.
61157
61158 2006-06-27  Simon Josefsson  <jas@extundo.com>
61159
61160         * modules/sys_select: New file, suggested by Bruno Haible, Paul
61161         Eggert and Martin Lambers.
61162
61163 2006-06-27  Simon Josefsson  <jas@extundo.com>
61164
61165         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
61166         Eggert and Martin Lambers.
61167
61168 2006-06-27  Bruno Haible  <bruno@clisp.org>
61169
61170         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
61171         result to 0, not to empty.
61172         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
61173
61174 2006-06-27  Bruno Haible  <bruno@clisp.org>
61175
61176         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
61177
61178 2006-06-26  Simon Josefsson  <jas@extundo.com>
61179
61180         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
61181         present.
61182
61183 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
61184
61185         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
61186         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
61187         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
61188
61189 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
61190
61191         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
61192
61193 2006-06-26  Bruno Haible  <bruno@clisp.org>
61194
61195         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
61196
61197 2006-06-26  Bruno Haible  <bruno@clisp.org>
61198
61199         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
61200
61201 2006-06-26  Bruno Haible  <bruno@clisp.org>
61202
61203         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
61204         SGI C compiler in pre-C99 mode.
61205         Suggested by Mark D. Baushke and Larry Jones.
61206
61207 2006-06-26  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
61210         WCHAR_MAX.
61211         Reported by Mark D. Baushke and Larry Jones.
61212
61213 2006-06-26  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
61216         in pre-C99 mode.
61217         Suggested by Mark D. Baushke and Larry Jones.
61218
61219 2006-06-23  Simon Josefsson  <jas@extundo.com>
61220             Bruno Haible  <bruno@clisp.org>
61221
61222         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
61223         Emit mostlyclean-local rule.
61224         (func_emit_tests_Makefile_am): Likewise.
61225         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
61226
61227 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
61228
61229         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
61230
61231 2006-06-23  Bruno Haible  <bruno@clisp.org>
61232
61233         * tests/test-stdint.c: Update to match ISO C 99 Technical
61234         Corrigendum 1.
61235
61236 2006-06-23  Bruno Haible  <bruno@clisp.org>
61237
61238         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
61239
61240 2006-06-23  Bruno Haible  <bruno@clisp.org>
61241
61242         * lib/stdint_.h: Treat IRIX like OpenBSD.
61243
61244 2006-06-23  Bruno Haible  <bruno@clisp.org>
61245
61246         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
61247         ISO C 99 Technical Corrigendum 1.
61248
61249 2006-06-22  Simon Josefsson  <jas@extundo.com>
61250
61251         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
61252         MinGW.
61253
61254 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
61257         needed.  Some compiler complained about some of them.  Problem reported
61258         by Larry Jones in
61259         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
61260
61261 2006-06-21  Simon Josefsson  <jas@extundo.com>
61262
61263         * tests/test-getaddrinfo.c: New file.
61264
61265         * modules/getaddrinfo-tests: New file.
61266
61267         * MODULES.html.sh: Add inet_pton.
61268
61269         * modules/inet_pton: New file.
61270
61271 2006-06-21  Simon Josefsson  <jas@extundo.com>
61272
61273         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
61274         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
61275         of using the (limited) gnulib implementation on Windows XP.
61276
61277         * m4/inet_pton.m4: New file.
61278
61279 2006-06-21  Simon Josefsson  <jas@extundo.com>
61280
61281         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
61282         variable.
61283
61284         * lib/socket_.h: Don't define WINVER.
61285
61286         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
61287         slightly modified to work in gnulib.
61288
61289 2006-06-21  Simon Josefsson  <jas@extundo.com>
61290
61291         * doc/gnulib.texi (Windows sockets): Add.
61292
61293 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
61294
61295         * lib/read-file.c (fread_file): Start with buffer allocation of
61296         0 bytes rather than 1 byte; this simplifies the code.
61297         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
61298         code to free buffer and save/restore errno.
61299         (internal_read_file): Remove unused local.
61300
61301 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
61304         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
61305         Problem reported by Denis Excoffier in
61306         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
61307
61308 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61309
61310         * modules/sys_socket, modules/socklen: Include sys/types since
61311         FreeBSD 4.x's sys/socket.h needs it.
61312
61313 2006-06-19  Simon Josefsson  <jas@extundo.com>
61314
61315         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
61316
61317 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
61318
61319         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
61320
61321 2006-06-19  Bruno Haible  <bruno@clisp.org>
61322
61323         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
61324         and FULL_PATH_INTTYPES_H in angle brackets.
61325         Reported by Mark D. Baushke <mdb@gnu.org>.
61326
61327 2006-06-17  Eric Blake  <ebb9@byu.net>
61328
61329         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
61330         errno.
61331
61332 2006-06-17  Bruno Haible  <bruno@clisp.org>
61333
61334         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
61335         <sys/inttypes.h>.
61336
61337 2006-06-17  Bruno Haible  <bruno@clisp.org>
61338
61339         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
61340         whether errno is declared. Assume <errno.h> declares errno.
61341
61342 2006-06-17  Bruno Haible  <bruno@clisp.org>
61343
61344         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
61345
61346 2006-06-17  Bruno Haible  <bruno@clisp.org>
61347
61348         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
61349         problem on Solaris 2.5.1.
61350
61351 2006-06-16  Eric Blake  <ebb9@byu.net>
61352
61353         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
61354         * lib/unicodeio.c [!defined errno]: Likewise.
61355         * lib/strtol.c [!defined errno]: Likewise.
61356         * lib/strtod.c [!defined errno]: Likewise.
61357
61358 2006-06-15  Eric Blake  <ebb9@byu.net>
61359
61360         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
61361
61362 2006-06-15  Eric Blake  <ebb9@byu.net>
61363
61364         * config/srclist.txt (ssize_t.m4): Lose sync.
61365
61366 2006-06-15  Bruno Haible  <bruno@clisp.org>
61367
61368         * modules/stdint (Files): Include m4/full-header-path.m4,
61369         m4/size_max.m4, m4/wchar_t.m4.
61370         (Makefile.am): Many more substitutions.
61371         * modules/stdint-tests: New file.
61372         * tests/test-stdint.c: New file.
61373
61374 2006-06-15  Bruno Haible  <bruno@clisp.org>
61375
61376         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
61377         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
61378         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
61379         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
61380         gl_CHECK_TYPE_SAME): New macros.
61381
61382 2006-06-15  Bruno Haible  <bruno@clisp.org>
61383
61384         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
61385
61386 2006-06-15  Bruno Haible  <bruno@clisp.org>
61387
61388         * lib/stdint_.h: Rewritten to be fully auto-configured.
61389         Fixes bug on HP-UX/IA64.
61390
61391 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
61392
61393         * lib/getdate.y (__attribute__): Don't define if already defined.
61394         Problem reported by Larry Jones.
61395         * lib/utimens.c (__attribute__): Likewise.
61396
61397 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
61400         reported by Andreas Schwab.
61401
61402 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61403             Bruno Haible  <bruno@clisp.org>
61404
61405         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
61406         check for the declaration of strnlen and a run test that exposes the
61407         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
61408         rpl_strndup.
61409
61410 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61411             Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
61414
61415 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61416
61417         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
61418         compile test, for Tru64 4.0D.
61419
61420 2006-05-28  Karl Berry  <karl@gnu.org>
61421
61422         * config/srclist.txt (printf-args.c): lose sync.
61423
61424 2006-05-26  Martin Lambers  <marlam@marlam.de>
61425
61426         * lib/getpass.c: Updates the test for the native W32 API, and adds
61427         missing includes, thus fixing compilation warnings.
61428
61429 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
61430
61431         * lib/exclude.c (exclude_fnmatch): New function.
61432         (excluded_file_name): Call exclude_fnmatch.
61433         * lib/exclude.h (excluded_file_name): New prototype
61434
61435 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
61436
61437         * lib/tempname.c (small_open, large_open): New macros.
61438         (__open, __open64) [!_LIBC]: Remove.
61439         (__gen_tempname): Use small_open and large_open instead of __open
61440         and __open64.  This fixes a portability bug on HP-UX 11.11i
61441         reported by Simon Wing-Tang in
61442         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
61443
61444 2006-05-24  Bruno Haible  <bruno@clisp.org>
61445
61446         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
61447         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
61448         Reported by Thorsten Maerz <torte@netztorte.de> via
61449         Aaron Stone <aaron@serendipity.cx>.
61450
61451 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61452
61453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
61454         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
61455         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
61456         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
61457         not really conditional on the cache.
61458         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
61459
61460 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
61463         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
61464         (my_usleep): Don't mishandle maximum value.
61465
61466 2006-05-19  Jim Meyering  <jim@meyering.net>
61467
61468         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
61469
61470 2006-05-17  Bruno Haible  <bruno@clisp.org>
61471
61472         Cygwin portability.
61473         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
61474
61475 2006-05-17  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/stdint_.h: Fix recognition of Cygwin.
61478
61479 2006-05-15  Bruno Haible  <bruno@clisp.org>
61480
61481         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
61482         on libtool patch by Ralf Wildenhues.
61483
61484 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
61487         test for C99 conformance; (bool) 0.5 is an integer constant
61488         expression, but (bool) -0.5 is not.  Problem reported by Fedor
61489         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
61490
61491 2006-05-11  Simon Josefsson  <jas@extundo.com>
61492
61493         * m4/xvasprintf.m4: Fix obvious typo.
61494
61495 2006-05-11  Jim Meyering  <jim@meyering.net>
61496
61497         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
61498         James Lemley.
61499
61500 2006-05-10  Simon Josefsson  <jas@extundo.com>
61501
61502         * lib/md4.c: Typo fix, update copyright years.
61503         (K1, K2): Don't use L because it turn computations into 64-bit on
61504         64-bit platforms.
61505
61506 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
61507
61508         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
61509         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
61510         unwanted sign propagation, e.g., on hosts with 64-bit int.
61511         There still are some problems with reeelly weird theoretical hosts
61512         (e.g., 33-bit int) but it's not worth worrying about now.
61513         * lib/sha1.c (rol): Likewise.
61514         (K1, K2, K3, K4): Remove unnecessary L suffix.
61515
61516 2006-05-10  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/des.c: Cast to avoid warnings.
61519
61520 2006-05-09  Bruno Haible  <bruno@clisp.org>
61521
61522         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
61523         (Depends-on): Depend also on xsize, stdarg.
61524         (configure.ac): Add gl_XVASPRINTF.
61525
61526 2006-05-09  Bruno Haible  <bruno@clisp.org>
61527
61528         * m4/xvasprintf.m4: New file.
61529
61530 2006-05-09  Bruno Haible  <bruno@clisp.org>
61531
61532         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
61533         (EOVERFLOW): Define fallback value.
61534         (xstrcat): New function.
61535         (xvasprintf): Recognize the special case of a string concatenation.
61536
61537 2006-05-08  Eric Blake  <ebb9@byu.net>
61538
61539         * gnulib-tool (func_version): Base copyright year on CVS date.
61540         (func_emit_copyright_notice): New function.
61541         (func_emit_lib_Makefile_am): Use it.
61542         (func_emit_tests_Makefile_am): Likewise.
61543         (func_import): Likewise.
61544
61545 2006-05-08  Bruno Haible  <bruno@clisp.org>
61546
61547         * modules/stdarg: New file.
61548         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
61549
61550 2006-05-08  Bruno Haible  <bruno@clisp.org>
61551
61552         * m4/stdarg.m4: New file, from GNU gettext.
61553
61554 2006-05-08  Bruno Haible  <bruno@clisp.org>
61555
61556         * config/srclist.txt (build-aux/config.rpath): different from latest
61557         release.
61558
61559 2006-05-08  Bruno Haible  <bruno@clisp.org>
61560
61561         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
61562
61563 2006-05-05  Jim Meyering  <jim@meyering.net>
61564
61565         * m4/warning.m4: New file, derived from bison's file by the same name.
61566
61567 2006-05-03  Bruno Haible  <bruno@clisp.org>
61568
61569         * lib/stdint_.h: Shorter URL.
61570         * lib/inttypes.h: Likewise.
61571
61572 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61573
61574         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
61575
61576 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61577
61578         * lib/verify.h: Document the internals better.  Most of this change
61579         was written by Bruno Haible.
61580
61581 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61582
61583         * doc/verify.texi: New file, partly based on a proposal by
61584         Bruno Haible.
61585
61586 2006-05-02  Bruno Haible  <bruno@clisp.org>
61587
61588         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
61589         test from here...
61590         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
61591
61592 2006-04-29  Bruno Haible  <bruno@clisp.org>
61593
61594         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
61595         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
61596
61597 2006-04-29  Bruno Haible  <bruno@clisp.org>
61598
61599         * gnulib-tool: Make --update option actually work.
61600
61601 2006-04-29  Bruno Haible  <bruno@clisp.org>
61602
61603         * doc/gcd.texi: New file.
61604         * doc/gnulib.texi: Include it.
61605
61606 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * lib/getdate.y (get_date): When adding relative date, start with the
61609         initial time, not with the result of the first mktime call.
61610
61611 2006-04-25  Bruno Haible  <bruno@clisp.org>
61612
61613         * gnulib-tool (func_import): Output the include directives in three
61614         blocks, sorted separately.
61615         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61616
61617 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61618
61619         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
61620         to define main with arguments, for C++.  Reported by Eric Blake.
61621         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
61622         Prefer 'int main ()' to 'int main (void)', for C++.
61623         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61624         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
61625         for 'main', for C99 and C++.
61626
61627 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
61628
61629         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
61630         Don't assume that exit status -1 is valid.
61631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61632         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61633         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
61634         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
61635         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
61636         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
61637         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
61638         functions can be used without declaring them, or that you can
61639         exit with status -1.
61640         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
61641
61642 2006-04-24  Karl Berry  <karl@gnu.org>
61643
61644         * config/srclist.txt (longdouble.m4): sync lost.
61645
61646 2006-04-24  Eric Blake  <ebb9@byu.net>
61647
61648         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
61649
61650 2006-04-24  Bruno Haible  <bruno@clisp.org>
61651
61652         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
61653         poll() implementation in AIX.
61654         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61655
61656 2006-04-24  Bruno Haible  <bruno@clisp.org>
61657
61658         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
61659         assigned exactly once.
61660
61661 2006-04-23  Claudio Fontana  <claudio@gnu.org>
61662             Bruno Haible  <bruno@clisp.org>
61663
61664         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
61665         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
61666         for AM_CPPFLAGS.
61667
61668 2006-04-23  Bruno Haible  <bruno@clisp.org>
61669
61670         * modules/copy-file: Depend on unistd.
61671         * modules/execute: Likewise.
61672         * modules/fatal-signal: Likewise.
61673         * modules/findprog: Likewise.
61674         * modules/mkdtemp : Likewise.
61675         * modules/pipe: Likewise.
61676         * modules/wait-process: Likewise.
61677
61678 2006-04-23  Bruno Haible  <bruno@clisp.org>
61679
61680         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
61681         condition was already detected.
61682         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61683
61684 2006-04-23  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/copy-file.c: Include <unistd.h> unconditionally.
61687         * lib/execute.c: Likewise.
61688         * lib/fatal-signal.c: Likewise.
61689         * lib/findprog.c: Likewise.
61690         * lib/mkdtemp.c: Likewise.
61691         * lib/pipe.h: Likewise.
61692         * lib/pipe.c: Likewise.
61693         * lib/wait-process.h: Likewise.
61694
61695 2006-04-23  Bruno Haible  <bruno@clisp.org>
61696
61697         * gnulib-tool (func_usage): Fix --import description. Document
61698         --update.
61699         (func_import): Create temporary file in a temporary directory, if
61700         --dry-run is specified. Silence errors from 'grep' when there are no
61701         m4 files in $m4dir.
61702         (func_create_testdir): Silence errors from 'grep' when there are no
61703         m4 files in $m4dir.
61704         Reported by Karl Berry <karl@freefriends.org>.
61705
61706 2006-04-20  Bruno Haible  <bruno@clisp.org>
61707
61708         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
61709         one argument, so that the code will be portable to Autoconf 2.60.
61710         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
61711         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61712         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
61713
61714 2006-04-19  Derek Price  <derek@ximbiot.com>
61715             Eric Blake  <ebb9@byu.net>
61716
61717         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
61718         rather than "/full/path.h".  Update comment to match.  Shorten &
61719         generalize m4_translit call via AS_TR_CPP.
61720
61721 2006-04-19  Derek Price  <derek@ximbiot.com>
61722             Eric Blake  <ebb9@byu.net>
61723
61724         * lib/inttypes.h: Correct grammar in comment.
61725
61726 2006-04-18  Derek Price  <derek@ximbiot.com>
61727             Paul Eggert  <eggert@cs.ucla.edu>
61728
61729         * modules/inttypes: New file.
61730         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
61731
61732 2006-04-18  Derek Price  <derek@ximbiot.com>
61733             Paul Eggert  <eggert@cs.ucla.edu>
61734
61735         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
61736         New files.
61737
61738 2006-04-18  Derek Price  <derek@ximbiot.com>
61739             Paul Eggert  <eggert@cs.ucla.edu>
61740
61741         * lib/inttypes.h: New file.
61742         * lib/strtoimax.c: Assume <inttypes.h>.
61743
61744 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
61745
61746         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
61747         isn't mounted.  Problem reported by Kir Kolyshkin.
61748
61749 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
61752         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
61753         Derek R. Price.
61754         * lib/regex.h (RE_DUP_MAX): Update comment to match current
61755         implementation.
61756
61757 2006-04-12  Eric Blake  <ebb9@byu.net>
61758
61759         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
61760         is now done automatically by the corresponding Autoconf macro.
61761
61762 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
61765         time_r.h.
61766
61767 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61768
61769         Merge regex changes from libc, removing some of our
61770         POSIX-conformance changes that were rejected and redoing them in a
61771         less-intrusive way.
61772
61773         * lib/regcomp.c (re_compile_internal, init_dfa):
61774         Length arg is now size_t, not Idx.  All uses changed.
61775         (peek_token): Forward decl now says internal_function.
61776         (__re_error_msgid, __re_error_msgid_idx):
61777         Now static rather than extern with attribute_hidden.
61778         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
61779         For some reason libc prefers K&R style defns for external functions.
61780         (regerror) [!defined _LIBC]: Likewise.
61781         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
61782         (seek_collating_symbol_entry, lookup_collation_sequence_value):
61783         (build_range_exp, build_collating_symbol):
61784         Use K&R-style defn.
61785         (re_compile_fastmap): Use '\0' to memset, not 0.
61786         (utf8_sb_map): Make the calculations more obvious.
61787         (init_dfa, parse_bracket_exp, build_charclass_op):
61788         Call calloc and cast result, as glibc does.
61789         (init_word_char, fetch_token, peek_token, peek_token_bracket):
61790         (build_range_exp, build_collating_symbol):
61791         Now internal functions.
61792
61793         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
61794
61795         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
61796         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
61797         Don't depend on VMS; depend on __VMS instead, for POSIX
61798         namespace cleanness.
61799         (regoff_t): Define to ssize_t, not long int.
61800
61801         Remove the REG_ macros named below.  Instead, make the old names
61802         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
61803         __USE_GNU_REGEX.
61804         (REG_BACKSLASH_ESCAPE_IN_LISTS):
61805         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
61806         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
61807         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
61808         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
61809         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
61810         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
61811         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
61812         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
61813         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
61814         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
61815         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
61816         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
61817         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
61818         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
61819         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
61820         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
61821         (REG_NREGS):
61822         Remove.  All uses replaced by the old RE_* names.
61823         (RE_BACKSLASH_ESCAPE_IN_LISTS):
61824         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
61825         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
61826         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
61827         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
61828         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
61829         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
61830         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
61831         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
61832         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
61833         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
61834         Don't bother having these macros be independent of each others'
61835         values, since they no longer exist in the POSIX name space.
61836
61837         Rename the following member names back to their old names,
61838         unless !__USE_GNU_REGEX.  All uses changed back.
61839         (buffer): Renamed from re_buffer.
61840         (allocated): Renamed from re_allocated.
61841         (used): Renamed from re_used.
61842         (syntax): Renamed from re_syntax.
61843         (fastmap): Renamed from re_fastmap.
61844         (translate): Renamed from re_translate.
61845         (can_be_null): Renamed from re_can_be_null.
61846         (regs_allocated): Renamed from re_regs_allocated.
61847         (fastmap_accurate): Renamed from re_fastmap_accurate.
61848         (no_sub): Renamed from re_no_sub.
61849         (not_bol): Renamed from re_not_bol.
61850         (not_eol): Renamed from re_not_eol.
61851         (newline_anchor): Renamed from re_newline_anchor.
61852         (num_regs): Renamed from rm_num_regs.
61853         (start): Renamed from rm_start.
61854         (end): Renamed from rm_end.
61855
61856         (free_state): Move up a bit.
61857
61858         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
61859         #define to be empty.
61860         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
61861         when that is what is intended.
61862         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
61863         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
61864         (MAX): New macro.
61865         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
61866         All uses changed back to re_malloc, etc.  It's now the caller's
61867         responsibility to check for overflow; all callers changed.
61868         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
61869         (re_x2nrealloc): Remove.
61870         (free_state): Remove decl.
61871
61872         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
61873         (re_set_registers, re_exec):
61874         Use K&R-style defn.
61875
61876         2006-01-31  Roland McGrath  <roland@redhat.com>
61877
61878         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
61879         Reported by Mike Frysinger <vapier@gentoo.org>.
61880
61881         2006-01-15  Andreas Jaeger  <aj@suse.de>
61882
61883         [BZ #1950]
61884         * lib/regex_internal.c (re_string_reconstruct): Adjust for
61885         build_wcs_upper_buffer change.
61886         (build_wcs_upper_buffer): Change return type.
61887
61888         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
61889
61890         * lib/regex_internal.h: Include <stdint.h> if available.
61891
61892         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
61893
61894         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
61895
61896         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61897
61898         * lib/regcomp.c: Adjust for changed secondary hash function.
61899
61900         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
61901
61902         * lib/regex.h: Pretty printing.
61903         Clean up namespace a bit.
61904
61905         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
61906
61907         * lib/regexec.c (update_cur_sifted_state, check_arrival,
61908         check_arrival_add_next_nodes): Avoid using uninitialized variable.
61909
61910         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61911                     Ulrich Drepper  <drepper@redhat.com>
61912
61913         [BZ #1302]
61914         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
61915         changed.
61916         (bitset_word_t): Renamed from bitset_word.  All uses changed.
61917
61918         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
61919
61920         [BZ #281]
61921         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
61922         * lib/regcomp.c: Remove unnecessary uses of
61923         unsigned RE_TRANSLATE_TYPE.
61924         * lib/regex_internal.h: Likewise.
61925         * lib/regex_internal.c: Likewise.
61926         * lib/regexec.c: Likewise.
61927         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
61928
61929         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
61930
61931         * lib/regexec.c (find_recover_state): Remove unnecessary
61932         initialization.
61933         (transit_state_bkref): Make DFA a const pointer.
61934         (get_subexp): Likewise.
61935         (check_arrival): Likewise.
61936         (update_cur_sifted_state): Likewise.
61937         (re_search_internal): Likewise.
61938         (prune_impossible_nodes): Likewise.
61939         (acquire_init_state_context): Likewise.
61940         (proceed_next_node): Likewise.
61941         (set_regs): Likewise.
61942         (free_fail_stack_return): Likewise.
61943         (check_arrival_expand_ecl): Mark DFA parameter as const.
61944         (check_arrival_expand_ecl_sub): Likewise.
61945         (check_subexp_limits): Likewise.
61946         (sub_epsilon_src_nodes):  Likewise.
61947         (add_epsilon_src_nodes):  Likewise.
61948         (merge_state_array): Likewise.
61949         (update_regs): Likewise.
61950         (build_trtable): Likewise.
61951         (sift_states_backward): Mark MCTX parameter as const.
61952         (build_sifted_states): Likewise.
61953         (update_cur_sifted_state): Likewise.
61954         (sift_states_mkref): Likewise.
61955         (check_arrival_expand_ecl): Mark eclosure as const.
61956         (check_dst_limits_calc_pos_1): Likewise.
61957         * lib/regex_internal.h (re_match_context_t): Make dfa a const
61958         pointer.
61959
61960         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
61961
61962         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
61963         (transit_state_sb): Likewise.
61964         (transit_state_mb): Likewise.
61965         (sift_states_iter_mb): Likewise.
61966         (check_arrival_add_next_nodes): Likewise.
61967         (check_node_accept_bytes): Change first parameter to pointer-to-const.
61968         [_LIBC] (re_search_2_stub): Use mempcpy.
61969
61970         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
61971         mbrtowc for very simple UTF-8 case.
61972
61973         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
61974         a pointer-to-const.
61975         (re_acquire_state_context): Likewise.
61976         * lib/regex_internal.h: Adjust prototypes.
61977
61978         * lib/regex.c: Prevent using C++ compilers.
61979
61980         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
61981         (re_acquire_state_context): Likewise.
61982
61983 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61984
61985         * modules/regex (Depends-on): Add ssize_t.
61986
61987 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61988
61989         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
61990         translation table.
61991
61992 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
61993
61994         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
61995
61996 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
61997             Bruno Haible  <bruno@clisp.org>
61998
61999         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
62000         <sys/types.h> and <inttypes.h>.
62001
62002 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62003
62004         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
62005         `__error_t_defined', so argp.h will not typedef the former.
62006
62007 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
62008
62009         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
62010         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
62011         glibc names.  Even if glibc is changed to conform to POSIX, the
62012         traditional names will be available anyway, since regex depends on
62013         the extensions module.  Also, fix a longstanding typo in the
62014         implementation of Spencer ERE test #75 from grep 2.3.  Problems
62015         reported by Emanuele Giaquinta.  Also, change sense of cached
62016         variable, so that the message makes sense.
62017
62018 2006-03-24  Simon Josefsson  <jas@extundo.com>
62019
62020         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
62021         including some doc fixes.
62022         (base64_encode_alloc): Fix +1 bug on allocation failures.
62023
62024 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62025
62026         * lib/base64.c (base64_encode): Do not read past end of array with
62027         unsanitized input on systems with CHAR_BIT > 8.
62028
62029 2006-03-24  Eric Blake  <ebb9@byu.net>
62030
62031         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
62032
62033 2006-03-22  Karl Berry  <karl@gnu.org>
62034
62035         * config/srclist.txt (*setenv.[ch]): get from coreutils.
62036         * config/srclistvars.sh (COREUTILS): new var.
62037
62038 2006-03-17  Jim Meyering  <jim@meyering.net>
62039
62040         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
62041         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
62042
62043 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62044
62045         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
62046         no longer needs it.  Instead, check that regoff_t is as least
62047         as wide as ptrdiff_t.
62048
62049         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
62050         so that our regex.h stays compatible with the installed regex.
62051         This is helpful for installers who configure --without-included-regex.
62052         Problem reported by Emanuele Giaquinta.
62053
62054 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
62055
62056         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
62057         Typedef to long int, not to off_, as POSIX will likely change
62058         in that direction.
62059
62060 2006-03-15  Eric Blake  <ebb9@byu.net>
62061
62062         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
62063
62064 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62065
62066         * lib/argp-help.c (validate_uparams): Fix typo
62067         * lib/argp-parse.c (argp_default_options): Consistently begin help
62068         messages with a lowercase letter.
62069
62070 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
62073         overrun buffers and shouldn't be used (much as gets shouldn't be
62074         used).
62075         * lib/time_r.c (asctime_r, ctime_r): Likewise.
62076
62077 2006-03-08  Simon Josefsson  <jas@extundo.com>
62078
62079         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
62080         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62081
62082 2006-03-08  Simon Josefsson  <jas@extundo.com>
62083
62084         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
62085         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62086
62087 2006-03-08  Simon Josefsson  <jas@extundo.com>
62088
62089         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
62090         signal that configure disabled the device.
62091
62092 2006-03-08  Simon Josefsson  <jas@extundo.com>
62093
62094         * build-aux/maint.mk: Fix refresh-po, to handle no translated
62095         languages.
62096
62097 2006-03-07  Simon Josefsson  <jas@extundo.com>
62098
62099         * modules/getopt (Depends-on): Add unistd.
62100
62101         * modules/unistd: New file.
62102
62103 2006-03-07  Simon Josefsson  <jas@extundo.com>
62104
62105         * modules/gc-random: New file.
62106
62107 2006-03-07  Simon Josefsson  <jas@extundo.com>
62108
62109         * m4/unistd_h.m4: New file.
62110
62111 2006-03-07  Simon Josefsson  <jas@extundo.com>
62112
62113         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
62114         test to be side-effect free by storing the result in the cache
62115         variable gl_cv_lib_readline, and moving the assignment of
62116         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
62117         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62118
62119 2006-03-07  Simon Josefsson  <jas@extundo.com>
62120
62121         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
62122         error on missing devices (the functions will return an error).
62123
62124         * m4/gc.m4: Move random stuff to gc-random.m4
62125
62126 2006-03-07  Simon Josefsson  <jas@extundo.com>
62127
62128         * lib/unistd_.h: New file.
62129
62130 2006-03-07  Simon Josefsson  <jas@extundo.com>
62131
62132         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
62133
62134 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62135
62136         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
62137         Problem reported by Juan Manuel Guerrero.
62138
62139 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62140
62141         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
62142         the unistd module.
62143         * lib/getlogin_r.c: Likewise.
62144         * lib/getlogin_r.h: Likewise.
62145         * lib/glob.c: Likewise.
62146         * lib/pagealign_alloc.c: Likewise.
62147         * lib/unistd_.h: Remove; no longer needed.
62148
62149 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
62150
62151         * MODULES.html.sh (Support for systems lacking POSIX:2001):
62152         Add unistd.
62153         * modules/c-stack (Depends-on): Add unistd.
62154         * modules/getlogin_r: Likewise.
62155         * modules/glob: Likewise.
62156         * modules/pagealign_alloc: Likewise.
62157         * modules/unistd (Files): Remove lib/unistd_.h.
62158         (EXTRA_DIST): Remove.
62159         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
62160         need unistd_.h.
62161         (MOSTLYCLEANFILES): Remove unistd.h-t.
62162
62163 2006-03-03  Simon Josefsson  <jas@extundo.com>
62164
62165         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
62166
62167 2006-03-03  Simon Josefsson  <jas@extundo.com>
62168
62169         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
62170         libidn and bison.
62171
62172 2006-03-03  Simon Josefsson  <jas@extundo.com>
62173
62174         * build-aux/maint.mk: Add indent target.
62175
62176 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
62177
62178         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
62179         our replacement poll.h in any case, to avoid a differing
62180         declaration from a system header.  Seen on AIX.
62181
62182 2006-03-01  Simon Josefsson  <jas@extundo.com>
62183
62184         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
62185         <kasal@ucw.cz>.
62186
62187 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62188
62189         * modules/gettime (Depends-on): Add extensions module.
62190         * modules/nanosleep (Depends-on): Likewise.
62191         * modules/settime (Depends-on): Likewise.
62192
62193 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62194
62195         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
62196         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
62197         pedantically.
62198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62199         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
62200
62201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
62202         not "==".  Reported by Ralf Wildenhues.
62203
62204 2006-03-01  Karl Berry  <karl@gnu.org>
62205
62206         * doc/Copyright/request-*: new files, synced from gnuorg.
62207
62208 2006-03-01  Karl Berry  <karl@gnu.org>
62209
62210         * config/srclist.txt (Copyright/*): new entries.
62211
62212 2006-02-28  Simon Josefsson  <jas@extundo.com>
62213
62214         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
62215
62216 2006-02-27  Simon Josefsson  <jas@extundo.com>
62217
62218         * lib/base64.h: Indent #define's.  From Jim Meyering
62219         <jim@meyering.net>.
62220
62221 2006-02-27  Jim Meyering  <jim@meyering.net>
62222
62223         Revert the change of 2006-02-24, so these files can continue
62224         to be sync'd from gettext.
62225         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
62226         of `config.h'.
62227
62228 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
62229
62230         * modules/intprops: New file.
62231         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62232         Add intprops.
62233         * modules/getloadavg (Files): Remove lib/intprops.h.
62234         (Depends-on): Add intprops.
62235         * modules/human: Likewise.
62236         * modules/inttostr: Likewise.
62237         * modules/openat: Likewise.
62238         * modules/sig2str: Likewise.
62239         * modules/userspec: Likewise.
62240         * modules/utimecmp: Likewise.
62241         * modules/xnanosleep: Likewise.
62242         * modules/xstrtol: Likewise.
62243
62244 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
62245
62246         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
62247         * modules/lock-tests (TESTS): Use $(EXEEXT).
62248         * modules/tls-tests: Likewise.
62249         * modules/argp-tests: Likewise.
62250         (check_PROGRAMS): New var, replacing...
62251         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
62252
62253 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62254
62255         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
62256         `config.h'.
62257
62258 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
62259
62260         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
62261
62262 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62263
62264         Sync from coreutils.
62265         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
62266         gl_CHDIR_SAFER.
62267
62268 2006-02-22  Jim Meyering  <jim@meyering.net>
62269
62270         Sync from coreutils.
62271         * m4/chdir-safer.m4: New file.
62272
62273 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
62274
62275         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
62276         AT_FDCWD exceeds INT_MAX.
62277         * lib/openat.h (AT_FDCWD): Likewise.
62278
62279 2006-02-17  Eric Blake  <address@hidden>
62280
62281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
62282
62283 2006-02-16  Simon Josefsson  <jas@extundo.com>
62284
62285         * modules/getaddrinfo (Depends-on): Add sys_socket.
62286
62287 2006-02-15  Simon Josefsson  <jas@extundo.com>
62288
62289         * build-aux/maint.mk: Add dsyntax-check rule.
62290
62291 2006-02-15  Eric Blake  <ebb9@byu.net>
62292
62293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
62294         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
62295         'present but cannot compile' warnings on cygwin.
62296         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
62297         use ws2tcpip.h if sys/socket.h works.
62298         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
62299         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
62300
62301 2006-02-14  Simon Josefsson  <jas@extundo.com>
62302
62303         * modules/maintainer-makefile (Files): Rename.
62304
62305         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
62306         and (the local) Makefile.cfg to maint-cfg.mk.
62307
62308         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
62309         to the latter.
62310
62311         * modules/maintainer-makefile: New module.
62312
62313         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
62314         severaly stripped to make it possible to build it up from scratch
62315         with reliable tests.
62316
62317         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
62318         fixes to permit overriding the default actions when configure and
62319         makefile are not available.
62320
62321 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         Sync from coreutils.
62324         * modules/lstat (Depends-on): Don't depend on xalloc.
62325         (License): Change from GPL to LGPL, since this is now simply a
62326         replacement for a libc function.
62327
62328 2006-02-14  Jim Meyering  <jim@meyering.net>
62329
62330         Sync from coreutils.
62331
62332         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
62333         failure on deficient systems, and simplify gnulib lgpl dependencies.
62334         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
62335         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
62336
62337         * lib/xalloc-die.c: Remove unused definition of N_.
62338
62339 2006-02-14  Jim Meyering  <jim@meyering.net>
62340
62341         Sync from coreutils.
62342         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
62343         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
62344         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
62345         double-quote uses of that variable, to accommodate the rare case in
62346         which getmntent is available in none of the libraries checked.  This
62347         happens at least on FreeBSD 5.0.
62348
62349 2006-02-13  Simon Josefsson  <jas@extundo.com>
62350
62351         * gnulib-tool (Usage): Fix --import, from
62352         karl@freefriends.org (Karl Berry).
62353
62354 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
62355
62356         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
62357
62358 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
62359
62360         * lib/argp-namefrob.h: Restore changes accidentally lost during the
62361         "autoupdate" on 2005-12-12.
62362
62363 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62364
62365         * modules/closeout (Depends-on): Remove atexit.
62366
62367 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
62368
62369         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
62370         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
62371
62372 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
62373
62374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
62375         __EXTENSIONS__ if this causes compilation to fail.  Problem
62376         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
62377         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
62378
62379 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
62380
62381         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
62382         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
62383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
62384         All uses changed.
62385
62386 2006-01-26  Simon Josefsson  <jas@extundo.com>
62387
62388         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
62389         prototype is visible on mingw32.
62390
62391         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
62392         for mingw32.
62393
62394         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
62395         mingw32).
62396
62397 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
62398
62399         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
62400         attempt to open for write; this always fails, at least on POSIX
62401         hosts.  This reinstates the 2006-01-09 change, which was
62402         inadvertently removed.
62403
62404 2006-01-26  Bruno Haible  <bruno@clisp.org>
62405
62406         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
62407         Reported by Paul Eggert.
62408
62409 2006-01-26  Bruno Haible  <bruno@clisp.org>
62410             Paul Eggert  <eggert@cs.ucla.edu>
62411
62412         * lib/stdbool_.h (_Bool)
62413         [(! (defined __cplusplus || defined __BEOS__)
62414           && !defined __GNUC__
62415           && !(defined __HP_cc || defined __xlc__
62416                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
62417                || defined __sgi))]:
62418         #define to signed char in these cases too; this simplifies
62419         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
62420         etc., separately) and makes it more conservative.
62421
62422 2006-01-25  Simon Josefsson  <jas@extundo.com>
62423
62424         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
62425         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
62426         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
62427
62428 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62429
62430         * lib/argp-namefrob.h: Bugfix. Remove stray #
62431
62432 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
62433
62434         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
62435         so that we test the test.
62436         Check for yet another HP-UX cc bug involving *bool |= bool.
62437
62438 2006-01-25  Karl Berry  <karl@gnu.org>
62439
62440         * config/srclist.txt (vasnprintf.c): sync lost.
62441
62442 2006-01-25  Jim Meyering  <jim@meyering.net>
62443
62444         Sync from the stable (b5) branch of coreutils:
62445
62446         * lib/fts.c (fts_children): Don't let close() clobber errno from
62447         failed fchdir().
62448
62449         * lib/fts.c (fts_stat): When following a symlink-to-directory,
62450         don't necessarily interpret stat-fails+lstat-succeeds as indicating
62451         a dangling symlink.  That can also happen at least for ELOOP.
62452         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
62453         FYI, this bug predates the inclusion of fts.c in coreutils.
62454
62455         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
62456         in their own block, so pre-c99 compilers don't object.
62457
62458         Avoid the double-free (first in fts_read, second in fts_close) that
62459         would occur when an `active' directory is made inaccessible (e.g.,
62460         via chmod a-x) during a traversal.
62461         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62462         before returning.  Reproduce this failure by
62463         mkdir -p a/b; cd a; chmod a-x . b
62464         Reported by Stavros Passas.
62465
62466 2006-01-25  Jim Meyering  <jim@meyering.net>
62467
62468         * lib/fileblocks.c: Remove more useless parentheses.
62469         * lib/readutmp.h: Likewise.
62470
62471 2006-01-25  Bruno Haible  <bruno@clisp.org>
62472
62473         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
62474         warnings.
62475         Reported by Paul Eggert.
62476
62477 2006-01-25  Bruno Haible  <bruno@clisp.org>
62478
62479         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
62480         rid of a trap command. For Solaris sh.
62481         Reported by Mark D. Baushke <mdb@gnu.org>.
62482
62483 2006-01-24  Simon Josefsson  <jas@extundo.com>
62484
62485         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
62486         Bruno.
62487
62488 2006-01-24  Karl Berry  <karl@gnu.org>
62489
62490         * config/srclist.txt (argp-namefrob.h): sync lost.
62491
62492 2006-01-24  Jim Meyering  <jim@meyering.net>
62493
62494         * modules/openat (Files): Add lib/intprops.h.
62495         From Mark D. Baushke.
62496
62497 2006-01-24  Jim Meyering  <jim@meyering.net>
62498
62499         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
62500         Reported by Mark D. Baushke.
62501
62502 2006-01-24  Jim Meyering  <jim@meyering.net>
62503
62504         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
62505
62506 2006-01-24  Bruno Haible  <bruno@clisp.org>
62507
62508         * modules/strnlen (Maintainer): Change from glibc to all.
62509
62510 2006-01-24  Bruno Haible  <bruno@clisp.org>
62511
62512         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
62513         Patch by Paul Eggert.
62514
62515 2006-01-24  Bruno Haible  <bruno@clisp.org>
62516
62517         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
62518         already has it.
62519         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
62520         2005-11-26.
62521
62522         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
62523         'signed char' to avoid problems with the built-in _Bool type.
62524         Reported by Paul Eggert on 2005-11-26.
62525
62526 2006-01-24  Bruno Haible  <bruno@clisp.org>
62527
62528         * gnulib-tool (func_import): Avoid constructing complicated sed
62529         expressions inside backquote.
62530         Report and solution by Mark D. Baushke <mdb@gnu.org>.
62531
62532 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
62533
62534         These changes imported from libc.
62535         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
62536         test and two separate function calls.
62537         * lib/strndup.c (__strndup): Add libc_hidden_def.
62538
62539 2006-01-23  Simon Josefsson  <jas@extundo.com>
62540
62541         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
62542         Remove the test_*_SOURCES variable: automake infers it by default.
62543         * modules/tls-tests: Likewise.
62544
62545 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         Work around porting bugs reported by Dieter in
62548         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
62549         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
62550         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
62551         Include "getopt.h" first, to check interface.
62552         (getenv): Declare only if defined HAVE_DECL_GETENV &&
62553         !HAVE_DECL_GETENV.
62554         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
62555         (__strndup): Revert to K&R-style function dfns, the glibc style.
62556         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
62557         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
62558         Include strnlen.h first, to get prototype properly.
62559         (strnlen): Renamed from __strnlen.
62560         Remove weak alias.
62561
62562 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62563
62564         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
62565
62566 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * config/srclist.txt: Adjust to reflect glibc reorganization.
62569         This affects only comments.
62570
62571 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
62572
62573          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
62574          Reported by Bruce Korb <bkorb@gnu.org>.
62575
62576 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
62577
62578         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
62579         to pacify gcc -Wswitch-default.
62580
62581 2006-01-22  Bruno Haible  <bruno@clisp.org>
62582
62583         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
62584         temporary buffer for sprintf, take into account the precision also
62585         for 'd', 'i', 'u', 'o', 'x', 'X'.
62586
62587 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62588
62589         * modules/argp-tests: New module
62590         * tests/test-argp.c: New file
62591         * tests/test-argp-2.sh: New file
62592
62593 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
62594
62595         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
62596         (__argp_base_name): Removed
62597         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
62598         typo.
62599         (__argp_base_name): Provide macro definition or extern declaration
62600         depending on the configuration
62601
62602 2006-01-20  Simon Josefsson  <jas@extundo.com>
62603
62604         * modules/inet_ntop (Depends-on): Depend on sys_socket.
62605
62606 2006-01-20  Simon Josefsson  <jas@extundo.com>
62607
62608         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
62609
62610 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
62611
62612         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
62613         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
62614         Suggested by Bruno Haible.
62615
62616 2006-01-20  Karl Berry  <karl@gnu.org>
62617
62618         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
62619         until changes propagate, I guess.
62620
62621 2006-01-19  Simon Josefsson  <jas@extundo.com>
62622
62623         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
62624
62625 2006-01-19  Simon Josefsson  <jas@extundo.com>
62626
62627         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
62628
62629 2006-01-19  Simon Josefsson  <jas@extundo.com>
62630
62631         * gnulib-tool: Set check_PROGRAMS.
62632
62633         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62634         modules/des-tests, modules/gc-arcfour-tests,
62635         modules/gc-arctwo-tests, modules/gc-des-tests,
62636         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62637         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62638         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62639         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62640         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62641         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
62642         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
62643         test_*_SOURCES.
62644
62645 2006-01-18  Simon Josefsson  <jas@extundo.com>
62646
62647         * modules/socklen (Depends-on): Depend on sys_socket.
62648
62649 2006-01-18  Simon Josefsson  <jas@extundo.com>
62650
62651         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
62652         modules/des-tests, modules/gc-arcfour-tests,
62653         modules/gc-arctwo-tests, modules/gc-des-tests,
62654         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
62655         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
62656         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
62657         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
62658         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
62659         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
62660         $(EXEEXT) to automake TESTS variable, for mingw32.
62661
62662 2006-01-17  Simon Josefsson  <jas@extundo.com>
62663
62664         * modules/socklen (Include): Need sys/socket.h.
62665
62666 2006-01-17  Bruno Haible  <bruno@clisp.org>
62667
62668         * modules/ssize_t (Include): Add <sys/types.h>.
62669
62670 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
62671
62672         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
62673         it's not portable and it doesn't work with cross-compiles.
62674         Problem reported by Bruno Haible.  Fix missing-$ typo in
62675         'test "gl_cv_ignore_unused_libraries" ...' that prevented
62676         -zignore from being used with Sun's C compiler.
62677
62678 2006-01-12  Simon Josefsson  <jas@extundo.com>
62679
62680         * lib/base64.c: Fix warning, reported by Bruno Haible
62681         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
62682
62683 2006-01-12  Bruno Haible  <bruno@clisp.org>
62684
62685         * modules/ldd: New file.
62686         * build-aux/ldd.sh.in: New file.
62687         * MODULES.html.sh (Support for building libraries and executables): Add
62688         ldd.
62689
62690 2006-01-12  Bruno Haible  <bruno@clisp.org>
62691
62692         * m4/ldd.m4: New file.
62693
62694 2006-01-12  Bruno Haible  <bruno@clisp.org>
62695
62696         * gnulib-tool (func_import, func_create_testdir): Don't go into an
62697         endless loop while replacing $auxdir with build-aux.
62698
62699 2006-01-11  Simon Josefsson  <jas@extundo.com>
62700
62701         * lib/stdint_.h (SIZE_MAX): Add missing (.
62702
62703 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
62704
62705         Sync from coreutils.
62706         * lib/md5.c: Fix commentary typos.
62707         (alignof, UNALIGNED_P): No need for a GCC-specific version.
62708         * lib/md5.h (__attribute__): Remove; unused.
62709         * lib/sha1.c: Fix commentary to match md5 better.
62710         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
62711         so that we don't need to worry about alignment.  All uses changed.
62712         This merges the 2005-10-28 md5 change into sha1.
62713
62714 2006-01-11  Jim Meyering  <jim@meyering.net>
62715
62716         Sync from coreutils.
62717         * lib/md5.c (OP): Fix spacing.
62718
62719 2006-01-11  Bruno Haible  <bruno@clisp.org>
62720
62721         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62722         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
62723         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
62724
62725 2006-01-11  Bruno Haible  <bruno@clisp.org>
62726
62727         Ensure automatic ordering between gl_LOCK and gl_ARGP.
62728         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
62729         the "early" section as well.
62730
62731 2006-01-11  Bruno Haible  <bruno@clisp.org>
62732
62733         Avoid "ar: no archive members specified" error on MacOS X.
62734         * gnulib-tool (func_modules_add_dummy): New function.
62735         (func_import, func_create_testdir): Invoke it.
62736
62737 2006-01-11  Bruno Haible  <bruno@clisp.org>
62738
62739         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
62740         with $auxdir in AC_CONFIG_FILES statements.
62741
62742 2006-01-11  Bruno Haible  <bruno@clisp.org>
62743
62744         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62745         Initialize also noinst_HEADERS to empty.
62746
62747 2006-01-11  Bruno Haible  <bruno@clisp.org>
62748
62749         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
62750         variables.
62751         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
62752         autoreconf.
62753
62754 2006-01-11  Bruno Haible  <bruno@clisp.org>
62755
62756         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
62757         overridable by the user.
62758         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62759
62760 2006-01-10  Simon Josefsson  <jas@extundo.com>
62761
62762         * modules/sys_socket: New file.
62763
62764 2006-01-10  Simon Josefsson  <jas@extundo.com>
62765
62766         * m4/sys_socket_h.m4: New file.
62767
62768 2006-01-10  Simon Josefsson  <jas@extundo.com>
62769
62770         * lib/socket_.h: New file.
62771
62772 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62773
62774         * modules/readutmp (Maintainer): Add myself.
62775
62776 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62777
62778         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
62779         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
62780         People who are still concerned with buggy memcmp implementations
62781         can invoke gl_FUNC_MEMCMP themselves.
62782
62783 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
62784
62785         * lib/regex_internal.h (BITSET_WORD_BITS):
62786         Work around a bug in 64-bit PGC (before version 6.1-2), where the
62787         preprocessor mishandles large unsigned values as if they were signed.
62788         Problem reported by Claudio Fontana in
62789         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
62790
62791 2006-01-10  Jim Meyering  <jim@meyering.net>
62792
62793         Avoid the double-free (first in fts_read, second in fts_close) that
62794         would occur when an `active' directory is made inaccessible (e.g.,
62795         via chmod a-x) during a traversal.
62796         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
62797         before returning.  Reproduce this failure by
62798         mkdir -p a/b; cd a; chmod a-x . b
62799         Reported by Stavros Passas.
62800
62801         Sync from coreutils.
62802         * lib/sha1.c: Tweak grammar in a comment.
62803
62804 2006-01-10  Jim Meyering  <jim@meyering.net>
62805
62806         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
62807         Patch by Joerg Sonnenberger.
62808
62809 2006-01-10  Bruno Haible  <bruno@clisp.org>
62810
62811         * modules/readutmp: Depend on module free.
62812         * modules/strtok_r: Depend on module restrict.
62813
62814 2006-01-10  Bruno Haible  <bruno@clisp.org>
62815
62816         * modules/gettext (configure.ac): Add an invocation of
62817         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
62818
62819 2006-01-10  Bruno Haible  <bruno@clisp.org>
62820
62821         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
62822         Reported by Werner Lemberg <wl@gnu.org>.
62823
62824 2006-01-10  Bruno Haible  <bruno@clisp.org>
62825
62826         * lib/localcharset.c: Update from GNU gettext.
62827
62828 2006-01-10  Bruno Haible  <bruno@clisp.org>
62829
62830         * lib/argp.h (__const): Remove macro. Use const instead.
62831         * lib/argp-fmtstream.h (__const): Likewise.
62832         * lib/glob_.h (__const): Remove macro.
62833         * lib/glob-libc.h: Use const instead of __const.
62834
62835 2006-01-10  Bruno Haible  <bruno@clisp.org>
62836
62837         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
62838         variable.
62839         Needed to avoid an automake error regarding the 'gettext' module.
62840
62841 2006-01-09  Simon Josefsson  <jas@extundo.com>
62842
62843         * modules/inet_ntop (Depends-on): Add restrict.
62844
62845 2006-01-09  Simon Josefsson  <jas@extundo.com>
62846
62847         * modules/gc-rijndael-tests (License): Put under LGPL.
62848
62849         * modules/gc-des-tests (License): Likewise.
62850
62851         * modules/gc-arcfour-tests (License): Likewise.
62852
62853         * modules/gc-arctwo-tests (License): Likewise.
62854
62855         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
62856
62857         * modules/gc-hmac-sha1-tests (Files): Likewise.
62858
62859         * modules/gc-hmac-md5-tests (License): Likewise.
62860
62861         * modules/gc-sha1-tests (License): Likewise.
62862
62863         * modules/gc-md5-tests (License): Likewise.
62864
62865         * modules/gc-md4-tests (License): Likewise.
62866
62867         * modules/gc-md2-tests (License): Likewise.
62868
62869         * modules/gc-tests (License): Likewise.
62870
62871         * modules/des-tests (License): Likewise.
62872
62873         * modules/md4-tests (License): Likewise.
62874
62875         * modules/md2-tests (License): Likewise.
62876
62877 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62878
62879         Sync from coreutils:
62880
62881         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
62882         * modules/lib-ignore: New file.
62883         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
62884         chdir-safer.m4, lchmod.m4.
62885         * modules/openat: Add mkdirat.c, openat-priv.h.
62886
62887 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62888
62889         Sync from coreutils.
62890         * m4/lib-ignore.m4: New file.
62891         * m4/lchmod.m4: New file.
62892
62893 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62894
62895         Sync from coreutils.
62896         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
62897         for write access: POSIX says that must fail.
62898         * lib/fts.c (diropen): Likewise.
62899         * lib/save-cwd.c (save_cwd): Likewise.
62900         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
62901         well, for minor improvements on hosts that lack O_DIRECTORY.
62902         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
62903         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
62904         Fall back on chown if open failed with EACCES.
62905
62906         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
62907         Report an error at compile-time if only a 1-second nominal clock
62908         resolution is found.
62909
62910         * lib/lchmod.h: New file.
62911         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
62912         (make_dir_parents): Use lchown rather than chown, and
62913         lchmod rather than chmod.
62914
62915         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
62916         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
62917         "proc" reported by n0dalus.
62918
62919         * lib/mountlist.c: Include <limits.h>.
62920         (dev_from_mount_options)
62921         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
62922         New function.  It no longer assumes "dev=" has the System V meaning
62923         on Linux (since it doesn't).  It also parses "dev=" more carefully.
62924         (read_file_system_list)
62925         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
62926         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
62927         dev= in that case.
62928
62929         * lib/posixtm.h (PDS_PRE_2000): New macro.
62930         * lib/posixtm.c (year): Arg is now syntax_bits rather than
62931         allow_century.  All usages changed.  Reject dates outside the range
62932         1969-1999 if PDS_PRE_2000 is used.
62933
62934 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62935
62936         Sync from coreutils.
62937         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
62938         (Time of day items): Mention the possibility of leap seconds.
62939         Problem reported by Dr. David Alan Gilbert.
62940
62941 2006-01-09  Jim Meyering  <jim@meyering.net>
62942
62943         Sync from coreutils.
62944
62945         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
62946
62947         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
62948
62949         * lib/modechange.c (mode_compile): Reject an invalid mode string
62950         that starts with an octal digit.  From Andreas Gruenbacher.
62951
62952         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
62953         and dup to open_safer and dup_safer, respectively.
62954         (openat_permissive): Fix typo in comment.
62955
62956         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
62957         "gettext.h"; either no longer needed or are guaranteed by openat.h.
62958         (_): Remove; no longer needed.
62959         (openat): Renamed from rpl_openat; no need for rpl_openat
62960         since openat.h renames openat for us.
62961         Replace most of the body with a call to openat_permissive,
62962         to avoid duplicate code.
62963         Port to (probably hypothetical) environments were mode_t is
62964         wider than int.
62965         (openat_permissive): Require mode arg, so that we can check
62966         types better.  Put it just after flags.  Change cwd failure
62967         indicator from pointer-to-bool to pointer-to-errno-value.
62968         All callers changed.
62969         Invoke openat_save_fail and/or openat_restore_fail if
62970         cwd_errno is null, so that openat can call us.
62971         (openat_permissive, fdopendir, fstatat, unlinkat):
62972         Simplify errno handling to avoid some duplicate code,
62973         as it's OK to set errno on success.
62974         * lib/openat.h: Revamp code so that function macros depend on
62975         __OPENAT_PREFIX only, not also on AT_FDCWD.
62976         (openat_ro): Remove.  Caller changed to use openat_permissive.
62977         (openat_permissive): Now a macro, if not a function.
62978         (openat_restore_fail, openat_save_fail): Now always functions,
62979         since mkdirat needs them even if __OPENAT_PREFIX is defined.
62980
62981         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
62982         and openat.c.
62983         * lib/mkdirat.c: Include openat-priv.h.
62984         Remove definitions of macros defined therein.
62985         * lib/openat.c: Likewise.
62986
62987         * lib/mkdirat.c (mkdirat): New file and function.
62988         * lib/openat.h (mkdirat): Declare.
62989
62990         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
62991
62992         * lib/openat.h (openat_permissive): Declare.
62993         (openat_ro): Define.
62994
62995         * lib/openat.c (EXPECTED_ERRNO): New macro.
62996         (openat_permissive): New function -- used in remove.c rewrite.
62997         (all functions): Set errno just before returning, only if there
62998         was an actual failure.
62999         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
63000
63001         Emulate openat-family functions using Linux's procfs, if possible.
63002         Idea and some code based on Ulrich Drepper's glibc changes.
63003
63004         * lib/openat.c: (BUILD_PROC_NAME): New macro.
63005         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
63006         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
63007         before falling back on save_cwd and restore_cwd.
63008         (fdopendir, fstatat, unlinkat): Likewise.
63009
63010         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
63011         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
63012
63013         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
63014         as second argument to va_arg.  Otherwise, some versions of gcc
63015         warn that `if this code is reached, the program will abort'.
63016
63017 2006-01-09  Jim Meyering  <jim@meyering.net>
63018
63019         Sync from coreutils.
63020         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
63021         Require openat-priv.h.
63022
63023 2006-01-09  Bruno Haible  <bruno@clisp.org>
63024
63025         * modules/strnlen (Include): Use strnlen.h.
63026
63027 2006-01-09  Bruno Haible  <bruno@clisp.org>
63028
63029         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
63030
63031 2006-01-09  Bruno Haible  <bruno@clisp.org>
63032
63033         * lib/sysexit_.h (EX_OK): New macro.
63034         Suggested by Martin Lambers <marlam@marlam.de>.
63035
63036 2006-01-09  Bruno Haible  <bruno@clisp.org>
63037
63038         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
63039         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
63040
63041 2006-01-09  Bruno Haible  <bruno@clisp.org>
63042
63043         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
63044         numbers.
63045
63046 2006-01-09  Bruno Haible  <bruno@clisp.org>
63047
63048         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
63049         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
63050         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
63051         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
63052
63053 2006-01-09  Bruno Haible  <bruno@clisp.org>
63054
63055         * build-aux/javacomp.sh.in: New file, moved from lib/.
63056         * modules/javacomp-script (Files): Update.
63057         (configure.ac): Add AC_CONFIG_FILES invocation.
63058         (EXTRA_DIST): Remove variable.
63059
63060         * build-aux/javaexec.sh.in: New file, moved from lib/.
63061         * modules/javaexec (Files): Update.
63062         (configure.ac): Add AC_CONFIG_FILES invocation.
63063         (EXTRA_DIST): Remove javaexec.sh.in.
63064
63065         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
63066         * modules/csharpcomp-script (Files): Update.
63067         (configure.ac): Add AC_CONFIG_FILES invocation.
63068         (EXTRA_DIST): Remove variable.
63069
63070         * build-aux/csharpexec.sh.in: New file, moved from lib/.
63071         * modules/csharpexec (Files): Update.
63072         (configure.ac): Add AC_CONFIG_FILES invocation.
63073         (EXTRA_DIST): Remove csharpexec.sh.in.
63074
63075 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63076
63077         Sync from coreutils.
63078
63079         Add POSIX ACL support
63080         * lib/acl.h (copy_acl, set_acl): Add declarations.
63081         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
63082         systems other than Linux.
63083         (chmod_or_fchmod): New function: use fchmod when possible,
63084         and chmod otherwise.
63085         (file_has_acl): Add a POSIX ACL implementation, with a
63086         Linux-specific subcase.
63087         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
63088         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
63089         acls are unsupported.
63090         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
63091         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
63092         are unsupported.
63093
63094 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
63095
63096         Sync from coreutils.
63097         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
63098
63099 2006-01-07  Bruno Haible  <bruno@clisp.org>
63100
63101         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
63102         gl_EARLY.
63103
63104 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         * lib/strftime.c (tzname): Don't declare if it is already #defined.
63107         Problem reported for Mingw by Mark Junker.
63108
63109 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
63110
63111         * README: Gnulib normally doesn't generate a tarball.
63112
63113 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
63114
63115         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
63116         long int, not int, for nanosecond counts, so that people who are
63117         used to POSIX struct timespec won't be surprised.  Reported by Jim
63118         Meyering.
63119
63120 2005-12-28  Bruno Haible  <bruno@clisp.org>
63121
63122         * build-aux/config.rpath: Update from GNU gettext.
63123
63124 2005-12-16  Jim Meyering  <jim@meyering.net>
63125
63126         * modules/fprintftime: New module.
63127         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
63128
63129 2005-12-16  Jim Meyering  <jim@meyering.net>
63130
63131         * m4/fprintftime.m4: New file.
63132
63133 2005-12-16  Jim Meyering  <jim@meyering.net>
63134
63135         * lib/fprintftime.c, lib/fprintftime.h: New files.
63136
63137 2005-12-15  Simon Josefsson  <jas@extundo.com>
63138
63139         * modules/socklen (configure.ac): Fix M4 macro name, to align with
63140         new m4/socklen.m4.
63141
63142 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63143
63144         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
63145         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
63146
63147 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63148
63149         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
63150         * lib/argp-help.c (fill_in_uparams): Check if the constructed
63151         struct uparams is valid. Fall back to the default values if it is
63152         not.
63153
63154 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63155
63156         * modules/argp (Files): Add argp-pin.c
63157         (Depends-on): dirname
63158         (lib_SOURCES): Add argp-pin.c
63159
63160 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63161
63162         * m4/argp.m4:  Check if program_invocation_name and
63163         program_invocation_short_name are declared and define appropriate
63164         macros if they are not.
63165
63166 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
63167
63168         * lib/argp-help.c (__argp_base_name): New function
63169         (__argp_short_program_name): Rewrite using __argp_base_name
63170         * lib/argp-namefrob.h: Define program_invocation_name and
63171         program_invocation_short_name if requested
63172         (__argp_base_name): Add prototype
63173         * lib/argp-parse.c (argp_def): Use gettext wrappers
63174         (argp_default_parser): Use __argp_base_name
63175         * lib/argp-pin.c: New file. Defines program_invocation_name and
63176         program_invocation_short_name on systems that lack them.
63177
63178 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
63181         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63182         porting problem reported by Georg Schwarz in
63183         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63184
63185 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
63186
63187         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
63188         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
63189         porting problem reported by Georg Schwarz in
63190         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
63191
63192 2005-12-05  Bruno Haible  <bruno@clisp.org>
63193
63194         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
63195         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
63196         Reported by Mark Junker <mjscod@gmx.de>.
63197
63198 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
63199
63200         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
63201         Use implementation from Albert Chin, with some
63202         comments/corrections by Stepan Kasal and myself.
63203
63204 2005-12-02  Bruno Haible  <bruno@clisp.org>
63205
63206         * gnulib-tool (func_import): Accept GPLed build tool modules when
63207         --lgpl is given.
63208         * modules/csharpcomp-script: New file.
63209         * modules/csharpcomp: Depend on it.
63210         * modules/javacomp-script: New file.
63211         * modules/javacomp: Depend on it.
63212         Suggested by Simon Josefsson.
63213
63214 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63215
63216         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
63217         statement, to work around an HP-UX 10.20 compiler bug reported by
63218         Peter O'Gorman.
63219
63220 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63221
63222         * modules/savedir (Depends-on): Add openat.
63223
63224 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
63225
63226         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
63227         (uintmax_t) [defined uintmax_t]: Do not declare.
63228         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
63229         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
63230         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
63231         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
63232         sake of portability to weird hosts that C allows (though we don't
63233         know of any practical examples).
63234
63235         * lib/savedir.h (fdsavedir): New decl.
63236         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
63237         contains most of the former guts of savedir.
63238         (savedir): Use savedirstream.
63239         Include "openat.h".
63240
63241 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63242
63243         * modules/obstack (Files): Add m4/ulonglong.m4.
63244         Problem reported by Davide Angelocola.
63245
63246 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
63249         coreutils no longer futzes with rounding modes.
63250
63251 2005-11-14  Jim Meyering  <jim@meyering.net>
63252
63253         * lib/mkstemp-safer.c: Include <config.h>, required for possible
63254         replacement of mkstemp.
63255
63256 2005-11-10  Simon Josefsson  <jas@extundo.com>
63257
63258         * lib/readline.c: Remove EOL.
63259
63260 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         * modules/gethrxtime (Depends-on): Add gettime.
63263
63264 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63265
63266         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
63267         or gettimeofday; no longer needed.
63268
63269 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
63270
63271         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
63272         time business.
63273         (gethrxtime) [! (HAVE_NANOUPTIME
63274         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
63275         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
63276         our own approximation.
63277
63278 2005-11-08  Eric Blake  <ebb9@byu.net>
63279
63280         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63281
63282 2005-11-08  Eric Blake  <ebb9@byu.net>
63283
63284         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
63285
63286 2005-11-04  Bruno Haible  <bruno@clisp.org>
63287
63288         * gnulib-tool: Implement --update mode.
63289
63290 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63291
63292         Fix porting problem reported by Theodoros V. Kalamatianos.
63293         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
63294         Don't assume that futimes failing means we must fail.
63295
63296 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
63297
63298         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
63299         variables to suggest the intended function of the PATH_MAX check.
63300
63301 2005-10-30  Kean Johnston  <jkj@sco.com>
63302
63303         Trivial changes to support SCO systems.
63304         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
63305         as PATH_MAX.
63306         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
63307         where __ptr is null when no I/O is pending.
63308
63309 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
63310
63311         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
63312         leave errno alone.  Problem reported by Dmitry V. Levin.
63313
63314 2005-10-28  Simon Josefsson  <jas@extundo.com>
63315
63316         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
63317         Test more.
63318
63319         * tests/test-gc-md2.c, tests/test-md2.c: New files.
63320
63321         * modules/md2, modules/md2-tests: New files.
63322
63323 2005-10-28  Simon Josefsson  <jas@extundo.com>
63324
63325         * m4/inet_ntop.m4: More tests.
63326
63327         * m4/gc-md2.m4, md2.m4: New file.
63328
63329 2005-10-28  Simon Josefsson  <jas@extundo.com>
63330
63331         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
63332         "restrict" keywords, as per POSIX.  Protect the function
63333         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
63334         Don't use K&R prototypes.  Check the sprintf return values.
63335         Re-define EAFNOSUPPORT if not present.  Indent.
63336
63337         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
63338         suggested by Bruno Haible <bruno@clisp.org>.
63339
63340         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
63341
63342         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
63343
63344         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
63345         libgcrypt).
63346
63347         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
63348
63349         * lib/md2.h, lib/md2.c: New files.
63350
63351 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
63352
63353         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
63354         errno alone.  Problem reported by Frederic Jolliton.
63355
63356 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63357
63358         * modules/verify (License): Change from GPL to LGPL.  This is a
63359         tiny module and there are apparently near-equivalents that are
63360         under the BSD license.
63361
63362 2005-10-24  Simon Josefsson  <jas@extundo.com>
63363
63364         * modules/sha1: Relicense to LGPL.
63365
63366 2005-10-24  Simon Josefsson  <jas@extundo.com>
63367
63368         * lib/md4.h: Shrink buffer size, now that we changed the type.
63369
63370 2005-10-23  Simon Josefsson  <jas@extundo.com>
63371
63372         * gnulib-tool (func_import): Fix --tests-base.
63373
63374 2005-10-22  Simon Josefsson  <jas@extundo.com>
63375
63376         * modules/arcfour (Depends-on): Need stdint.
63377
63378 2005-10-22  Simon Josefsson  <jas@extundo.com>
63379
63380         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
63381         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
63382
63383 2005-10-22  Simon Josefsson  <jas@extundo.com>
63384
63385         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
63386         suggested by Bruno Haible <bruno@clisp.org>.
63387
63388 2005-10-22  Simon Josefsson  <jas@extundo.com>
63389
63390         * lib/crc.h: Include stddef.h, for size_t.
63391
63392 2005-10-22  Simon Josefsson  <jas@extundo.com>
63393
63394         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
63395         arcfour_context struct (simplify test vector testing in GNU
63396         Shishi).
63397
63398 2005-10-21  Simon Josefsson  <jas@extundo.com>
63399
63400         * modules/des, modules/des-tests: New files.
63401
63402         * modules/gc-des, modules/gc-des-tests: New files.
63403
63404         * tests/test-des.c, tests/test-gc-des.c: New file.
63405
63406 2005-10-21  Simon Josefsson  <jas@extundo.com>
63407
63408         * modules/arctwo, modules/arctwo-tests: New files.
63409
63410         * tests/test-arctwo.c: New file.
63411
63412         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
63413
63414         * tests/test-gc-arctwo.c: New file.
63415
63416 2005-10-21  Simon Josefsson  <jas@extundo.com>
63417
63418         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
63419         Bruno Haible <bruno@clisp.org>.
63420
63421         * m4/gc-des.m4: New file.
63422
63423 2005-10-21  Simon Josefsson  <jas@extundo.com>
63424
63425         * m4/arctwo.m4: New file.
63426
63427         * m4/gc-arctwo.m4: New file.
63428
63429 2005-10-21  Simon Josefsson  <jas@extundo.com>
63430
63431         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
63432         block.
63433
63434 2005-10-21  Simon Josefsson  <jas@extundo.com>
63435
63436         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
63437         <bruno@clisp.org>.
63438
63439         * lib/hmac-sha1.c (hmac_sha1): Likewise.
63440
63441         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
63442         Bruno Haible <bruno@clisp.org>.
63443
63444         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
63445         <bruno@clisp.org>.
63446
63447 2005-10-21  Simon Josefsson  <jas@extundo.com>
63448
63449         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
63450
63451 2005-10-21  Simon Josefsson  <jas@extundo.com>
63452
63453         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
63454
63455 2005-10-21  Simon Josefsson  <jas@extundo.com>
63456
63457         * lib/des.h, lib/des.c: New files.
63458
63459         * lib/gc-gnulib.c: Support DES.c
63460
63461 2005-10-21  Simon Josefsson  <jas@extundo.com>
63462
63463         * lib/arctwo.h, lib/arctwo.c: New files.
63464
63465         * lib/gc-gnulib.c: Support ARCTWO.
63466
63467 2005-10-21  Simon Josefsson  <jas@extundo.com>
63468
63469         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
63470         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63471
63472 2005-10-21  Simon Josefsson  <jas@extundo.com>
63473
63474         * gnulib-tool (func_import, func_create_testdir): Define automake
63475         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
63476         Makefile.am snippet),
63477         suggested by Bruno Haible <bruno@clisp.org>.
63478
63479         * modules/gc (Makefile.am): Use it.
63480
63481 2005-10-21  Bruno Haible  <bruno@clisp.org>
63482
63483         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
63484         patch.
63485
63486 2005-10-19  Simon Josefsson  <jas@extundo.com>
63487
63488         * tests/test-gc-rijndael.c: New file.
63489
63490         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
63491
63492 2005-10-19  Simon Josefsson  <jas@extundo.com>
63493
63494         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
63495         interface too.
63496
63497 2005-10-19  Simon Josefsson  <jas@extundo.com>
63498
63499         * tests/test-gc-arcfour.c: New file.
63500
63501         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
63502
63503 2005-10-19  Simon Josefsson  <jas@extundo.com>
63504
63505         * modules/gc-md4, modules/gc-md4-tests: New file.
63506
63507         * tests/test-gc-md4.c: New file.
63508
63509 2005-10-19  Simon Josefsson  <jas@extundo.com>
63510
63511         * m4/gc-md4.m4: New file.
63512
63513 2005-10-19  Simon Josefsson  <jas@extundo.com>
63514
63515         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
63516         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
63517         <kasal@ucw.cz>.
63518
63519 2005-10-19  Simon Josefsson  <jas@extundo.com>
63520
63521         * m4/gc-arcfour.m4: New file.
63522
63523         * m4/gc-rijndael.m4: New file.
63524
63525 2005-10-19  Simon Josefsson  <jas@extundo.com>
63526
63527         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
63528
63529 2005-10-19  Simon Josefsson  <jas@extundo.com>
63530
63531         * lib/gc-gnulib.c: Support ARCFOUR.
63532
63533 2005-10-19  Simon Josefsson  <jas@extundo.com>
63534
63535         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
63536         support.
63537
63538         * lib/gc.h: Add ECB enum type.
63539
63540         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
63541
63542 2005-10-18  Simon Josefsson  <jas@extundo.com>
63543
63544         * tests/test-md5.c: New file.
63545
63546         * modules/md5-tests: New file.
63547
63548 2005-10-18  Simon Josefsson  <jas@extundo.com>
63549
63550         * tests/test-md4.c: New file.
63551
63552         * modules/md4, modules/md4-tests: New files.
63553
63554 2005-10-18  Simon Josefsson  <jas@extundo.com>
63555
63556         * m4/md4.m4: New file.
63557
63558 2005-10-18  Simon Josefsson  <jas@extundo.com>
63559
63560         * lib/md4.h, lib/md4.c: New files, based on md5.?.
63561
63562 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
63563
63564         * gnulib-tool (func_create_testdir): Omit the second check whether
63565         BUILT_SOURCES in nonempty.
63566
63567 2005-10-17  Simon Josefsson  <jas@extundo.com>
63568
63569         * tests/test-rijndael.c: New file.
63570
63571 2005-10-17  Simon Josefsson  <jas@extundo.com>
63572
63573         * modules/sha1: Depend on stdint instead of md5.
63574
63575         * modules/md5: Depend on stdint, remove uint32_t.
63576
63577 2005-10-17  Simon Josefsson  <jas@extundo.com>
63578
63579         * modules/gc-sha1-tests: New file.
63580
63581         * tests/test-gc-sha1.c: New file.
63582
63583 2005-10-17  Simon Josefsson  <jas@extundo.com>
63584
63585         * m4/md5.m4: Remove call to uint32_t.m4.
63586
63587 2005-10-17  Simon Josefsson  <jas@extundo.com>
63588
63589         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
63590
63591         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
63592         md5.h.
63593
63594         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
63595
63596         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
63597
63598 2005-10-17  Simon Josefsson  <jas@extundo.com>
63599
63600         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
63601
63602 2005-10-17  Simon Josefsson  <jas@extundo.com>
63603
63604         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
63605
63606 2005-10-17  Simon Josefsson  <jas@extundo.com>
63607
63608         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
63609
63610         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
63611
63612 2005-10-17  Bruno Haible  <bruno@clisp.org>
63613
63614         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
63615         that it can also be used in a test.
63616
63617 2005-10-16  Bruno Haible  <bruno@clisp.org>
63618
63619         * gnulib-tool (func_emit_tests_Makefile_am): Also define
63620         TESTS_ENVIRONMENT, so that individual tests can augment it.
63621
63622         * gnulib-tool (func_create_testdir): Use an intermediate target for
63623         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
63624         macros, like $(ALLOCA_H), which cannot be passed through the command
63625         line.
63626
63627 2005-10-15  Simon Josefsson  <jas@extundo.com>
63628
63629         * modules/rijndael-tests: New file.
63630
63631         * modules/rijndael: New file.
63632
63633 2005-10-15  Simon Josefsson  <jas@extundo.com>
63634
63635         * m4/rijndael.m4: New file.
63636
63637 2005-10-15  Simon Josefsson  <jas@extundo.com>
63638
63639         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
63640
63641         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
63642
63643 2005-10-14  Simon Josefsson  <jas@extundo.com>
63644
63645         * tests/test-arcfour.c: New file.
63646
63647         * modules/arcfour, modules/arcfour-tests: New files.
63648
63649 2005-10-14  Simon Josefsson  <jas@extundo.com>
63650
63651         * m4/arcfour.m4: New file.
63652
63653 2005-10-14  Simon Josefsson  <jas@extundo.com>
63654
63655         * lib/arcfour.h, lib/arcfour.c: New files.
63656
63657 2005-10-14  Roland McGrath  <roland@redhat.com>
63658
63659         Import from libc.  [BZ #1331]
63660         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
63661         macro argument.
63662         Reported by Matej Vela <vela@debian.org>.
63663
63664 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63665
63666         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
63667         include <wchar.h>; no longer needed.
63668
63669 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63670
63671         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
63672
63673 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
63674         and  Ulrich Drepper  <drepper@redhat.com>
63675
63676         Import from libc.
63677         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
63678         instead of inline stream orientation test and two separate
63679         function calls.  Pay no attention to USE_IN_LIBIO.
63680
63681 2005-10-13  Simon Josefsson  <jas@extundo.com>
63682
63683         * modules/gc-hmac-md5-tests: New file.
63684
63685         * tests/test-gc-hmac-sha1.c: New file.
63686
63687         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
63688
63689         * modules/gc-hmac-md5-tests: New file.
63690
63691         * tests/test-gc-md5.c: New file.
63692
63693         * modules/gc-md5-tests: New file.
63694
63695 2005-10-13  Simon Josefsson  <jas@extundo.com>
63696
63697         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
63698         Move memory allocation outside of loop.
63699
63700 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
63701
63702         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
63703         intermediate directory is in a read-only file system.  Problem
63704         reported by Eric Blake.
63705
63706 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
63707
63708         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
63709
63710 2005-10-12  Simon Josefsson  <jas@extundo.com>
63711
63712         * tests/test-hmac-sha1.c: New file.
63713
63714         * modules/hmac-sha1-tests: New file.
63715
63716         * modules/hmac-sha1: New file.
63717
63718 2005-10-12  Simon Josefsson  <jas@extundo.com>
63719
63720         * modules/gc-sha1: New file.
63721
63722 2005-10-12  Simon Josefsson  <jas@extundo.com>
63723
63724         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
63725
63726         * tests/test-gc-pbkdf2-sha1.c: New file.
63727
63728 2005-10-12  Simon Josefsson  <jas@extundo.com>
63729
63730         * modules/gc-md5, modules/gc-hmac-md5: New files.
63731
63732         * modules/gc (Files): Remove md5, memxor and hmac files.
63733
63734 2005-10-12  Simon Josefsson  <jas@extundo.com>
63735
63736         * m4/gc-pbkdf2-sha1.m4: New file.
63737
63738         * m4/gc-hmac-sha1.m4: New file.
63739
63740         * m4/gc-sha1: New file.
63741
63742         * m4/hmac-sha1.m4: New file.
63743
63744 2005-10-12  Simon Josefsson  <jas@extundo.com>
63745
63746         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
63747
63748         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
63749
63750 2005-10-12  Simon Josefsson  <jas@extundo.com>
63751
63752         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
63753         suggested by Bruno Haible <bruno@clisp.org>.
63754
63755 2005-10-12  Simon Josefsson  <jas@extundo.com>
63756
63757         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
63758
63759 2005-10-12  Simon Josefsson  <jas@extundo.com>
63760
63761         * lib/gc-pbkdf2-sha1.c: New file.
63762
63763         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
63764
63765 2005-10-12  Simon Josefsson  <jas@extundo.com>
63766
63767         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
63768
63769         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
63770
63771 2005-10-12  Simon Josefsson  <jas@extundo.com>
63772
63773         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
63774         GC_USE_HMAC_MD5, respectively.
63775
63776         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
63777         (gc_md5): Fix typo.
63778
63779         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
63780
63781         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
63782
63783         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
63784
63785 2005-10-12  Bruno Haible  <bruno@clisp.org>
63786
63787         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
63788         Reported by Stepan Kasal <kasal@ucw.cz>.
63789
63790 2005-10-11  Simon Josefsson  <jas@extundo.com>
63791
63792         * tests/test-crc.c: New file.
63793
63794         * modules/crc, modules/crc-tests: New files.
63795
63796 2005-10-11  Simon Josefsson  <jas@extundo.com>
63797
63798         * m4/crc.m4: New file.
63799
63800 2005-10-11  Simon Josefsson  <jas@extundo.com>
63801
63802         * lib/gc.h: Add gc_hash and gc_hash_buffer.
63803
63804         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
63805
63806         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
63807
63808 2005-10-11  Simon Josefsson  <jas@extundo.com>
63809
63810         * lib/crc.h, lib/crc.c: New files.
63811
63812         * lib/gc.h (gc_hash_buffer): Add doc.
63813
63814 2005-10-11  Bruno Haible  <bruno@clisp.org>
63815
63816         * modules/c-strcasestr: New file.
63817         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
63818
63819 2005-10-11  Bruno Haible  <bruno@clisp.org>
63820
63821         * modules/c-strcase: New file.
63822         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
63823
63824 2005-10-11  Bruno Haible  <bruno@clisp.org>
63825
63826         * lib/strcasecmp.c: Include limits.h.
63827         (strcasecmp): Avoid integer overflow on exotic platforms.
63828         * lib/strncasecmp.c: Include limits.h.
63829         (strncasecmp): Avoid integer overflow on exotic platforms.
63830         Reported by Paul Eggert.
63831
63832 2005-10-11  Bruno Haible  <bruno@clisp.org>
63833
63834         * lib/c-strcasestr.h: New file, from GNU gettext.
63835         * lib/c-strcasestr.c: New file, from GNU gettext.
63836
63837 2005-10-11  Bruno Haible  <bruno@clisp.org>
63838
63839         * lib/c-strcase.h: New file, from GNU gettext.
63840         * lib/c-strcasecmp.c: New file, from GNU gettext.
63841         * lib/c-strncasecmp.c: New file, from GNU gettext.
63842
63843 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63844
63845         * modules/mempcpy (License): GPL -> LGPL.
63846         * modules/strchrnul (License): Likewise.
63847         * modules/sysexits (License): Likewise.
63848
63849 2005-10-08  Simon Josefsson  <jas@extundo.com>
63850
63851         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
63852
63853 2005-10-07  Simon Josefsson  <jas@extundo.com>
63854
63855         * m4/memxor.m4: Remove gl_C_RESTRICT call.
63856
63857 2005-10-06  Simon Josefsson  <jas@extundo.com>
63858
63859         * tests/test-hmac-md5.c: New file.
63860
63861         * modules/hmac-md5-tests: New file.
63862
63863         * modules/hmac-md5: New file.
63864
63865 2005-10-06  Simon Josefsson  <jas@extundo.com>
63866
63867         * m4/hmac-md5.m4: New file.
63868
63869         * m4/memxor.m4: Require gl_C_RESTRICT.
63870
63871 2005-10-06  Simon Josefsson  <jas@extundo.com>
63872
63873         * lib/memxor.c (memxor): Avoid casts and warnings.
63874
63875 2005-10-06  Simon Josefsson  <jas@extundo.com>
63876
63877         * lib/hmac-md5.c: New file.
63878
63879         * lib/hmac.h: New file.
63880
63881 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
63884         promotes to int, not unsigned int, to catch the AIX 5.3
63885         compiler bug.
63886
63887 2005-10-05  Simon Josefsson  <jas@extundo.com>
63888
63889         * modules/memxor: New file.
63890
63891         * modules/iconv (Files): Move config.rpath to havelib, it is used
63892         there.
63893
63894         * modules/havelib (Files): Add config.rpath.
63895
63896 2005-10-05  Simon Josefsson  <jas@extundo.com>
63897
63898         * m4/memxor.m4: New file.
63899
63900 2005-10-05  Simon Josefsson  <jas@extundo.com>
63901
63902         * lib/memxor.c (memxor): Fix compiler error.
63903
63904         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
63905         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
63906
63907         * lib/memxor.h, lib/memxor.c: New files.
63908
63909         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
63910         we assume all systems have it, suggested by Jim Meyering
63911         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
63912         any systems lack sys/socket.h; mingw32 is known to lack it, but we
63913         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
63914         same reasons.
63915
63916 2005-10-05  Simon Josefsson  <jas@extundo.com>
63917
63918         * config/srclist.txt: Add glibc bug 1423 for md5.h.
63919
63920 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63921
63922         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
63923         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
63924         needed, since the source code now assumes these .h files.
63925
63926 2005-10-05  Derek Price  <derek@ximbiot.com>
63927
63928         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
63929
63930 2005-10-05  Bruno Haible  <bruno@clisp.org>
63931
63932         * modules/stdint (License): Change to LGPL.
63933
63934 2005-10-04  Simon Josefsson  <jas@extundo.com>
63935
63936         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
63937         D. Baushke" <mdb@gnu.org>.
63938
63939 2005-10-04  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/verify.h (verify_true): Provide alternative definition for C++.
63942
63943 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63944
63945         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
63946         (SSIZE_MAX): New macro, if not already defined.
63947         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
63948         than 2 GiB.
63949
63950 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63951
63952         Sync from coreutils.
63953         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
63954         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
63955         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
63956         ULLONG_MAX doesn't work with 2.7.2.1.
63957
63958 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63959
63960         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
63961         From Ben Pfaff.
63962
63963         * modules/exclude (Depends-on): Depend on verify.
63964         * modules/strtoimax (Depends-on): Likewise.
63965         * modules/utimecmp (Depends-on): Likewise.
63966
63967 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
63968
63969         * lib/exclude.c: Include verify.h.
63970         (verify): Remove.  All callers changed to use verify.h's version.
63971         * lib/strtoimax.c: Likewise.
63972         * lib/utimecmp.c: Likewis.e
63973
63974         Sync from coreutils.
63975         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
63976         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
63977         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
63978         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
63979         bother returning ENOSYS if settimeofday or stime fails; just let
63980         them return whatever errno they want to return.
63981         * lib/utimens.c: Include unistd.h, for dup2.
63982         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
63983         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
63984
63985 2005-10-02  Jim Meyering  <jim@meyering.net>
63986
63987         Sync from coreutils.
63988         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
63989         from glibc-2.2.5 that fails for read-only files.
63990
63991 2005-10-02  Jim Meyering  <jim@meyering.net>
63992
63993         Sync from coreutils.
63994         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
63995         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
63996         `#if HAVE_CONFIG_H'.
63997         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
63998         Remove AT_FDCWD test.
63999         Do not consume the fd unless successful.
64000         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
64001         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
64002         block, so that we don't even try to compile it if settimeofday is
64003         available.  This works around a compilation failure on OSF1 V5.1,
64004         due to stime requiring a `long int*' while tv_sec is `int'.
64005
64006 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
64007
64008         Sync from coreutils.
64009         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
64010         against `yes', rather than just testing for nonempty.
64011
64012 2005-10-01  Simon Josefsson  <jas@extundo.com>
64013
64014         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
64015         and Darwin.
64016
64017         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
64018         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
64019         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
64020         freeaddrinfo and gai_strerror are declared by the POSIX headers.
64021         Check if struct addrinfo is declared.
64022
64023 2005-10-01  Simon Josefsson  <jas@extundo.com>
64024
64025         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
64026         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
64027         AI_* and EAI_* definitions.  Protect function declarations.
64028
64029 2005-10-01  Jim Meyering  <jim@meyering.net>
64030
64031         Sync from coreutils.
64032
64033         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
64034         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
64035         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
64036         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64037         in the inet and nsl libraries.  Required on Solaris 5.7.
64038
64039 2005-10-01  Jim Meyering  <jim@meyering.net>
64040
64041         Sync from coreutils.
64042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
64043         in the inet and nsl libraries.  Required on Solaris 5.7.
64044
64045 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
64046
64047         * lib/getdelim.c (getdelim): Remove unused variables.
64048
64049 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
64052         so that the code works even with ancient cpp.  Portability problem
64053         with GCC 2.7.2.1 reported by Thomas M.Ott.
64054
64055 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64056
64057         * modules/regex (Depends-on): Add strcase.
64058
64059         * modules/gethostname (Licence): Change from GPL to LGPL, since
64060         gethostname.c is a trivial implementation of a standard library
64061         function.
64062         * modules/poll (License): Change from GPL to LGPL, since it's
64063         derived from LGPL code.
64064
64065 2005-09-27  Jim Meyering  <jim@meyering.net>
64066
64067         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
64068         HAVE_CONFIG_H.
64069
64070         * lib/intprops.h (signed_type_or_expr__): Define.
64071         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
64072         for unsigned types.
64073
64074 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         * lib/verify.h (verify_expr): Remove, replacing with:
64077         (verify_true): New macro that returns true instead of void.
64078         (verify_type__): Remove.
64079         (verify): Use verify_true rather than verify_type__.
64080
64081 2005-09-26  Bruno Haible  <bruno@clisp.org>
64082
64083         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
64084         is necessary.
64085         (lib_SOURCES): Remove mbchar.c.
64086         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
64087         (Files): Add m4/mbrtowc.m4.
64088         * modules/mbiter: Likewise.
64089         * modules/mbuiter: Likewise.
64090
64091 2005-09-26  Bruno Haible  <bruno@clisp.org>
64092
64093         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
64094         compile mbchar.c if they are not both present.
64095         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
64096         * m4/mbiter.m4 (gl_MBITER): Likewise.
64097         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
64098         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
64099         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
64100
64101 2005-09-25  Jim Meyering  <jim@meyering.net>
64102
64103         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
64104         also uses socklen_t.
64105
64106 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         * lib/utimens.c (ENOSYS): Define if not already defined.
64109         (futimens): Support having a null PATH if the file descriptor
64110         is nonnegative.
64111
64112         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
64113         Remove.
64114         (__attribute): Define to empty unless GCC 3.1 or later.
64115         This works around a core dump on OpenBSD 3.4, which has GCC
64116         2.95.3, which dumps core when given __attribute__(()).  It also
64117         simplifies other tests, since we really don't want to bother with
64118         worrying about which ancient version of GCC supported what.
64119         Original problem reported by Yoann Vandoorselaere, with part of
64120         the fix suggested by Derek Price.
64121
64122 2005-09-24  Jim Meyering  <jim@meyering.net>
64123
64124         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
64125         so we can once again use a positive bitfield width of 1 -- now we
64126         don't have to explain why we were using a bitfield width of 2.
64127
64128 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64129
64130         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
64131         and similarly for the other external symbols.  Problem reported
64132         by James Gallager.
64133
64134         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
64135         bug reported by Jim Meyering.
64136
64137         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
64138         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
64139         not needed, since socklen is a prerequisite module.
64140
64141 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
64144         Problem reported by Eric Blake.
64145         (getaddrinfo): Initialize se so that it's not garbage.
64146         Redo internal storage allocation so that it doesn't make unportable
64147         assumptions about alignment.
64148         Fix a memory leak.
64149
64150         * lib/utimens.c (futimens): Use futimesat if available.
64151         Prefer it to futimes since it doesn't have the futimes bug.
64152
64153         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
64154         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
64155         Instead, declare a function that returns a pointer to an array,
64156         and use verify_type__ to declare the size of the array.
64157         Problem and germ of a solution reported by Bruno Haible.
64158         (verify_type__): Use 2, not 1, for bitfield size, to avoid
64159         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
64160
64161 2005-09-23  Jim Meyering  <jim@meyering.net>
64162
64163         Sync from coreutils.
64164         Correct build failure (socklen_t not defined) on at least
64165         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
64166         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
64167
64168 2005-09-23  Jim Meyering  <jim@meyering.net>
64169
64170         * modules/getaddrinfo (Depends-on): Add socklen.
64171
64172 2005-09-23  Bruno Haible  <bruno@clisp.org>
64173
64174         * tests/test-verify.c: New file.
64175
64176 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64177
64178         Sync from coreutils.
64179
64180         * modules/argmatch (Depends-on): Add verify.
64181         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
64182         unistd-safer.
64183         * modules/save-cwd (Depends-on): Likewise.
64184
64185         * modules/openat (Files): Add lib/openat-die.c.
64186         (Depends-on): Remove error, exitfail.
64187         Add dirname.
64188
64189         * modules/verify: New file.
64190         * MODULES.html.sh (Diagnostics <assert.h>): New section,
64191         with "verify" module.
64192
64193 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64194
64195         Sync from coreutils.
64196
64197         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
64198         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
64199         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
64200         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
64201         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
64202         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
64203         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
64204         Don't bother checking for string.h, stdlib.h, unistd.h.
64205         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
64206         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
64207         module's job.
64208         * m4/jm-macros.m4 (gl_MACROS): Likewise.
64209         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
64210
64211         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
64212         (gl_GETDATE): Use it.
64213
64214         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
64215
64216 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64217
64218         Sync from coreutils.
64219
64220         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
64221         stat-time.h.
64222         * lib/argmatch.h: Include verify.h
64223         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
64224         (ARGMATCH_ASSERT): Remove; unused.
64225         * lib/canonicalize.c: Assume STDC_HEADERS.
64226         * lib/exclude.c: Include "strcase.h".
64227         * lib/regex_internal.h [!defined _LIBC]: Likewise.
64228         * lib/getusershell.c: Include stdio--.h rather than stdio.h
64229         and stdio-safer.h.
64230         (getusershell): Call fopen, not fopen_safer.
64231         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
64232         Do not include unistd-safer.h.
64233         (save_cwd): Don't call fd_safer; no longer needed
64234         now that we include fcntl--.h.
64235
64236         * lib/getdate.y (relative_time): New type.
64237         (RELATIVE_TIME_0): New constant.
64238         (parser_control): Use relative_time instead of doing it ourselves.
64239         (%union): Add new relative_time rel member.
64240         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
64241         Now typeless.
64242         (relunit, relunit_snumber): Now of type rel.
64243         (zone, rel, relunit, get_date): Adjust to above changes.
64244
64245         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
64246         Do not include unistd-safer.h.
64247         (getloadavg): Don't call fd_safer; no longer needed
64248         now that we include fcntl--.h.
64249
64250         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
64251         (make_dir_parents): Treat ENOSYS like EEXIST.
64252
64253         Improve quality of diagnostics on restore_cwd failure.
64254         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
64255         (make_dir_parents): Last arg is now int * (for errno), not bool *.
64256         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
64257         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
64258         each time through the loop.  Do not diagnose restore_cwd failure;
64259         that is the caller's job (and perhaps the caller does not care).
64260
64261         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
64262         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
64263         If the file already exists but is not a directory, don't bother
64264         to try to make its parents.
64265         Close potential file descriptor leak if we can't chdir("/") (!).
64266         Don't always return true if chdir($PWD) fails; return true only
64267         if the requested action was done successfully (except for the
64268         chdir($PWD)).
64269         Don't log final directory unless we actually made it.
64270         Refactor to avoid duplicate code to fix up permissions.
64271         Don't attempt to fix up parent permissions if chdir($PWD) fails.
64272
64273         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
64274         to make it a bit faster and (I hope) clearer.
64275         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
64276         Fix bug in formats like %2N.
64277
64278         * lib/verify.h: New file.
64279
64280 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
64281
64282         Sync from coreutils.
64283         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
64284
64285 2005-09-22  Jim Meyering  <jim@meyering.net>
64286
64287         Sync from coreutils.
64288
64289         * m4/lstat.m4 (gl_FUNC_LSTAT):
64290         Use AC_LIBSOURCES to require lstat.c and lstat.h.
64291         Remove obsolete comment.
64292         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
64293         * m4/xstrtod.m4: Likewise.
64294
64295         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
64296
64297 2005-09-22  Jim Meyering  <jim@meyering.net>
64298
64299         Sync from coreutils.
64300
64301         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
64302
64303         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
64304         the .tm_year member, since otherwise gcc-4.0 would now warn about
64305         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
64306
64307         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
64308         order to avoid an unsuppressible warning from gcc on 64-bit systems.
64309
64310         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
64311         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
64312         when run in a time zone for which daylight savings time is in effect
64313         for the starting date.
64314
64315         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
64316         stop us from restricting permissions of just-created absolute-named
64317         directories.
64318         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
64319         to restore initial working directory.
64320         * lib/mkdir-p.c (make_dir_parents): New parameter:
64321         different_working_dir, to tell caller if/when we change the working
64322         directory and are unable to return to the initial one.
64323         * lib/mkdir-p.h (make_dir_parents): Update prototype.
64324         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
64325         `return false'.  This fixes a bug introduced on 2004-07-30.
64326
64327         * lib/openat.c (fdopendir): Be sure to close the supplied
64328         file descriptor before returning.  This makes our replacement
64329         implementation a little closer to Solaris's, where fdopendir
64330         ties the file descriptor to the returned DIR* pointer.
64331         * lib/openat.c (unlinkat): New function.
64332         * lib/openat.h (unlinkat): Add prototype.
64333         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
64334         (openat_restore_fail): Rename from openat_restore_die.
64335         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
64336
64337         Provide an alternative to exiting immediately upon save_cwd or
64338         restore_cwd failure.  Now, an application can arrange e.g.,
64339         to perform a longjump in that case.
64340         * lib/openat.c: Include dirname.h.
64341         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
64342         (rpl_openat, fdopendir, fstatat): Call openat_save_die
64343         and openat_restore_die rather than calling error directly.
64344         Don't include "error.h" or "exitfail.h"; they're no longer needed.
64345
64346         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
64347         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
64348         define.
64349
64350         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
64351         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
64352                             int utc, int nanoseconds);
64353         Background:
64354         date should not have to allocate a megabyte of virtual memory to
64355         handle a format argument like +%1048575T.  When implemented with
64356         strftime, it must allocate such a buffer, use strftime to fill it
64357         in, print it, then free it.
64358         With fprintftime, it simply prints everything and exits.
64359         With no need for memory allocation, that's one fewer way to fail.
64360         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
64361         optional field width, not before, so we accept %9:z, not %:9z.
64362         (my_strftime): Be sure to use L_('x') for literals.
64363
64364         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
64365         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
64366         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
64367         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
64368         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
64369         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
64370         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
64371         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
64372         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
64373         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
64374         * lib/xgethostname.c, lib/xreadlink.c:
64375         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
64376
64377         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
64378         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
64379         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
64380         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
64381         and don't include <sys/file.h>).
64382
64383 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
64384
64385         Sync from coreutils.
64386
64387         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
64388         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
64389         [!LDAV_DONE]: Avoid unused variable warning.
64390
64391 2005-09-21  Bruno Haible  <bruno@clisp.org>
64392
64393         * lib/unicodeio.h (unicode_to_mb): New declaration.
64394
64395 2005-09-20  Derek Price  <derek@ximbiot.com>
64396
64397         * lib/getaddrinfo.c: Don't include <netdb.h> included from
64398         getaddrinfo.h.
64399
64400 2005-09-20  Bruno Haible  <bruno@clisp.org>
64401
64402         * gnulib-tool: Remove trailing slashes from the values specified for
64403         --source-base, --m4-base, --tests-base, --aux-dir.
64404         Suggested by Simon Josefsson <jas@extundo.com>.
64405
64406 2005-09-20  Bruno Haible  <bruno@clisp.org>
64407
64408         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
64409         func_modules_to_filelist, func_import, func_create_testdir): Make all
64410         sorting results locale-independent, so that gnulib-cache.m4 doesn't
64411         change when gnulib-tool is invoked in a different locale.
64412
64413 2005-09-19  Simon Josefsson  <jas@extundo.com>
64414
64415         * m4/socklen.m4: Fix typo.
64416
64417 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64418
64419         Use a consistent style for including <config.h>.
64420         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
64421         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
64422         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
64423         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
64424         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
64425         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
64426         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
64427         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
64428         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
64429         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
64430         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
64431         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
64432         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
64433         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
64434         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
64435         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
64436         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
64437         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
64438         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
64439         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
64440         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
64441         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
64442         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
64443         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
64444         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
64445         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
64446         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
64447         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
64448         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
64449         lib/xstrtoumax.c, lib/yesno.c:
64450         Standardize inclusion of config.h.
64451         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
64452         lib/inttostr.h:  Removed inclusion of config.h from header files.
64453         * lib/inttostr.c:  Adjusted in-tree users.
64454         * lib/timespec.h: Remove superfluous warning to include config.h.
64455         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
64456         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
64457         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
64458         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
64459         config.h with HAVE_CONFIG_H.
64460
64461 2005-09-19  Jim Meyering  <jim@meyering.net>
64462
64463         * modules/pathmax (License): Change to LGPL.
64464
64465 2005-09-19  Derek Price  <derek@ximbiot.com>
64466
64467         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
64468
64469 2005-09-19  Bruno Haible  <bruno@clisp.org>
64470
64471         * gnulib-tool (import): Provide default for --tests-base.
64472
64473 2005-09-19  Bruno Haible  <bruno@clisp.org>
64474
64475         * doc/quote.texi: New file, extracted from gnulib.texi.
64476         * doc/ctime.texi: New file, extracted from gnulib.texi.
64477         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
64478         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
64479         * doc/gnulib.texi: Include them.
64480
64481 2005-09-18  Bruno Haible  <bruno@clisp.org>
64482
64483         Portability fix.
64484         * gnulib-tool (func_readlink): New function.
64485         (func_ln_if_changed): Use it.
64486
64487 2005-09-18  Bruno Haible  <bruno@clisp.org>
64488
64489         * gnulib-tool: Support --with-tests also with --import.
64490         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
64491         (func_import): Use variables $testsbase and $inctests. Emit a
64492         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
64493         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
64494         SUBDIRS += $testsdir.
64495         (func_create_testdir): Update.
64496
64497 2005-09-18  Bruno Haible  <bruno@clisp.org>
64498
64499         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
64500         instead of $dry_run.
64501         (func_cp_if_changed, func_mv_if_changed): Remove functions.
64502         (func_ln_if_changed): Don't handle dry-run here.
64503         (func_import): In dry-run mode, detect more precisely which actions
64504         would be performed, and don't use "...ing" verbs.
64505
64506 2005-09-18  Bruno Haible  <bruno@clisp.org>
64507
64508         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
64509         (func_import): Use join on two temporary files instead of three nested
64510         loops, in order to determine which files are new or old.
64511
64512 2005-09-18  Bruno Haible  <bruno@clisp.org>
64513
64514         * gnulib-tool (func_import): Comment out code that spits out the
64515         new files with --dry-run.
64516
64517 2005-09-18  Bruno Haible  <bruno@clisp.org>
64518
64519         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
64520
64521 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64522
64523         * lib/stat-time.h: New file.
64524         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
64525         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
64526         in a different way.
64527         (timespec_cmp): New function.
64528         * lib/utimecmp.c: Include stat-time.h.
64529         (SYSCALL_RESOLUTION): Depend on whether various struct stat
64530         members exist, not on the obsolescent ST_MTIM_NSEC.
64531         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
64532
64533 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64534
64535         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
64536
64537 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         * MODULES.html.sh (File system functions): Add stat-time.
64540         * modules/stat-time: New file.
64541         * modules/timespec (Files): Remove m4/st_mtim.m4; this
64542         is now done in a different way, by the stat-time module.
64543         * modules/utimecmp (Depends-on): Add stat-time.
64544
64545 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64546
64547         * m4/st_mtim.m4: Remove.  Superseded by...
64548         * m4/stat-time.m4: New file.
64549         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
64550         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
64551
64552 2005-09-15  Derek Price  <derek@ximbiot.com>
64553
64554         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
64555
64556 2005-09-15  Derek Price  <derek@ximbiot.com>
64557
64558         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
64559         * lib/regex_internal.c: Ditto, using this...
64560         (__GNUC_PREREQ): ...new macro.
64561         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
64562         using...
64563         (__GNUC_PREREQ): ...this new macro.
64564
64565         * lib/strstr.h: Include string.h. Define strstr as a macro here.
64566
64567 2005-09-15  Derek Price  <derek@ximbiot.com>
64568             Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
64571         changes, consolidating in...
64572         * lib/regex_internal.h: ...this file.
64573
64574 2005-09-13  Jim Meyering  <jim@meyering.net>
64575
64576         * lib/canon-host.c: Filter through gnu indent and reword comments
64577         slightly.
64578         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
64579
64580 2005-09-13  Derek Price  <derek@ximbiot.com>
64581
64582         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
64583         failure.
64584         Reported by Jim Meyering  <jim@meyering.net>.
64585
64586 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
64587
64588         * lib/base64.c: Typo.
64589         (base64_encode): Put b64str in initialized data section.
64590
64591 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64592
64593         Merge glibc and coreutils changes into gnulib, plus a few
64594         extra fixes.
64595         * lib/md5.c: Use #error rather than a string.
64596         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
64597         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
64598         (__attribute__): Define to empty for non recent-GCC.
64599         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
64600         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
64601         Renamed from their non-__ counterparts, with new macros replacing
64602         them if not _LIBC.  Add __THROW attribute.
64603         (rol): Remove.
64604         (struct md5_ctx): Align buffer if using GCC.
64605         * lib/sha1.h (struct sha1_ctx): Likewise.
64606         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
64607         The old name was backwards.
64608         (NOTSWAP): Remove; not used.
64609         (rol): New macro, moved here from md5.h.
64610         (sha1_process_block): Remove a FIXME that doesn't make sense.
64611
64612 2005-09-12  Derek Price  <derek@ximbiot.com>
64613
64614         Return usable errors from canon-host.
64615         * lib/canon-host.h: New file.
64616         * lib/canon-host.c (canon_host): Wrap...
64617         (canon_host_r): ...this new function, which now relies exclusively on
64618         getaddrinfo.
64619         (ch_strerror): New function.
64620         (last_cherror): New global.
64621         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
64622         interface.
64623         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
64624         void *.
64625         (freeaddrinfo): Free ai->ai_canonname when set.
64626
64627 2005-09-12  Derek Price  <derek@ximbiot.com>
64628
64629         Make canon-host require getaddrinfo.
64630         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
64631         AC_LIBSOURCE canon-host.h.  Call...
64632         (gl_PREREQ_CANON_HOST): ...this new function, which requires
64633         gl_GETADDRINFO.
64634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
64635
64636 2005-09-12  Derek Price  <derek@ximbiot.com>
64637
64638         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
64639         LGPL.
64640         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
64641
64642 2005-09-12  Derek Price  <derek@ximbiot.com>
64643
64644         * lib/gai_strerror.c: Include config.h when available.  Include
64645         getaddrinfo.h before other headers to test interface.
64646         Reported by Larry Jones <lawrence.jones@ugs.com>.
64647
64648 2005-09-12  Derek Price  <derek@ximbiot.com>
64649             Paul Eggert  <eggert@cs.ucla.edu>
64650
64651         * modules/glob (Files): Add glob-libc.h.
64652
64653 2005-09-12  Derek Price  <derek@ximbiot.com>
64654             Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
64657         glob_.h, glob-libc.h.
64658         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
64659
64660 2005-09-12  Derek Price  <derek@ximbiot.com>
64661             Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
64664         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
64665         protecting things that should be done only in gnulib contexts.
64666         * lib/glob_.h: New file, containing only the glob things needed for
64667         gnulib.
64668         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
64669         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
64670         (glob, globfree, glob_pattern_p): Now defined simply in terms of
64671         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
64672         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
64673         and to respect the namespace rules better.
64674
64675 2005-09-08  Simon Josefsson  <jas@extundo.com>
64676
64677         * modules/socklen: New file.
64678
64679 2005-09-08  Simon Josefsson  <jas@extundo.com>
64680
64681         * m4/socklen.m4: New file.
64682
64683 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64684
64685         * modules/utimens (Files): Add m4/utimbuf.m4, since
64686         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
64687         Reported by Sergey Poznyakoff.
64688
64689 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64690
64691         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
64692         definitions, since that's the preferred style in glibc.
64693         Fix a minor spacing issue, and update copyright notice to match
64694         glibc's.
64695
64696 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64697
64698         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
64699
64700 2005-09-06  Simon Josefsson  <jas@extundo.com>
64701
64702         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
64703         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
64704
64705 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64706
64707         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
64708         warning.
64709
64710 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * config/srclist.txt: Add glibc bug 1302.
64713
64714 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         Change bitset word type from unsigned int to unsigned long int,
64717         as this has better performance on typical 64-bit hosts.
64718         Port bitset code to hosts with unusual word sizes.
64719         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
64720         (build_collating_symbol):
64721         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
64722         argument is a bitset.  This is merely a style issue, but it makes
64723         it clearer that an entire array is expected.
64724         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
64725         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
64726         Port to the case where bitset_word is not the same as unsigned int.
64727         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
64728         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
64729         Likewise.
64730         * lib/regexec.c (check_dst_limits_calc_pos_1,
64731         check_subexp_matching_top):
64732         (build_trtable, group_nodes_into_DFAstates):
64733         Likewise.
64734         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
64735         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
64736         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
64737         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
64738         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
64739         * lib/regcomp.c (optimize_subexps, lower_subexp):
64740         Work even if bitset_word has holes in its bitwise representation.
64741         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
64742         * lib/regexec.c (check_dst_limits_calc_pos_1,
64743         check_subexp_matching_top):
64744         Likewise.
64745         * lib/regex_internal.c (re_string_reconstruct):
64746         Don't assume UCHAR_MAX == 255.
64747         * lib/regex_internal.h (bitset_set_all): Likewise.
64748         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
64749         All uses changed.
64750         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
64751         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
64752         All uses changed.
64753         (BITSET_WORD_MAX): New macro.
64754         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
64755         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
64756         (bitset_empty, bitset_copy):
64757         Prefer sizeof (bitset) to multiplying it out ourselves.
64758         (bitset_not_merge): Remove; unused.
64759         (bitset_contain): Return bool, not unsigned int with one bit on.
64760         All callers changed.
64761         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
64762         alignment than re_node_set; do this by defining a new internal
64763         type struct dests_alloc and using it to allocate memory.
64764
64765 2005-09-05  Bruno Haible  <bruno@clisp.org>
64766
64767         * gnulib-tool (func_import): Fix comparison in handling of symbolic
64768         links.
64769
64770 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
64771
64772         * modules/size_max (Makefile.am): Add size_max.h
64773
64774 2005-09-04  Derek Price  <derek@ximbiot.com>
64775
64776         * gnulib-tool (func_import): Fix reversed $symbolic logic.
64777
64778 2005-09-03  Simon Josefsson  <jas@extundo.com>
64779
64780         * gnulib-tool: Fix typo.
64781
64782 2005-09-03  Simon Josefsson  <jas@extundo.com>
64783
64784         * config/srclist.txt: Add glibc bug 1293.
64785
64786 2005-09-03  Derek Price  <derek@ximbiot.com>
64787
64788         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
64789         From Larry Jones <lawrence.jones@ugs.com>.
64790
64791 2005-09-02  Simon Josefsson  <jas@extundo.com>
64792
64793         * modules/socklen: New file.
64794
64795 2005-09-02  Simon Josefsson  <jas@extundo.com>
64796
64797         * modules/havelib: New module.
64798
64799         * modules/gettext, modules/iconv, modules/lock, modules/readline:
64800         Use havelib.
64801
64802 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         Check for arithmetic overflow when calculating sizes, to prevent
64805         some buffer-overflow issues.  These patches are conservative, in the
64806         sense that when I couldn't determine whether an overflow was possible,
64807         I inserted a run-time check.
64808         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
64809         macros.
64810         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
64811         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
64812         (re_xnrealloc, re_x2nrealloc): New inline functions.
64813         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
64814         parse_bracket_exp):
64815         (build_equiv_class, build_charclass): Check for arithmetic overflow
64816         in size expression calculations.
64817         * lib/regex_internal.c (re_string_realloc_buffers):
64818         (build_wcs_upper_buffer, re_node_set_add_intersect):
64819         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
64820         (re_dfa_add_node, register_state): Likewise.
64821         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
64822         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
64823         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
64824         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
64825
64826 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64827
64828         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
64829         m4/ulonglong.m4.  Problem reported by Martin Lambers.
64830
64831 2005-09-02  Bruno Haible  <bruno@clisp.org>
64832
64833         Support for lib vs. lib64 distinction on biarch platforms.
64834         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
64835         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
64836         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
64837
64838 2005-09-02  Bruno Haible  <bruno@clisp.org>
64839
64840         * gnulib-tool (import): In the other first-use case, provide defaults
64841         as well.
64842
64843 2005-09-02  Bruno Haible  <bruno@clisp.org>
64844
64845         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
64846         patches not yet found in the latest gettext release.
64847
64848 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64849
64850         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
64851         to avoid a collision with bits/local_lim.h in glibc.
64852         All uses changed.  Problem reported by Dmitry V. Levin in
64853         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
64854
64855         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
64856         bugs in int versus size_t comparisons.
64857         (re_string_context_at): Fix bug where the code assumed that
64858         Idx is signed.
64859
64860         Use bool where appropriate.
64861         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
64862         All callers changed.
64863         (calc_eclosure_iter): Likewise, for ROOT arg.
64864         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
64865         (build_charclass_op): Likewise, for NON_MATCH arg.
64866         * lib/regex_internal.c (re_string_allocate, re_string_construct):
64867         (re_string_construct_common): Likewise, for ICASE arg.
64868         * lib/regexec.c (re_search_2_stub, re_search_stub):
64869         Likewise, for RET_LEN arg.
64870         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
64871         (set_regs): Likewise, for FL_BACKTRACK arg.
64872         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
64873         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
64874         (calc_eclosure_iter, parse_bracket_exp):
64875         Use bool for internal variables that are booleans.
64876         * lib/regexec.c (re_search_internal, check_matching,
64877         proceed_next_node):
64878         (set_regs, build_sifted_states, sift_states_bkref):
64879         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
64880         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
64881         (find_collation_sequence_value):
64882         Likewise.
64883         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
64884         (re_node_set_compare):
64885         Return bool, not int. All callers changed.
64886         * lib/regexec.c (check_halt_node_context, check_dst_limits):
64887         (build_trtable, check_node_accept): Likewise.
64888         * lib/regex_internal.h: Include stdbool.h.
64889
64890         Fix bugs uncovered when converting to bool.
64891         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
64892         failure instead of charging ahead blindly.
64893         * lib/regex_internal.c (register_state): Likewise.
64894         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
64895         for freeing internal storage.
64896         (group_nodes_into_DFA_states): Use unsigned int, not int, for
64897         bitset pieces used as boolean, to avoid undefined behavior
64898         on hosts that do int overflow checking.
64899
64900 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64901
64902         * config/srclist.txt: Add glibc bugs 1285-1287.
64903
64904 2005-09-01  Jim Meyering  <jim@meyering.net>
64905
64906         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
64907         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
64908         Require gl_STAT_MACROS, too.
64909
64910 2005-09-01  Bruno Haible  <bruno@clisp.org>
64911
64912         * gnulib-tool (import): In the first-use case, provide defaults.
64913
64914 2005-09-01  Bruno Haible  <bruno@clisp.org>
64915
64916         * gnulib-tool (func_import): Remove the .tmp files.
64917
64918 2005-09-01  Bruno Haible  <bruno@clisp.org>
64919
64920         * gnulib-tool (func_import): Fix handling of symbolic links.
64921
64922 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
64925         old glibc regex code mishandles strings longer than 2**31 bytes.
64926         This patch fixes this when the regex code is used in gnulib
64927         (i.e., outside glibc).
64928
64929         This patch should not affect the use of the regex code inside
64930         glibc.  No doubt this problem also needs to be handled for glibc
64931         as well, but the result will be an incompatible change to the
64932         glibc ABI, and the old ABI will have to be supported too.  That
64933         can be the the subject for another patch.
64934
64935         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
64936         governing whether the rest of this patch is active.  By default,
64937         the macro is disabled and the patch has no effect.
64938         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
64939         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
64940         (struct re_pattern_buffer, re_search, re_search_2, re_match):
64941         (re_match_2, re_set_registers): Use the new types.
64942         * lib/regex_internal.h (Idx, re_hashval_t): New types.
64943         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
64944         New macros.
64945         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
64946         (re_string_context_at, bin_tree_t, re_dfastate_t):
64947         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
64948         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
64949         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
64950         (re_string_char_size_at, re_string_wchar_at):
64951         (re_string_elem_size_at):
64952         Use the new types and macros to port to 64-bit hosts.
64953         Use unsigned types for internal values, so that the code
64954         mostly works even for arrays larger than SSIZE_MAX.
64955         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
64956         (search_duplicated_node, calc_eclosure_iter, fetch_number):
64957         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
64958         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
64959         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
64960         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
64961         (calc_inveclosure, parse_dup_op, build_range_exp):
64962         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
64963         (fetch_number, create_token_tree, mark_opt_subexp):
64964         Likewise.
64965         * lib/regex_internal.c (re_string_construct_common,
64966         create_ci_newstate):
64967         (create_cd_newstate, re_string_allocate, re_string_construct):
64968         (re_string_realloc_buffers, build_wcs_upper_buffer):
64969         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
64970         (re_string_reconstruct, re_string_peek_byte_case):
64971         (re_string_fetch_byte_case, re_string_context_at):
64972         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
64973         (re_node_set_init_copy, re_node_set_add_intersect):
64974         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
64975         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
64976         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
64977         (re_acquire_state, re_acquire_state_context, register_state):
64978         Likewise.
64979         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
64980         search_cur_bkref_entry):
64981         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
64982         (re_search_internal, re_search_2_stub, re_search_stub)
64983         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
64984         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
64985         (update_cur_sifted_state, check_dst_limits):
64986         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
64987         (check_subexp_limits, sift_states_bkref, merge_state_array):
64988         (check_subexp_matching_top, get_subexp, get_subexp_sub):
64989         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
64990         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
64991         (expand_bkref_cache, check_node_accept_bytes):
64992         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
64993         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
64994         (acquire_init_state_context, check_halt_node_context):
64995         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
64996         (sift_states_backward, clean_state_log_if_needed):
64997         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
64998         (find_recover_state, transit_state_sb, transit_state_mb):
64999         (transit_state_bkref, build_trtable, match_ctx_clean):
65000         Likewise.
65001         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
65002         to work around an assumption that REG_MISSING is negative.
65003
65004         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
65005         (seek_collating_symbol_entry) [defined _LIBC]:
65006         (lookup_collation_sequence_value) [defined _LIBC]:
65007         (build_range_exp, build_collating_symbol) [defined _LIBC]:
65008         Use prototypes rather than old-style function definitions.
65009         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
65010         (transit_state_sb) [0]:
65011         (find_collation_sequence_value) [defined _LIBC]: Likewise.
65012
65013         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
65014         rm_eo.
65015
65016         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
65017         (optimize_subexps, lower_subexp):
65018         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
65019         since the signed shift might overflow.  Use 1u<<31 instead.
65020         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
65021         Likewise.
65022         * lib/regexec.c (check_dst_limits_calc_pos_1,
65023         check_subexp_matching_top): Likewise.
65024
65025         * lib/regcomp.c (optimize_subexps, lower_subexp):
65026         Use CHAR_BIT rather than 8, for clarity.
65027         * lib/regexec.c (check_dst_limits_calc_pos_1):
65028         (check_subexp_matching_top): Likewise.
65029         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
65030         have to worry about portability issues when shifting it left.
65031         Remove no-longer-needed test for table_size > 0.
65032         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
65033         in a word, as the resulting behavior is undefined.
65034         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
65035         in one case, a <= should have been an <, and in another case the
65036         whole test was missing.
65037         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
65038         the standard name CHAR_BIT.
65039         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
65040         this is not true on one's complement and signed-magnitude hosts.
65041
65042         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
65043         next_last_offset.
65044         (struct re_dfa_t): Remove unused member states_alloc.
65045         * lib/regcomp.c (init_dfa): Don't initialize unused members.
65046
65047 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65048
65049         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
65050         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
65051         and large-file glibc and in 32-bit large-file Solaris.
65052
65053 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65054
65055         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
65056         lengths fit in regoff_t; this isn't true if regoff_t is the same
65057         width as size_t.
65058         * lib/regex.c (re_search_internal): 5th arg is LAST_START
65059         (= START + RANGE) instead of RANGE.  This avoids overflow
65060         problems when regoff_t is the same width as size_t.
65061         All callers changed.
65062         (re_search_2_stub): Check for overflow when adding the
65063         sizes of the two strings.
65064         (re_search_stub): Check for overflow when adding START
65065         to RANGE; if it occurs, substitute the extreme value.
65066
65067 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65068
65069         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
65070
65071 2005-08-31  Jim Meyering  <jim@meyering.net>
65072
65073         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
65074         a pointer-to-const.
65075         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
65076         (register_state): Likewise.
65077         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
65078         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
65079         (group_nodes_into_DFAstates): Likewise.
65080
65081 2005-08-31  Jim Meyering  <jim@meyering.net>
65082
65083         * check-module: Add a FIXME comment.
65084
65085 2005-08-31  Eric Blake  <ebb9@byu.net>
65086
65087         * modules/unistd-safer (Files): Add unistd--.h.
65088         * modules/stdio-safer (Files): Add stdio--.h.
65089
65090 2005-08-31  Derek Price  <derek@ximbiot.com>
65091
65092         * lib/getdelim.c (getdelim): Return EOF on EOF.
65093         Reported by Larry Jones <lawrence.jones@ugs.com>.
65094
65095 2005-08-31  Bruno Haible  <bruno@clisp.org>
65096
65097         Avoid unnecessary diffs in the generated lib/Makefile.am.
65098         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
65099         the generated files.
65100         (func_import): Don't set cmd.
65101
65102 2005-08-31  Bruno Haible  <bruno@clisp.org>
65103
65104         * lib/strstr.c: Include <stddef.h>, for NULL.
65105         * lib/strcasestr.c: Likewise.
65106         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65107
65108 2005-08-31  Bruno Haible  <bruno@clisp.org>
65109
65110         * gnulib-tool: New option --macro-prefix.
65111         (func_import): Use macro_prefix.
65112         (import): Handle option --macro-prefix.
65113
65114 2005-08-31  Bruno Haible  <bruno@clisp.org>
65115
65116         * gnulib-tool (import): Rename most ac_* variables to cached_*.
65117         Also use new variables cached_lgpl, cached_libtool.
65118
65119 2005-08-31  Bruno Haible  <bruno@clisp.org>
65120
65121         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
65122         always instantiating them.
65123
65124 2005-08-31  Bruno Haible  <bruno@clisp.org>
65125
65126         * gnulib-tool (func_import): Read the previous cached settings
65127         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
65128         earlier added by gnulib but are now dropped. Warn when a gnulib file
65129         overwrites a non-gnulib file.
65130
65131 2005-08-31  Bruno Haible  <bruno@clisp.org>
65132
65133         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
65134         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
65135         projects that don't keep autogenerated files in CVS. Put into
65136         actioncmd only the specified modules, not the transitive closure.
65137
65138 2005-08-31  Bruno Haible  <bruno@clisp.org>
65139
65140         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
65141         Create directories that shall be filled.
65142         (import): Don't look for gl_* macros in configure.ac. Recurse across
65143         all directories containing a gnulib-cache.m4 files, if meaningful.
65144
65145 2005-08-31  Bruno Haible  <bruno@clisp.org>
65146
65147         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
65148         (import): Set seen_libtool when we see gl_LIBTOOL.
65149
65150 2005-08-31  Bruno Haible  <bruno@clisp.org>
65151
65152         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
65153         declaration macro definitions from generated gnulib.m4.
65154
65155 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
65156
65157         * lib/iconvme.h: Add prototype for iconv_alloc.
65158
65159 2005-08-29  Simon Josefsson  <jas@extundo.com>
65160
65161         * lib/iconvme.c: Fix errno.
65162
65163 2005-08-29  Bruno Haible  <bruno@clisp.org>
65164
65165         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
65166         that it works when the directory contains spaces.
65167
65168 2005-08-29  Bruno Haible  <bruno@clisp.org>
65169
65170         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
65171
65172 2005-08-29  Bruno Haible  <bruno@clisp.org>
65173
65174         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
65175         Emit more advice.
65176
65177 2005-08-29  Bruno Haible  <bruno@clisp.org>
65178         and Stepan Kasal  <kasal@ucw.cz>
65179
65180         * check-module: If more parameters are given, check each of them
65181         separately; add more exceptions, as noted by Jim Meyering.
65182         (check_module): New procedure.
65183         (%exempt_header): Now contains all exceptions.
65184
65185 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
65186
65187         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
65188
65189 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
65190
65191         * lib/iconvme.c: Split iconv_string into iconv_alloc.
65192
65193 2005-08-28  Bruno Haible  <bruno@clisp.org>
65194
65195         * m4/gnulib-tool.m4: New file.
65196
65197 2005-08-27  Jim Meyering  <jim@meyering.net>
65198
65199         * modules/unistd-safer (Files): Add pipe-safer.c.
65200         * modules/fcntl-safer (Files): Add creat-safer.c.
65201
65202 2005-08-27  Jim Meyering  <jim@meyering.net>
65203
65204         * m4/stdlib-safer.m4: New file.  From coreutils.
65205         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
65206         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
65207         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
65208         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
65209         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
65210
65211 2005-08-27  Jim Meyering  <jim@meyering.net>
65212
65213         * lib/fopen-safer.c: Merge minor changes from coreutils.
65214         * lib/dup-safer.c: Likewise.
65215         * lib/fd-safer.c: Likewise.
65216
65217         Merge from coreutils.
65218         * lib/stdio--.h: New file.
65219         * lib/stdlib--.h: New file.
65220         * lib/mkstemp-safer.c: New file.
65221
65222         GNU tar needs these.
65223         * lib/pipe-safer.c: New file.
65224         * lib/creat-safer.c: New file.
65225         * lib/fcntl--.h (creat): Define to creat_safer.
65226         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
65227         * lib/unistd--.h (pipe): Define to pipe_safer.
65228         * lib/unistd-safer.h: Declare pipe_safer.
65229
65230 2005-08-26  Simon Josefsson  <jas@extundo.com>
65231
65232         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
65233         Haible <bruno@clisp.org>.
65234
65235 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
65236
65237         * lib/regex_internal.h: Remove all references to
65238         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
65239         or better.
65240         (bitset_not, bitset_merge, bitset_not_merge):
65241         (bitset_mask, re_string_allocate, re_string_construct):
65242         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
65243         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
65244         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
65245         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
65246         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65247         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65248         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
65249         (re_acquire_state_context):
65250         Remove unnecessary forward decls.
65251         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
65252         Put __attribute at function definition,
65253         now that the function decl has been removed.
65254         * lib/regex_internal.c (re_string_peek_byte_case):
65255         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
65256         Likewise.
65257
65258 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
65259
65260         * m4/regex.m4: Add AC_PREREQ(2.50).
65261         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
65262
65263 2005-08-25  Simon Josefsson  <jas@extundo.com>
65264
65265         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
65266         __fsetlocking.
65267
65268 2005-08-25  Simon Josefsson  <jas@extundo.com>
65269
65270         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
65271         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
65272         GLIBC specific code.
65273
65274 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         Make regex safe for g++.  This fixes one real bug (an "err"
65277         that should have been "*err").  g++ problem reported by
65278         Sam Steingold.
65279         * lib/regex_internal.h (re_calloc): New macro, consistent with
65280         re_malloc etc.  All callers of calloc changed to use re_calloc.
65281         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
65282         not int.  All callers changed.
65283         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
65284         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
65285         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
65286         (find_recover_state): Change "err" to "*err"; this fixes what
65287         appears to be a real bug.
65288         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
65289         versus int.
65290
65291 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65292
65293         * modules/regex (Depends-on): Add malloc, since the code
65294         assumes that !malloc(0) means failure.
65295
65296 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65297
65298         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
65299
65300         alloca modernization/simplification for regex.
65301         * lib/regex.c: Remove portability cruft for alloca.  This no longer
65302         needs to be at the start of the file, and can be moved into
65303         regex_internal.h and simplified.
65304         * lib/regex_internal.h: Include <alloca.h>.
65305         (__libc_use_alloca) [!defined _LIBC]: New macro.
65306         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
65307         now works outside glibc.
65308
65309 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65310
65311         * config/srclist.txt: Add glibc bugs 1241, 1245.
65312
65313 2005-08-25  Jim Meyering  <jim@meyering.net>
65314
65315         * lib/open-safer.c: Include <config.h>.
65316         Otherwise, we'd lose LARGEFILE support in any file using
65317         e.g. "fcntl--.h"
65318
65319 2005-08-25  Bruno Haible  <bruno@clisp.org>
65320
65321         * m4/minmax.m4: Require autoconf 2.52.
65322         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
65323         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
65324         alternatives of translit over the alphabet.
65325         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
65326
65327 2005-08-24  Simon Josefsson  <jas@extundo.com>
65328
65329         * tests/test-getpass.c: New file.
65330
65331 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65332
65333         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
65334         for GNU regex features.
65335
65336 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65337
65338         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
65339         * lib/regex.h (regerror): Likewise.
65340
65341         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
65342         requires this.  (The code never needed it.)
65343
65344         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
65345         All uses of recently-renamed identifiers changed to use the new,
65346         POSIX-compliant names.  The code will build and run just fine
65347         without these changes, but it's better to eat our own dog food
65348         and use the standard-conforming names.
65349
65350         * lib/regex.h: Fix a multitude of POSIX name space violations.
65351         These changes have an effect only for programs that define
65352         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
65353         do not change anything for programs compiled in the normal way.
65354         Also, there is no effect on the ABI.
65355
65356         (_REGEX_SOURCE): New macro.
65357         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
65358         defined and _GNU_SOURCE is not; this fixes a name space violation.
65359
65360         Rename the following macros to obey POSIX requirements.
65361         The old names are still visible as macros if _REGEX_SOURCE is defined.
65362         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
65363         RE_BACKSLASH_ESCAPE_IN_LISTS.
65364         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
65365         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
65366         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
65367         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
65368         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
65369         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
65370         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
65371         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
65372         (REG_INTERVALS): renamed from RE_INTERVALS.
65373         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
65374         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
65375         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
65376         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
65377         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
65378         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
65379         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
65380         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
65381         RE_UNMATCHED_RIGHT_PAREN_ORD.
65382         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
65383         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
65384         (REG_DEBUG): renamed from RE_DEBUG.
65385         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
65386         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
65387         unusual, since we can't clash with the POSIX REG_ICASE.
65388         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
65389         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
65390         (REG_NO_SUB): renamed from RE_NO_SUB.
65391         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
65392         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
65393         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
65394         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
65395         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
65396         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
65397         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
65398         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
65399         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
65400         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
65401         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
65402         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
65403         RE_SYNTAX_POSIX_MINIMAL_BASIC.
65404         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
65405         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
65406         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
65407         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
65408         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
65409         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
65410         (REG_FIXED): Renamed from REGS_FIXED.
65411         (REG_NREGS): Renamed from RE_NREGS.
65412
65413         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
65414         of other REG_* macros, since POSIX says the user is allowed to
65415         #undef these macros selectively.
65416
65417         (reg_errcode_t): Update comment stating what other tables need
65418         to be consistent.
65419
65420         Rename the following enum values to obey POSIX requirements.
65421         The old names are still visible as macros.
65422         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
65423         is not defined, since GNU is supposed to be a superset of POSIX as
65424         much as possible, and since we want reg_errcode_t to be a signed
65425         type for implementation consistency.
65426         (_REG_NOERROR): Renamed from REG_NOERROR.
65427         (_REG_NOMATCH): Renamed from REG_NOMATCH.
65428         (_REG_BADPAT): Renamed from REG_BADPAT.
65429         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
65430         (_REG_ECTYPE): Renamed from REG_ECTYPE.
65431         (_REG_EESCAPE): Renamed from REG_EESCAPE.
65432         (_REG_ESUBREG): Renamed from REG_ESUBREG.
65433         (_REG_EBRACK): Renamed from REG_EBRACK.
65434         (_REG_EPAREN): Renamed from REG_EPAREN.
65435         (_REG_EBRACE): Renamed from REG_EBRACE.
65436         (_REG_BADBR): Renamed from REG_BADBR.
65437         (_REG_ERANGE): Renamed from REG_ERANGE.
65438         (_REG_ESPACE): Renamed from REG_ESPACE.
65439         (_REG_BADRPT): Renamed from REG_BADRPT.
65440         (_REG_EEND): Renamed from REG_EEND.
65441         (_REG_ESIZE): Renamed from REG_ESIZE.
65442         (_REG_ERPAREN): Renamed from REG_ERPAREN.
65443         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
65444         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
65445         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
65446         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
65447
65448         (_REG_RE_NAME, _REG_RM_NAME): New macros.
65449         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
65450         changed.  But support the old name if the new one is not defined
65451         and if _REGEX_SOURCE.
65452
65453         Change the following member names in struct re_pattern_buffer.
65454         The old names are still supported if !_REGEX_SOURCE.
65455         The new names are always supported, regardless of _REGEX_SOURCE.
65456         (re_buffer): Renamed from buffer.
65457         (re_allocated): Renamed from allocated.
65458         (re_used): Renamed from used.
65459         (re_syntax): Renamed from syntax.
65460         (re_fastmap): Renamed from fastmap.
65461         (re_translate): Renamed from translate.
65462         (re_can_be_null): Renamed from can_be_null.
65463         (re_regs_allocated): Renamed from regs_allocated.
65464         (re_fastmap_accurate): Renamed from fastmap_accurate.
65465         (re_no_sub): Renamed from no_sub.
65466         (re_not_bol): Renamed from not_bol.
65467         (re_not_eol): Renamed from not_eol.
65468         (re_newline_anchor): Renamed from newline_anchor.
65469
65470         Change the following member names in struct re_registers.
65471         The old names are still supported if !_REGEX_SOURCE.
65472         The new names are always supported, regardless of _REGEX_SOURCE.
65473         (rm_num_regs): Renamed from num_regs.
65474         (rm_start): Renamed from start.
65475         (rm_end): Renamed from end.
65476
65477         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
65478         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
65479         Prepend __ to parameter names.
65480
65481         Undo yesterday's changes.
65482
65483 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65484
65485         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
65486         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
65487         lib/regex.c.
65488
65489 2005-08-24  Jim Meyering  <jim@meyering.net>
65490
65491         Sync from coreutils.
65492         * m4/fcntl-safer.m4: New file.
65493
65494         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
65495         and object files for this module.
65496
65497 2005-08-24  Jim Meyering  <jim@meyering.net>
65498
65499         Sync from coreutils.
65500         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
65501
65502 2005-08-24  Jim Meyering  <jim@meyering.net>
65503
65504         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
65505         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
65506
65507 2005-08-24  Jim Meyering  <jim@meyering.net>
65508
65509         * modules/fcntl-safer: New module.
65510         * modules/fts (Depends-on): Add fcntl-safer.
65511         * MODULES.html.sh (File descriptor based Input/Output):
65512         Add fcntl-safer.
65513
65514 2005-08-24  Bruno Haible  <bruno@clisp.org>
65515
65516         Support for unit test modules.
65517         * modules/README: Mention tests modules.
65518         * modules/TEMPLATE-TESTS: New file.
65519         * gnulib-tool: New options --extract-tests-module, --with-tests and
65520         --tests-base (unused for the moment).
65521         (testsbase, inctests): New variables.
65522         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
65523         (func_verify_module): Exclude TEMPLATE-TESTS.
65524         (func_verify_nontests_module, func_verify_tests_module): New functions.
65525         (func_get_dependencies): Add implicit dependency for tests modules.
65526         (func_get_tests_module): New function.
65527         (func_modules_transitive_closure): When --with-tests was specified,
65528         include the unit tests as well, unless explicitly avoided.
65529         (func_emit_lib_Makefile_am): Ignore the tests modules here.
65530         (func_emit_tests_Makefile_am): New function.
65531         (func_create_testdir): When --with-tests was specified, emit a
65532         tests/ directory.
65533         * MODULES.html.sh (Future developments): Update.
65534
65535 2005-08-24  Bruno Haible  <bruno@clisp.org>
65536
65537         * modules/tls-tests: New file.
65538         * tests/test-tls.c: New file, from GNU gettext.
65539
65540 2005-08-24  Bruno Haible  <bruno@clisp.org>
65541
65542         * modules/lock-tests: New file.
65543         * tests/test-lock.c: New file, from GNU gettext.
65544
65545 2005-08-24  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/lock.h: Add multiple inclusion guard.
65548         * lib/tls.h: Add multiple inclusion guard.
65549
65550 2005-08-24  Bruno Haible  <bruno@clisp.org>
65551
65552         * gnulib-tool: Add support for the --aux-dir option to
65553         --create-testdir, --create-megatestdir, --test, --megatest.
65554         (func_create_testdir, func_create_megatestdir): Optionally emit a
65555         AC_CONFIG_AUX_DIR directive.
65556         (create-testdir, create-megatestdir, test, megatest): Provide a
65557         default value for $auxdir.
65558
65559 2005-08-24  Bruno Haible  <bruno@clisp.org>
65560
65561         * gnulib-tool (import): Use compound statement instead of subshell
65562         where possible.
65563
65564 2005-08-24  Bruno Haible  <bruno@clisp.org>
65565
65566         * gnulib-tool (import): Change --aux-dir default to "build-aux".
65567
65568 2005-08-24  Bruno Haible  <bruno@clisp.org>
65569
65570         * gnulib-tool (func_version): Update.
65571
65572 2005-08-24  Bruno Haible  <bruno@clisp.org>
65573
65574         * gnulib-tool (func_import, func_create_testdir,
65575         func_create_megatestdir): Quote all autoconf macro arguments.
65576
65577 2005-08-24  Bruno Haible  <bruno@clisp.org>
65578
65579         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
65580         option --force, because --force causes the aclocal.m4 of each
65581         subdirectory to be newer than the corresponding config.h.in.
65582
65583 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65584
65585         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
65586         All contents moved to gl_REGEX.
65587         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
65588         assume that it does.
65589
65590 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         * lib/regex.h (REG_NOSYS)
65593         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
65594         Define, since POSIX requires it as of 2001.
65595         (_REG_ENOSYS)
65596         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
65597         New private symbol, used to keep the enum signed in all cases.
65598         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
65599         Youngman in
65600         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
65601
65602         * lib/regex_internal.c (re_string_skip_chars, register_state):
65603         (calc_state_hash):
65604         Remove forward decls; no longer needed now that we use prototypes.
65605         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
65606         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
65607         (clean_state_log_if_needed): Likewise.
65608
65609 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65610
65611         * config/srclist.txt: Add glibc bugs 1231-1233.
65612
65613 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65614
65615         Fix problems reported by Sam Steingold in
65616         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
65617         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
65618         assumed that reg_errcode_t is a signed type, which is not
65619         necessarily true if _XOPEN_SOURCE is not defined.
65620         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
65621         since some compilers warn about it otherwise.
65622
65623 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65624
65625         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
65626         (init_word_char, create_initial_state, duplicate_node_closure):
65627         (fetch_token, peek_token_bracket, build_range_exp):
65628         (build_collating_symbol): Remove forward decls; no longer needed
65629         now that we use prototypes.
65630
65631         * lib/regcomp.c:
65632         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
65633         (re_compile_fastmap_iter, regcomp, regerror, regfree):
65634         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
65635         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
65636         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
65637         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
65638         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
65639         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
65640         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
65641         (build_range_exp, build_collating_symbol, parse_bracket_exp):
65642         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
65643         (build_charclass, build_charclass_op, fetch_number, create_tree):
65644         (create_token_tree, mark_opt_subexp, duplicate_tree):
65645         Use prototypes rather than old-style definitions.
65646
65647         * lib/regex_internal.c:
65648         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
65649         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
65650         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
65651         (re_string_reconstruct, re_string_peek_byte_case):
65652         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
65653         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
65654         (re_node_set_init_copy, re_node_set_add_intersect):
65655         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
65656         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
65657         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
65658         (re_acquire_state, re_acquire_state_context, register_state):
65659         (create_ci_newstate, create_cd_newstate, free_state):
65660         Likewise.
65661         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
65662         re_search_2):
65663         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
65664         (re_search_internal, prune_impossible_nodes):
65665         (acquire_init_state_context, check_matching, static):
65666         (check_halt_node_context, check_halt_state_context, proceed_next_node):
65667         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
65668         (update_regs, sift_states_backward, build_sifted_states):
65669         (clean_state_log_if_needed, merge_state_array):
65670         (update_cur_sifted_state, add_epsilon_src_nodes):
65671         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
65672         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
65673         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
65674         (find_recover_state, check_subexp_matching_top, transit_state_mb):
65675         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
65676         (check_arrival, check_arrival_add_next_nodes):
65677         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
65678         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
65679         (check_node_accept_bytes, check_node_accept, extend_buffers):
65680         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
65681         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
65682         (sift_ctx_init):
65683         Likewise.
65684
65685         * lib/regex_internal.h:
65686         (re_string_allocate, re_string_construct, re_string_reconstruct):
65687         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
65688         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
65689         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
65690         (re_string_context_at, re_string_peek_byte_case):
65691         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
65692         is defined, since we now use prototypes always.
65693
65694         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
65695         C89 or better.  All uses removed.
65696
65697 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65698
65699         * config/srclist.txt: Add glibc bugs 1220-1227.
65700
65701 2005-08-20  Jim Meyering  <jim@meyering.net>
65702
65703         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
65704         of unused local, dfa.
65705
65706 2005-08-20  Bruno Haible  <bruno@clisp.org>
65707
65708         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
65709
65710 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65711
65712         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
65713         (re_node_set_insert_last, re_dfa_add_node):
65714         Rename local variables to avoid GCC shadowing warnings.
65715
65716 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65717
65718         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
65719         [defined lint]: Suppress bogus uninitialized-variable warnings.
65720
65721         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
65722         and let the caller return REG_ESPACE if out of space.  This
65723         removes an uninitialied-variable warning with GCC 4.0.1, and also
65724         avoids taking the address of a local variable.  All callers
65725         changed.
65726
65727 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
65730         $LIBCSRC/posix/regexec.c.
65731         Add glibc bug 1217 for regcomp.c.
65732
65733 2005-08-19  Jim Meyering  <jim@meyering.net>
65734
65735         * lib/regexec.c (proceed_next_node): Redo local variables to
65736         avoid GCC shadowing warnings.
65737
65738 2005-08-18  Bruno Haible  <bruno@clisp.org>
65739
65740         * lib/strstr.c (strstr): Fix return value in multibyte case.
65741         * lib/strcasestr.c (strcasestr): Likewise.
65742
65743 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65744
65745         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
65746
65747 2005-08-17  Jim Meyering  <jim@meyering.net>
65748
65749         Make the %s format (seconds since the epoch) work for a negative
65750         number and when used with a zero-padded field width, e.g. %015s.
65751
65752         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
65753         label so that it precedes the code to set `digits'.  Otherwise,
65754         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
65755         print `00-22'.  Now, it prints `-0022', as it should.
65756
65757 2005-08-17  Bruno Haible  <bruno@clisp.org>
65758
65759         * modules/strstr (Files): Add m4/mbrtowc.m4.
65760         (Depends-on): Add mbuiter.
65761
65762 2005-08-17  Bruno Haible  <bruno@clisp.org>
65763
65764         * modules/strcasestr: New file.
65765         * MODULES.html.sh (String handling, based on ANSI C 89): Add
65766         strcasestr.
65767
65768 2005-08-17  Bruno Haible  <bruno@clisp.org>
65769
65770         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
65771
65772 2005-08-17  Bruno Haible  <bruno@clisp.org>
65773
65774         * modules/mbuiter: New file.
65775         * MODULES.html.sh (Extended multibyte and wide character utilities):
65776         Add mbuiter.
65777
65778 2005-08-17  Bruno Haible  <bruno@clisp.org>
65779
65780         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
65781         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
65782
65783 2005-08-17  Bruno Haible  <bruno@clisp.org>
65784
65785         * m4/strcasestr.m4: New file.
65786
65787 2005-08-17  Bruno Haible  <bruno@clisp.org>
65788
65789         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
65790         * lib/strstr.c: Completely rewritten, with multibyte locale support.
65791
65792 2005-08-17  Bruno Haible  <bruno@clisp.org>
65793
65794         * lib/strcasestr.h: New file.
65795         * lib/strcasestr.c: New file.
65796
65797 2005-08-17  Bruno Haible  <bruno@clisp.org>
65798
65799         * lib/strcasecmp.c: Use mbuiter.h.
65800
65801 2005-08-17  Bruno Haible  <bruno@clisp.org>
65802
65803         * lib/mbuiter.h: New file.
65804
65805 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65806
65807         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
65808         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
65809         and gl_GETOPT are both invoked via different paths (as happens
65810         with GNU tar CVS because it uses both argp and getopt), the former
65811         wins.
65812
65813 2005-08-16  Bruno Haible  <bruno@clisp.org>
65814
65815         * modules/tls: New file.
65816         * MODULES.html.sh (Multithreading): Add tls.
65817
65818 2005-08-16  Bruno Haible  <bruno@clisp.org>
65819
65820         * modules/strnlen1: New file.
65821         * MODULES.html.sh (String handling): Add strnlen1.
65822
65823 2005-08-16  Bruno Haible  <bruno@clisp.org>
65824
65825         * modules/strcase (Files): Add m4/mbrtowc.m4.
65826         (Depends-on): Add strnlen1, mbchar.
65827
65828 2005-08-16  Bruno Haible  <bruno@clisp.org>
65829
65830         * modules/mbiter: New file.
65831         * MODULES.html.sh (Extended multibyte and wide character utilities):
65832         Add mbiter.
65833
65834 2005-08-16  Bruno Haible  <bruno@clisp.org>
65835
65836         * modules/mbfile: New file.
65837         * MODULES.html.sh (Extended multibyte and wide character utilities):
65838         Add mbfile.
65839
65840 2005-08-16  Bruno Haible  <bruno@clisp.org>
65841
65842         * modules/mbchar: New file.
65843         * MODULES.html.sh (Extended multibyte and wide character utilities):
65844         New section.
65845
65846 2005-08-16  Bruno Haible  <bruno@clisp.org>
65847
65848         * m4/tls.m4: New file, from GNU gettext.
65849
65850 2005-08-16  Bruno Haible  <bruno@clisp.org>
65851
65852         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
65853         always.
65854         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
65855
65856 2005-08-16  Bruno Haible  <bruno@clisp.org>
65857
65858         * m4/mbiter.m4: New file.
65859
65860 2005-08-16  Bruno Haible  <bruno@clisp.org>
65861
65862         * m4/mbfile.m4: New file.
65863
65864 2005-08-16  Bruno Haible  <bruno@clisp.org>
65865
65866         * m4/mbchar.m4: New file.
65867
65868 2005-08-16  Bruno Haible  <bruno@clisp.org>
65869
65870         * lib/tls.h: New file, from GNU gettext.
65871         * lib/tls.c: New file, from GNU gettext.
65872
65873 2005-08-16  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/strnlen1.h: New file.
65876         * lib/strnlen1.c: New file.
65877
65878 2005-08-16  Bruno Haible  <bruno@clisp.org>
65879
65880         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
65881         (mbi_init): Update.
65882         (mbi_avail, mbi_advance): Let the iteration end before the terminating
65883         NUL byte, not after it.
65884
65885 2005-08-16  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/strcase.h (strcasecmp): Add note in comments.
65888         * lib/strncasecmp.c: Use code from strcasecmp.c.
65889         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
65890         (strcasecmp): Work correctly in multibyte locales.
65891
65892 2005-08-16  Bruno Haible  <bruno@clisp.org>
65893
65894         * lib/mbiter.h: New file.
65895
65896 2005-08-16  Bruno Haible  <bruno@clisp.org>
65897
65898         * lib/mbfile.h: New file.
65899
65900 2005-08-16  Bruno Haible  <bruno@clisp.org>
65901
65902         * lib/mbchar.h: New file.
65903         * lib/mbchar.c: New file.
65904
65905 2005-08-16  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
65908         the valid ones. Makes the comparison operations transitive:
65909         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
65910         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
65911
65912 2005-08-15  Simon Josefsson  <jas@extundo.com>
65913
65914         * modules/ssize_t (License): Change to 'unlimited'.
65915
65916         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
65917
65918 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65919
65920         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
65921         Add comments for each pending glibc patch.
65922
65923 2005-08-15  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/regex.h (__restrict_arr): Don't define to __restrict if
65926         __cplusplus is defined.
65927
65928 2005-08-14  Jim Meyering  <jim@meyering.net>
65929
65930         Sync from coreutils.
65931
65932         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
65933         Use the hash-table-based cycle-detection code not just when
65934         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
65935         Reported by James Youngman in
65936         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
65937         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
65938         FTS_TIGHT_CYCLE_CHECK.
65939         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
65940         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
65941         once again.
65942         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
65943         * lib/fts.c (fd_safer): Remove decl.
65944         Include fcntl--.h rather than unistd-safer.h
65945         (fts_safe_changedir): Don't call fd_safer; no longer needed
65946         now that we include fcntl--.h.
65947
65948 2005-08-12  Simon Josefsson  <jas@extundo.com>
65949
65950         * modules/getndelim2: Use ssize_t module.
65951         * modules/getnline: Likewise.
65952         * modules/safe-read: Likewise.
65953         * modules/xreadlink: Likewise.
65954
65955         * modules/ssize_t: New file.
65956
65957 2005-08-12  Simon Josefsson  <jas@extundo.com>
65958
65959         * m4/readline.m4: Look for termcap, curses or ncurses if required.
65960
65961 2005-08-12  Simon Josefsson  <jas@extundo.com>
65962
65963         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65964         ssize_t.
65965
65966 2005-08-12  Simon Josefsson  <jas@extundo.com>
65967
65968         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
65969         readline, getdelim and check_version.
65970         (Support for systems lacking ISO C 99: Sizes of integer types):
65971         Add size_max.
65972
65973 2005-08-12  Bruno Haible  <bruno@clisp.org>
65974
65975         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
65976
65977 2005-08-11  Simon Josefsson  <jas@extundo.com>
65978
65979         * modules/readline: New file.
65980
65981         * modules/strnlen (Files): Add strnlen.h.
65982
65983 2005-08-11  Simon Josefsson  <jas@extundo.com>
65984
65985         * m4/readline.m4: New file.
65986
65987 2005-08-11  Simon Josefsson  <jas@extundo.com>
65988
65989         * lib/readline.h, readline.c: New file.
65990
65991 2005-08-11  Simon Josefsson  <jas@extundo.com>
65992
65993         * doc/gnulib.texi (Initial import, Finishing touches): Mention
65994         gl_AVOID.
65995
65996 2005-08-11  Bruno Haible  <bruno@clisp.org>
65997
65998         * lib/strnlen.h (strnlen): Change parameter name to match comment.
65999
66000 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
66001
66002         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
66003
66004 2005-08-10  Simon Josefsson  <jas@extundo.com>
66005
66006         * tests/test-iconvme.c: New file.
66007
66008 2005-08-10  Simon Josefsson  <jas@extundo.com>
66009
66010         * m4/strnlen.m4: New file.
66011
66012         * m4/strndup.m4: Don't check for strnlen declaration, done in
66013         strnlen.m4.
66014
66015 2005-08-10  Simon Josefsson  <jas@extundo.com>
66016
66017         * lib/strndup.c: Use strnlen.h.
66018
66019         * lib/strnlen.h: New file.
66020
66021 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66022
66023         * README: Typos.
66024
66025 2005-08-02  Simon Josefsson  <jas@extundo.com>
66026
66027         * modules/readline: New file.
66028
66029 2005-08-02  Simon Josefsson  <jas@extundo.com>
66030
66031         * modules/getdelim: New file.
66032
66033         * modules/getline: Rewrite, don't use getndelim2.
66034
66035 2005-08-02  Simon Josefsson  <jas@extundo.com>
66036
66037         * m4/getline.m4: Separate out getdelim stuff into separate module.
66038
66039         * m4/getdelim.m4: New file.
66040
66041 2005-08-02  Simon Josefsson  <jas@extundo.com>
66042
66043         * lib/getline.h, getline.c: Rewrite.
66044
66045         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
66046
66047 2005-07-31  Bruno Haible  <bruno@clisp.org>
66048
66049         * lib/lock.h (gl_lock_initializer): New macro.
66050         (gl_lock_define_initialized): Use it.
66051         (gl_rwlock_initializer): New macro.
66052         (gl_rwlock_define_initialized): Use it.
66053         (gl_recursive_lock_initializer): New macro.
66054         (gl_recursive_lock_define_initialized): Use it.
66055
66056 2005-07-30  Karl Berry  <karl@gnu.org>
66057
66058         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
66059         Report from Ben Pfaff, regarding getopt.
66060
66061 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
66064         normal way.
66065         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
66066         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
66067         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
66068         (gl_GETOPT): Use the new macros.  Most of the implementation
66069         is moved to the new macros.  This is for programs like Emacs
66070         that don't want all the functionality of gl_GETOPT.
66071
66072 2005-07-26  Bruno Haible  <bruno@clisp.org>
66073
66074         * m4/lock.m4: Update from GNU gettext.
66075
66076 2005-07-26  Bruno Haible  <bruno@clisp.org>
66077
66078         * lib/lock.h: Update from GNU gettext.
66079         * lib/lock.c: Update from GNU gettext.
66080
66081 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
66082
66083         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
66084         obsolescent AC_TRY_RUN.  Include the default includes files, for
66085         'exit'.
66086
66087 2005-07-24  Bruno Haible  <bruno@clisp.org>
66088
66089         * modules/visibility: New file.
66090         * MODULES.html.sh (Misc): Add visibility.
66091
66092 2005-07-24  Bruno Haible  <bruno@clisp.org>
66093
66094         * m4/visibility.m4: New file.
66095
66096 2005-07-24  Bruno Haible  <bruno@clisp.org>
66097
66098         * doc/visibility.texi: New file.
66099
66100 2005-07-22  Bruno Haible  <bruno@clisp.org>
66101
66102         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
66103         $(ALLOCA_H), redundant through BUILT_SOURCES.
66104         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
66105         redundant through BUILT_SOURCES.
66106         * modules/byteswap (Makefile.am): Remove explicit dependency on
66107         $(BYTESWAP_H), redundant through BUILT_SOURCES.
66108         * modules/fnmatch (Makefile.am): Remove explicit dependency on
66109         $(FNMATCH_H), redundant through BUILT_SOURCES.
66110         * modules/getopt (Makefile.am): Remove explicit dependency on
66111         $(GETOPT_H), redundant through BUILT_SOURCES.
66112         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
66113         redundant through BUILT_SOURCES.
66114         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
66115         redundant through BUILT_SOURCES.
66116         * modules/stdbool (Makefile.am): Remove explicit dependency on
66117         $(STDBOOL_H), redundant through BUILT_SOURCES.
66118         * modules/stdint (Makefile.am): Remove explicit dependency on
66119         $(STDINT_H), redundant through BUILT_SOURCES.
66120         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
66121         Remove explicit dependency on $(SYSEXITS_H).
66122         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
66123
66124 2005-07-18  Simon Josefsson  <jas@extundo.com>
66125
66126         * lib/check-version.c (check_version): Accept identical versions too.
66127
66128 2005-07-18  Bruno Haible  <bruno@clisp.org>
66129
66130         * modules/lock: New file.
66131         * MODULES.html.sh (Multithreading): New section.
66132
66133 2005-07-18  Bruno Haible  <bruno@clisp.org>
66134
66135         * m4/lock.m4: New file, from GNU gettext.
66136
66137 2005-07-18  Bruno Haible  <bruno@clisp.org>
66138
66139         * lib/lock.h: New file, from GNU gettext.
66140         * lib/lock.c: New file, from GNU gettext.
66141
66142 2005-07-18  Bruno Haible  <bruno@clisp.org>
66143
66144         * lib/lock.h (gl_once_t): New type.
66145         (gl_once_define, gl_once): New macros.
66146         * lib/lock.c (fresh_once): New variable.
66147         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
66148         functions.
66149
66150 2005-07-16  Simon Josefsson  <jas@extundo.com>
66151
66152         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
66153         workaround, suggested by Bruno.
66154
66155 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66156
66157         * modules/xalloc (Depends-on): Add xalloc-die.
66158         * modules/xvasprintf (Depends-on): Add xalloc-die.
66159
66160 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
66161
66162         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
66163         with a minor change.
66164
66165 2005-07-15  Bruno Haible  <bruno@clisp.org>
66166
66167         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
66168         When using lib/poll.c, define poll as rpl_poll.
66169
66170 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
66171
66172         * modules/argp (Depends-on): Remove unlocked-io.
66173
66174 2005-07-14  Derek Price  <derek@ximbiot.com>
66175
66176         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
66177         for glob symlink bug.
66178
66179 2005-07-14  Bruno Haible  <bruno@clisp.org>
66180
66181         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
66182         Instead, test for *_unlocked function declarations directly.
66183
66184 2005-07-11  Simon Josefsson  <jas@extundo.com>
66185
66186         * modules/size_max: New file.
66187
66188         * modules/xsize: Depend on size_max module for size_max.m4.
66189
66190 2005-07-11  Simon Josefsson  <jas@extundo.com>
66191
66192         * lib/size_max.h: New file.
66193
66194 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
66195
66196         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
66197         copyright symbol and the year.
66198         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
66199         (version_etc_va): Use parameterized copyright notice.
66200         Reword to conform to the current GNU coding standards.
66201
66202 2005-07-11  Karl Berry  <karl@gnu.org>
66203
66204         * doc/gnulib.texi (Quoting): new node.
66205         (Initial import): more info, from Patrice.
66206
66207 2005-07-11  Bruno Haible  <bruno@clisp.org>
66208
66209         * gnulib-tool (func_usage): Document option --avoid.
66210         (Command line options): Handle --avoid.
66211         (func_acceptable): New function.
66212         (func_modules_transitive_closure): Use it.
66213
66214 2005-07-11  Bruno Haible  <bruno@clisp.org>
66215
66216         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
66217         Reported by Jim Meyering.
66218
66219 2005-07-10  Bruno Haible  <bruno@clisp.org>
66220
66221         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
66222         Needed when size_t is smaller than 'unsigned int'.
66223         Reported by Paul Eggert.
66224
66225 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66226
66227         * modules/argp (Depends-on): Add unlocked-io
66228
66229 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
66230
66231         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
66232         block of defines.
66233
66234 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         * config/srclist.txt: Comment out regcomp.c, since we have a porting
66237         fix now.
66238
66239 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
66240         and Paul Eggert  <eggert@cs.ucla.edu>
66241
66242         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
66243         in wint_t, not wchar_t.  Remove now-unnecessary cast.
66244
66245 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66246
66247         * modules/regex (Files): Add lib/regex_internal.c,
66248         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
66249         (Depends-on): Add extensions.
66250         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
66251
66252 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
66255         pathconf.
66256         * m4/same.m4 (gl_SAME): Likewise.
66257         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
66258
66259         * m4/regex.m4: Adjust to new libc regex implementation.
66260         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
66261         all the .c and .h parts of (the new) regex.
66262         Quote the m4 stuff better.
66263         Check for RE_ICASE bug of old gnulib.
66264         Check for REG_STARTEND of recent libc.
66265         Rename local variables from jm_* to gl_*.
66266         Quote operand of "test -f".
66267         Say "recent enough" version of libc, not "version 2".
66268         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
66269         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
66270         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
66271         Remove check for btowc, isascii.
66272         Require AM_LANGINFO_CODESET.
66273
66274 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66275
66276         * lib/regex.c, regex.h: Sync from libc.
66277         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
66278         * lib/regexec.c:
66279         New files, synced from libc, except that regex_internal.h
66280         currently has a small porting fix.
66281
66282 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
66283
66284         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
66285         regex_internal.c, regexec.c.
66286         Add regex_internal.h too, but as a comment, since the libc version
66287         is currently broken in gnulib mode.
66288
66289 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66290
66291         Support programs like Emacs that use gnulib but not gettext.
66292         * MODULES.html.sh (Internationalization functions): Add gettext-h.
66293         * modules/gettext-h: New file.
66294         * modules/gettext (Files): Remove lib/gettext.h.
66295         (Depends-on): Add gettext-h.
66296         (Makefile.am): Remove lib_SOURCES.
66297         * modules/argmatch, modules/c-stack, modules/closeout:
66298         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
66299         * modules/execute, modules/file-type, modules/getaddrinfo:
66300         * modules/getopt, modules/human, modules/javacomp:
66301         * modules/javaexec, modules/mkdir-p, modules/obstack:
66302         * modules/openat, modules/pagealign_alloc, modules/pipe:
66303         * modules/quotearg, modules/regex, modules/rpmatch:
66304         * modules/unicodeio, modules/userspec, modules/version-etc:
66305         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
66306         * modules/xsetenv:
66307         Depend on gettext-h, not gettext.
66308
66309 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66310
66311         * gnulib-tool (func_import): Add support for 'public domain' license.
66312         * modules/alloca, modules/atexit, modules/memmove:
66313         Now public domain, not GPL.
66314         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
66315         * modules/realloc, modules/strerror, modules/strtod:
66316         Now LGPL, not GPL.
66317
66318 2005-07-05  Bruno Haible  <bruno@clisp.org>
66319
66320         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
66321         autoconf CVS. Needed for mingw.
66322
66323 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66324
66325         Remove the dependency of the strftime module on the tzset module.
66326         * modules/strftime (Depends-on): Remove dependency on tzset.
66327
66328 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66329
66330         Remove the dependency of the strftime module on the tzset module.
66331         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
66332         gl_FUNC_TZSET_CLOBBER.
66333
66334 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66335
66336         Remove the dependency of the strftime module on the tzset module.
66337         * lib/strftime.c (my_strftime)
66338         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
66339         Copy the input structure, to work around some of the bug with
66340         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
66341         Solaris releases, you should also use the tzset module, but we won't
66342         require it as a dependency any more since we don't want LGPLed code
66343         to depend on GPLed code.
66344
66345 2005-07-02  Jim Meyering  <jim@meyering.net>
66346
66347         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
66348         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
66349         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
66350         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
66351
66352 2005-07-02  Jim Meyering  <jim@meyering.net>
66353
66354         * lib/backupfile.c (backup_args): Change a `0' to NULL.
66355
66356 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
66359         declares only 'struct timespec;' (!).
66360
66361 2005-07-01  Jim Meyering  <jim@meyering.net>
66362
66363         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
66364         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
66365         * lib/save-cwd.c, tempname.c:
66366         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
66367         and don't include <sys/file.h>).
66368
66369 2005-06-29  Jim Meyering  <jim@meyering.net>
66370
66371         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
66372         type name.  Use the variable name instead.
66373         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
66374         Likewise.
66375
66376 2005-06-28  Simon Josefsson  <jas@extundo.com>
66377
66378         * modules/check-version (Files): Add check-version.m4.
66379
66380 2005-06-28  Simon Josefsson  <jas@extundo.com>
66381
66382         * m4/check-version.m4: New file, suggested by Jim Meyering
66383         <jim@meyering.net>.
66384
66385 2005-06-28  Simon Josefsson  <jas@extundo.com>
66386
66387         * lib/check-version.h, lib/check-version.c: New files.
66388
66389 2005-06-28  Simon Josefsson  <jas@extundo.com>
66390
66391         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
66392         collision with global variable.  Better indentation.  Don't
66393         increment buffer pointer beyond buffer end.  Based on comments
66394         from Paul Eggert <eggert@cs.ucla.edu>.
66395
66396         * lib/base64.h: Indent.
66397
66398 2005-06-28  Simon Josefsson  <jas@extundo.com>
66399
66400         * doc/gnulib.texi (Library version handling): New section.
66401
66402 2005-06-28  Jim Meyering  <jim@meyering.net>
66403
66404         * check-module (find_included_lib_files): Hard-code another
66405         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
66406         but modules/fts-lgpl (correctly) does not list those files.
66407
66408         * modules/canonicalize (Files): Add lib/pathmax.h.
66409
66410 2005-06-25  Simon Josefsson  <jas@extundo.com>
66411
66412         * modules/check-version: New file.
66413
66414 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
66415
66416         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
66417         initializer of struct addrinfo, as an indication that we don't
66418         care how many members the structure has.
66419
66420 2005-06-24  Derek Price  <derek@ximbiot.com>
66421         and Bruno Haible  <bruno@clisp.org>
66422
66423         Remove stat module & update lstat.
66424         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
66425         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66426         * m4/stat.m4: Remove this file.
66427
66428 2005-06-24  Derek Price  <derek@ximbiot.com>
66429         and Bruno Haible  <bruno@clisp.org>
66430
66431         Remove stat module & update lstat.
66432         * lib/stat.c: Remove this file...
66433         (slash_aware_lstat): ...moving this content and its support...
66434         * lib/lstat.c (rpl_lstat): ...into here.
66435         * lib/lstat.h: New file.
66436
66437 2005-06-24  Derek Price  <derek@ximbiot.com>
66438         and Bruno Haible  <bruno@clisp.org>
66439
66440         Remove stat module & update lstat.
66441         * config/srclist.txt (libc sources): Remove stat.
66442
66443 2005-06-24  Derek Price  <derek@ximbiot.com>
66444         and Bruno Haible  <bruno@clisp.org>
66445
66446         Remove stat module & update lstat.
66447         * MODULES.html.sh (stat): Remove.
66448         * MODULES.html: Regenerated.
66449         * modules/lstat (Description): Correct function name.
66450         (Files): Add "lstat.h".
66451         (Depends-on): Remove stat, add xalloc, stat-macros.
66452         * modules/stat: Remove this file.
66453         (Include): Add "lstat.h", remove <sys/stat.h>.
66454
66455 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66456
66457         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
66458         (ranged_convert): Don't save conversion in a temporary struct.
66459         This causes a warning with GCC 4.0.0, and anyway in the typical
66460         case it's not worth the extra 100 bytes or so of code.
66461         (ranged_convert, __mktime_internal): When calling a function via a
66462         pointer P, use P () rather than (*P) (), as we now assume C89 or
66463         better.
66464
66465 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
66466
66467         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
66468         "who -r" failed to give output.  Problem reported by Tim Waugh.
66469
66470         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
66471         (xcalloc): Use it to avoid needless tests.
66472         Problem reported by Jim Meyering.
66473
66474 2005-06-20  Derek Price  <derek@ximbiot.com>
66475
66476         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
66477         unnecessary for Autoconfs > 2.59c.
66478
66479 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66480
66481         * lib/argp.h (__option_is_short): Check upper limit of
66482         __key. Isprint() requires its argument to have the value
66483         of an unsigned char or EOF.
66484
66485 2005-06-16  Jim Meyering  <jim@meyering.net>
66486
66487         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
66488         when either N or S is zero.
66489
66490 2005-06-16  Derek Price  <derek@ximbiot.com>
66491
66492         * m4/bison.m4: Declare YACC & YFLAGS precious.
66493
66494 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
66497         multibyte string or pattern, fall back on unibyte matching.
66498         Problem reported by James Youngman.
66499
66500 2005-06-08  Bruno Haible  <bruno@clisp.org>
66501
66502         * modules/csharpcomp: New file.
66503         * MODULES.html.sh (C#): Add csharpcomp.
66504
66505 2005-06-08  Bruno Haible  <bruno@clisp.org>
66506
66507         * m4/csharpcomp.m4: New file, from GNU gettext.
66508
66509 2005-06-08  Bruno Haible  <bruno@clisp.org>
66510
66511         * lib/csharpcomp.h: New file, from GNU gettext.
66512         * lib/csharpcomp.c: New file, from GNU gettext.
66513         * lib/csharpcomp.sh.in: New file, from GNU gettext.
66514
66515 2005-06-08  Bruno Haible  <bruno@clisp.org>
66516
66517         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
66518         warning on mingw.
66519
66520 2005-06-07  Derek Price  <derek@ximbiot.com>
66521
66522         Sync from CVS.
66523         * lib/glob_.h: Indent nested #ifdef.
66524
66525 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66526
66527         Sync from coreutils.
66528         Use "file name" when talking about file names, instead of "filename"
66529         or "path", as per the GNU coding standards.
66530         * lib/mkdir-p.c: Renamed from makepath.c.
66531         (make_dir_parents): Renamed from make_path.  All callers changed.
66532         * lib/mkdir-p.h: Likewise.  All includers changed.
66533         * lib/filenamecat.c: Renamed from path-concat.c.
66534         (file_name_concat): Renamed from path_concat.  All callers changed.
66535         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
66536         * lib/filenamecat.h: Likewise.  All includers changed.
66537         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
66538         in comments or local variable names.
66539         * lib/basename.c: Likewise.
66540         * lib/canonicalize.c, canonicalize.h: Likewise.
66541         * lib/dirname.c, dirname.h: Likewise.
66542         * lib/euidaccess.c: Likewise.
66543         * lib/exclude.c: Likewise
66544         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
66545         * lib/fsusage.c, fsuage.h: Likewise.
66546         * lib/fts.c, fts_.h: Likewise.
66547         * lib/getcwd.c: Likewise.
66548         * lib/getloadavg.c: Likewise.
66549         * lib/mkstemp.c: Likewise.
66550         * lib/mountlist.c, mountlist.h: Likewise.
66551         * lib/openat.c, openat.h: Likewise.
66552         * lib/readlink-stub.c: Likewise.
66553         * lib/readutmp.c, readutmp.h: Likewise.
66554         * lib/rename.c: Likewise.
66555         * lib/rmdir.c: Likewise.
66556         * lib/same.c: Likewise.
66557         * lib/savedir.c: Likewise.
66558         * lib/stripslash.c: Likewise.
66559         * lib/tempname.c: Likewise.
66560         * lib/xreadlink.c: Likewise.
66561         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
66562         All uses changed.
66563         * lib/exclude.h: Likewise.
66564
66565         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
66566         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66567         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
66568         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66569         * lib/pathmax.h: Include <limits.h> unconditionally, since other
66570         files have been getting away with it for years (MORE/BSD 4.3
66571         is extinct now).
66572         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
66573         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
66574
66575         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
66576         Define to 256, not 255, as per modern POSIX.
66577
66578 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66579
66580         Sync from coreutils.
66581         Use "file name" when talking about file names, instead of "filename"
66582         or "path", as per the GNU coding standards.
66583         * MODULES.html.sh: mkdir-p renamed from makepath.
66584         filenamecat renamed from path-concat.
66585         * modules/filenamecat: Renamed from modules/path-concat.
66586         (Files): filenamecat.h and filenamecat.c renamed from
66587         path-concat.h and path-concat.c.
66588         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
66589         (Include): filenamecat.h, not path-concat.h.
66590         * modules/mkdir-p: Renamed from modules/makepath.
66591         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
66592         makepath.c.
66593         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
66594         (Include): mkdir-p.h, not makepath.h.
66595
66596 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
66597
66598         Sync from coreutils.
66599         * m4/mkdir-p.m4: Renamed from makepath.m4.
66600         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
66601         Rename files from makepath.c to mkdir-p.c, and from
66602         makepath.h to mkdir-p.h.
66603         * m4/filenamecat.m4: Renamed from path-concat.m4.
66604         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
66605         Rename files from path-concat.c to filenamecat.c,
66606         and from path-concat.h to filenamecat.h.
66607         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
66608         "file name" in local variables or comments.
66609         * m4/rename.m4: Likewise.
66610
66611 2005-06-01  Bruno Haible  <bruno@clisp.org>
66612
66613         * modules/csharpexec: New file.
66614         * MODULES.html.sh (C#): New section.
66615
66616 2005-06-01  Bruno Haible  <bruno@clisp.org>
66617
66618         * m4/csharp.m4: New file, from GNU gettext.
66619         * m4/csharpexec.m4: New file, from GNU gettext.
66620
66621 2005-06-01  Bruno Haible  <bruno@clisp.org>
66622
66623         * lib/csharpexec.h: New file, from GNU gettext.
66624         * lib/csharpexec.c: New file, from GNU gettext.
66625         * lib/csharpexec.sh.in: New file, from GNU gettext.
66626
66627 2005-05-31  Derek Price  <derek@ximbiot.com>
66628             Paul Eggert  <eggert@cs.ucla.edu>
66629
66630         Sync from cvs.
66631         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66632
66633 2005-05-31  Derek Price  <derek@ximbiot.com>
66634             Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         Sync from cvs.
66637         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
66638
66639 2005-05-29  Derek Price  <derek@ximbiot.com>
66640
66641         * config/srclist.txt (glob_.h, glob.c): Add these files.
66642
66643 2005-05-29  Derek Price  <derek@ximbiot.com>
66644
66645         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
66646         * modules/glob: New file.
66647         * modules/getlogin_r: Add link to POSIX spec in description.
66648
66649 2005-05-29  Derek Price  <derek@ximbiot.com>
66650             Paul Eggert  <eggert@cs.ucla.edu>
66651
66652         * m4/glob.m4: New file.
66653
66654 2005-05-29  Derek Price  <derek@ximbiot.com>
66655             Paul Eggert  <eggert@cs.ucla.edu>
66656
66657         * lib/glob_.h, lib/glob.c: New files.
66658
66659 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66660
66661         * modules/fts (Files): Remove m4/inttypes-pri.m4.
66662         * modules/fts-lgpl (Depends-on): Remove gettext.
66663
66664 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66665
66666         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
66667         and don't require gt_INTTYPES_PRI.
66668
66669 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
66670
66671         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
66672
66673         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
66674         the configuration hassle isn't worth it.
66675         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
66676         (LONGEST_MODIFIER, PRIuMAX): Remove.
66677
66678 2005-05-27  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/getlogin_r.h: Remove second include of <stddef.h>.
66681
66682 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
66683
66684         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
66685         _POSIX_PTHREAD_SEMANTICS for Solaris.
66686
66687 2005-05-25  Derek Price  <derek@ximbiot.com>
66688
66689         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
66690
66691 2005-05-25  Derek Price  <derek@ximbiot.com>
66692             Paul Eggert  <eggert@cs.ucla.edu>
66693
66694         * modules/getlogin_r, m4/getlogin_r.m4: New files.
66695         * lib/getlogin_r.c, getlogin_r.h: New files.
66696
66697 2005-05-25  Bruno Haible  <bruno@clisp.org>
66698             Derek Price  <derek@ximbiot.com>
66699
66700         * lib/getlogin_r.h: Simplify API documentation.
66701
66702 2005-05-23  Derek Price  <derek@ximbiot.com>
66703
66704         * modules/minmax (Files): Add m4/minmax.m4.
66705         (configure.ac): Add gl_MINMAX.
66706
66707 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
66710         so that unistd-safer.h (GPL'ed code) need not be included.
66711
66712 2005-05-22  Bruno Haible  <bruno@clisp.org>
66713
66714         * m4/minmax.m4: New file.
66715         Based on a patch by Derek Price <derek@ximbiot.com>.
66716
66717 2005-05-22  Bruno Haible  <bruno@clisp.org>
66718
66719         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
66720         (INT64_MIN): Fix definition.
66721         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
66722
66723         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
66724         NEED_SIGNED_INT_TYPES.
66725
66726         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
66727         HAVE_SYSTEM_INTTYPES.
66728
66729 2005-05-22  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
66732         Also include <sys/param.h> if it defines MIN, MAX.
66733         Based on a patch by Derek Price <derek@ximbiot.com>.
66734
66735 2005-05-21  Jim Meyering  <jim@meyering.net>
66736
66737         * modules/fts (Files): Add m4/inttypes-pri.m4.
66738         (Depends-on): Add lstat and remove gettext.  Alphabetize.
66739
66740 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66741
66742         New fts module.
66743         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
66744         (setup_dir, free_dir): New functions.
66745         (enter_dir, leave_dir): Define trivial
66746         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
66747         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
66748         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
66749         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
66750         Move to fts-cycle.c.
66751         (fts_open): Use setup_dir.
66752         (fts_close): Use free_dir.
66753         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
66754         This adds a label and some gotos, but the alternatives were messier.
66755         Check for memory allocation failure when entering a dir.
66756         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
66757         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
66758         (FTS): New member fts_cycle, that is a union that contains the
66759         old active_dir_ht and cycle_state.  All uses changed to mention
66760         fts_cycle.ht and fts_cycle.state.
66761         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
66762         fts.c, with the following changes:
66763         (setup_dir, free_dir): New functions.
66764         (enter_dir): Now returns bool.  Return true if successful, false
66765         if memory exhausted.  All callers changed.
66766         Do not bother partly cleaning up on
66767         memory allocation failure; that is free_dir's job.
66768         However, free ad if hash_insert fails, to avoid memory leak.
66769         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
66770         fts->fts_options to see which union member to use.
66771
66772 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
66775         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
66776
66777 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
66778
66779         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
66780
66781 2005-05-20  Jim Meyering  <jim@meyering.net>
66782
66783         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
66784         Now a macro, to pacify GCC.
66785
66786 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66787
66788         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
66789         of -1.
66790
66791 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
66792
66793         * lib/chown.c (rpl_chown): Return -1 on failure.
66794
66795 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66796
66797         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
66798         Don't check for stddef.h.
66799         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
66800         don't use its results.
66801         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
66802         since we include them unconditionally.  Don't require
66803         AM_STDBOOL_H, since stdbool is a prerequisite.
66804         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
66805         since we assume C89 or better.
66806         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
66807         as we don't use their results.
66808         Don't check for fchdir, memmove, memset, strrchr, as we use
66809         them unconditionally.
66810         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
66811         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
66812
66813 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
66814
66815         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
66816         Include <stddef.h> unconditionally, since we assume C89 now.
66817         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
66818         * lib/fts.c: Include fts_.h first, to check interface.
66819         Do not include intprops.h; no longer needed.
66820         Include cycle-check.h and hash.h, since fts_.h no longer does.
66821         Remove unnecessary casts of closedir to void.
66822         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
66823         decide whether to decrement nlinks.
66824         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
66825         (FTS): Use struct hash_table * instead of Hash_table, so that
66826         we no longer need to include hash.h here.
66827
66828 2005-05-18  Jim Meyering  <jim@meyering.net>
66829
66830         * modules/dirfd (License): Change to LGPL.  Most of the code
66831         is already in the public domain.
66832
66833 2005-05-18  Jim Meyering  <jim@meyering.net>
66834
66835         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
66836         Reported by Yoann Vandoorselaere.
66837
66838 2005-05-17  Jim Meyering  <jim@meyering.net>
66839
66840         * m4/fts.m4: New file, from coreutils.
66841
66842 2005-05-17  Jim Meyering  <jim@meyering.net>
66843
66844         * lib/fts.c, lib/fts_.h: New files, from coreutils.
66845
66846 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66847
66848         Sync from coreutils.
66849         * m4/unlinkdir.m4: New file.
66850
66851 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66852
66853         Sync from coreutils.
66854         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
66855         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
66856         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
66857         White space changes only.
66858         * lib/makepath.c (make_path): Port to hosts where leading "//" is
66859         special.
66860         * lib/yesno.c: Include getline.h, not ctype.h.
66861         (yesno): Don't remove leading white space; POSIX doesn't allow it.
66862         Use getline to remove arbitrary restriction on response length.
66863
66864 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
66865
66866         * config/srclist-update: Spell out "Street" in FSF postal
66867         mail address; this is the style the FSF seems to prefer.
66868
66869         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
66870         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
66871         this updates FSF postal mail address.
66872
66873         Sync from coreutils.
66874         * modules/unlinkdir: New file.
66875         * modules/yesno (Depends-on): Add getline.
66876         * MODULES.html.sh (File system functions): Add unlinkdir.
66877
66878 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
66881         lib/strsep.h:
66882         Change the initial comment to refer to GPL, not LGPL.
66883         gnulib-tool will change it to LGPL as needed.
66884
66885         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
66886         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
66887         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
66888         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
66889         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
66890         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
66891         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
66892         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
66893         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
66894         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
66895         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
66896         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
66897         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
66898         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
66899         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
66900         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
66901         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
66902         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
66903         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
66904         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
66905         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
66906         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
66907         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
66908         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
66909         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
66910         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
66911         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
66912         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
66913         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
66914         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
66915         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
66916         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
66917         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
66918         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
66919         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
66920         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
66921         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
66922         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
66923         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
66924         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
66925         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
66926         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
66927         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
66928         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
66929         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
66930         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
66931         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
66932         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
66933         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
66934         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
66935         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
66936         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
66937         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
66938         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
66939         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
66940         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
66941         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
66942         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
66943         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
66944         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
66945         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
66946         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
66947         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
66948         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
66949         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
66950         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
66951         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
66952         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
66953         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
66954         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
66955         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
66956         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
66957         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
66958         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
66959         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
66960         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
66961         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
66962         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
66963         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
66964         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
66965         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
66966         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
66967         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
66968         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
66969         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
66970         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
66971         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
66972         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
66973         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
66974         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
66975         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
66976         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
66977         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
66978         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
66979         lib/yesno.c, lib/yesno.h:
66980         Update FSF postal mail address.
66981
66982 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
66983
66984         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
66985         tests/test-memmem.c, tests/test-stpncpy.c:
66986         Update FSF postal mail address.
66987
66988 2005-05-13  Bruno Haible  <bruno@clisp.org>
66989
66990         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
66991         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
66992         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
66993         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
66994         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
66995         Add support for 64-bit integers in the MSVC compiler.
66996
66997 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
66998
66999         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
67000
67001 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
67002
67003         * gnulib-tool (func_import): Sort and uniquify recommended includes.
67004
67005 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
67006
67007         * doc/getdate.texi (General date syntax): Don't say that date
67008         date --iso-8601=ns generates acceptable dates; it doesn't yet.
67009         Problem reported by Nic Ferrier.
67010
67011 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67012
67013         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
67014         specified in ai_socktype. Fix invalid ai_protocol
67015         check. ai_protocol is usually set to 0 or depending on
67016         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
67017         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
67018         ai_socktype / ai_protocol in the returned addrinfo structure.
67019
67020 2005-05-10  Simon Josefsson  <jas@extundo.com>
67021
67022         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
67023         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
67024
67025 2005-05-10  Karl Berry  <karl@gnu.org>
67026
67027         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
67028         (from http://www.gnu.org/licenses).
67029         * doc/COPYING.LIB: also rename to COPYING.LESSER.
67030         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
67031         fdl.texi suffices.
67032
67033 2005-05-10  Karl Berry  <karl@gnu.org>
67034
67035         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
67036         (COPYING.DOC): remove.
67037
67038         * config/srclist-update: new FSF address.
67039
67040 2005-05-10  Derek Price  <derek@ximbiot.com>
67041
67042         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
67043         possible.
67044
67045 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67046             Bruno Haible  <bruno@clisp.org>
67047
67048         * modules/inet_ntop: New file.
67049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67050         inet_ntop.
67051
67052 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67053             Bruno Haible  <bruno@clisp.org>
67054
67055         * m4/inet_ntop.m4: New file.
67056
67057 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67058             Bruno Haible  <bruno@clisp.org>
67059
67060         * lib/inet_ntop.h: New file.
67061         * lib/inet_ntop.c: New file, from glibc with modifications.
67062
67063 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
67064
67065         * modules/time_r (License): Change to LGPL.
67066         * modules/extensions (License): Change to LGPL.  Actually,
67067         the license is more permissive than that, but currently gnulib-tool
67068         doesn't know how to handle more-permissive licenses.
67069
67070         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
67071         Problem reported by Dave Love.
67072
67073 2005-05-08  Jim Meyering  <jim@meyering.net>
67074
67075         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
67076         blank.
67077
67078 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         * modules/argmatch (Depends-on): Add stdbool.
67081         * modules/backupfile (Depends-on): Likewise.
67082         * modules/chdir-long (Depends-on): Likewise.
67083         * modules/closeout (Depends-on): Likewise.
67084         * modules/cycle-check (Depends-on): Likewise.
67085         * modules/dirname (Depends-on): Likewise.
67086         * modules/fnmatch (Depends-on): Likewise.
67087         * modules/fsusage (Depends-on): Likewise.
67088         * modules/fwriteerror (Depends-on): Likewise.
67089         * modules/getcwd (Depends-on): Likewise.
67090         * modules/getloadavg (Depends-on): Likewise.
67091         * modules/hard-locale (Depends-on): Likewise.
67092         * modules/makepath (Depends-on): Likewise.
67093         * modules/mountlist (Depends-on): Likewise.
67094         * modules/nanosleep (Depends-on): Likewise.
67095         * modules/posixtm (Depends-on): Likewise.
67096         * modules/quotearg (Depends-on): Likewise.
67097         * modules/readtokens (Depends-on): Likewise.
67098         * modules/readtokens0 (Depends-on): Likewise.
67099         * modules/readutmp (Depends-on): Likewise.
67100         * modules/save-cwd (Depends-on): Likewise.
67101         * modules/strftime (Depends-on): Likewise.
67102         * modules/userspec (Depends-on): Likewise.
67103         * modules/utimecmp (Depends-on): Likewise.
67104         * modules/xgetcwd (Depends-on): Likewise.
67105         * modules/xnanosleep (Depends-on): Likewise.
67106         * modules/xstrtod (Depends-on): Likewise.
67107         * modules/yesno (Depends-on): Likewise.
67108
67109 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67110
67111         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
67112         needless checks.
67113
67114 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67115
67116         Merge from coreutils.  Among other things,
67117         add bulletproofing for cases where stdin, stdout, or stderr are closed.
67118         * lib/fd-safer.c: New file.
67119         * lib/fcntl-safer.h, open-safer.c: Remove.
67120         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
67121         * lib/dup-safer.c: Include unistd-safer.h first.
67122         Don't include errno.h.
67123         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
67124         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
67125         * lib/file-type.c: Rely on file-type.h change.
67126         * lib/getloadavg.c: Include unistd-safer.h.
67127         (getloadavg): Use safer open.
67128         * lib/getusershell.c: Include "stdio-safer.h".
67129         (getusershell): Use safer fopen.
67130         * lib/long-options.c (long_options): Use NULL rather than 0.
67131         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
67132         'free'.
67133         * lib/modechange.c: Likewise.
67134         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
67135         (MODE_DONE): New constant.
67136         (struct mode_change): Remove 'next' member.
67137         (make_node_op_equals): New function; like the old one of the
67138         same name, except it allocates an array.
67139         (mode_compile, mode_create_from_ref): Use it.
67140         (mode_compile): Allocate result as an array, not a linked list.
67141         Parse octal string ourself, so that we catch mistakes like "+0".
67142         (mode_adjust): Arg is an array, not a linked list.
67143         * lib/modechange.c: Include stat-macros.h, xalloc.h.
67144         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
67145         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
67146         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
67147         Remove.  This is now stat-macros.h's job.
67148         (talloc): Remove.  All callers replaced by xalloc, so that
67149         our invokers don't have to worry about reporting memory failures.
67150         (make_node_op_equals): Remove.
67151         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67152         New constants.
67153         (struct mode_change): Moved here from modechange.h.
67154         (mode_append_entry): Remove.
67155         (mode_compile): Remove MASKED_OPS arg, since it encouraged
67156         apps to have incorrect behavior.  Use simpler algorithm for head
67157         and tail.  Don't futz with umask; that's now the job of mode_adjust.
67158         Detect more invalid usages rather than having somewhat-random behavior.
67159         Don't insert an "a=" action, as that leads to incorrect behavior.
67160         (mode_compile, mode_create_from_ref): Return NULL on error instead
67161         of an enum, since now there's only one way to have an error.  All
67162         callers changed.
67163         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
67164         at the correct time.  Simplify calculation of "+u" and its ilk.
67165         Don't mishandle "+X".
67166         (mode_free): Remove "register" and localize decls.
67167         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
67168         (struct mode_change): Move to modechange.c; callers don't
67169         need to see this stuff.
67170         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
67171         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
67172         (mode_change, mode_adjust): Reflect the new signatures noted above.
67173         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
67174         that might redefine system include files.
67175         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
67176         (my_usleep): Use NULL rather than (void *) 0.
67177         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
67178         Use siginterrupt to specify that system calls should be interrupted.
67179         (rpl_nanosleep): Move initialization of suspended closer to call of
67180         my_usleep.
67181         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
67182         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
67183         (desirable_utmp_entry): New function.
67184         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
67185         using x2nrealloc, to simplify logic.
67186         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
67187         size calculation.  Do not assume utmp file is a regular file.
67188         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
67189         (READ_UTMP_CHECK_PIDS): New constant.
67190         * lib/save-cwd.c: Include unistd-safer.h.
67191         (save_cwd): Use fd_safer.
67192         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
67193         [!_LIBC] Include "stat-macros.h" instead.
67194         * lib/unistd-safer.h (fd_safer): New decl.
67195
67196 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         * modules/getloadavg (Depends-on): Add unistd-safer.
67199         * modules/getusershell (Depends-on): Add stdio-safer.
67200         * modules/lstat (Depends-on): Remove xalloc.
67201         * modules/mkstemp (Depends-on): Add stat-macros.
67202         * modules/modechange (Depends-on): Remove xstrtol.
67203         Add stat-macros, xalloc.
67204         * modules/save-cwd (Depends-on): Add unistd-safer.
67205         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
67206         * modules/unistd-safer (Files): Add lib/fd-safer.c
67207         (Makefile.am): Remove lib_SOURCES.
67208
67209         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
67210         Remove fcntl-safer; unistd-safer supersedes it.
67211
67212 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
67215         AC_HEADER_STAT.
67216         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
67217         (gl_PREREQ_CHOWN): Remove.
67218         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
67219         it.  Don't require AC_HEADER_STAT.
67220         (gl_PREREQ_LSTAT): Remove.
67221         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
67222         Don't require AC_HEADER_STAT.
67223         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
67224         (gl_PREREQ_RMDIR): Remove.
67225         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
67226         mention stat-macros.h or AC_HEADER_STAT, since we'll make
67227         the stat-macros module a prerequisite.
67228         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
67229         * m4/filemode.m4 (gl_FILEMODE): Likewise.
67230         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
67231         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
67232         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
67233         variable names.
67234         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
67235         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
67236         variable prefixes.
67237         * m4/fcntl-safer.m4: Remove.
67238         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
67239         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
67240         Invoke gl_PREREQ_FD_SAFER.
67241         (gl_PREREQ_FD_SAFER): New macro.
67242         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
67243         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
67244         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
67245         Remove duplicate call to AC_LIBOBJ(readutmp).
67246         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
67247
67248         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
67249         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
67250
67251 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
67252
67253         * MODULES.html.sh (Misc): Add byteswap.
67254
67255 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67256
67257         * modules/getcwd (Depends-on): Add extensions.
67258         * modules/openat (Depends-on): Likewise.
67259
67260 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67261
67262         * modules/byteswap: New file.
67263
67264 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67265
67266         * m4/byteswap.m4: New file.
67267
67268 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
67269
67270         * lib/byteswap_.h: New file.
67271
67272 2005-04-25  Karl Berry  <karl@gnu.org>
67273
67274         * m4/gettext.m4: Update from GNU gettext 0.14.4.
67275
67276 2005-04-25  Albert Chin  <china@thewrittenword.com>
67277
67278         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
67279         Toolkit C bug.
67280
67281 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
67282
67283         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
67284         (func_ln_if_changed) Remove forcibly for no error message
67285         in case file does not exist.
67286
67287 2005-04-19  Simon Josefsson  <jas@extundo.com>
67288
67289         * gnulib-tool (Options): Make --symlink mean --symbolic.
67290
67291 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
67292
67293         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
67294
67295 2005-04-16  Simon Josefsson  <jas@extundo.com>
67296
67297         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
67298
67299 2005-04-15  Simon Josefsson  <jas@extundo.com>
67300
67301         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
67302
67303 2005-04-15  Simon Josefsson  <jas@extundo.com>
67304
67305         * gnulib-tool: Rename --symlink to --symbolic.
67306
67307 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
67308
67309         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
67310         symbolic links to files instead of copying/moving.  Add --aux-dir,
67311         specifying directory relative --dir where auxiliary build tools
67312         are placed.
67313
67314 2005-04-14  Bruno Haible  <bruno@clisp.org>
67315
67316         * modules/allocsa (License): Change to LGPL.
67317         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
67318
67319 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67320
67321         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
67322         that "UTC +1 second" continues to work.  Problem reported
67323         by Dmitry V. Levin.
67324         (relunit_snumber): New rule.
67325         (relunit): Use it.
67326
67327 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67328
67329         * lib/getdate.y (universal_time_zone_table): New constant.
67330         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
67331         universal_time_zone_table.
67332         (lookup_zone): Prefer universal_time_zone_table to
67333         local_time_zone_table, so that "GMT" time stamps are allowed in
67334         London during the summer.  Problem reported by Ian Abbott.
67335
67336 2005-04-12  Jim Meyering  <jim@meyering.net>
67337
67338         * lib/human.c (humblock): Set *options even when returning due to
67339         xstrtoumax conversion failure.  Thanks to a used-uninitialized
67340         warning from gcc-4.
67341
67342 2005-04-09  Jim Meyering  <jim@meyering.net>
67343
67344         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
67345         -Wuninitialized: initialize tm0.tm_year.
67346
67347 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
67350         count, since there's no maximum.  All uses changed.
67351         Add member dsts_seen.
67352         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
67353         not being INT_MAX.
67354         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
67355         Use pc_rels_seen to decide whther a date is absolute.
67356
67357         * lib/getdate.y (number): Don't overwrite year.
67358         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
67359         check.
67360
67361 2005-04-02  Simon Josefsson  <jas@extundo.com>
67362
67363         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
67364         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
67365
67366 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
67367
67368         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
67369         where no absolute path name can be longer than PATH_MAX.
67370
67371 2005-03-27  Jim Meyering  <jim@meyering.net>
67372
67373         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
67374
67375 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
67378         "one's complement" -> "ones' complement" in comment, as per Knuth.
67379         "value of type" -> "type or expression" in comment.
67380         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
67381
67382 2005-03-26  Jim Meyering  <jim@meyering.net>
67383
67384         Comment nits.
67385         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
67386         Correct typos: s/or/of/.
67387
67388 2005-03-26  Jim Meyering  <jim@meyering.net>
67389
67390         * modules/check-include-files: Move to ../ and rename to...
67391         * check-module: ...this.
67392
67393 2005-03-25  Jim Meyering  <jim@meyering.net>
67394
67395         * modules/xvasprintf (Files): Add xalloc.h.
67396
67397 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * modules/gettext (Files): config/config.rpath ->
67400         build-aux/config.rpath
67401         * modules/iconv (Files): Likewise.
67402         Problem reported by Oskar Liljeblad.
67403
67404 2005-03-23  Jim Meyering  <jim@meyering.net>
67405
67406         * modules/check-include-files: New script to check for
67407         missing dependencies, multiple includes, etc.
67408
67409         * modules/c-strtold (Depends-on): Add xalloc.
67410         * modules/c-strtod (Depends-on): Add xalloc.
67411         * modules/hash (Depends-on): Add xalloc.
67412         (Files): Remove lib/xalloc.h.
67413
67414         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
67415         * modules/userspec (Files): Add lib/inttostr.h.
67416
67417 2005-03-23  Jim Meyering  <jim@meyering.net>
67418
67419         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
67420
67421 2005-03-22  Jim Meyering  <jim@meyering.net>
67422
67423         * modules/stat-macros: New module.
67424         * modules/canonicalize, modules/euidaccess, modules/file-type,
67425         * modules/filemode, modules/lchown, modules/makepath,
67426         * modules/rmdir, modules/stat: Depend on new stat-macros module
67427         rather than listing lib/stat-macros.h manually.
67428         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
67429
67430 2005-03-22  Jim Meyering  <jim@meyering.net>
67431
67432         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
67433
67434 2005-03-22  Bruno Haible  <bruno@clisp.org>
67435
67436         * config/srclist.txt: Replace target directory 'config' with
67437         'build-aux'.
67438         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
67439         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
67440         ../build-aux/.
67441
67442 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
67443
67444         * modules/chdir-long (Depends-on): Add mempcpy.
67445
67446         * modules/acl, modules/backupfile, modules/c-strtod,
67447         modules/c-strtold, modules/canon-host, modules/canonicalize,
67448         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
67449         modules/exclude, modules/exitfail, modules/file-type,
67450         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
67451         modules/getdate, modules/getline, modules/getpagesize,
67452         modules/getpass, modules/getugroups, modules/group-member,
67453         modules/hard-locale, modules/hash, modules/human, modules/idcache,
67454         modules/inttostr, modules/long-options, modules/makepath,
67455         modules/md5, modules/memcasecmp, modules/memcoll,
67456         modules/modechange, modules/mountlist, modules/path-concat,
67457         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
67458         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
67459         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
67460         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
67461         modules/strftime, modules/strndup, modules/strverscmp,
67462         modules/timespec, modules/unlocked-io, modules/userspec,
67463         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
67464         modules/yesno:
67465         Remove lib_SOURCES line from Makefile.am section, as this is now
67466         done automatically by the corresponding Autoconf macro.
67467
67468 2005-03-21  Jim Meyering  <jim@meyering.net>
67469
67470         Changes imported from coreutils.
67471
67472         * lib/cycle-check.c: Don't include xalloc.h.
67473
67474         * lib/path-concat.c: Don't include assert.h.
67475         (path_concat): Remove assertion that would have triggered
67476         for ABASE starting with more than one slash.
67477         Reported by Andreas Schwab.
67478
67479         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
67480         properly when ABASE is an absolute file name.
67481         Correct the description of this function.
67482         Include <assert.h>.
67483         Add an assertion and a test driver.
67484         This fixes a bug introduced on 2004-07-02.
67485         Andreas Schwab reported the resulting failure of cp --parents:
67486         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
67487
67488 2005-03-21  Jim Meyering  <jim@meyering.net>
67489
67490         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
67491         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
67492
67493 2005-03-21  Jim Meyering  <jim@meyering.net>
67494         and  Paul Eggert  <eggert@cs.ucla.edu>
67495
67496         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
67497         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
67498         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
67499         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
67500         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
67501         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
67502         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
67503         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
67504         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
67505         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
67506         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
67507         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
67508         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
67509         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
67510         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
67511         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
67512         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
67513         for these modules.
67514
67515 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
67516
67517         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
67518         (which shouldn't happen), generate nothing instead of returning 0
67519         immediately, so that nstrftime (NULL, ...) doesn't return 0.
67520
67521 2005-03-16  Bruno Haible  <bruno@clisp.org>
67522
67523         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
67524         HAVE_LONGLONG_64BIT.
67525
67526 2005-03-16  Bruno Haible  <bruno@clisp.org>
67527
67528         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
67529         HAVE_LONGLONG_64BIT.
67530
67531 2005-03-16  Bruno Haible  <bruno@clisp.org>
67532
67533         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
67534         HAVE_LONGLONG_64BIT.
67535
67536 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * lib/strftime.c (my_strftime): Prepend space to format so that we can
67539         reliably distinguish strftime failure from empty output on POSIX
67540         hosts.
67541
67542 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
67543
67544         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
67545         (iconv_string): Don't guess a size-zero buffer, as that might cause
67546         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
67547         result would be 'too large', where 'too large' is (heuristically)
67548         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
67549         overflow concerns.  This will prevent some unwanted malloc failures
67550         when the inputs are very large.
67551
67552 2005-03-15  Karl Berry  <karl@gnu.org>
67553
67554         * config/srclist.txt (config.rpath): from gettext.
67555         * config/config.rpath: update.
67556
67557 2005-03-15  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
67560         to 'negate'.
67561
67562         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
67563         variable.
67564
67565         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
67566         results.
67567
67568 2005-03-14  Simon Josefsson  <jas@extundo.com>
67569
67570         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
67571         <fx@gnu.org>.
67572
67573 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
67576         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
67577         intprops.h.
67578         * lib/strtol.c: Likewise.
67579
67580 2005-03-14  Jim Meyering  <jim@meyering.net>
67581
67582         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
67583         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
67584         to be nonzero so that we (and caller) can detect the difference
67585         between a valid zero-length expansion and an error return, even
67586         when the underlying strftime fails before writing anything into
67587         that location.
67588
67589 2005-03-14  Bruno Haible  <bruno@clisp.org>
67590
67591         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
67592         Update from GNU gettext 0.14.3.
67593
67594 2005-03-10  Jim Meyering  <jim@meyering.net>
67595
67596         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
67597
67598 2005-03-10  Jim Meyering  <jim@meyering.net>
67599
67600         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
67601         so that this module works on systems without fchdir.
67602
67603 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         Factor int-properties macros into a single file, except for
67606         glibc-related files.
67607         * lib/intprops.h: New file.
67608         * lib/getloadavg.c: Include it instead of limits.h.
67609         (INT_STRLEN_BOUND): Remove.
67610         * lib/human.c: Include intprops.h.
67611         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
67612         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
67613         302/1000.
67614         * lib/inttostr.h: Include intprops.h instead of limits.h.
67615         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
67616         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
67617         for consistency with intprops.h.
67618         (time_t_is_integer, twos_complement_arithmetic): Use them.
67619         * lib/sig2str.h: Include <signal.h>, intprops.h.
67620         (INT_STRLEN_BOUND): Remove.
67621         * lib/strftime.c (TYPE_SIGNED): Remove.
67622         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
67623         * lib/strtol.c: Adjust comments to match intprops.h.
67624         * lib/userspec.c: Include intprops.h.
67625         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
67626         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
67627         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
67628         instead of rolling our own expressions.
67629         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
67630
67631         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
67632         instead of int.
67633         (my_strftime): Do not mishandle years close to INT_MAX, by doing
67634         the right thing even if adding 1900 would overflow.  Similarly
67635         for tm_mon + 1 and tm_yday + 1.
67636         Make %Y always equivalent to %C%y, and similarly for %G and %g.
67637         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
67638         (DO_SIGNED_NUMBER): New macro.
67639         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
67640
67641 2005-03-07  Bruno Haible  <bruno@clisp.org>
67642
67643         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
67644
67645 2005-03-07  Bruno Haible  <bruno@clisp.org>
67646
67647         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
67648
67649 2005-03-04  Derek R. Price  <derek@ximbiot.com>
67650
67651         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
67652         (func_import): Only replace files via --import when they have actually
67653         changed.
67654
67655 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67656
67657         * m4/mmap-anon.m4: New file.
67658         * m4/pagealign_alloc.m4: New file.
67659
67660 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67661             Bruno Haible  <bruno@clisp.org>
67662
67663         * modules/pagealign_alloc: New file.
67664         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
67665
67666 2005-03-03  Derek R. Price  <derek@ximbiot.com>
67667             Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/pagealign_alloc.h: New file.
67670         * lib/pagealign_alloc.c: New file.
67671
67672 2005-03-03  Bruno Haible  <bruno@clisp.org>
67673
67674         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
67675         Use an all-permissive copyright notice, recommended by RMS.
67676
67677 2005-03-02  Bruno Haible  <bruno@clisp.org>
67678
67679         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
67680         of AIX, the replacement has to be done only after <string.h> is
67681         included, therefore not in config.h. stpncpy.h does the replacement,
67682         and stpncpy.c uses it.
67683
67684 2005-03-02  Bruno Haible  <bruno@clisp.org>
67685
67686         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
67687         stpncpy.c uses it.
67688
67689 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
67692         The workaround isn't strictly needed for POSIX conformance, and
67693         it's too much of a pain to configure and maintain.  We'll ask
67694         people to fix their kernels instead.
67695         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
67696         (NANOSLEEP_BUG_WORKAROUND): Remove.
67697         (xnanosleep): Remove the workaround.
67698
67699 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
67702         Reported by Derek Price.
67703         (Include): Add "timespec.h".
67704
67705         * modules/xnanosleep (Depends-on): Remove gethrxtime.
67706
67707 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67708
67709         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
67710         to detect nanosleep bug.
67711
67712 2005-03-01  Bruno Haible  <bruno@clisp.org>
67713
67714         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
67715
67716 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
67717
67718         * modules/gethrxtime: New file.
67719         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
67720         (Depends-on): Add gethrxtime.
67721         (configure.ac): Add gl_XNANOSLEEP.
67722         (Makefile.am): Remove lib_SOURCES line.
67723
67724 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67725
67726         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
67727         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
67728
67729 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67730
67731         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
67732         * lib/timespec.h (gettime): Return void, since it always
67733         succeeds now.  All uses changed.
67734         * lib/gettime.c (gettime) Likewise.
67735         [HAVE_NANOTIME]: Prefer nanotime.
67736         Assume gettimeofday succeeds, as POSIX requires.
67737         Assime time () succeeds, since other code already does.
67738         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
67739         (timespec_subtract): Remove.
67740         (NANOSLEEP_BUG_WORKAROUND): New constant.
67741         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
67742         things considerably.  Use it only on GNU/Linux hosts, since the
67743         workaround shouldn't be needed elsewhere.
67744
67745 2005-02-24  Bruno Haible  <bruno@clisp.org>
67746
67747         * modules/gettext (Files): Add m4/glibc2.m4.
67748
67749 2005-02-24  Bruno Haible  <bruno@clisp.org>
67750
67751         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
67752         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
67753         * m4/progtest.m4:
67754         Update from GNU gettext 0.14.2.
67755         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
67756
67757 2005-02-24  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/localcharset.c: Update from GNU gettext 0.14.2.
67760         * lib/config.charset: Update from GNU gettext 0.14.2.
67761
67762 2005-02-24  Bruno Haible  <bruno@clisp.org>
67763
67764         * lib/gettext.h: Update from GNU gettext 0.14.2.
67765
67766 2005-02-23  Simon Josefsson  <jas@extundo.com>
67767
67768         * m4/iconvme.m4: New file.
67769
67770 2005-02-23  Jim Meyering  <jim@meyering.net>
67771
67772         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
67773         change.
67774         Thanks to Bruno Haible for catching it.
67775
67776 2005-02-22  Simon Josefsson  <jas@extundo.com>
67777
67778         * modules/iconvme: New file.
67779
67780         * MODULES.html.sh: Add iconvme.
67781
67782 2005-02-22  Simon Josefsson  <jas@extundo.com>
67783
67784         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
67785
67786 2005-02-22  Simon Josefsson  <jas@extundo.com>
67787
67788         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
67789
67790 2005-02-22  Jim Meyering  <jim@meyering.net>
67791
67792         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
67793         s/ifndef/ifdef/.
67794
67795 2005-02-20  Neil Conway  <neilc@samurai.com>
67796
67797         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
67798         returned by OSX/Darwin if the specified buffer is not large
67799         enough for the hostname.
67800
67801 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67802
67803         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
67804         pass it to _help, otherwise the latter coredumps trying to
67805         dereference state.root_argp.
67806
67807 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67808
67809         * modules/chdir-long (Depends-on): Add memrchr.
67810         * modules/memrchr (Files): Add lib/memrchr.h.
67811         (Include): "memrchr.h".
67812
67813 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67814
67815         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
67816
67817 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67818
67819         * lib/memrchr.h: New file.
67820         * lib/chdir-long.c: Include it.
67821         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
67822         Don't bother including stddef.h.
67823
67824 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
67825
67826         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
67827         inclusion.
67828         Include <sys/types.h>, for dev_t.
67829         (ME_DUMMY, ME_REMOTE): Move from here....
67830         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
67831         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
67832         Dmitry V. Levin.
67833         Include mountlist.h first, to test the interface.
67834
67835 2005-01-29  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/progname.c (program_name): Initialize.
67838         Needed when linking statically on MacOS X.
67839
67840 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67841
67842         Sync from coreutils.
67843         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
67844         (Depends-on): Add c-strtod.
67845         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
67846
67847 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         Sync from coreutils.
67850         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
67851
67852         Remove files that are specific to coreutils.
67853         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
67854
67855 2005-01-28  Bruno Haible  <bruno@clisp.org>
67856
67857         * modules/javacomp: New file.
67858         * MODULES.html.sh (Java): Add javacomp.
67859
67860 2005-01-28  Bruno Haible  <bruno@clisp.org>
67861
67862         * m4/javacomp.m4: New file, from GNU gettext.
67863
67864 2005-01-28  Bruno Haible  <bruno@clisp.org>
67865
67866         * lib/javacomp.sh.in: New file, from GNU gettext.
67867         * lib/javacomp.h: New file, from GNU gettext.
67868         * lib/javacomp.c: New file, from GNU gettext.
67869
67870 2005-01-26  Simon Josefsson  <jas@extundo.com>
67871
67872         * lib/gai_strerror.c: Use GPL in header.
67873
67874 2005-01-26  Bruno Haible  <bruno@clisp.org>
67875
67876         * modules/javaexec: New file.
67877         * MODULES.html.sh (Java): Add javaexec.
67878
67879 2005-01-26  Bruno Haible  <bruno@clisp.org>
67880
67881         * m4/javaexec.m4: New file, from GNU gettext.
67882
67883 2005-01-26  Bruno Haible  <bruno@clisp.org>
67884
67885         * lib/javaexec.sh.in: New file, from GNU gettext.
67886         * lib/javaexec.h: New file, from GNU gettext.
67887         * lib/javaexec.c: New file, from GNU gettext.
67888
67889 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67890
67891         * modules/lchown (Depends-on): Remove lchown.h
67892
67893 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67894
67895         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
67896         must be defined if the header file was not found, in order
67897         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
67898
67899 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67900
67901         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
67902         initializers for struct pentry_state.
67903         (__argp_error): Check return value of __asprintf
67904         (__argp_failure): Translate error message
67905
67906         * lib/argp-parse.c: Removed braces around the expansion of N_()
67907
67908 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
67911         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
67912         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
67913         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
67914         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
67915         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
67916         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
67917         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
67918         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
67919         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
67920         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
67921         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
67922         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
67923         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
67924         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
67925         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
67926         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
67927         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
67928         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
67929         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
67930         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
67931         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
67932         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
67933         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
67934         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
67935         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
67936         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
67937         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
67938         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
67939         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
67940         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
67941         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
67942         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
67943         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
67944         xstrtol.m4, xstrtoumax.m4, yesno.m4:
67945         Use an all-permissive copyright notice, recommended by RMS.
67946
67947 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * modules/chdir-long (Depends-on): Remove mempcpy.
67950
67951 2005-01-21  Jim Meyering  <jim@meyering.net>
67952
67953         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
67954         same value as for Solaris 9.
67955
67956         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
67957         component length.  This included changing the parameter to be
67958         of type `char *' rather than `char const *'.
67959         * lib/chdir-long.h (chdir_long): Update prototype.
67960
67961         * lib/openat.c (fdopendir, fstatat): New functions.
67962         * lib/openat.h: Include headers required for use of DIR and struct
67963         stat.
67964         [AT_SYMLINK_NOFOLLOW]: Define.
67965         (fdopendir, fstatat): Add prototypes.
67966
67967 2005-01-21  Bruno Haible  <bruno@clisp.org>
67968
67969         * modules/classpath: New file.
67970         * MODULES.html.sh (Java): Add classpath.
67971
67972 2005-01-21  Bruno Haible  <bruno@clisp.org>
67973
67974         * lib/classpath.h: New file, from GNU gettext.
67975         * lib/classpath.c: New file, from GNU gettext.
67976
67977 2005-01-20  Simon Josefsson  <jas@extundo.com>
67978
67979         * modules/version-etc-fsf: New file.
67980
67981 2005-01-20  Simon Josefsson  <jas@extundo.com>
67982
67983         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
67984         * lib/version-etc.c: Remove version_etc_copyright.
67985         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
67986         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
67987
67988 2005-01-20  Simon Josefsson  <jas@extundo.com>
67989
67990         * lib/base64.h (isbase64): Add.
67991
67992         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
67993         using a unsigned prototype, don't inline.
67994         (base64_decode): Use it.
67995
67996 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
67997
67998         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
67999         it.
68000
68001 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68002
68003         * lib/save-cwd.c (save_cwd): Remove code to support the case
68004         where fchdir is missing or flaky.
68005
68006 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68007
68008         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
68009
68010 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
68013         AC_LIBSOURCES now does this.
68014         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
68015         with new ullong_max module.
68016
68017 2005-01-19  Bruno Haible  <bruno@clisp.org>
68018
68019         * modules/sh-quote: New file.
68020         * MODULES.html.sh (Executing programs): Add sh-quote.
68021
68022 2005-01-19  Bruno Haible  <bruno@clisp.org>
68023
68024         * lib/sh-quote.h: New file, from GNU gettext.
68025         * lib/sh-quote.c: New file, from GNU gettext.
68026
68027 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68028
68029         Merge from coreutils.
68030         * m4/ullong_max.m4: New file.
68031         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
68032         (gl_MACROS): Assume localeconv exists.
68033
68034 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68035
68036         Merge changes from coreutils, as described below in several
68037         changelogs dated today.
68038
68039         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
68040         (O_DIRECTORY): Remove; not needed here, since "." must be
68041         a directory.  All uses removed.
68042         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
68043         universal on Suns, and we also need to test for IRIX.
68044         Revamp code to use 'if' rather than '#if'.
68045         Avoid unnecessary comparison of cwd->desc to 0.
68046
68047         * lib/utimens.c (futimens): Robustify the previous patch, by checking
68048         for known valid error numbers rather than observed invalid ones.
68049
68050 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
68051
68052         * modules/ullong_max: New file.
68053
68054         * modules/chdir-long, modules/openat: New files.
68055         * modules/save-cwd (Depends-on): Depend on chdir-long.
68056         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
68057
68058 2005-01-18  Jim Meyering  <jim@meyering.net>
68059
68060         Merge from coreutils.
68061         * m4/chdir-long.m4, m4/openat.m4: New files.
68062         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
68063         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
68064         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
68065         is sane and DOES follow symlinks.  Besides, testing 20 different
68066         systems found no broken chown implementations.
68067         Prompted by a change in rsync's copy of this macro.
68068         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
68069
68070         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
68071
68072         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
68073         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
68074         NULL-means-set-to-current-time semantics.
68075         Remove temporary file immediately, rather than waiting
68076         for configure's at-exit trap code to do it.
68077
68078 2005-01-18  Jim Meyering  <jim@meyering.net>
68079
68080         * lib/version-etc.c (version_etc_copyright): Update copyright date.
68081
68082         * lib/utimens.c (futimens): Account for the fact that futimes
68083         can also fail with errno == ENOSYS or errno == ENOENT.
68084         Patch from Dmitry V. Levin.
68085
68086         Change the name of the robust chdir function from chdir to chdir_long.
68087         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
68088         (restore_cwd): Use chdir_long, not chdir.
68089         * lib/chdir-long.c: Renamed from chdir.c.
68090         * lib/chdir-long.h: Renamed from chdir.h.
68091         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
68092         Hurd.
68093
68094 2005-01-18  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
68097         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
68098         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
68099         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
68100         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
68101         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
68102         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
68103         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
68104         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
68105         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
68106         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
68107         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
68108         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
68109         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
68110         Use an all-permissive copyright notice, recommended by RMS.
68111
68112 2005-01-18  Bob Proulx  <bob@proulx.com>
68113
68114         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
68115         simplify offsetof() macro construct to avoid compile failure with
68116         native HP-UX 11.0 ANSI C compiler.
68117
68118 2005-01-17  Bruno Haible  <bruno@clisp.org>
68119
68120         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
68121         redundant because stpncpy.m4 takes care of it.
68122
68123 2005-01-17  Bruno Haible  <bruno@clisp.org>
68124
68125         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
68126
68127 2005-01-17  Bruno Haible  <bruno@clisp.org>
68128
68129         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
68130         used.
68131
68132 2005-01-17  Bruno Haible  <bruno@clisp.org>
68133
68134         * lib/fwriteerror.h (fwriteerror): Change specification to include
68135         fclose.
68136         * lib/fwriteerror.c: Include <stdbool.h>.
68137         (fwriteerror): At the end, close the file stream. Record whether
68138         stdout was already closed.
68139
68140 2005-01-17  Bruno Haible  <bruno@clisp.org>
68141
68142         * lib/execute.c (environ): Declare if needed.
68143         * lib/pipe.c (environ): Likewise.
68144         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
68145
68146 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68147
68148         * modules/argp: Depend on vsnprintf
68149
68150 2005-01-10  Jim Meyering  <jim@meyering.net>
68151
68152         * modules/closeout (Depends-on): Add atexit.
68153
68154 2005-01-06  Bruno Haible  <bruno@clisp.org>
68155
68156         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
68157
68158 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
68159
68160         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
68161         definitions to be after all include files, to avoid collisions.
68162         Problem reported by Bob Proulx.
68163
68164 2005-01-04  Jim Meyering  <jim@meyering.net>
68165
68166         Changes imported from coreutils.
68167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
68168         as the mkstemp template, use a temporary directory and an
68169         8.3-friendly template to avoid trouble on systems like DJGPP.
68170         Reported by Juan M. Guerrero via Stepan Kasal.
68171         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
68172         close. Remove the temporary directory right away, rather than waiting
68173         for configure's at-exit trap code to do it.
68174         Suggestion from Stepan Kasal.
68175
68176 2005-01-01  Simon Josefsson  <jas@extundo.com>
68177
68178         * gnulib-tool: Print #include directives when --import'ing.
68179
68180 2004-12-28  Simon Josefsson  <jas@extundo.com>
68181
68182         * tests/test-base64.c: Include required header files.  Remove
68183         unused variables.
68184
68185 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68186
68187         * modules/error (Depends-on): Remove gettext.
68188
68189 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
68190
68191         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
68192         not needed.  This removes a dependency on the gettext module.
68193         [defined _LIBC]: Do not include <libintl.h>; not needed.
68194
68195 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68196
68197         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
68198         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
68199
68200 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
68201
68202         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
68203         HAVE_DECL_STRTOLD.
68204
68205 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68206
68207         * modules/getdate (Depends-on): Remove alloca-opt.
68208
68209 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68210
68211         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
68212
68213 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
68214
68215         * lib/argp-parse.c: Include <stddef.h>.
68216         (alignof, alignto): New macros.
68217         (parser_init): Don't assume that void * is aligned sufficiently
68218         for struct option.
68219
68220         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
68221         need to extend the stack.
68222         (YYINITDEPTH): New macro, so that the initial stack isn't overly
68223         large.
68224
68225 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68226
68227         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
68228
68229 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68230
68231         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
68232         (2004-10-24) change.  Apparently this was a false alarm.
68233
68234         * modules/getdate: Depend on alloca-opt, not alloca.
68235
68236 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
68237
68238         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
68239         Remove now-obsolete comment about AIX.
68240         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
68241         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
68242         (YYMAXDEPTH): New macro.
68243
68244 2004-12-18  Simon Josefsson  <jas@extundo.com>
68245
68246         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
68247
68248 2004-12-18  Bruno Haible  <bruno@clisp.org>
68249
68250         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
68251
68252 2004-12-18  Bruno Haible  <bruno@clisp.org>
68253
68254         * lib/fatal-signal.c (fatal_signals): Make non-const.
68255         (init_fatal_signals): New function.
68256         (uninstall_handlers, install_handlers): Ignore signals that were set to
68257         SIG_IGN.
68258         (at_fatal_signal): Call init_fatal_signals.
68259         (init_fatal_signal_set): Likewise. Ignore signals that were set to
68260         SIG_IGN.
68261         Reported by Paul Eggert.
68262
68263 2004-12-18  Bruno Haible  <bruno@clisp.org>
68264
68265         * doc/alloca.texi: New file.
68266         * doc/alloca-opt.texi: New file.
68267
68268 2004-12-17  Jim Meyering  <jim@meyering.net>
68269
68270         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
68271         Otherwise, install-sh could exit with improper exit status when
68272         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
68273
68274 2004-12-16  Simon Josefsson  <jas@extundo.com>
68275
68276         * tests/test-base64.c: Add license.
68277
68278 2004-12-15  Stepan Kasal  <address@hidden>
68279
68280         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
68281
68282 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
68283
68284         * modules/getcwd (Files): Add m4/d-ino.m4.
68285         Suggested by Mark D. Baushke.
68286
68287 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68288
68289         * lib/getdate.y (textint): New member "negative".
68290         (time_zone_hhmm): New function.
68291         Expect 14 shift-reduce conflicts, not 13.
68292         (o_colon_minutes): New rule.
68293         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
68294         (yylex): Set the "negative" member of signed numbers.
68295
68296 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
68297
68298         * doc/getdate.texi (Time of day items, Time zone items):
68299         Describe new formats +00:00, UTC+00:00.
68300
68301 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
68304         spurious "-l"s.  Problem reported by Stepan Kasal.
68305
68306 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
68309         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
68310
68311 2004-12-04  Simon Josefsson  <jas@extundo.com>
68312
68313         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
68314         Vandoorselaere <yoann@prelude-ids.org>.
68315
68316 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         Changes imported from coreutils.
68319         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
68320         exist.
68321         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
68322
68323 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68324
68325         Changes imported from coreutils.
68326         * lib/hard-locale.c: Assume <locale.h> exists.
68327         Include "strdup.h".
68328         (GLIBC_VERSION): New macro.
68329         (hard_locale): Assume setlocale exists.
68330         Rewrite to avoid #ifdef.
68331         Use strdup rather than malloc + strcpy.
68332         * lib/human.c: Assume <locale.h> exists.
68333         (human_readable): Assume localeconv exists.
68334
68335 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * modules/hard-locale (Depends-on): Add strdup.
68338
68339 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68340
68341         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
68342         convert T2, not T.  (Imported from libc.)
68343
68344 2004-11-30  Simon Josefsson  <jas@extundo.com>
68345
68346         * modules/restrict (License): Change to LGPL.
68347
68348 2004-11-30  Simon Josefsson  <jas@extundo.com>
68349
68350         * m4/restrict.m4: Add copyright and copying conditions.
68351
68352 2004-11-30  Simon Josefsson  <jas@extundo.com>
68353
68354         * m4/base64.m4: New file.
68355
68356 2004-11-30  Simon Josefsson  <jas@extundo.com>
68357
68358         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
68359         base64.
68360
68361         * tests/test-base64.c: New file.
68362
68363         * modules/base64: New file.
68364
68365 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68366
68367         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
68368         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
68369
68370         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
68371
68372 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
68373
68374         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
68375         (__getcwd.c): Don't restore errno; glibc doesn't.
68376         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
68377         first, falling back to our code only if its results look suspicious.
68378         Ensure that the resulting buffer is only as large as necessary.
68379
68380         * lib/readutmp.c: Include readutmp.h first.
68381         Include <errno.h>, since readutmp.h no longer does that.
68382         * lib/readutmp.h: Don't include <errno.h>,
68383         <sys/param.h>, <time.h>; not needed to establish interface.
68384         (errno): Remove decl.
68385         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
68386         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
68387         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
68388
68389 2004-11-28  Simon Josefsson  <jas@extundo.com>
68390
68391         * lib/base64.h, base64.c: New file.
68392
68393 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68394
68395         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
68396
68397 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68398
68399         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
68400         (Depends-on): Remove pathmax, same.  Add mempcpy.
68401         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
68402         (Makefile.am): Append getcwd.h to lib_SOURCES.
68403         (Include): Add getcwd.h.
68404         (Maintainer): Change from Jim Meyering to "all, glibc",
68405         since getdate now uses intended-for-glibc code.
68406         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
68407         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
68408
68409 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68410
68411         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
68412         HP's ANSI C compiler.
68413         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
68414         Declaring int functions causes warnings on some modern systems and
68415         shouldn't be needed to compile on ancient ones.
68416         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
68417         defined.
68418
68419         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
68420         with the following changes.
68421         (__set_errno): Parenthesize properly.
68422         Include <stdbool.h>.
68423         (MIN, MAX, MATCHING_INO): New macros.
68424         (__getcwd): Define with prototype, not K&R form.
68425         Use heuristics to allocate default buffer on stack if possible.
68426         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
68427         behavior, and to avoid the PATH_MAX limit when computing
68428         ../../../../...
68429         Use MATCHING_INO to compare inode number to file.
68430         Check for arithmetic overflow in size calculations.
68431         Fix bug in reallocation of dot array that caused getcwd to fail
68432         on directories nested deeper than 75.
68433         Be more careful about saving errno on error.
68434         Do not use realloc; use only free+malloc, as this is a bit
68435         more flexible and avoids a needless copy operation.
68436         Do not inspect st_dev and st_ino for symbolic links; POSIX
68437         doesn't specify the latter.
68438         Check for closedir errors.
68439         Avoid needless casts.
68440         Use "#ifdef weak_alias" around weak_alias, to be like other
68441         glibc code.
68442         The following changes to getcwd.c have effect only when used in
68443         gnulib; they have no effect inside glibc proper.
68444         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
68445         as alloca isn't used.
68446         (alloca, __alloca): Likewise.
68447         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
68448         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
68449         unconditionally, as gnulib assumes C89 or better.
68450         Do not include <sys/param.h>.
68451         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
68452         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
68453         better.
68454         (NULL) [!defined NULL]: Remove; we assume C89 or better.
68455         Include <dirent.h> in a way that is compatible with modern Autoconf.
68456         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
68457         New macros, if not already defined.
68458         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
68459         Use "_LIBC", not "defined _LIBC", for consistency.
68460         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
68461         a mempcpy module.
68462         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
68463         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
68464         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
68465         credit only to Jim Meyering and adjust the copyright dates.
68466         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
68467         <stdlib.h>, <unistd.h>, "pathmax.h".
68468         Instead, include "xgetcwd.h" (first) and "getcwd.h".
68469         (INITIAL_BUFFER_SIZE): Remove.
68470         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
68471
68472 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
68473
68474         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
68475         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
68476         Use the _ONCE methods, for efficiency.
68477         Check for fcntl.h.  In test program, include <errno.h>
68478         and <fcntl.h> if available.  Remove old K&R cruft from
68479         test program.  Check for common errors in GNU/Linux,
68480         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
68481         don't do AC_LIBOBJ, as that's getcwd.m4's job.
68482         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
68483         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
68484         name accordingly.
68485         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
68486         accommodate new getcwd.c.
68487         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
68488         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
68489         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
68490         that's all we need now.
68491
68492 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68493
68494         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
68495         argp-parse.c depends on getopt internals, that means we should
68496         always use our getopt, to be on the safe side.
68497         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
68498         order not to spoil the result of an eventual previous invocation
68499         of gl_GETOPT_SUBSTITUTE.
68500
68501 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68502
68503         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
68504         redefinition warnings. To avoid them, include the defines
68505         in `#if !defined __need_getopt ... #endif'. The only place
68506         where __getopt_argv_const is used is in definitions
68507         of getopt_long and getopt_long_only below, which are as well
68508         protected by `#ifndef __need_getopt'.
68509         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
68510         __need_getopt after including <stdio.h> and <unistd.h> These
68511         headers might have defined it.
68512
68513 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68514
68515         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
68516
68517 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
68518
68519         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
68520         (futimens): New function, which uses futimes if available.
68521         (futimens, utimens): Support timespec==NULL, with same semantics
68522         as utime and utimens.
68523         * lib/utimens.h (futimens): New decl.
68524
68525 2004-11-23  Jim Meyering  <jim@meyering.net>
68526
68527         * lib/getopt_.h: Remove trailing blanks.
68528
68529 2004-11-23  Jim Meyering  <jim@meyering.net>
68530
68531         * lib/__fpending.c: Add comment.
68532
68533 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
68534
68535         * modules/canonicalize (Depends-on): Add xreadlink.
68536         Problem reported by James Youngman.
68537
68538 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68539
68540         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
68541         New macros.
68542         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
68543         optopt): Use them instead of invoking ## directly; otherwise, the
68544         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
68545
68546 2004-11-19  Bruno Haible  <bruno@clisp.org>
68547
68548         * lib/strtok_r.c: Move comments from here...
68549         * lib/strtok_r.h: ... to here.
68550
68551 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68552
68553         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
68554         implementations that mishandle size_t overflow.
68555
68556 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68557
68558         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
68559         might fail.  Problem reported by Yoann Vandoorselaere.
68560         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
68561         implementations that mishandle size_t overflow.
68562
68563 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68564
68565         * modules/canon-host (Depends-on): Add strdup.
68566
68567 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68568
68569         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
68570
68571 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         * lib/canon-host.c: Include "strdup.h".
68574         (canon_host): Use getaddrinfo if available, so that IPv6 works.
68575         Use strdup instead of malloc/strcpy to duplicate strings.
68576
68577         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
68578         (human_space_before_unit): New constant.
68579         * lib/human.c (human_readable): Support it.
68580
68581         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
68582         (xgetcwd): Set errno correctly when failing.
68583         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
68584         the failure is actually due to a PATH_MAX problem.
68585
68586         Further getopt changes to make it more likely that glibc will
68587         buy the changes back.
68588         * lib/getopt.c (POSIXLY_CORRECT): New constant.
68589         (getopt): Use it, so to preserve glibc semantic
68590         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
68591         when compiling for libc.
68592         * lib/getopt_.h (__getopt_argv_const): Bring it back.
68593         (getopt_long, getopt_long_only): Use it.
68594
68595         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68596         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
68597         (getopt): Argv is now char * const *, as per standard.
68598         (_getopt_internal_r, _getopt_internal): Argv is now char **,
68599         not char *__getopt_argv_const *.
68600         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68601         _getopt_long_only_r): Likewise.
68602         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
68603         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68604         _getopt_long_r, _getopt_long_only_r): Likewise.
68605         * lib/getopt_.h (__getopt_argv_const): Remove.
68606         (getopt): Argv is now char * const *, as per standard.
68607
68608         * lib/getdate.y (tORDINAL): New token.
68609         (day, relunit): Allow it for relative times.
68610         (relative_time_table): Use tORDINAL for ordinals.
68611
68612 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
68615         Document that "second" isn't allowed as an ordinal number.
68616
68617 2004-11-16  Jim Meyering  <jim@meyering.net>
68618
68619         * modules/closeout (Depends-on): Add fpending.
68620
68621 2004-11-15  Jim Meyering  <jim@meyering.net>
68622
68623         * lib/closeout.c: Include "__fpending.h" once again.
68624         Include <stdbool.h>.
68625         (close_stdout): Don't fail just because stdout was closed initially,
68626         since some programs don't write to stdout in the normal course of
68627         operation (other than --version and --help), and we don't want this
68628         function to make e.g. `touch file >&-' fail.
68629         But do fail if it was closed and someone has tried to write to it.
68630         E.g., `printf foo >&-' must fail.
68631
68632 2004-11-13  Jim Meyering  <jim@meyering.net>
68633
68634         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
68635
68636 2004-11-12  Simon Josefsson  <jas@extundo.com>
68637
68638         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
68639         small doc fix is still pending.
68640
68641 2004-11-11  Simon Josefsson  <jas@extundo.com>
68642
68643         * modules/strtok_r: New file.
68644
68645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68646         strtok_r.
68647
68648 2004-11-11  Simon Josefsson  <jas@extundo.com>
68649
68650         * m4/strtok_r.m4: New file.
68651
68652         * m4/getopt.m4: Replace opterr.
68653
68654 2004-11-11  Simon Josefsson  <jas@extundo.com>
68655
68656         * lib/strtok_r.h, strtok_r.c: New file.
68657
68658 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
68661         of replacing opterr, getopt, etc.  This should handle the
68662         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
68663
68664 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
68667         we can stop lying to compilers about the constness of argv when we
68668         are compiled outside glibc.
68669         (getopt, getopt_long, getopt_long_only): Use it.
68670         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
68671         _getopt_internal, getopt): Likewise.
68672         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
68673         _getopt_long_only_r): Likewise.
68674         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
68675         _getopt_long_r, _getopt_long_only_r): Likewise.
68676
68677         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
68678         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
68679         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
68680         the other external symbols.
68681         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
68682         declaration, since the above renaming now works around collisions.
68683
68684 2004-11-11  Jim Meyering  <jim@meyering.net>
68685
68686         * lib/linebreak.c: Remove trailing blanks.
68687         * lib/alloca_.h: Likewise.
68688         * lib/acosl.c: Likewise.
68689         * lib/euidaccess.c: Likewise.
68690         * lib/allocsa.h: Likewise.
68691
68692 2004-11-10  Simon Josefsson  <jas@extundo.com>
68693
68694         * m4/getaddrinfo.m4: New file.
68695
68696 2004-11-10  Simon Josefsson  <jas@extundo.com>
68697
68698         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
68699
68700 2004-11-10  Simon Josefsson  <jas@extundo.com>
68701
68702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68703         getaddrinfo.
68704
68705         * modules/getaddrinfo: New file.
68706
68707 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68708
68709         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
68710
68711 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
68712
68713         * lib/mktime.c (SHR): New macro, which is a portable
68714         substitute for >> that should work even on Crays.
68715         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
68716         Problem reported by Mark D. Baushke in
68717         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
68718         * lib/getdate.y (SHR): Likewise.
68719         (tm_diff): Use it.
68720         * lib/strftime.c (SHR): Likewise.
68721         (tm_diff): Use it.
68722         * lib/quotearg.c (struct quoting_options): Use unsigned int for
68723         quote_these_too, so that right shifts are well defined.  All uses
68724         changed.
68725
68726 2004-11-10  Jim Meyering  <jim@meyering.net>
68727
68728         Ensure that no close failure goes unreported.
68729         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
68730         return early when it seems there's nothing to flush.
68731         Don't include __fpending.h.
68732
68733 2004-11-10  Jim Meyering  <jim@meyering.net>
68734
68735         * modules/closeout (Depends-on): Remove fpending.
68736
68737 2004-11-10  Jim Meyering  <jim@meyering.net>
68738
68739         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
68740
68741 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68742
68743         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
68744         gl_FUNC_STRFTIME.
68745         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
68746         and AC_REQUIRE when possible, to avoid duplicate checks.
68747         Check for <wchar.h>.
68748
68749 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
68752
68753 2004-11-09  Bruno Haible  <bruno@clisp.org>
68754
68755         * m4/sockpfaf.m4: New file.
68756
68757 2004-11-05  Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
68760         Reported by Mark D. Baushke <mdb@cvshome.org>.
68761
68762 2004-11-04  Bruno Haible  <bruno@clisp.org>
68763
68764         2004-09-11  Bruno Haible  <bruno@clisp.org>
68765                 * allocsa.valgrind: New file.
68766         2004-02-06  Bruno Haible  <bruno@clisp.org>
68767                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
68768                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
68769                 Reported by Christopher Seip <chris.seip@hp.com>.
68770
68771 2004-11-04  Bruno Haible  <bruno@clisp.org>
68772
68773         * modules/allocsa (Files): Add lib/allocsa.valgrind.
68774         (Makefile.am): Distribute it.
68775
68776 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68777
68778         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
68779         with errno == ERANGE if the buffer is too small.
68780         Problem reported by Mark D. Baushke.
68781
68782 2004-11-03  Albert Chin  <china@thewrittenword.com>
68783             Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
68786         equivalent, substitute $ac_type for equivalent type rather than
68787         blindly using uint32_t *always* which won't work if uint32_t is not
68788         available.  Define _UINT32_T to work around typedef of uint32_t if
68789         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
68790         2.5.1.
68791
68792 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68793
68794         * m4/jm-macros.m4: Sync from coreutils.
68795         (gl_MACROS): Check for mbrlen, for pathchk.
68796         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
68797
68798 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         * lib/xreadlink.c (MAXSIZE): New macro.
68801         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
68802         size does not exceed MAXSIZE.  Avoid cast.
68803         As suggested by Mark D. Baushke in
68804         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
68805         if readlink fails with buffer size just under MAXSIZE, try again
68806         with MAXSIZE.
68807
68808 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
68811
68812 2004-11-02  Derek R. Price  <derek@ximbiot.com>
68813         and  Paul Eggert  <eggert@cs.ucla.edu>
68814
68815         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
68816         (get_date): Overparenthesize to avoid GCC warning.
68817
68818 2004-11-02  Bruno Haible  <bruno@clisp.org>
68819
68820         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
68821         returns void.
68822
68823 2004-11-02  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
68826         function returns void.
68827
68828 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
68831         fflush_unlocked, flockfile, funlockfile, funlockfile,
68832         fputs_unlocked, putc_unlocked.
68833
68834 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68837         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
68838         already declared.
68839
68840 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68841
68842         * modules/getdate (Files): Add doc/getdate.texi.
68843         (Depends-on): Add setenv, xalloc.
68844
68845 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         * lib/getdate.y: Add support for TZ="foo" within a date string.
68848         Fix some bugs near time_t boundaries.  Reject dates with
68849         out-of-range components, e.g., "Sept 31".
68850         Include <stdlib.h>, "setenv.h", "xalloc.h".
68851         (ISDIGIT_LOCALE): Remove; unused.
68852         Note that the TZ and time functions used here are not reentrant.
68853         (mktime_ok, get_tz): New functions.
68854         (TZBUFSIZE): New constant.
68855         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
68856         This requires that we sometimes generate our own TZ="XXX..." setting.
68857
68858 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
68859
68860         * doc/getdate.texi: New file, from coreutils with modifications for
68861         the new TZ parsing.
68862
68863 2004-10-27  Derek R. Price  <derek@ximbiot.com>
68864
68865         * lib/mktime.c (not_equal_tm): Remove redundant check.
68866
68867 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * modules/regex (lib_SOURCES): Add regex.c.
68870         Reported by James Youngman in
68871         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
68872
68873 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         * lib/getdate.y: Use Bison 1.875 features, and some minor
68876         code cleanups.  This change does not affect semantics.
68877         Don't include <stdlib.h>; no longer needed.
68878         Don't include unlocked-io.h; only the "#if TEST" code uses
68879         stdio, and performance isn't crucial there.
68880         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
68881         Bison 1.875 features as described below.
68882         All uses of "PC." replaced by "pc->".
68883         (YYSTYPE): Add a forward declaration.
68884         (yylex, yyerror): Use full prototypes in forward decls.
68885         Use "%pure-parser" rather than obsolescent "%pure_parser".
68886         Use %parse-param and %lex-param instead of obsolescent
68887         YYPARSE_PARAM and YYLEX_PARAM.
68888         (meridian_table, month_and_day_table, time_units_table,
68889         relative_time_table, time_zone_table, military_table,
68890         lookup_zone, lookup_word, get_date):
68891         Use NULL instead of 0 where appropriate.
68892         (to_hour): Avoid abort (), to avoid a dependency on
68893         stdlib.h.
68894         (yyerror, yylex): Now accepts parser_control * arg.
68895         (main) [TEST]: Use '\0' rather than 0 for char.
68896
68897 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68898
68899         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
68900
68901 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
68902
68903         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
68904         It's now the caller's responsibility to handle the case where
68905         !HAVE_GETPAGESIZE && !defined getpagesize.
68906
68907         * lib/mktime.c (leapyear): Arg is long int, not int.
68908
68909 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
68912
68913 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
68916         missing.  Problem reported by James Youngman.
68917
68918 2004-10-16  Simon Josefsson  <jas@extundo.com>
68919
68920         * gnulib-tool: Fix comments.  Fix parse problem.
68921         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
68922
68923 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
68926         implementation of getopt_long.  Problem reported by Alexander Taler in:
68927         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
68928
68929 2004-10-15  Bruno Haible  <bruno@clisp.org>
68930
68931         * gnulib-tool: Untabify. Initialize supplied_libname.
68932         (func_usage): More homogenous output.
68933         (func_modules_transitive_closure, func_modules_to_filelist,
68934         func_emit_lib_Makefile_am): New functions.
68935         (func_import): New function, extracted from big case statement. Use
68936         func_get_license, func_modules_transitive_closure,
68937         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
68938         opt_lgpl. Don't use test -a, as it's not portable.
68939         (func_create_testdir): Use func_modules_transitive_closure,
68940         func_modules_to_filelist, func_emit_lib_Makefile_am.
68941
68942 2004-10-15  Bruno Haible  <bruno@clisp.org>
68943
68944         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
68945
68946 2004-10-15  Bruno Haible  <bruno@clisp.org>
68947
68948         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
68949         the portions belonging to each module.
68950         Suggested by Derek Robert Price <derek@ximbiot.com>.
68951
68952 2004-10-12  Simon Josefsson  <jas@extundo.com>
68953
68954         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
68955         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
68956         to real functions.
68957
68958 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68959
68960         * modules/vsnprintf: New file.
68961
68962 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68963
68964         * m4/vsnprintf.m4: New file.
68965
68966 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68967
68968         * lib/vsnprintf.h: New file.
68969         * lib/vsnprintf.c: New file.
68970
68971 2004-10-11  Bruno Haible  <bruno@clisp.org>
68972
68973         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
68974         vsnprintf.
68975
68976 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68977
68978         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
68979
68980 2004-10-07  Bruno Haible  <bruno@clisp.org>
68981
68982         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
68983         fits into the provided buffer.
68984
68985 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68986
68987         * lib/diacrit.c, diacrit.h: Add GPL notice.
68988
68989         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
68990         notice.
68991         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
68992         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
68993         This avoids a potential constant-folding bug.
68994
68995 2004-10-05  Bruno Haible  <bruno@clisp.org>
68996
68997         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
68998         for the declaration of strsep.
68999
69000 2004-10-05  Bruno Haible  <bruno@clisp.org>
69001
69002         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
69003
69004 2004-10-04  Simon Josefsson  <jas@extundo.com>
69005
69006         * modules/memmem: New file.
69007         * tests/test-memmem.c: New file.
69008         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
69009
69010 2004-10-04  Simon Josefsson  <jas@extundo.com>
69011
69012         * m4/memmem.m4: New file.
69013
69014 2004-10-04  Simon Josefsson  <jas@extundo.com>
69015
69016         * lib/memmem.h: New file.
69017         * lib/memmem.c: New file, taken from glibc.
69018
69019 2004-10-04  Simon Josefsson  <jas@extundo.com>
69020
69021         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
69022         '#ifdef USE_UNLOCKED_IO'.
69023
69024 2004-10-04  Simon Josefsson  <jas@extundo.com>
69025
69026         * config/srclist.txt: Add memmem from glibc.
69027
69028 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69029
69030         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
69031
69032         * modules/argmatch, modules/argp, modules/closeout, modules/error,
69033         modules/exclude, modules/getdate, modules/getline,
69034         modules/getndelim2, modules/getpass, modules/getpass-gnu,
69035         modules/getusershell, modules/linebuffer, modules/md5,
69036         modules/mountlist, modules/posixtm, modules/readtokens,
69037         modules/readutmp, modules/regex, modules/sha1,
69038         modules/version-etc, modules/yesno:
69039         Remove dependency on unlocked-io.
69040
69041 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
69044
69045         * m4/unlocked-io.m4: Add copyright notice.
69046         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
69047
69048 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69049
69050         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
69051         * lib/xmalloc.c (xmemdup): Likewise.
69052         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
69053         XFREE): Remove these long-obsolescent macros.
69054         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
69055         * lib/xstrdup.c: Remove.
69056
69057         * lib/regex.c (re_comp): Cast gettext return value to char *,
69058         Problem reported by Martin Neitzel via Mark D. Baushke.
69059
69060 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
69063         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
69064         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
69065         regex.c, sha1.c, version-etc.c, yesno.c:
69066         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
69067         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
69068         the includer's responsibility.
69069
69070         Sync from coreutils.
69071
69072         * lib/modechange.c (mode_compile): Don't decrement a pointer that
69073         points to the start of a string, as the C Standard says the
69074         resulting behavior is undefined.
69075
69076         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
69077         simple -> simple_backups, numbered_existing ->
69078         numbered_existing_backups, numbered -> numbered_backups
69079         to avoid shadowing problems.  All uses changed.
69080         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
69081         * lib/backupfile.c (check_extension, numbered_backup):
69082         Rename locals to avoid shadowing 'basename'.
69083         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
69084         once.
69085
69086         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
69087         * lib/.cvsignore: Add getopt.h.
69088
69089 2004-10-04  Bruno Haible  <bruno@clisp.org>
69090
69091         * modules/README: New file.
69092         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
69093         not a module.
69094
69095 2004-10-02  Jim Meyering  <jim@meyering.net>
69096
69097         * lib/dirfd.h, getpagesize.h: Add copyright notice.
69098
69099 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69100
69101         * modules/strsep: New file.
69102
69103 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69104
69105         * m4/strsep.m4: New file.
69106
69107 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69108
69109         * lib/strsep.h: New file.
69110         * lib/strsep.c: New file.
69111
69112 2004-10-01  Simon Josefsson  <jas@extundo.com>
69113
69114         * lib/snprintf.c (snprintf): Handle size==0.
69115
69116 2004-10-01  Simon Josefsson  <jas@extundo.com>
69117             Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
69120         (snprintf): Declare 'args'.
69121
69122 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
69123
69124         * lib/snprintf.c: Remove comments as to why each header is needed.
69125
69126 2004-10-01  Bruno Haible  <bruno@clisp.org>
69127
69128         * MODULES.html.sh: Add strsep.
69129
69130 2004-09-30  Simon Josefsson  <jas@extundo.com>
69131
69132         * modules/snprintf: New file.
69133
69134 2004-09-30  Simon Josefsson  <jas@extundo.com>
69135
69136         * m4/snprintf.m4: New file.
69137
69138 2004-09-30  Simon Josefsson  <jas@extundo.com>
69139
69140         * lib/snprintf.h, lib/snprintf.c: New files.
69141
69142 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69143
69144         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
69145         (hol_entry_help): Never translate an empty string.
69146         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
69147         * lib/argp.h (OPTION_NO_TRANS): New option.
69148
69149 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * modules/argp (Maintainer): Replace Simon Josefsson
69152         by Sergey Poznyakoff.
69153
69154 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
69157         changes merged back into glibc.
69158
69159 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
69160
69161         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
69162
69163 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
69164
69165         * lib/xvasprintf.c: Include xalloc.h.
69166         (xvasprintf): Use xalloc_die, not xmalloc_die.
69167
69168 2004-09-29  Bruno Haible  <bruno@clisp.org>
69169
69170         * modules/alloca-opt: New file, derived from modules/alloca.
69171         * modules/allocsa: Depend on alloca-opt instead of alloca.
69172         * modules/setenv: Likewise.
69173         * modules/vasnprintf: Likewise.
69174         * MODULES.html.sh: Add alloca-opt.
69175
69176 2004-09-28  Simon Josefsson  <jas@extundo.com>
69177
69178         * gnulib-tool: New parameter --lgpl, to asseert that modules are
69179         LGPL, and to replace license template from GPL to LGPL.
69180
69181 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69182
69183         * modules/dummy: Change license to LGPL.
69184
69185 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
69186
69187         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
69188
69189 2004-09-24  Simon Josefsson  <jas@extundo.com>
69190
69191         * modules/minmax (License): Change from GPL to LGPL.
69192
69193 2004-09-23  Simon Josefsson  <jas@extundo.com>
69194
69195         * gnulib-tool (--import): Typo.
69196
69197 2004-09-23  Simon Josefsson  <jas@extundo.com>
69198
69199         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
69200
69201 2004-09-22  Bruno Haible  <bruno@clisp.org>
69202
69203         * modules/*: Add 'License' field.
69204         * gnulib-tool: Accept --extract-license option.
69205         (func_get_license): New function.
69206
69207 2004-09-21  Bruno Haible  <bruno@clisp.org>
69208
69209         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
69210         Reported by Simon Josefsson.
69211
69212 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69213
69214         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
69215         gl_AC_TYPE_LONG_LONG.
69216
69217 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69218
69219         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
69220
69221 2004-09-18  Simon Josefsson  <jas@extundo.com>
69222         and  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
69225         calls with autoreconf.  Define GL_LIB.
69226
69227 2004-09-14  Karl Berry  <karl@gnu.org>
69228
69229         * config/srclist.txt: unsync setenv.c, sigh.
69230
69231 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69232
69233         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
69234         Problem reported by Bruno Haible in:
69235         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
69236
69237 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69238
69239         * config/srclist.txt: Comment out argp-pvh.c.
69240
69241 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
69242
69243         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
69244         in case some system header has #define'd it.  Problem reported by
69245         Soeren D. Schulze in
69246         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
69247
69248 2004-09-09  Karl Berry  <karl@gnu.org>
69249
69250         * regex.[ch]: delete from the root.  These were supposed to be
69251                 synced with emacs cvs, but this has not happened for about
69252                 a year, and anyway nothing else uses emacs regex.[ch].
69253                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
69254                 lib/regex[.ch] is untouched.
69255
69256 2004-09-09  Bruno Haible  <bruno@clisp.org>
69257
69258         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
69259
69260 2004-09-09  Bruno Haible  <bruno@clisp.org>
69261
69262         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
69263         modifications.
69264         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
69265
69266 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69267
69268         * modules/xvasprintf: New file.
69269         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
69270
69271 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
69272
69273         * lib/xvasprintf.h: New file.
69274         * lib/xvasprintf.c: New file.
69275         * lib/xasprintf.c: New file.
69276
69277 2004-09-08  Bruno Haible  <bruno@clisp.org>
69278
69279         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
69280
69281 2004-09-08  Bruno Haible  <bruno@clisp.org>
69282
69283         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
69284         length is > INT_MAX.
69285         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
69286         more.
69287
69288 2004-09-08  Bruno Haible  <bruno@clisp.org>
69289
69290         * lib/stdint_.h: New file, taken from GNU clisp.
69291
69292 2004-09-08  Bruno Haible  <bruno@clisp.org>
69293             Oskar Liljeblad  <oskar@osk.mine.nu>
69294
69295         * modules/stdint: New file.
69296         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
69297
69298 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         Import from coreutils.
69301         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
69302         strings on unbounded length.  alloca's performance benefits aren't
69303         that important here.
69304         (V_STRDUP): Remove.
69305         (parse_with_separator): New function, with most of the internals
69306         of the old parse_user_spec.  Allow user to omit both user and group,
69307         for compatibility with FreeBSD.
69308         Clone only the user name, not the entire spec.
69309         Do not set *uid, *gid unless entirely successful.
69310         Avoid memory leak in some failing cases.
69311         Fix regression for USER.GROUP reported by Dmitry V. Levin in
69312         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
69313         (parse_user_spec): Rewrite to use parse_with_separator.
69314
69315 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69316
69317         * modules/userspec: Don't depend on alloca.
69318
69319 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69320
69321         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
69322
69323 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
69326         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
69327         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
69328
69329 2004-08-16  Simon Josefsson  <jas@extundo.com>
69330
69331         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
69332         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
69333         Add --dry-run for --import.
69334         Let user provided command line parameters override configure.ac
69335         settings.
69336
69337 2004-08-12  Simon Josefsson  <jas@extundo.com>
69338
69339         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
69340         as discussed with Paul Eggert in threads rooted at
69341         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
69342         and
69343         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
69344         Before, the test was empty, and relied on ELIDE_CODE in source
69345         code.)
69346         (gl_PREREQ_GETOPT): New macro.
69347         (gl_GETOPT): Use them.
69348
69349 2004-08-12  Simon Josefsson  <jas@extundo.com>
69350
69351         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
69352         * lib/getopt_.h: Renamed from getopt.h.
69353
69354 2004-08-12  Simon Josefsson  <jas@extundo.com>
69355
69356         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
69357         Change default library name from libfoo to libgnu.
69358         Now, if you have a configure.ac that says:
69359                 gl_SOURCE_BASE(gl)
69360                 gl_M4_BASE(gl/m4)
69361                 gl_MODULES(error getopt etcetera)
69362                 gl_INIT
69363         you can import all you need by running:
69364                 ../gnulib/gnulib-tool --import
69365
69366         * modules/getopt (Files): Rename getopt.h to getopt_.h.
69367         (Makefile.am): Rewrite, use logic from argz.
69368         (Include): Use <getopt.h> instead of "getopt.h".
69369
69370 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69371
69372         * modules/argp (Files): Add m4/unlocked-io.m4.
69373         (Depends-on): Add extensions.
69374
69375 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
69378         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
69379         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
69380         Check for program_invocation_name, program_invocation_short_name,
69381         flockfile, funlockfile, features.h, _getopt_long_only_r.
69382
69383 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69384
69385         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
69386         its complicated substitute.
69387         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
69388         and program_invocation_name.
69389         (__argp_basename) [!_LIBC]: Remove; the only use was
69390         replaced by its body.
69391         (__argp_short_program_name): Change condition from
69392         !defined __argp_short_program_name to
69393         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
69394         to match argp-namefrob.h.
69395         (__argp_failure): Don't assume strerror_r returns char *.
69396         * lib/argp-parse.c (N_): Define unconditionally.
69397         (argp_default_options): Fill out initializers with 0 to avoid
69398         gcc warnings.
69399
69400 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
69401
69402         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
69403         getopt1.c.
69404
69405 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         Merge from coreutils.
69408
69409         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
69410
69411         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
69412         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
69413
69414 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69415
69416         Merge from coreutils.
69417
69418         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
69419         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
69420         for Reliant Unix 5.43.
69421
69422         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
69423         (union fooround): Use uintmax_t, not long int.
69424         The rest is a merge from libc:
69425         [defined _LIBC]: Include <shlib-compat.h>.
69426         (_obstack) [defined _LIBC]: Remove after 2.3.4.
69427
69428         * lib/settime.c (settime): Recode to avoid warning with
69429         Sun Forte C 6U2.
69430
69431         * lib/strverscmp.c: Convert to UTF-8.
69432
69433 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
69436         m4/uintmax_t.m4.
69437
69438 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69439
69440         * modules/xalloc-die: New file.
69441         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
69442
69443         * modules/md5 (Files): Add m4/uint32_t.m4.
69444         * modules/sha1: Renamed from modules/sha.
69445         (Files):
69446         Rename lib/sha.h to lib/sha1.h.
69447         Rename lib/sha.c to lib/sha1.c.
69448         Rename m4/sha.m4 to m4/sha1.m4.
69449         (lib_SOURCES): Likewise.
69450         (configure.ac): Rename gl_SHA to gl_SHA1.
69451         (Include): sha.h -> sha1.h.
69452
69453 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69454
69455         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
69456         * m4/sha1.m4: Renamed from sha.m4.
69457         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
69458
69459 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
69460
69461         * lib/obstack.h (obstack_empty_p):
69462         Don't assume that chunk->contents is suitably aligned.
69463         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
69464         Likewise. Problem reported by Benno in
69465         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
69466
69467         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
69468         readable.  This could be improved further but it'd take some work.
69469
69470 2004-08-08  Simon Josefsson  <jas@extundo.com>
69471
69472         * modules/xgethostname (Depends-on): Remove exit and error (not
69473         used).
69474
69475         * modules/getpass-gnu: Add getpass.h.
69476         (Depends-on): Add stdbool.
69477         * modules/getpass: Add getpass.h.
69478
69479 2004-08-08  Simon Josefsson  <jas@extundo.com>
69480
69481         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
69482         Check getpass declaration.
69483
69484 2004-08-08  Simon Josefsson  <jas@extundo.com>
69485
69486         * lib/xgethostname.c: Don't include error.h (not used).
69487
69488         * lib/getpass.h: Add.
69489         * lib/getpass.c: Include getpass.h first.
69490
69491 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
69492
69493         * lib/xalloc-die.c: New file.
69494         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
69495         All uses removed.
69496         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
69497         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
69498         xalloc-die.c.
69499         (_, N_, xalloc_die): Move to xalloc-die.c.
69500         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
69501         so that we needn't mess with xalloc_msg_memory_exhausted.
69502
69503         * lib/sha1.h: Renamed from sha.h.
69504         (SHA1_H): Renamed from _SHA_H.
69505         (sha1_ctx): Renamed from sha_ctx.
69506         (sha1_init_ctx): Renamed from sha_init_ctx.
69507         (sha1_process_block): Renamed from sha_process_block.
69508         (sha1_process_bytes): Renamed from sha_process_bytes.
69509         (sha1_finish_ctx): Renamed from sha_finish_ctx.
69510         (sha1_read_ctx): Renamed from sha_read_ctx.
69511         (sha1_stream): Renamed from sha_stream.
69512         (sha1_buffer): Renamed from sha_buffer.
69513         * lib/sha1.c: Likewise; renamed from sha.c.
69514         Do not include <sys/types.h>.
69515         Include <stddef.h> rather than <stdlib.h>.
69516
69517 2004-08-08  Bruno Haible  <bruno@clisp.org>
69518
69519         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
69520         FILESYSTEM_PREFIX_LEN.
69521         * lib/progreloc.c: Likewise.
69522         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
69523
69524 2004-08-06  Simon Josefsson  <jas@extundo.com>
69525
69526         * modules/progname (Depends-on): Don't depend on stdbool.
69527
69528 2004-08-06  Simon Josefsson  <jas@extundo.com>
69529
69530         * modules/getsubopt: New file.
69531         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69532         getsubopt.
69533
69534 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         More merge from coreutils.
69537
69538         * m4/utimens.m4, m4/utimecmp.m4: New files.
69539         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
69540         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
69541         prereq.m4, sha.m4: Import changes from coreutils.
69542
69543 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69544
69545         More merge from coreutils.
69546         * modules/raise, modules/readtokens0, modules/utimens:
69547         * modules/utimecmp, module/xnanosleep: New files.
69548         * modules/strftime: Add lib/strftime.h.
69549         Change include from <time.h> to "strftime.h".
69550         * modules/yesno: Add lib/yesno.h.
69551         * modules/backupfile: Remove lib/addext.c.
69552         * modules/euidaccess: Add stat-macros.h.
69553         * modules/canonicalize, modules/euidaccess,
69554         modules/filemode, modules/lchown, modules/makepath,
69555         modules/rmdir, modules/stat: Likewise.
69556
69557 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
69558
69559         Merge from tar.
69560         * lib/argp-help.c (make_hol, hol_append): Don't assume that
69561         SIZE_MAX is a valid preprocessor constant.
69562         (__argp_basename): Change from "#ifndef _LIBC"
69563         to "#ifndef __argp_short_program_name", so that
69564         we don't compile these functions for tar.
69565
69566         More merges from coreutils.
69567         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
69568         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
69569         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
69570         * lib/addext.c: Remove; no longer needed.
69571         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
69572         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
69573         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
69574         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
69575         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
69576         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
69577         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
69578         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
69579         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
69580         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
69581         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
69582         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
69583         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
69584         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
69585         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
69586         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
69587         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
69588         Import changes from coreutils.
69589
69590 2004-08-05  Simon Josefsson  <jas@extundo.com>
69591
69592         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
69593
69594 2004-08-05  Simon Josefsson  <jas@extundo.com>
69595
69596         * m4/getsubopt.m4: New file.
69597
69598 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69599
69600         Merge from coreutils.
69601
69602         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
69603         * m4/getcwd-path-max.m4: New files.
69604
69605         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
69606         FILESYSTEM_PREFIX_LEN ->
69607         FILE_SYSTEM_PREFIX_LEN.
69608         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
69609         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
69610         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
69611         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
69612
69613         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
69614         prerequisite modules now handle the DOS stuff.
69615         Don't check for unistd.h.
69616
69617 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69618
69619         Merge from coreutils.
69620
69621         * lib/.gdb-history: Remove; this doesn't belong here.
69622
69623         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
69624         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
69625         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
69626         * lib/getcwd.c: New files.
69627
69628         * lib/dirname.h: Include <stdbool.h>.
69629         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
69630         for consistency with POSIX terminology.  All uses changed.
69631         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
69632         (strip_trailing_slashes): Use bool for booleans.
69633         * lib/stripslash.c (strip_trailing_slashes): Likewise.
69634
69635         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
69636         sometimes returns a positive errno value even when it succeeds.
69637         (print_errno_message) [!LIBC]: Fall back on strerror if
69638         __strerror_r fails.
69639
69640         * lib/path-concat.c (mempcpy): Don't define if a system header defines
69641         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
69642         (longest_relative_suffix): New function.
69643         (path_concat): Use it.  Assume first argument is not NULL.
69644         Port to DOS.  Omit redundant separators.
69645         Report an error instead of returning NULL.
69646         Use mempcpy instead of memcpy.
69647         (xpath_concat): Remove: not declared or used.
69648
69649         * lib/same.h: Include <stdbool.h>
69650         (same_name): Return bool, not int.
69651         * lib/same.c (same_name): Likewise.
69652         (errno): Don't declare; we assume C89 or better now.
69653
69654         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
69655         if not already defined.
69656
69657         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
69658         * lib/dup-safer.c (errno): Likewise.
69659
69660 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         Merge from coreutils.
69663         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
69664         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
69665         * modules/path-concat: Don't depend on strdup.
69666
69667 2004-08-03  Simon Josefsson  <jas@extundo.com>
69668
69669         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
69670         * lib/progname.h: Don't include stdbool.h.
69671
69672 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
69675         * MODULES.html.sh (func_all_modules): Remove fatal.
69676
69677 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
69680
69681 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
69682
69683         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
69684         working.
69685
69686 2004-08-02  Simon Josefsson  <jas@extundo.com>
69687
69688         * lib/getsubopt.h: New file, with comments from Bruno Haible.
69689         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
69690         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
69691
69692 2004-08-01  Simon Josefsson  <jas@extundo.com>
69693
69694         * lib/xgetdomainname.c: Include stdlib.h, for free().
69695
69696 2004-07-19  Bruno Haible  <bruno@clisp.org>
69697
69698         * MODULES.html.sh (func_all_modules): Add dummy.
69699
69700 2004-07-16  Simon Josefsson  <jas@extundo.com>
69701
69702         * modules/dummy: New file.
69703
69704 2004-07-16  Simon Josefsson  <jas@extundo.com>
69705
69706         * lib/dummy.c: New file.
69707
69708 2004-07-16  Bruno Haible  <bruno@clisp.org>
69709
69710         * lib/backupfile.h: Add extern "C" for C++.
69711         * lib/closeout.h: Likewise.
69712         * lib/copy-file.h: Likewise.
69713         * lib/findprog.h: Likewise.
69714         * lib/full-write.h: Likewise.
69715         * lib/pathname.h: Likewise.
69716         * lib/progname.h: Likewise.
69717         * lib/stpcpy.h: Likewise.
69718         * lib/stpncpy.h: Likewise.
69719         * lib/strcase.h: Likewise.
69720         * lib/strstr.h: Likewise.
69721         * lib/xalloc.h: Likewise.
69722
69723         * lib/mbswidth.h: Add extern "C" for C++.
69724         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
69725
69726 2004-07-13  Robert Millan  <robertmh@gnu.org>
69727
69728         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
69729
69730 2004-07-09  Simon Josefsson  <jas@extundo.com>
69731
69732         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
69733         failed without this.)
69734
69735 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69736
69737         * modules/chown (Files): Add lib/fchown-stub.c, since
69738         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
69739
69740 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
69741
69742         * lib/fchown-stub.c: New file.
69743
69744 2004-06-24  Jim Meyering  <jim@meyering.net>
69745
69746         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
69747
69748 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69749
69750         * modules/argz: Omit "#include".
69751
69752         * MODULES.html.sh (func_all_modules): Add calloc, to match
69753         2004-06-01 addition of calloc module.
69754
69755 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69756
69757         * m4/argz.m4: New file, which is autoupdated from libtool.
69758
69759 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69760
69761         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
69762         libtool.
69763
69764 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
69765
69766         * config/srclist-update: Don't insist on "USA." before the
69767         close-comment, as libtool omits the period and puts the */ on a
69768         separate line.
69769         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
69770         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
69771
69772 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
69773
69774         * modules/argz: New file.
69775         * MODULES.html.sh (func_all_modules): Add argz.
69776
69777 2004-06-12  Jim Meyering  <jim@meyering.net>
69778         and  Paul Eggert  <eggert@cs.ucla.edu>
69779
69780         * modules/hash (Files): Add lib/xalloc.h.
69781         * modules/pipe (Depends-on): Add wait-process.
69782         * modules/stat (Depends-on): Add xalloc.
69783         * modules/userspec (Files): Add lib/userspec.h.
69784         * modules/xstrto
69785
69786         Upgrade from gettext-0.13.
69787         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
69788         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
69789         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
69790
69791 2004-06-10  Jim Meyering  <jim@meyering.net>
69792
69793         * lib/calloc.c: New file.
69794
69795 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
69796
69797         * lib/getdate.y (yylex): Allow space between sign and number.
69798         Problem reported by Dan Jacobson.
69799
69800 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         Merge from coreutils CVS.
69803
69804         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
69805         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
69806         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
69807         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
69808         xstrtol.m4: Fix copyright date and/or serial number.
69809
69810         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
69811         See if we need an fchown replacement.
69812         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
69813         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
69814         and use the replacement function if we detect either defect.
69815
69816         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
69817         gl_UTIMECMP.
69818
69819 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
69820         and  Jim Meyering  <jim@meyering.net>
69821
69822         Merge from coreutils CVS.
69823
69824         * lib/stat-macros.h: New file, with contents from file-type.h
69825         and coreutils' system.h.
69826         * lib/file-type.c: Include "stat-macros.h".
69827         * lib/file-type.h (file_type): Move all macro definitions to new file,
69828         stat-macros.h.
69829
69830         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
69831         Wrap old code with this conditional.
69832         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
69833         function that does not dereference symlinks.
69834         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
69835
69836         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
69837         dependency problems.
69838         (xreadlink): Accept new arg SIZE, for efficiency.
69839         All decls and uses changed.
69840         * lib/xreadlink.h: Include <stddef.h>, for size_t.
69841
69842         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
69843         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
69844
69845         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
69846         sysexits.h.
69847
69848 2004-06-01  Jim Meyering  <jim@meyering.net>
69849
69850         * m4/calloc.m4: New file.
69851
69852 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
69853
69854         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
69855         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
69856         Also, fix a typo in a diagnostic.
69857
69858 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
69861         or AC_FUNC_REALLOC.
69862
69863 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
69866         macros to be defined.
69867         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
69868         the allocator returns NULL because the requested size is zero.
69869
69870 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
69871
69872         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
69873         var.  Add comment explaining why libc still defines it.  This
69874         merges the following patch from glibc:
69875         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
69876
69877 2004-05-20  Andreas Schwab  <schwab@suse.de>
69878
69879         * m4/free.m4: Replace free if it not known to work, not the other
69880         way round.
69881
69882 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
69883
69884         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
69885         present in glibc since revision 1.1 of this file.
69886         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
69887         obstack_alignment_mask, obstack_alloc, obstack_base,
69888         obstack_blank, obstack_blank_fast, obstack_chunk_size,
69889         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
69890         obstack_grow0, obstack_init, obstack_int_grow,
69891         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
69892         obstack_next_free, obstack_object_size, obstack_ptr_grow,
69893         obstack_ptr_grow_fast, obstack_room): Remove declarations of
69894         nonexistent functions.
69895
69896 2004-05-18  Karl Berry  <karl@gnu.org>
69897
69898         * config/srclist.txt: break link for vasnprintf.c.
69899
69900 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         Port obstack to the AS/400, where pointers are 16 bytes wide and
69903         you cannot cast an integer to a valid pointer.  This patch is
69904         currently waiting to be integrated into glibc; see
69905         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
69906
69907         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
69908         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
69909         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
69910         (struct obstack): temp member is now a union of a pointer and
69911         an integer, instead of an integer.  All integer uses changed.
69912         This does not affect the physical layout of struct obstack,
69913         except on hosts (like the AS/400) where the size or alignment of
69914         void * is greater than that of ptrdiff_t.
69915         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
69916         __STDC__)]: Store temporary in pointer member of union, not
69917         integer member.
69918         * lib/obstack.c: Include <stddef.h>, for offsetof.
69919         (struct fooalign): Remove; it doesn't need a name.
69920         (union fooround): Change double to long double, and add void *.
69921         (DEFAULT_ALIGNMENT): Use offsetof to compute.
69922         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
69923         not a macro.  Hence the values are always int; so remove all
69924         casts-to-int in uses.
69925
69926 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
69927
69928         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
69929         we can get this patch merged into glibc.
69930
69931 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69932             Paul Eggert  <eggert@cs.ucla.edu>
69933
69934         * m4/argp: Depend on alloca.
69935
69936 2004-05-17  Derek R. Price  <derek@ximbiot.com>
69937             Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
69940         freecoding.
69941
69942 2004-05-17  Bruno Haible  <bruno@clisp.org>
69943
69944         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
69945         precision that consists of a '.' followed by an empty digit string.
69946         Patch by Tor Lillqvist <tml@iki.fi>.
69947
69948 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
69951         for backward compatibility with older code.  We need our own
69952         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
69953         it under some other name, and our alloca.h will define it.
69954
69955 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69956             Derek Price  <derek@ximbiot.com>
69957
69958         * lib/alloca.c: Include <alloca.h>, to get our interface.
69959         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
69960         include <alloca.h> first.  Use C89 prototype for alloca; this
69961         requires including <stddef.h> for size_t.  Use extern "C" if C++.
69962         Use #elif for simplicity, since we can assume C89 now.
69963         Don't try to source the system alloca.h since it will not be found
69964         and to prevent recursively including its replacement.
69965         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
69966         * lib/regex.c: Likewise.
69967
69968 2004-05-16  Derek Price  <derek@ximbiot.com>
69969             Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         getline cleanup.  This changes the getndelim2 API: both order of
69972         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
69973         no delimiter).
69974
69975         * lib/getline.c: Don't include stddef.h or stdio.h, since our
69976         interface does that.
69977         (getline): Always use getdelim, so that we don't have two
69978         copies of this code.
69979         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
69980         if available.
69981         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
69982         (GETNDELIM2_MAXIMUM): New macro.
69983         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
69984         instead of the old practice of delim2==0.  All callers changed.
69985         Return -1 on overflow, instead of returning junk.
69986         Do not set *linesize unless allocation succeeds.
69987         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
69988         that we include sys/types.h.
69989         * lib/getnline.h: Likewise.
69990         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
69991         (getndelim2): Reorder arguments.
69992         * lib/getnline.c (getnline, getndelim):
69993         Don't discard the NMAX argument.
69994         (getnline): Invoke getndelim, to avoid code duplication.
69995         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
69996         of (size_t) -1 by callers of the getnline family.
69997
69998 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
69999
70000         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
70001         Check for gettimeofday.
70002         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
70003         Check for settimeofday, stime.
70004
70005 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         * lib/nanosleep.c (suspended): Change its type from int to
70008         sig_atomic_t volatile.
70009         (first_call): Make it private to rpl_nanosleep, and have it
70010         be zero initially as that's a bit faster.
70011         (my_usleep): Round up fractional times instead of truncating them,
70012         as this is the usual meaning for 'sleep'.
70013
70014         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
70015         doesn't work.
70016         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
70017         (ENOSYS): Define if not defined.
70018         (settime): Fall back on stime if it exists and settimeofday fails.
70019         But don't bother with fallbacks if a method fails with errno == EPERM.
70020
70021 2004-05-11  Jim Meyering  <jim@meyering.net>
70022
70023         Prior to this change, the save_cwd caller required read access to the
70024         current directory on most systems (ones with the fchdir function).
70025
70026         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
70027         fails, try write-only, and finally, resort to using xgetcwd.
70028
70029 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * lib/obstack.c, obstack.h: Import changes from libc.
70032
70033 2004-04-28  Bruno Haible  <bruno@clisp.org>
70034
70035         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
70036         also implicitly appends .exe to executables.
70037         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
70038         accepts Windows pathnames.
70039         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70040         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70041         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
70042         Treat Cygwin like Windows, since it now accepts Windows pathnames.
70043         Reported by Derek Robert Price <derek@ximbiot.com>.
70044
70045 2004-04-21  Karl Berry  <karl@gnu.org>
70046
70047         * config/srclist.txt (localcharset.c): break sync.
70048
70049 2004-04-20  Paul Eggert  <eggert@twinsun.com>
70050
70051         * m4/host-os.m4: Add a copyright notice.
70052
70053 2004-04-20  Jim Meyering  <jim@meyering.net>
70054
70055         Change UTILS_ to gl_ in AC_DEFINE'd names.
70056         Change utils_- and jm_-prefixed variables, too.
70057         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
70058         UTILS_FUNC_MKDIR_TRAILING_SLASH.
70059         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
70060
70061         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
70062         Don't emit trailing blanks.
70063         Also rename jm_-prefixed variables to have gl_ prefix.
70064
70065         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
70066         Also rename jm_-prefixed variables to have gl_ prefix.
70067
70068         * m4/jm-macros.m4: Reflect the renamings.
70069         * m4/prereq.m4: Likewise.
70070
70071 2004-04-20  Jim Meyering  <jim@meyering.net>
70072
70073         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
70074         memory.
70075
70076 2004-04-20  Jim Meyering  <jim@meyering.net>
70077             Bruno Haible  <bruno@clisp.org>
70078
70079         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
70080         memory when realloc fails.
70081
70082 2004-04-19  Jim Meyering  <jim@meyering.net>
70083
70084         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
70085         now that readutmp.c may call `free (0)'.
70086
70087 2004-04-19  Bruno Haible  <bruno@clisp.org>
70088
70089         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
70090         * m4/inttypes_h.m4: Likewise.
70091         * m4/stdint_h.m4: Likewise.
70092         * m4/intmax_t.m4: Likewise.
70093         * m4/uintmax_t.m4: Likewise.
70094
70095 2004-04-18  Jim Meyering  <jim@meyering.net>
70096
70097         * m4/prereq.m4: Don't forbid jm_ prefix.
70098
70099         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
70100         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
70101         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
70102         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
70103         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
70104         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
70105         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
70106         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
70107         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
70108         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
70109         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
70110         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
70111         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
70112         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
70113         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
70114         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
70115         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
70116         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
70117         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
70118
70119 2004-04-18  Jim Meyering  <jim@meyering.net>
70120
70121         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
70122         failure, don't leak memory and do call END_UTMP_ENT.
70123
70124 2004-04-16  Jim Meyering  <jim@meyering.net>
70125
70126         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
70127         coreutils' stat program.
70128         (gl_PREREQ): Don't require jm_PREREQ_STAT.
70129
70130 2004-04-11  Paul Eggert  <eggert@twinsun.com>
70131
70132         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
70133         C89.
70134         (CHAR_BIT): Remove, since we assume C89.
70135         Include <stdint.h> if available, as per current Autoconf CVS advice.
70136
70137 2004-03-31  Jim Meyering  <jim@meyering.net>
70138
70139         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
70140         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
70141         * m4/xalloc.m4: Likewise.
70142
70143 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70144
70145         Merge from coreutils.
70146
70147         * m4/inttostr.m4: New file.
70148         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
70149         Require AM_STDBOOL_H and gl_TIMESPEC instead.
70150         Require gl_CLOCK_TIME.
70151         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
70152
70153 2004-03-30  Paul Eggert  <eggert@twinsun.com>
70154
70155         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
70156         not bool, to be more consistent with Unix conventions.
70157         Suggested by Bruno Haible.
70158
70159         Merge from coreutils.
70160
70161         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
70162         * lib/umaxtostr.c: New files.
70163
70164         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
70165         the usual <time.h> dance.
70166         (get_date): Change signature to support fractional time stamps.
70167         All callers changed.
70168         * lib/getdate.y: Include "getdate.h" first, as we can now
70169         assume C89 and don't need to worry about 'const'.
70170         Similarly, include "unlocked-io.h" near start, not in middle.
70171         Include <limits.h>.
70172         (textint.value): Use long int rather than int.
70173         (textint.digits): Use size_t rather than int.
70174         (BILLION, LOG10_BILLION): New constants.
70175         (parser_control): New member rel_ns.  Members day_ordinal,
70176         time_zone, month, day, hour, minutes, rel_year, rel_month,
70177         rel_day, rel_hour, rel_minutes, rel_seconds
70178         are now long int, not int.  Member seconds is now struct timespec,
70179         not int.  New member timespec_seen.  Members dates_seen, days_seen,
70180         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
70181         not int.
70182         (%union.intval): Now long int, not int.
70183         New member timespec.
70184         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
70185         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
70186         (spec): Now is a timespec or an item list.
70187         (timespec, items): New nonterminals.
70188         (time, rel, relunit, number, get_date):
70189         Add support for fractional seconds.
70190         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
70191         (gmtime, localtime, mktime): Remove decls; not needed with C89.
70192         (to_hour): First arg is now long int, not int.
70193         (to_year): Returns long int, not int.
70194         Don't treat year -70 like 70.
70195         (tm_diff): Returns long int, not int.
70196         (lookup_word): Use bool instead of int when appropriate.
70197         (yylex): Use size_t for count, not int.
70198         Detect overflow when parsing large integer constants.
70199         Add support for fractions.
70200         (get_date): Make pointers 'const' if possible.
70201         Use more-portable code to detect integer overflow.
70202         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
70203         Don't use ctime; it's not reliable if the year has >4 digits.
70204
70205         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
70206         This is for compatibility with BSD.
70207
70208         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
70209         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
70210         From coreutils' system.h.
70211
70212         * lib/userspec.c: Don't include "posixver.h".
70213         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
70214         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
70215         compatible extension.  Simplify code by removing a boolean int
70216         that was always nonzero if a string was nonnull.
70217
70218 2004-03-30  Jim Meyering  <jim@meyering.net>
70219
70220         Merge from coreutils.
70221
70222         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
70223         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
70224         on some systems one must include <grp.h> before it.
70225         Reported by Christian Krackowizer.
70226
70227 2004-03-30  Jim Meyering  <jim@meyering.net>
70228
70229         Merge from coreutils.
70230
70231         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
70232
70233         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
70234         an empty input stream.
70235
70236         * lib/readtokens.c: Include <stdbool.h>.
70237         (readtoken): Use `size_t' rather than int/long.
70238         All callers adjusted.
70239         Use `bool' rather than `int' where appropriate.
70240         Use memset rather than an explicit loop.
70241         Use x2nrealloc rather than xrealloc.
70242         Allow the use of `\0' as a delimiter.
70243         (readtokens): Likewise.
70244         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
70245
70246 2004-03-30  Jim Meyering  <jim@meyering.net>
70247
70248         * m4/realloc.m4: Remove file, since now it does no more than
70249         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
70250         the `configure.ac' section of module/realloc.
70251         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
70252
70253 2004-03-30  Bruno Haible  <bruno@clisp.org>
70254
70255         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
70256         nonnull.
70257
70258 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70259
70260         Merge changes to getloadavg.c from coreutils and Emacs.
70261
70262         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
70263         Define to an expression, not to the empty string.
70264         Include cloexec.h and xalloc.h.
70265         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
70266         Use set_cloexec_flag rather than rolling our own.
70267         * lib/cloexec.c, lib/cloexec.h: New files.
70268
70269 2004-03-29  Paul Eggert  <eggert@twinsun.com>
70270
70271         * m4/cloexec.m4: New file.
70272
70273 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70274
70275         * lib/getopt.h: Sync with libc CVS.
70276
70277 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70278             Bruno Haible  <bruno@clisp.org>
70279
70280         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
70281         mbswidth.
70282
70283 2004-03-18  Paul Eggert  <eggert@twinsun.com>
70284             Bruno Haible  <bruno@clisp.org>
70285
70286         * lib/mbswidth.h: Include <wchar.h> only if
70287         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
70288         <wchar.h>.
70289         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
70290
70291 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70292
70293         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
70294         Sync with libc CVS.
70295         * lib/getopt_int.h: New file, also synced from libc.
70296
70297 2004-03-09  Paul Eggert  <eggert@twinsun.com>
70298
70299         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
70300         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
70301         Bring back getopt.c, getopt.h, getopt1.c.
70302
70303 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70304
70305         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
70306         All uses changed.  Check for sa_sigaction member; this fixes
70307         a bug first reported by Jason Andrade in
70308         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70309
70310 2004-03-07  Paul Eggert  <eggert@twinsun.com>
70311
70312         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
70313         '#if' expressions.  Unlike the code it replaces, it does not
70314         depend on (defined _SC_PAGESIZE).  However, it does depend on
70315         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
70316         first reported by Jason Andrade in
70317         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
70318
70319 2004-02-25  Simon Josefsson  <jas@extundo.com>
70320
70321         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
70322
70323 2004-02-25  Simon Josefsson  <jas@extundo.com>
70324
70325         * lib/strdup.h: New file.
70326         * lib/strdup.c: Include it.
70327         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
70328         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
70329
70330 2004-02-23  Karl Berry  <karl@gnu.org>
70331
70332         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
70333         (from fencepost.gnu.org:/gd/gnuorg).
70334
70335 2004-02-23  Karl Berry  <karl@gnu.org>
70336
70337         * config/srclistvars.sh (GNUORG) [karl]: redefine.
70338         * config/srclist.txt: add maintain/standards documents.
70339
70340 2004-02-18  Bruno Haible  <bruno@clisp.org>
70341
70342         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
70343         Reported by Derek Robert Price <derek@ximbiot.com>.
70344
70345 2004-02-16  Karl Berry  <karl@gnu.org>
70346
70347         * config/mkinstalldirs, install-sh: update from automake.
70348
70349 2004-02-06  Karl Berry  <karl@gnu.org>
70350
70351         * m4/po.m4: update from gettext 0.14.1.
70352
70353 2004-02-06  Karl Berry  <karl@gnu.org>
70354
70355         * lib/config.charset: update from gettext 0.14.1.
70356
70357 2004-02-05  Paul Eggert  <eggert@twinsun.com>
70358
70359         Add comments and code, prompted by suggestions from Bruno Haible
70360         for sh-quote.
70361         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
70362         describing the enum quoting_style values.
70363         * lib/quotearg.c (quotearg_alloc): New function.
70364         (quotearg_buffer_restyled): Treat lone { and } as special.
70365         Treat = as special.  Work around bug with older shells
70366         that "see" a '\' that is really the 2nd byte of a multibyte char.
70367         Quote empty string with shell_quoting_style.
70368
70369 2004-02-03  Bruno Haible  <bruno@clisp.org>
70370
70371         * m4/pipe.m4: New file, from GNU gettext.
70372
70373 2004-02-03  Bruno Haible  <bruno@clisp.org>
70374
70375         * lib/pipe.h: New file, from GNU gettext.
70376         * lib/pipe.c: New file, from GNU gettext.
70377
70378 2004-01-27  Bruno Haible  <bruno@clisp.org>
70379
70380         * m4/execute.m4: New file, from GNU gettext.
70381
70382 2004-01-27  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/execute.h: New file, from GNU gettext.
70385         * lib/execute.c: New file, from GNU gettext.
70386         * lib/w32spawn.h: New file, from GNU gettext.
70387
70388 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70389
70390         Merge from diffutils.
70391
70392         * lib/file-type.c (file_type): Add typed memory objects.
70393         * lib/file-type.h (S_TYPEISTMO): New macro.
70394
70395         * lib/c-stack.h (c_stack_action): Remove argv argument.
70396         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
70397         (die): Don't calculate message unless segv_action returns.
70398         (get_stack_location, min_address_from_argv, max_address_from_argv,
70399         volatile stack_base, volatile_stack_size): Remove.
70400         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
70401         that every segmentation violation is a stack overflow.  (Ouch!)
70402         See Debian bug 136249 (still outstanding) for more info about why
70403         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
70404
70405 2004-01-24  Paul Eggert  <eggert@twinsun.com>
70406
70407         Exit-status fix from coreutils.
70408
70409         Use exit_failure consistently in place of EXIT_FAILURE,
70410         so that program exit statuses are consistent on failure.
70411
70412         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
70413         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
70414         * lib/argmatch.h: Comment fix to match the above.
70415         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
70416         Now a macro referring to exit_failure, instead of a separate
70417         variable.  Include "exitfail.h" to get it.
70418         * lib/xstrtol.h: Include "exitfail.h".
70419         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
70420
70421         * lib/long-options.c (parse_long_options): Use prototype
70422         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
70423         for clarity.
70424
70425 2004-01-21  Jim Meyering  <jim@meyering.net>
70426
70427         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
70428         so as not to conflict with a different-sized __mktime_internal
70429         function in GNU libc.
70430         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
70431         Problem building statically-linked `ls' reported by Michael Brunnbauer.
70432
70433 2004-01-20  Karl Berry  <karl@gnu.org>
70434
70435         * config/config.guess: update from config.
70436
70437         * config/srclistvars.sh: GNUWWWLICENSES for karl.
70438
70439 2004-01-20  Bruno Haible  <bruno@clisp.org>
70440
70441         Safer stack allocation.
70442         * lib/setenv.c: Include allocsa.h.
70443         (alloca): Remove fallback definition.
70444         (freea): Remove macro.
70445         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
70446         instead of freea.
70447
70448 2004-01-20  Bruno Haible  <bruno@clisp.org>
70449
70450         * m4/eealloc.m4: New file, from GNU gettext.
70451
70452 2004-01-20  Bruno Haible  <bruno@clisp.org>
70453
70454         * m4/allocsa.m4: New file, from GNU gettext.
70455
70456 2004-01-20  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/xallocsa.h: New file, from GNU gettext.
70459         * lib/xallocsa.c: New file, from GNU gettext.
70460
70461 2004-01-20  Bruno Haible  <bruno@clisp.org>
70462
70463         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
70464
70465 2004-01-20  Bruno Haible  <bruno@clisp.org>
70466
70467         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
70468         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
70469         specially.
70470
70471 2004-01-20  Bruno Haible  <bruno@clisp.org>
70472
70473         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
70474         patch.
70475
70476 2004-01-20  Bruno Haible  <bruno@clisp.org>
70477
70478         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
70479
70480 2004-01-20  Bruno Haible  <bruno@clisp.org>
70481
70482         * lib/eealloc.h: New file.
70483
70484 2004-01-20  Bruno Haible  <bruno@clisp.org>
70485
70486         * lib/binary-io.h: Avoid warnings on Cygwin.
70487
70488 2004-01-20  Bruno Haible  <bruno@clisp.org>
70489
70490         * lib/allocsa.h: New file, from GNU gettext.
70491         * lib/allocsa.c: New file, from GNU gettext.
70492
70493 2004-01-18  Karl Berry  <karl@gnu.org>
70494
70495         * doc/gpl.texi, doc/lgpl.texi: new files.
70496
70497 2004-01-18  Karl Berry  <karl@gnu.org>
70498
70499         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
70500         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
70501
70502 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70503
70504         Merge from coreutils.
70505
70506         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
70507         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
70508         (gl_DEFAULT_POSIX2_VERSION): Move
70509         the documentation from 'configure' into 'config.hin',
70510         so that 'configure --help' isn't burdened by it and
70511         we don't have to worry about its formatting there.
70512         Reword the documentation so that it's more succinct
70513         and can be run together into a single paragraph.
70514         * m4/same.m4 (gl_SAME): Check for pathconf.
70515
70516 2004-01-15  Paul Eggert  <eggert@twinsun.com>
70517
70518         Merge from coreutils.
70519
70520         * lib/posixver.c: Include posixver.h.
70521
70522         * lib/same.c: Include <stdbool.h>, <limits.h>.
70523         (_POSIX_NAME_MAX): Define if not defined.
70524         (MIN): New macro.
70525         (same_name): If file names are silently truncated, report
70526         that the file names are the same if they are the same after
70527         the silent truncation.
70528
70529         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
70530         conversion function.
70531         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
70532         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
70533         longer needed.
70534
70535 2004-01-15  Jim Meyering  <jim@meyering.net>
70536
70537         Merge from coreutils.
70538
70539         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
70540         if no library is required.
70541         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
70542         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
70543         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
70544         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
70545         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
70546         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
70547         value, $ac_cv_search_crypt, if it's "none required".
70548         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
70549         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
70550         not gl_FUNC_GETLOADAVG.
70551         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
70552         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
70553
70554 2004-01-15  Jim Meyering  <jim@meyering.net>
70555
70556         Merge from coreutils.
70557
70558         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
70559         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
70560         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
70561
70562         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
70563         optional configure-time default.
70564
70565         * lib/version-etc.c (version_etc_copyright): Update copyright date.
70566
70567         * lib/xreadlink.c (xreadlink): Correct outdated comment.
70568
70569 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
70570
70571         Merge from coreutils.
70572
70573         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
70574         value, $ac_cv_search_nanosleep, if it's "none required".
70575
70576 2004-01-14  Paul Eggert  <eggert@twinsun.com>
70577
70578         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
70579         with like-named macro in fnmatch.c.
70580         (EXT): Use an internal constant instead.
70581
70582         Merge fnmatch patches from glibc.
70583         * lib/fnmatch.c (mbsinit): Remove define.
70584         Add libc_hidden_ver (__fnmatch, fnmatch).
70585         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
70586         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
70587
70588 2004-01-14  Karl Berry  <karl@gnu.org>
70589
70590         * config/install-sh: update from automake.
70591
70592 2004-01-13  Karl Berry  <karl@gnu.org>
70593
70594         * config/install-sh: update from automake.
70595
70596 2004-01-09  Karl Berry  <karl@gnu.org>
70597
70598         * config/install-sh: update from automake.
70599
70600 2004-01-05  Karl Berry  <karl@gnu.org>
70601
70602         * config/config.{sub,guess}: update from config.
70603
70604 2003-12-31  Karl Berry  <karl@gnu.org>
70605
70606         * config/depcomp: update from automake.
70607
70608 2003-12-14  Karl Berry  <karl@gnu.org>
70609
70610         * lib/config.charset: update from gettext-runtime.
70611
70612 2003-12-03  Paul Eggert  <eggert@twinsun.com>
70613
70614         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
70615         Bug reported by Alfred M. Szmidt.
70616
70617 2003-12-03  Bruno Haible  <bruno@clisp.org>
70618
70619         * m4/gettext.m4: Upgrade from gettext-0.13.
70620         * m4/po.m4: Upgrade from gettext-0.13.
70621         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
70622         * m4/intmax.m4: New file, from gettext-0.13.
70623         * m4/printf-posix.m4: New file, from gettext-0.13.
70624
70625 2003-11-29  Karl Berry  <karl@gnu.org>
70626
70627         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
70628
70629 2003-11-25  Paul Eggert  <eggert@twinsun.com>
70630             Bruno Haible  <bruno@clisp.org>
70631
70632         * lib/printf-parse.h: Don't include sys/types.h.
70633         (ARG_NONE): New macro.
70634         (char_directive): Change type of *arg_index fields to size_t.
70635         * lib/printf-parse.c: Don't include sys/types.h.
70636         (SSIZE_MAX): Remove macro.
70637         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
70638         Remove unnecessary overflow check.
70639         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
70640         fields.
70641
70642 2003-11-25  Bruno Haible  <bruno@clisp.org>
70643
70644         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
70645
70646 2003-11-25  Bruno Haible  <bruno@clisp.org>
70647
70648         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
70649         gt_TYPE_SSIZE_T.
70650
70651 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70652
70653         * modules/alloca: Remove dependency on xalloc.
70654
70655 2003-11-24  Paul Eggert  <eggert@twinsun.com>
70656
70657         * lib/alloca.c: Remove dependency on xalloc module.
70658         (xalloc_die): Remove.
70659         (memory_full) [!defined emacs]: New macro.
70660         [!defined emacs]: Don't include xalloc.h.
70661         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
70662         address arithmetic overflows.  Change datatypes a bit to avoid
70663         unnecessary casts.
70664
70665 2003-11-22  Jim Meyering  <jim@meyering.net>
70666
70667         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
70668         s/size/size_t/.
70669
70670 2003-11-21  Karl Berry  <karl@gnu.org>
70671
70672         * config/config.{sub,guess}: update from config.
70673
70674 2003-11-18  Karl Berry  <karl@gnu.org>
70675
70676         * config/config.{sub,guess}: update from config.
70677
70678         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
70679
70680 2003-11-17  Paul Eggert  <eggert@twinsun.com>
70681
70682         * README: Mention that S+T cannot overflow if S is the size of
70683         an existing object and T is sufficiently small.
70684
70685 2003-11-17  Jim Meyering  <jim@meyering.net>
70686
70687         On systems without utime and without a utimes function capable of
70688         dealing with a NULL struct utimbuf* argument, this utime replacement
70689         could -- in unusual circumstances -- leak a file descriptor.
70690         * lib/utime.c: Include <unistd.h> and <errno.h>.
70691         (utime_null): Be sure to close `fd' and to preserve errno.
70692         Reported by Geoff Collyer via Arnold Robbins.
70693
70694 2003-11-17  Bruno Haible  <bruno@clisp.org>
70695
70696         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
70697         (Depends-on): Add xsize.
70698
70699 2003-11-17  Bruno Haible  <bruno@clisp.org>
70700
70701         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
70702
70703 2003-11-17  Bruno Haible  <bruno@clisp.org>
70704
70705         * lib/vasnprintf.c (alloca): Remove fallback definition.
70706         (freea): Remove definition.
70707         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
70708         Reported by Paul Eggert.
70709
70710 2003-11-16  Paul Eggert  <eggert@twinsun.com>
70711             Bruno Haible  <bruno@clisp.org>
70712
70713         Protect against address arithmetic overflow.
70714         * lib/printf-args.h: Include stddef.h.
70715         (arguments): Change type of field 'count' to size_t.
70716         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
70717         'unsigned int' where appropriate.
70718         * lib/printf-parse.h: Include sys/types.h.
70719         (char_directive): Change type of *arg_index fields to ssize_t.
70720         (char_directives): Change type of fields 'count', max_*_length to
70721         size_t.
70722         * lib/printf-parse.c: Include sys/types.h and xsize.h.
70723         (SSIZE_MAX): Define fallback value.
70724         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
70725         instead of 'int' where appropriate. Check a_allocated, d_allocated
70726         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
70727         * lib/vasnprintf.c: Include xsize.h.
70728         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
70729         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
70730         overflow. Avoid wraparound when converting a width or precision from
70731         decimal to binary.
70732
70733 2003-11-16  Bruno Haible  <bruno@clisp.org>
70734
70735         Update from GNU gettext.
70736         * lib/printf-parse.c: Generalize to it can be compiled for wide
70737         strings.
70738         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
70739         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
70740         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
70741         SNPRINTF): New macros.
70742         Don't include <alloca.h> if the file is used inside libintl.
70743         (local_wcslen): New function, for Solaris 2.5.1.
70744         (VASNPRINTF): Use it instead of wcslen.
70745
70746 2003-11-16  Bruno Haible  <bruno@clisp.org>
70747
70748         * lib/xsize.h (xmax): New function.
70749         (xsum, xsum3, xsum4): Declare as "pure" functions.
70750
70751 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70752
70753         * modules/xalloc (Files): Undo latest change, since xalloc.h
70754         no longer needs SIZE_MAX or PTRDIFF_MAX.
70755
70756 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70757
70758         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
70759         gl_PTRDIFF_MAX.
70760
70761 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70762
70763         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
70764         "return", to pacify some unknown compiler.  Problem reported
70765         by Joerg Schilling.
70766
70767 2003-11-12  Paul Eggert  <eggert@twinsun.com>
70768
70769         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
70770         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
70771         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
70772         heuristic is just as accurate as far as we know, and it removes a
70773         dependency on size_max.m4 and ptrdiff_max.m4.
70774
70775 2003-11-11  Bruno Haible  <bruno@clisp.org>
70776
70777         * modules/xsize (Files): Add m4/size_max.m4.
70778         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
70779
70780 2003-11-11  Bruno Haible  <bruno@clisp.org>
70781
70782         * m4/size_max.m4: New file.
70783         * m4/ptrdiff_max.m4: New file.
70784         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
70785         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
70786         (gl_XALLOC): Invoke it.
70787
70788 2003-11-11  Bruno Haible  <bruno@clisp.org>
70789
70790         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
70791         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
70792         defined.
70793
70794 2003-11-10  Paul Eggert  <eggert@twinsun.com>
70795
70796         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
70797         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
70798         rejected some allocations of exactly SIZE_MAX - 2 bytes.
70799         From Bruno Haible.
70800         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
70801         not (size_t) -1, since it's defined here.
70802
70803 2003-11-09  Karl Berry  <karl@gnu.org>
70804
70805         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
70806
70807 2003-11-06  Paul Eggert  <eggert@twinsun.com>
70808
70809         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
70810         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
70811         Reject sizes of exactly SIZE_MAX bytes.
70812         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
70813         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
70814
70815 2003-11-05  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/xsize.h: Include limits.h, to avoid a possible collision with
70818         SIZE_MAX defined in <limits.h> on Solaris.
70819
70820 2003-11-04  Jim Meyering  <jim@meyering.net>
70821
70822         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
70823         variable names, rather than @VAR@.
70824         * modules/poll: Likewise.
70825
70826 2003-11-04  Bruno Haible  <bruno@clisp.org>
70827
70828         * modules/xsize: New file.
70829         * modules/linebreak: Depend on xsize.
70830         * MODULES.html.sh (func_all_modules): Add xsize.
70831
70832 2003-11-04  Bruno Haible  <bruno@clisp.org>
70833
70834         * m4/xsize.m4: New file.
70835
70836 2003-11-04  Bruno Haible  <bruno@clisp.org>
70837
70838         * lib/xsize.h: New file.
70839         * lib/linebreak.c: Include xsize.h.
70840         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
70841         argument for overflow.
70842         Suggested by Paul Eggert.
70843
70844 2003-11-03  Karl Berry  <karl@gnu.org>
70845
70846         * config/config.{guess,sub}: update from config.
70847
70848 2003-11-03  Jim Meyering  <jim@meyering.net>
70849
70850         * modules/userspec (lib_SOURCES): Add userspec.h.
70851         (Include): Add "userspec.h".
70852         Improve description.
70853
70854 2003-11-03  Jim Meyering  <jim@meyering.net>
70855
70856         * lib/userspec.c: Include "userspec.h".
70857         * lib/userspec.h: New file.
70858
70859 2003-11-03  Bruno Haible  <bruno@clisp.org>
70860
70861         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
70862
70863 2003-11-03  Bruno Haible  <bruno@clisp.org>
70864
70865         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
70866         available, to avoid (extremely rare) race condition.
70867         Suggested by Paul Eggert.
70868
70869 2003-11-02  Karl Berry  <karl@gnu.org>
70870
70871         * config/srclist.txt (vasprintf.c): sync broken, sigh.
70872
70873 2003-10-31  Paul Eggert  <eggert@twinsun.com>
70874
70875         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
70876         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
70877         (read_filesystem_list): Set and use me_type_malloced.
70878         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
70879         whatever the type happens to be), for brevity and consistency.
70880         Check for size calculation overflow on Alphas running OSF/1.
70881
70882 2003-10-31  Jim Meyering  <jim@meyering.net>
70883
70884         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
70885
70886         * lib/linebuffer.c: Include <string.h> for declaration of memset.
70887
70888 2003-10-30  Paul Eggert  <eggert@twinsun.com>
70889             Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
70892         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
70893
70894 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70895
70896         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
70897         netbsd*-gnu*.  Suggested by Robert Millan.
70898
70899 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70900
70901         * modules/group-member: Depend on stdbool.
70902
70903 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70904
70905         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
70906
70907 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70908
70909         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
70910         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
70911         after the 'gnu' in these cases.  This fixes some bugs in the
70912         previous change, and is based on suggestions by Robert Millan.
70913
70914 2003-10-29  Paul Eggert  <eggert@twinsun.com>
70915
70916         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
70917         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
70918         no longer needed.
70919         * lib/quotearg.c (quotearg_n_options): Use it.
70920         * lib/group-member.c: Include <stdbool.h>.
70921         (free_group_info): Arg is now const *; don't free arg.
70922         (get_group_info): Now returns bool and accepts struct group_info *,
70923         rather than returning a malloc'ed struct group_info *.
70924         All uses changed.  Check for overflow in internal size calculation.
70925
70926         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
70927         rather than xmalloc/xrealloc.
70928         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
70929         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
70930         conformance bug: the old code used a pointer after freeing the
70931         storage that it addressed.
70932         * lib/hash.c (hash_initialize): Simplify the code by using
70933         xalloc_oversized rather than doing it by hand.
70934         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
70935         the buffer preserved.  Use free and xmalloc instead.
70936         * lib/quotearg.c (quotearg_n_options): Likewise.
70937         Use a simpler test for size overflow.  Don't use xalloc_oversized
70938         because unsigned int might be wider than size_t (!); this suggests
70939         that we should switch from unsigned int to size_t for slot numbers.
70940
70941 2003-10-28  Paul Eggert  <eggert@twinsun.com>
70942
70943         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
70944         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
70945         NetBSD kernels.  Requested by Richard Stallman.
70946
70947 2003-10-27  Paul Eggert  <eggert@twinsun.com>
70948
70949         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
70950         to allocate the returned structure.  Do not allocate a subarray,
70951         as x2nrealloc will do that.
70952         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
70953         instead of xnrealloc.
70954         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
70955
70956 2003-10-27  Bruno Haible  <bruno@clisp.org>
70957
70958         * lib/stdbool_.h: Better support for BeOS.
70959
70960 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70961
70962         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
70963         now uses inline.
70964
70965 2003-10-26  Paul Eggert  <eggert@twinsun.com>
70966
70967         * lib/xalloc.h (xalloc_oversized): New static inline function, for
70968         callers that want to do their own size-overflow checking.  Include
70969         <stdbool.h>, since xalloc_oversized returns bool.
70970         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
70971         to use xalloc_oversized.
70972
70973         Add two functions x2realloc, x2nrealloc, for programs that grow
70974         arrays dynamically by doubling their sizes.
70975         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
70976         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
70977         New functions.
70978
70979         Port to C99 semantics for 'inline' of external functions.
70980         Bug reported by Bruno Haible.
70981         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
70982         with the old contents of xnmalloc.
70983         (xnmalloc, xmalloc): Use it.
70984         (xnrealloc_inline): New static inline function,
70985         with the old contents of xnrealloc.
70986         (xnrealloc, xrealloc): Use it.
70987
70988         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
70989         that.
70990
70991 2003-10-26  Karl Berry  <karl@gnu.org>
70992
70993         * config/srclist.txt (COPYING.DOC): no longer available from
70994         /gd/gnuorg; don't know where the ultimate source is.
70995
70996 2003-10-25  Paul Eggert  <eggert@twinsun.com>
70997
70998         Fix several address-calculation bugs in the hash modules,
70999         plus some minor code cleanup.
71000
71001         * lib/hash.h: Include <stdbool.h>, for bool.
71002         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
71003         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
71004         hash_get_n_entries, hash_get_max_bucket_length,
71005         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
71006         hash_rehash): Use size_t rather than unsigned.
71007         * lib/hash.c (struct hash_table, hash_get_n_buckets,
71008         hash_get_n_buckets_used, hash_get_n_entries,
71009         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
71010         hash_get_entries, hash_do_for_each, hash_string, is_prime,
71011         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
71012         Likewise.
71013         (SIZE_MAX): Define if not defined.
71014         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
71015         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
71016         hash_print):
71017         Use const * when possible.
71018         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
71019         (check_tuning): Fix bug: if tuning parameters were very close to
71020         0 or 1, rounding errors could have caused subscript violations.
71021         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
71022         (hash_initialize): Add 'fail:' label
71023         to free table and return NULL, and use it to simplify code.
71024         Use calloc rather than clearing the storage ourself.
71025         (hash_initialize, hash_rehash): Check for arithmetic overflow in
71026         buffer size calculations.
71027         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
71028         Include <stddef.h>, for size_t.
71029         * lib/hash-pjw.c (hash_pjw): Likewise.
71030         Switch to method described by Bruno Haible.
71031         Include <limits.h>, for CHAR_BIT.
71032         (SIZE_BITS): New macro.
71033
71034 2003-10-23  Paul Eggert  <eggert@twinsun.com>
71035
71036         * m4/getline.m4 (AM_FUNC_GETLINE):
71037         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
71038         hosts.  Problem reported by Derek Robert Price in
71039         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
71040         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
71041         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
71042
71043 2003-10-21  Paul Eggert  <eggert@twinsun.com>
71044
71045         * lib/getndelim2.c (getndelim2): When size calculation overflows,
71046         ceiling the allocation at NMAX bytes rather than silently
71047         discarding input bytes before NMAX is reached.  This makes
71048         a difference only if NMAX exceeds SIZE_MAX / 2.
71049
71050         * lib/obstack.c: Merge from glibc.
71051         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
71052         Add libc_hidden_def (_obstack_newchunk).
71053         (_obstack_free) [! defined _LIBC]: Remove.
71054         [defined _LIBC]: Make a strong alias from obstack_free, rather than
71055         a clone of the function body.
71056         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
71057         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
71058
71059         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
71060         glibc.
71061         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
71062         arg to memcpy.
71063
71064         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
71065         (obstack_ptr_grow_fast, obstack_int_grow_fast):
71066         Don't use lvalue casts, as GCC plans to remove support for them
71067         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
71068         was also present in the non-GCC version, indicating that this
71069         code had always been buggy and had never been widely used.
71070         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
71071         Use the fast variant of each macro, rather than copying the
71072         definiens of the fast variant; that way, we'll be more likely to
71073         catch future bugs in the fast variants.
71074
71075 2003-10-20  Bruno Haible  <bruno@clisp.org>
71076
71077         * modules/wait-process: New file.
71078         * MODULES.html.sh (func_all_modules): Add wait-process.
71079
71080 2003-10-20  Bruno Haible  <bruno@clisp.org>
71081
71082         * m4/wait-process.m4: New file.
71083
71084 2003-10-20  Bruno Haible  <bruno@clisp.org>
71085
71086         * lib/wait-process.h: New file, from GNU gettext.
71087         * lib/wait-process.c: New file, from GNU gettext.
71088
71089 2003-10-19  Jim Meyering  <jim@meyering.net>
71090
71091         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
71092         HPUX 10.20.
71093
71094 2003-10-18  Karl Berry  <karl@gnu.org>
71095
71096         * config/config.guess: update from config.
71097
71098 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71099
71100         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
71101         (getgroups): First arg is int, not size_t.
71102         Don't let 'free' mangle errno.
71103
71104 2003-10-16  Paul Eggert  <eggert@twinsun.com>
71105
71106         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
71107
71108 2003-10-16  Karl Berry  <karl@gnu.org>
71109
71110         * config/config.{guess,sub}: update from config.
71111
71112 2003-10-16  Jim Meyering  <jim@meyering.net>
71113
71114         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
71115         memcpy.
71116
71117 2003-10-15  Paul Eggert  <eggert@twinsun.com>
71118
71119         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
71120         (SIZE_MAX): Remove.
71121         (new_exclude, add_exclude_file): Initial size no longer needs to
71122         be a power of 2.
71123         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
71124         our own address arithmetic overflow checking.
71125
71126         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
71127         (fnmatch): Do not alloca more than 2000 wide characters;
71128         instead, use malloc for large buffers.
71129         Check for address arithmetic overflow, and return -1
71130         with errno set to ENOMEM in that case.
71131         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
71132         (NEW_PATTERN): Do not alloca more than 8000 bytes;
71133         instead, return -1.  Check for address arithmetic overflow.
71134
71135 2003-10-14  Paul Eggert  <eggert@twinsun.com>
71136
71137         Handle invalid suffixes and overflow independently, so that
71138         callers can treat them independently as needed.  Fix some bugs in
71139         suffix handling, e.g., "100k@" was not diagnosed as an invalid
71140         suffix for a human-readable blocksize.  The major caller-visible
71141         change is the addition of a new
71142         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
71143         that both overflow and suffix chars were found.
71144
71145         * lib/human.c (humblock): Don't check separately for invalid suffix
71146         char; that is xstrtoumax's job (now that its bug is fixed).
71147         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
71148         INTMAX_MAX]: New macros.
71149         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
71150         TYPE_MAXIMUM): New macros.
71151         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
71152         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
71153         if overflow occurs, as it's what __strtol does and it's more useful
71154         in practice.
71155         (__xstrtol): If __strtol reports some error other than ERANGE,
71156         reflect it to the caller as LONGINT_INVALID.  If it reports
71157         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
71158         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
71159         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
71160         value.
71161         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
71162         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
71163         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
71164         [defined UINTMAX_MAX]: New macros.
71165
71166 2003-10-14  Bruno Haible  <bruno@clisp.org>
71167
71168         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
71169
71170 2003-10-14  Bruno Haible  <bruno@clisp.org>
71171
71172         * m4/sig_atomic_t: New file, from GNU gettext.
71173         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
71174
71175 2003-10-14  Bruno Haible  <bruno@clisp.org>
71176
71177         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
71178         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
71179         Also use volatile where needed.
71180
71181 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71182
71183         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
71184         Change maintainer from Bruno Haible to 'all'.
71185
71186 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71187
71188         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
71189
71190 2003-10-12  Paul Eggert  <eggert@twinsun.com>
71191
71192         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
71193         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
71194         and define in terms of the other primitives.
71195         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
71196         (SIZE_MAX): Define if not already defined.
71197         (array_size_overflow): New function.
71198         (xalloc_die): Abort instead of exiting if 'error' returns.
71199         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
71200         (xmalloc, xrealloc): Use them.
71201         (xcalloc): Check for address arithmetic overflow.
71202         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
71203         a bit faster than strcpy.
71204
71205 2003-10-10  Simon Josefsson  <jas@extundo.com>
71206
71207         * modules/argp (Depends-on): Add restrict and strcase.
71208
71209 2003-10-10  Simon Josefsson  <jas@extundo.com>
71210
71211         * m4/argp.m4: Add AC_C_INLINE.
71212
71213 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71214
71215         Merge getpass from libc, plus a few fixes.
71216
71217         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
71218         Include <stdbool.h>.
71219         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
71220         __fsetlocking to empty.
71221         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
71222         do include <bits/libc-lock.h>.
71223         Do not include <fcntl.h>; not needed.
71224         [_LIBC]: Include <wchar.h>.
71225         (NOTCANCEL_MODE): New macro.
71226         (flockfile, funlockfile) [_LIBC]: New macros.
71227         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
71228         [!_LIBC]: New macros.
71229         (call_fclose): New function.
71230         (getpass): Use it.  Save tty stream separately; this simplifies the
71231         code and makes it more reliable if stdin happens to equal stdout.
71232         Invoke __fsetlocking on tty.
71233         Handle thread cancellation if needed.
71234         Namespace cleanup (use __tcgetattr, __getline).
71235         Use bool for Booleans.
71236         [USE_IN_LIBIO]: Handle wide streams.
71237         [!_LIBC]: Unconditionally do the fseek, since we don't know what
71238         stream might go where.
71239
71240         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
71241         doesn't have to include <stdio.h> before us.
71242         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
71243         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
71244         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
71245         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
71246         if not declared, so that we can use getpass.c code from libc without
71247         rewriting it.
71248         (flockfile, ftrylockfile, funlockfile): New macros.
71249
71250 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71251
71252         * modules/getpass: Depend on stdbool.
71253
71254 2003-10-08  Paul Eggert  <eggert@twinsun.com>
71255
71256         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
71257
71258 2003-10-07  Karl Berry  <karl@gnu.org>
71259
71260         * config/config.{guess,sub}: update from config.
71261
71262 2003-10-06  Jim Meyering  <jim@meyering.net>
71263             Bruno Haible  <bruno@clisp.org>
71264
71265         This lets translators provide better translations for the
71266         "Written by ..." part of --version output.
71267         * lib/version-etc.h: Include stdarg.h.
71268         (version_etc_copyright): Declare as readonly.
71269         (version_etc): Make this function variadic with a NULL-terminated list
71270         of author name strings.
71271         (version_etc_va): New declaration.
71272         * lib/version-etc.c: Include stdarg.h, stdlib.h.
71273         (version_etc_copyright): Declare as readonly.
71274         (version_etc_va): New function. Provide a different translatable string
71275         for each possible number of authors < 10. Abbreviate when there are 10
71276         authors or more.
71277         (version_etc): Make this function variadic. Call version_etc_va.
71278         Suggestion from Gary V. Vaughan.
71279
71280         * lib/long-options.h (parse_long_options): Change prototype: the
71281         authors string is moved to the end and becomes variadic.
71282         * lib/long-options.c: Include stdarg.h.
71283         (parse_long_options): Make this function variadic, too.
71284         Call version_etc_va, not version_etc.
71285
71286 2003-10-06  Bruno Haible  <bruno@clisp.org>
71287
71288         * modules/version-etc-2: Remove file.
71289         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
71290
71291 2003-10-06  Bruno Haible  <bruno@clisp.org>
71292
71293         * modules/fatal-signal: New file.
71294         * MODULES.html.sh (func_all_modules): Add fatal-signal.
71295
71296 2003-10-06  Bruno Haible  <bruno@clisp.org>
71297
71298         * m4/fatal-signal.m4: New file.
71299         * m4/signalblocking.m4: New file, from GNU gettext.
71300
71301 2003-10-06  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/version-etc-2.h: Remove file.
71304         * lib/version-etc-2.c: Remove file.
71305
71306 2003-10-06  Bruno Haible  <bruno@clisp.org>
71307
71308         * lib/fatal-signal.h: New file, from GNU gettext.
71309         * lib/fatal-signal.c: New file, from GNU gettext.
71310
71311 2003-10-05  Paul Eggert  <eggert@twinsun.com>
71312
71313         * README: Rework advice for preventing empty .o files.
71314         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
71315         not <sys/types.h>.
71316
71317 2003-10-04  Karl Berry  <karl@gnu.org>
71318
71319         * lib/argp*: update from libc.
71320
71321 2003-10-04  Karl Berry  <karl@gnu.org>
71322
71323         * config/config.{guess,sub}: update from config.
71324
71325 2003-10-02  Bruno Haible  <bruno@clisp.org>
71326
71327         * modules/lchown (Include): Add lchown.h.
71328         * modules/time_r (Include): Use "..." syntax.
71329         * modules/xgetdomainname (Include): Add xgetdomainname.h.
71330
71331 2003-10-01  Simon Josefsson  <jas@extundo.com>
71332
71333         * MODULES.html.sh (func_all_modules): Move gethostname from section
71334         'based on' to section 'lacking' POSIX:2001.
71335
71336 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
71337
71338         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
71339         to output mode on the same stream.
71340
71341 2003-09-29  Paul Eggert  <eggert@twinsun.com>
71342
71343         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
71344         Fix arg typo in previous patch.
71345
71346 2003-09-28  Jim Meyering  <jim@meyering.net>
71347
71348         * lib/error.c: Correct cpp indentation.
71349
71350 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71351
71352         * modules/free: New file.
71353
71354 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71355
71356         * m4/free.m4: New file.
71357
71358 2003-09-27  Paul Eggert  <eggert@twinsun.com>
71359
71360         * lib/minmax.h (MIN, MAX)
71361         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
71362         Omit the special code that used __typeof__, since we worry that
71363         it could be more trouble than it's worth.  See:
71364         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
71365         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
71366
71367         * lib/free.c: New file.
71368
71369 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
71370
71371         Trivial fixes to Makefile.am parts of module listings.
71372         * modules/strstr: Append strstr.h to lib_SOURCES.
71373         * modules/strcase: Likewise, for strcase.h.
71374
71375 2003-09-27  Karl Berry  <karl@gnu.org>
71376
71377         * config/mkinstalldirs: update from automake.
71378
71379 2003-09-26  Paul Eggert  <eggert@twinsun.com>
71380
71381         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
71382         (error_tail): Do not loop, reallocating temporary buffer, since
71383         the output cannot contain more wide characters than the input
71384         contains bytes, the size must be big enough already.  This avoids
71385         one potential size overflow calculation.  Check for size overflow
71386         when calculating temporary buffer size.  Free temporary buffer
71387         when done, if it was allocated with malloc; this plugs a memory
71388         leak.  Remove casts from void * to pointers, that are no longer
71389         needed now that we're assuming C89 or better.
71390
71391         Merge error changes from glibc.
71392
71393         * lib/error.c, error.h: Update copyright notice header to match glibc.
71394         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
71395         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
71396         Disable cancellation while printing error.
71397         * lib/error.h: Prepend __ to parameter names.
71398
71399 2003-09-26  Jim Meyering  <jim@meyering.net>
71400
71401         * lib/error.c (error_tail): Move some declarations
71402         into inner scope where the local variables are used.
71403
71404 2003-09-26  Bruno Haible  <bruno@clisp.org>
71405
71406         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
71407         stpncpy().
71408         Don't define stpncpy through config.h; it's now done through stpncpy.h.
71409
71410 2003-09-26  Bruno Haible  <bruno@clisp.org>
71411
71412         * lib/stpncpy.h (gnu_stpncpy): New declaration.
71413         (stpncpy): Define as alias for gnu_stpncpy.
71414         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
71415
71416 2003-09-25  Simon Josefsson  <jas@extundo.com>
71417
71418         * lib/xgetdomainname.h: New file.
71419         * lib/xgetdomainname.c: New file.
71420
71421 2003-09-25  Simon Josefsson  <jas@extundo.com>
71422             Bruno Haible  <bruno@clisp.org>
71423
71424         * modules/getdomainname: New file.
71425         * modules/xgetdomainname: New file.
71426         * MODULES.html.sh (func_all_modules): Add getdomainname,
71427         xgetdomainname.
71428
71429 2003-09-25  Simon Josefsson  <jas@extundo.com>
71430             Bruno Haible  <bruno@clisp.org>
71431
71432         * m4/getdomainname.m4: New file.
71433
71434 2003-09-25  Simon Josefsson  <jas@extundo.com>
71435             Bruno Haible  <bruno@clisp.org>
71436
71437         * lib/getdomainname.h: New file.
71438         * lib/getdomainname.c: New file.
71439
71440 2003-09-25  Karl Berry  <karl@gnu.org>
71441
71442         * lib/argp-fmtstream.c, argp-help.c: update from libc.
71443
71444 2003-09-25  Karl Berry  <karl@gnu.org>
71445
71446         * config/install-sh: update from automake.
71447
71448 2003-09-25  Bruno Haible  <bruno@clisp.org>
71449
71450         * modules/version-etc-2: New file, from modules/version-etc with
71451         modifications.
71452         * MODULES.html.sh (func_all_modules): Add version-etc-2.
71453
71454 2003-09-25  Bruno Haible  <bruno@clisp.org>
71455
71456         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
71457         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
71458
71459 2003-09-24  Simon Josefsson  <jas@extundo.com>
71460
71461         * modules/xgethostname: Add xgethostname.h.
71462
71463 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71464
71465         * lib/linebuffer.c (freebuffer): Don't free the argument, just
71466         the buffer associated with the argument.  Bug reported by
71467         Simon Josefsson.
71468
71469 2003-09-24  Paul Eggert  <eggert@twinsun.com>
71470
71471         * README: Document assumptions that 'int' is at least 32 bits
71472         wide, that integer arithmetic is 2's complement without overflow,
71473         that there are no holes in integer values, that adding sizes of
71474         two nonoverlapping objects can't overflow, and that all-bits-zero
71475         yields scalar zero.  Fix spelling and capitalization typos.
71476
71477 2003-09-19  Karl Berry  <karl@gnu.org>
71478
71479         * lib/argp.h: update from libc.
71480
71481 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71482
71483         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
71484         to avoid spurious warnings like "AC_RUN_IFELSE was called before
71485         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
71486
71487 2003-09-17  Paul Eggert  <eggert@twinsun.com>
71488
71489         * gnulib-tool: Use "test -h", not "test -L", for portability
71490         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
71491         (tags_regexp): Remove, since \| doesn't conform to POSIX.
71492         (sed_extract_prog): Issue s commands one-by-one, rather than
71493         using \| in one s command.
71494
71495 2003-09-16  Paul Eggert  <eggert@twinsun.com>
71496
71497         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
71498         input error, instead of returning NULL the next time we are called
71499         (and therefore losing track of errno).
71500
71501 2003-09-16  Bruno Haible  <bruno@clisp.org>
71502
71503         * gnulib-tool (func_create_testdir): Warn about duplicated
71504         dependencies.
71505
71506 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71507
71508         * modules/argmatch, modules/fatal, modules/obstack,
71509         modules/xalloc, modules/xgethostname: Sort dependencies by
71510         importance, not alphabetically.
71511
71512 2003-09-15  Paul Eggert  <eggert@twinsun.com>
71513
71514         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
71515         fails, so that the caller gets the proper errno.
71516
71517         * lib/readutmp.c (read_utmp): Likewise.
71518         Check for fstat error.  Close stream and free storage
71519         when failing.
71520
71521 2003-09-14  Karl Berry  <karl@gnu.org>
71522
71523         * config/srclist.txt (strdup.c): disable for c89 changes.
71524
71525 2003-09-14  Jim Meyering  <jim@meyering.net>
71526
71527         * lib/getloadavg.c: Correct cpp indentation.
71528         * lib/strdup.c: Likewise.
71529         * lib/vasnprintf.c: Likewise.
71530
71531 2003-09-14  Bruno Haible  <bruno@clisp.org>
71532
71533         * modules/fwriteerror: New file.
71534         * MODULES.html.sh (func_all_modules): Add fwriteerror.
71535
71536 2003-09-14  Bruno Haible  <bruno@clisp.org>
71537
71538         * lib/fwriteerror.h: New file.
71539         * lib/fwriteerror.c: New file.
71540
71541 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71542
71543         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
71544         modules/xgethostname, modules/xalloc: Depend on exit.
71545
71546 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71547
71548         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
71549
71550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
71551         and AC_MINIX, too, so that their extensions are available.
71552
71553         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
71554         This macro has been superseded by gl_BACKUPFILE.
71555
71556         More patches to assume C89 or better.
71557
71558         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
71559
71560         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
71561         unconditionally.
71562         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
71563         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
71564         Include <string.h>, <stdlib.h> unconditionally.
71565         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
71566         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
71567         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
71568         headers or for string.h.
71569         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
71570         or strtoul.
71571
71572         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
71573         headers.
71574         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
71575         * m4/userspec.m4 (gl_USERSPEC): Likewise.
71576         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
71577         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
71578         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71579         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
71580         memcpy, memset.
71581         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
71582         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
71583         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
71584         strtol.
71585         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
71586         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
71587         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
71588         strtoul.
71589
71590 2003-09-12  Paul Eggert  <eggert@twinsun.com>
71591
71592         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
71593         * lib/obstack.c [!defined _LIBC]: Likewise.
71594         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
71595         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
71596         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
71597
71598         More changes to assume C89 or better.
71599
71600         * lib/error.c (error_tail): Assume vprintf.
71601
71602         * lib/argmatch.c (getenv): Remove decl.
71603         * lib/progreloc.c (get_full_program_name): Define via prototype.
71604         * lib/setenv.c (clearenv): Likewise.
71605         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
71606         needed.
71607         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
71608         (malloc, memcpy): Remove decls.
71609         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
71610         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
71611         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71612         (memcpy): Remove macro.
71613         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
71614         (__P): Remove.  All uses removed.
71615         (PTR): Remove.  All uses changed to void *.
71616         (CHAR_BIT, NULL): Remove.
71617         (spaces, zeros, memset_space, memset_zero)
71618         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
71619         Remove.
71620         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
71621         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
71622         Define with prototype.
71623         Remove now-unnecessary prototype decl.
71624         (extra_args_spec): Assume ANSI C.  All uses changed.
71625         (extra_args_spec_iso): Remove.
71626         (my_strftime, emacs_strftimeu): Define via prototype.
71627         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
71628         unconditionally.
71629         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
71630         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
71631         (strtoul, strtol): Remove decls.
71632         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
71633         LONG_MAX): Remove.
71634         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
71635         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
71636         (LOCALE_PARAM_PROTO): New macro.
71637         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
71638         (INTERNAL (strtol), strtol): Define with a prototype.
71639         (PARAMS): Remove.  All uses removed.
71640         * lib/tempname.c: Include <string.h> unconditionally.
71641         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
71642         * lib/xgethostname.c (main): Define with a prototype.
71643         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
71644         Include <stdlib.h> unconditionally.
71645         (calloc, malloc, realloc, free): Remove decls.
71646         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
71647         Include <stdlib.h> unconditionally.  Sort include file names.
71648         (strtod): Remove.
71649         (xstrtod): Define with a prototype.
71650         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
71651         (strtol, strtoul): Remove decls.
71652
71653 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71654
71655         More patches to assume C89 or better.
71656         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
71657         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
71658         string.h, memchr, STDC_HEADERS.
71659
71660 2003-09-11  Paul Eggert  <eggert@twinsun.com>
71661
71662         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
71663         Include <stdlib.h>, <string.h> unconditionally.
71664         Remove now-unnecessary cast to char *.
71665         * lib/strnlen.c: Include <string.h> unconditionally.
71666         * lib/yesno.c (yesno): Define with a prototype.
71667
71668 2003-09-11  Bruno Haible  <bruno@clisp.org>
71669
71670         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
71671
71672 2003-09-10  Jim Meyering  <jim@meyering.net>
71673
71674         * lib/error.c: Correct indentation of cpp directives.
71675
71676 2003-09-10  Bruno Haible  <bruno@clisp.org>
71677
71678         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
71679         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
71680         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
71681         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
71682         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
71683         <stdlib.h> and <string.h> checks.
71684         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
71685         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
71686
71687 2003-09-10  Bruno Haible  <bruno@clisp.org>
71688
71689         * lib/strcspn.c: Include <string.h> unconditionally.
71690         * lib/strpbrk.c: Include <string.h> unconditionally.
71691         * lib/strstr.c: Include <string.h> unconditionally.
71692         * lib/unicodeio.c: Include <string.h> unconditionally.
71693         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
71694         * lib/unsetenv.c: Likewise.
71695         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
71696         * lib/yesno.c: Include <stdlib.h> unconditionally.
71697         (rpmatch): Add prototype.
71698
71699 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71700
71701         More patches to assume C89 or better.
71702         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
71703         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
71704         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
71705         or for string.h.
71706         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
71707         stdlib.h.
71708         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
71709         C headers.
71710         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
71711         string.h.
71712         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
71713         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
71714         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
71715         or for string.h.
71716         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
71717         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
71718         C headers.
71719         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
71720         memcpy.
71721         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
71722         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
71723         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
71724         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
71725         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
71726         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
71727         string.h, free.
71728         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
71729         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
71730         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
71731         C headers, or for string.h.
71732         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
71733         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
71734         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
71735         headers, memory.h, stdlib.h, string.h, strings.h.
71736         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
71737         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
71738         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
71739         strchr.
71740         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
71741         headers, memory.h, string.h.
71742         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
71743         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
71744         free.
71745         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
71746         headers.
71747         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
71748         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
71749         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
71750         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
71751         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
71752
71753 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71754
71755         More K&R removal.
71756
71757         * lib/acosl.c (main): Use a prototype.
71758         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
71759         tanl.c: Likewise.
71760
71761         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
71762
71763         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
71764         (getopt, etopt_long, getopt_long_only, _getopt_internal)
71765         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
71766         with a prototype.
71767         * lib/getopt.c (const): Remove macro.
71768         Include <string.h> unconditionally.
71769         (my_index): Remove; all uses changed to strchr.
71770         (strlen): Remove decl.
71771         (exchange): Remove forward decl; no longer needed.
71772         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
71773         Define with prototype.
71774         * lib/getopt1.c (const): Remove macro.
71775         (getopt_long, getopt_long_only, main): Define with prototype.
71776
71777         * lib/getugroups.c: Include <string.h> unconditionally.
71778
71779         * lib/getusershell.c: Include <stdlib.h> unconditionally.
71780         (getusershell, setusershell, endusershell, readname, main):
71781         Define with prototypes.
71782
71783         * lib/group-member.c: Include group-member.h first.
71784         Include <stdlib.h> unconditionally.
71785
71786         * lib/hard-locale.c: Include hard-locale.h first.
71787         Include <stdlib.h>, <string.h> unconditionally.
71788
71789         * lib/hash.c (free, malloc): Remove decls.
71790         Include <stdlib.h> unconditionally.
71791
71792         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
71793         (getenv): Do not declare.
71794
71795         * lib/idcache.c: Include <string.h> unconditionally.
71796
71797         * lib/long-options.c: Include long-options.h first, to test interface.
71798         Include <stdlib.h> unconditionally.
71799
71800         * lib/makepath.c: Include makepath.h first, to test interface.
71801         Include <stdlib.h> and <string.h> unconditionally.
71802
71803         * lib/linebuffer.c: Include <stdlib.h>.
71804         (free): Remove decl.
71805
71806         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
71807         stddef.h. rpl_malloc returns void *, not char *.
71808         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
71809         prototype.
71810
71811         * lib/md5.h: Include <limits.h> unconditionally.
71812         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
71813         (__P): Remove; all uses removed.
71814         * lib/md5.c: Include "md5.h" first.
71815         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
71816         md5_buffer, md5_process_bytes, md5_process_block):
71817         Define with prototypes.
71818         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
71819         * lib/sha.c: Include "sha.h" first.
71820         Include <stdlib.h>, <string.h> unconditionally.
71821
71822         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
71823         * lib/memcmp.c (__ptr_t): Likewise.
71824         * lib/memrchr.c (__ptr_t): Likewise.
71825         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
71826         Include <string.h> unconditionally.
71827         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
71828         * lib/memchr.c: Include <stdlib.h> unconditionally.
71829         * lib/memchr.c (LONG_MAX): Remove.
71830         * lib/memrchr.c (LONG_MAX): Likewise.
71831         * lib/memchr.c (__memchr): Define via a prototype.
71832         * lib/memrchr.c (__memrchr): Likewise.
71833         * lib/memcmp.c (__P): Remove, and remove all uses.
71834         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
71835         Remove forward decls; no longer needed.
71836         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
71837         Use types required by C89 in prototype.
71838
71839         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
71840         * lib/savedir.c: Likewise.
71841         * lib/mkdir.c (free): Remove decl.
71842         * lib/rmdir.c (rmdir): Define with a prototype.
71843         * lib/savedir.c: Include savedir.h first, to test interface.
71844
71845         * lib/mktime.c (STDC_HEADERS): Remove.
71846         Include <stdlib.h>, <string.h> unconditionally.
71847
71848         * lib/modechange.c: Include <stdlib.h> unconditionally.
71849         (malloc): Remove decl.
71850
71851         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
71852         (free): Remove decl.
71853
71854         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
71855         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
71856         (This type really should be intptr_t, but that's a C99ism.)
71857         (_obstack_memcpy): Remove: all uses changed to memcpy.
71858         Include <string.h> unconditionally.
71859         (struct obstack): Assume __STDC__ for types of members
71860         chunkfun, freefun, extra_arg.
71861         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
71862         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
71863         obstack_begin, obstack_specify_allocation,
71864         obstack_specify_allocation_with_arg, obstack_chunkfun,
71865         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
71866         Remove unprototyped decls and the macros that use them.
71867         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
71868         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
71869         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
71870         (defined __STDC__ && __STDC__)]:
71871         Remove nonprototyped code.
71872         Include <stdlib.h> unconditionally.
71873         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
71874         _obstack_allocated_p, _obstack_free, obstack_free,
71875         _obstack_memory_used, print_and_abort):
71876         Define using prototypes.
71877         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
71878         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
71879         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
71880         obstack_next_free, obstack_object_size, obstack_room) [0]:
71881         Remove unused, unprototyped code.
71882
71883         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
71884
71885         * lib/physmem.c (physmem_total, physmem_available, main): Define
71886         with prototypes.
71887
71888         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
71889         (main): Define with a prototype.
71890
71891         * lib/posixver.c (getenv): Remove decl.
71892
71893         * lib/putenv.c (malloc): Returns void *, not char *.
71894         Include <string.h> unconditionally.
71895         (strchr, memcpy, NULL): Do not define.
71896
71897         * lib/readtokens.c: Include readtokens.h first, to test interface.
71898         Include <stdlib.h>, <string.h> unconditionally.
71899         (init_tokenbuffer): Define with a prototype.
71900
71901         * lib/regex.c (PARAMS): Remove.  All uses removed.
71902         All uses of _RE_ARGS removed, too.
71903         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
71904         unconditionally.
71905         (bzero): Assume memset exists.
71906         (memcmp, memcpy, NULL): Remove.
71907         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
71908         char, or assignments to local vars of type signed char.
71909         (init_syntax_once, PREFIX(extract_number_and_incr),
71910         PREFIX(print_partial_compiled_pattern),
71911         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
71912         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
71913         PREFIX(regex_grow_registers), PREFIX(regex_compile),
71914         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
71915         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
71916         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
71917         wcs_compile_range, byte_compile_range, truncate_wchar,
71918         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
71919         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
71920         count_mbs_length, wcs_re_match_2_internal,
71921         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
71922         PREFIX(alt_match_null_string_p),
71923         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
71924         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
71925         regfree, PREFIX(extract_number)): Define with prototype.  Remove
71926         now-unnecessary declaration, if any.
71927         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
71928         regcomp, regexec):
71929         Remove now-unnecessary casts among pointer types.
71930         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
71931
71932         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
71933         (free): Remove decl.
71934
71935         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
71936
71937         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
71938         (free): Remove decl.
71939
71940         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
71941         * lib/xgetcwd.c: Likewise.
71942
71943         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
71944         (free): Remove decl.
71945
71946         * lib/strchrnul.c (strchrnul): Define with a prototype.
71947         Fix bug: c_in was not converted to char before searching.
71948
71949         The following changes are not K&R related:
71950
71951         * lib/group-member.h: Include <sys/types.h>, so that this file is
71952         self-contained.
71953         * lib/makepath.h: Likewise.
71954
71955         * lib/getusershell.c (readname, default_index, line_size, readname):
71956         Use size_t, not int, for sizes.
71957         (readname): If the size overflows, report an error instead of
71958         looping forever.
71959
71960 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71961
71962         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
71963         libc.
71964
71965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
71966
71967         * README: New section: portability guidelines.
71968
71969 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71970
71971         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
71972         C89 spec.
71973
71974 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
71975
71976         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
71977
71978 2003-09-08  Paul Eggert  <eggert@twinsun.com>
71979
71980         Assume C89 or better; remove K&R cruft.
71981         A few of these changes were first proposed by Derek Robert Price
71982         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
71983
71984         * lib/addext.c: Include <string.h> unconditionally.
71985         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
71986         Don't declare getenv or malloc.
71987
71988         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
71989         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
71990         (NULL): Remove.
71991         (find_stack_direction, alloca): Use prototypes.
71992
71993         * lib/atexit.c (atexit): Define using a prototype.
71994
71995         * lib/basename.c, dirname.c, stripslash.c:
71996         Include <string.h> unconditionally.
71997
71998         * lib/bcopy.c: Include <stddef.h>.
71999         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
72000
72001         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
72002
72003         * lib/error.h (error, error_at_line, error_print_progname)
72004         [! (defined (__STDC__) && __STDC__)]: Remove decls.
72005         * lib/error.c: Include error.h first, to check interface.
72006         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72007         (VA_START): Remove; all uses changeed to va_start.
72008         (exit, strerror): Remove decls.
72009         (error_print_progname): Prototype uncondionally.
72010         Don't include <errno.h>; no longer needed.
72011         (private_strerror): Remove.
72012         (error_tail): Always define.
72013         (error, error_at_line): Assume C89 or better; always use prototypes.
72014         * lib/fatal.c: Include "fatal.h" first, to test interface.
72015         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
72016         (VA_START): Remove; all uses changed to va_start.
72017         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
72018         this case.
72019         (exit): Remove decl.
72020         (fatal): Prototype unconditionally.  Assume va_start works.
72021         Abort at end, to pacify gcc.
72022
72023         * lib/euidaccess.c (main): Define with a prototype.
72024
72025         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
72026
72027         * lib/exitfail.c: Include <stdlib.h> unconditionally.
72028
72029         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
72030         prototypes.
72031         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
72032         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
72033         (getenv): Remove decl.
72034         (fnmatch): Define using a prototype.
72035         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
72036         (FCT): Define using a prototype.
72037
72038         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
72039
72040         * lib/gethostname.c: Include <stddef.h>.
72041         (gethostname): Define with prototype.  Length is size_t, not int.
72042
72043 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72044
72045         Assume C89 or better; remove K&R cruft.
72046         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
72047         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
72048         string.h, getenv, malloc.
72049         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
72050         headers.
72051         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
72052         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
72053         do not check for strerror.
72054         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
72055         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
72056         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
72057         do not check for doprnt or vprintf.
72058         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
72059         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
72060
72061 2003-09-08  Paul Eggert  <eggert@twinsun.com>
72062
72063         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
72064         getversion.c should have been removed then, but was accidentally
72065         preserved.
72066
72067         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
72068         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
72069
72070 2003-09-08  Karl Berry  <karl@gnu.org>
72071
72072         * config/config.sub, config.guess, srclistvars.sh: update from savannah
72073                 config, forget about prep.
72074
72075         * config/depcomp, missing: update from automake.
72076
72077 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72078
72079         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
72080         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72081
72082 2003-09-07  Paul Eggert  <eggert@twinsun.com>
72083
72084         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
72085         copy_tm_result.  Bug reported by Simon Josefsson in
72086         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
72087
72088 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72089
72090         * m4/time_r.m4: New file.
72091         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
72092         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
72093         is. Check for timegm declaration.
72094         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
72095         Do not check for gmtime_r.
72096         Replace mktime if __mktime_internal does not exist and if mktime
72097         hasn't been replaced already.
72098
72099 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72100
72101         * lib/time_r.c, lib/time_r.h: New files.
72102
72103         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
72104         __localtime_r.
72105         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
72106         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
72107
72108         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
72109         __gmtime_r.
72110         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
72111         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
72112         Include <time_r.h>.
72113
72114         * lib/timegm.c: Switch to glibc implementation, with the following
72115         changes:
72116         [defined HAVE_CONFIG_H]: Include <config.h>.
72117         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
72118         (__mktime_internal) [!defined _LIBC]: New decl.
72119         (__gmtime_r) [!defined _LIBC]: New macro and function.
72120         (timegm): Use a prototype, since gnulib assumes C89.
72121         Do not bother declaring tmp to be const, as it's not really usefu.
72122         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
72123         (timegm): Declare only if HAVE_DECL_TIMEGM.
72124
72125 2003-09-06  Paul Eggert  <eggert@twinsun.com>
72126
72127         * MODULES.html.sh (func_all_modules): Add time_r.
72128         * modules/time_r: New file.
72129         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
72130         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
72131
72132 2003-09-03  Paul Eggert  <eggert@twinsun.com>
72133
72134         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
72135         Bug reported by Lute Kamstra in
72136         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
72137
72138         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
72139         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
72140         course with correspondingly smaller numbers for tomorrow and
72141         yesterday.  From Tadayoshi Funaba.  Originally installed into
72142         sh-utils on 1999-08-07, but the patch got lost (I guess during the
72143         coreutils merge?).
72144
72145 2003-08-31  Simon Josefsson  <jas@extundo.com>
72146
72147         * modules/timegm: New file.
72148         * MODULES.html.sh (func_all_modules): Add timegm.
72149
72150 2003-08-31  Simon Josefsson  <jas@extundo.com>
72151
72152         * m4/timegm.m4: New file.
72153
72154 2003-08-31  Simon Josefsson  <jas@extundo.com>
72155
72156         * lib/timegm.h: New file.
72157         * lib/timegm.c: New file.  Based on
72158         wget-1.8.2/src/http.c:mktime_from_utc.
72159
72160 2003-08-31  Karl Berry  <karl@gnu.org>
72161
72162         * lib/argp.h: update from libc.
72163
72164 2003-08-28  Bruno Haible  <bruno@clisp.org>
72165
72166         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
72167         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
72168         followed by '#define fnmatch fnmatch_posix' gives an error.
72169
72170 2003-08-28  Bruno Haible  <bruno@clisp.org>
72171
72172         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
72173         warning on QNX, which defines O_BINARY to 000000.
72174
72175 2003-08-27  Jim Meyering  <jim@meyering.net>
72176
72177         * m4/mkstemp.m4: Require that the system mkstemp be able to create
72178         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
72179         would fail after 32.  Reported by Danny Levinson.  Details here:
72180         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
72181
72182 2003-08-24  Bruno Haible  <bruno@clisp.org>
72183
72184         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
72185         MSVC7 <stdio.h> is included later.
72186
72187 2003-08-22  Simon Josefsson  <jas@extundo.com>
72188
72189         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
72190
72191 2003-08-20  Karl Berry  <karl@gnu.org>
72192
72193         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
72194
72195 2003-08-20  Bruno Haible  <bruno@clisp.org>
72196
72197         * modules/progname: New file.
72198         * MODULES.html.sh (func_all_modules): Add progname.
72199
72200 2003-08-20  Bruno Haible  <bruno@clisp.org>
72201
72202         * lib/progname.h: New file, from GNU gettext.
72203         * lib/progname.c: New file, from GNU gettext.
72204         * lib/progreloc.c: New file, from GNU gettext.
72205
72206 2003-08-19  Jim Meyering  <jim@meyering.net>
72207
72208         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
72209         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
72210
72211 2003-08-19  Bruno Haible  <bruno@clisp.org>
72212
72213         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
72214         more.
72215
72216 2003-08-19  Bruno Haible  <bruno@clisp.org>
72217
72218         * lib/xstrdup.c: Assume <string.h> exists.
72219
72220 2003-08-18  Paul Eggert  <eggert@twinsun.com>
72221
72222         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
72223         in makefile rules.
72224
72225 2003-08-18  Jim Meyering  <jim@meyering.net>
72226
72227         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
72228         * m4/lib-ld.m4: Likewise.
72229
72230 2003-08-18  Jim Meyering  <jim@meyering.net>
72231
72232         * lib/setenv.h: Indent nested cpp directive.
72233         * lib/vasnprintf.c: Remove trailing blanks.
72234
72235 2003-08-17  Simon Josefsson  <jas@extundo.com>
72236
72237         * modules/xstrndup: New file.
72238         * MODULES.html.sh (func_all_modules): Add xstrndup.
72239
72240 2003-08-17  Simon Josefsson  <jas@extundo.com>
72241
72242         * modules/argp: Fix autoconf macro name. Add more dependencies.
72243
72244 2003-08-17  Simon Josefsson  <jas@extundo.com>
72245
72246         * m4/xstrndup.m4: New file.
72247
72248 2003-08-17  Simon Josefsson  <jas@extundo.com>
72249
72250         * m4/argp.m4: New file.
72251
72252 2003-08-17  Simon Josefsson  <jas@extundo.com>
72253             Bruno Haible  <bruno@clisp.org>
72254
72255         * lib/xstrndup.h: New file.
72256         * lib/xstrndup.c: New file.
72257
72258 2003-08-17  Bruno Haible  <bruno@clisp.org>
72259
72260         * modules/strndup (Files, Include): Add lib/strndup.h.
72261
72262 2003-08-17  Bruno Haible  <bruno@clisp.org>
72263
72264         * modules/euidaccess (Files): Add lib/euidaccess.h.
72265
72266 2003-08-17  Bruno Haible  <bruno@clisp.org>
72267
72268         * lib/strndup.h: New file.
72269
72270 2003-08-17  Bruno Haible  <bruno@clisp.org>
72271
72272         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
72273         like AC_GNU_SOURCE.
72274         * modules/extensions (configure.ac): Comment out the invocation of
72275         gl_USE_SYSTEM_EXTENSIONS.
72276
72277 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72278
72279         Merges from coreutils, etc.
72280         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
72281         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
72282         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
72283         fixing a typo.
72284         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
72285         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
72286
72287 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72288
72289         Document merge from coreutils.
72290         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
72291         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
72292         * modules/utime: Add m4/utimes-null.m4.
72293
72294 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72295
72296         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
72297         space, undoing this 2003-08-12 change:
72298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72299
72300 2003-08-16  Paul Eggert  <eggert@twinsun.com>
72301
72302         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
72303         strtoul.c from libc, undoing this 2003-08-12 change:
72304         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
72305
72306 2003-08-16  Jim Meyering  <jim@meyering.net>
72307
72308         Merges from coreutils.
72309         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
72310         prefix.  Adjust cache variables similarly.  Create 500 rather than
72311         just 300 files, to exercise bug on Darwin6.5, too.
72312         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
72313         $missing_dir.
72314         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
72315         AM_SYS_POSIX_TERMIOS.
72316         Reported by mkc@mathdogs.com.
72317         Also change use of $am_cv_sys_posix_termios
72318         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
72319         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
72320         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
72321         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
72322         in /proc/mounts until it finds one with matching device number.  This
72323         is unnecessary when the FILE argument *is* a mount point.  No stat call
72324         is necessary in that case.  So, disable the statvfs-testing code on
72325         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
72326         as RedHat bug# 84846.
72327         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72328         to 1MB, so as not to render systems with no stack size limit (e.g.,
72329         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72330         Include <unistd.h>.  On some systems,
72331         it is required for the definition of _SC_PAGESIZE.
72332
72333 2003-08-16  Jim Meyering  <jim@meyering.net>
72334
72335         Merge from coreutils.
72336         * lib/xstrtoimax.c: #else #if -> #elif.
72337         * lib/xstrtoumax.c: Likewise.
72338
72339 2003-08-16  Jim Meyering  <jim@meyering.net>
72340
72341         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
72342         * m4/utimes.m4: Removed.
72343         * m4/utimes-null.m4: Renamed from utimes.m4.
72344
72345         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
72346         to 1MB, so as not to render systems with no stack size limit (e.g.,
72347         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
72348         Include <unistd.h>.  On some systems,
72349         it is required for the definition of _SC_PAGESIZE.
72350
72351 2003-08-16  Jim Meyering  <jim@meyering.net>
72352         and Paul Eggert  <eggert@cs.ucla.edu>
72353
72354         Merges from coreutils, etc.
72355
72356         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
72357         using the latest version from cvs.  This avoids problems with #line
72358         directives using a vendor (Sun) compiler.
72359         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
72360         Don't set GETGROUPS_LIB here; now it's
72361         done via getgroups.m4's wrapper function.
72362         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
72363         rather than just in sh-util/configure.in, so that the
72364         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
72365         same.
72366         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
72367         AC_FUNC_GETLOADAVG where to find getloadavg.c.
72368         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
72369         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
72370         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
72371         Remove code that is now done by the newly-required macros.
72372         Append $(EXEEXT) to DF_PROG.
72373         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
72374         Do not invoke or require the following here,
72375         since prereq.m4 or some gnulib .m4 now does this for us:
72376         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
72377         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
72378         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
72379         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
72380         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
72381         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
72382         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
72383         AC_FUNC_OBSTACK.
72384         Do not replace the following functions, as this is now the job
72385         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
72386         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
72387         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
72388         atexit getpass, strdup, getpagesize.
72389         Replace 'raise'.
72390         Do not check for the following functions, as this is now the job
72391         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
72392         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
72393         setregid.
72394         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
72395         Check for sys/sysctl.h.
72396         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
72397         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
72398         of checking for ssize_t ourselves.
72399
72400         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
72401         Require every macro that gnulib/modules/* suggests for us.
72402         (jm_PREREQ_ADDEXT): New macro.
72403         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
72404         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
72405
72406         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
72407         (gl_PHYSMEM): Use it.
72408         Also check for `table' function.
72409         Check for new headers and functions.
72410         Add check for sys/sysmp.h.
72411         With suggestions from Kaveh Ghazi.
72412         Ignore headers that are present but cannot be compiled.  This
72413         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
72414         C 5.4.
72415
72416 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72417
72418         Document merge from coreutils.
72419         * modules/userspec: Depend on posixver.
72420         * modules/strftime: Depend on tzset.
72421
72422 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72423
72424         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
72425         rather than tab, after '#' in shell-script copyright notices.
72426         Suggested by Bruno Haible.
72427
72428 2003-08-15  Paul Eggert  <eggert@twinsun.com>
72429
72430         * config/srclist-update: Use three spaces, rather than tab, after '#'
72431         in shell-script copyright notices.  Suggested by Bruno Haible.
72432         Remove unnecessary parenthesization in regular expression.
72433
72434 2003-08-15  Jim Meyering  <jim@meyering.net>
72435
72436         Merge from coreutils.
72437         * lib/xgethostname.c: Include <stdlib.h>.
72438         (xghostname): Don't exit for anything other than memory-related
72439         failure; just return NULL.
72440         * lib/userspec.c: Include "posixver.h".
72441         (parse_user_spec): Accept `.' as a separator only
72442         in pre-POSIX-200112 mode.
72443         * lib/strtoimax.c: Use #elif rather than #else #if.
72444         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
72445         Remove function, now that we can rely on a working tzset function.
72446         [!_LIBC]: Ensure that the required autoconf test has been run.
72447         [!defined _NL_CURRENT && HAVE_STRFTIME]:
72448         Use underlying_strftime for %r.
72449         * lib/sha.c: Merge in some clean-up and optimization changes from
72450         glibc.
72451         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
72452         Ensure that it is a multiple of 64.
72453         Rearrange loop exit tests so as to avoid performing an
72454         additional fread after encountering an error or EOF.
72455         * lib/realloc.c: Update copyright date.
72456
72457 2003-08-15  Jim Meyering  <jim@meyering.net>
72458         and Paul Eggert  <eggert@twinsun.com>
72459
72460         Merge from coreutils.
72461         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
72462         member but strut utmpx does not.  Needed for AIX 4.3.3.
72463         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
72464
72465 2003-08-15  Jim Meyering  <jim@meyering.net>
72466         and Paul Eggert  <eggert@cs.ucla.edu>
72467
72468         Merges from coreutils, etc.
72469         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
72470         Require gl_FUNC_TZSET_CLOBBER.
72471         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
72472         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
72473         members.
72474
72475 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72476
72477         Help the merge from coreutils.
72478         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
72479         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
72480         * m4/tzset.m4: Use it too.
72481
72482 2003-08-14  Paul Eggert  <eggert@twinsun.com>
72483
72484         * modules/tzset: New file.
72485
72486 2003-08-14  Jim Meyering  <jim@meyering.net>
72487
72488         Merges from coreutils.
72489         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
72490         variable names, rather than @FNMATCH_H@.
72491         * modules/alloca: Likewise for $(ALLOCA_H).
72492
72493         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
72494         the three copies of the literal target, `fnmatch.h'.
72495         * modules/alloca (alloca.h): Likewise.
72496
72497 2003-08-14  Jim Meyering  <jim@meyering.net>
72498
72499         Merge from coreutils.
72500         * m4/tzset.m4: New file.
72501         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
72502         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
72503         otherwise, AIX 5.1 systems would end up using the latter.
72504         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
72505         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
72506         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
72507         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
72508
72509 2003-08-14  Jim Meyering  <jim@meyering.net>
72510
72511         Merge from coreutils.
72512         * lib/obstack.h: Whitespace changes.
72513         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
72514         and xcalloc return values.
72515         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
72516         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
72517         hang on OSF/1 5.1 for DIR on both local and remote file systems.
72518         Reported by (and fix confirmed by) Nelson H. F. Beebe.
72519         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
72520         error from mntctl.
72521         Use mntctl's return value to drive the entry-processing loop, since
72522         we can't rely on the value of the vmt_length member in the last
72523         entry.  On some systems doing so could result in exhausting
72524         virtual memory.  Based in part on a patch from Mike Jetzer.
72525
72526 2003-08-14  Jim Meyering  <jim@meyering.net>
72527         and Paul Eggert  <eggert@twinsun.com>
72528
72529         Merges from coreutils, plus other fixes.
72530         * lib/physmem.c: Merge in portability changes from gcc/libiberty
72531         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
72532         for credits and details.  Thanks to Kaveh Ghazi for helping
72533         to keep these files in sync.
72534         (ARRAY_SIZE): Define it.
72535         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
72536         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
72537         (memcasecmp): Don't assume size_t fits in unsigned int.
72538         Remove casts and duplicate code.
72539         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
72540         (memcpy): Remove definition.
72541         Merge in some clean-up and optimization changes from glibc.
72542         [BLOCKSIZE]: Move definition to top of file.
72543         Ensure that it is a multiple of 64.
72544         Rearrange loop exit tests so as to avoid performing an
72545         additional fread after encountering an error or EOF.
72546         * lib/md5.h (md5_uintptr): Define.
72547         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
72548         return to the initial working directory.  Preserve errno
72549         for caller.
72550         * lib/idcache.c: Include "xalloc.h".
72551         (xmalloc, xrealloc): Remove decls.
72552         (getuser): Remove casts no longer required in C89.
72553         * lib/human.c: Include stdio.h, for sprintf.
72554         * lib/group-member.c: Include "xalloc.h".
72555         (xmalloc, xrealloc): Remove decls.
72556         (get_group_info): Remove casts no longer required in C89.
72557         * lib/getusershell.c (readname): Remove casts no longer required in
72558         C89.
72559         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
72560         * lib/getline.c: Whitespace fix, from coreutils.
72561
72562 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72563
72564         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
72565         Check for isascii.
72566
72567         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72568         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72569         Undo previous (whitespace-only) change.
72570
72571 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72572
72573         * lib/exclude.c: Include <ctype.h>
72574         (IN_CTYPE_DOMAIN): New macro.
72575         (is_space): New fn.
72576         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
72577         and empty lines.
72578
72579         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72580         Undo previous (whitespace-only) change.
72581
72582 2003-08-13  Paul Eggert  <eggert@twinsun.com>
72583
72584         * config/srclist-update: Change update back to the old behavior,
72585         leaving whitespace alone.  Use one 'sed' command rather than a
72586         pipeline.
72587         (fixlicense): Now a variable, not a function.
72588         (remove_trailing_blanks): Remove.
72589         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
72590         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72591         Undo previous (whitespace-only) change.
72592
72593 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72594
72595         Merge from coreutils.
72596         * modules/euidaccess: Add lib_SOURCES, include for new
72597         file euidaccess.h
72598
72599 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72600
72601         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
72602         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
72603         Normalize leading white space and remove trailing white space.
72604
72605         Merge from coreutils
72606         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
72607
72608         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
72609         0.12.1.  These files are now being upgraded automatically by
72610         ../config/srclist-update.
72611
72612 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72613
72614         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
72615         Normalize leading white space and remove trailing white space.
72616         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
72617         notice, as per ../config/srclist-update.
72618
72619         Merge from coreutils.
72620         * lib/euidaccess.h: New file.
72621         * lib/euidaccess.c: Include it.
72622         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
72623         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
72624         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
72625
72626 2003-08-12  Paul Eggert  <eggert@twinsun.com>
72627
72628         * config/srclist-update: Add copyright notice.
72629         (remove_id_lines, remove_trailing_blanks): New constants.
72630         (fixfile): Use them to normalize spacing a bit in copied files.
72631         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
72632         Normalize leading white space and remove trailing white space.
72633
72634         * config/texinfo.tex: Sync with texinfo.
72635
72636         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
72637         strtoul.c from libc, to merge coreutils whitespace changes.
72638
72639         * config/srclist.txt: Get the following m4 files from gettext:
72640         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
72641         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
72642         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
72643         wint_t.m4.
72644
72645 2003-08-12  Karl Berry  <karl@gnu.org>
72646
72647         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
72648         been made.
72649
72650 2003-08-11  Paul Eggert  <eggert@twinsun.com>
72651
72652         * modules/gnu-source, m4/gnu-source.m4:
72653         Remove; we're assuming Autoconf 2.54 or later now.
72654         Suggested by Bruno Haible.
72655         * MODULES.html.sh (func_all_modules): Remove gnu-source.
72656
72657 2003-08-11  Bruno Haible  <bruno@clisp.org>
72658
72659         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
72660
72661 2003-08-11  Bruno Haible  <bruno@clisp.org>
72662
72663         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
72664         (vasnprintf): Use it instead of wcslen.
72665
72666 2003-08-11  Bruno Haible  <bruno@clisp.org>
72667
72668         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
72669         value to ensure that _Bool promotes to int. Use #define for _Bool when
72670         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
72671
72672 2003-08-10  Karl Berry  <karl@gnu.org>
72673
72674         * lib/regex.h: update from libc (whitespace fix).
72675
72676 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72677
72678         Merge some files from coreutils.  These changes were
72679         originally made by Jim Meyering.
72680         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
72681         many older Unixes require this.
72682         * lib/alloca.c (alloca): Remove cast to argument of free;
72683         no longer needed in C89.
72684         * lib/alloca_.h, regex.h: Fix white space to match
72685         what GNU indent does.
72686
72687 2003-08-09  Paul Eggert  <eggert@twinsun.com>
72688
72689         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
72690         apparently Emacs's Unicode mode got confused before my 2003-08-05
72691         checkin.
72692
72693 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72694
72695         * m4/extensions.m4: New file.
72696         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
72697         Require gl_USE_SYSTEM_EXTENSIONS.
72698         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
72699         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
72700
72701 2003-08-08  Paul Eggert  <eggert@twinsun.com>
72702
72703         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
72704         * modules/extensions, modules/gnu-source: New files.
72705         * modules/timespec, modules/unlocked-io: Depend on extensions.
72706
72707 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72708
72709         * modules/restrict: New file.
72710         * MODULES.html.sh (func_all_modules): Add restrict.
72711         * modules/regex: Depend on restrict.
72712
72713 2003-08-07  Paul Eggert  <eggert@twinsun.com>
72714
72715         * m4/restrict.m4: New file.
72716         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
72717
72718 2003-08-07  Bruno Haible  <bruno@clisp.org>
72719
72720         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
72721         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
72722
72723 2003-08-07  Bruno Haible  <bruno@clisp.org>
72724
72725         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
72726         makes the module 'getndelim2' compatible with the module 'getline'.
72727
72728 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72729
72730         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
72731         byte with "\201" to avoid glitches when editing that source file
72732         with multi-gnome-terminal.
72733
72734 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72735
72736         * lib/bumpalloc.h: Remove.
72737
72738 2003-08-05  Paul Eggert  <eggert@twinsun.com>
72739
72740         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
72741         * modules/bumpalloc: Remove.
72742
72743 2003-08-04  Paul Eggert  <eggert@twinsun.com>
72744
72745         * lib/getloadavg.c: Change copyright notice and spacing to conform to
72746         GNU coding style.
72747
72748         Merge from coreutils.
72749         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
72750         1. From glibc.
72751         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
72752         from Karl Berry, implemented by Jim Meyering.
72753         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
72754         from Dmitry V. Levin.
72755         Remove anachronistic cast of xrealloc.
72756         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
72757         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
72758         type. Otherwise, it wouldn't compile with at least /bin/cc on
72759         ymp-cray-unicos9.0.2.X.
72760         Combine two mostly-identical uses of alloca into one.
72761         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
72762
72763 2003-08-04  Dave Love  <d.love@dl.ac.uk>
72764
72765         [From Emacs.]
72766
72767         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
72768         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
72769         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
72770         obsolete NLIST_NAME_UNION.
72771         [__GNU__]: Undef BSD and FSCALE.
72772         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
72773
72774 2003-08-03  Paul Eggert  <eggert@twinsun.com>
72775
72776         * lib/stdbool_.h (_Bool): Make it signed char, instead of
72777         an enum type, so that it's guaranteed to promote to int.  See:
72778         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
72779
72780 2003-08-03  Karl Berry  <karl@gnu.org>
72781
72782         * config/depcomp: update from automake.
72783
72784 2003-07-31  Paul Eggert  <eggert@twinsun.com>
72785
72786         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
72787         (strerror): Don't assume that a printable int fits in 14 bytes.
72788
72789 2003-07-31  Bruno Haible  <bruno@clisp.org>
72790
72791         * modules/getpass-gnu: New file.
72792         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
72793
72794 2003-07-31  Bruno Haible  <bruno@clisp.org>
72795
72796         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
72797
72798 2003-07-24  Karl Berry  <karl@gnu.org>
72799
72800         * config/missing: update from automake.
72801
72802 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
72803             Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
72806         * lib/getline.c (getline, getdelim): Likewise.
72807         Remove _GNU_SOURCE define; now it's defined in config.h through
72808         m4/getline.m4.
72809
72810 2003-07-23  Karl Berry  <karl@gnu.org>
72811
72812         * config/config.sub: update from prep.
72813
72814 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72815
72816         * modules/xalloc (Depends-on): Add exitfail.
72817         * modules/xmemcoll: Likewise.
72818
72819 2003-07-22  Paul Eggert  <eggert@twinsun.com>
72820
72821         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
72822         over-parenthesization in macros.
72823
72824         Sync with coreutils.
72825
72826         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
72827         required by C99.
72828
72829         Use `exit_failure' for xalloc and xmemcoll instead of their own
72830         private exit-failure variables.
72831         * lib/xalloc.h (xalloc_exit_failure): Remove.
72832         * lib/xmalloc.c: Likewise.  Include exitfail.h.
72833         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
72834         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
72835         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
72836         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
72837
72838 2003-07-20  Jim Meyering  <jim@meyering.net>
72839
72840         * modules/closeout (Depends-on): Add exitfail.
72841         Suggestion from Bruno Haible.
72842
72843 2003-07-19  Karl Berry  <karl@gnu.org>
72844
72845         * config/config.sub: update from prep.
72846
72847 2003-07-18  Paul Eggert  <eggert@twinsun.com>
72848
72849         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
72850         Remove.
72851         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
72852         to test that it can stand by itself.  Include "exitfail.h".
72853         Clients should set exit_failure instead.
72854         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
72855
72856 2003-07-18  Bruno Haible  <bruno@clisp.org>
72857
72858         * modules/getndelim2: New file.
72859         * modules/getline: Share files with module getndelim2.
72860         * modules/getnline: Depend on getndelim2 instead of sharing files with
72861         it. Add getnline.c to lib_SOURCES.
72862         * MODULES.html.sh (func_all_modules): Add getndelim2.
72863
72864 2003-07-18  Bruno Haible  <bruno@clisp.org>
72865
72866         * m4/getndelim2.m4: New file.
72867         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
72868         invoke gl_PREREQ_GETNDELIM2.
72869         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
72870         gl_PREREQ_GETNDELIM2.
72871         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
72872         gl_GETNDELIM2.
72873
72874 2003-07-18  Bruno Haible  <bruno@clisp.org>
72875
72876         * lib/getndelim2.h: New file.
72877         * lib/getndelim2.c: Make into a module of its own. Include config.h,
72878         getndelim2.h.
72879         (getndelim2): Make non-static. Change return type to ssize_t.
72880         * lib/getline.h: Change argument names.
72881         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
72882         * lib/getnline.c: Include getndelim2.h.
72883
72884 2003-07-18  Andreas Schwab  <schwab@suse.de>
72885
72886         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
72887
72888 2003-07-17  Karl Berry  <karl@gnu.org>
72889
72890         * config/config.sub: update from prep.
72891
72892 2003-07-17  Bruno Haible  <bruno@clisp.org>
72893
72894         * modules/getnline: New file.
72895         * modules/getline: Add lib/getndelim2.c to source file list.
72896         * MODULES.html.sh (func_all_modules): Add getnline.
72897
72898 2003-07-17  Bruno Haible  <bruno@clisp.org>
72899
72900         * m4/getnline.m4: New file.
72901
72902 2003-07-17  Bruno Haible  <bruno@clisp.org>
72903
72904         * m4/Makefile.am.in: Remove file.
72905         * m4/Makefile.am: Remove file.
72906         * m4/Makefile.in: Remove file.
72907
72908 2003-07-17  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/getnline.h: New file.
72911         * lib/getnline.c: New file.
72912         * lib/getndelim2.c: New file, extracted from getline.c.
72913         (getndelim2): Renamed from getdelim2, with added nmax argument.
72914         * lib/getline.c: Include getndelim2.c.
72915         (getdelim2): Moved out to getndelim2.c.
72916         (getline, getdelim): Update.
72917
72918 2003-07-17  Bruno Haible  <bruno@clisp.org>
72919
72920         * lib/Makefile.am: Remove file.
72921         * lib/Makefile.in: Remove file.
72922
72923 2003-07-17  Bruno Haible  <bruno@clisp.org>
72924
72925         * configure.in: Remove file.
72926         * Makefile.in: Remove file.
72927
72928 2003-07-17  Bruno Haible  <bruno@clisp.org>
72929
72930         * MODULES.html.sh: Put the </BODY> right before </HTML>.
72931
72932 2003-07-16  Karl Berry  <karl@gnu.org>
72933
72934         * config/srclist-update: was running fixlicense twice, which caused
72935                 texinfo.tex to be nullified for some reason.  Simplify,
72936                 $gplsrc is no longer needed as far as I can see?
72937
72938 2003-07-16  Jim Meyering  <jim@meyering.net>
72939
72940         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
72941
72942 2003-07-15  Paul Eggert  <eggert@twinsun.com>
72943
72944         * config/srclist.txt: Get the following files from gettext-runtime/intl
72945         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
72946         ref-del.sin.  From Bruno Haible.
72947         * config/srclist-update (fixfile): Change grep pattern again, since the
72948         previous fix didn't work (there was another trailing $).  Use
72949         '[$]' to escape the $s.
72950
72951 2003-07-15  Karl Berry  <karl@gnu.org>
72952
72953         * lib/vasnprintf.c: update from gettext.
72954
72955 2003-07-15  Karl Berry  <karl@gnu.org>
72956
72957         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
72958         gets expanded when surrounded by '$'.
72959
72960 2003-07-15  Jim Meyering  <jim@meyering.net>
72961
72962         * modules/save-cwd: Don't depend on error.  From Derek Price.
72963
72964 2003-07-15  Jim Meyering  <jim@meyering.net>
72965
72966         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
72967
72968 2003-07-14  Simon Josefsson  <jas@extundo.com>
72969
72970         * modules/mempcpy: New file.
72971         * MODULES.html.sh (func_all_modules): Add mempcpy.
72972
72973 2003-07-14  Simon Josefsson  <jas@extundo.com>
72974
72975         * m4/mempcpy.m4: New file.
72976
72977 2003-07-14  Simon Josefsson  <jas@extundo.com>
72978
72979         * lib/mempcpy.h: New file.
72980         * lib/mempcpy.c: New file.
72981
72982 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72983
72984         * modules/getdate, modules/posixtm: Depend on mktime.
72985
72986 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72987
72988         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
72989         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
72990         unicodeio.c, unicodeio.h, unlocked-io.h:
72991         Switch from LGPL to GPL.
72992
72993 2003-07-14  Paul Eggert  <eggert@twinsun.com>
72994
72995         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
72996         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
72997         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
72998         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
72999         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
73000         updated automatically by ../config/srclist-update.  This changes
73001         their license from LPGL to GPL.
73002
73003 2003-07-14  Paul Eggert  <eggert@twinsun.com>
73004
73005         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
73006         assumed to refer to the root of the most recent stable gettext version.
73007         * config/srclistvars.sh: Add defaults for eggert.
73008         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
73009         Match "This program" as well as "The program".  This is needed
73010         for gettext.
73011
73012 2003-07-14  Jim Meyering  <jim@meyering.net>
73013
73014         Don't emit diagnostics.  Let callers do that.
73015         * lib/save-cwd.c: Don't include "error.h".
73016         (save_cwd): Don't call error.  Ensure that errno is valid
73017         when returning nonzero.
73018
73019         * lib/save-cwd.h (restore_cwd): Update prototype.
73020         * lib/save-cwd.c (restore_cwd): Remove two parameters.
73021         Simplify.  Don't call error upon failure.  Let callers do that.
73022         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
73023         when auditing is enabled.  But don't bother updating the #if.
73024
73025 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
73026
73027         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
73028         it breaks C++ compilation.
73029         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
73030
73031 2003-07-10  Simon Josefsson  <jas@extundo.com>
73032
73033         * modules/strchrnul (Makefile.am): Add strchrnul.h.
73034
73035 2003-07-10  Jim Meyering  <jim@meyering.net>
73036
73037         * m4/clock_time.m4: Remove trailing blank.
73038         * m4/intmax_t.m4: Likewise.
73039
73040 2003-07-10  Jim Meyering  <jim@meyering.net>
73041
73042         * lib/vasnprintf.c: Remove trailing blanks.
73043         Make cpp indentation consistent.
73044
73045 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73046
73047         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
73048         posixver.c, strftime.c, strnlen.c, strverscmp.c:
73049         Switch from LGPL to GPL.
73050
73051 2003-07-09  Paul Eggert  <eggert@twinsun.com>
73052
73053         * config/srclist.txt: Sort sublists.  Add
73054         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
73055         that differ from gnulib for one reason or another; we'd like this list
73056         to be smaller but for now let's document what we have.
73057
73058 2003-07-08  Paul Eggert  <eggert@twinsun.com>
73059
73060         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
73061         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
73062         and sweeter "eval x=$x".
73063         * config/srclist.txt: Get lib/argp* from glibc.
73064
73065 2003-07-07  Paul Eggert  <eggert@twinsun.com>
73066
73067         * lib/mktime.c: Fix some boundary cases and remove need for floating
73068         point.
73069
73070         Issue a compile-time diagnostic if time_t is floating point, or if
73071         two's complement arithmetic is not in effect, or if arithmetic
73072         right shift does not propagate the sign.  These assumptions were
73073         all in the original code but they weren't checked.
73074
73075         (TIME_T_MIDPOINT, verify): New macros.
73076         (__isleap): Remove; it has integer overflow problems.
73077         (leapyear): New function, without those problems.
73078         (ydhms_tm_diff): Remove; splitting into two parts.
73079         (ydhms_diff): New function, containing the arithmetic part of
73080         the old ydhms_tm_diff function.  Issue a compile-time
73081         diagnostic if we are not using C99 integer division.
73082         Avoid casts when possible.
73083         (guess_time_tm): New function, containing the checking part of
73084         the old ydhms_tm_diff function.  Return the new value, rather than
73085         the difference between it and the old.  Accept a new argument T
73086         so that *T specifies the old value.  Check for overflow in the result.
73087
73088         (__mktime_internal): Use a time_t offset, not a long int offset.
73089         This undoes the 2003-06-04 change, which is no longer needed now
73090         that we have better overflow checking.
73091         (localtime_offset): Likewise.
73092
73093         (__mktime_internal): Avoid harmful overflow on hosts where time_t
73094         and long are 64-bit but int is only 32-bit.
73095         (ydhms_diff): Use long int to store year1 and yday1.
73096         Issue a compile-time diagnostic if long int is not wide enough.
73097
73098         (__mktime_internal): Use long int to store adjusted year and yday.
73099         Use plain C rather than preprocessor commands, if that doesn't
73100         affect efficiency.
73101         Check for overflow (and try to repair) after each probe
73102         rather than checking only at the very end.  This avoids some bugs
73103         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
73104         does not equal GMT offset at maximum time).
73105         Use integer to check for overflow rather than floating point; this
73106         is more portable to non-IEEE hosts, and is a tad faster.
73107         When we detect that we are oscillating between two values,
73108         don't check whether tm_isdst has the requested value, since
73109         we already know the answer.  When tm_isdst has the wrong value,
73110         use a different heuristic to find the right one, based on the
73111         extreme values actually observed in practice in tz2003a,
73112         rather than the (overly optimistic) "previous 3 calendar quarters".
73113
73114         (not_equal_tm, print_tm, check_result): Use "const T" rather than
73115         "T const" to accommodate glibc style.
73116         (check_result): Use less-confusing report format.  "long" -> "long int.
73117         (main): Likewise.
73118         Don't loop if the iteration overflows time_t.
73119         Allow a negative step in the iteration.
73120
73121 2003-07-06  Karl Berry  <karl@gnu.org>
73122
73123         * config/depcomp: update from automake.
73124         * config/config.sub: update from prep.
73125
73126 2003-07-03  Karl Berry  <karl@gnu.org>
73127
73128         * config/config.guess: update from prep.
73129
73130 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73131
73132         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
73133         xreadlink.c now includes it unconditionally.
73134
73135 2003-07-01  Paul Eggert  <eggert@twinsun.com>
73136
73137         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
73138         having it depend on HAVE_SYS_TYPES_H.
73139
73140 2003-07-01  Bruno Haible  <bruno@clisp.org>
73141
73142         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
73143         <sys/types.h> should be sufficient.
73144         Reported by Paul Eggert.
73145
73146 2003-06-26  Karl Berry  <karl@gnu.org>
73147
73148         * config/depcomp: update from automake.
73149
73150 2003-06-26  Bruno Haible  <bruno@clisp.org>
73151
73152         * modules/human: Depend on module stdbool.
73153
73154 2003-06-25  Bruno Haible  <bruno@clisp.org>
73155
73156         * modules/readlink: New file.
73157         * modules/xreadlink: Depend on it.
73158         * MODULES.html.sh (func_all_modules): Add readlink.
73159
73160 2003-06-25  Bruno Haible  <bruno@clisp.org>
73161
73162         * m4/readlink.m4: New file.
73163
73164 2003-06-25  Bruno Haible  <bruno@clisp.org>
73165
73166         * lib/readlink.c: New file.
73167
73168 2003-06-22  Karl Berry  <karl@gnu.org>
73169
73170         * config/srclist.txt: update mkinstalldirs from automake.
73171         * config/mkinstalldirs: update.
73172
73173 2003-06-22  Bruno Haible  <bruno@clisp.org>
73174
73175         Portability to mingw32.
73176         * m4/ssize_t.m4: New file, from GNU gettext.
73177         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
73178         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
73179
73180 2003-06-22  Bruno Haible  <bruno@clisp.org>
73181
73182         * modules/safe-read: Add m4/ssize_t.m4.
73183         * modules/xreadlink: Add m4/ssize_t.m4.
73184
73185 2003-06-20  Bruno Haible  <bruno@clisp.org>
73186
73187         Assume C89, so PARAMS isn't needed.
73188         * lib/unicodeio.h (PARAMS): Remove.
73189         * lib/unicodeio.c: Don't use PARAMS.
73190
73191 2003-06-18  Karl Berry  <karl@gnu.org>
73192
73193         * config/config.{guess,sub}: update from prep.
73194
73195 2003-06-18  Jim Meyering  <jim@meyering.net>
73196
73197         Merge changes from coreutils.
73198         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
73199         Remove explicit declarations of xmalloc and realloc.
73200         Include xalloc.h.
73201         (read_utmp): Remove anachronistic cast of xmalloc.
73202
73203 2003-06-17  Paul Eggert  <eggert@twinsun.com>
73204
73205         Assume C89, so PARAMS isn't needed.
73206         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
73207         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
73208         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
73209         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
73210         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
73211         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
73212         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
73213         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
73214         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
73215         lib/xstrtod.h, lib/xstrtol.h: Likewise.
73216         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
73217         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
73218         no longer needed. Anyway, config.h should always be included before any
73219         other file.
73220
73221 2003-06-11  Simon Josefsson  <jas@extundo.com>
73222
73223         * modules/sysexits: New file.
73224         * MODULES.html.sh (func_all_modules): Add sysexits.
73225
73226 2003-06-11  Simon Josefsson  <jas@extundo.com>
73227
73228         * lib/sysexit_.h: New file.
73229
73230 2003-06-11  Derek Price  <derek@ximbiot.com>
73231
73232         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
73233         necessary.
73234
73235 2003-06-11  Bruno Haible  <bruno@clisp.org>
73236
73237         * m4/sysexits.m4: New file.
73238
73239 2003-06-10  Simon Josefsson  <jas@extundo.com>
73240
73241         * lib/argp.h: New file, from glibc.
73242         * lib/argp-ba.c: New file, from glibc.
73243         * lib/argp-eexst.c: New file, from glibc.
73244         * lib/argp-fmtstream.c: New file, from glibc.
73245         * lib/argp-fmtstream.h: New file, from glibc.
73246         * lib/argp-fs-xinl.c: New file, from glibc.
73247         * lib/argp-help.c: New file, from glibc.
73248         * lib/argp-namefrob.h: New file, from glibc.
73249         * lib/argp-parse.c: New file, from glibc.
73250         * lib/argp-pv.c: New file, from glibc.
73251         * lib/argp-pvh.c: New file, from glibc.
73252         * lib/argp-xinl.c: New file, from glibc.
73253
73254 2003-06-10  Simon Josefsson  <jas@extundo.com>
73255
73256         * modules/strchrnul: New file.
73257
73258 2003-06-10  Simon Josefsson  <jas@extundo.com>
73259
73260         * modules/argp: New file.
73261
73262 2003-06-10  Simon Josefsson  <jas@extundo.com>
73263
73264         * m4/strchrnul.m4: New file.
73265
73266 2003-06-10  Simon Josefsson  <jas@extundo.com>
73267
73268         * lib/strchrnul.h: New file.
73269         * lib/strchrnul.c: New file.
73270
73271 2003-06-10  Bruno Haible  <bruno@clisp.org>
73272
73273         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
73274
73275 2003-06-07  Karl Berry  <karl@gnu.org>
73276
73277         * config/config.{guess,sub}: update from prep.
73278
73279 2003-06-07  Jim Meyering  <jim@meyering.net>
73280
73281         * modules/strtod: Use $(...) notation, not @...@ for
73282         AC_REPLACE'd variables.
73283         * modules/localcharset: Likewise.
73284
73285 2003-06-07  Jim Meyering  <jim@meyering.net>
73286
73287         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
73288         in place of my name in the copyright comment.
73289         Remove definition and uses of __P.
73290
73291         From coreutils.
73292         * lib/stat.c: Don't declare xmalloc explicitly.
73293         Instead, include "xalloc.h".
73294         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
73295         xrealloc, and xcalloc return values.
73296         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
73297         Improve comment.
73298         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
73299
73300 2003-06-07  Bruno Haible  <bruno@clisp.org>
73301
73302         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
73303         avoid AC_CONFIG_LINKS.
73304         * modules/fnmatch (Makefile.am): Use explicit creation rule for
73305         fnmatch.h, to avoid AC_CONFIG_LINKS.
73306         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
73307
73308 2003-06-07  Bruno Haible  <bruno@clisp.org>
73309
73310         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
73311         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
73312         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73313         directory.
73314         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
73315         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
73316         directory.
73317
73318 2003-06-06  Jim Meyering  <jim@meyering.net>
73319
73320         Merge from coreutils.
73321         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
73322         Consolidate declarations and initializations of *_base* locals.
73323
73324         Merge from coreutils.
73325         This avoids a core dump on systems without GNU putenv,
73326         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
73327         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
73328         (unsetenv): New static function, from GNU libc.
73329         (rpl_putenv): Use it.
73330
73331         * lib/modechange.c: Remove trailing blanks.
73332
73333         Merge from coreutils.
73334         * lib/fsusage.c: Remove declaration of statfs.
73335         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
73336
73337         * lib/posixtm.c: Include <stdbool.h> unconditionally.
73338
73339 2003-06-06  Jim Meyering  <jim@meyering.net>
73340
73341         * lib/stdbool_.h: Renamed from stdbool.h.in.
73342
73343 2003-06-06  Jim Meyering  <jim@meyering.net>
73344             Bruno Haible  <bruno@clisp.org>
73345
73346         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
73347         Adjust Makefile.am snippet not to redirect directly to target.
73348         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
73349
73350 2003-06-05  Paul Eggert  <eggert@twinsun.com>
73351
73352         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
73353         mismatch, look in future quarters as well as past.  This fixes a
73354         bug when processing fall-backwards gaps immediately after a long
73355         period of daylight-saving time.
73356
73357         * lib/mktime.c: Assume freestanding C89 or better.
73358         (HAVE_LIMITS_H): Remove.  Assume it's 1.
73359         (__P): Remove; not used.
73360         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
73361         (mktime, not_equal_tm, print_tm, check_result,
73362         main): Use prototypes.  Use const * where appropriate.
73363         (main): Fix typo in testing code that uncovered by above changes.
73364         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
73365
73366 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73367
73368         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
73369         locale.h, localeconv.  This merges changes from coreutils.
73370
73371         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
73372         It can be removed after the next Autoconf is released.
73373         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
73374         needed.
73375
73376 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73377
73378         * lib/mktime.c: Fix Debian bug 177940
73379         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
73380         (localtime_offset): Now long int, not time_t, because we want it
73381         to be guaranteed to be signed.  All uses changed.
73382         (__mktime_internal): If overflow would occur when adding offset,
73383         don't add it.
73384
73385         Merge 'human' changes from coreutils.  Rewrite to support
73386         locale-specific notations like thousands separators.
73387         * lib/human.c: Simplify authorship notice.
73388         Include human.h immediately after config.h.
73389         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
73390         <limits.h>: Do not include, since human.h does.
73391         (SIZE_MAX, UINTMAX_MAX): New macros.
73392         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
73393         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
73394         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
73395         (power_letter): Renamed from suffixes.
73396         (generate_suffix_backwards): Remove.
73397         (adjust_value): Now takes int style (because of human.h changes)
73398         and long double value (for greater precision on some platforms).
73399         (group_number): New function.
73400         (human_readable): Use it.  Use integer options, not enum.
73401         Put the options before the sizes in the arg list.
73402         Support all the new options.
73403         The old human_readable function has been removed;
73404         use inttostr.h instead.
73405         (human_readable, default_block_size, humblock):
73406         Use uintmax_t, not int, for block sizes.
73407         (human_readable_inexact, block_size_types): Remove.
73408         (block_size_opts): New constant.
73409         (human_options): Renamed from human_block_size, with new signature
73410         that allows block sizes up to UINTMAX_MAX.  All callers changed.
73411         * lib/human.h: Add copyright and authorship notice.
73412         Include <limits.h> and <stdbool.h> unconditionally.
73413         (PARAMS): Remove.  All uses removed.
73414         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
73415         (enum human_inexact_style): Remove tag; now a nameless enum.
73416         (human_floor, human_ceiling, human_round_to_even): Now have
73417         values 2, 0, 1 rather than -1, 1, 0.
73418         (human_group_digits, human_suppress_point_zero, human_autoscale,
73419         human_base_1024, human_SI, human_B): New constants.
73420         (human_readable_inexact, human_block_size): Remove.
73421         (human_readable): Size args are now uintmax_t, not int.
73422         (human_options): New decl.
73423
73424         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
73425         unnecessary now that we assume C89 or better.  This change
73426         imported from coreutils.
73427
73428         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73429         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
73430         in the 2003-05-30 sync from glibc.
73431
73432         .h files should stand alone, but we shouldn't include <sys/types.h>
73433         if we can get away with just <stddef.h>.
73434
73435         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
73436         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
73437         rather than <sys/types.h>, as we merely need size_t.
73438         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
73439         to get size_t.
73440         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
73441         Include <stdio.h>, to get FILE.
73442         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
73443         memcasecmp.h has included <stddef.h> and all we need is size_t.
73444         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
73445         our interface, instead of including <sys/types.h>
73446
73447 2003-06-04  Paul Eggert  <eggert@twinsun.com>
73448
73449         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
73450         now, as glibc mktime is buggy on non-glibc systems.
73451
73452 2003-06-03  Karl Berry  <karl@gnu.org>
73453
73454         * config/config.sub: update from prep.
73455
73456 2003-06-02  Paul Eggert  <eggert@twinsun.com>
73457
73458         [from coreutils]
73459         Fix some minor time-related bugs with POSIX time arguments.
73460         Some valid time stamps were being rejected (notably -1, and
73461         time stamps before 1900 on 64-bit hosts).  And some invalid
73462         time stamps were being accepted, e.g. September 31.
73463
73464         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
73465         that we can return (time_t) -1 successfully.
73466         * lib/posixtm.c: Likewise.
73467         [HAVE_STDBOOL_H]: Include <stdbool.h>.
73468         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
73469         (t): Remove static var.
73470         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
73471         of static var.  All uses changed.
73472         (year): Do not reject years before 1900; they can occur with
73473         64-bit time_t.
73474         (posix_time_parse): Do not check for out-of-range components;
73475         that is now the caller's responsibility, since our checks were
73476         only approximations.
73477         (posixtime): Use mktime to check for out-of-range components,
73478         since it knows them exactly.
73479         If mktime returns (time_t) -1, check whether an error actually occurred
73480         by invoking localtime on -1.
73481         (main) [TEST_POSIXTIME]: Check for input data errors, and report
73482         posixtime failures better.
73483         Improve the test data (in comments only).
73484
73485 2003-06-02  Karl Berry  <karl@gnu.org>
73486
73487         * config/mkinstalldirs (version): new variable.
73488         (--version): new option.
73489         (usage): improve message.
73490
73491 2003-05-30  Karl Berry  <karl@gnu.org>
73492
73493         * lib/mktime.c: update from libc.
73494
73495 2003-05-30  Bruno Haible  <bruno@clisp.org>
73496
73497         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
73498         * config/config.rpath: Upgrade to gettext-0.12.1.
73499
73500 2003-05-30  Bruno Haible  <bruno@clisp.org>
73501
73502         * m4/gettext.m4: Upgrade to gettext-0.12.1.
73503         * m4/nls.m4: New file, from gettext-0.12.1.
73504         * m4/po.m4: New file, from gettext-0.12.1.
73505         * m4/progtest.m4: Upgrade to gettext-0.12.1.
73506
73507 2003-05-30  Bruno Haible  <bruno@clisp.org>
73508
73509         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
73510         * lib/localcharset.h: Likewise.
73511         * lib/localcharset.c: Likewise.
73512
73513 2003-05-29  Karl Berry  <karl@gnu.org>
73514
73515         * config/config.rpath: update from gettext.
73516
73517 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73518
73519         Assume the headers required for C89 freestanding compilers.
73520         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
73521         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
73522         * m4/human.m4 (gl_HUMAN): Likewise.
73523         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
73524         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
73525         * m4/userspec.m4 (gl_USERSPEC): Likewise.
73526         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
73527         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73528         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
73529
73530 2003-05-28  Paul Eggert  <eggert@twinsun.com>
73531
73532         Assume the headers required for C89 freestanding compilers.
73533         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
73534         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
73535         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
73536         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
73537         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
73538         define, since <limits.h> is guaranteed to do that.
73539         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
73540         * lib/exclude.c: Include <stdbool.h> unconditionally.
73541         * lib/tempname.c: Include <stddef.h> unconditionally.
73542         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
73543         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
73544         <stddef.h> does that.
73545         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
73546         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
73547         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
73548         needed.
73549         * lib/xstrtol.c: Likewise.
73550         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
73551         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
73552
73553         * lib/addext.c (addext): Use assignment rather than cast, to avoid
73554         warnings on some platforms.
73555
73556         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
73557         arbitrarily.
73558
73559 2003-05-26  Jim Meyering  <jim@meyering.net>
73560
73561         Merge in a change from coreutils:
73562         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
73563         that is guaranteed to be `no'.  Use `no_such_member' to indicate
73564         that condition, rather than `-1' which is slightly misleading.
73565         Change the name of the cache variable to have the gl_ prefix.
73566         Prompted by a patch from Richard Dawe for DJGPP.
73567
73568 2003-05-24  Karl Berry  <karl@gnu.org>
73569
73570         * config/config.guess: update from prep.
73571
73572 2003-05-22  Karl Berry  <karl@gnu.org>
73573
73574         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
73575
73576 2003-05-20  Karl Berry  <karl@gnu.org>
73577
73578         * config/config.guess: update from prep.
73579
73580 2003-05-18  Karl Berry  <karl@gnu.org>
73581
73582         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
73583         might actually be set by the user.
73584
73585         * config/depcomp, install-sh, mdate-sh: update from automake.
73586
73587 2003-05-17  Bruno Haible  <bruno@clisp.org>
73588
73589         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
73590         invalid expansion for AC_EGREP_CPP.
73591         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
73592         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
73593         Suggested by Akim Demaille <akim@epita.fr> in
73594         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
73595
73596 2003-05-12  Jim Meyering  <jim@meyering.net>
73597
73598         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
73599         the space-padded-by-default conversion specifiers, %e, %k, %l.
73600
73601 2003-05-12  Bruno Haible  <bruno@clisp.org>
73602
73603         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
73604         the string is longer than 4 KB.
73605
73606 2003-05-11  Karl Berry  <karl@gnu.org>
73607
73608         * config/config.{guess,sub}: update from prep.
73609
73610 2003-05-09  Bruno Haible  <bruno@clisp.org>
73611
73612         * modules/error: Add m4/strerror_r.m4 to file list.
73613
73614 2003-05-03  Bruno Haible  <bruno@clisp.org>
73615
73616         Upgrade to Unicode-4.0.
73617         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
73618         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
73619         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
73620         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
73621         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
73622         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
73623         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
73624         Change width of U+E0100..U+E01EF from 1 to 0.
73625
73626 2003-04-25  Jim Meyering  <jim@meyering.net>
73627
73628         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
73629         of type size_t, not int.
73630
73631 2003-04-25  Bruno Haible  <bruno@clisp.org>
73632
73633         * lib/copy-file.c: Include <stddef.h>, for size_t.
73634
73635 2003-04-21  Paul Eggert  <eggert@twinsun.com>
73636
73637         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
73638         code which expansion is under static control.  Patch imported from
73639         Akim Demaille's patch to Bison; see
73640         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
73641
73642 2003-04-14  Bruno Haible  <bruno@clisp.org>
73643
73644         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
73645
73646 2003-04-11  Jim Meyering  <jim@meyering.net>
73647
73648         Merge changes from Coreutils.
73649
73650         2003-03-22  Jim Meyering  <jim@meyering.net>
73651
73652         * lib/strftime.c (widen): Cast alloca return value to proper type.
73653
73654         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
73655
73656         From GNU libc.
73657         * lib/strftime.c (my_strftime): Handle very large width
73658         specifications for numeric values correctly.  Improve checks for
73659         overflow.
73660
73661         2003-01-19  Jim Meyering  <jim@meyering.net>
73662
73663         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
73664         definitions.
73665         (nl_get_alt_digit) [! defined my_strftime]: Define.
73666         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
73667         _nl_get_alt_digit and _nl_get_walt_digit.
73668
73669         * lib/strftime.c (my_strftime): Merge in locale-related changes from
73670         libc. These changes have no effect outside of _LIBC.
73671
73672 2003-04-10  Bruno Haible  <bruno@clisp.org>
73673
73674         * modules/findprog: New file.
73675         * MODULES.html.sh (func_all_modules): Add it.
73676
73677 2003-04-10  Bruno Haible  <bruno@clisp.org>
73678
73679         * m4/findprog.m4: New file.
73680         * m4/eaccess.m4: New file.
73681
73682 2003-04-10  Bruno Haible  <bruno@clisp.org>
73683
73684         * lib/findprog.h: New file, from GNU gettext.
73685         * lib/findprog.c: New file, from GNU gettext.
73686
73687 2003-04-05  Jim Meyering  <jim@meyering.net>
73688
73689         Merge changes from Coreutils.
73690
73691         * lib/exclude.h (PARAMS): Remove definition and uses.
73692         * lib/exclude.c: Remove uses of `PARAMS'.
73693
73694         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
73695         Add test-cases for DOS filenames. Declare program_name.
73696         (main): Set up program_name.  Patch by Rich Dawe.
73697
73698         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73699         error from mntctl.
73700         Use mntctl's return value to drive the entry-processing loop, since
73701         we can't rely on the value of the vmt_length member in the last
73702         entry.  On some systems doing so could result in exhausting
73703         virtual memory.  Based in part on a patch from Mike Jetzer.
73704
73705 2003-04-04  Bruno Haible  <bruno@clisp.org>
73706
73707         * modules/linebreak: New file.
73708         * MODULES.html.sh (func_all_modules): Add it.
73709
73710 2003-04-04  Bruno Haible  <bruno@clisp.org>
73711
73712         * m4/linebreak.m4: New file.
73713
73714 2003-04-04  Bruno Haible  <bruno@clisp.org>
73715
73716         * lib/linebreak.h: New file, from GNU gettext.
73717         * lib/linebreak.c: New file, from GNU gettext with slight
73718         modifications.
73719         * lib/lbrkprop.h: New file, from GNU gettext.
73720
73721 2003-04-03  Bruno Haible  <bruno@clisp.org>
73722
73723         * modules/utf8-ucs4: New file.
73724         * modules/utf16-ucs4: New file.
73725         * modules/ucs4-utf8: New file.
73726         * modules/ucs4-utf16: New file.
73727         * MODULES.html.sh (func_all_modules): Add them.
73728
73729 2003-04-03  Bruno Haible  <bruno@clisp.org>
73730
73731         * m4/utf-ucs4.m4: New file.
73732         * m4/ucs4-utf.m4: New file.
73733
73734 2003-04-03  Bruno Haible  <bruno@clisp.org>
73735
73736         * lib/utf8-ucs4.h: New file, from GNU gettext.
73737         * lib/utf16-ucs4.h: New file, from GNU gettext.
73738         * lib/ucs4-utf8.h: New file, from GNU gettext.
73739         * lib/ucs4-utf16.h: New file, from GNU gettext.
73740
73741 2003-04-02  Bruno Haible  <bruno@clisp.org>
73742
73743         * modules/binary-io: New file.
73744         * MODULES.html.sh (func_all_modules): Add it.
73745
73746 2003-04-02  Bruno Haible  <bruno@clisp.org>
73747
73748         * lib/binary-io.h: New file, from GNU gettext.
73749
73750 2003-04-01  Bruno Haible  <bruno@clisp.org>
73751
73752         * modules/pathname: New file.
73753         * MODULES.html.sh (func_all_modules): Add it.
73754
73755 2003-04-01  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/pathname.h: New file, from GNU gettext.
73758         * lib/concatpath.c: New file, from GNU gettext.
73759
73760 2003-03-30  Bruno Haible  <bruno@clisp.org>
73761
73762         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
73763
73764 2003-03-30  Bruno Haible  <bruno@clisp.org>
73765
73766         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
73767         function chown() doesn't exist.
73768
73769 2003-03-28  Bruno Haible  <bruno@clisp.org>
73770
73771         * modules/copy-file: New file.
73772         * MODULES.html.sh (func_all_modules): Add it.
73773
73774 2003-03-28  Bruno Haible  <bruno@clisp.org>
73775
73776         * m4/copy-file.m4: New file.
73777
73778 2003-03-28  Bruno Haible  <bruno@clisp.org>
73779
73780         * lib/copy-file.h: New file, from GNU gettext.
73781         * lib/copy-file.c: New file, from GNU gettext.
73782
73783 2003-03-18  Jim Meyering  <jim@meyering.net>
73784
73785         * lib/quote.c (quote_n): Fix typo in comment.
73786
73787 2003-03-18  Bruno Haible  <bruno@clisp.org>
73788
73789         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
73790         checking.
73791         * m4/onceonly_2_57.m4: Likewise.
73792
73793 2003-03-17  Bruno Haible  <bruno@clisp.org>
73794
73795         * m4/onceonly.m4: Require autoconf 2.54 or newer.
73796         (m4_quote): Remove macro.
73797         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
73798
73799 2003-03-14  Jim Meyering  <jim@meyering.net>
73800
73801         Merge changes from Coreutils.
73802         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
73803         to be const, in order to avoid warnings.
73804         (obstack_room): Likewise.
73805         (obstack_empty_p): Likewise.
73806
73807 2003-03-14  Bruno Haible  <bruno@clisp.org>
73808
73809         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
73810         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
73811
73812 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73813
73814         Merge changes from Bison.
73815         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
73816         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
73817         when compiling Bison 1.875's `bitset bset = obstack_alloc
73818         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
73819         * lib/hash.c: Include <stdbool.h> unconditionally.
73820
73821 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73822
73823         * m4/onceonly.m4 (m4_quote): New macro.
73824         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
73825         Quote AC_FOREACH variable-expansions properly.
73826
73827 2003-03-13  Paul Eggert  <eggert@twinsun.com>
73828
73829         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
73830
73831 2003-03-09  Paul Eggert  <eggert@twinsun.com>
73832
73833         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
73834         Reported by Bruce Becker; see:
73835         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
73836
73837 2003-03-03  Paul Eggert  <eggert@twinsun.com>
73838             Bruno Haible  <bruno@clisp.org>
73839
73840         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
73841         Reported by John Hughes, see
73842         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
73843
73844 2003-02-20  Bruno Haible  <bruno@clisp.org>
73845
73846         * MODULES.html.sh (func_all_modules): Add poll.
73847
73848 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73849
73850         * modules/poll: New file.
73851
73852 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73853
73854         * lib/poll_.h: New file.
73855         * lib/poll.c: New file.
73856
73857 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
73858
73859         * m4/poll.m4: New file.
73860
73861 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73862
73863         * modules/mathl: New file.
73864
73865 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73866
73867         * lib/mathl.h: New file.
73868         * lib/acosl.c: New file.
73869         * lib/asinl.c: New file.
73870         * lib/atanl.c: New file.
73871         * lib/ceill.c: New file.
73872         * lib/cosl.c: New file.
73873         * lib/expl.c: New file.
73874         * lib/floorl.c: New file.
73875         * lib/frexpl.c: New file.
73876         * lib/ldexpl.c: New file.
73877         * lib/logl.c: New file.
73878         * lib/sincosl.c: New file.
73879         * lib/sinl.c: New file.
73880         * lib/sqrtl.c: New file.
73881         * lib/tanl.c: New file.
73882         * lib/trigl.c: New file.
73883         * lib/trigl.h: New file.
73884
73885 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
73886
73887         * m4/mathl.m4: New file.
73888
73889 2003-02-18  Bruno Haible  <bruno@clisp.org>
73890
73891         * MODULES.html.sh (func_all_modules): Add mathl.
73892
73893 2003-02-17  Bruno Haible  <bruno@clisp.org>
73894
73895         * modules/mkdtemp: New module.
73896         * MODULES.html.sh (func_all_modules): Add it.
73897
73898 2003-02-17  Bruno Haible  <bruno@clisp.org>
73899
73900         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
73901
73902 2003-02-17  Bruno Haible  <bruno@clisp.org>
73903
73904         * lib/mkdtemp.h: New file, from GNU gettext.
73905         * lib/mkdtemp.c: New file, from GNU gettext.
73906
73907 2003-02-02  Jim Meyering  <jim@meyering.net>
73908
73909         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
73910         e.g. glibc-2.2.93.
73911
73912 2003-01-31  Bruno Haible  <bruno@clisp.org>
73913
73914         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
73915         'rpl_rename'.
73916         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
73917         'rpl_strnlen'.
73918         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
73919         'rpl_strtod'.
73920         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
73921         'rpl_utime'.
73922
73923 2003-01-31  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/rename.c: #undef rename before defining rpl_rename.
73926         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
73927
73928 2003-01-30  Bruno Haible  <bruno@clisp.org>
73929
73930         * modules/vasnprintf, modules/vasprintf: New modules.
73931         * MODULES.html.sh (func_all_modules): Add them.
73932
73933 2003-01-30  Bruno Haible  <bruno@clisp.org>
73934
73935         * m4/signed.m4: New file, from GNU gettext.
73936         * m4/longdouble.m4: New file, from GNU gettext.
73937         * m4/wchar_t.m4: New file, from GNU gettext.
73938         * m4/wint_t.m4: New file, from GNU gettext.
73939         * m4/vasnprintf.m4: New file.
73940         * m4/vasprintf.m4: New file.
73941
73942 2003-01-30  Bruno Haible  <bruno@clisp.org>
73943
73944         * lib/printf-args.h: New file, from GNU gettext.
73945         * lib/printf-args.c: New file, from GNU gettext.
73946         * lib/printf-parse.h: New file, from GNU gettext.
73947         * lib/printf-parse.c: New file, from GNU gettext.
73948         * lib/vasnprintf.h: New file, from GNU gettext.
73949         * lib/vasnprintf.c: New file, from GNU gettext.
73950         * lib/asnprintf.c: New file, from GNU gettext.
73951         * lib/vasprintf.h: New file, from GNU gettext with modifications.
73952         * lib/vasprintf.c: New file, from GNU gettext.
73953         * lib/asprintf.c: New file, from GNU gettext.
73954
73955 2003-01-29  Bruno Haible  <bruno@clisp.org>
73956
73957         * modules/stpncpy: New module.
73958         * MODULES.html.sh (func_all_modules): Add it.
73959
73960 2003-01-29  Bruno Haible  <bruno@clisp.org>
73961
73962         * m4/stpncpy.m4: New file.
73963
73964 2003-01-29  Bruno Haible  <bruno@clisp.org>
73965
73966         * lib/stpncpy.h: New file, from GNU gettext with modifications.
73967         * lib/stpncpy.c: New file, from GNU gettext with modifications.
73968
73969 2003-01-28  Bruno Haible  <bruno@clisp.org>
73970
73971         * modules/c-ctype: New module.
73972         * MODULES.html.sh (func_all_modules): Add it.
73973
73974 2003-01-28  Bruno Haible  <bruno@clisp.org>
73975
73976         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
73977         Paul Eggert.
73978         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
73979         Paul Eggert.
73980
73981 2003-01-27  Bruno Haible  <bruno@clisp.org>
73982
73983         * modules/xsetenv: New module.
73984         * MODULES.html.sh (func_all_modules): Add it.
73985
73986 2003-01-27  Bruno Haible  <bruno@clisp.org>
73987
73988         * lib/xsetenv.h: New file, from GNU gettext.
73989         * lib/xsetenv.c: New file, from GNU gettext.
73990
73991 2003-01-23  Jim Meyering  <jim@meyering.net>
73992
73993         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
73994         from working on systems without dirfd (at least Irix and OSF1/Tru64).
73995
73996 2003-01-23  Bruno Haible  <bruno@clisp.org>
73997
73998         * modules/minmax: New module.
73999         * MODULES.html.sh (func_all_modules): Add it.
74000
74001 2003-01-23  Bruno Haible  <bruno@clisp.org>
74002
74003         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
74004         Eggert.
74005
74006 2003-01-22  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/exit: New module.
74009         * MODULES.html.sh (func_all_modules): Add it.
74010
74011 2003-01-22  Bruno Haible  <bruno@clisp.org>
74012
74013         * lib/exit.h: New file, from GNU gettext.
74014
74015 2003-01-19  Bruno Haible  <bruno@clisp.org>
74016
74017         * gnulib-tool: Recognize option --extract-maintainer.
74018         (func_get_maintainer): New function.
74019         * modules/*: Add Maintainer entry.
74020
74021 2003-01-16  Jim Meyering  <jim@meyering.net>
74022
74023         * m4/regex.m4: The `regex' struct is both input and output.
74024         Initialize it before each use.  Patch by Tim Waugh.
74025
74026 2003-01-16  Bruno Haible  <bruno@clisp.org>
74027
74028         * MODULES.html.sh: Add a table of contents. Add the module name as
74029         leftmost column. Add hyperlinks.
74030
74031 2003-01-15  Bruno Haible  <bruno@clisp.org>
74032
74033         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
74034
74035 2003-01-15  Bruno Haible  <bruno@clisp.org>
74036
74037         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
74038         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
74039         suffix.
74040
74041 2003-01-15  Bruno Haible  <bruno@clisp.org>
74042
74043         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
74044
74045 2003-01-15  Bruno Haible  <bruno@clisp.org>
74046
74047         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
74048         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
74049
74050 2003-01-14  Jim Meyering  <jim@meyering.net>
74051
74052         * lib/same.c (same_name): Tweak a comment.
74053
74054 2003-01-14  Bruno Haible  <bruno@clisp.org>
74055
74056         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
74057         when a string comparison is sufficient.
74058
74059 2003-01-14  Bruno Haible  <bruno@clisp.org>
74060
74061         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
74062         'unsigned int'.
74063
74064 2003-01-14  Bruno Haible  <bruno@clisp.org>
74065
74066         * lib/hash-pjw.c: Add comment about low quality of this function.
74067
74068 2003-01-13  Bruno Haible  <bruno@clisp.org>
74069
74070         * modules/stpcpy: Distribute lib/stpcpy.h.
74071         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
74072
74073 2003-01-13  Bruno Haible  <bruno@clisp.org>
74074
74075         * modules/*: Add a description.
74076         * modules/strpbrk: Fix Makefile.am snippet.
74077         * modules/strtoimax: Fix dependencies.
74078         * modules/strtoumax: Likewise.
74079
74080 2003-01-13  Bruno Haible  <bruno@clisp.org>
74081
74082         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
74083         * modules/alloca (Makefile.am): All object files depend on alloca.h.
74084         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
74085
74086 2003-01-13  Bruno Haible  <bruno@clisp.org>
74087
74088         * gnulib-tool (func_create_testdir): Store config/* files in the main
74089         directory.
74090         * config.rpath: Move to ...
74091         * config/config.rpath: ... here.
74092         * modules/gettext: Contains config/config.rpath, not config.rpath.
74093         * modules/iconv: Likewise.
74094
74095 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74096
74097         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74098         to avoid collisions with libcurses and libreadline.
74099
74100         * m4/getstr.m4: Remove.
74101         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
74102
74103 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74104
74105         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74106         to avoid collisions with libcurses and libreadline.
74107
74108         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
74109         * lib/getstr.h, getstr.c: Remove.
74110         * lib/getline.c: Include "getline.h", to check interface.
74111         Move body of old getstr.c here: this defines MIN_CHUNK and
74112         declares getdelim2, which is renamed from getstr.
74113         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
74114
74115         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
74116         All uses changed.
74117         * lib/linebuffer.h: Likewise.
74118         (readline): Remove backward-compatibility macro.
74119
74120 2003-01-12  Paul Eggert  <eggert@twinsun.com>
74121
74122         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
74123         to avoid collisions with libcurses and libreadline.
74124         * getstr: Remove.
74125         * MODULES.html.sh: Remove getstr.
74126         * modules/getline: Depend on unlocked-io, not getstr.
74127
74128 2003-01-12  Jim Meyering  <jim@meyering.net>
74129
74130         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
74131
74132 2003-01-10  Bruno Haible  <bruno@clisp.org>
74133
74134         * modules/alloca: Change Makefile.am requirements. Simplify Include
74135         requirements. Add lib/alloca_.h to file list.
74136
74137 2003-01-10  Bruno Haible  <bruno@clisp.org>
74138
74139         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
74140
74141 2003-01-10  Bruno Haible  <bruno@clisp.org>
74142
74143         * lib/alloca_.h: New file.
74144         * lib/getdate.y: Unconditionally include alloca.h.
74145         * lib/makepath.c: Likewise.
74146         * lib/setenv.c: Likewise.
74147         * lib/userspec.c: Likewise.
74148
74149 2003-01-09  Karl Berry  <karl@gnu.org>
74150
74151         * MODULES.html.sh: include `dirname $0` in PATH, to find
74152         gnulib-tool.
74153
74154 2003-01-09  Bruno Haible  <bruno@clisp.org>
74155
74156         * modules/stdbool: Change configure.ac, Makefile.am requirements.
74157         Simplify Include requirements. Add lib/stdbool.h.in to file list.
74158
74159 2003-01-09  Bruno Haible  <bruno@clisp.org>
74160
74161         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
74162
74163 2003-01-09  Bruno Haible  <bruno@clisp.org>
74164
74165         * lib/stdbool.h.in: New file.
74166
74167 2003-01-09  Bruno Haible  <bruno@clisp.org>
74168
74169         * gnulib-tool (func_all_modules): Ignore files ending in ~.
74170         * MODULES.html.sh: Likewise.
74171
74172 2003-01-08  Jim Meyering  <jim@meyering.net>
74173
74174         * lib/full-write.c: Undefine and define-away `const' after inclusion
74175         of errno.h, not before.  Suggestion from Bruno Haible.
74176
74177 2003-01-08  Bruno Haible  <bruno@clisp.org>
74178
74179         * modules/full-read: Depend on full-write.
74180
74181 2003-01-08  Bruno Haible  <bruno@clisp.org>
74182
74183         * lib/safe-read.c: Include specification header first, to ensure its
74184         selfcontainedness.
74185         * lib/full-write.c: Likewise.
74186
74187 2003-01-07  Jim Meyering  <jim@meyering.net>
74188
74189         * lib/full-write.c: Rework so that it may serve to define full_read,
74190         too.
74191         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
74192
74193 2003-01-07  Bruno Haible  <bruno@clisp.org>
74194
74195         * lib/strtoimax.c: Include <stdint.h> as an alternative to
74196         <inttypes.h>.
74197         * lib/xstrtol.h: Likewise.
74198         * lib/xstrtoimax.c: Likewise.
74199         * lib/xstrtoumax.c: Likewise.
74200         * lib/human.h: Likewise.
74201
74202         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
74203         on systems that have <inttypes.h> but not <stdint.h>.
74204
74205 2003-01-07  Bruno Haible  <bruno@clisp.org>
74206
74207         * MODULES.html.sh: Add copyright notice.
74208         (missed_files): Omit CVS directory entries.
74209         (func_module): Make it work with sed-3.02.
74210         * MODULES.txt: Remove file.
74211
74212 2003-01-06  Jim Meyering  <jim@meyering.net>
74213
74214         * lib/version-etc.c: Update year in translatable copyright string.
74215
74216 2003-01-03  Karl Berry  <karl@gnu.org>
74217
74218         * config/config.{guess,sub}: update from prep.
74219
74220 2003-01-02  Karl Berry  <karl@gnu.org>
74221
74222         * doc/COPYING.DOC: belatedly updated to 1.2.
74223
74224 2003-01-01  Karl Berry  <karl@gnu.org>
74225
74226         * gnulib-tool (func_verify_module): report module name $module in
74227         error message, not $1.
74228         * gnulib-tool (create-testdir): don't complain if destdir couldn't
74229         be created, only if it doesn't exist.
74230         * gnulib-tool (last_checkin_date): don't expand the $Date here.
74231
74232 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74233
74234         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
74235
74236 2002-12-31  Paul Eggert  <eggert@twinsun.com>
74237
74238         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
74239         memcmp if strcoll doesn't work.
74240
74241 2002-12-31  Bruno Haible  <bruno@clisp.org>
74242
74243         * lib/utime.c (utime_null): No need to call ftruncate if the file was
74244         nonempty.
74245
74246 2002-12-31  Bruno Haible  <bruno@clisp.org>
74247
74248         * lib/memcoll.c (STRCOLL): New macro.
74249         (memcoll): Use it.
74250
74251 2002-12-31  Bruno Haible  <bruno@clisp.org>
74252
74253         * lib/localcharset.h: New file.
74254         * lib/localcharset.c: Include it.
74255         * lib/unicodeio.c: Likewise.
74256
74257 2002-12-31  Bruno Haible  <bruno@clisp.org>
74258
74259         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
74260         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
74261
74262 2002-12-31  Bruno Haible  <bruno@clisp.org>
74263
74264         * lib/getline.h: Include <stddef.h>, for size_t.
74265
74266         * lib/unicodeio.h: Include <stddef.h>, for size_t.
74267         * lib/unicodeio.c: Don't include <stddef.h>.
74268
74269 2002-12-31  Bruno Haible  <bruno@clisp.org>
74270
74271         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
74272         HAVE_TM_ZONE.
74273
74274 2002-12-24  Karl Berry  <karl@gnu.org>
74275
74276         * config/config.guess: update from prep.
74277
74278 2002-12-24  Bruno Haible  <bruno@clisp.org>
74279
74280         General infrasructure.
74281         * m4/README: Rewritten.
74282         * m4/onceonly.m4: New file.
74283         * m4/onceonly_2_57.m4: New file.
74284
74285         Module atexit.
74286         * m4/atexit.m4: New file.
74287
74288         Module strtod.
74289         * m4/strtod.m4: New file.
74290
74291         Module strtol.
74292         * m4/strtol.m4: New file.
74293
74294         Module strtoul.
74295         * m4/strtoul.m4: New file.
74296
74297         Module memchr.
74298         * m4/memchr.m4: New file.
74299
74300         Module memcmp.
74301         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
74302         (jm_FUNC_MEMCMP): Invoke it.
74303
74304         Module memcpy.
74305         * m4/memcpy.m4: New file.
74306
74307         Module memmove.
74308         * m4/memmove.m4: New file.
74309
74310         Module memset.
74311         * m4/memset.m4: New file.
74312
74313         Module strcspn.
74314         * m4/strcspn.m4: New file.
74315
74316         Module strpbrk.
74317         * m4/strpbrk.m4: New file.
74318
74319         Module strstr.
74320         * m4/strstr.m4: New file.
74321
74322         Module strerror.
74323         * m4/strerror.m4: New file.
74324
74325         Module mktime.
74326         * m4/mktime.m4: Renamed from jm-mktime.m4.
74327         (gl_PREREQ_MKTIME): New macro.
74328         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
74329
74330         Module malloc.
74331         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
74332         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
74333         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
74334
74335         Module realloc.
74336         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
74337         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
74338         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
74339
74340         Module strftime.
74341         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
74342         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
74343         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
74344         gl_TM_GMTOFF.
74345         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
74346
74347         Module xalloc.
74348         * m4/xalloc.m4: New file.
74349
74350         Module alloca.
74351         * m4/alloca.m4: New file.
74352
74353         Module putenv.
74354         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
74355         (jm_FUNC_PUTENV): Invoke it.
74356
74357         Module setenv.
74358         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
74359         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
74360         when invoked twice.
74361         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
74362         gt_FUNC_SETENV.
74363
74364         Module memrchr.
74365         * m4/memrchr.m4: New file.
74366
74367         Module stpcpy.
74368         * m4/stpcpy.m4: New file.
74369
74370         Module strcase.
74371         * m4/strcase.m4: New file.
74372
74373         Module strdup.
74374         * m4/strdup.m4: New file.
74375
74376         Module strnlen.
74377         * m4/strnlen.m4: New file.
74378
74379         Module strndup.
74380         * m4/strndup.m4: New file.
74381
74382         Module xstrtod.
74383         * m4/xstrtod.m4: New file.
74384
74385         Module xstrtol.
74386         * m4/xstrtol.m4: New file.
74387
74388         Module getdate.
74389         * m4/getdate.m4: New file.
74390
74391         Module unlocked-io.
74392         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
74393         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
74394         * m4/jm-glibc-io.m4n: Remove file.
74395
74396         Module long-options.
74397         * m4/long-options.m4: New file.
74398
74399         Module md5.
74400         * m4/md5.m4: New file.
74401
74402         Module sha.
74403         * m4/sha.m4: New file.
74404
74405         Module getstr.
74406         * m4/getstr.m4: New file.
74407
74408         Module getline.
74409         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
74410         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
74411         <sys/types.h>, for size_t. Use the function name gnu_getline, not
74412         simply getline. Infoke gl_PREREQ_GETLINE.
74413
74414         Module obstack.
74415         * m4/obstack.m4: New file.
74416
74417         Module hash.
74418         * m4/hash.m4: New file.
74419
74420         Module readtokens.
74421         * m4/readtokens.m4: New file.
74422
74423         Module strverscmp.
74424         * m4/strverscmp.m4: New file.
74425
74426         Module stdbool.
74427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
74428         OSF/1.
74429
74430         Module strtoll.
74431         * m4/strtoll.m4: New file.
74432
74433         Module strtoull.
74434         * m4/strtoull.m4: New file.
74435
74436         Module strtoimax.
74437         * m4/strtoimax.m4: New file.
74438
74439         Module strtoumax.
74440         * m4/strtoumax.m4: New file.
74441
74442         Module xstrtoimax.
74443         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
74444         jm_AC_PREREQ_XSTRTOIMAX.
74445         Moved the strtol prerequisites to strtol.m4.
74446         Moved the strtoll prerequisites to strtoll.m4.
74447         Moved the strtoimax prerequisites to strtoimax.m4.
74448
74449         Module xstrtoumax.
74450         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
74451         jm_AC_PREREQ_XSTRTOUMAX.
74452         Moved the strtoul prerequisites to strtoul.m4.
74453         Moved the strtoull prerequisites to strtoull.m4.
74454         Moved the strtoumax prerequisites to strtoumax.m4.
74455
74456         Module chown.
74457         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
74458         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
74459
74460         Module dup2.
74461         * m4/dup2.m4: New file.
74462
74463         Module ftruncate.
74464         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
74465         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
74466
74467         Module getgroups.
74468         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
74469         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
74470
74471         Module gettimeofday.
74472         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
74473         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
74474         gl_PREREQ_GETTIMEOFDAY.
74475
74476         Module mkdir.
74477         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
74478         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
74479
74480         Module mkstemp.
74481         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
74482         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
74483         jm_AC_TYPE_UINTMAX_T.
74484         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
74485
74486         Module stat.
74487         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
74488         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
74489
74490         Module lstat.
74491         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
74492         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
74493
74494         Module timespec.
74495         * m4/timespec.m4 (gl_TIMESPEC): New macro.
74496         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
74497         * m4/st_mtim.m4: Indentation.
74498
74499         Module nanosleep.
74500         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
74501         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
74502         gl_PREREQ_NANOSLEEP.
74503
74504         Module regex.
74505         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
74506         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
74507         (gl_REGEX): New macro.
74508
74509         Module rename.
74510         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
74511         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
74512
74513         Module rmdir.
74514         * m4/rmdir.m4: New file.
74515
74516         Module utime.
74517         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
74518         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
74519         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
74520
74521         Module dirname.
74522         * m4/dirname.m4: New file.
74523
74524         Module getopt.
74525         * m4/getopt.m4: New file.
74526
74527         Module unistd-safer.
74528         * m4/unistd-safer.m4: New file.
74529
74530         Module fnmatch.
74531         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
74532         declaration.
74533         (gl_PREREQ_FNMATCH_EXTRA): New macro.
74534         (gl_FUNC_FNMATCH_POSIX): New macro.
74535         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
74536         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
74537         simply fnmatch.
74538
74539         Module exclude.
74540         * m4/exclude.m4: New file.
74541
74542         Module human.
74543         * m4/human.m4: New file.
74544
74545         Module acl.
74546         * m4/acl.m4: Nop.
74547
74548         Module backupfile.
74549         * m4/backupfile.m4: New file.
74550         * m4/d-ino.m4: Indentation.
74551
74552         Module fsusage.
74553         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
74554         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
74555         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
74556
74557         Module dirfd.
74558         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
74559         requirements.
74560
74561         Module euidaccess.
74562         * m4/euidaccess.m4: New file.
74563
74564         Module file-type.
74565         * m4/file-type.m4: New file.
74566
74567         Module fileblocks.
74568         * m4/fileblocks.m4: New file.
74569
74570         Module filemode.
74571         * m4/filemode.m4: New file.
74572
74573         Module isdir.
74574         * m4/isdir.m4: New file.
74575
74576         Module lchown.
74577         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
74578         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
74579
74580         Module makepath.
74581         * m4/makepath.m4: New file.
74582
74583         Module modechange.
74584         * m4/modechange.m4: New file.
74585
74586         Module mountlist.
74587         * m4/mountlist.m4: New file.
74588         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
74589         Indentation.
74590
74591         Module path-concat.
74592         * m4/path-concat.m4: New file.
74593
74594         Module pathmax.
74595         * m4/pathmax.m4: New file.
74596
74597         Module same.
74598         * m4/same.m4: New file.
74599
74600         Module save-cwd.
74601         * m4/save-cwd.m4: New file.
74602
74603         Module savedir.
74604         * m4/savedir.m4: New file.
74605
74606         Module xgetcwd.
74607         * m4/xgetcwd.m4: New file.
74608         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
74609
74610         Module xreadlink.
74611         * m4/xreadlink.m4: New file.
74612
74613         Module safe-read.
74614         * m4/safe-read.m4: New file.
74615
74616         Module safe-write.
74617         * m4/safe-write.m4: New file.
74618
74619         Module closeout.
74620         * m4/closeout.m4: New file.
74621
74622         Module stdio-safer.
74623         * m4/stdio-safer.m4: New file.
74624
74625         Module getpass.
74626         * m4/getpass.m4: New file.
74627
74628         Module getugroups.
74629         * m4/getugroups.m4: New file.
74630
74631         Module group-member.
74632         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
74633         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
74634
74635         Module idcache.
74636         * m4/idcache.m4: New file.
74637
74638         Module userspec.
74639         * m4/userspec.m4: New file.
74640
74641         Module gettime.
74642         * m4/clock_time.m4: New file.
74643         * m4/gettime.m4: New file.
74644
74645         Module settime.
74646         * m4/settime.m4: New file.
74647
74648         Module posixtm.
74649         * m4/posixtm.m4: New file.
74650
74651         Module gethostname.
74652         * m4/gethostname.m4: New file.
74653
74654         Module canon-host.
74655         * m4/canon-host.m4: New file.
74656
74657         Module gettext.
74658         * m4/codeset.m4: New file, from gettext-0.11.5.
74659         * m4/gettext.m4: New file, from gettext-0.11.5.
74660         * m4/glibc21.m4: New file, from gettext-0.11.5.
74661         * m4/iconv.m4: New file, from gettext-0.11.5.
74662         * m4/intdiv0.m4: New file, from gettext-0.11.5.
74663         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
74664         * m4/inttypes.m4: New file, from gettext-0.11.5.
74665         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
74666         * m4/isc-posix.m4: New file, from gettext-0.11.5.
74667         * m4/lcmessage.m4: New file, from gettext-0.11.5.
74668         * m4/lib-ld.m4: New file, from gettext-0.11.5.
74669         * m4/lib-link.m4: New file, from gettext-0.11.5.
74670         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
74671         * m4/progtest.m4: New file, from gettext-0.11.5.
74672         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
74673         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
74674         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
74675
74676         Module localcharset.
74677         * m4/localcharset.m4: New file.
74678
74679         Module hard-locale.
74680         * m4/hard-locale.m4: New file.
74681
74682         Module mbswidth.
74683         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
74684         onceonly macros.
74685         * m4/mbrtowc.m4: Add comment.
74686
74687         Module memcasecmp.
74688         * m4/memcasecmp.m4: New file.
74689
74690         Module memcoll.
74691         * m4/memcoll.m4: New file.
74692
74693         Module unicodeio.
74694         * m4/unicodeio.m4: New file.
74695
74696         Module rpmatch.
74697         * m4/rpmatch.m4: New file.
74698
74699         Module yesno.
74700         * m4/yesno.m4: New file.
74701
74702         Module exitfail.
74703         * m4/exitfail.m4: New file.
74704
74705         Module c-stack.
74706         * m4/c-stack.m4 (gl_C_STACK): New macro.
74707         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
74708
74709         Module error.
74710         * m4/error.m4 (gl_ERROR): New macro.
74711         (jm_PREREQ_ERROR): Use onceonly macros.
74712
74713         Module fatal.
74714         * m4/fatal.m4: New file.
74715
74716         Module getloadavg.
74717         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
74718         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
74719
74720         Module getpagesize.
74721         * m4/getpagesize.m4: New file.
74722
74723         Module getusershell.
74724         * m4/getusershell.m4: New file.
74725
74726         Module physmem.
74727         * m4/physmem.m4: New file.
74728
74729         Module posixver.
74730         * m4/posixver.m4: New file.
74731
74732         Module quotearg.
74733         * m4/quotearg.m4: New file.
74734
74735         Module quote.
74736         * m4/quote.m4: New file.
74737
74738         Module readutmp.
74739         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
74740
74741         Module sig2str.
74742         * m4/sig2str.m4: New file.
74743
74744         Other.
74745         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
74746         ulonglong.m4.
74747         * m4/intmax_t.m4: New file.
74748         * m4/d-type.m4: Indentation.
74749         * m4/jm-macros.m4: Update.
74750         * m4/prereq.m4 (jm_PREREQ): Update.
74751         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
74752         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
74753         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
74754         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
74755         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
74756         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
74757         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
74758         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
74759         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
74760         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
74761         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
74762         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
74763         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
74764         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
74765         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
74766         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
74767         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
74768         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
74769         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
74770
74771 2002-12-24  Bruno Haible  <bruno@clisp.org>
74772
74773         * MODULES.txt: Update according to m4/ changes.
74774
74775         Module gettext.
74776         * config.rpath: New file, from gettext-0.11.5.
74777
74778         * modules/*: New module descriptions.
74779         * gnulib-tool: New file.
74780         * MODULES.html.sh: New file.
74781
74782 2002-12-21  Karl Berry  <karl@gnu.org>
74783
74784         * doc/fdl.texi: update to version 1.2.
74785
74786 2002-12-19  Karl Berry  <karl@gnu.org>
74787
74788         * config/config.guess: update from prep.
74789
74790 2002-12-18  Bruno Haible  <bruno@clisp.org>
74791
74792         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
74793         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
74794
74795 2002-12-17  Bruno Haible  <bruno@clisp.org>
74796
74797         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
74798         stdlib.h, string.h.
74799
74800 2002-12-17  Bruno Haible  <bruno@clisp.org>
74801
74802         * lib/canon-host.c (strdup): Remove unused declaration.
74803
74804         * lib/fsusage.c: Include full_read.h.
74805         (get_fs_usage): Use full_read instead of safe_read.
74806
74807         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
74808
74809 2002-12-12  Karl Berry  <karl@gnu.org>
74810
74811         * config/config.guess: update from prep.
74812
74813 2002-12-11  Bruno Haible  <bruno@clisp.org>
74814
74815         * m4/setenv.m4: New file, from gettext-0.11.5.
74816
74817 2002-12-11  Bruno Haible  <bruno@clisp.org>
74818
74819         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
74820         not unsetenv().
74821         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
74822         modifications:
74823
74824         2002-12-11  Bruno Haible  <bruno@clisp.org>
74825
74826                 * setenv.c (alloca): Fall back to malloc.
74827                 (freea): New macro.
74828                 (setenv): Use freea() to free memory allocated with alloca().
74829
74830         2002-11-13  Bruno Haible  <bruno@clisp.org>
74831
74832                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
74833                 function declarations.
74834                 * unsetenv.c (unsetenv): Likewise.
74835
74836         2002-03-04  Bruno Haible  <bruno@clisp.org>
74837
74838                 Portability to AIX 4.3.3.
74839                 * unsetenv.c: New file, extracted from setenv.c.
74840                 * setenv.c: Move the unsetenv() function to unsetenv.c.
74841
74842         2001-12-20  Bruno Haible  <bruno@clisp.org>
74843
74844                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
74845                 use malloc instead. For SunOS 4.
74846
74847         2001-12-11  Bruno Haible  <bruno@clisp.org>
74848
74849                 * setenv.c: Declare alloca.
74850                 (compar_fn_t): New typedef.
74851                 (KNOWN_VALUE, STORE_VALUE): Use it.
74852
74853         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
74854         setenv.h.
74855
74856 2002-12-10  Paul Eggert  <eggert@twinsun.com>
74857
74858         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
74859         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
74860         Choose values that are less likely to collide with system fnmatch
74861         options.
74862         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
74863         defined (e.g., a pure POSIX system).
74864         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
74865         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
74866
74867 2002-12-06  Paul Eggert  <eggert@twinsun.com>
74868
74869         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
74870         a pain in practice to deal with generated m4 files.  This change
74871         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
74872
74873         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
74874         and jm-glibc-io.m4, as they are no longer a special case.
74875         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
74876         kludge and the auto-generation stuff.  Check only whether the
74877         functions are declared, not whether they exist, since older hosts
74878         that don't declare the functions can't use the optimization anyway.
74879
74880 2002-12-06  Jim Meyering  <jim@meyering.net>
74881
74882         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
74883
74884         Merge in changes from libc's misc/error.c, in preparation
74885         for the merge of gnulib's changes back into libc.
74886
74887         * lib/error.c (_): Define only if not already defined.
74888         Move definition to follow all #include directives.
74889         Include unlocked-io.h only if !_LIBC.
74890         [_LIBC]: Include <libio/libioP.h>.
74891         [USE_IN_LIBIO]: Include <libio/iolibio.h>
74892         (fflush): Tweak definition to use INTUSE.
74893         (putc): Define.
74894
74895 2002-12-05  Paul Eggert  <eggert@twinsun.com>
74896
74897         * lib/alloca.c [defined emacs]: Include "lisp.h".
74898         (xalloc_die) [defined emacs]: New macro.
74899         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
74900         [! defined emacs]: Include <xalloc.h>.
74901         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
74902         (pointer): Typedef to POINTER_TYPE *.
74903         (malloc): Remove decl; we now always use xmalloc.
74904         (alloca): Use old-style definition, since Emacs needs this.
74905         Check for arithmetic overflow when computing combined size.
74906
74907 2002-12-04  Paul Eggert  <eggert@twinsun.com>
74908
74909         Do not generate unlocked-io.h automatically, since it's easier to
74910         maintain it by hand.
74911
74912         * lib/unlocked-io.h: New file, from GNU diffutils,
74913         but with proper copyright notice and attribution.
74914         * lib/gen-uio: Remove.
74915         * lib/Makefile.am: Add copyright notice.
74916         (libfetish_a_SOURCES): Add unlocked-io.h.
74917         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
74918         (DISTCLEANFILES, io_functions): Remove macros.
74919         (EXTRA_DIST): Remove gen_uio.
74920         (unlocked-io.h): Remove rule.
74921
74922 2002-12-04  Jim Meyering  <jim@meyering.net>
74923
74924         Reflect the fact that stat.c and lstat.c are no longer generated.
74925         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
74926         (DISTCLEANFILES): Likewise.
74927         (EXTRA_DIST): Likewise.
74928         (all_local): Don't depend on stat.c or lstat.c.
74929         (stat.c, lstat.c): Remove rules.
74930         (EXTRA_DIST): Remove xstat.in.
74931
74932         * lib/xstat.in: Remove file.  Contents moved into stat.c.
74933         * lib/stat.c: New file.  Contents mostly from xstat.in.
74934         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
74935         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
74936
74937         * lib/safe-read.c: Rework so that it may serve to define safe_write,
74938         too.
74939         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
74940
74941 2002-12-03  Jim Meyering  <jim@meyering.net>
74942
74943         * lib/safe-read.c, safe-write.c: Change variable names and comments,
74944         but not semantics, to minimize the differences between these two files.
74945         (safe_read): Change comment to mention SAFE_READ_ERROR.
74946
74947         * lib/safe-read.c (IS_EINTR): Define.
74948         (safe_read): Use IS_EINTR in place of in-function cpp directives.
74949
74950 2002-12-02  Jim Meyering  <jim@meyering.net>
74951
74952         * lib/safe-read.c (EINTR): Define.
74953         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
74954         (INT_MAX): Provide fallback.
74955         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
74956
74957         * lib/safe-read.h (SAFE_READ_ERROR): Define.
74958
74959 2002-12-02  Bruno Haible  <bruno@clisp.org>
74960
74961         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
74962         Define, taken from safe-read.c.
74963         (INT_MAX): Provide fallback.
74964         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
74965         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
74966
74967         * lib/safe-read.c (EINTR): Remove definition.
74968         (safe_read): Don't use EINTR if it is absent.
74969
74970 2002-12-01  Jim Meyering  <jim@meyering.net>
74971
74972         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
74973         zero.
74974         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
74975
74976 2002-11-27  Paul Eggert  <eggert@twinsun.com>
74977
74978         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
74979         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
74980         with `if (! (value < limit)) abort ();', for readability.
74981
74982 2002-11-26  Karl Berry  <karl@gnu.org>
74983
74984         * lib/strdup.c: copy from libc again, with jim's ok.
74985         * lib/.cppi-disable: re-add strdup.c
74986
74987 2002-11-25  Karl Berry  <karl@gnu.org>
74988
74989         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
74990         instead of "strtol.c".
74991
74992 2002-11-25  Karl Berry  <karl@gnu.org>
74993
74994         * config/install-sh: update from automake for variable quoting, $0 in
74995         error msgs, etc.
74996
74997         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
74998         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
74999         entry.
75000
75001 2002-11-25  Jim Meyering  <jim@meyering.net>
75002
75003         * lib/mktime.c: Sync from libc, now that it has the latest fix.
75004
75005 2002-11-24  Karl Berry  <karl@gnu.org>
75006
75007         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
75008         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
75009
75010 2002-11-24  Jim Meyering  <jim@meyering.net>
75011
75012         Update from coreutils:
75013
75014         * lib/mktime.c: Merge in changes from libc.
75015
75016         Avoid a link-time failure on some Linux systems.
75017         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
75018         (otherwise).
75019         (__mon_yday): Declare with the STATIC attribute.
75020         (__mktime_internal): Likewise.
75021         Based on a report from Greg Schafer.
75022
75023 2002-11-23  Jim Meyering  <jim@meyering.net>
75024
75025         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
75026         Use `unsigned', not `int', as type of index.
75027
75028         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
75029
75030         * lib/fsusage.c: Remove unneeded parentheses around operands of
75031         `defined'.
75032
75033 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75034
75035         * lib/quotearg.h: Allow multiple inclusion by surrounding with
75036         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
75037         so that we can be included first.
75038         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
75039         * lib/quotearg.c: Include quotearg.h immediately after config.h.
75040         No need to include stddef.h or sys/types.h any more.
75041         Surround local include files with "", not "<>".
75042         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
75043         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
75044         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
75045         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
75046         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
75047         (ISPRINT): Remove; no longer needed now that we assume C89.
75048
75049         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
75050         Preserve errno.
75051
75052         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
75053         quotearg_char): Use SIZE_MAX rather than
75054         (size_t) -1 when we are talking about "infinity".
75055
75056         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
75057
75058 2002-11-22  Paul Eggert  <eggert@twinsun.com>
75059
75060         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
75061         hint that one should use `if (! x) abort ();' rather than `assert
75062         (x);', and anyway it's one less thing to worry about configuring.
75063         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
75064         hash_rehash, hash_insert): Use abort rather than assert.
75065
75066 2002-11-22  Bruno Haible  <bruno@clisp.org>
75067
75068         * lib/safe-read.h: Assume C89. Add comments.
75069         (safe_read): Change return type to size_t.
75070         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
75071         byte counts > SSIZE_MAX correctly.
75072         * lib/safe-write.h: New file.
75073         * lib/safe-write.c: New file.
75074         * lib/full-read.h: New file.
75075         * lib/full-read.c: New file.
75076         * lib/full-write.h: Assume C89. Add comments.
75077         * lib/full-write.c: Include safe-write.h.
75078         (full_write): Rewritten to use safe_write.
75079         Suggested by Jim Meyering and Paul Eggert.
75080
75081 2002-11-21  Jim Meyering  <jim@meyering.net>
75082
75083         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
75084
75085         Merge in changes from the coreutils.
75086
75087         2002-09-25  Paul Eggert  <eggert@twinsun.com>
75088         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
75089         <stdint.h>.
75090         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
75091         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
75092         int.  Work more efficiently if X is the same width as uintmax_t.
75093         Do not compare X to -1, to avoid bogus compiler warning.
75094         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
75095         Don't assume that f_frsize and f_bsize are the same type.
75096
75097         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
75098         warning on FreeBSD.
75099
75100         * lib/makepath.c (make_path): Restore umask *before* creating the final
75101         component.
75102         (make_path): Minor reformatting.
75103
75104         * lib/xmalloc.c: Adjust to work with new autoconf macros,
75105         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
75106         HAVE_MALLOC/HAVE_REALLOC.
75107
75108         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
75109         dummy ones.  At least on GNU/Linux systems, `auto' means something
75110         else.
75111         From Michael Stone.
75112
75113 2002-11-21  Bruno Haible  <bruno@clisp.org>
75114
75115         Remove case insensitive option matching.
75116         * lib/argmatch.h (argcasematch): Remove declaration.
75117         (ARGCASEMATCH): Remove macro.
75118         (__xargmatch_internal): Remove case_sensitive argument.
75119         (XARGMATCH): Update.
75120         (XARGCASEMATCH): Remove macro.
75121         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
75122         case_sensitive argument.
75123         (argcasematch): Remove function.
75124         (__xargmatch_internal): Remove case_sensitive argument.
75125         (main): Use XARGMATCH instead of XARGCASEMATCH.
75126
75127         * lib/xmalloc.c: Change compile-time error message. Add comment about
75128         required autoconf version.
75129
75130 2002-11-20  Paul Eggert  <eggert@twinsun.com>
75131
75132         Merge argmatch cleanups from Bison.  Assume C89.
75133
75134         * lib/argmatch.c: Include config.h here, not in argmatch.h.
75135         Include stdlib.h, for EXIT_FAILURE.
75136         Always include <string.h>, since we assume C89.
75137         (EXIT_FAILURE): Remove pre-C89 bug workaround.
75138         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
75139         Include <stddef.h> instead, since it's all we need for size_t.
75140         (PARAMS): Remove.  All uses removed.
75141         (ARRAY_CARDINALITY): Do not bother to #undef.
75142         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
75143         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75144         Remove unnecessary parentheses.
75145         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
75146         Insert necessary parentheses.
75147         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
75148         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
75149
75150 2002-11-19  Bruno Haible  <bruno@clisp.org>
75151
75152         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
75153         * lib/mbswidth.h: Include <stddef.h>, for size_t.
75154
75155         * lib/mbswidth.h (PARAMS): Remove macro.
75156         (mbswidth, mbsnwidth): Use ANSI C function declarations.
75157         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
75158
75159         * lib/gcd.h (PARAMS): Remove macro.
75160         (gcd): Use ANSI C function declarations.
75161         * lib/gcd.c (gcd): Likewise.
75162
75163 2002-11-15  Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/strcspn.c: Include <stddef.h>.
75166         (strcspn): Use ANSI C function declaration. Change return type to
75167         size_t. Use NULL.
75168         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
75169         (strpbrk): Use NULL.
75170         * lib/strpbrk.h (PARAMS): Remove macro.
75171         (strpbrk): Use ANSI C function declaration.
75172         * lib/strstr.c: Don't include <sys/types.h>.
75173         * lib/strstr.h (PARAMS): Remove macro.
75174         (strstr): Use ANSI C function declarations.
75175
75176 2002-11-14  Karl Berry  <karl@gnu.org>
75177
75178         * config/mkinstalldirs: `do' on separate line, instead of
75179         `for var; do'.
75180
75181 2002-11-06  Bruno Haible  <bruno@clisp.org>
75182
75183         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
75184         * lib/gcd.c (gcd): Likewise.
75185
75186 2002-11-05  Bruno Haible  <bruno@clisp.org>
75187
75188         * lib/gcd.h: New file, from gettext-0.11.5.
75189         * lib/gcd.c: New file, from gettext-0.11.5.
75190
75191 2002-11-05  Bruno Haible  <bruno@clisp.org>
75192
75193         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75194         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75195         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75196         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
75197
75198         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
75199         <libintl.h>.
75200         * lib/makepath.c: Include gettext.h instead of <locale.h> and
75201         <libintl.h>.
75202
75203         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
75204         * lib/human.c: Include gettext.h instead of <libintl.h>.
75205         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
75206         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
75207         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
75208         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
75209         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
75210         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
75211         (textdomain): Remove definition.
75212         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
75213
75214         * lib/long-options.c: Remove include of <libintl.h> and definition of
75215         _.
75216         * lib/same.c: Remove include of <libintl.h> and definition of _.
75217
75218 2002-11-04  Owen Taylor  <otaylor@redhat.com>
75219
75220         * lib/config.charset: A few additions for Solaris.
75221
75222 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75223
75224         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
75225         * lib/localcharset.c (locale_charset): Declare as extern "C".
75226
75227 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
75228
75229         * lib/config.charset: msdos in uk_UA uses CP1125.
75230
75231 2002-11-04  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
75234         * lib/strcase.h: New file, from GNU gettext-0.11.5.
75235         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
75236         * lib/strstr.h: New file, from GNU gettext-0.11.5.
75237         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
75238
75239 2002-11-04  Bruno Haible  <bruno@clisp.org>
75240
75241         * lib/localcharset.c (locale_charset): Don't return an empty string.
75242
75243 2002-11-04  Bruno Haible  <bruno@clisp.org>
75244
75245         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
75246         aliases.
75247
75248 2002-11-04  Bruno Haible  <bruno@clisp.org>
75249
75250         * lib/config.charset: Update for newest glibc. Add canonical names
75251         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
75252
75253 2002-11-04  Bruno Haible  <bruno@clisp.org>
75254
75255         * lib/config.charset: Add support for NetBSD.
75256
75257 2002-11-04  Bruno Haible  <bruno@clisp.org>
75258
75259         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
75260
75261 2002-11-01  Bruno Haible  <bruno@clisp.org>
75262
75263         * configure.in: Add AC_CONFIG_AUX_DIR call.
75264         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
75265         test/Makefile.
75266         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
75267
75268 2002-09-28  Karl Berry  <karl@gnu.org>
75269
75270         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
75271         installed automake until the next release, since changes have been
75272         made.
75273
75274 2002-09-25  Karl Berry  <karl@gnu.org>
75275
75276         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
75277         * lib/getopt*: copy from libc/posix.
75278         * lib/gettext.h: copy from gettext.
75279         * lib/.cppi-disable: add strdup.c, gettext.h.
75280
75281 2002-09-25  Karl Berry  <karl@gnu.org>
75282
75283         * config/srclist.txt: enable gettext.h check.
75284         * config/config.{guess,sub}: update from prep.
75285         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
75286                 from automake 1.6.3.
75287         See srclist*.
75288
75289 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
75290
75291         * regex.c (PATFETCH): Remove the translating fetch.
75292         (PATFETCH_RAW): Rename to PATFETCH.
75293         (set_image_of_range): New fun.
75294         (SET_RANGE_TABLE_WORK_AREA): Use it.
75295         (regex_compile): Don't translate the pattern chars so eagerly.
75296         Only do it when inserting an `exactn' bytecode or when handling
75297         a char-range.
75298         (mutually_exclusive_p): Avoid empty statement.
75299
75300 2002-07-06  Jim Meyering  <meyering@lucent.com>
75301
75302         * m4/README: Don't mention Makefile.am.in.
75303         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
75304
75305 2002-07-01  Jim Meyering  <meyering@lucent.com>
75306
75307         * lib/c-stack.c: Include sys/time.h.
75308         From Volker Borchert.
75309
75310 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75311
75312         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
75313
75314 2002-06-26  Paul Eggert  <eggert@twinsun.com>
75315
75316         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
75317         New macro.  Use it uniformly instead of
75318         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
75319         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
75320         reported by Vin Shelton.
75321
75322 2002-06-22  Paul Eggert  <eggert@twinsun.com>
75323
75324         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
75325         Do not assume SA_SIGINFO behavior.
75326         Bug reported by Jim Meyering on NetBSD 1.5.2.
75327
75328 2002-06-22  Jim Meyering  <meyering@lucent.com>
75329
75330         * m4/c-stack.m4: New file, from diffutils-2.8.2.
75331         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
75332
75333         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
75334         now that configure.ac uses AC_GNU_SOURCE.
75335         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
75336         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
75337
75338         Update to latest tools.  Suggestions from Paul Eggert.
75339         * m4/stdbool.m4: New file, from diffutils-2.8.2.
75340         * m4/gnu-source.m4: Update from diffutils-2.8.2.
75341         * m4/fnmatch.m4: Likewise.
75342         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
75343         to AC_HEADER_STDBOOL
75344
75345 2002-06-22  Jim Meyering  <meyering@lucent.com>
75346
75347         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
75348         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
75349
75350 2002-06-22  Jim Meyering  <meyering@lucent.com>
75351
75352         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
75353
75354         * lib/exitfail.c, exitfail.h: Likewise.
75355         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
75356
75357         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
75358         of fnmatch.h.
75359         (EXTRA_DIST): Add fnmatch_loop.c.
75360         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
75361
75362         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
75363         * lib/fnmatch.c: Update from diffutils-2.8.2.
75364         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
75365         * lib/fnmatch.h: Remove file.
75366
75367 2002-06-21  Jim Meyering  <meyering@lucent.com>
75368
75369         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
75370         * m4/mbrtowc.m4: Likewise.
75371
75372         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
75373         * m4/mbswidth.m4: Reflect name change:
75374         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
75375         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
75376
75377         * m4/lib-link.m4: Update from gettext-0.11.2.
75378         * m4/gettext.m4: Likewise.
75379
75380         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
75381         From Alfred M. Szmidt.
75382
75383 2002-06-18  Paul Eggert  <eggert@twinsun.com>
75384
75385         * lib/file-type.h: Report an error if neither S_ISREG nor
75386         S_IFREG is defined, instead of using a test specific to glibc
75387         2.2.  This should be safe, since POSIX requires S_ISREG and
75388         Unix Version 7 had S_IFREG.  We don't need to check for
75389         <sys/types.h> since we don't use any symbols that it defines.
75390
75391 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
75392
75393         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
75394         $@-t, so that each temporary file name is unique and valid in the first
75395         8 characters, for operation under DOS.
75396
75397 2002-06-15  Paul Eggert  <eggert@twinsun.com>
75398
75399         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
75400
75401 2002-06-15  Jim Meyering  <meyering@lucent.com>
75402
75403         Work even with DJGPP 2.03, which lacks support for symlinks.
75404         From Richard Dawe.
75405         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
75406         is defined.
75407         * lib/lchown.c (S_ISLNK): Likewise.
75408
75409 2002-06-15  Jim Meyering  <meyering@lucent.com>
75410
75411         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
75412         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
75413         have been included before this file.
75414
75415 2002-06-14  Jim Meyering  <meyering@lucent.com>
75416
75417         * lib/file-type.h: Use the version from diffutils-2.8.2.
75418         * lib/file-type.c: Likewise.
75419
75420 2002-06-07  Jim Meyering  <meyering@lucent.com>
75421
75422         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
75423         They're needed at least for NetBSD 1.5.2.
75424         ($statxfs_includes): Include those same headers.
75425         ($statxfs_includes): Include sys/vfs.h if available.
75426         ($statxfs_includes): Likewise for sys/statvfs.h.
75427         Check for the following members in both structs statfs and statvfs:
75428         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
75429
75430 2002-06-01  Jim Meyering  <meyering@lucent.com>
75431
75432         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
75433         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
75434
75435 2002-05-28  Jim Meyering  <meyering@lucent.com>
75436
75437         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
75438         Reported by Volker Borchert.
75439
75440 2002-05-27  Jim Meyering  <meyering@lucent.com>
75441
75442         Fix a problem seen only on nonconforming systems whereby ls.c's
75443         use of localtime, and then of gettimeofday would cause trouble:
75444         the localtime call used to initialize rpl_gettimeofday's save
75445         mechanism would clobber ls's current local time information so
75446         that in any long listing the first file would always be listed
75447         with date 1970-01-01.  Analysis by Volker Borchert.
75448
75449         * lib/gettimeofday.c (localtime): Undefine.
75450         (rpl_localtime): New function.
75451
75452 2002-05-27  Jim Meyering  <meyering@lucent.com>
75453
75454         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
75455         localtime.
75456
75457         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
75458         use the replacement function; it wouldn't resolve at link time.
75459         Reported by Volker Borchert.
75460
75461 2002-05-22  Jim Meyering  <meyering@lucent.com>
75462
75463         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
75464         file-type.h.
75465         * lib/file-type.h: New file.
75466         * lib/file-type.c (file_type): New file/function.  Extracted from
75467         diffutils.
75468
75469 2002-04-30  Jim Meyering  <meyering@lucent.com>
75470
75471         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
75472
75473 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75474
75475         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
75476
75477 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75478
75479         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
75480         Do not check for alloca.h (no longer used) or stdbool.h (was never
75481         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
75482
75483 2002-04-29  Paul Eggert  <eggert@twinsun.com>
75484
75485         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
75486
75487 2002-04-29  Jim Meyering  <meyering@lucent.com>
75488
75489         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
75490         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
75491         Use AC_FUNC_STRNLEN here instead.
75492
75493         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
75494         With autoconf-2.53a, it's part of AC_PROG_CC.
75495
75496 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75497
75498         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
75499         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
75500
75501 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75502
75503         * lib/sig2str.h, lib/sig2str.c: New files.
75504         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
75505
75506 2002-04-28  Paul Eggert  <eggert@twinsun.com>
75507
75508         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
75509         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
75510         of 127, since 64 is the largest conceivable number for ancient
75511         nonstandard hosts.
75512         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
75513
75514 2002-04-28  Jim Meyering  <meyering@lucent.com>
75515
75516         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
75517
75518 2002-04-24  Jim Meyering  <meyering@lucent.com>
75519
75520         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
75521         (jm_PREREQ): Use it.
75522
75523         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
75524         mach/mach.h fcntl.h.
75525         Check for this function: setlocale.
75526
75527 2002-04-24  Jim Meyering  <meyering@lucent.com>
75528
75529         * lib/gettext.h: New file, from Gettext.
75530         * lib/Makefile.am (INCLUDES): Remove -I../intl.
75531         (libfetish_a_SOURCES): Add gettext.h.
75532
75533 2002-04-16  Jim Meyering  <meyering@lucent.com>
75534
75535         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
75536         ut_pid, ut_id, ut_exit.
75537
75538 2002-04-16  Jim Meyering  <meyering@lucent.com>
75539
75540         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
75541         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
75542         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
75543
75544 2002-04-12  Jim Meyering  <meyering@lucent.com>
75545
75546         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
75547         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
75548         existence of the getmntinfo function.  Needed for Darwin 5.3.
75549
75550         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
75551         This is necessary at least on Darwin 5.3.
75552
75553         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
75554         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
75555         strnlen.o in the library, and that makes some versions of ranlib
75556         object.
75557
75558 2002-04-12  Jim Meyering  <meyering@lucent.com>
75559
75560         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
75561
75562 2002-04-09  Jim Meyering  <meyering@lucent.com>
75563
75564         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
75565         to be more precise.  Rather than saying we're checking whether the
75566         function `works', say what we're testing.
75567         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
75568         Reported by Bruno Haible.
75569
75570 2002-03-10  Jim Meyering  <meyering@lucent.com>
75571
75572         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
75573         Suggestion from Santiago Vila.
75574
75575 2002-03-08  Jim Meyering  <meyering@lucent.com>
75576
75577         * lib/rename.c: Mention that this wrapper is needed also on
75578         mips-dec-ultrix4.4 systems.
75579
75580 2002-03-02  Jim Meyering  <meyering@lucent.com>
75581
75582         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
75583         not HAVE_CLOCK_SETTIME.
75584
75585 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75586
75587         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
75588         Check for clock_settime.
75589
75590 2002-02-27  Paul Eggert  <eggert@twinsun.com>
75591
75592         * lib/nanosleep.h: Rename to....
75593         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
75594
75595         * lib/gettime.c: New file.
75596         * lib/settime.c: New file.
75597         * lib/stime.c: Remove.
75598
75599         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
75600         timespec.h.  Remove nanosleep.h.
75601
75602 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75603
75604         * m4/acl.m4: New file.
75605         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
75606         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
75607
75608 2002-02-25  Paul Eggert  <eggert@twinsun.com>
75609
75610         * lib/acl.c, lib/acl.h: New files.
75611         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
75612
75613 2002-02-24  Jim Meyering  <meyering@lucent.com>
75614
75615         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
75616         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
75617         cause trouble.  Reported by Nelson Beebe.
75618
75619 2002-02-23  Paul Eggert  <eggert@twinsun.com>
75620
75621         * lib/path-concat.c (xpath_concat): Reorder code to pacify
75622         compilers that don't know that xalloc_die never returns.
75623
75624 2002-02-20  Jim Meyering  <meyering@lucent.com>
75625
75626         * lib/getdate.c: Regenerate using bison-1.33.
75627
75628 2002-02-17  Jim Meyering  <meyering@lucent.com>
75629
75630         * config/config.guess (main): Don't use `head -1'; it's no longer
75631         portable. Use `sed 1q' instead.
75632
75633 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
75634
75635         * m4/codeset.m4: Upgrade to gettext-0.11.
75636         * m4/gettext.m4: Upgrade to gettext-0.11.
75637         * m4/glibc21.m4: Upgrade to gettext-0.11.
75638         * m4/iconv.m4: Upgrade to gettext-0.11.
75639         * m4/isc-posix.m4: Upgrade to gettext-0.11.
75640         * m4/lcmessage.m4: Upgrade to gettext-0.11.
75641         * m4/lib-ld.m4: New file, from gettext-0.11.
75642         * m4/lib-link.m4: New file, from gettext-0.11.
75643         * m4/lib-prefix.m4: New file, from gettext-0.11.
75644         * m4/progtest.m4: Upgrade to gettext-0.11.
75645
75646 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75647
75648         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
75649         (jm_PREREQ): Use it.
75650
75651 2002-02-15  Paul Eggert  <eggert@twinsun.com>
75652
75653         * lib/posixver.c, lib/posixver.h: New files.
75654         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75655
75656 2002-02-02  Paul Eggert  <eggert@twinsun.com>
75657             Bruno Haible  <bruno@clisp.org>
75658
75659         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
75660         (fwrite_success_callback): New declaration.
75661         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
75662         print_unicode_char. Call failure callback instead of error.
75663         (fwrite_success_callback): New function.
75664         (exit_failure_callback): New function.
75665         (fallback_failure_callback): New function.
75666         (print_unicode_char): Call unicode_to_mb.
75667
75668 2002-01-26  Jim Meyering  <meyering@lucent.com>
75669
75670         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
75671         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
75672
75673 2002-01-26  Jim Meyering  <meyering@lucent.com>
75674
75675         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
75676
75677 2002-01-22  Paul Eggert  <eggert@twinsun.com>
75678
75679         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
75680
75681 2002-01-22  Jim Meyering  <meyering@lucent.com>
75682
75683         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
75684         Otherwise, some versions of automake would omit the rule that makes
75685         Makefile from Makefile.in.
75686
75687 2002-01-21  Paul Eggert  <eggert@twinsun.com>
75688
75689         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
75690         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
75691         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
75692         (memcoll): Set errno to zero if there is no error.
75693
75694         * lib/quotearg.c (quotearg_buffer_restyled):
75695         Fix bug with quoting buffers containing NUL when backslashing escapes.
75696         This bug was exposed by the other changes in this patch.
75697         (quotearg_n_options): New arg ARGSIZE.
75698         All callers changed.
75699         (quoting_options_from_style): New function.
75700         (quotearg_n_style): Use it.
75701         (quotearg_n_style_mem): New function.
75702
75703         * lib/quotearg.h (quotearg_n_style_mem): New function.
75704
75705 2002-01-19  Jim Meyering  <meyering@lucent.com>
75706
75707         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
75708         Remove useless quotes: DF_PROG="df".
75709         * m4/strnlen.m4: New file.
75710
75711 2002-01-16  Paul Eggert  <eggert@twinsun.com>
75712
75713         * lib/backupfile.c (ISDIGIT): Comment fix.
75714         * lib/getdate.y (ISDIGIT): Likewise.
75715         * lib/posixtm.c (ISDIGIT, year): Likewise.
75716         * lib/strverscmp.c (ISDIGIT): Likewise.
75717         * lib/userspec.c (ISDIGIT): Likewise.
75718
75719 2002-01-16  Jim Meyering  <meyering@lucent.com>
75720
75721         * lib/getdate.y: Add three semicolons, each just before a closing
75722         brace. Bison (as of version 1.31) no longer papers over that mistake.
75723
75724 2002-01-05  Jim Meyering  <meyering@lucent.com>
75725
75726         * lib/version-etc.c (version_etc_copyright): Update copyright year.
75727
75728 2001-12-19  Paul Eggert  <eggert@twinsun.com>
75729
75730         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
75731         not silently exit merely because the output buffer happens to
75732         have nothing pending.
75733
75734 2001-12-18  Paul Eggert  <eggert@twinsun.com>
75735
75736         See the big note in ../ChangeLog.
75737         * lib/human.c (suffixes): Prefer K to k for 1024.
75738         (generate_suffix_backwards): New function.
75739         (human_readable_inexact): Use it.
75740         * lib/xstrtol.c (__xstrtol): If there is no number but there
75741         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
75742         Accept 'K' as well as 'k'.
75743
75744 2001-12-15  Jim Meyering  <meyering@lucent.com>
75745
75746         * lib/regex.h (__restrict_arr): Update from libc.
75747
75748         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
75749         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
75750         (STREQ): Define.
75751
75752 2001-12-14  Jim Meyering  <meyering@lucent.com>
75753
75754         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
75755         Suggestion from Bruno Haible.
75756
75757 2001-12-10  Jim Meyering  <meyering@lucent.com>
75758
75759         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
75760         xrealloc, Instead, include "xalloc.h".
75761         (initbuffer): Don't cast xmalloc return value to char*.
75762         (readline): Reword comment.
75763         Don't cast xrealloc return value to char*
75764         Return NULL, not 0.
75765
75766 2001-12-09  Jim Meyering  <meyering@lucent.com>
75767
75768         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
75769         about `signed and unsigned type in conditional expression'.
75770         * lib/posixtm.c (posix_time_parse): Likewise.
75771
75772         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
75773
75774         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
75775         to avoid a pedantic warning.
75776
75777         * lib/getstr.c: Don't include assert.h.
75778         (getstr): Remove warning-evoking assertions.
75779         Return -1 if offset parameter is out of bounds.
75780         Change the type of a local from int to size_t.
75781
75782         * lib/strftime.c (my_strftime_localtime_r): Include this function
75783         definition in the `#if ! HAVE_TM_GMTOFF' block.
75784
75785         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
75786         Include xalloc.h instead.
75787
75788 2001-12-02  Jim Meyering  <meyering@lucent.com>
75789
75790         * lib/tempname.c: Don't declare getenv, thus reverting the change of
75791         2001-11-18.  It's no longer necessary, now that stdlib.h is always
75792         included.
75793
75794         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
75795         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
75796
75797 2001-11-30  Akim Demaille  <akim@epita.fr>
75798
75799         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
75800         before being defined.
75801
75802 2001-11-27  Paul Eggert  <eggert@twinsun.com>
75803
75804         * lib/quotearg.h (quotearg_n, quotearg_n_style):
75805         First arg is int, not unsigned.
75806         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
75807         (SIZE_MAX, UINT_MAX): New macros.
75808         (quotearg_n_options): Abort if N is negative.
75809         Avoid overflow check on hosts where size_t is 64 bits and int
75810         is 32 bits, as overflow is impossible there.
75811         Fix off-by-one typo that caused unnecessary reallocation.
75812
75813 2001-11-27  Jim Meyering  <meyering@lucent.com>
75814
75815         * lib/tempname.c: Merge with version from libc.
75816         * lib/regex.c: Likewise.
75817
75818         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
75819         systems for which STDC_HEADERS is 0, it was not included, resulting in
75820         a warning about an integer-to-pointer conversion problem with getenv.
75821         Reported by Volker Borchert.
75822
75823 2001-11-26  Jim Meyering  <meyering@lucent.com>
75824
75825         * lib/gtod.h: Remove file.
75826         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
75827         * lib/gettimeofday.c: Don't include gtod.h.
75828         (GTOD_init): Remove function.
75829         (rpl_gettimeofday): Do its job here instead, rather than aborting.
75830         Suggestion from Volker Borchert.
75831
75832 2001-11-23  Jim Meyering  <meyering@lucent.com>
75833
75834         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
75835         it.
75836         * lib/hash.c (struct hash_table): Define it here instead.
75837
75838 2001-11-22  Jim Meyering  <meyering@lucent.com>
75839
75840         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
75841
75842 2001-11-20  Jim Meyering  <meyering@lucent.com>
75843
75844         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
75845         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
75846
75847 2001-11-19  Jim Meyering  <meyering@lucent.com>
75848
75849         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
75850         directory.  Use "conftestXXXXXX" as the template.
75851         Suggestion from Paul Eggert.
75852
75853         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
75854         immediately, so the test doesn't mistakenly hit the max-open-files
75855         limit.
75856
75857 2001-11-18  Paul Eggert  <eggert@twinsun.com>
75858
75859         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
75860         (TEMPORARIES): New macro.
75861         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
75862         removes an artificial limitation (e.g. HP-UX 10.20, where
75863         TMP_MAX is 17576).
75864
75865 2001-11-18  Jim Meyering  <meyering@lucent.com>
75866
75867         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
75868
75869 2001-11-18  Jim Meyering  <meyering@lucent.com>
75870
75871         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
75872         on SunOS 4.
75873
75874         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
75875         files will be created before anything else.
75876
75877 2001-11-17  Paul Eggert  <eggert@twinsun.com>
75878
75879         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
75880         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
75881
75882 2001-11-17  Jim Meyering  <meyering@lucent.com>
75883
75884         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
75885         Prompted by a report from Bob Proulx.
75886
75887         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
75888         Instead, require UTILS_FUNC_MKSTEMP.
75889
75890 2001-11-17  Jim Meyering  <meyering@lucent.com>
75891
75892         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
75893         Now, that's done as part of AC_FUNC_STRTOD.
75894
75895 2001-11-17  Jim Meyering  <meyering@lucent.com>
75896
75897         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
75898         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
75899         rather than group writable.  Patch by Juan F. Codagnone.
75900
75901         * lib/readtokens.c: Remove explicit declarations of xmalloc and
75902         xrealloc, Instead, include "xalloc.h".
75903
75904         * lib/mountlist.c: Include unlocked-io.h after all system headers.
75905         Remove explicit declarations of xmalloc, xrealloc,
75906         and xstrdup.  Instead, include "xalloc.h".
75907
75908         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
75909         unlocked-io.h.
75910         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
75911         Likewise.
75912         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
75913
75914         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
75915         Reported by Padraig Brady.
75916
75917         * lib/mkstemp.c: #undef mkstemp.
75918         Include config.h.
75919         (rpl_mkstemp): Rename from mkstemp.
75920         Protoize.
75921
75922 2001-11-16  Jim Meyering  <meyering@lucent.com>
75923
75924         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
75925         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
75926         determine the amount of total physical memory, use pstat_getstatic.
75927         HPUX-11 doesn't define _SC_PHYS_PAGES.
75928         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
75929         If sysconf couldn't be used to determine the amount of available
75930         physical memory, use both pstat_getstatic and pstat_getdynamic.
75931         Based on a patch from Bob Proulx.
75932
75933 2001-11-10  Jim Meyering  <meyering@lucent.com>
75934
75935         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
75936         (jm_PREREQ): Use it.
75937
75938 2001-11-09  Jim Meyering  <meyering@lucent.com>
75939
75940         * m4/jm-macros.m4: Require autoconf-2.52f.
75941         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
75942         Use these AC_-prefixed names, not the AM_-prefixed ones.
75943
75944         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
75945
75946 2001-11-05  Jim Meyering  <meyering@lucent.com>
75947
75948         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
75949
75950 2001-11-04  Jim Meyering  <meyering@lucent.com>
75951
75952         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
75953         $DEFS.
75954
75955 2001-11-03  Jim Meyering  <meyering@lucent.com>
75956
75957         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
75958         of AC_DEFUN.
75959
75960         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
75961         know the name of the variable in the macro definition.
75962
75963 2001-11-03  Jim Meyering  <meyering@lucent.com>
75964
75965         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
75966         in argmatch_to_argument call.
75967
75968         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
75969         argument.
75970
75971         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
75972         e.g., a fault due to an attempt to free a NULL pointer.
75973
75974 2001-11-01  Jim Meyering  <meyering@lucent.com>
75975
75976         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
75977         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
75978
75979 2001-11-01  Jim Meyering  <meyering@lucent.com>
75980
75981         * lib/dirfd.c, lib/dirfd.h: New files.
75982         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
75983
75984         * lib/hash.c (hash_print) [TESTING]: Clean up.
75985
75986 2001-10-22  Paul Eggert  <eggert@twinsun.com>
75987
75988         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
75989         to avoid a warning if -Wall.
75990
75991 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
75992
75993         * README: New file
75994         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
75995         (per RMS's instructions, this is now the canonical source)
75996         * lgpl/, gpl/: New directories.
75997
75998 2001-10-21  Paul Eggert  <eggert@twinsun.com>
75999
76000         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
76001
76002 2001-10-21  Jim Meyering  <meyering@lucent.com>
76003
76004         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
76005         this code would end up calling gettext even in packages built
76006         with --disable-nls.
76007         * lib/getopt.c (_): Likewise.
76008         * lib/regex.c (_): Likewise.
76009
76010 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76011
76012         * m4/error.m4 (jm_PREREQ_ERROR):
76013         Do not invoke AC_CHECK_FUNCS with strerror_r, as
76014         AC_FUNC_STRERROR_R does that.
76015         Check for strerror declaration.
76016
76017         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
76018         are supposed to have them these days.
76019         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
76020         Merge changes from latest Autoconf CVS.
76021         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
76022         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
76023         POSIX decided to standardize on the int flavor of strerror_r.
76024
76025 2001-10-20  Paul Eggert  <eggert@twinsun.com>
76026
76027         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
76028         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
76029         Use strerror_r that is only a macro, even if it is not a function.
76030         (strerror): Check for HAVE_DECL_STRERROR before declaring.
76031         (private_strerror): Use prototypes, not old-style function definition.
76032         (print_errno_message): New function.
76033         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
76034         char*-flavored one.
76035         (error_tail, error, error_at_line): Use it.
76036
76037 2001-10-11  Jim Meyering  <meyering@lucent.com>
76038
76039         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
76040         and quote_n (1, ... to avoid clobbering a buffer.
76041
76042 2001-10-05  Jim Meyering  <meyering@lucent.com>
76043
76044         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
76045         hash-pjw.h.
76046         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
76047         * lib/hash-pjw.h: New file.
76048
76049 2001-09-30  Jim Meyering  <meyering@lucent.com>
76050
76051         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
76052         `struct fsstat' has the `f_fstypename' member.
76053         Use that to define FS_TYPE, which is now used to make
76054         the getfsstat link test tighter.
76055
76056 2001-09-30  Jim Meyering  <meyering@lucent.com>
76057
76058         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
76059         Include <sys/ucred.h>, for Apple Darwin.
76060         Include sys/mount.h and sys/fs_types.h only if available.
76061         (FS_TYPE): Define.
76062         (read_filesystem_list): Use FS_TYPE.
76063
76064 2001-09-29  Paul Eggert  <eggert@twinsun.com>
76065
76066         * lib/exclude.c (excluded_filename): 0 -> false, since it's
76067         a boolean context.
76068
76069 2001-09-29  Jim Meyering  <meyering@lucent.com>
76070
76071         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76072         [one-argument getmntent function]): Include stdio.h before mntent.h.
76073         SunOS 4.1.x needs it for the declaration of `FILE'.
76074         Patch by Volker Borchert.
76075
76076         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
76077         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
76078         sys/fs_types.h, and make the link-test for getfsstat guard #include
76079         directives with appropriate #if HAVE_*_H tests so that we can
76080         detect getfsstat on Apple Darwin1.3.7 systems.
76081         Reported by Nelson Beebe.
76082         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
76083
76084 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76085
76086         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76087         #defines strtoimax.  Also treat the other strto* functions
76088         like strtoimax.
76089
76090         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76091         Check for strtoul and strtoumax,
76092         as those declarations are made even in the signed case.
76093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
76094         Likewise, for strtol and strtoimax.
76095
76096 2001-09-28  Paul Eggert  <eggert@twinsun.com>
76097
76098         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
76099         #defines strtoimax.  Also treat the other strto* functions
76100         like strtoimax.
76101
76102         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
76103         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
76104         (strtoimax, strtoumax): Do not declare if already defined as a macro.
76105
76106 2001-09-26  Jim Meyering  <meyering@lucent.com>
76107
76108         Most macros in unlocked-io.h had the wrong number of arguments.
76109         * lib/gen-uio: New script.
76110         (USE_UNLOCKED_IO): Define to 1 if not already defined.
76111         * lib/unlocked-io.hin: Remove file.
76112         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
76113         rather than trying to embed it here.
76114         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
76115         Reported by Padraig Brady.
76116
76117 2001-09-25  Volker Borchert  <bt@teknon.de>
76118
76119         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
76120         `result'.
76121
76122 2001-09-24  Jim Meyering  <meyering@lucent.com>
76123
76124         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
76125
76126 2001-09-23  Jim Meyering  <meyering@lucent.com>
76127
76128         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
76129         instead of the mere test for existence of mntent.h.  The latter
76130         would get a false-positive on AIX 3.4 systems.
76131         In the outer getmntent if-block, don't die if neither of the getmntent
76132         tests succeeds.  Instead, just fall through and continue with the
76133         remaining tests.
76134
76135 2001-09-23  Jim Meyering  <meyering@lucent.com>
76136
76137         * lib/mountlist.c: Remove useless parentheses in #if directives.
76138         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
76139         the deprecated MOUNTED symbol is no longer defined in mntent.h.
76140
76141 2001-09-22  Jim Meyering  <meyering@lucent.com>
76142
76143         * m4/gettext.m4: New file.  From gettext.
76144         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
76145         * m4/progtest.m4: Likewise
76146         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
76147         * m4/glibc21.m4: Likewise.
76148
76149         * m4/libintl.m4: Remove.  No longer used.
76150
76151 2001-09-22  Jim Meyering  <meyering@lucent.com>
76152
76153         * lib/localcharset.c: Update from latest gettext.
76154         * lib/config.charset: Likewise.
76155
76156 2001-09-20  Jim Meyering  <meyering@lucent.com>
76157
76158         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
76159         strtoimax.
76160         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
76161         strtoumax.
76162
76163 2001-09-20  Jim Meyering  <meyering@lucent.com>
76164
76165         * lib/xstrtol.c (strtoimax): Guard declaration with
76166         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
76167         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
76168         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
76169         (strtoumax): Likewise, for completeness (it wasn't necessary).
76170
76171 2001-09-17  Paul Eggert  <eggert@twinsun.com>
76172
76173         * lib/strtoimax.c (HAVE_LONG_LONG):
76174         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
76175         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
76176         to work around bug in IBM C compiler.
76177
76178 2001-09-17  Jim Meyering  <meyering@lucent.com>
76179
76180         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
76181         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
76182         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
76183         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
76184         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
76185         whenever the right hand side need not be expanded by the shell.
76186
76187 2001-09-16  Paul Eggert  <eggert@twinsun.com>
76188
76189         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
76190         library.  It's not correct, as some older glibcs are buggy.
76191         fnmatch wasn't fixed until glibc 2.2.
76192
76193         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
76194         special shell magic here.
76195
76196 2001-09-16  Jim Meyering  <meyering@lucent.com>
76197
76198         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
76199         * m4/jm-macros.m4: Require it.
76200
76201 2001-09-16  Jim Meyering  <meyering@lucent.com>
76202
76203         * lib/mkdir.c: New file.
76204
76205 2001-09-15  Jim Meyering  <meyering@lucent.com>
76206
76207         * m4/jm-macros.m4: Check for help2man.
76208
76209 2001-09-11  Jim Meyering  <meyering@lucent.com>
76210
76211         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
76212         The body, by Paul Eggert, was moved here from configure.in.
76213         * m4/jm-macros.m4: Require UTILS_HOST_OS.
76214
76215 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76216
76217         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
76218         (jm_PREREQ): Use it.
76219
76220 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76221
76222         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
76223         Use ssize_t, not int, to store result of readlink.
76224         Check for ssize_t overflow as well as size_t overflow,
76225         as POSIX says the result of readlink is implementation-defined
76226         when ssize_t overflows.
76227         Remove unnecessary cast to char*.
76228         Use free+malloc instead of realloc, as the storage doesn't need
76229         to be preserved and it's clearer and can be more efficient that way.
76230         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
76231         * lib/xreadlink.h (xreadlink): Update prototype.
76232
76233 2001-09-04  Paul Eggert  <eggert@twinsun.com>
76234
76235         * lib/xgetcwd.c: Revert some of the previous change; intead,
76236         fix the HAVE_GETCWD_NULL code to behave more like the
76237         !HAVE_GETCWD_NULL code used to.
76238
76239         Include "xalloc.h".
76240         (xgetcwd): Do not return NULL when memory is exhausted; instead,
76241         invoke xalloc_die.
76242
76243 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76244
76245         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
76246         sys/param.h, as pathmax.h includes them.
76247
76248 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76249
76250         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
76251         (jm_PREREQ_XGETCWD): New macro.
76252
76253         * m4/getcwd.m4: New file.
76254
76255 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76256
76257         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
76258         like the HAVE_GETCWD_NULL code.
76259         Include pathmax.h if not HAVE_GETCWD.
76260         Do not include xalloc.h.
76261         (INITIAL_BUFFER_SIZE): New symbol.
76262         Do not use xmalloc / xrealloc, since the caller is responsible for
76263         handling errors.  Preserve errno around `free' during failure.
76264         Do not overrun buffer when using getwd.
76265
76266 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76267
76268         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
76269         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
76270         getcwd (NULL, 0).
76271
76272 2001-09-03  Paul Eggert  <eggert@twinsun.com>
76273
76274         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
76275         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
76276         spotted by Jim Meyering.
76277
76278 2001-09-03  Jim Meyering  <meyering@lucent.com>
76279
76280         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
76281         failure.
76282
76283 2001-09-02  Jim Meyering  <meyering@lucent.com>
76284
76285         * lib/error.c: Update from GNU libc.
76286
76287 2001-09-01  Jim Meyering  <meyering@lucent.com>
76288
76289         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
76290         Used by df.
76291
76292 2001-09-01  Jim Meyering  <meyering@lucent.com>
76293
76294         * lib/xreadlink.c: New file.
76295         * lib/xreadlink.h: New file.
76296         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
76297         xreadlink.h.
76298
76299         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
76300         doesn't conflict with sparc Solaris 7's definition in
76301         /usr/include/sys/int_types.h.
76302
76303         * lib/exclude.c: Use `""', not `<>' to #include non-system header
76304         files.
76305         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
76306         and strncasecmp as r-values.  Unixware didn't have declarations.
76307
76308 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76309
76310         * lib/xstrtol.h: Add copyright notice.
76311         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
76312         LONGINT_INVALID_SUFFIX_CHAR.
76313
76314 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76315
76316         * lib/xstrtol.c (strtoimax): New decl.
76317
76318 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76319
76320         * lib/xgetcwd.c: Don't include pathmax.h.
76321         Include stdlib.h and unistd.h if available.
76322         Include xalloc.h.
76323         (xmalloc, xstrdup, free): Remove decls.
76324         (xgetcwd): Don't assume sizes fit in unsigned.
76325         Check for overflow when computing sizes.
76326         Simplify reallocation code.
76327
76328 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76329
76330         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
76331         a directory's st_size can have an arbitrary value, so the old
76332         usage could waste an arbitrary amount of memory.  All uses
76333         changed.
76334         * lib/savedir.h: Update prototype.
76335
76336 2001-08-31  Paul Eggert  <eggert@twinsun.com>
76337
76338         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
76339
76340         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
76341         old strtoimax.c.
76342
76343         Also, make the following further changes to make this file's
76344         configuration more similar to that of strtol.c:
76345         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
76346         (strtoumax, uintmax_t, strtoull, strtol): Remove.
76347         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
76348         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
76349         changed to signed values.
76350
76351         And make the following changes as well:
76352         Fix copyright notice, as 1999 was missing.
76353         (verify): New macro.
76354         (strtoimax): Check sizes at compile-time, not run-time.
76355         Prefer strtol to strtoll if both work.
76356         (main): Remove; it was not that useful and was a pain to maintain.
76357
76358         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
76359
76360 2001-08-31  Jim Meyering  <meyering@lucent.com>
76361
76362         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
76363         Use an initial, malloc'd, buffer of length 128 rather than
76364         a statically allocated one of length 1024.
76365
76366 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76367
76368         Simplify code, partly by assuming autoconf 2.52 semantics.
76369
76370         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
76371
76372         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
76373         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
76374         All uses removed.
76375         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
76376         Move AC_REQUIRE to next-to-top level, to avoid confusion.
76377         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
76378         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
76379         jm_AC_HEADER_INTTYPES_H.
76380         * m4/jm-macros.m4 (jm_MACROS): Likewise.
76381
76382         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
76383
76384         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
76385         Quote first arg of AC_DEFUN.
76386         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
76387         since they are needed to parse the include file even if we need
76388         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
76389         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
76390         but with opposite signedness.
76391
76392 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76393
76394         Merge 'exclude' changes from tar 1.13.22.
76395         This fixes one or two unlikely storage allocation overflow bugs,
76396         but doesn't change user-visible behavior otherwise.
76397
76398 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76399
76400         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
76401         (jm_PREREQ_EXCLUDE): New macro.
76402
76403 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76404
76405         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
76406         tm to be declared.
76407
76408 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76409
76410         * lib/hash.c: Remove '2001' from copyright notice.
76411
76412 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76413
76414         * lib/full-write.h: New file.
76415         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
76416         * lib/full-write.c: Correct credits, as cccp.c no longer
76417         exists and anyway it was so heavily changed from the old cccp
76418         code as to be unrecognizable.  Include full-write.h.
76419         (full_write) Return size_t, with short writes meaning failure.
76420         All callers changed.  This fixes a bug with large buffers
76421         on 64-bit hosts.
76422         * lib/utime.c: Include full-write.h.
76423
76424 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76425
76426         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
76427         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
76428         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
76429         Include if available.
76430         (<xalloc.h>): Include
76431         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
76432         (verify): New macro.  Use it to verify that EXCLUDE macros do not
76433         collide with FNM macros.
76434         (struct patopts): New struct.
76435         (struct exclude): Use it, as exclude patterns now come with options.
76436         (new_exclude): Support above changes.
76437         (new_exclude, add_exclude_file):
76438         Initial size must now be a power of two to simplify overflow checking.
76439         (free_exclude, fnmatch_no_wildcards): New function.
76440         (excluded_filename): No longer requires options arg, as the options
76441         are determined by add_exclude.  Now returns bool, not int.
76442         (excluded_filename, add_exclude):
76443         Add support for the fancy new exclusion options.
76444         (add_exclude, add_exclude_file): Now takes int options arg.
76445         Check for arithmetic overflow when computing sizes.
76446         (add_exclude_file): xrealloc might modify errno, so don't
76447         realloc until after errno might be used.
76448
76449         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
76450         New macros.
76451         (free_exclude): New decl.
76452         (add_exclude, add_exclude_file): Now takes int options arg.
76453         (excluded_filename): No longer requires options arg, as the options
76454         are determined by add_exclude.  Now returns bool, not int.
76455
76456 2001-08-30  Paul Eggert  <eggert@twinsun.com>
76457
76458         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
76459
76460 2001-08-27  Jim Meyering  <meyering@lucent.com>
76461
76462         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
76463
76464         * lib/version-etc.c (N_): Remove definition.
76465         Revert most of last change.
76466         Instead, simply don't mark the `Copyright...' string for translation.
76467         Based on advice from Paul Eggert.
76468
76469         * lib/strtoxmax.c: Tweak comment.
76470
76471 2001-08-26  Jim Meyering  <meyering@lucent.com>
76472
76473         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
76474
76475         * m4/xstrtoimax.m4: New file.
76476         * m4/xstrtoumax.m4: Add comments explaining why we
76477         AC_REPLACE_FUNCS(strtol).
76478
76479 2001-08-26  Jim Meyering  <meyering@lucent.com>
76480
76481         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
76482         of copyright with `%s' so translators don't get an untranslated
76483         message in 2002.
76484         (COPYRIGHT_YEAR): Define.
76485         (version_etc): Use fprintf rather than fputs.
76486         Suggestion from Ulrich Drepper.
76487
76488         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
76489
76490         * lib/strtoll.c: New file, from GNU libc.
76491         * lib/xstrtoimax.c: New file.
76492
76493         * lib/xstrtol.h: Add xstrtoimax.
76494         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
76495         * lib/strtoimax.c: New file.  Likewise, but first define
76496         STRTOUXMAX_SIGNED.
76497
76498         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
76499         ...
76500         * lib/strtoxmax.c: ... then renamed to this.
76501
76502 2001-08-18  Paul Eggert  <eggert@twinsun.com>
76503
76504         * m4/inttypes.m4: Add AC_PREREQ(2.13).
76505         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
76506         (jm_AC_TYPE_INTMAX_T): New macro.
76507         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
76508
76509         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
76510
76511         * m4/longlong.m4: Renamed from ulonglong.m4.
76512         * m4/inttypes.m4: Renamed from inttypes_h.m4.
76513         * m4/uintmax_t.m4: Removed.
76514
76515 2001-08-13  Paul Eggert  <eggert@twinsun.com>
76516
76517         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
76518         Port to Solaris 8, where 'sed' requires a space after the 'r'
76519         command, and where sh dislikes "$/".  Clean up the spacing a bit.
76520         Redirect output to $tmp just once.
76521
76522 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
76523
76524         * lib/addext.c (<errno.h>): Include.
76525         (errno): Declare if not defined.
76526         (addext): Work correctly when pathconf returns -1 and leaves
76527         errno alone because there is no limit.  Also, work even if
76528         pathconf returns a value greater than SIZE_MAX.
76529
76530 2001-08-12  Jim Meyering  <meyering@lucent.com>
76531
76532         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
76533         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
76534         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
76535         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
76536         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
76537         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
76538         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
76539         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
76540         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
76541         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
76542         utime.m4, utimes.m4, xstrtoumax.m4:
76543         Quote the first argument in each use of AC_DEFUN.
76544
76545 2001-08-12  Jim Meyering  <meyering@lucent.com>
76546
76547         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
76548         Simply `return getcwd (NULL, 0);'.
76549         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
76550         Use 1300 as initial value for length, not PATH_MAX.
76551
76552         * lib/pathmax.h: Clean up cpp syntax.
76553
76554 2001-08-12  Jim Meyering  <meyering@lucent.com>
76555
76556         * lib/gettimeofday.c: New file.
76557         * lib/gtod.h: New file.
76558         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
76559
76560 2001-08-05  Jim Meyering  <meyering@lucent.com>
76561
76562         * m4/jm-macros.m4: Require autoconf-2.52.
76563
76564 2001-08-04  Jim Meyering  <meyering@lucent.com>
76565
76566         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
76567         stmt, to get in sync with glibc.
76568
76569 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76570
76571         The following changes are from gettext 0.10.39 as maintained by
76572         Bruno Haible.
76573
76574         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
76575         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
76576         with inverted sense.  All uses changed.
76577
76578         * lib/mbswidth.c: Don't include <limits.h>.
76579         Include <stdlib.h> and <string.h> unconditionally.
76580         (iswcntrl, mbsinit, ISCNTRL): New macros.
76581         (mbsnwidth): Use K&R style function declarations.
76582         Don't bother checking for MB_LEN_MAX == 1, since the compiler
76583         can optimize it when MB_CUR_MAX == 1.
76584         The width of control characters is zero, not 1.
76585
76586 2001-08-03  Paul Eggert  <eggert@twinsun.com>
76587
76588         The following changes are from gettext 0.10.39 as maintained by
76589         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
76590
76591         * m4/codeset.m4: Upgrade to serial AM1.
76592         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
76593         all uses changed.  Quote first arg of AC_DEFUN.
76594         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
76595
76596         * m4/iconv.m4: Upgrade to serial AM2.
76597         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
76598         Add --with-libconv-prefix.
76599         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
76600         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
76601         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
76602         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
76603         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
76604
76605         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
76606         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
76607         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
76608         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
76609         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
76610         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
76611         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
76612         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
76613         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76614
76615         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
76616         string.h any more.
76617
76618         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
76619         not the default value.
76620
76621         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
76622         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
76623         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
76624         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
76625         Also check for iswcntrl, used for wcwidth fallback.
76626         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
76627         to Autoconf 2.13.
76628
76629 2001-08-03  Jim Meyering  <meyering@lucent.com>
76630
76631         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
76632         as it was in the original.  Reported by Paul Eggert.
76633
76634 2001-07-16  Jim Meyering  <meyering@lucent.com>
76635
76636         * m4/gettimeofday.m4: New file.
76637         Prompted by a report from Bernhard Baehr.
76638
76639 2001-07-15  Jim Meyering  <meyering@lucent.com>
76640
76641         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
76642         stuff. Now it's in ../Makefile.cfg.
76643
76644 2001-07-15  Jim Meyering  <meyering@lucent.com>
76645
76646         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
76647         (BUILT_SOURCES): Add unlocked-io.h.
76648         (io_functions): Define.
76649         (unlocked-io.h): New rule.
76650         (DISTCLEANFILES): Add unlocked-io.h.
76651         (all-local): Depend on unlocked-io.h, to ensure it is created.
76652
76653         * lib/unlocked-io.hin: New file
76654
76655         * lib/regex.c: Update from glibc.
76656
76657 2001-07-05  Jim Meyering  <meyering@lucent.com>
76658
76659         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
76660         recommendation.
76661         (libfetish_a_SOURCES): Put all .h files here instead.
76662         Remove a thus-exposed (better checks in automake) duplicate and
76663         two unnecessary .h files.
76664
76665 2001-07-04  Jim Meyering  <meyering@lucent.com>
76666
76667         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
76668         that generates jm-glibc-io.m4 so that it doesn't trigger any make
76669         distcheck failure.
76670
76671 2001-07-02  Jim Meyering  <meyering@lucent.com>
76672
76673         The following changes were prompted by suggestions from Bruno Haible.
76674
76675         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
76676         is now generated.
76677         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
76678         definition of EXTRA_DIST.
76679         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
76680         ensure that the generated file is created/updated whenever the list
76681         of $(unlocked_functions) is changed.
76682         (jm-glibc-io.m4): New rule.
76683         (unlocked-io.h): New rule -- currently unused.
76684
76685 2001-06-24  Jim Meyering  <meyering@lucent.com>
76686
76687         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
76688         unmatched right bracket, rather than kludging it with an extra,
76689         falsely-matching quote in a comment.  Patch by Akim Demaille.
76690
76691 2001-06-11  Jim Meyering  <meyering@lucent.com>
76692
76693         * lib/regex.c: Update from GNU libc.
76694
76695 2001-05-27  Jim Meyering  <meyering@lucent.com>
76696
76697         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
76698         Check for ut_type in struct utmp.
76699
76700 2001-05-27  Jim Meyering  <meyering@lucent.com>
76701
76702         * lib/readutmp.h (UT_TYPE): Define.
76703
76704 2001-05-24  Jim Meyering  <meyering@lucent.com>
76705
76706         * lib/argmatch.c: Include "quote.h".
76707         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
76708         quote function.  Reported by Göran Uddeborg.
76709
76710 2001-05-22  Jim Meyering  <meyering@lucent.com>
76711
76712         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
76713         now that we use the package-supplied version unconditionally.
76714         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
76715
76716 2001-05-21  Jim Meyering  <meyering@lucent.com>
76717
76718         * m4/regex.m4: Change a couple backticks to single quotes to avoid
76719         shell syntax errors.
76720
76721 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76722
76723         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
76724
76725 2001-05-20  Paul Eggert  <eggert@twinsun.com>
76726
76727         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
76728         Don't bother to check library strftime, since
76729         we'll be using our own my_strftime function anyway.
76730         Define my_strftime instead of strftime.
76731
76732 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
76733
76734         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
76735         which is not yet declared.
76736
76737 2001-05-15  Jim Meyering  <meyering@lucent.com>
76738
76739         * m4/regex.m4: Use proper quoting so brackets appear in the test
76740         program.
76741         Reported by, and with help from, Bruno Haible.
76742
76743 2001-05-13  Jim Meyering  <meyering@lucent.com>
76744
76745         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
76746         undefined.
76747
76748 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76749
76750         dirname code cleanup.  base_name now behaves more compatibly
76751         with POSIX basename when given file names that have trailing
76752         slashes, and similarly for dir_name.  Add new primitives
76753         base_len and dir_len.  Put the directory-name-related decls
76754         into dirname.h.
76755
76756         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
76757         * lib/backupfile.c (base_name): Likewise.
76758         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
76759         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
76760         * lib/makepath.c (strip_trailing_slashes): Likewise.
76761         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
76762         ISSLASH): Likewise.
76763         * lib/rename.c (strip_trailing_slashes): Likewise.
76764         * lib/same.c (base_name): Likewise.
76765         * lib/stripslash.c (ISSLASH): Likewise.
76766
76767         * lib/addext.c: Include <dirname.h> after size_t is defined.
76768         * lib/backupfile.c: Likewise.
76769
76770         * lib/addext.c (addext): Use base_len to trim redundant
76771         trailing slashes instead of doing it ourselves.
76772         But do not trim the last slash if it is not redundant.
76773
76774         * lib/backupfile.c (find_backup_file_name,
76775         max_backup_version): Use base_len instead of rolling it ourselves.
76776         Handle the case of "" and (on DOS) "C:" correctly.
76777
76778         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
76779         needed. Include <string.h>, <dirname.h>.
76780         (base_name): Allow file names ending in slashes, other than names
76781         that are all slashes.  In this case, return the basename followed
76782         by the slashes.  This is more general, and can be used in places
76783         where the original base_name purposely had an assertion failure.
76784         (base_len): New function.
76785
76786         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
76787         Do not include <assert.h>; no longer needed.
76788         Include xalloc.h.
76789         (memrchr): Remove decl.
76790         (dir_name_r): Remove.
76791         (dir_len): Renamed from dirlen.  All callers changed.
76792         Rewrite in terms of base_name, for simplicity and consistency.
76793         (dir_name): Never return NULL.  All callers changed.
76794         Do not include <stdlib.h> in test program; no longer needed.
76795         return 0; is fine for test program.
76796
76797         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
76798         New macros.
76799         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
76800
76801         * lib/path-concat.c (path_concat): Use base_len to compute
76802         base length, not strlen; this means we cannot rely on memcpy
76803         to null-terminate.
76804
76805         * lib/same.c (STREQ): Remove.
76806         (same_name): Handle the case where the basename ends in trailing '/'.
76807
76808         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
76809         a slash was stripped.  Do not strip the last slash after a
76810         file system prefix.
76811
76812 2001-05-11  Paul Eggert  <eggert@twinsun.com>
76813
76814         * lib/Makefile.am (libfetish_a_SOURCES):
76815         Add strftime.c, since we now compile it on all hosts.
76816
76817         * lib/strftime.c (my_strftime):
76818         Define to nstrftime if emacs, but only if my_strftime is not defined.
76819         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
76820         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
76821         Add one more extra argument: a nanoseconds value.
76822         All uses changed.
76823         (ns): New macro.
76824         (my_strftime function): Add %N format.
76825         (emacs_strftimeu): Renamed from emacs_strftime,
76826         with extra ut argument.
76827
76828 2001-05-09  Paul Eggert  <eggert@twinsun.com>
76829
76830         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
76831
76832 2001-04-21  Jim Meyering  <meyering@lucent.com>
76833
76834         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
76835         doesn't interfere.
76836
76837 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
76838
76839         * m4/ftruncate.m4: Check for chsize.
76840         Link with ftruncate.o unconditionally if ftruncate is missing.
76841         This was required when cross-compiling to i586-mingw32msvc.
76842
76843 2001-04-08  Jim Meyering  <meyering@lucent.com>
76844
76845         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
76846         recomputed; that's necessary when the offset spans a DST transition.
76847         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
76848
76849 2001-04-02  Jim Meyering  <meyering@lucent.com>
76850
76851         * lib/regex.h, regex.c: Update from GNU libc.
76852
76853 2001-03-24  Jim Meyering  <meyering@lucent.com>
76854
76855         * m4/jm-macros.m4: Require autoconf-2.49d.
76856
76857 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
76858
76859         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
76860
76861 2001-03-19  Paul Eggert  <eggert@twinsun.com>
76862
76863         * lib/version-etc.c (version_etc_copyright): Update to 2001.
76864
76865 2001-03-17  Jim Meyering  <meyering@lucent.com>
76866
76867         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
76868         now that the version in autoconf is equivalent.
76869         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
76870
76871         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
76872         Suggestion from Akim Demaille.
76873
76874         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
76875         (jm_PREREQ_TEMPNAME): New function.
76876
76877 2001-03-16  Paul Eggert  <eggert@twinsun.com>
76878
76879         * lib/tempname.c (uint64_t): Define to uintmax_t if
76880         not defined, and if UINT64_MAX is not defined.
76881         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
76882         Reported by John David Anglin.
76883
76884 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
76885
76886         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
76887         resolve alias if codeset is empty.
76888         * lib/config.charset (BeOS): Use wildcard syntax.
76889
76890 2001-03-13  Jim Meyering  <meyering@lucent.com>
76891
76892         * lib/path-concat.c (path_concat)
76893         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
76894         concatenating e.g., `C:' and `foo'.
76895         From Bruno Haible.
76896
76897 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76898
76899         * lib/localcharset.c (locale_charset): Don't use
76900         setlocale(LC_CTYPE,NULL). Don't return NULL.
76901         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
76902
76903 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
76904
76905         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
76906         support for DOS/DJGPP.
76907
76908 2001-03-01  Paul Eggert  <eggert@twinsun.com>
76909
76910         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
76911         lacks mkstemp.  Compile our own tempname.c if we compile our own
76912         mkstemp.c, as mkstemp relies on tempname.
76913
76914 2001-03-01  Jim Meyering  <meyering@lucent.com>
76915
76916         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
76917         AH_VERBATIM really does output its argument verbatim.
76918
76919 2001-02-28  Paul Eggert  <eggert@twinsun.com>
76920
76921         * lib/Makefile.am (libfetish_a_SOURCES):
76922         Add dup-safer.c, fopen-safer.c.
76923         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
76924
76925         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
76926         * lib/unistd-safer.h: New files.
76927
76928 2001-02-25  Paul Eggert  <eggert@twinsun.com>
76929
76930         The mkstemp replacement is taken from glibc 2.2.2, with some
76931         portability fixes for use outside glibc, as follows:
76932
76933         * lib/tempname.c (struct_stat64): New macro.
76934         (direxists, __gen_tempname): Use it.
76935         This avoids a portability problem with Solaris 8.
76936
76937         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
76938         (<stddef.h>, <stdint.h>, <string.h>):
76939         Include only if STDC_HEADERS || _LIBC.
76940         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
76941         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
76942         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
76943         (__set_errno): Define this macro if <errno.h> doesn't.
76944         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
76945         Define these macros if <stdio.h> doesn't.
76946         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
76947         Define these macros if <sys/stat.h>
76948         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
76949         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
76950         __xstat64): Define if not _LIBC.
76951         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
76952         (__gen_tempname): Invoke gettimeofday only if
76953         HAVE_GETTIMEOFDAY || _LIBC;
76954         otherwise, fall back on plain "time".
76955         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
76956
76957         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
76958
76959         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
76960
76961 2001-02-18  Paul Eggert  <eggert@twinsun.com>
76962
76963         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
76964
76965 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76966
76967         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
76968         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
76969         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
76970         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76971
76972 2001-02-17  Paul Eggert  <eggert@twinsun.com>
76973
76974         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
76975         Remove workaround macros for hosts that have mbrtowc but not
76976         mbstate_t, as we now insist on proper declarations for both
76977         before using mbrtowc.
76978
76979 2001-02-17  Jim Meyering  <meyering@lucent.com>
76980
76981         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
76982         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
76983         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
76984         UnixWare 7.1.1.
76985
76986         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
76987         rather than AC_CACHE_VAL.
76988
76989 2001-02-17  Jim Meyering  <meyering@lucent.com>
76990
76991         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
76992         around included file name.
76993
76994         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
76995
76996         * lib/strftime.c: Update from GNU libc (the only changes were to
76997         comments).
76998
76999 2001-02-17  Jim Meyering  <meyering@lucent.com>
77000
77001         * lib/regex.c: Update from libc.
77002
77003 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
77004
77005         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
77006         clash.
77007
77008 2001-02-16  Paul Eggert  <eggert@twinsun.com>
77009
77010         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
77011         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
77012         Reported by Mark Hounschell via Paul Eggert.
77013
77014 2001-02-07  Jim Meyering  <meyering@lucent.com>
77015
77016         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
77017
77018 2001-02-05  Jim Meyering  <meyering@lucent.com>
77019
77020         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
77021         it includes the patch required for `large file' support with at least
77022         HP-UX's 10.20 /bin/cc.
77023
77024 2001-02-03  Jim Meyering  <meyering@lucent.com>
77025
77026         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
77027         AS_IF, now that it works once again (mysteriously).
77028         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77029
77030 2001-01-30  Jim Meyering  <meyering@lucent.com>
77031
77032         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
77033         * m4/chown.m4: Rename conftestchown to conftest.chown.
77034         * m4/rename.m4: s/conftestdir/conftest.d1/ and
77035         s/conftestdir2/conftest.d2/.
77036         * m4/utimes.m4: s/conftestdata/conftest.data/
77037         Inspired by Pavel Roskin's change in autoconf.
77038
77039 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
77040
77041         * lib/config.charset: Update for FreeBSD 4.2.
77042
77043 2001-01-27  Jim Meyering  <meyering@lucent.com>
77044
77045         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
77046         a use of AS_IF.
77047         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
77048
77049 2001-01-26  Jim Meyering  <meyering@lucent.com>
77050
77051         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
77052         quotearg.c includes it.
77053
77054 2001-01-26  Jim Meyering  <meyering@lucent.com>
77055
77056         * lib/quotearg.c: Include stddef.h.
77057         * lib/quote.c: Include stddef.h.
77058         Reported by Axel Kittenberger.
77059
77060         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
77061         line in double quotes so that it evokes a better diagnostic.
77062         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
77063         Reported by Axel Kittenberger.
77064
77065 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
77066
77067         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
77068         as if it was a `charset'.
77069
77070 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77071
77072         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
77073         has const.
77074
77075 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
77076
77077         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
77078         to avoid a warning.  Add back 'const' to inptr.
77079
77080 2001-01-20  Jim Meyering  <meyering@lucent.com>
77081
77082         Be sure that headers are checked before used in code compiled
77083         for the type checks.
77084         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
77085         In place of that, invoke jm_CHECK_ALL_TYPES.
77086         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
77087         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
77088         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
77089         The check for ssize_t was mistakenly run before the test for unistd.h.
77090
77091         The configure-time check for stdbool.h was missing.
77092         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
77093         (jm_PREREQ_HASH): New function.
77094
77095 2001-01-17  Jim Meyering  <meyering@lucent.com>
77096
77097         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
77098         for autoconf-2.49c.
77099         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
77100
77101 2001-01-16  Jim Meyering  <meyering@lucent.com>
77102
77103         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
77104         From Bruno Haible.
77105
77106 2001-01-14  Jim Meyering  <meyering@lucent.com>
77107
77108         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
77109         foo and bar.  Create conftestdir/ in the script, not in the C code.
77110         Remove directories in the script, not in the C code.
77111         Remove conftestdir{,2} before trying to create the directory.
77112         Make the entire configure script fail if the mkdir fails.
77113
77114 2001-01-14  Jim Meyering  <meyering@lucent.com>
77115
77116         * lib/rename.c: New file.  From Volker Borchert.
77117         Include stdlib.h, string.h or strings.h, and xalloc.h.
77118         Use strip_trailing_slashes rather than open-coding it.
77119
77120 2001-01-03  Paul Eggert  <eggert@twinsun.com>
77121
77122         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
77123
77124 2001-01-03  Jim Meyering  <meyering@lucent.com>
77125
77126         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
77127         of local `inptr' to avoid warning with some system declarations of
77128         iconv.
77129
77130 2001-01-02  Volker Borchert  <bt@teknon.de>
77131
77132         * m4/rename.m4: New file.
77133         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
77134
77135 2001-01-01  Jim Meyering  <meyering@lucent.com>
77136
77137         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
77138         even on systems with utmpx.h.  It's necessary for the declaration of
77139         utmp's ut_user member.  Reported by Andreas Jaeger.
77140
77141         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
77142         available. They are required for the declarations of getgrgid and
77143         getpwuid resp.
77144         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
77145         Reported by Andreas Jaeger.
77146
77147 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
77148
77149         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
77150         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
77151         so `make install' also works in VPATH builds.
77152
77153 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
77154
77155         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
77156         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
77157         can be used in subdirectories.
77158
77159 2000-12-29  Paul Eggert  <eggert@twinsun.com>
77160
77161         * lib/modechange.c: Do not assume that mode_t uses the
77162         traditional octal encoding.  E.g. "chmod 1 FOO" should set
77163         the other-execute bit of FOO even if S_IXOTH != 1.
77164
77165         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
77166         WOTH, XOTH, ALLM): New macros.
77167         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
77168          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
77169         Use them.
77170         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
77171         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
77172         (mode_compile):
77173         No need to use uintmax_t; unsigned long is long enough.
77174         Don't bother to get suffix since we don't use it.
77175
77176 2000-12-26  Jim Meyering  <meyering@lucent.com>
77177
77178         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
77179         better with autoheader.
77180
77181 2000-12-24  Jim Meyering  <meyering@lucent.com>
77182
77183         * lib/hash.c (is_prime): Return explicit boolean values.
77184         (hash_get_first): Return NULL to appease Irix5.6's 89.
77185         Reported by Nelson Beebe.
77186
77187 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
77188
77189         * lib/localcharset.c (locale_charset): Add support for Win32.
77190
77191 2000-12-18  Paul Eggert  <eggert@twinsun.com>
77192
77193         * lib/physmem.h, lib/physmem.c: New files.
77194
77195         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
77196         (noinst_HEADERS): Add physmem.h.
77197
77198         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
77199         't' for compatibility with Solaris 8 sort.
77200
77201 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
77202
77203         * lib/config.charset: Add support for BeOS.
77204
77205 2000-12-17  Jim Meyering  <meyering@lucent.com>
77206
77207         * m4/dos.m4 (jm_AC_DOS): New file and macro.
77208         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
77209
77210 2000-12-16  Jim Meyering  <meyering@lucent.com>
77211
77212         This bug had a serious impact on chown: `chown N:M FILE' (for integer
77213         N and M) would have treated it like `chown N:N FILE'.
77214
77215         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
77216
77217 2000-12-16  Jim Meyering  <meyering@lucent.com>
77218
77219         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
77220         SHELLS_FILE to a file name that's useful on djgpp systems.
77221         Include stdlib.h.
77222         (ADDITIONAL_DEFAULT_SHELLS): Define.
77223         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
77224         Based mostly on a patch from Prashant TR.
77225
77226 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
77227
77228         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
77229         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
77230         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
77231
77232 2000-12-08  Andreas Schwab  <schwab@suse.de>
77233
77234         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
77235         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
77236
77237 2000-12-07  Jim Meyering  <meyering@lucent.com>
77238
77239         * lib/stripslash.c (ISSLASH): Define.
77240         (strip_trailing_slashes): Use ISSLASH rather than comparing against
77241         `/'.
77242         From Prashant TR.
77243
77244         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
77245         (dir_name_r): Declare this function as static.
77246         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
77247         manifest itself on a name containing a mix of slashes and
77248         backslashes.
77249         Make this function work with names starting with a DOS-style
77250         drive letter and colon prefix.
77251         (dir_name): Append `.' if necessary.
77252         Based mostly on patches from Prashant TR and Eli Zaretskii.
77253
77254         * lib/dirname.h (dir_name_r): Remove prototype.
77255
77256 2000-12-06  Paul Eggert  <eggert@twinsun.com>
77257
77258         * m4/off_t-format.m4: Remove this file.
77259         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
77260
77261 2000-12-06  Jim Meyering  <meyering@lucent.com>
77262
77263         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
77264         replacement strtoull, we may well need the replacement strtoul, too.
77265         Check for declarations of strtoul and strtoull.
77266         Check for strtol.  Mainly as a cue to cause automake to include
77267         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
77268         Check for limits.h -- strtol.c needs it.
77269
77270 2000-12-05  Jim Meyering  <meyering@lucent.com>
77271
77272         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
77273
77274 2000-12-04  Jim Meyering  <meyering@lucent.com>
77275
77276         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
77277         Also include memory.h, stdlib.h, unistd.h if appropriate.
77278         Reported by Andreas Jaeger (conflicting declaration of malloc).
77279
77280 2000-12-02  Jim Meyering  <meyering@lucent.com>
77281
77282         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
77283         * m4/jm-macros.m4 (jm_MACROS): require it.
77284
77285 2000-12-02  Jim Meyering  <meyering@lucent.com>
77286
77287         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
77288
77289 2000-12-01  Paul Eggert  <eggert@twinsun.com>
77290
77291         * lib/memrchr.c: Include <config.h> before any system include file.
77292
77293 2000-11-30  Jim Meyering  <meyering@lucent.com>
77294
77295         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
77296
77297 2000-11-30  Jim Meyering  <meyering@lucent.com>
77298
77299         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
77300
77301 2000-11-29  Paul Eggert  <eggert@twinsun.com>
77302
77303         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
77304
77305 2000-11-26  Jim Meyering  <meyering@lucent.com>
77306
77307         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
77308
77309 2000-11-22  Paul Eggert  <eggert@twinsun.com>
77310
77311         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
77312         size of (size_t) -1; it's not portable.
77313
77314 2000-11-17  Jim Meyering  <meyering@lucent.com>
77315
77316         * lib/strstr.c: Update from GNU libc.
77317
77318 2000-11-17  Akim Demaille  <akim@epita.fr>
77319
77320         * lib/obstack.h: Formatting changes.
77321         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
77322         prevent type checking.
77323         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
77324         cast the value to (void *): assigning a `foo *' to a `void *'
77325         variable is valid.
77326         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
77327
77328 2000-11-16  Jim Meyering  <meyering@lucent.com>
77329
77330         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
77331
77332 2000-11-11  Jim Meyering  <meyering@lucent.com>
77333
77334         * lib/error.c: Add a couple #includes, merging from GNU libc version.
77335
77336 2000-11-10  Jim Meyering  <meyering@lucent.com>
77337
77338         * lib/obstack.h: Update from GNU libc.
77339         * lib/obstack.c: Likewise.
77340
77341 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
77342
77343         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
77344
77345 2000-11-06  Paul Eggert  <eggert@twinsun.com>
77346
77347         * lib/getusershell.c (setusershell): Use rewind rather than
77348         fseek/fseeko, to avoid configuration hassles with fseeko.
77349         Don't bother opening SHELLS_FILE if shellstream is NULL;
77350         it's not necessary.
77351
77352 2000-11-05  Jim Meyering  <meyering@lucent.com>
77353
77354         * lib/makepath.h (make_dir): Declare.
77355         * lib/makepath.c (make_dir): Remove `static' attribute.
77356         Tweak a comment.
77357
77358 2000-11-04  Jim Meyering  <meyering@lucent.com>
77359
77360         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
77361
77362 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
77363
77364         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
77365         last one in a bucket, advance to the next bucket.
77366
77367 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
77368
77369         * lib/fnmatch.c: Do not comment out all the code if we are using
77370         the GNU C library, because in some cases we are replacing buggy
77371         code in the GNU C library itself.
77372
77373 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
77374
77375         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
77376         (regex_compile): Catch bogus \(\1\).
77377
77378 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77379
77380         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
77381         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
77382         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
77383
77384 2000-10-30  Paul Eggert  <eggert@twinsun.com>
77385
77386         * lib/error.h, getline.h, modechange.h:
77387         Remove "2000" from Copyright line, as the file hasn't been
77388         changed this year other than in the copyright notice.
77389
77390         * lib/xalloc.h: Add "2000" to Copyright line, as this file
77391         was changed this year.
77392
77393 2000-10-29  Jim Meyering  <meyering@lucent.com>
77394
77395         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
77396         renaming.
77397         * m4/ls-mntd-fs.m4: Likewise
77398
77399 2000-10-29  Jim Meyering  <meyering@lucent.com>
77400
77401         * lib/xstat.in: Fix grammar in comment.
77402
77403 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
77404
77405         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
77406         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
77407         doesn't define __restrict_arr.
77408
77409 2000-10-28  Jim Meyering  <meyering@lucent.com>
77410
77411         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
77412         (jm_PREREQ_MEMCHR): New function.
77413
77414 2000-10-28  Jim Meyering  <meyering@lucent.com>
77415
77416         * lib/memchr.c: Update from libc.
77417         Adjust for portability:
77418         [HAVE_STDLIB_H]: Include stdlib.h.
77419         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
77420         Undef __memchr, too.
77421         [!weak_alias]: Define __memchr to memchr.
77422
77423         * lib/regex.c: Update from libc.
77424         * lib/regex.h: Likewise.
77425         * lib/getopt1.c: Likewise.
77426         * lib/memcmp.c: Likewise.
77427
77428         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
77429         Avoid using fseek, when possible -- it's broken by design.
77430         Patch by Ulrich Drepper.
77431
77432 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
77433
77434         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
77435         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
77436         Giving in to popular pressure to shut up the compiler with casts.
77437
77438 2000-10-26  Jim Meyering  <meyering@lucent.com>
77439
77440         * lib/strftime.c: Update from libc.
77441
77442 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
77443
77444         * regex.c: More `unsigned char' -> `re_char' changes.
77445         Also change several `int' into `re_wchar_t'.
77446         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
77447         (PUSH_FAILURE_POINTER): Don't cast any more.
77448         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
77449         We want GCC to complain, since this piece of code makes
77450         re_match non-reentrant, which *should* be fixed.
77451         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
77452         (EXTEND_BUFFER): Use RETALLOC.
77453         (SET_LIST_BIT): Don't cast.
77454         (re_wchar_t): New type.
77455         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
77456         that those two functions will always properly return.
77457         (IMMEDIATE_QUIT_CHECK): Cast to void.
77458         (analyse_first): Use recursion rather than an explicit stack.
77459         (re_compile_fastmap): Can't fail anymore.
77460         (re_search_2): Don't check re_compile_fastmap for failure.
77461         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
77462         Now also sets the new value (passed in a new argument).
77463         (re_match_2_internal): Use it.
77464         Also, use a new var `reg' of type size_t when looping through regs
77465         rather than reuse the inappropriate `mcnt'.
77466
77467 2000-10-25  Jim Meyering  <meyering@lucent.com>
77468
77469         * lib/obstack.c: Update from libc.
77470
77471 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
77472
77473         * regex.c (regex_compile): Change the way of handling a range from
77474         a char less than 256 to a char not less than 256.
77475
77476 2000-10-24  Andrew Innes  <andrewi@gnu.org>
77477
77478         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
77479         NT-Emacs only.
77480         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
77481         so that re_search functions only quit when callers expect them to.
77482
77483 2000-10-23  Jim Meyering  <meyering@lucent.com>
77484
77485         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
77486         wrong.  That set_locale call must not have any side effects.
77487         From Paul Eggert.
77488
77489 2000-10-22  Jim Meyering  <meyering@lucent.com>
77490
77491         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
77492         [CYCLIC]: Remove now-unused definition.
77493
77494         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
77495         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
77496         Suggestion from Ulrich Drepper.
77497
77498 2000-10-21  Jim Meyering  <meyering@lucent.com>
77499
77500         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
77501         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
77502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
77503
77504 2000-10-21  Jim Meyering  <meyering@lucent.com>
77505
77506         * lib/dirname.c (memrchr): Declare if necessary.
77507         (dir_name): Remove the restriction that there be no
77508         trailing slashes.  Now, this code skips past them, effectively
77509         ignoring them.
77510         [TEST_DIRNAME] (main): New unit tests.
77511
77512         * lib/memrchr.c: New file from GNU libc.
77513         Undef __memrchr, too.
77514         [!weak_alias]: Define __memrchr to memrchr.
77515         Guard weak_alias use with `#ifdef weak_alias'.
77516
77517 2000-10-21  Jim Meyering  <meyering@lucent.com>
77518
77519         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
77520         (dir_name): Use dir_name_r.
77521         * lib/dirname.h (dir_name_r): Declare it.
77522
77523 2000-10-17  Jim Meyering  <meyering@lucent.com>
77524
77525         * lib/quote.h (PARAMS): Define and use.
77526         Reported by Akim Demaille.
77527
77528         * lib/getopt.c: Update from libc.
77529
77530 2000-10-16  Jim Meyering  <meyering@lucent.com>
77531
77532         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
77533         setlocale.
77534         From Jan Fedak.
77535
77536 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
77537
77538         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
77539
77540 2000-09-25  Jim Meyering  <meyering@lucent.com>
77541
77542         * lib/md5.h (rol): Define (from GnuPG).
77543
77544         * lib/sha.c: Give credit (GnuPG) where due.
77545         (M): Use rol rather than open-coding it.
77546         Add a FIXME comment.
77547
77548 2000-09-21  Jim Meyering  <meyering@lucent.com>
77549
77550         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
77551         Reported by Michael Stone.
77552
77553 2000-09-20  Jim Meyering  <meyering@lucent.com>
77554
77555         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
77556         (noinst_HEADERS): Add sha.h.
77557         Based on code from Scott G. Miller and from GnuPG.
77558
77559 2000-09-18  Jim Meyering  <meyering@lucent.com>
77560
77561         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
77562         LIBS. Otherwise, everyone ends up linking with -lelf for some
77563         configurations.
77564         Reported by Mike Stone.
77565
77566 2000-09-15  Jim Meyering  <meyering@lucent.com>
77567
77568         * lib/regex.c: Update from libc.
77569
77570 2000-09-10  Jim Meyering  <meyering@lucent.com>
77571
77572         * lib/getopt.c (_getopt_internal): Update from glibc.
77573
77574 2000-09-09  Jim Meyering  <meyering@lucent.com>
77575
77576         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
77577         think it should be used as a general replacement for isascii.
77578         * lib/fnmatch.c: Likewise.
77579         * lib/mbswidth.c: Likewise
77580         * lib/regex.c: Likewise.
77581
77582         Don't use atoi.
77583         * lib/userspec.c: Include sys/param.h and limits.h.
77584         Include xstrtol.h.
77585         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
77586         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
77587         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
77588         UID, GID.  Check range.
77589
77590 2000-09-06  Jim Meyering  <meyering@lucent.com>
77591
77592         * lib/getopt.c (_getopt_internal): Update from glibc.
77593
77594 2000-08-30  Jim Meyering  <meyering@lucent.com>
77595
77596         * lib/strftime.c: Merge in changes from GNU libc.
77597
77598 2000-08-26  Jim Meyering  <meyering@lucent.com>
77599
77600         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
77601         * m4/fpending.m4: New file.
77602
77603 2000-08-26  Jim Meyering  <meyering@lucent.com>
77604
77605         * lib/closeout.c: Include "__fpending.h".
77606         (close_stdout_status): Return right away if there's nothing to flush.
77607
77608         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
77609         * lib/__fpending.c: New file.
77610         * lib/__fpending.h: New file.
77611
77612 2000-08-20  Jim Meyering  <meyering@lucent.com>
77613
77614         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
77615         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
77616         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
77617
77618 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
77619
77620         Improve fileutils installation on systems where running
77621         programs (like install) can't be unlinked.
77622         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
77623         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
77624
77625 2000-08-07  Paul Eggert  <eggert@twinsun.com>
77626
77627         Standardize on "memory exhausted" instead of "Memory exhausted"
77628         or "virtual memory exhausted".
77629         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
77630         "virtual memory exhausted".
77631         * lib/same.c (same_name): Invoke xalloc_die instead of printing
77632         our own message.
77633         * lib/userspec.c (parse_user_spec): Likewise.
77634         * lib/bumpalloc.h: comment fix
77635         * lib/same.c, userspec.c: Include xalloc.h.
77636
77637         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
77638         not char *const and pointing to a constant array.
77639         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
77640         (xrealloc): Comment fix.
77641
77642         * lib/userspec.c (parse_user_spec):
77643         Don't translate a message until just before returning,
77644         to avoid unnecessary translation.
77645
77646 2000-08-07  Jim Meyering  <meyering@lucent.com>
77647
77648         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
77649         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
77650         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
77651         getgroups.c, gethostname.c, getopt.h, group-member.c,
77652         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
77653         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
77654         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
77655         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
77656         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
77657         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
77658         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
77659         yesno.c: Back out Copyright date changes for each file with no change
77660         this year.  This eases coordination with other programs using the same
77661         source code modules.  From Paul Eggert.
77662
77663 2000-08-06  Paul Eggert  <eggert@twinsun.com>
77664
77665         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
77666         not char, for compatibility with glibc 2.1.3 strftime.c.
77667
77668 2000-08-03  Greg McGary  <greg@mcgary.org>
77669
77670         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
77671         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
77672         (EXTEND_BUFFER): Use them.
77673
77674 2000-08-01  Jim Meyering  <meyering@lucent.com>
77675
77676         * lib/dirname.c (ISSLASH): Define.
77677         (BACKSLASH_IS_PATH_SEPARATOR): Define.
77678         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
77679         both `\' and `/' may be use as path separators.
77680         Based on a patch from Prashant TR.
77681
77682 2000-07-31  Paul Eggert  <eggert@twinsun.com>
77683
77684         * lib/quotearg.c (quotearg_n_options): Don't make the initial
77685         slot vector a constant, since it might get modified.
77686
77687 2000-07-31  Jim Meyering  <meyering@lucent.com>
77688
77689         * lib/xmalloc.c: Use `virtual memory exhausted', not
77690         `Memory exhausted'.
77691         * lib/obstack.c (print_and_abort): Likewise.
77692
77693 2000-07-30  Paul Eggert  <eggert@twinsun.com>
77694
77695         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
77696         buffer, so that the caller can always quote one small
77697         component of a "memory exhausted" message in slot 0.
77698         From a suggestion by Jim Meyering.
77699
77700 2000-07-30  Jim Meyering  <meyering@lucent.com>
77701
77702         * lib/makepath.c (make_path): Quote the other instance, too.
77703
77704         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
77705         (STATIC_BUF_SIZE): Define.
77706         (quotearg_n_options): Use only statically allocated storage when
77707         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
77708         than STATIC_BUF_SIZE.
77709
77710 2000-07-29  Jim Meyering  <meyering@lucent.com>
77711
77712         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
77713         * lib/dirname.c (dir_name): Likewise.
77714
77715         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
77716         `/'.
77717
77718         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
77719         (dir_name): Assert that there are no trailing slashes.
77720
77721 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
77722
77723         * lib/mbswidth.h (mbswidth): Add a flags argument.
77724         (mbswidth): New declaration.
77725         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
77726         * lib/mbswidth.c (mbswidth): Add a flags argument.
77727         (mbsnwidth): New function.
77728
77729 2000-07-24  Jim Meyering  <meyering@lucent.com>
77730
77731         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
77732
77733 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77734
77735         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
77736
77737 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77738
77739         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
77740         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
77741         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
77742         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
77743         invoke multibyte primitives.
77744
77745 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77746
77747         * lib/quotearg.c:
77748         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
77749         so that mbstate_t is always defined.
77750
77751         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
77752         be 1 in at least one GCC installation, and this configuration
77753         error is likely to be common.  Ignoring MB_LEN_MAX hurts
77754         performance on hosts that have mbrtowc but have only unibyte
77755         locales, but I assume these hosts are rare.
77756
77757 2000-07-23  Paul Eggert  <eggert@twinsun.com>
77758
77759         * lib/mbswidth.c (_XOPEN_SOURCE):
77760         Don't define; this causes problems on Solaris 7.
77761         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
77762
77763 2000-07-23  Jim Meyering  <meyering@lucent.com>
77764
77765         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
77766         too: getgrgid, getpwuid, getuid.
77767
77768 2000-07-23  Jim Meyering  <meyering@lucent.com>
77769
77770         * lib/basename.c (base_name): Add an assertion.
77771
77772 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
77773
77774         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
77775         shadow its mbsinit function.
77776
77777 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77778
77779         * lib/mbswidth.h: New file.
77780         * lib/mbswidth.c: New file.
77781         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
77782         (noinst_HEADERS): Add mbswidth.h.
77783
77784 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
77785
77786         * lib/config.charset: Add support for FreeBSD. Improve support for
77787         HP-UX and IRIX 6.
77788
77789 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
77790
77791         * m4/mbswidth.m4: New file.
77792         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
77793
77794 2000-07-15  Jim Meyering  <meyering@lucent.com>
77795
77796         * lib/makepath.c: Include quote.h.
77797         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
77798         corresponding argument in a `quote (...)' call.
77799         Give better diagnostics.
77800
77801         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
77802         (noinst_HEADERS): Add quote.h.
77803
77804         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
77805         from tar's src/misc.c.
77806         * lib/quote.h: New file.  Prototypes for same.
77807
77808 2000-07-14  Paul Eggert  <eggert@twinsun.com>
77809
77810         From a suggestion by Bruno Haible.
77811         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
77812         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
77813         to decide whether to define the BeOS workaround macro;
77814         this adjusts to the change to AC_MBSTATE_T.
77815
77816 2000-07-14  Jim Meyering  <meyering@lucent.com>
77817
77818         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
77819         jm_AC_TYPE_UINTMAX_T.
77820
77821 2000-07-13  Paul Eggert  <eggert@twinsun.com>
77822
77823         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
77824
77825         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
77826         quotearg_buffer_restyled): Add support for
77827         clocale_quoting_style.  Undo previous change to
77828         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
77829         and "{RIGHT QUOTATION MARK}" msgids.
77830
77831 2000-07-10  Paul Eggert  <eggert@twinsun.com>
77832
77833         From a suggestion by Bruno Haible.
77834         * m4/mbstate_t.m4 (AC_MBSTATE_T):
77835         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
77836         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
77837         and mbstate_t, to a single-part test that simply defines mbstate_t.
77838         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
77839         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
77840
77841 2000-07-10  Jim Meyering  <meyering@lucent.com>
77842
77843         * m4/strerror_r.m4: Mirror the correction made in autoconf.
77844
77845         * m4/gnu-source.m4: Output to confdefs.h directly.
77846         Suggestion from Akim Demaille.
77847
77848 2000-07-09  Paul Eggert  <eggert@twinsun.com>
77849
77850         The old behavior of quoting `like this' doesn't look good with
77851         newer, ISO-style fonts.  See:
77852         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
77853
77854         Instead, quote "like this" by default.  Let the translator
77855         tailor the locale-specific quoting behavior by providing
77856         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
77857
77858         * lib/quotearg.c (N_): New macro.
77859         (gettext_default): New function.
77860         (quotearg_buffer_restyled): Use
77861         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
77862         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
77863
77864 2000-07-09  Jim Meyering  <meyering@lucent.com>
77865
77866         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
77867         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
77868
77869         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
77870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
77871
77872 2000-07-09  Jim Meyering  <meyering@lucent.com>
77873
77874         * lib/Most files: Update copyright dates to include 2000.
77875
77876 2000-07-08  Jim Meyering  <meyering@lucent.com>
77877
77878         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
77879         if not defined.
77880         (xgethostname): Remove now-unnecessary #ifdef.
77881         Move declaration of `err' into loop where it's used.
77882
77883 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77884         and Bruno Haible  <haible@clisp.cons.org>
77885
77886         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
77887         only if the test for an object-type mbstate_t fails.  This
77888         prevents us from mistakenly reporting that mbstate_t is a
77889         system object type after we "#define mbstate_t int" to work
77890         around its lack.
77891
77892 2000-07-05  Paul Eggert  <eggert@twinsun.com>
77893         and Bruno Haible  <haible@clisp.cons.org>
77894
77895         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
77896
77897 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77898
77899         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
77900         to strerror_r.
77901         Include <ctype.h> for use of isalpha.
77902
77903 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77904
77905         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
77906         by allocating a larger buffer. Test the gethostname return value for
77907         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
77908         returns an error and ENAMETOOLONG isn't defined.
77909
77910 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
77911
77912         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
77913         dimension.
77914
77915 2000-07-04  Jim Meyering  <meyering@lucent.com>
77916
77917         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
77918         of the deprecated AC_CHECKING.
77919
77920 2000-07-04  Jim Meyering  <meyering@lucent.com>
77921
77922         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
77923         Reported by Bruno Haible.
77924
77925 2000-07-04  Jim Meyering  <meyering@lucent.com>
77926
77927         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
77928         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
77929         lacks mbrtowc.
77930
77931 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77932
77933         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
77934         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
77935
77936 2000-07-03  Paul Eggert  <eggert@twinsun.com>
77937         and Bruno Haible  <haible@clisp.cons.org>
77938
77939         * lib/quotearg.c (mbrtowc):
77940         Assign to *pwc, and return 1 only if result is nonzero.
77941         (iswprint): Use ISPRINT when substituting our own mbrtowc.
77942
77943 2000-07-03  Jim Meyering  <meyering@lucent.com>
77944
77945         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
77946
77947 2000-07-03  Jim Meyering  <meyering@lucent.com>
77948
77949         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
77950         This is necessary to get a definition of e.g., UTMP_FILE on
77951         HP-UX 10.20.
77952         From Bob Proulx.
77953
77954 2000-07-02  Jim Meyering  <meyering@lucent.com>
77955
77956         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
77957
77958         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
77959         AC_LIBOBJ(function_name).
77960         * m4/chown.m4: Likewise.
77961         * m4/fnmatch.m4: Likewise.
77962         * m4/ftruncate.m4: Likewise.
77963         * m4/getgroups.m4: Likewise.
77964         * m4/getline.m4: Likewise.
77965         * m4/group-member.m4: Likewise.
77966         * m4/jm-macros.m4: Likewise.
77967         * m4/lstat.m4: Likewise.
77968         * m4/malloc.m4: Likewise.
77969         * m4/memcmp.m4: Likewise.
77970         * m4/nanosleep.m4: Likewise.
77971         * m4/putenv.m4: Likewise.
77972         * m4/realloc.m4: Likewise.
77973         * m4/regex.m4: Likewise.
77974         * m4/stat.m4: Likewise.
77975         * m4/strftime.m4: Likewise.
77976
77977 2000-07-02  Jim Meyering  <meyering@lucent.com>
77978
77979         * lib/quotearg.c (mbstate_t): Don't define here.
77980
77981 2000-07-02  Jim Meyering  <meyering@lucent.com>
77982
77983         * lib/nanosleep.c (SIGCONT): Define if not already defined.
77984
77985 2000-07-01  Jim Meyering  <meyering@lucent.com>
77986
77987         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
77988
77989 2000-07-01  Jim Meyering  <meyering@lucent.com>
77990
77991         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
77992         problem.
77993
77994 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
77995
77996         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
77997         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
77998
77999 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
78000
78001         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
78002         per change in ../m4/ls-mntd-fs.m4.
78003         (read_filesystem_list): Ignore symbolic links.
78004
78005 2000-06-29  Jim Meyering  <meyering@lucent.com>
78006
78007         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
78008         for declaration of strcmp.
78009
78010         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
78011
78012         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
78013         Avoid warning by casting result to `char *' to remove `const'.
78014
78015 2000-06-28  Jim Meyering  <meyering@lucent.com>
78016
78017         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
78018         included by quotearg.c, for which we perform this test.  From
78019         Bruno Haible.
78020
78021 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78022
78023         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
78024         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
78025         <utmpx.h> exists, put readutmp.o into LIBOBJS.
78026
78027 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
78028
78029         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
78030
78031 2000-06-26  Paul Eggert  <eggert@twinsun.com>
78032
78033         savedir now sets errno on failure and invokes xmalloc to get memory.
78034         Fix a couple of other minor bugs while we're at it.
78035
78036         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
78037         (NAMLEN): Remove macro.
78038         (malloc, realloc): Remove decls.
78039         (stpcpy): Likewise.
78040         ("xalloc.h"): Include.
78041         (NAME_SIZE_DEFAULT): New macro.
78042         (savedir): Use xmalloc / xrealloc to allocate memory.
78043         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
78044         Skip "" directory entries.
78045         Use strlen to calculate directory entry length, since the old method
78046         is rarely used these days and isn't worth supporting.
78047         Don't use a pointer after freeing it.
78048         Check for integer overflow when calculating allocation size.
78049         Use memcpy to copy entries, instead of stpcpy.
78050         Set errno properly when returning NULL.
78051         Check for readdir error.
78052
78053 2000-06-26  Jim Meyering  <meyering@lucent.com>
78054
78055         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
78056
78057 2000-06-25  Jim Meyering  <meyering@lucent.com>
78058
78059         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
78060         Linux header bug when _XOPEN_SOURCE is defined to 500.
78061
78062 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78063
78064         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
78065         deficiency.
78066
78067 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
78068
78069         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
78070         Include xalloc.h.
78071         Don't include <stdlib.h>.  Don't declare malloc, realloc.
78072
78073 2000-06-24  Jim Meyering  <meyering@lucent.com>
78074
78075         * m4/strerror_r.m4: Revive this file -- to try out an experimental
78076         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
78077         for which strerror does return char*, but which lacks a conveniently
78078         accessible declaration of the function.  If the compile-test says
78079         strerror_r doesn't work, then resort to a `run'-test that works on
78080         BeOS and segfaults on DEC Unix.
78081
78082 2000-06-24  Jim Meyering  <meyering@lucent.com>
78083
78084         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
78085
78086 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78087
78088         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
78089         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
78090
78091 2000-06-23  Paul Eggert  <eggert@twinsun.com>
78092
78093         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
78094         (mbrtowc, mbstate_t): Define substitutes if
78095         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
78096         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
78097         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
78098
78099 2000-06-23  Jim Meyering  <meyering@lucent.com>
78100
78101         * m4/afs.m4: Add missing AC_MSG_RESULT.
78102         Reported by Bruno Haible.
78103
78104         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
78105         Suggestion from Bruno Haible.
78106
78107 2000-06-23  Jim Meyering  <meyering@lucent.com>
78108
78109         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
78110
78111 2000-06-21  Jim Meyering  <meyering@lucent.com>
78112
78113         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
78114
78115 2000-06-21  Jim Meyering  <meyering@lucent.com>
78116
78117         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
78118         (noinst_HEADERS): Add getstr.h.
78119
78120         * lib/getline.c (getstr): Move into a separate file.
78121         * lib/getstr.c (getstr): New file, extracted from getline.c, with
78122         the following changes: new parameter, delim2; both delim[12]
78123         parameters have type `int', not `char'.  The latter would lose
78124         with 8-bit delimiters.
78125         * lib/getstr.h: New file.
78126
78127 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78128
78129         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
78130         than 1024, return a memory chunk of least possible size, instead
78131         of size PATH_MAX + 2. In the loop, increment the size proportionally.
78132         Use free/xmalloc instead of xrealloc to avoid copying for very long
78133         paths.
78134
78135 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78136
78137         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
78138         the empty string.
78139
78140 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
78141
78142         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
78143         address, not strdup.  Include <stdlib.h> and don't declare free().
78144
78145 2000-06-19  Jim Meyering  <meyering@lucent.com>
78146
78147         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
78148
78149 2000-06-18  Jim Meyering  <meyering@lucent.com>
78150
78151         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
78152
78153         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
78154         `checking whether...' message to be consistent with that of the
78155         lstat test.
78156
78157 2000-06-18  Jim Meyering  <meyering@lucent.com>
78158
78159         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
78160         Besides, these days every porting target provides a mkdir function.
78161
78162         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
78163         needed. (this snippet comes from src/system.h).
78164
78165 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
78166
78167         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
78168
78169 2000-06-15  Paul Eggert  <eggert@twinsun.com>
78170
78171         * lib/human.c (adjust_value): New function.
78172         (human_readable_inexact): Apply rounding style even when
78173         printing approximate values.
78174
78175 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78176
78177         * lib/human.c (human_readable_inexact): Allow an input block
78178         size that is not a multiple of the output block size, and vice versa.
78179         Reported by Piergiorgio Sartor.
78180
78181 2000-06-14  Paul Eggert  <eggert@twinsun.com>
78182
78183         * lib/getdate.y (get_date): Apply relative times after time
78184         zone indicator, not before.  Reported by Todd A. Jacobs.
78185
78186 2000-06-13  Jim Meyering  <meyering@lucent.com>
78187
78188         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
78189
78190         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
78191
78192 2000-06-12  Paul Eggert  <eggert@twinsun.com>
78193
78194         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
78195
78196 2000-06-12  Jim Meyering  <meyering@lucent.com>
78197
78198         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
78199         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
78200         optional argument.
78201         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
78202         the optional argument, `lib'.
78203
78204 2000-06-08  Jim Meyering  <meyering@lucent.com>
78205
78206         * m4/largefile.m4: Remove file (now that it's part of autoconf).
78207
78208 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78209
78210         Rewrite largefile configuration so that we don't need to run
78211         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
78212         AC_CANONICAL_HOST in configure.in -- jmm]
78213
78214         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
78215         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
78216         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
78217         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
78218         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
78219         All uses changed.
78220         Instead of inspecting the output of getconf, try to compile the
78221         test program without and with the macro definition.
78222         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
78223         for getconf.  Instead, check for the needed flags by compiling
78224         test programs.
78225
78226 2000-06-04  Paul Eggert  <eggert@twinsun.com>
78227
78228         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
78229
78230 2000-06-04  Jim Meyering  <meyering@lucent.com>
78231
78232         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
78233         SunOS 4.1.4 for which gid_t is an unsigned type.
78234
78235 2000-06-03  Jim Meyering  <meyering@lucent.com>
78236
78237         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
78238         now that autoconf requires that.
78239
78240         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
78241         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
78242         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
78243
78244 2000-06-03  Jim Meyering  <meyering@lucent.com>
78245
78246         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
78247
78248 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78249
78250         * m4/glibc21.m4: New file.
78251         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
78252
78253 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
78254
78255         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
78256         newer, don't install charset.alias.
78257         * lib/config.charset: Change the Linux/glibc rules so they become empty
78258         on glibc-2.1 or newer.
78259
78260 2000-06-02  Jim Meyering  <meyering@lucent.com>
78261
78262         * lib/mountlist.c: Back out last change.  Instead, do this...
78263         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
78264         me_dummy member using the same `ignore'-testing code.
78265         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
78266         fs_type strings.
78267         From Mark D. Roth.
78268
78269 2000-05-29  Jim Meyering  <meyering@lucent.com>
78270
78271         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
78272         mounts with the `ignore' attribute.  Based on a patch from
78273         Mark D. Roth.
78274
78275 2000-05-28  Jim Meyering  <meyering@lucent.com>
78276
78277         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
78278         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78279         * m4/stat.m4: Likewise.
78280         * m4/lstat.m4: Likewise.
78281         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
78282
78283         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
78284         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
78285
78286 2000-05-26  Jim Meyering  <meyering@lucent.com>
78287
78288         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
78289
78290 2000-05-24  Jim Meyering  <meyering@lucent.com>
78291
78292         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
78293         autoconf requires that.
78294         * m4/lib-check.m4: Likewise.
78295         * m4/jm-macros.m4: Likewise.
78296         * m4/strftime.m4: Likewise.
78297
78298         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
78299         AC_CHECK_DECLS, now that autoconf requires that.
78300
78301 2000-05-22  Jim Meyering  <meyering@lucent.com>
78302
78303         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78304         * m4/lstat.m4: Likewise.
78305
78306 2000-05-22  Jim Meyering  <meyering@lucent.com>
78307
78308         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
78309
78310 2000-05-20  Jim Meyering  <meyering@lucent.com>
78311
78312         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
78313         (jm_PREREQ): Use it.
78314
78315 2000-05-18  Jim Meyering  <meyering@lucent.com>
78316
78317         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
78318         back, too, since it may have been modified by allocate_entry.
78319         (hash_delete): Rewrite to use neither the assignment operator
78320         nor the comma operator in an if-expression.
78321
78322 2000-05-15  Paul Eggert  <eggert@twinsun.com>
78323
78324         * lib/closeout.c:
78325         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
78326         Remove; no longer needed.
78327         "quotearg.h": Add include.
78328         (file_name): Do not bother to explicitly initialize to NULL; it's less
78329         efficient on some hosts.
78330         (close_stdout_status): Remove test as to whether stdout was already
78331         closed; it breaks for the case "echo x | sort >&-".
78332         Quote file name colons.
78333         Do not assume that _("write error") lacks format strings.
78334
78335 2000-05-15  Jim Meyering  <meyering@lucent.com>
78336
78337         * lib/version-etc.c (version_etc_copyright): Update the copyright
78338         string used in all --version output.
78339
78340 2000-05-14  Jim Meyering  <meyering@lucent.com>
78341
78342         * lib/closeout.c (close_stdout_set_file_name): New function.
78343         (close_stdout_status): Use new file-scoped global.
78344         Return right away if fstat says the stdout file descriptor is invalid.
78345         * lib/closeout.h (close_stdout_set_file_name): Declare.
78346
78347 2000-05-10  Jim Meyering  <meyering@lucent.com>
78348
78349         * lib/closeout.c [default_exit_status]: New file-scoped variable.
78350         (close_stdout_set_status): New function.
78351         * lib/closeout.h (close_stdout_set_status): Declare.
78352
78353 2000-05-09  Jim Meyering  <meyering@lucent.com>
78354
78355         * m4/gettext.m4: Rename this...
78356         * m4/libintl.m4: ...to this.
78357
78358 2000-05-08  Jim Meyering  <meyering@lucent.com>
78359
78360         * lib/long-options.c: Don't include closeout.h.
78361         (parse_long_options): Don't call close_stdout for --version.
78362
78363 2000-05-06  Paul Eggert  <eggert@twinsun.com>
78364
78365         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
78366         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
78367         2.1.3 bug.  This avoids a clash when files like regex.c define
78368         _GNU_SOURCE.
78369
78370 2000-05-06  Jim Meyering  <meyering@lucent.com>
78371
78372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
78373         (AC_REPLACE_FUNCS): Add strnlen.
78374
78375         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
78376         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
78377
78378         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
78379         AC_SEARCH_LIBS call for nanosleep.
78380         (LIB_NANOSLEEP): Set and AC_SUBST.
78381
78382 2000-05-06  Jim Meyering  <meyering@lucent.com>
78383
78384         * lib/strnlen.c: Undefine __strnlen and strnlen.
78385         [!weak_alias]: Define __strnlen to strnlen.
78386
78387         * lib/atexit.c: New file, from libiberty.
78388
78389 2000-05-06  Jim Meyering  <meyering@lucent.com>
78390
78391         * lib/closeout.c (close_stdout_status): Also check for errors on the
78392         stderr stream.
78393
78394 2000-05-05  Jim Meyering  <meyering@lucent.com>
78395
78396         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
78397         AC_SEARCH_LIBS call for clock_gettime.
78398         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
78399
78400         * m4/search-libs.m4: Update from autoconf.
78401
78402         su doesn't work on Solaris 2.6.
78403         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
78404         <shadow.h>.  Reported by Dragos Harabor.
78405
78406 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
78407
78408         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
78409         memcpy instead of xmalloc, xrealloc, path_concat.
78410         (locale_charset): Treat empty environment variables as absent.
78411         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
78412
78413 2000-05-04  Jim Meyering  <meyering@lucent.com>
78414
78415         * lib/getopt.c: Update from glibc.
78416         * lib/obstack.c: Likewise.
78417         * lib/obstack.h: Likewise.
78418         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
78419         file
78420
78421         * lib/regex.h: Likewise.
78422         * lib/strndup.c: Likewise.
78423         * lib/strnlen.c: New file, from glibc.
78424
78425 2000-05-03  Jim Meyering  <meyering@lucent.com>
78426
78427         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
78428
78429 2000-05-02  Paul Eggert  <eggert@twinsun.com>
78430
78431         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
78432         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
78433         compile-time test, rather than inspecting host and OS, to
78434         decide whether to define _LARGEFILE_SOURCE.
78435
78436 2000-05-01  Jim Meyering  <meyering@lucent.com>
78437
78438         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
78439
78440         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
78441         Based on a patch from Bruno Haible.
78442
78443 2000-05-01  Jim Meyering  <meyering@lucent.com>
78444
78445         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
78446
78447 2000-04-29  Jim Meyering  <meyering@lucent.com>
78448
78449         * lib/path-concat.c: Declare strdup only if it's not defined.
78450         * lib/canon-host.c: Likewise.
78451
78452 2000-04-28  Jim Meyering  <meyering@lucent.com>
78453
78454         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
78455         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
78456         is included first, then limits.h is included by locale.h by libintl.h.
78457         From John David Anglin.
78458
78459 2000-04-25  Jim Meyering  <meyering@lucent.com>
78460
78461         * lib/makepath.c (S_IRWXUGO): Define.
78462         (make_path): Always perform explicit chmod if MODE specifies any
78463         of the `special' permission bits.  Prompted by a bug report against
78464         install from Mate Wierdl and Joost van Baal.
78465
78466 2000-04-18  Jim Meyering  <meyering@lucent.com>
78467
78468         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
78469         (jm_PREREQ): Use it.
78470
78471 2000-04-18  Jim Meyering  <meyering@lucent.com>
78472
78473         * lib/README: New file.
78474
78475         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
78476         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
78477
78478 2000-04-17  Jim Meyering  <meyering@lucent.com>
78479
78480         Get it right :-)
78481         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
78482         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
78483         Suggestion from Akim Demaille.
78484
78485 2000-04-17  Jim Meyering  <meyering@lucent.com>
78486
78487         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
78488         the definition of it to rpl_strftime also defined-away the system's
78489         declaration.
78490
78491 2000-04-15  Jim Meyering  <meyering@lucent.com>
78492
78493         Use `C' to denote so-called `contiguous' files, the same way
78494         that tar does.
78495         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
78496         (ftypelet): Use S_ISCTG.
78497         From Michael Deutschmann.
78498
78499 2000-04-14  Jim Meyering  <meyering@lucent.com>
78500
78501         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
78502         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
78503         clobbered.
78504
78505 2000-04-14  Jim Meyering  <meyering@lucent.com>
78506
78507         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
78508
78509 2000-04-13  Jim Meyering  <meyering@lucent.com>
78510
78511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
78512         AH_VERBATIM to insert required #ifndef into config.h.in.
78513         Suggestion from Akim Demaille.
78514
78515 2000-04-12  Jim Meyering  <meyering@lucent.com>
78516
78517         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
78518         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
78519         Christian Krackowizer.
78520
78521         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
78522         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
78523         (AC_SYS_LARGEFILE): Require.
78524         (AM_C_PROTOTYPES): Require.
78525
78526 2000-04-08  Jim Meyering  <meyering@lucent.com>
78527
78528         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
78529         names don't conflict.  Reported by Eli Zaretskii.
78530
78531 2000-04-07  Jim Meyering  <meyering@lucent.com>
78532
78533         * lib/putenv.c: Move inclusion of errno.h so it follows that of
78534         sys/types.h, to work around system header problems on AIX 3.2.5.
78535         From Bruno Haible.
78536
78537 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
78538
78539         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
78540         bug.  Deal with the different error behavior of Irix iconv.
78541
78542 2000-04-05  Paul Eggert  <eggert@twinsun.com>
78543
78544         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
78545         IRIX if the installer said otherwise.
78546
78547 2000-04-05  Jim Meyering  <meyering@lucent.com>
78548
78549         Portability tweaks required for ultrix4.3.
78550         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
78551         (jm_CHECK_DECLS): Add getutent to the list of functions.
78552         (_jm_DECL_HEADERS): Add utmpx.h.
78553         From John David Anglin.
78554
78555         * m4/strftime.m4: Back out the 2000-04-02 change.
78556         Instead of that change, simply undefine putenv in the test program.
78557
78558 2000-04-05  Jim Meyering  <meyering@lucent.com>
78559
78560         Portability tweaks required for ultrix4.3.
78561         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
78562         getutent.
78563         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
78564         * lib/canon-host.c: Declare strdup.
78565         * lib/path-concat.c: Likewise.
78566         From John David Anglin.
78567
78568 2000-04-04  Jim Meyering  <meyering@lucent.com>
78569
78570         Be more DOS 8.3-friendly.
78571         * lib/ref-add.sin: Renamed from ref-add.sed.in.
78572         * lib/ref-del.sin: Renamed from ref-del.sed.in.
78573         * lib/Makefile.am: Reflect renaming.
78574         Reported by Eli Zaretskii.
78575
78576         Use a temporary file name that won't clash with `charset.alias'
78577         in the DOS 8.3 name space.
78578         * lib/Makefile.am (charset_tmp): Define.
78579         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
78580         (uninstall-local): Likewise.
78581         Reported by Eli Zaretskii.
78582
78583 2000-04-03  Jim Meyering  <meyering@lucent.com>
78584
78585         * m4/gettext.m4: Fix typo in comment.
78586
78587         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
78588         textutils/configure.in).  Suggestion from Paul Eggert.
78589         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
78590
78591 2000-04-02  Paul Eggert  <eggert@twinsun.com>
78592
78593         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
78594         variable in the shell rather than using putenv, which isn't
78595         portable.  This avoids the configure-time inter-test dependency
78596         on the potentially-renamed putenv function.
78597
78598 2000-03-30  Paul Eggert  <eggert@twinsun.com>
78599
78600         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
78601         before checking struct stat.st_blksize, so that
78602         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
78603
78604 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78605
78606         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
78607         since strftime.c uses HAVE_STRFTIME to decide whether to use
78608         the underlying strftime.
78609
78610 2000-03-29  Paul Eggert  <eggert@twinsun.com>
78611
78612         * lib/time/strftime.c (my_strftime): Make sure we call the system
78613         strftime, not ourselves, when invoking the underlying strftime.
78614
78615 2000-03-24  Jim Meyering  <meyering@lucent.com>
78616
78617         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
78618         (charset_alias): Define.
78619         (install-exec-local): Factor out common code.
78620         (uninstall-local): Split lines longer than 80.
78621         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
78622         (SUFFIXES): Define.
78623         (.sed.in.sed): New rule.  Don't redirect directly to $@.
78624         (CLEANFILES): Add ref-add.sed and ref-del.sed.
78625
78626 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
78627
78628         * lib/config.charset: Output a line containing "Packages using this
78629         file".
78630         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
78631         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
78632         ref-del.sed): New rules.
78633
78634 2000-03-17  Jim Meyering  <meyering@lucent.com>
78635
78636         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
78637         Otherwise, include <strings.h>
78638
78639 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
78640
78641         * lib/unicodeio.c (utf8_wctomb): New function.
78642         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
78643         format instead of in UCS-4 with platform dependent endianness.
78644
78645 2000-03-10  Jim Meyering  <meyering@lucent.com>
78646
78647         * m4/lib-check.m4: Look for getspnam in -lgen, too.
78648         From Marco Franzen.
78649
78650 2000-03-07  Paul Eggert  <eggert@twinsun.com>
78651
78652         * lib/savedir.c (savedir): Work even if directory size is
78653         negative; this can happen with some screwy NFS configurations.
78654
78655 2000-03-06  Jim Meyering  <meyering@lucent.com>
78656
78657         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
78658         if it's NULL (because we ran out of memory).  From Bruno Haible.
78659
78660 2000-03-05  Jim Meyering  <meyering@lucent.com>
78661
78662         * lib/localcharset.c ("path-concat.h"): Include.
78663         (get_charset_aliases): Use path_concat instead of ANSI string
78664         concatenation.
78665
78666         * lib/unicodeio.h (PARAMS): Define.
78667         Use it to guard prototype.
78668
78669 2000-03-04  Jim Meyering  <meyering@lucent.com>
78670
78671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
78672         for lib/localcharset.c.
78673
78674 2000-03-04  Jim Meyering  <meyering@lucent.com>
78675
78676         * lib/Makefile.am (install-exec-local): Create $(libdir) before
78677         installing into it.
78678         (uninstall-local): Uncomment this rule so `make distcheck' works
78679         once again.
78680
78681         * lib/unicodeio.c (<errno.h>): Include it.
78682         (errno): Declare if not defined.
78683
78684         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
78685
78686         * lib/config.charset: New version, incorporating remarks from a linux
78687         i18n mailing list.  From Bruno Haible.
78688
78689 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
78690
78691         * m4/codeset.m4: New file.
78692         * m4/iconv.m4: New file.
78693         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
78694
78695 2000-03-03  Jim Meyering  <meyering@lucent.com>
78696
78697         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
78698
78699 2000-03-02  Jim Meyering  <meyering@lucent.com>
78700
78701         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
78702         the messages come out on separate lines.
78703
78704         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
78705         rather than jm_CHECK_DECLARATIONS.
78706         * m4/decl.m4: Remove now-unused file.
78707
78708         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
78709         geteuid.
78710
78711 2000-03-02  Jim Meyering  <meyering@lucent.com>
78712
78713         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
78714
78715 2000-03-01  Jim Meyering  <meyering@lucent.com>
78716
78717         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
78718         * lib/unicodeio.c: Likewise.
78719
78720 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
78721
78722         * lib/config.charset: New file.
78723         * lib/localcharset.c: New file.
78724         * lib/unicodeio.h, lib/unicodeio.c: New files.
78725         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
78726         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
78727         (noinst_HEADERS): Add unicodeio.h.
78728         (all-local, install-exec-local, charset.alias): New targets.
78729
78730 2000-02-28  Paul Eggert  <eggert@twinsun.com>
78731
78732         * lib/quotearg.c (ALERT_CHAR): New macro.
78733         (quotearg_buffer_restyled): Use it.
78734
78735 2000-02-27  Jim Meyering  <meyering@lucent.com>
78736
78737         * m4/check-decl.m4: Add getenv to the list.
78738
78739 2000-02-27  Jim Meyering  <meyering@lucent.com>
78740
78741         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
78742         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
78743
78744         * lib/backupfile.c: Guard inclusion of stdlib.h with
78745         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
78746         Declare malloc if needed.
78747
78748         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
78749         `#ifndef HAVE_DECL..'
78750         now that autoconf always defines the HAVE_DECL_ symbols.
78751         * lib/human.c: Likewise.
78752         * lib/same.c: Likewise.
78753         * lib/strtoumax.c: Likewise.
78754
78755         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
78756         declaration check was not run.
78757         * lib/hash.c: Likewise.
78758         * lib/human.c: Likewise.
78759         * lib/same.c: Likewise.
78760         * lib/strtoumax.c: Likewise.
78761
78762         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
78763         `.', then first look up the entire `.'-containing string as a login
78764         name.
78765
78766 2000-02-23  Jim Meyering  <meyering@lucent.com>
78767
78768         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
78769         in place of my hack.
78770
78771 2000-02-18  Paul Eggert  <eggert@twinsun.com>
78772
78773         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
78774         (textint): New typedef.
78775         (parser_control): Member year changed from int to textint.
78776         All uses changed.
78777         (YYSTYPE): Removed; replaced by %union with int and textint members.
78778         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
78779         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
78780         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
78781         (tSNUMBER, tUNUMBER): Now of type <textintval>.
78782         (date, number, to_year): Use width of number in digits, not its value,
78783         to determine whether it's a 2-digit year, or a 2-digit time.
78784         (yylex): Store number of digits of numeric tokens.
78785         Reported by John Kendall.
78786
78787         (parser_control): Changed from struct parser_control to typedef (for
78788         consistency).  All uses changed.
78789
78790         (tID): Removed; not used.
78791         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
78792
78793 2000-02-14  Paul Eggert  <eggert@twinsun.com>
78794
78795         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
78796         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
78797
78798 2000-02-12  Jim Meyering  <meyering@lucent.com>
78799
78800         * lib/userspec.c (ISDIGIT): Define it.
78801         (isdigit): Remove definition.
78802         (is_number): Use ISDIGIT, not isdigit.
78803         <libintl.h>: Include.
78804         (_ and N_): Define.
78805         (parse_user_spec): Mark translatable strings.
78806
78807 2000-02-10  Jim Meyering  <meyering@lucent.com>
78808
78809         With these changes, nanosleep.[ch] are finally enough like the other
78810         lib/* replacement files to compile on a few more losing systems.
78811
78812         * lib/nanosleep.h: Don't include config.h.
78813         Remove prototype from declaration of nanosleep.
78814         (PARAMS): Remove now-unneeded definition.
78815         * lib/nanosleep.c: #undef nanosleep.
78816         (rpl_nanosleep): Rename from nanosleep.
78817
78818 2000-02-10  Jim Meyering  <meyering@lucent.com>
78819
78820         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
78821         gnu_nanosleep to rpl_nanosleep.
78822
78823 2000-02-09  Jim Meyering  <meyering@lucent.com>
78824
78825         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
78826         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
78827
78828 2000-02-08  Akim Demaille  <akim@epita.fr>
78829
78830         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
78831         `[' and `]' and remove uses of `changequote'.
78832         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
78833         (AC_SYS_LARGEFILE): Likewise.
78834         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
78835         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
78836         of changequote.
78837         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
78838         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
78839         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
78840         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
78841
78842 2000-02-05  Jim Meyering  <meyering@lucent.com>
78843
78844         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
78845         Remove explicit use of AC_HEADER_TIME.  It is required by
78846         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
78847         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
78848         in autoconf whereby the expansion of the latter ended up preceding
78849         the expansion of its prerequisite, AC_HEADER_TIME.
78850         Reported by Volker Borchert.
78851
78852 2000-02-03  Jim Meyering  <meyering@lucent.com>
78853
78854         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
78855
78856 2000-02-03  Jim Meyering  <meyering@lucent.com>
78857
78858         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
78859         rather than with `#if HAVE_UTMPNAME'.
78860
78861 2000-02-02  Jim Meyering  <meyering@lucent.com>
78862
78863         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
78864         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
78865         Reported by Eli Zaretskii.
78866
78867 2000-02-01  Jim Meyering  <meyering@lucent.com>
78868
78869         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
78870
78871 2000-01-31  Jim Meyering  <meyering@lucent.com>
78872
78873         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
78874         functions.  Add the time.h and sys/time.h headers along with the
78875         AC_REQUIRE'ment of AC_HEADER_TIME.
78876
78877 2000-01-31  Jim Meyering  <meyering@lucent.com>
78878
78879         * lib/nanosleep.h (nanosleep): Guard declaration with
78880         `#if ! HAVE_DECL_NANOSLEEP'.
78881         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
78882         the declaration in that vendor's sys/timers.h.
78883         Reported by Christian Krackowizer.
78884
78885         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
78886         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
78887         (ISPRINT): Likewise.
78888         Reported by Tom Tromey.
78889
78890 2000-01-30  Jim Meyering  <meyering@lucent.com>
78891
78892         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
78893
78894         * m4/prereq.m4 (utmp_includes): Define.
78895         Check for ut_user and ut_name members in both struct utmpx
78896         and struct utmp.
78897
78898 2000-01-30  Jim Meyering  <meyering@lucent.com>
78899
78900         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
78901         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
78902         header files where only utmpx.ut_user is declared.
78903
78904         * lib/readutmp.h (UT_USER): Define.
78905
78906 2000-01-29  Jim Meyering  <meyering@lucent.com>
78907
78908         * m4/lib-check.m4: New file containing library-related checks from
78909         fileutils and sh-utils (textutils had none).
78910
78911 2000-01-28  Jim Meyering  <meyering@lucent.com>
78912
78913         * m4/perl.m4: Change format of warning message to look more like that
78914         from the missing script.  Suggestion from François Pinard.
78915
78916 2000-01-25  Jim Meyering  <meyering@lucent.com>
78917
78918         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
78919         well as time.h in the compile check.
78920         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
78921         Fix typo in cross-compiling case: s/yes/no/.
78922
78923 2000-01-23  Jim Meyering  <meyering@lucent.com>
78924
78925         * m4/jm-macros.m4: Move df-related tests here from
78926         fileutils/configure.in
78927
78928         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
78929         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
78930
78931         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
78932         s/space/ac_fsusage_space/.
78933         (jm_FILE_SYSTEM_USAGE): Take two parameters.
78934
78935         * m4/ftruncate.m4: New file (derived from part of
78936         fileutils/configure.in).
78937         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
78938         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
78939
78940         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
78941         AC_SUBST these here, rather than just in sh-util/configure.in, so
78942         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
78943         all the same.
78944         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
78945         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
78946         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
78947         (AC_SUBST(POW_LIBM)): Likewise.
78948         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
78949
78950 2000-01-23  Jim Meyering  <meyering@lucent.com>
78951
78952         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
78953         obstack.c.
78954
78955 2000-01-22  Jim Meyering  <meyering@lucent.com>
78956
78957         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
78958
78959         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
78960
78961         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
78962         configure.in
78963         (AC_CHECK_HEADERS): Likewise for sh-utils.
78964         (AC_CHECK_HEADERS): Likewise for textutils.
78965         Merge the three lists of headers.
78966
78967         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
78968         from fileutils' configure.in.
78969
78970         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
78971         code. Moved tests into their own function (_jm_DECL_HEADERS) in
78972         check-decl.m4.
78973
78974         * m4/check-decl.m4: Use #if rather than #ifdef.
78975         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
78976         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
78977         (_jm_DECL_HEADERS): Define new function.
78978         (jm_CHECK_DECLARATIONS): Require it.
78979
78980 2000-01-22  Jim Meyering  <meyering@lucent.com>
78981
78982         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
78983         [! HAVE_DECL_STRTOULL]: Declare strtoull.
78984         Required for some AIX systems.  Reported by Christian Krackowizer.
78985         [TESTING] (main): New function.
78986
78987         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
78988         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
78989         letters.
78990
78991         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
78992         iswprint.
78993
78994         * lib/strverscmp.c (ISDIGIT): Define.
78995         (strverscmp): Use ISDIGIT, not isdigit.
78996
78997 2000-01-19  Jim Meyering  <meyering@lucent.com>
78998
78999         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
79000         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
79001         defines `struct timespec' in <sys/time.h>
79002
79003         * m4/c-bs-a.m4: Remove uses of changequote altogether.
79004         Thanks to Akim for explaining.
79005
79006 2000-01-17  Paul Eggert  <eggert@twinsun.com>
79007
79008         * lib/nanosleep.c (nanosleep):
79009         Don't use SA_INTERRUPT to decide whether to call sigaction, as
79010         POSIX.1 doesn't require SA_INTERRUPT and some systems
79011         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
79012         it's been part of POSIX.1 since day 1 (in 1988).
79013
79014 2000-01-17  Jim Meyering  <meyering@lucent.com>
79015
79016         * lib/interlock: Remove unused file.  Reported by François Pinard.
79017
79018 2000-01-16  Paul Eggert  <eggert@twinsun.com>
79019
79020         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
79021         alert, backslash, formfeed, and vertical tab unnecessarily in
79022         shell quoting style.
79023
79024 2000-01-16  Jim Meyering  <meyering@lucent.com>
79025
79026         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
79027         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
79028         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
79029         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
79030
79031 2000-01-16  Jim Meyering  <meyering@lucent.com>
79032
79033         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
79034         because the latter didn't work.
79035
79036 2000-01-15  Jim Meyering  <meyering@lucent.com>
79037
79038         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
79039         (AC_REPLACE_FUNCS): Add memcpy and memset.
79040         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
79041         Add strpbrk.
79042         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
79043
79044 2000-01-12  Jim Meyering  <meyering@lucent.com>
79045
79046         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
79047         (jm_PREREQ): Use it.
79048         (jm_PREREQ_READUTMP): New macro.
79049         (jm_PREREQ): Use it.
79050
79051 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79052
79053         Quote multibyte characters correctly.
79054         * m4/c-bs-a.m4: New file.
79055         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
79056         (jm_PREREQ): Use it.
79057
79058 2000-01-11  Paul Eggert  <eggert@twinsun.com>
79059
79060         * m4/uintmax_t.m4: Port to autoconf 2.13.
79061
79062 2000-01-08  Jim Meyering  <meyering@ascend.com>
79063
79064         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
79065         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
79066
79067 2000-01-04  Jim Meyering  <meyering@ascend.com>
79068
79069         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
79070         jm_STRUCT_DIRENT_D_TYPE.
79071         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
79072         jm_STRUCT_DIRENT_D_INO.
79073         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
79074         jm_STRUCT_UTIMBUF.
79075         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
79076         renamings.
79077         * m4/utime.m4: Likewise.
79078
79079         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
79080         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
79081
79082 2000-01-03  Paul Eggert  <eggert@twinsun.com>
79083
79084         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
79085         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
79086
79087 2000-01-02  Jim Meyering  <meyering@ascend.com>
79088
79089         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
79090         remember if this is necessary.
79091
79092 1999-12-26  Jim Meyering  <meyering@ascend.com>
79093
79094         * m4/jm-macros.m4: Use it here.
79095         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
79096
79097 1999-12-23  Jim Meyering  <meyering@ascend.com>
79098
79099         * m4/jm-macros.m4: Check for clock_gettime (moved from
79100         fileutils/configure.in)
79101         Check for gettimeofday.
79102
79103 1999-12-20  Jim Meyering  <meyering@ascend.com>
79104
79105         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
79106         autoconf-2.14a-1999-12-20.
79107
79108 1999-12-19  Jim Meyering  <meyering@ascend.com>
79109
79110         * m4/lstat-slash.m4: New file.
79111         * m4/jm-macros.m4: Use the new macro:
79112         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79113
79114 1999-12-07  Jim Meyering  <meyering@ascend.com>
79115
79116         * m4/perl.m4: Require that File::Compare be available, too.
79117         Too many systems seem to lack it.
79118
79119         * m4/strftime.m4: Add checks for most of the cpp macros tested in
79120         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
79121
79122 1999-11-18  Paul Eggert  <eggert@twinsun.com>
79123
79124         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
79125         problem with the QNX 4.25 shell, which doesn't propagate exit
79126         status of failed commands inside shell assignments.
79127
79128 1999-11-17  Jim Meyering  <meyering@ascend.com>
79129
79130         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
79131
79132 1999-11-07  Jim Meyering  <meyering@ascend.com>
79133
79134         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
79135
79136 1999-11-06  Jim Meyering  <meyering@ascend.com>
79137
79138         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
79139         * m4/jm-macros.m4 (jm_MACROS): Use it here.
79140
79141 1999-11-05  Jim Meyering  <meyering@ascend.com>
79142
79143         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
79144         configure.in of textutils, fileutils, and sh-utils into this one
79145         (shared between those packages) file.
79146         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
79147         AC_STRUCT_ST_BLKSIZE.
79148
79149 1999-11-03  Jim Meyering  <meyering@ascend.com>
79150
79151         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
79152         of AC_CHECK_TYPE checks includes unistd.h.
79153         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
79154         Suggestion from Akim Demaille.
79155
79156 1999-10-30  Jim Meyering  <meyering@ascend.com>
79157
79158         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
79159         m4-quoted string.
79160         * m4/ls-mntd-fs.m4: Likewise.
79161         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
79162         * m4/jm-winsz1.m4: Likewise.
79163
79164         * m4/const.m4: Remove file, since the fix made it into the experimental
79165         version of autoconf.
79166         * m4/mktime.m4: Likewise.
79167
79168         * m4/check-type.m4: Remove file, now that the latest version of
79169         AC_CHECK_TYPE takes a third arg to specify additional #includes.
79170
79171         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
79172         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
79173         AC_CHECK_TYPE.
79174
79175 1999-10-04  Jim Meyering  <meyering@ascend.com>
79176
79177         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
79178
79179 1999-09-22  Paul Eggert  <eggert@twinsun.com>
79180
79181         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
79182         2.95.1 bug with HP-UX 10.20.
79183
79184 1999-09-17  Jim Meyering  <meyering@ascend.com>
79185
79186         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
79187         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
79188         due to missing strdup (against sh-utils-2.0).
79189
79190 1999-08-29  Jim Meyering  <meyering@ascend.com>
79191
79192         * m4/jm-macros.m4: Require jm_BISON.
79193         * m4/bison.m4: New file.
79194
79195 1999-08-17  Paul Eggert  <eggert@twinsun.com>
79196
79197         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
79198         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
79199
79200 1999-08-05  Jim Meyering  <meyering@ascend.com>
79201
79202         * m4/getline.m4: Rename test file from conftestdata to conftest.data
79203         to avoid conflicts with `conftest' on 8+3 filesystems.
79204         Suggestion from Eli Zaretskii.
79205
79206 1999-08-04  Jim Meyering  <meyering@ascend.com>
79207
79208         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
79209         fileutils and sh-utils (textutils's getline test was inadequate).
79210         (AM_FUNC_GETLINE): Run this test.
79211         (AC_CHECK_FUNCS): Check for getdelim.
79212         Reported by Bob Proulx.
79213
79214 1999-08-02  Jim Meyering  <meyering@ascend.com>
79215
79216         * m4/jm-macros.m4: Add a comment.
79217
79218 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79219
79220         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
79221         <inttypes.h> defines strtoumax as a macro (and not as a
79222         function).
79223
79224 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79225
79226         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
79227         that we can shift, multiply and divide unsigned long long
79228         values; Ultrix cc can't do it.
79229
79230 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79231
79232         * m4/mktime.m4: New file, which is a preview of what should appear
79233         in the next public autoconf release.
79234
79235 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79236
79237         * m4/lfs.m4: Remove this file.
79238         * m4/largefile.m4: New file.  It contains the old contents of
79239         lfs.m4, except that all names with prefix AC_LFS have been
79240         changed to use the prefix AC_SYS_LARGEFILE instead, to be
79241         compatible with future autoconf versions.  Also, some minor m4
79242         quoting problems have been fixed.
79243
79244 1999-08-01  Paul Eggert  <eggert@twinsun.com>
79245
79246         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
79247         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
79248         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
79249         and simplify the shell code.
79250
79251 1999-08-01  Jim Meyering  <meyering@ascend.com>
79252
79253         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
79254         m4.
79255
79256 1999-07-20  Jim Meyering  <meyering@ascend.com>
79257
79258         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
79259
79260 1999-07-15  Jim Meyering  <meyering@ascend.com>
79261
79262         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
79263
79264 1999-05-22  Jim Meyering  <meyering@ascend.com>
79265
79266         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
79267
79268 1999-05-20  Jim Meyering  <meyering@ascend.com>
79269
79270         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
79271         Add a colon after each `then' in case $4 is empty.
79272
79273 1999-05-16  Jim Meyering  <meyering@ascend.com>
79274
79275         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
79276
79277 1999-05-10  Jim Meyering  <meyering@ascend.com>
79278
79279         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
79280
79281         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
79282         AC_FUNC_MKTIME.
79283
79284 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
79285
79286         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
79287
79288 1999-05-04  Paul Eggert  <eggert@twinsun.com>
79289
79290         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
79291         not CPPFLAGS, so that linking works correctly in IRIX.
79292
79293 1999-04-30  Paul Eggert  <eggert@twinsun.com>
79294
79295         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
79296
79297 1999-04-20  Paul Eggert  <eggert@twinsun.com>
79298
79299         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
79300         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
79301         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
79302         jm_AC_TYPE_UNSIGNED_LONG_LONG.
79303         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
79304
79305         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
79306
79307 1999-04-20  Jim Meyering  <meyering@ascend.com>
79308
79309         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
79310         AC_REPLACE xstroull if necessary.  From Paul Eggert.
79311         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
79312
79313 1999-04-18  Jim Meyering  <meyering@ascend.com>
79314
79315         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
79316         * m4/jm-macros.m4: Use it.
79317
79318 1999-04-06  Jim Meyering  <meyering@ascend.com>
79319
79320         * m4/strftime.m4: Remove test for %f.
79321
79322 1999-03-29  Jim Meyering  <meyering@ascend.com>
79323
79324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
79325         superset of the AC_TYPE_* checks in the textutils, fileutils,
79326         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
79327         AC_TYPE_PID_T.
79328
79329 1999-03-28  Jim Meyering  <meyering@ascend.com>
79330
79331         * m4/jm-macros.m4: Define GNU_PACKAGE here.
79332         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
79333         replaced e.g., in the *.sh files of the sh-utils.
79334
79335 1999-03-20  Jim Meyering  <meyering@ascend.com>
79336
79337         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
79338         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
79339         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
79340
79341 1999-03-19  Jim Meyering  <meyering@ascend.com>
79342
79343         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
79344
79345 1999-03-12  Jim Meyering  <meyering@ascend.com>
79346
79347         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
79348
79349 1999-03-07  Jim Meyering  <meyering@ascend.com>
79350
79351         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
79352         declared.
79353
79354 1999-02-17  Jim Meyering  <meyering@ascend.com>
79355
79356         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
79357         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
79358
79359 1999-02-07  Jim Meyering  <meyering@ascend.com>
79360
79361         * m4/group-member.m4: New file -- extracted from sh-utils'
79362         configure.in.
79363
79364         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
79365         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
79366
79367 1999-02-06  Jim Meyering  <meyering@ascend.com>
79368
79369         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
79370         * m4/fnmatch.m4: Likewise.
79371         * m4/getgroups.m4: Likewise.
79372         * m4/lstat.m4: Likewise.
79373         * m4/malloc.m4: Likewise.
79374         * m4/putenv.m4: Likewise.
79375         * m4/realloc.m4: Likewise.
79376         * m4/regex.m4: Likewise.
79377         * m4/stat.m4: Likewise.
79378         * m4/strftime.m4: Likewise.
79379         Suggestion from Alain Magloire.
79380
79381         * m4/chown.m4: Use `.$ac_objext', not `.o'.
79382         * m4/fnmatch.m4: Likewise.
79383         * m4/getgroups.m4: Likewise.
79384         * m4/getline.m4: Likewise.
79385         * m4/lstat.m4: Likewise.
79386         * m4/malloc.m4: Likewise.
79387         * m4/memcmp.m4: Likewise.
79388         * m4/putenv.m4: Likewise.
79389         * m4/realloc.m4: Likewise.
79390         * m4/regex.m4: Likewise.
79391         * m4/stat.m4: Likewise.
79392         * m4/strftime.m4: Likewise.
79393         Suggestion from Alain Magloire.
79394
79395         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
79396         an argument.
79397
79398         * m4/regex.m4: Add a run-time Test for proper operation of
79399         re_compile_pattern.
79400
79401 1999-01-31  Jim Meyering  <meyering@ascend.com>
79402
79403         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
79404
79405 1999-01-30  Jim Meyering  <meyering@ascend.com>
79406
79407         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
79408
79409         * m4/jm-mktime.m4: Make this a wrapper around the official
79410         AM_FUNC_MKTIME rather than my private copy, now that the official one
79411         is up to date.
79412         * m4/mktime.m4: Remove file.
79413
79414         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
79415         * m4/uptime.m4: Likewise.
79416         * m4/uintmax_t.m4: Likewise.
79417
79418 1999-01-28  Jim Meyering  <meyering@ascend.com>
79419
79420         * m4/jm-macros.m4: Use jm_AFS.
79421         * m4/afs.m4: New file (from fileutils' configure.in).
79422
79423         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
79424         * m4/chown.m4: Likewise.
79425         * m4/d-ino.m4: Likewise.
79426         * m4/d-type.m4: Likewise.
79427         * m4/fnmatch.m4: Likewise.
79428         * m4/getgroups.m4: Likewise.
79429         * m4/gettext.m4: Likewise.
79430         * m4/jm-mktime.m4: Likewise.
79431         * m4/jm-winsz2.m4: Likewise.
79432         * m4/lcmessage.m4: Likewise.
79433         * m4/ls-mntd-fs.m4: Likewise.
79434         * m4/malloc.m4: Likewise.
79435         * m4/memcmp.m4: Likewise.
79436         * m4/putenv.m4: Likewise.
79437         * m4/realloc.m4: Likewise.
79438         * m4/st_mtim.m4: Likewise.
79439         * m4/strftime.m4: Likewise.
79440
79441 1999-01-16  Jim Meyering  <meyering@ascend.com>
79442
79443         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
79444         (ARGMATCH_DIE_DECL): Define.
79445
79446 1999-01-12  Jim Meyering  <meyering@ascend.com>
79447
79448         * m4/Makefile.am.in: Rewrite to avoid using fmt.
79449         Reported by Lars Hecking.
79450
79451 1999-01-10  Jim Meyering  <meyering@ascend.com>
79452
79453         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
79454         gross kludge.
79455         * m4/inttypes_h.m4: Likewise.
79456         * m4/lstat.m4: Likewise.
79457         * m4/malloc.m4: Likewise.
79458         * m4/readdir.m4: Likewise.
79459         * m4/realloc.m4: Likewise.
79460         * m4/st_dm_mode.m4: Likewise.
79461         * m4/stat.m4: Likewise.
79462         * m4/utimbuf.m4: Likewise.
79463         * m4/utimes.m4: Likewise.
79464
79465         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
79466         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
79467         comments in config.h.in are meaningful.
79468
79469         * m4/jm-macros.m4: Require autoconf-2.13 here.
79470
79471         * m4/regex.m4: By default, don't use the included regex.c on systems
79472         with glibc 2.  Suggestion from Uli Drepper.
79473
79474 1999-01-02  Jim Meyering  <meyering@ascend.com>
79475
79476         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
79477
79478 1998-12-18  Jim Meyering  <meyering@ascend.com>
79479
79480         * m4/Makefile.am.in (Makefile.am): Simplify rule.
79481         Based on a suggestion from Lars Hecking.
79482
79483 1998-11-16  Paul Eggert  <eggert@twinsun.com>
79484
79485         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
79486
79487 1998-11-16  Jim Meyering  <meyering@ascend.com>
79488
79489         * m4/lfs.m4: Double-quote the `uname...` expression.
79490
79491 1998-11-14  Jim Meyering  <meyering@ascend.com>
79492
79493         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
79494         * m4/stat.m4: Likewise.
79495
79496 1998-11-03  Jim Meyering  <meyering@ascend.com>
79497
79498         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
79499         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
79500
79501 1998-10-18  Jim Meyering  <meyering@ascend.com>
79502
79503         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
79504
79505 1998-10-17  Jim Meyering  <meyering@ascend.com>
79506
79507         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
79508         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
79509         calls for those previously hard-coded headers.  Instead, take a new
79510         parameter.
79511         (jm_CHECK_DECLARATIONS): Reflect interface change.
79512         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
79513         (jm_CHECK_DECL_LOCALTIME_R): New macro.
79514
79515         * m4/mktime.m4: Test for spring-forward gap before long-running test.
79516
79517 1998-10-14  Jim Meyering  <meyering@ascend.com>
79518
79519         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
79520         instead of "TZ=America/Vancouver".  From Paul Eggert.
79521
79522 1998-10-11  Jim Meyering  <meyering@ascend.com>
79523
79524         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
79525         This adds a test for a recently added compatibility fix for mktime.c.
79526         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
79527
79528 1998-09-27  Jim Meyering  <meyering@ascend.com>
79529
79530         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
79531
79532         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
79533         ../configure.in, including a change from Gordon Matzigkeit to allow
79534         cross-compiling for the Hurd.
79535
79536         * m4/glibc.m4: New file/macro to test for the GNU C Library
79537         versions 1 and 2.  From Gordon Matzigkeit.
79538         Indent.
79539
79540 1998-09-21  Jim Meyering  <meyering@ascend.com>
79541
79542         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
79543
79544 1998-08-18  Paul Eggert  <eggert@twinsun.com>
79545
79546         Port nanosecond-resolution times to UnixWare 2.1.2 and
79547         pedantic Solaris 2.6.
79548
79549         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
79550         AC_STRUCT_ST_MTIM.
79551         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
79552         Generate name of ns member, instead of just 1 or undef.
79553         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
79554
79555 1998-08-15  Jim Meyering  <meyering@ascend.com>
79556
79557         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
79558         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
79559         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
79560         instead of jm_TYPE_SSIZE_T.
79561
79562 1998-08-12  Jim Meyering  <meyering@ascend.com>
79563
79564         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
79565
79566 1998-08-02  Jim Meyering  <meyering@ascend.com>
79567
79568         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
79569         in acconfig.h manually.
79570
79571 1998-07-31  Paul Eggert  <eggert@twinsun.com>
79572
79573         * m4/st_mtim.m4: New file.
79574
79575 1998-07-28  Jim Meyering  <meyering@ascend.com>
79576
79577         * m4/utimes.m4: Undef stat.
79578
79579 1998-07-25  Jim Meyering  <meyering@ascend.com>
79580
79581         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
79582         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
79583
79584 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
79585
79586         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
79587         uid and gid actually remain unchanged.
79588
79589 1998-07-07  Jim Meyering  <meyering@ascend.com>
79590
79591         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
79592
79593 1998-07-04  Jim Meyering  <meyering@ascend.com>
79594
79595         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
79596         to prove that this macro can be used in packages without regex.c.
79597
79598 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
79599
79600         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
79601         is to be used.
79602
79603 1998-07-03  Jim Meyering  <meyering@ascend.com>
79604
79605         * m4/gettext.m4: Add -lintl if it's found to be necessary.
79606
79607         * m4/gettext.m4: New file -- from gettext-0.10.35.
79608         * m4/lcmessage.m4: Likewise.
79609         * m4/progtest.m4: Likewise.
79610
79611         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
79612         * m4/jm-macros.m4: Require the new macro.
79613
79614 1998-06-29  Jim Meyering  <meyering@ascend.com>
79615
79616         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
79617         for the definition of NGROUPS (used in a system header included
79618         by sys/mount.h).
79619
79620 1998-06-28  Jim Meyering  <meyering@ascend.com>
79621
79622         * m4/ls-mntd-fs.m4: New file.
79623         * m4/fstypename.m4: New file.
79624
79625         * m4/jm-macros.m4: Require the new macro.
79626         * m4/jm-glibc-io.m4: New file.
79627
79628 1998-05-19  Jim Meyering  <meyering@ascend.com>
79629
79630         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
79631         * m4/lchown.m4: New file.
79632
79633         * m4/Makefile.am.in: New file.
79634         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
79635
79636 1998-05-14  Jim Meyering  <meyering@ascend.com>
79637
79638         * m4/Makefile.am (EXTRA_DIST): Add them.
79639         * m4/jm-macros.m4: New file.
79640         * m4/utimbuf.m4: New file.
79641
79642 1998-05-12  Jim Meyering  <meyering@ascend.com>
79643
79644         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
79645
79646 1998-05-11  Jim Meyering  <meyering@ascend.com>
79647
79648         * m4/isc-posix.m4: New file.
79649
79650 1998-05-10  Jim Meyering  <meyering@ascend.com>
79651
79652         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
79653
79654 1998-05-09  Jim Meyering  <meyering@ascend.com>
79655
79656         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
79657         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
79658         with automake.
79659
79660         * m4/ssize_t.m4: New file.
79661         * m4/mktime.m4: Remove file -- the new automake has this now.
79662
79663 1998-04-26  Jim Meyering  <meyering@ascend.com>
79664
79665         * m4/assert.m4: New file.
79666         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
79667
79668 1998-04-05  Jim Meyering  <meyering@ascend.com>
79669
79670         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
79671         (jm_PREREQ): Use it here.
79672
79673 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
79674
79675         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
79676         in acconfig.h.
79677
79678 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
79679
79680         * m4/prereq.m4: New file.
79681         * m4/error.m4: New file.
79682         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
79683
79684 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
79685
79686         * m4/getline.m4: Don't set am_cv_func_working_getline before the
79687         cache-check for the same variable -- that defeated the purpose of
79688         the test; the test program was never run.  This was a problem only
79689         on systems with losing getline functions -- HP-UX 10.20 is one.
79690         Reported by Bjorn Helgaas.
79691
79692 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
79693
79694         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
79695
79696 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
79697
79698         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
79699
79700         * m4/const.m4: New file.  Use an initializer in this declaration
79701         typedef int charset[2]; const charset x;
79702         Reported by Bob Glickstein.
79703
79704 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
79705
79706         * m4/chown.m4: Fix reversed types on -1 args to chown.
79707         From Kaveh Ghazi.
79708
79709 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
79710
79711         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
79712         Add lseek and memchr.
79713
79714         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
79715         T.E.Dickey <dickey@clark.net> said that some older preprocessors
79716         have a 20-character limit on names.
79717
79718 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
79719
79720         * m4/inttypes_h.m4: New file.
79721         * m4/uintmax_t.m4: New file.
79722         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
79723
79724
79725         -----
79726
79727         Local Variables:
79728         coding: utf-8
79729         End:
79730
79731         Copyright (C) 1997-2011 Free Software Foundation, Inc.
79732
79733         Copying and distribution of this file, with or without
79734         modification, are permitted provided the copyright notice
79735         and this notice are preserved.